OSDN Git Service

* rtl.h (in_expr_list_p): New declaration.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Mon Dec 24 10:24:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * rtl.h (in_expr_list_p): New declaration.
4         * rtlanal.c (in_expr_list_p): New function.
5         * cfgcleanup.c: Reformatting and minor code rearrangement.
6         * cfglayout.c, cfgloop.c, cfgrtl.c: Likewise.
7
8 2001-12-23  Richard Henderson  <rth@redhat.com>
9
10         PR c/5163:
11         * c-decl.c (duplicate_decls): As needed, set DECL_INLINE when
12         we have a function body associated.  Minor cleanups.
13         (grokdeclarator): Do not set DECL_INLINE without a function body.
14
15 2001-12-23  Richard Henderson  <rth@redhat.com>
16
17         * stmt.c (resolve_operand_names): Handle operand modifiers.
18
19 2001-12-23  Richard Henderson  <rth@redhat.com>
20
21         * stmt.c (parse_input_constraint): Break out from ...
22         (expand_asm_operands): ... here.  Loop over the operands twice,
23         the first time only calling mark_addressable.  Correct and simplify
24         the conditions for spilling an output operand to memory.
25
26 2001-12-23  Richard Henderson  <rth@redhat.com>
27
28         * config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
29
30         * config/alpha/alpha.md (UNSPEC_SIBCALL): New.
31         (sibcall, sibcall_value, sibcall_osf_1_er, sibcall_osf_1): Use it.
32         (sibcall_value_osf_1_er, sibcall_value_osf_1): Likewise.
33
34 2001-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
35
36         * c-typeck.c (c_start_case): Don't strip conversions from the
37         controlling expression.  Partially fixes PR c/2454.
38
39 2001-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
40
41         * Makefile.in (USER_H): Remove proto.h.
42         * config.gcc (c*-convex-*): Set extra_headers=proto.h.
43
44 2001-12-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
45
46         * arc.c (arc_hard_regno_mode_ok): Const-ify.
47         * arc.h (arc_hard_regno_mode_ok): Likewise.
48         * i386.c (x86_64_reg_class_name): Make static.
49         * m68k.c (regno_reg_class): Const-ify.
50         * m68k.h (regno_reg_class): Likewise.
51         * mcore.c (reg_class_from_letter): Likewise.
52         * mcore.h (reg_class_from_letter): Likewise.
53         * sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
54         ext_shift_insns, ext_shift_amounts): Likewise.
55         * sh.h (reg_class_from_letter): Likewise.
56         * sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
57         hard_64bit_mode_classes): Likewise.
58         * sparc.h (hard_regno_mode_classes): Likewise.
59
60         * gcc.c (modify_target): Make static.
61         * gengenrtl.c (defs, formats): Likewise.
62         * reload1.c (elim_table_1, init_elim_table): Const-ify.
63         * tradcpp.c (directive, directive_table, handle_directive,
64         skip_if_group, run_directive): Likewise.
65
66 2001-12-23  Richard Henderson  <rth@redhat.com>
67
68         * calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for
69         an invalid result register; do end the sequence properly.
70         (emit_library_call_value_1): Likewise.
71
72 2001-12-22  Aldy Hernandez  <aldyh@redhat.com>
73
74         * config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.
75
76         * config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.
77
78         * config/rs6000/rs6000.c: Clean up some spacing and indentation.
79         (altivec_init_builtins): Add tree types for builtins with 4 bit
80         literals.
81         (bdesc_3arg): Add vsldoi variants.
82
83 2001-12-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
84
85         * 1750a.h (datalbl, jmplbl): Declare array size explicitly.
86         * a29k.h (a29k_debug_reg_map): Likewise.
87         * arc.h (arc_regno_reg_class): Likewise.
88         * c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
89         * convex.h (regno_reg_class, reg_class_from_letter): Likewise.
90         * d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
91         * i386.h (regclass_map): Likewise.
92         * m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
93         * mcore.h (regno_reg_class): Likewise.
94         * mips.h (mips_print_operand_punct, mips_char_to_class):
95         Likewise.
96         * ns32k.h (regclass_map): Likewise.
97         * pj.h (pj_debugreg_renumber_vec): Likewise.
98         * s390.h (regclass_map): Likewise.
99         * sh.h (regno_reg_class): Likewise.
100         * sparc.h (sparc_regno_reg_class): Likewise.
101
102         * hard-reg-set.h (reg_class_contents): Likewise.
103         * machmode.h (class_narrowest_mode): Likewise.
104
105 2001-12-22  David Edelsohn  <edelsohn@gnu.org>
106
107         * loop.c (scan_loop, move_movables, count_one_set): Do not
108         overlook hard registers when computing statistics.
109
110 Sun Dec 23 00:49:37 CET 2001  Jan Hubicka  <jh@suse.cz>
111
112         * calls.c (ECF_LIBCALL_BLOCK): New constant.
113         (emit_call_1, initialize_argument_information,
114         precompute_arguments, expand_call,
115         emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
116         instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.
117
118 2001-12-22  Joseph S. Myers  <jsm28@cam.ac.uk>
119
120         * config.gcc (extra_headers): Move settings to math-68881.h and
121         ppc-asm.h to common code for CPU types.  Use math-68881.h on all
122         m68k targets.
123         (header_files): Remove unused setting.
124
125 2001-12-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
126
127         * elxsi.c: Include "hard-reg-set.h" and/or don't declare
128         `call_used_regs' explicitly.
129         * i860.c: Likewise.
130         * m68k.c: Likewise.
131         * ns32k.c: Likewise.
132         * pa.c: Likewise.
133         * vax.c: Likewise.
134         * we32k.c: Likewise.
135
136 Fri Dec 21 23:30:14 CET 2001  Jan Hubicka  <jh@suse.cz>
137
138         * i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
139         (TARGET_CPU_DEFAULT_*): Renumber.
140
141 Sat Dec 22 12:20:20 EST 2001  John Wehle  (john@feith.com)
142
143         * rtl.h (subreg_lsb): Declare.
144         * rtlanal.c (subreg_lsb): Implement.
145
146 Sat Dec 22 08:59:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
147
148         * predict.c: Reformatting and minor cleanups.
149         * cfg.c, cfganal.c, cfgbuild.c: Likewise.
150
151         * expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
152         SAVE_EXPR.
153         * function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
154         (put_addressof_into_stack): Clarify code in setting of used_p.
155
156         * calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
157         (expand_call): Delete from here.
158         Do pending stack adjustments if ECF_SP_DEPRESSED.
159
160         * dwarf2out.c (save_rtx): Deleted.
161         (mem_loc_descriptor): Do equivalent operation.
162         (add_const_value_attribute, case CONST): Likewise.
163         (add_name_and_src_coords_attributes): Likewise.
164
165 2001-12-21  Kazu Hirata  <kazu@hxi.com>
166
167         * config/h8300/h8300.h: Fix comment formatting.
168
169 Fri Dec 21 17:30:15 2001  Jeffrey A Law  (law@redhat.com)
170
171         * pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
172         (CPLUSPLUS_CPP_SPEC): Define _INCLUDE_LONGLONG.
173
174 2001-12-21  Robert Lipe  <robertlipe@usa.net>
175
176          * system.h (PREFETCH): Explictly undefine.
177
178 2001-12-21  Richard Henderson  <rth@redhat.com>
179
180         * c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
181         (RESTORE_WARN_FLAGS): Restore it.
182         (extension): Zero warn_traditional.
183
184 2001-12-21  Kazu Hirata  <kazu@hxi.com>
185
186         * doc/passes.texi: Fix a typo.
187
188 2001-12-21  Kazu Hirata  <kazu@hxi.com>
189
190         * config/h8300/h8300.h: Fix a comment typo.
191
192 2001-12-21  Jakub Jelinek  <jakub@redhat.com>
193
194         * combine.c (nonzero_bits): If using reg_nonzero_bits,
195         we don't know anything about bits outside of X mode.
196         (num_sign_bit_copies): Likewise.
197
198 2001-12-21  Nick Clifton  <nickc@cambridge.redhat.com>
199
200         * config/arm/arm.md (prefetch): Use 'a' operand code.
201
202 2001-12-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
203
204         * aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
205         subshells.
206         * configure.in: Likewise for perl Pod::Man.
207
208         * configure: Regenerated.
209
210 2001-12-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
211
212         * builtin-attrs.def (__builtin_printf_unlocked,
213         __builtin_fprintf_unlocked, printf_unlocked, fprintf_unlocked):
214         Mark with the __printf__ attribute.
215         
216         * builtins.c (expand_builtin_fputs): Add an `unlocked' parameter
217         and set the replacement function depending on it.
218         (expand_builtin): Skip BUILT_IN_*_UNLOCKED when not optimizing.
219         Handle BUILT_IN_*_UNLOCKED when optimizing.
220         
221         * builtins.def (DEF_EXT_FALLBACK_BUILTIN,
222         DEF_EXT_FRONT_END_LIB_BUILTIN): New macros.
223         Declare the "unlocked" stdio functions.
224         
225         * c-common.c (c_expand_builtin_printf, c_expand_builtin_fprintf):
226         Add an `unlocked' parameter and set the replacement function
227         depending on it.
228         (c_expand_builtin): Handle BUILT_IN_PRINTF_UNLOCKED and
229         BUILT_IN_FPRINTF_UNLOCKED.
230
231         * doc/extend.texi (printf_unlocked, fprintf_unlocked,
232         fputs_unlocked): Document.
233
234 2001-12-20  Josef Zlomek  <zlomek@matfyz.cz>
235
236         * cfgloop.c (flow_loops_find): Use the information of the depth
237         first search order of the CFG correctly when finding natural loops.
238
239 2001-12-20  Richard Henderson  <rth@redhat.com>
240
241         * config/alpha/alpha.md (prologue_mcount): Update for explicit relocs.
242
243 2001-12-20  Richard Henderson  <rth@redhat.com>
244
245         * config/alpha/alpha.c (call_operand) [OSF]: Accept pseudos.
246         * config/alpha/alpha.md (call_osf, call_value_osf): Don't force
247         operand into $27.
248
249 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
250
251         * configure.in (all_headers, all_lib2funcs): Remove.
252         * configure: Regenerate.
253         * Makefile.in (LANG_EXTRA_HEADERS): Remove.
254         (USER_H): Don't include $(LANG_EXTRA_HEADERS).
255         * config/alpha/t-interix (USER_H): Don't include
256         $(LANG_EXTRA_HEADERS).
257         * config/i386/t-interix: Likewise.
258         * config/t-openbsd: Likewise.
259
260 2001-12-20  Andreas Jaeger  <aj@suse.de>
261
262         * libgcc2.c (__bb_exit_func): Remove unused variable.
263         (num_digits): Remove unused function.
264
265 2001-12-20 Alan Shieh <ashieh@hkn.eecs.berkeley.edu>
266
267         * config/arm/arm.c (arm_output_epilogue): Changed IP restore
268         to use ldmfd instead of ldmea.
269         * config/arm/arm.c (arm_compute_initial_elimination_offset):
270         Modified to reflect behavior of arm_expand_prologue when generating
271         interrupt handlers
272
273 2001-12-20  Nick Clifton  <nickc@cambridge.redhat.com>
274
275         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask):  New
276         function. Compute which of registers r0 through r12 should be
277         saved onto the stack during a function's prologue.
278         (arm_compute_save_reg_mask): Use
279         arm_compute_save_reg0_reg12_mask.
280         (arm_compute_initial_elimination_offset): Use
281         arm_compute_save_reg0_reg12_mask.
282
283         (arm_expand_prologue): Do not mark as save of the IP register
284         for an interrupt handler as being part of the frame creation
285         code.
286
287 2001-12-20  Richard Henderson  <rth@redhat.com>
288
289         * varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer
290         to emit floating point values.
291         (assemble_real_1): Remove.
292
293         * 1750a/1750a.c (real_value_to_target_single): New.
294         (real_value_to_target_double): New.
295         * 1750a/1750a.h (TARGET_FLOAT_FORMAT): New.
296         (REAL_VALUE_TO_TARGET_SINGLE): New.
297         (REAL_VALUE_TO_TARGET_DOUBLE): New.
298         * 1750a/1750a-protos.h: Update.
299
300         * 1750a/1750a.h, a29k/a29k.h, alpha/alpha.h, alpha/unicosmk.h,
301         alpha/vms.h, arc/arc.h, arm/aof.h, arm/aout.h, avr/avr.c,
302         avr/avr.h, c4x/c4x.h, clipper/clix.h, convex/convex.h, cris/cris.h,
303         d30v/d30v.h, dsp16xx/dsp16xx.c, dsp16xx/dsp16xx.h, elxsi/elxsi.h,
304         fr30/fr30.h, h8300/h8300.h, i370/i370.h, i386/i386.h, i386/i386elf.h,
305         i386/next.h, i386/ptx4-i.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h,
306         i860/paragon.h, i860/sysv4.h, i960/i960-protos.h, i960/i960.c,
307         i960/i960.h, ia64/ia64.h, m32r/m32r.h, m68hc11/m68hc11.c,
308         m68hc11/m68hc11.h, m68k/3b1.h, m68k/altos3068.h, m68k/crds.h,
309         m68k/dpx2.h, m68k/hp320.h, m68k/m68k.h, m68k/mot3300.h, m68k/news.h,
310         m68k/next.h, m68k/next21.h, m68k/sgs.h, m68k/sun2o4.h, m68k/sun3.h,
311         m68k/tower-as.h, m88k/m88k.h, mcore/mcore.h, mips/mips-protos.h,
312         mips/mips.c, mips/mips.h, mmix/mmix-protos.h, mmix/mmix.c,
313         mmix/mmix.h, mn10200/mn10200.h, mn10300/mn10300.h, ns32k/encore.h,
314         ns32k/ns32k.h, pa/long_double.h, pa/pa.h, pdp11/pdp11.h, pj/pj.h,
315         romp/romp.c, romp/romp.h, rs6000/rs6000.h, s390/linux.h, sh/sh.h,
316         sparc/sparc.h, stormy16/stormy16.h, v850/v850.h, vax/vax.h,
317         vax/vaxv.h, we32k/we32k.h, doc/tm.texi: Remove ASM_OUTPUT_FLOAT,
318         ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE_FLOAT,
319         ASM_OUTPUT_SHORT_FLOAT, ASM_OUTPUT_THREE_QUARTER_FLOAT, and all
320         associated support routines.
321
322 Thu Dec 20 16:58:46 CET 2001  Jan Hubicka  <jh@suse.cz>
323
324         * cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns
325         if one of block does not contain jump.
326         (outgoing_edge_math): Revert last path; require edges to be noncomplex
327         nonfake to match single exit edge; require conditional jumps to not
328         have side effect.
329
330 2001-12-20  Turly O'Connor  <turly@apple.com>
331
332         * tm.texi (ASM_OUTPUT_OPERAND): Change documentation references to
333         "recog_operand" to "recog_data.operand".
334         * rtl.def: Likewise.
335
336 2001-12-20  Jakub Jelinek  <jakub@redhat.com>
337
338         * simplify-rtx.c (simplifi_binary_operation) [DIV]: If DIV has
339         narrower mode than op0, only return the bits in DIV's mode.
340
341 2001-12-20  Jakub Jelinek  <jakub@redhat.com>
342
343         * combine.c (distribute_notes): Avoid adding REG_LABEL notes
344         to JUMP_INSNs with JUMP_LABEL.
345
346 2001-12-19  Aldy Hernandez  <aldyh@redhat.com>
347
348         * doc/install.texi: Add documentation for --enable-altivec.
349
350         * config.gcc: Add support for --enable-altivec.
351
352         * config/rs6000/altivec.h: New.
353
354         * config/rs6000/linuxaltivec.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
355         Define.  Fix typo.
356
357         * config/rs6000/rs6000.c (vrsave_operation): Change unspec to
358         unspec_volatile.
359         (generate_set_vrsave): Generate the unspec here instead of calling
360         an .md pattern.
361         (generate_set_vrsave): Use gen_rtvec.
362         (rs6000_emit_prologue): Replace call to gen_get_vrsave with
363         gen_rtx_SET.
364
365         * config/rs6000/rs6000.md ("*movsi_internal1"): Add constraints
366         for setting special registers.
367         ("*set_vrsave_internal"): Use unspec_volatile.
368         ("set_vrsave"): Remove.
369         ("get_vrsave"): Remove.
370
371         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add vrsave to
372         SPECIAL_REGS.
373
374 2001-12-19  Bruce Korb  <bkorb@gnu.org>
375
376         * gcc/fixinc/inclhack.def:  Remove all the fix suppression "fixes".
377         (strict_ansi_not_ctd):  accommodate __STDC__ == 0 tests in UW 2.1.2
378         * gcc/fixinc/mkfixinc.sh(i?86-*-sysv4.2uw2*): now uses fixincl program
379         * gcc/fixinc/base/...: adjust for changes in fixes
380
381 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
382
383         * po/gcc.pot: Regenerate.
384
385         * configure.in (all_diff_excludes, diff_excludes): Remove.
386         * configure: Regenerate.
387         * Makefile.in (LANG_DIFF_EXCLUDES): Remove.
388         * objc/config-lang.in (diff_excludes): Remove.
389
390 2001-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
391
392         * config/sparc/sparc.md (ldd peephole2s): For load peepholes pass
393         the destination register as a parameter to mems_ok_for_ldd_peep.
394         For store peepholes pass NULL_RTX.  Move all volatile checks ...
395         * config/sparc/sparc.c (mems_ok_for_ldd_peep): ... here.  Add a
396         register parameter, check it's not the same as base for an address.
397         * config/sparc/sparc-protos.h (mems_ok_for_ldd_peep): Update.
398
399 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
400
401         * config/ia64/ia64.c (ia64_single_set): Return first set for
402         prologue_allocate_stack and epilogue_deallocate_stack instructions.
403
404 2001-12-19  Dale Johannesen  <dalej@apple.com>
405
406          * config/rs6000/rs6000.h: LEGITIMIZE_RELOAD_ADDRESS:
407          redefine in terms of rs6000_legitimize_reload_address().
408          * config/rs6000/rs6000-protos.h: Add this function.
409          * config/rs6000/rs6000.c: Add this function.  Includes
410          handling for Darwin FP constants.
411
412 Wed Dec 19 11:01:21 2001  Jeffrey A Law  (law@redhat.com)
413
414         * config/pa/t-hpux-shlib: New file.
415         * config.gcc (hpux10, hpux11): Include t-hpux-shlib in tmake_file
416         for 32bit hpux10 & hpux11 configurations.
417
418 2001-12-19  Nick Clifton  <nickc@cambridge.redhat.com>
419
420         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Pass
421         -mno-fpu onto gas unless -mhard-float is specified.
422         (MULTILIB_DEFAULTS): Include msoft-float.
423
424         * config/arm/t-xscale-coff (EXTRA_MULTILIB_PARTS): Remove definition.
425
426         * config/arm/coff.h (SUPPORTS_INIT_PRIORITY): Define (to false).
427         * config/arm/elf.h (SUPPORTS_INIT_PRIORITY): Define (to true).
428
429 Wed Dec 19 06:12:34 2001  Douglas B. Rupp  <rupp@gnat.com>
430
431         * dwarf2out.c (add_name_and_src_coords_attributes): Fix VMS procedure
432         descriptor output.
433
434 2001-12-18  Stan Shebs  <shebs@apple.com>
435
436         * rs6000.h (LOCAL_ALIGNMENT): Fix parens.
437
438 Tue Dec 18 17:02:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
439
440         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
441         on an INTEGER_CST.
442
443 2001-12-18  David Edelsohn  <edelsohn@gnu.org>
444
445         * rs6000.c (rs6000_override_options): Only use DI ops when
446         TARGET_64BIT.  Fix typo.
447
448 Tue Dec 18 16:39:46 CET 2001  Jan Hubicka  <jh@suse.cz>
449
450         * att.h (ASM_FILE_START): Use asm_dialect.
451         * linux.h (ASM_FILE_START): Likewise.
452         * gas.h (ASM_FILE_START): Likewise.
453         * i386.c (ix86_debug_arg_string, ix86_debug_addr_string,
454         ix86_asm_string, ix86_asm_dialect): New.
455         (override_options): Set asm_dialect.
456         * i386.h (MASK_MIX_SSE_I387, MASK_INTEL_SYNTAX, MASK_DEBUG_ARG,
457         MASK_DEBUG_ADDR): Kill.
458         (MASK_64BIT, MASK_NO_RED_ZONE): renumber.
459         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Use string.
460         (ASSEMBLER_DIALECT): Use asm_dialect.
461         (TARGET_SWITCHES): Undocument deprecated items; deprecate intel-syntax;
462         remove debug-addr and debug-arg.
463         (TARGET_OPTIONS): Add debug-arg, debug-addr, asm.
464         (asm_dialect): New enum.
465         (ix86_debug_arg_string, ix86_debug_addr_string,
466         ix86_asm_string, ix86_asm_dialect): Declare.
467         * invoke.texi (-mintel-syntax): Remove.
468         (-masm): Document.
469
470 Tue Dec 18 16:37:42 CET 2001  Jan Hubicka  <jh@suse.cz>
471
472         * libgcc2.c (__bb_exit_func): Kill -ax dumping code.
473
474 2001-12-18  Jason Merrill  <jason@redhat.com>
475
476         C++ ABI change: destroy value arguments in caller.
477         * calls.c (initialize_argument_information): Pass the address of
478         the TARGET_EXPR temporary rather than storing it into another.
479
480 Tue Dec 18 07:09:06 2001  Douglas B. Rupp  <rupp@gnat.com>
481
482         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Add /gnu/include.
483         * config/alpha/vms.h (STACK_CHECK_BUILTIN): #define 0 for VMS.
484
485 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
486
487         * config/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
488         * config/sparc/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
489         * config/sparc/linux64.h (PREFERRED_DEBUGGING_TYPE): Remove.
490         (CC1_SPEC): Don't default to -gstabs+ if -m32.
491
492 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
493
494         * elfos.h (PREFERRED_DEBUGGING_TYPE): Change to DWARF2_DEBUG.
495
496 2001-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
497
498         * po/gcc.pot: Regenerate.
499
500 2001-12-18  Kazu Hirata  <kazu@hxi.com>
501
502         * config/h8300/h8300.c: Fix comment typos.
503         * config/h8300/h8300.h: Fix comment formatting.
504
505 2001-12-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
506
507         * machmode.h (mode_name, mode_class, mode_size, mode_unit_size,
508         mode_bitsize, mode_mask_array, mode_wider_mode): Set array size in
509         declaration to NUM_MACHINE_MODES.
510         (mode_size, mode_unit_size): Set array type to unsigned char.
511         (mode_bitsize): Set array type to unsigned short.
512
513         * rtl.c (rtx_length): Set array type to unsigned char.
514         (rtx_length, rtx_name, rtx_format, rtx_class): Set array size to
515         NUM_RTX_CODE.
516         (mode_bitsize): Set array type to unsigned short.
517         (mode_size, mode_unit_size): Set array type to unsigned char.
518         (mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size,
519         mode_wider_mode, mode_mask_array): Set array size to
520         NUM_MACHINE_MODES.
521
522         * rtl.h (rtx_length, rtx_name, rtx_format, rtx_class): Set array
523         size in declaration to NUM_RTX_CODE.
524
525 2001-12-17  Richard Henderson  <rth@redhat.com>
526
527         * config/alpha/alpha.md (unop): Encode RB as $sp.
528
529 2001-12-17  Neil Booth  <neil@daikokuya.demon.co.uk>
530
531         * Makefile.in: Update dependencies.
532         * c-lang.c: Remove unnecessary includes.
533         (deferred_fns, start_cdtor, finish_cdtor, defer_fn): Move to
534         c-objc-common.c.
535         (finish_file): Move body to c_common_finish_file.
536         * c-objc-common.c: Include varray.h and ggc.h.
537         (deferred_fns, start_cdtor, finish_cdtor, defer_fn,
538         expand_deferred_fns, c_objc_common_finish_file): Moved from c-lang.c.
539         (c_objc_common_init): Initialize deferred function array.
540         * c-tree.h (c_objc_common_finish_file,
541         static_ctors, static_dtors): New.
542 objc:
543         * Make-lang.in: Update dependencies.
544         * objc/objc-act.c: Don't include varray.h.
545         (defer_fn, deferred_fns): Move to c-objc-common.c.
546         (objc_init): Similarly for initialization of it.
547         (finish_file): Move some to c-objc-common.c, use
548         c_objc_common_finish_file.
549
550 2001-12-17  Aldy Hernandez  <aldyh@redhat.com>
551
552         * config/rs6000/rs6000.c: Remove is_gpr_return_reg prototype.
553
554 2001-12-17  Neil Booth  <neil@daikokuya.demon.co.uk>
555
556         * doc/cppinternals.texi: Update.
557
558 Mon Dec 17 14:21:21 2001  Jeffrey A Law  (law@redhat.com)
559
560         * expmed.c (emit_store_flag): Extract updated comparison code
561         from the return value of compare_from_rtx.
562         * expr.c (do_store_flag): Similarly.
563
564 2001-12-17  Nick Clifton  <nickc@cambridge.redhat.com>
565
566         * caller-save.c (init_caller_save): Use MODE_BASE_REG_CLASS in
567         preference to BASE_REG_CLASS.
568         * recog.c (preprocess_constraints): Ditto.
569         * regclass.c (record_operand_costs, scan_one_insn, regclass,
570         record_reg_classes, record_address_regs): Ditto.
571         * regrename.c (scan_rtx_address, scan_rtx,
572         replace_oldest_value_addr, replace_oldest_value_mem): Ditto.
573         * reload.c (find_reloads, find_reloads_address,
574         find_reloads_address_1): Ditto.
575         * reload1.c (maybe_fix_stack_asms): Ditto.
576         * defaults.h (MODE_BASE_REG_CLASS): Provide default
577         definition.
578         * doc/tm.texi: Document MODE_BASE_REG_CLASS.
579
580         * config/arm/arm.h (MODE_BASE_REG_CLASS): Define.
581
582 2001-12-17  Joseph S. Myers  <jsm28@cam.ac.uk>
583
584         * doc/install.texi2html: Use -I $SOURCEDIR.
585
586         Separate user and internals manuals.
587         * Makefile.in (info, $(docdir)/gcc.info, dvi, gcc.dvi): Update
588         dependencies.
589         ($(docdir)/gccint.info, gccint.dvi): New targets.
590         (maintainer-clean, install-info, uninstall): Update.
591         * doc/.cvsignore: Add gccint.info*.
592         * doc/include/gcc-common.texi: New file.
593         * doc/gcc.texi: Use it.  Adjust to be a user-only manual.  Put
594         copyright notice in a macro.  Don't include ISBN unless FSFPRINT
595         is defined.
596         * doc/gccint.texi: New file.
597         * doc/configfiles.texi, doc/extend.texi, doc/invoke.texi,
598         doc/md.texi, doc/passes.texi, doc/tm.texi, doc/trouble.texi:
599         Update for separate user and internals manuals.
600
601 2001-12-17  Dale Johannesen  <dalej@apple.com>
602
603          * config/rs6000/rs6000.h:  CPP_CPU_SPEC: add mcpu=7400.
604          ASM_CPU_SPEC: Ditto.
605          RTX_COSTS: Fix timing info for 7450 multiply.
606          * config/rs6000/rs6000.md:  Fix timing info for 7450 imul.
607          Allow floats to be kept in int regs in movsf_low,
608          movsf_low_st (Darwin only)
609
610 2001-12-17  Aldy Hernandez  <aldyh@redhat.com>
611
612         * config/rs6000/rs6000.c (vrsave_operation): Recognize SETs in
613         parallel.
614         (is_gpr_return_reg): New.
615         (rs6000_emit_prologue): Call generate_set_vrsave with additional
616         argument.  Save only registers in the mask.  Attach
617         REG_FRAME_RELATED_EXPR note to altivec offsets.  Do not call
618         rs6000_frame_related when saving VRSAVE.
619         (rs6000_emit_epilogue): Call generate_set_vrsave with additional
620         argument.  Restore only registers in the mask.  Restore altivec
621         registers after we restore CR.
622         (generate_set_vrsave): New parameter epiloguep.  Generate unspec
623         sets instead of clobbers for call saved registers.
624         (altivec_frame_fixup): New.
625
626 2001-12-17  Richard Henderson  <rth@redhat.com>
627
628         * config/sparc/sparc.md (movdi_zero): Remove.
629         (movdi_insn_sp32_v9): New.
630
631 2001-12-17  Richard Henderson  <rth@redhat.com>
632
633         * cfgcleanup.c (outgoing_edges_match): Check for insn match with
634         a single outgoing edge too.
635
636 Mon Dec 17 18:27:52 CET 2001  Jan Hubicka  <jh@suse.cz>
637
638         * cfgrtl.c (redirect_edge_and_branch):  Do simplify abnormal
639         edges resulting from computed jump
640
641 Mon Dec 17 17:57:05 CET 2001  Jan Hubicka  <jh@suse.cz>
642
643         * Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
644         * basic-block.h (CLEANUP_THREADING): New constant.
645         * cfgcleanup.c: Include cselib.h
646         (thread_jump, mark_effect): New functions.
647         (try_forward_edges): Do jump threading when asked for.
648         * jump.c (mark_modified_reg, save_regs, num_same_regs, modified_regs,
649         modified_mem, thread_jumps, rtx_equal_for-thread_p): Kill.
650         * rtl.h (thread_jumps, rtx_equal_for_thread_p): Kill.
651         * toplev.c (rest_of_compilation): Do now call thread_jumps; use
652         CLEANUP_THREAD instead.
653
654 2001-12-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
655
656         * sparc/linux.h (STARTFILE_SPEC): Fix typo in last change.
657
658 2001-12-17  Tom Rix  <trix@redhat.com>
659
660         * config/rs6000/rs6000.c (expand_block_move): Fix limits on max size
661         of bytes.
662
663 2001-12-17  Richard Sandiford  <rsandifo@redhat.com>
664
665         * target.h (asm_out.byte_op, asm_out.aligned_op, asm_out.unaligned_op,
666         asm_out.integer): New fields.
667         * target-def.h (TARGET_ASM_BYTE_OP, TARGET_ASM_ALIGNED_[HSDT]I_OP,
668         TARGET_ASM_UNALIGNED_[HSDT]I_OP, TARGET_ASM_INTEGER): New initialisers.
669         (TARGET_ASM_ALIGNED_INT_OP, TARGET_ASM_UNALIGNED_INT_OP): Collect
670         the individual initialisers together.
671         (TARGET_ASM_OUT): Add the new initialisers.
672         * output.h (assemble_integer): Return bool.
673         (integer_asm_op): Declare.
674         (default_assemble_integer): Declare.
675         (assemble_aligned_integer): New interface to assemble_integer.
676         * varasm.c (integer_asm_op): New function to select pseudo-op.
677         (default_assemble_integer): Default implementation of asm_out.integer.
678         (assemble_integer): Use the new target hook.  Split objects into
679         words or bytes if the target hook fails.  Return bool.
680         * doc/tm.texi (ASM_OUTPUT_CHAR, ASM_OUTPUT_BYTE, ASM_OUTPUT_SHORT,
681         ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_OUTPUT_QUADRUPLE_INT,
682         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
683         UNALIGNED_DOUBLE_INT_ASM_OP): Undocument.
684         Document new target hooks.
685
686         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Use integer_asm_op.
687         * dwarf2asm.c (unaligned_integer_asm_op): Remove.
688         (dw2_assemble_integer): New.
689         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
690         dw2_asm_output_pcrel, dw2_asm_output_addr, dw2_asm_output_addr_rtx,
691         dw2_asm_output_encoded_addr_rtx): Use it.
692         (dw2_asm_output_nstring): Use assemble_integer for the null terminator.
693         (dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128): Use
694         integer_asm_op to get the byte pseudo-op.  Use assemble_integer
695         if it returns NULL.
696         * dwarf2asm.h (dw2_assemble_integer): Declare.
697         * dwarfout.c: Include dwarf2asm.h.  Use dwarf2 functions for the
698         default implementation of most macros.
699         (output_unsigned_leb128): Use dw2_asm_output_data.
700         (output_signed_leb128, dwarfout_source_line): Likewise.
701         (output_reg_number): Use dw2_assemble_integer.
702         (generate_macinfo_entry): Separate the type and offset arguments.
703         Use assemble_integer to write the value.
704         (dwarfout_start_source_file): Update generate_macinfo_entry usage.
705         (dwarfout_end_source_file, dwarfout_define, dwarfout_undef): Likewise.
706         * final.c (output_addr_const): Don't put brackets round a subtracted
707         symbol value or ".".
708         * halfpic.c (half_pic_finish): Use assemble_aligned_integer.
709
710         * config/1750a/1750a.c (assemble_integer_1750a): New,
711         * config/alpha/alpha.h (literal_section): Avoid ASM_OUTPUT_INT.
712         * config/arc/arc.c (arc_assemble_integer): New.
713         * config/arc/arc.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
714         * config/arm/arm.c (arm_poke_function_name): Likewise.
715         (arm_assemble_integer): New, extracted from...
716         * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): ...here, now removed.
717         (ARM_TRAMPOLINE_TEMPLATE, ARM_FUNCTION_PROFILER): Avoid ASM_OUTPUT_INT.
718         (ARM_FUNCTION_PROFILER): Likewise.
719         * config/avr/avr-protos.h (asm_output_byte): Remove.
720         (asm_output_char, asm_output_short): Remove.
721         * config/avr/avr.c (avr_assemble_integer): New.
722         (asm_output_byte, asm_output_char, asm_output_short): Remove.
723         * config/clipper/clipper.h (ASM_LONG): Remove.
724         * config/dsp16xx/dsp16xx-protos.h (asm_output_long): Remove.
725         * config/dsp16xx/dsp16xx.c (asm_output_long): Remove.
726         * config/elxsi/elxsi.c (elxsi_assemble_integer): New.
727         * config/i370/i370.c (i370_hlasm_assemble_integer): New.
728         * config/i370/i370.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_SHORT.
729         (ASM_BYTE, ASM_SHORT, ASM_LONG): Delete.
730         * config/i386/att.h, (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
731         * config/i386/linux.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Use
732         ASM_LONG instead of UNALIGNED_INT_ASM_OP.
733         * config/i386/sco5.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
734         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
735         * config/i386/sysv4.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Use
736         ASM_LONG instead of UNALIGNED_INT_ASM_OP.
737         * config/i860/fx2800.h (ASM_FILE_END): Avoid ASM_LONG.
738         * config/i860/i860.c (i860_output_function_epilogue): Likewise.
739         * config/i860/i860.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
740         (ASM_SHORT, ASM_LONG): Undefine.
741         * config/i860/paragon.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
742         * config/i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
743         * config/i960/i960.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
744         * config/ia64/ia64.c (ia64_assemble_integer): New.
745         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use integer_asm_op.
746         (ASM_OUTPUT_DWARF_PCREL): Likewise.
747         * config/m68hc11/m68hc11.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
748         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_VEC_ELT): Avoid ASM_LONG.
749         (ASM_SHORT, ASM_LONG): Remove.
750         * config/m68k/m68k.h (INT_OP_GROUP): New macro.
751         (INT_OP_STANDARD, INT_OP_DOT_WORD, INT_OP_NO_DOT, INT_OP_DC): New
752         macros, the allowed values for INT_OP_GROUP.
753         * config/m68k/amix.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP
754         * config/m68k/atari.h (ASM_OUTPUT_ASCII): Likewise
755         * config/m68k/m68kelf.h (ASM_OUTPUT_ASCII): Likewise
756         * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP): Remove.
757         (INT_OP_GROUP): Define to INT_OP_NO_DOT.
758         * config/m68k/dpx2.h (ASM_LONG): Undefine.
759         (INT_OP_GROUP): Define to INT_OP_DC.
760         * config/m68k/dpx2g.h (ASM_LONG): Undefine.
761         * config/m68k/hp320.h (INT_OP_GROUP): Define to INT_OP_NO_DOT.
762         * config/m68k/lynx.h (ASM_LONG): Undefine.
763         * config/m68k/dpx2g.h (ASM_LONG): Undefine.
764         * config/m68k/m68kelf.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
765         * config/m68k/m68kv4.h (ASM_OUTPUT_ASCII): Likewise.
766         (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_*.
767         * config/m68k/mot3300.h (INT_OP_GROUP): Define to INT_OP_STANDARD
768         for GAS and INT_OP_NO_DOT otherwise.
769         (ASM_CHAR, ASM_BYTE, ASM_SHORT, ASM_LONG): Remove.
770         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
771         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Avoid ASM_LONG.
772         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
773         * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP): Remove.
774         (INT_OP_GROUP): Define to INT_OP_STANDARD.
775         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
776         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Avoid LONG_ASM_OP.
777         (ASM_OUTPUT_ASCII): Avoid BYTE_ASM_OP.
778         * config/m68k/tower-as.h (ASM_LONG): Remove.
779         (INT_OP_GROUP): Define to INT_OP_NO_DOT.
780         * config/m88k/m88k.c (output_tdesc): Avoid ASM_LONG.
781         * config/m88k/m88k.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
782         (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Avoid ASM_LONG.
783         * config/mips/iris5.h (TARGET_IRIX5): Define.
784         * config/mips/mips.c (mips_assemble_integer): New.
785         * config/mips/sni-svr4.h (ASM_LONG): Undefine.
786         * config/mmix/mmix-protos.h (mmix_asm_output_double_int): Remove.
787         * config/mmix/mmix.c (mmix_assemble_integer): New.
788         (mmix_asm_output_double_int): Remove.
789         (mmix_print_operand): Call mmix_output_octa directly.
790         * config/mmix/mmix.h (ASM_LONG): Remove.
791         * config/ns32k/ns32k.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
792         * config/pa/pa.c (pa_assemble_integer): New.
793         (pa_override_options): Only use aligned DI ops on 64-bit targets.
794         Only use the unaligned ops if TARGET_GAS.
795         * config/pdp11/pdp11.c (pdp11_assemble_integer): New.
796         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_SHORT.
797         * config/pj/pj.h (ASM_LONG): Undefine.
798         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Undefine.
799         * config/rs6000/rs6000.c (rs6000_assemble_integer): New, mostly
800         extracted from ASM_OUTPUT_INT in sysv4.h.  Use in_text_section()
801         and in_toc_section() rather than the in_section variable.
802         (rs6000_override_options): Only use DI ops when TARGET_POWERPC64.
803         * config/rs6000/sysv4.h (TOC_SECTION_FUNCTION): Add in_toc_section().
804         (RELOCATABLE_NEEDS_FIXUP): Define.
805         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Change space to tab.
806         * config/s390/linux.h (ASM_SHORT, ASM_LONG, ASM_QUAD): Remove.
807         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Use integer_asm_op
808         to get the word directive.
809         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
810         * config/s390/s390.c (s390_assemble_integer): New.
811         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Use
812         integer_asm_op to get the word directive.
813         * config/sparc/sol2.h (ASM_SHORT, ASM_LONG): Remove.
814         * config/sparc/sparc-protos.h (output_double_int): Remove.
815         * config/sparc/sparc.c (output_double_int): Move to...
816         (sparc_assemble_integer): ...this new function.
817         (sparc_override_options): Only use .uaxword if TARGET_ARCH64.
818         * config/sparc/sparc.h (ASM_SHORT, ASM_LONG, ASM_LONGLONG): Remove.
819         * config/sparc/sysv4.h (ASM_LONG): Remove.
820         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Avoid
821         ASM_LONG.
822         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Use assemble_aligned_integer.
823         * config/we32k/we32k.h (TRAMPOLINE_TEMPLATE): Likewise.
824
825         * config/1750a/1750a.c, config/a29k/a29k.c, config/alpha/alpha.c,
826         config/arc/arc.c, config/arm/arm.c, config/avr/avr.c, config/c4x/c4x.c,
827         config/clipper/clipper.c, config/convex/convex.c, config/cris/cris.c,
828         config/d30v/d30v.c, config/dsp16xx/dsp16xx.c, config/elxsi/elxsi.c,
829         config/fr30/fr30.c, config/h8300/h8300.c, config/i370/i370.c,
830         config/i386/i386.c, config/i860/i860.c, config/i960/i960.c,
831         config/ia64/ia64.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
832         config/m68k/m68k.c, config/m88k/m88k.c, config/mips/mips.c,
833         config/mmix/mmix.c, config/mn10200/mn10200.c, config/mn10300/mn10300.c,
834         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
835         config/sh/sh.c, config/sparc/sparc.c, config/stormy16/stormy16.c,
836         config/v850/v850.c, config/vax/vax.c, config/we32k/we32k.c
837         (TARGET_ASM_BYTE_OP, TARGET_ASM_ALIGNED_HI_OP,
838         TARGET_ASM_ALIGNED_SI_OP, TARGET_ASM_ALIGNED_DI_OP,
839         TARGET_ASM_UNALIGNED_HI_OP, TARGET_ASM_UNALIGNED_SI_OP,
840         TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_INTEGER): Redefine as
841         appropriate.
842
843         * config/defaults.h, config/darwin.h, config/elfos.h, config/svr3.h,
844         config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
845         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
846         config/clipper/clipper.h, config/convex/convex.h, config/cris/cris.h,
847         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
848         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
849         config/i386/bsd.h, config/i386/djgpp.h, config/i386/i386.h,
850         config/i386/sco5.h, config/i386/sol2.h, config/i386/sun386.h,
851         config/i860/i860.h, config/i960/i960.h, config/ia64/ia64.h,
852         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/auxas.h,
853         config/m68k/dpx2.h, config/m68k/hp320.h, config/m68k/m68k.h,
854         config/m68k/mot3300.h, config/m68k/sgs.h, config/m68k/tower-as.h,
855         config/m88k/m88k.h, config/mcore/mcore-elf.h, config/mcore/mcore.h,
856         config/mips/iris5.h, config/mips/iris6.h, config/mips/mips.h,
857         config/mmix/mmix.h, config/mn10200/mn10200.h, config/mn10300/mn10300.h
858         config/ns32k/encore.h, config/ns32k/ns32k.h, config/pa/pa-64.h,
859         config/pa/pa.h, config/pdp11/pdp11.h, config/pj/pj.h,
860         config/romp/romp.h, config/rs6000/linux64.h, config/rs6000/rs6000.h,
861         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/linux.h,
862         config/sh/sh.h, config/sparc/linux64.h, config/sparc/sol2.h,
863         config/sparc/sp64-elf.h, config/sparc/sparc.h, config/sparc/sysv4.h,
864         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
865         config/we32k/we32k.h (ASM_OUTPUT_CHAR, ASM_OUTPUT_BYTE, ASM_BYTE_OP,
866         ASM_BYTE, ASM_OUTPUT_SHORT, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT,
867         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
868         UNALIGNED_DOUBLE_INT_ASM_OP): Undefine, where defined.
869
870 2001-12-17  Stan Shebs  <shebs@apple.com>
871
872         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
873         (STACK_BOUNDARY): Remove definition.
874         (CPP_PREDEFINES): Define __POWERPC__.
875
876 2001-12-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
877
878         * doc/c-tree.texi (Trees): Only refer to GCC.
879
880 2001-12-17  Andreas Jaeger  <aj@suse.de>
881
882         * c-common.def: Fix typo in comment.
883
884 2001-12-16  David O'Brien  <obrien@FreeBSD.org>
885
886         * config.gcc (sparc64-*-freebsd*): Add target.
887         * config/sparc/freebsd.h: New file.
888         * config/sparc/sparc.h (LIB_SPEC, LINK_SPEC): Don't define.
889         * config/sparc/sunos4.h (LIB_SPEC, LINK_SPEC): Define.
890         * config/sparc/sysv4.h (CPP_PREDEFINES): Undefine before defining.
891
892 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
893
894         * config/rs6000/rs6000.c (rs6000_legitimize_address): Force both
895         PLUS operands into registers for altivec mode.
896
897 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
898
899         * builtins.c (apply_args_size): Change regno to unsigned.
900
901 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
902
903         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): Change
904         ALTIVEC_ARG_MAX_REG to ALTIVEC_ARG_NUM_REG.
905
906 2001-12-16  Zack Weinberg  <zack@codesourcery.com>
907
908         * c-typeck.c (error_init, pedwarn_init, warning_init): Call
909         gettext on argument before printing.
910
911         * fold-const.c (negate_expr): Always call fold on new
912         NEGATE_EXPR.
913
914 2001-12-17  Joseph S. Myers  <jsm28@cam.ac.uk>
915
916         * c-common.def (COMPOUND_LITERAL_EXPR): Contain a DECL_STMT, not
917         a DECL directly.
918         * c-common.h (COMPOUND_LITERAL_EXPR_DECL_STMT): New.
919         (COMPOUND_LITERAL_EXPR_DECL): Adjust definition.
920         * c-decl.c (build_compound_literal): Put the decl inside a
921         DECL_STMT.
922         * doc/c-tree.texi (COMPOUND_LITERAL_EXPR): Update documentation.
923         Fixes PR c/5105.
924
925 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
926
927         * config.gcc: Add powerpc-*-eabisimaltivec*.
928
929 2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
930
931         * c-common.c, c-common.h (back_end_hook): Remove.
932         * c-lang.c (finish_file): Remove back_end_hook.
933
934 Sun Dec 16 13:13:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
935
936         * expr.c (highest_pow2_factor, case INTEGER_CST): Fix error in
937         last change.
938
939 2001-12-16  Richard Henderson  <rth@redhat.com>
940
941         * toplev.c (parse_options_and_default_flags): Don't enable
942         flag_cprop_registers at -O1.
943
944 2001-12-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
945
946         * avr.c (avr_simplify_comparision_p, adjust_insn_length,
947         mask_one_bit_p, output_reload_insisf): Don't use the 'U' suffix.
948         * avr.h (reg_class): Likewise.
949         * avr.md: Likewise.
950         * mcore.c (try_constant_tricks, mcore_byte_offset,
951         mcore_halfword_offset): Likewise.
952         * sh.c (shl_sext_kind, gen_block_redirect, split_branches): Likewise.
953         * v850.c (not_power_of_two_operand): Likewise.
954
955         * clipper/clix.h (ASM_OUTPUT_ASCII): Avoid signed/unsigned
956         warnings.
957         * convex.h (ASM_OUTPUT_ASCII): Likewise.
958         * i370.h (ASM_OUTPUT_ASCII): Likewise.
959         * i386/att.h (ASM_OUTPUT_ASCII): Likewise.
960         * i386/i386-interix.h (ASM_OUTPUT_ASCII): Likewise.
961         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
962         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
963         * i386/sco5.h (ASM_OUTPUT_ASCII): Likewise.
964         * i386/sun386.h (ASM_OUTPUT_ASCII): Likewise.
965         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
966         * i860/bsd.h (ASM_OUTPUT_ASCII): Likewise.
967         * m68k/3b1.h (ASM_OUTPUT_ASCII): Likewise.
968         * m68k/amix.h (ASM_OUTPUT_ASCII): Likewise.
969         * m68k/atari.h (ASM_OUTPUT_ASCII): Likewise.
970         * m68k/crds.h (ASM_OUTPUT_ASCII): Likewise.
971         * m68k/hp320.h (ASM_OUTPUT_ASCII): Likewise.
972         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Likewise.
973         * m68k/mot3300.h (ASM_OUTPUT_ASCII): Likewise.
974         * m68k/sgs.h (ASM_OUTPUT_ASCII): Likewise.
975         * m68k/tower-as.h (ASM_OUTPUT_ASCII): Likewise.
976         * mips/bsd-5.h (ASM_OUTPUT_ASCII): Likewise.
977         * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
978         * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
979         * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
980         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
981         * vax/vaxv.h (ASM_OUTPUT_ASCII): Likewise.
982         * we32k/we32k.h (ASM_OUTPUT_ASCII): Likewise.
983
984         * i386/uwin.h (MD_STARTFILE_PREFIX): Avoid redefinition warnings.
985         * interix.h (TARGET_MEM_FUNCTIONS): Likewise.
986         * psos.h (CPP_PREDEFINES): Likewise.
987         * rs6000/linux64.h (ROUND_TYPE_ALIGN): Likewise.
988         * rs6000/xcoff.h (RS6000_MCOUNT, RS6000_ITRUNC, RS6000_UITRUNC,
989         ASM_OUTPUT_EXTERNAL): Likewise.
990         * sparc/liteelf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
991         Likewise.
992         * sparc/sp64-elf.h (UNALIGNED_DOUBLE_INT_ASM_OP): Likewise.
993         * sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
994         Likewise.
995         * sparc/sunos4.h (SUNOS4_SHARED_LIBRARIES): Likewise.
996
997         * c-lex.c (lex_number): Use ISXDIGIT/hex_value.
998         * vax/xm-vms.h (FILE_NAME_NONDIRECTORY): Use ISUPPER/TOLOWER.
999         * fold-const.c (real_hex_to_f): Use hex_value.
1000         * real.c (asctoeg): Use hex_value & ISXDIGIT.
1001         * toplev.c (toplev_main): Call hex_init.
1002         * tradcpp.c (main): Call hex_init.
1003
1004         * nextstep-protos.h: New file.
1005         * nextstep.c: Include "rtl.h", "output.h" & "tm_p.h".
1006         * nextstep.h (INCLUDE_DEFAULTS): Delete LOCAL_INCLUDE_DIR and
1007         STANDARD_INCLUDE_DIR from the CROSS_COMPILE clause.
1008         (nextstep_asm_out_constructor, nextstep_asm_out_destructor,
1009         handle_pragma): Move prototypes to nextstep-protos.h.
1010         * config.gcc (i[34567]86-next-*, m68k-next-nextstep2*,
1011         m68k-next-nextstep[34]*): Append nextstep-protos.h to tm_p_file.
1012
1013 2001-12-16  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1014
1015         PR other/3725
1016         * configure.in: Add AC_SUBST(target_alias).
1017         * configure: Regenerated.
1018
1019 2001-12-15  Richard Henderson  <rth@redhat.com>
1020
1021         * config/alpha/alpha.md (sibcall_osf_1_er): New.
1022         (sibcall_value_osf_1_er): New.
1023
1024 2001-12-15  Dan Nicolaescu  <dann@ics.uci.edu>
1025
1026         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Rename from
1027         addrs_ok_for_ldd_peep_withmem; take MEMs as parameters, not
1028         addrs; eliminate restriction of only using fp and sp as base
1029         registers.
1030         * config/sparc/sparc-protos.h: Update.
1031         * config/sparc/sparc.md (movdi): Use TARGET_V9 not TARGET_ARCH64.
1032         (*cmp_cc_set, *cmp_ccx_set64, *movdi_zero): New insns derived
1033         from old define_peepholes.
1034         Convert all the ldd/std peepholes to peephole2.
1035
1036 2001-12-15  Ulrich Weigand  <uweigand@de.ibm.com>
1037
1038         * s390.md (prologue, epilogue, *return_si, *return_di): New.
1039         s390.c (find_unused_clobbered_reg, s390_frame_info,
1040         save_fpr, restore_fpr, s390_emit_prologue, s390_emit_epilogue): New.
1041         s390-protos.h (s390_emit_prologue, s390_emit_epilogue): Declare.
1042         s390.c (s390_arg_frame_offset): Use s390_frame_info.
1043         (leaf_function_flag, cur_is_leaf_function,
1044         save_fprs, restore_fprs, force_const_mem_late): Remove.
1045         (s390_function_prologue, s390_function_epilogue): Mostly remove.
1046         s390.md (lit): New.  Uses ...
1047         s390.c (s390_output_constant_pool): ... this, so adapt and make global.
1048         s390-protos.h (s390_output_constant_pool): Declare.
1049         s390.md (load_multiple, store_multiple): Allow use after reload.
1050         s390.c (load_multiple_operation, store_multiple_operation): Likewise.
1051         s390.h (INCOMING_FRAME_SP_OFFSET): Define.
1052         s390.h (CALL_REALLY_USED_REGISTERS): Define.
1053         config/s390/linux64.h (CALL_USED_REGISTERS): Remove, now handled ...
1054         s390.h (CONDITIONAL_REGISTER_USAGE): ... here.
1055         s390.c (s390_sr_alias_set): New global variable, initialized ...
1056         (override_options): ... here.  New.
1057         s390-protos.h (override_options): Declare.
1058         s390.h (OVERRIDE_OPTIONS): Call it.
1059         s390.c (s390_function_profiler): New.
1060         s390-protos.h (s390_function_profiler): Declare.
1061         s390.h (FUNCTION_PROFILER): Call it.
1062         s390.c (s390_profile): Remove.
1063
1064         * s390.c (reg_used_in_mem_p): PC reload counts as memory access.
1065         (addr_generation_dependency_p): Consider literal pool register loads.
1066         (s390_adjust_priority): Do not schedule load_multiple.
1067         s390.md (attribute "type"): Define some additional types.
1068         (function_unit "integer"): Adapt.
1069         (many insns): Adapt "type" attribute setting.
1070
1071         * s390.c (general_s_operand, s_imm_operand): New.
1072         (s_operand): Remove old definition, call general_s_operand instead.
1073         s390-protos.h (s_imm_operand): Declare.
1074         s390.c (base_n_index_p, r_or_s_operand, r_or_s_or_im8_operand,
1075         r_or_x_or_im16_operand, r_or_im8_operand): Remove.
1076         s390-protos.h (r_or_s_operand, r_or_s_or_im8_operand,
1077         r_or_x_or_im16_operand, r_or_im8_operand): Likewise.
1078         s390.h (PREDICATE_CODES): Add s_imm_operand, remove r_or_s*_operand.
1079         s390.md (many insns): Rework insn predicates.
1080
1081         * s390.c (legitimate_pic_operand_p, legitimate_constant_p): Accept all
1082         non-symbolic constants.  Reload will force them because of ...
1083         (s390_preferred_reload_class): ... this.  New.
1084         s390-protos.h (s390_preferred_reload_class): Declare.
1085         s390.h (PREFERRED_RELOAD_CLASS): Call it.
1086         s390.md (movdi, movsi, movdf, movsf, *reload_la_64 splitters,
1087         *reload_la_31 splitters): Handle constants after reload.
1088         (many insns): no longer force all constants immediately.
1089         s390.c (legitimate_reload_constant_p): New helper routine.
1090         s390-protos.h (legitimate_reload_constant_p): Declare.
1091         s390.c (print_operand): Clean up CONST_INT case, add CONST_DOUBLE case.
1092
1093         * s390.h (FIRST_PSEUDO_REGISTER, FRAME_POINTER_REGNUM,
1094         HARD_FRAME_POINTER_REGNUM, REGISTER_NAMES): Add virtual frame pointer.
1095         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Update.
1096         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Likewise.
1097         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
1098         (DWARF_FRAME_REGISTERS): Define.
1099         s390.c (regclass_map): Add virtual frame pointer.
1100         (legitimate_la_operand_p): Allow use of virtual frame pointer.
1101         s390.md (*la_ccclobber, *addaddr_ccclobber): New.
1102         (addaddr, addsi_64): Delete.
1103
1104         * s390.h (HARD_REGNO_MODE_OK): Allow SImode and DImode values in
1105         floating point registers.
1106         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Define.
1107         (ADDR_FP_REGS, GENERAL_FP_REGS): New register classes.
1108         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1109
1110         * s390.md (movti): Replace multi-insn output with splitters.
1111         (movdi_31, movdf_31): Likewise.
1112         (movti_ss, movdi_ss, movsi_ss, movdf_ss, movsf_ss): New.
1113         (movdi_lhi, movdi_lli, movdi_larl, movsi_lhi, movsi_lli): New.
1114         (movdi_64, movdi_31, movsi, movdf_64, movdf_31): Adapt.
1115         (movdf_soft_64, movdf_soft_31, movsf_soft): Remove.
1116         (movsf_64, movsf_31): Remove, replace by ...
1117         (movsf): ... this.
1118         (movqi_64): Use lhi instead of llill.
1119         (*movstrictqi, *movstricthi): Don't use (strict_low_part (mem)).
1120
1121         * s390.md (extendsidi2, *extendsidi2, extendhidi2, *extendhidi2,
1122         extendqidi2, extendhisi2, *extendhisi2, extendqisi2,
1123         extendqihi2 and associated splitters): Reworked.
1124         (zero_extendsidi2, zero_extendsidi2, *zero_extendsidi2,
1125         zero_extendhidi2, *zero_extendhidi2, zero_extendqidi2,
1126         zero_extendqidi2, *zero_extendqidi2, zero_extendhisi2,
1127         *zero_extendhisi2_64, zero_extendhisi2_31, zero_extendqisi2,
1128         *zero_extendqisi2_64, *zero_extendqisi2_mem_31,
1129         zero_extendqisi2_reg_31, zero_extendqihi2, *zero_extendqisi2_64,
1130         zero_extendqihi2, zero_extendqihi2_64, zero_extendqihi2_31,
1131         and associated splitters): Likewise.
1132         (*sethighqisi, *sethighhisi, *sethighqidi_64, *sethighqidi_31
1133         and associated splitters): New.
1134         (truncdisi2, truncdihi2, truncdiqi2, truncsihi2, do_truncsihi2,
1135         *truncsihi2_64, truncsiqi2, trunchiqi2): Remove.
1136         (ashlhi3, ashrhi3, lshrhi3, abshi3): Remove.
1137         s390.h (PROMOTE_PROTOTYPES): Remove.
1138         config/s390/linux64.h (PROMOTE_PROTOTYPES): Likewise.
1139
1140         * s390.md (muldi3): Delete, use instead ...
1141         (mulsidi3): ... this.
1142         (*muldi3_64): Rename to muldi3.
1143         (mulsi_6432): Fix template.
1144         (divdi3, moddi3): Delete, replace by ...
1145         (divmoddi4): ... this.
1146         (divmodtidi3): Fix template.
1147         (divmodtisi3): New.
1148         (udivdi3, umoddi3): Delete, replace by ...
1149         (udivmoddi4): ... this.
1150         (udivmodtidi3): Fix template.
1151         (divsi3, modsi3): Delete, replace by ...
1152         (divmodsi4): ... this.
1153         (divmoddisi3): Fix template.
1154         (udivsi3, umodsi3): Adapt.
1155
1156         * s390.md (anddi3): Remove SS alternative, use instead ...
1157         (anddi3_ss, anddi3_ss_inv): ... these.
1158         (anddi3_ni): New.
1159         (andsi3*, andhi3*, andqi3*): Likewise.
1160         (iordi3): Remove SS alternative, use instead ...
1161         (iordi3_ss, iordi3_ss_inv): ... these.
1162         (iordi3_oi): New.
1163         (iorsi3*, iorhi3*, iorqi3*): Likewise.
1164         (iordi3_cc, iordi3_cconly, iorsi3_cc, iorsi3_cconly): New.
1165         (xordi3): Remove SS alternative, use instead ...
1166         (xordi3_ss, xordi3_ss_inv): ... these.
1167         (xordi3_oi): New.
1168         (xorsi3*, xorhi3*, xorqi3*): Likewise.
1169         (xordi3_cc, xordi3_cconly, xorsi3_cc, xorsi3_cconly): New.
1170         (one_cmpldi2, one_cmplsi2, one_cmplhi2, one_cmplqi2):
1171         Expand to XOR with -1.
1172         (*one_cmpldi2, *one_cmplsi2, *one_cmplhi2): Remove.
1173         (cmpdi_tm): Delete, replace by ...
1174         (cmpdi_tm_reg, cmpdi_tm_mem): ... these.
1175         (cmpsi_cct): Delete, replace by ...
1176         (cmpsi_tm_reg, cmpsi_tm_mem): ... these.
1177         (cmpdi_tm2, cmpsi_tm2): Improve.
1178         (cmphi_tm_sub, cmpqi_tm_sub, cmpqi_tm2, cmpqi_tm): New.
1179         s390.c (s390_single_hi, s390_extract_hi,
1180         s390_single_qi, s390_extract_qi): New helper routines.
1181         s390-protos.h (s390_single_hi, s390_extract_hi,
1182         s390_single_qi, s390_extract_qi): Declare.
1183         s390.c (tmxx_operand, const1_operand): Remove.
1184         s390-protos.h (tmxx_operand, const1_operand): Likewise.
1185         s390.h (PREDICATE_CODES): Likewise.
1186
1187         * s390.md (sqrtdf2, sqrtsf2): New.
1188
1189         * s390.h (CRT_CALL_STATIC_FUNCTION): Define.
1190         (check_and_change_labels): Remove section-change special case.
1191
1192         * s390.h (RETURN_ADDR_RTX): Fix use of __builtin_return_address
1193         in leaf functions.  Needs ...
1194         (DYNAMIC_CHAIN_RTX):  ... this.  New.
1195
1196         * s390.c (emit_pic_move): Don't generate pseudos if no_new_pseudos.
1197
1198         * s390.md (movstrdix_64, movstrsix_31, movstrdi_64, movstrsi_31,
1199         clrstrsi_64, clrstrsi_31, cmpstr_64, cmpstr_31): Do not clobber
1200         input operands using a match_dup clause.
1201         (movstrdi, movstrsi, clrstrdi, clrstrsi, cmpstrdi, cmpstrsi): Adapt.
1202
1203         * s390.md (floatdidf2, floatdisf2, floatsidf2, floatsidf2_ieee,
1204         floatsisf2, floatsisf2_ieee): Add missing CC clobber.
1205
1206         * s390.md (floatsidf2_ibm): Use correct operand.
1207
1208         * s390.md (fixuns_truncdfdi2, fixuns_truncdfsi2, fix_truncdfsi2,
1209         fixuns_truncsfdi2, fixuns_truncsfsi2, floatsidf2): Remove use of
1210         non-portable constants.
1211         s390.c (s390_gen_rtx_const_DI): New helper routine.
1212         s390-protos.h (s390_gen_rtx_const_DI): Declare.
1213
1214         * s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Fix alignment.
1215
1216         * config/s390/linux.h (ASM_OUTPUT_SHORT, ASM_OUTPUT_CHAR,
1217         ASM_OUTPUT_BYTE): Clean up assembly output.
1218         (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGN): Remove duplicate definitions.
1219         (ASM_OUTPUT_ASCII): Remove.
1220
1221         * config/s390/t-linux (CRTSTUFF_T_CFLAGS_S): Define.
1222
1223 2001-12-15  Zack Weinberg  <zack@codesourcery.com>
1224
1225         * unwind-dw2-fde-glibc.c: #define _Unwind_Find_FDE to itself
1226         before including unwind-dw2-fde.c, if we are not using the
1227         special code in this file.
1228
1229 2001-12-15  Richard Henderson  <rth@redhat.com>
1230
1231         * config/alpha/alpha.h (TARGET_SWITCHES): Turn on
1232         MASK_EXPLICIT_RELOCS if the assembler supports it.
1233         * configure.in (HAVE_AS_EXPLICIT_RELOCS): New.
1234         * configure, config.in: Rebuild.
1235
1236 Sat Dec 15 17:53:03 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1237
1238         * calls.c (emit_call_1): If ECF_SP_DEPRESSED, pretend have adjusted
1239         for rounded_stack_size.
1240
1241 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1242
1243         * c-typeck.c, config/i386/i386.h, config/mcore/mcore.h,
1244         config/ns32k/ns32k.h, config/rs6000/sysv4.h, fold-const.c,
1245         toplev.c, cppinit.c, cppmacro.c, gcc.c: Use "built-in" and
1246         "bit-field" spellings in messages.
1247         * po/gcc.pot: Regenerate.
1248
1249 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1250
1251         * gcc.c, config/fr30/fr30.c, config/v850/v850-c.c, toplev.c: Use
1252         American spelling in messages.
1253         * po/gcc.pot: Regenerate.
1254
1255 2001-12-15  Kazu Hirata  <kazu@hxi.com>
1256
1257         * config/h8300/h8300.md: Adjust whitespacing.  Remove
1258         constraints from expanders.  Replace \@ with @.
1259
1260 2001-12-15  Richard Earnshaw  <rearnsha@arm.com>
1261
1262         * arm/unknown-elf.h (CPP_PREDEFINES): Add a suitable default.
1263
1264 2001-12-15  Ulrich Weigand  <uweigand@de.ibm.com>
1265
1266         * regrename.c (copyprop_hardreg_forward): Do not keep register
1267         value data live across abnormal call or eh egdes.
1268
1269 Sat Dec 15 08:29:45 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1270
1271         * expr.c (highest_pow2_factor, case INTEGER_CST): Return
1272         BIGGEST_ALIGNMENT for 0.
1273
1274 Sat Dec 15 14:13:03 CET 2001  Jan Hubicka  <jh@suse.cz>
1275
1276         * predict.def (PRED_NORETURN): Make probabilities match reality.
1277         (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL, PRED_ERROR_RETURN):
1278         Likewise.
1279
1280 2001-12-15  Jakub Jelinek  <jakub@redhat.com>
1281
1282         * configure.in: Check for ld.
1283         (HAVE_LD_EH_FRAME_HDR): Define if ld supports --eh-frame-hdr option.
1284         * configure, config.in: Rebuilt.
1285         * config.gcc: Add crtbeginT.o to extra_parts where needed.
1286         * config/t-linux (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde-glibc
1287         frame unwinding on Linux.
1288         * config/t-linux-gnulibc1 (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde
1289         frame unwinding.
1290         * config/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1291         (LINK_EH_SPEC): Define.
1292         * config/i386/gnu.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1293         * config/ia64/linux.h (STARTFILE_SPEC, LINK_EH_SPEC): Define.
1294         * config/ia64/fde-glibc.c (_Unwind_IteratePhdrCallback): Don't
1295         iterate further if pc falls into current library, but fde was not
1296         found.
1297         * config/sparc/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static
1298         if using glibc.
1299         (LINK_EH_SPEC): Define.
1300         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64):
1301         Use crtbeginT.o for -static.
1302         (LINK_EH_SPEC): Define.
1303         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1304         * Makefile.in (crtbeginT.o): Add rule.
1305         * gcc.c (init_gcc_specs): For -static-libgcc, use -lgcc -lgcc_eh.
1306         If neither -static-libgcc nor -shared-libgcc is passed and -shared,
1307         use -lgcc if LINK_EH_SPEC is defined and -lgcc_s -lgcc if not.
1308         If none of the above switches are passed, use -lgcc -lgcc_eh.
1309         (init_spec): If LINK_EH_SPEC is defined, prepend it to link_spec.
1310         * mklibgcc.in: Don't include LIB2ADDEH objects into libgcc.a if
1311         creating libgcc_s.so, put them into separate libgcc_eh.a instead.
1312         * unwind-dw2-fde.c: Don't include any headers if this file
1313         is included from other .c file.
1314         * unwind-dw2-fde-glibc.c: New file.
1315         * crtstuff.c (USE_PT_GNU_EH_FRAME, USE_EH_FRAME_REGISTRY): Define.
1316         Use it instead of EH_FRAME_SECTION_NAME where appropriate.
1317
1318 2001-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1319
1320         * builtins.c (expand_builtin_memcmp): Mark parameter with
1321         ATTRIBUTE_UNUSED.
1322         * cfgcleanup.c (insns_match_p): Likewise.
1323         * regrename.c (mode_change_ok): Likewise.
1324         * gcc.c (execute): Const-ify.
1325
1326 2001-12-14  Aldy Hernandez  <aldyh@redhat.com>
1327
1328         * c-parse.in (typename): Do not split attributes.
1329         Remove unsupported attributes warning.
1330
1331         * c-decl.c (groktypename): Apply attributes.
1332
1333 2001-12-14  Richard Henderson  <rth@redhat.com>
1334
1335         * config/ia64/ia64.c (spill_restore_mem): Mark iterator
1336         initialization as possibly dead.
1337
1338 2001-12-14  Richard Henderson  <rth@redhat.com>
1339
1340         * regrename.c (mode_change_ok): New.
1341         (find_oldest_value_reg): Use it.
1342
1343 2001-12-14  Richard Henderson  <rth@redhat.com>
1344
1345         * regrename.c (struct value_data): Add max_value_regs.
1346         (init_value_data): Initialize it.
1347         (kill_value): Kill values that overlap the dying register.
1348         (set_value_regno): New.
1349         (kill_set_value, kill_autoinc_value, copy_value): Use it.
1350         (copyprop_hardreg_forward_1): Kill earlyclobber operands
1351         before looking at inputs.
1352
1353 2001-12-14  David Edelsohn  <edelsohn@gnu.org>
1354
1355         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Handle
1356         DECL_WEAK for function descriptors.
1357         * config/rs6000/xcoff.h (HANDLE_PRAGMA_WEAK): Define if assembler
1358         weak support present.
1359         (ASM_WEAKEN_LABEL): Same.
1360
1361 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1362
1363         * config/h8300/h8300.md (anonymous pattern): Add a missing
1364         mode.
1365
1366 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1367
1368         * config/h8300/h8300.c (h8300_adjust_insn_length): Fix a
1369         comment typo.
1370
1371 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1372
1373         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
1374         Remove the initialization requierment.
1375         (h8300_handle_tiny_data_attribute): Likewise.
1376
1377 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1378
1379         * config/h8300/h8300.md (udivqi3): Remove.
1380         (divqi3): Likewise.
1381         (udivhi3): Likewise.
1382         (divhi3): Likewise.
1383         (umodqi3): Likewise.
1384         (modqi3): Likewise.
1385         (umodhi3): Likewise.
1386         (modhi3): Likewise.
1387         (udivmodqi3): New.
1388         (divmodqi3): Likewise.
1389         (udivmodhi3): Likewise.
1390         (divmodhi3): Likewise.
1391
1392 Sat Dec 15 01:39:12 CET 2001  Jan Hubicka  <jh@suse.cz>
1393
1394         * cfgcleanup.c (flow_find_cross_jump): Replace tests for note
1395         by active_insn_p; count conditional jump as instruction.
1396
1397 2001-12-14  DJ Delorie  <dj@redhat.com>
1398             Danny Smith  <dannysmith@users.sourceforge.net>
1399
1400         * config/i386/cygwin.h (I386_PE_STRIP_ENCODING): Handle '*'
1401         at SYM_NAME[0] or SYM_NAME[3].
1402         (STRIP_NAME_ENCODING): Don't check for leading '*'.
1403
1404 2001-12-14  Ira Ruben   <ira@apple.com>
1405
1406         Add -### option (displays driver-generated commands without
1407         executing and quotes all arguments).
1408         * doc/invoke.texi: Add -###.
1409         * gcc.c (verbose_only_flag) - New flag.
1410         * (execute): If -### write quoted arguments and return.
1411         * (display_help): Print meaning of -###.
1412         * (process_command): Handle -###.
1413
1414 2001-12-14  Ira Ruben   <ira@apple.com>
1415
1416         Fix to no allow -save-temps to clobber user's source file.
1417         * gcc.c: Add static globals input_stat and input_stat_set.
1418         (do_spec_1): For 'g', 'u', 'U' case with save_temps_flag
1419         set, check that user's input file is not overwritten.
1420         (set_input): Reset input_stat_set for each new file.
1421
1422 Fri Dec 14 22:14:44 CET 2001  Jan Hubicka  <jh@suse.cz>
1423
1424         * predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
1425
1426 2001-12-14  Zack Weinberg  <zack@codesourcery.com>
1427
1428         * combine.c (record_dead_and_set_regs): Use
1429         regs_invalidated_by_call.  Don't note stores for CALL_INSNs.
1430
1431 2001-12-14  Roger Sayle <roger@eyesopen.com>
1432
1433         * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and
1434         __builtin_fsqrt to __builtin_sqrt.
1435
1436         * builtins.c (expand_builtin_mathfn,expand_builtin): Same.
1437         * doc/extend.texi: Simplify documentation to match patch.
1438
1439 Fri Dec 14 21:23:54 CET 2001  Jan Hubicka  <jh@suse.cz>
1440
1441         * config.gcc: Revamp target_cpu_default2 to strings;
1442         support new x86 variants.
1443         * i386.c (override_options): Default x86_cpu_string and x86_arch_string
1444         properly; set prefetch_sse.
1445         * i386.h (x86_prefetch_sse): Declare.
1446         (TARGET_PREFETCH_SSE): New.
1447         (CPP_CPU_DEFAULT_SPEC): Define according to the new macros.
1448         (TARGET_CPU_DEFAULT_*): New.
1449
1450 Thu Dec 13 21:57:13 CET 2001  Janis Johnson <janis187@us.ibm.com>
1451                               Jan Hubicka  <jh@suse.cz>
1452
1453         * config/i386/i386.h (struct processor_costs): Add new members
1454           prefetch_block and simultaneous_prefetches.
1455           (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): New.
1456         * config/i386/i386.c (processor_costs structs): Add values for
1457           prefetch_block and simultaneous_prefetches.
1458         * config/i386/i386.md (unspec values): Remove values for prefetch
1459           operations, which now use the PREFETCH rtx code.
1460           (prefetch_sse, prefetch_3dnow, prefetchw): Combine to use new
1461           unified prefetch support.
1462
1463 2001-12-14  Jason Merrill  <jason@redhat.com>
1464
1465         * diagnostic.c (sorry): Increment sorrycount before saving the
1466         buffer state.
1467
1468 Fri Dec 14 19:53:23 CET 2001  Jan Hubicka  <jh@suse.cz>
1469
1470         * i386.md (sqrt?f): Fix conditionals.
1471
1472 Fri Dec 14 07:29:52 2001  Douglas B. Rupp  <rupp@gnat.com>
1473
1474         * config.gcc (alpha64-dec-*vms*): New case.
1475         * config/alpha/t-vms64, config/alpha/vms-crt0-64.c: New files.
1476         * config/alpha/vms-psxcrt0-64.c, config/alpha/vms64.h: Likewise.
1477         * config/alpha/xm-vms64.h: Likewise.
1478
1479         * config/alpha/alpha.c (vms_attribute_table): Add new attributes.
1480         (alpha_write_linkage): Test for null alpha_links.
1481         (SECTION_VMS_GLOBAL, SECTION_VMS_INITIALIZE): New section attributes.
1482         (vms_section_type_flags, vms_asm_named_section): Handle them.
1483
1484 Fri Dec 14 12:05:14 CET 2001  Jan Hubicka  <jh@suse.cz>
1485
1486         * i386.c (ix86_fpmath, ix86_fpmath_string): New.
1487         (override_option): Set ix86_fpmath.
1488         * i386.h (MASK_MIX_SSE_I387): Remove.
1489         (TARGET_SSE_MATH): New.
1490         (TARGET_MIX_SSE_I387): Use ix86_fpmath.
1491         (TARGET_SWITCHES): Remove "mix-sse-i387".
1492         (fpmath_unit): New enum.
1493         (ix86_fpmath, ix86_fpmath_string): Declare.
1494         * i386.md (swapsf): Fix condition.
1495         (add?f, sub?f, mul?f, div?f, sqrt?f, min?f): Use TARGET_SSE_MATH.
1496         (fp_?f_*_nosse): New.
1497         (fp_*): Use TARGET_SSE_MATH.
1498         * invoke.texi (-mfpmath): Document.
1499         (-msse2): Add.
1500
1501 2001-12-14  Jason Merrill  <jason@redhat.com>
1502
1503         * dwarf2out.c (output_die): Print the string in the comment for
1504         a DW_FORM_strp.
1505
1506 2001-12-14  Richard Earnshaw  <rearnsha@arm.com>
1507
1508         * netbsd.h (COLLECT_SHARED_INIT_FUNC)
1509         (COLLECT_SHARD_FINI_FUNC): Remove redundant semicolon.
1510         * doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
1511         (COLLECT_SHARD_FINI_FUNC): Use @code where appropriate.
1512
1513 2001-12-13  Richard Henderson  <rth@redhat.com>
1514
1515         * regrename.c (kill_value_regno): Simplify chain removal.
1516         (kill_value): Kill all of HARD_REGNO_NREGS.
1517         (kill_set_value): Use kill_value not kill_value_regno.
1518         (kill_autoinc_value): Likewise.
1519         (copyprop_hardreg_forward): Don't collect refresh_blocks.
1520         Call delete_noop_moves.
1521
1522 2001-12-13  Aldy Hernandez  <aldyh@redhat.com>
1523
1524         * attribs.c (c_common_attribute_table): Swap decl_req and type_req
1525         for the mode attribute.
1526         (handle_mode_attribute): Handle types, not decls.
1527
1528 2001-12-13  Jason Merrill  <jason@redhat.com>
1529
1530         * c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro.
1531
1532 2001-12-13  Aldy Hernandez  <aldyh@redhat.com>
1533
1534         * config/rs6000/rs6000.md (eh_set_lr_di): Change scratch
1535         constraint to base register.
1536         (eh_set_lr_si): Same.
1537
1538 2001-12-13  Hans-Peter Nilsson  <hp@axis.com>
1539
1540         * expr.c (expand_expr, case ADDR_EXPR): Don't honor
1541         flag_force_addr for modifier != EXPAND_CONST_ADDRESS,
1542         modifier != EXPAND_INITIALIZER and modifier != EXPAND_SUM.
1543
1544 Thu Dec 13 20:30:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1545
1546         * expr.c (copy_blkmode_from_reg): Add missing braces to eliminate
1547         warning and reformat comments.
1548         (expand_assignment): Don't pass EXPAND_WRITE if LHS is component.
1549         (highest_pow2_factor, case INTEGER_CST): Return BIGGEST_ALIGNMENT
1550         if overflow.
1551
1552 2001-12-12  Aldy Hernandez  <aldyh@redhat.com>
1553
1554         * config/rs6000/rs6000.c (rs6000_override_options): Add
1555         SUBSUBTARGET_OVERRIDE_OPTIONS.
1556
1557         * config/rs6000/eabialtivec.h: New file.
1558
1559         * config/rs6000/linuxaltivec.h: New file.
1560
1561         * config.gcc: Add powerpc-*-eabialtivec and
1562         powerpc-*-linux-gnualtivec.
1563
1564 2001-12-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1565
1566         * toplev.c (process_options, parse_options_and_default_flags):
1567         Set flag_no_inline before the post_options hook.
1568
1569 2001-12-13  Richard Henderson  <rth@redhat.com>
1570
1571         * emit-rtl.c (adjust_address_1): Don't adjust address if adjust
1572         is false.
1573
1574 2001-12-13  Richard Earnshaw  <rearnsha@arm.com>
1575
1576         * collect2.c (COLLECT_SHARED_INIT_FUNC)
1577         (COLLECT_SHARD_FINI_FUNC): Define default values.
1578         (write_c_file_stat): Use them to call construtor and destructor
1579         functions in shared libraries.
1580         * doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
1581         (COLLECT_SHARD_FINI_FUNC): Document them.
1582         * config/netbsd.h (COLLECT_SHARED_INIT_FUNC)
1583         (COLLECT_SHARD_FINI_FUNC): Define.
1584
1585         * config/netbsd.h (LINK_SPEC): Don't pull in estart if creating a
1586         shared library.  Pass -shared through to the linker.
1587         * config/arm/netbsd.h (LINK_SPEC): Likewise.
1588
1589         * config/arm/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -fpic.
1590         (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME, SHLIB_OBJS, SHLIB_LINK)
1591         (SHLIB_INSTALL): Define.
1592
1593 2001-12-13  Richard Earnshaw  <rearnsha@arm.com>
1594
1595         * arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially
1596         the same way as we handle SYMBOL_REFS.
1597
1598 Thu Dec 13 07:47:24 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1599
1600         * loop.c (remove_constant_addition): Fix prototype and whitespace.
1601         (emit_prefetch_instructions): Remove warnings and whitespace
1602         changes.
1603
1604 Thu Dec 13 06:48:38 2001  Douglas B. Rupp  <rupp@gnat.com>
1605
1606         * config/alpha/vms-cc.c (preprocess_args): Fix forward
1607         declaration.
1608
1609 Thu Dec 13 12:31:07 CET 2001  Jan Hubicka  <jh@suse.cz>
1610
1611         * predict.c (estimate_probability): Reorganize opcode heuristics.
1612         * predict.def (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
1613         PRED_FPOPCODE): New.
1614
1615         * i386.c (override_options): Recognize various CPU variants and set
1616         SSE/MMX/3dNOW flags accordingly.
1617         * i386.h (MASK_MMX_SET, MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET,
1618         MASK_3DNOW_A_SET): New.
1619         (MASK_ACCUMULATE_OUTGOING_ARGS_SET): New.
1620         (MASK_NO_ACCUMULATE_OUTGOING_ARGS): Delete.
1621         (MASK_*): Renumber.
1622         (TARGET_FLAGS): Use new masks.
1623         (CPP_CPU_SPECS): Recognize new CPU variants.
1624         * invoke.texi (-mcpu): Update documentation.
1625
1626         * flags.h (flag_prefetch_loop_arrays): Declare.
1627         * loop.h (LOOP_PREFETCH): Define new constant.
1628         * loop.c (strength_reduce): Call emit_prefetch_instructions.
1629         (MAX_PREFETCHES, PREFETCH_BLOCKS_BEFORE_LOOP_MAX,
1630         PREFETCH_BLOCKS_BEFORE_LOOP_MIN, PREFETCH_BLOCKS_IN_LOOP_MIN): New
1631         constants.
1632         (check_store_data): New structure.
1633         (check_store, emit_prefetch_instructions, rtx_equal_for_prefetch_p):
1634         New functions.
1635         * toplev.c: Include insn-flags.h.
1636         (flag_prefetch_loop_arrays): New global variable.
1637         (lang_independent_option): Add -fprefetch-loop-arrays.
1638         (rest_of_compilation) Pass LOOP_PREFETCH when flag_prefetch_loop_arrays
1639         is set.
1640         * Makefile.in (toplev.c): Depend on insn-flags.h.
1641         * invoke.texi (-fprefetch-loop-arrays): Document.
1642
1643         * predict.c (estimate_probability): Distribute the loop exit
1644         probability according to number of exit edges.
1645
1646         * cfgcleanup.c (insns_match_p): Break out from ...;
1647         (flow_find_cross_jump): ... here;
1648         (outgoing_edges_match): Add parameter MODE; attempt to match everything
1649         except for tablejumps.
1650         (try_crossjump_to_edge): Accept complex edges.
1651         (try_crossjump_bb): Likewise.
1652
1653 2001-11-29  Corey Minyard <minyard@acm.org>
1654
1655         * recog.c (validate_replace_rtx_1): Use simplify_gen_binary
1656         instead of plus_constant.
1657         * simplify-rtx.c (neg_const_int): New.
1658         (simplify_gen_binary, simplify_plus_minus): Use it.
1659
1660 2001-12-12  Roger Sayle  <roger@eyesopen.com>
1661
1662         * builtins.c (expand_builtin_memset, expand_builtin_memcpy,
1663         expand_builtin_strcpy): Additional arguments TARGET and MODE.
1664         (expand_builtin_bzero, expand_builtin_strcpy,
1665         expand_builtin_strncpy, expand_builtin_bzero): Pass additional
1666         TARGET and MODE parameters to the above functions.
1667         (expand_builtin_memset, expand_builtin_memcpy): Optimize the
1668         case where the LEN parameter is constant zero.
1669         (expand_builtin_memcmp): No longer conditional on
1670         HAVE_cmpstrsi.  Take an additional mode parameter.  Optimize
1671         the cases where len is either constant zero or one.
1672         Optimize to call to memcpy, even if the memcpy isn't inlined.
1673         (expand_builtin_strncpy): Optimize to call memcpy, even if the
1674         memcpy isn't inlined.
1675         (expand_builtin_strcmp, expand_builtin_strncmp): Always attempt
1676         to optimize to a call to memcmp.
1677         (expand_builtin): expand_builtin_memcmp can always be called,
1678         and pass the required parameters to expand_builtin_memcmp,
1679         expand_builtin_memset, expand_builtin_memcpy and
1680         expand_builtin_strcpy.
1681
1682 2001-12-12  David O'Brien  <obrien@FreeBSD.org>
1683
1684         * config.gcc (arm-*-freebsd*): Add target.
1685         * config/arm/freebsd.h: New file.
1686         * config/arm/arm.h (CPP_PREDEFINES): Do not define.
1687         (CPP_SPEC): #undef before defining.
1688         (CPP_CPU_ARCH_SPEC): Add -Acpu=arm -Amachine=arm.
1689         * config/arm/conix-elf.h (CPP_PREDEFINES): Remove -Acpu=arm
1690         -Amachine=arm.
1691         * config/arm/linux-elf.h: Likewise.
1692         * config/arm/netbsd.h: Likewise.
1693         * config/arm/riscix.h: Likewise.
1694         * config/arm/riscix1-1.h: Likewise.
1695         * config/arm/semiaof.h: Likewise.
1696
1697 2001-12-12  Richard Henderson  <rth@redhat.com>
1698
1699         * regrename.c (copyprop_hardreg_forward): New optimization.
1700         (kill_value_regno, kill_value, init_value_data, kill_clobbered_value,
1701         kill_set_value, kill_autoinc_value, copy_value, find_oldest_value_reg,
1702         replace_oldest_value_reg, replace_oldest_value_addr,
1703         replace_oldest_value_mem, copyprop_hardreg_forward_1,
1704         debug_value_data, validate_value_data): New.
1705         * rtl.h (copyprop_hardreg_forward): Declare.
1706         * toplev.c (flag_cprop_registers): New.
1707         (f_options): Add -fcprop-registers
1708         (rest_of_compilation): Invoke it.
1709         (parse_options_and_default_flags): Set it at -O1.
1710         * doc/invoke.texi: Document it.
1711
1712 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
1713
1714         * dwarf2out.c (dw_val_class): Add dw_val_class_range_list.
1715         (DEBUG_RANGES_SECTION_LABEL): Define.
1716         (ranges_section_label): Add.
1717         (add_AT_range_list): New.
1718         (print_die, sizeof_die, value_format): Handle dw_val_class_range_list.
1719         (output_loc_list): Location expression length is always 2-byte.
1720         (output_die): Handle dw_val_class_range_list.
1721         (gen_lexical_block_die): Call add_AT_range_list.
1722         (dwarf2out_init): Initialize ranges_section_label.
1723         (dwarf2out_finish): Emit ranges_section_label.
1724
1725 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
1726
1727         * c-typeck.c (digest_init): Allow initializing
1728         static storage duration objects with compound literals.
1729         * doc/extend.texi (Compound literals): Document the extension.
1730
1731 2001-12-12  Richard Henderson  <rth@redhat.com>
1732
1733         * emit-rtl.c (adjust_address_1): Always copy address to avoid
1734         shared rtl.
1735
1736 Wed Dec 12 07:37:52 2001  Olivier Hainque <hainque@act-europe.fr>
1737
1738         * stmt.c (expand_end_case): Do subtraction of lower bound as trees
1739         to avoid overflow.
1740
1741 Wed Dec 12 07:35:24 2001  Douglas B. Rupp  <rupp@gnat.com>
1742
1743         * cppfiles.c (read_include_file): Set buffer size properly when
1744         file is shorter than expected.
1745
1746 Wed Dec 12 08:35:33 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1747
1748         * objc/objc-act.c (encode_complete_bitfield): Fixed encoding
1749         enumeral types - encode them using 'i'.
1750
1751 2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1752
1753         * doc/extend.texi (Deprecated Features): Deprecate implicit
1754         typename. Document that named return and initializer lists are now
1755         removed.
1756
1757 2001-12-11  Roger Sayle <roger@eyesopen.com>
1758
1759         * except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid
1760         compiler warning about enumeration values not being handled.
1761
1762 2001-12-11  Momchil Velikov  <velco@fadata.bg>
1763
1764         * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
1765         shifts.
1766
1767 2001-12-11  Richard Henderson  <rth@redhat.com>
1768
1769         * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
1770         * config/alpha/linux.h (TARGET_FIXUP_EV5_PREFETCH): New.
1771         * config/alpha/alpha.md (prefetch): New.
1772
1773 2001-12-11  Richard Henderson  <rth@redhat.com>
1774
1775         * combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C)
1776         if C has only low bits set and doesn't intersect with X or Y.
1777
1778 Tue Dec 11 23:58:39 EST 2001  John Wehle  (john@feith.com)
1779
1780         * basic-block.h (flow_preorder_transversal_compute): Declare.
1781         * cfganal.c (flow_preorder_transversal_compute): Implement.
1782
1783 Tue Dec 11 23:54:27 EST 2001  John Wehle  (john@feith.com)
1784
1785         * cfganal.c (flow_depth_first_order_compute): Always
1786         increment dfsnum.
1787
1788 2001-11-30 Alan Matsuoka <alanm@redhat.com>
1789
1790         * combine.c (combine_simplify_rtx) : Can't simplify
1791         cases that use mode class MODE_CC.
1792
1793 2001-12-11  Richard Henderson  <rth@redhat.com>
1794
1795         * expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in
1796         which there is no divide expander.
1797
1798 2001-12-11  Richard Henderson  <rth@redhat.com>
1799
1800         * except.c (sjlj_find_directly_reachable_regions): Don't
1801         consider RNL_BLOCKED a directly reachable region.
1802         (sjlj_assign_call_site_values): Trust directly_reachable.
1803         (sjlj_emit_dispatch_table): Likewise.
1804
1805 2001-12-11  Richard Henderson  <rth@redhat.com>
1806
1807         * config/alpha/alpha.md (divmodsi_internal_er): Split, so that
1808         we represent the address load's dependency on the gp.
1809         (divmoddi_internal_er): Likewise.
1810         (divmodsi_internal_er_1, divmoddi_internal_er_1): New.
1811
1812 2001-12-11  Richard Henderson  <rth@redhat.com>
1813
1814         * emit-rtl.c (widen_memory_access): New.
1815         * expr.h (widen_memory_access): Declare it.
1816         * config/alpha/alpha.c (get_aligned_mem): Use it.
1817
1818 2001-12-11  Richard Henderson  <rth@redhat.com>
1819
1820         * combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED
1821         simplification above out of range check.
1822
1823 2001-12-11  Dan Nicolaescu  <dann@ics.uci.edu>
1824
1825         * config/sparc/sparc.md (prefetch): New.
1826
1827 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
1828
1829         * output.h (regno_uninitialized): Make argument unsigned.
1830
1831         * flow.c (regno_uninitialized): Make regno unsigned.
1832
1833 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
1834
1835         * elfos.h (ENDFILE_SPEC, STARTFILE_SPEC): Do not define.
1836         * config/cris/cris.h (ENDFILE_SPEC): Define.
1837         * config/i386/i386elf.h ((ENDFILE_SPEC, STARTFILE_SPEC): Define.
1838         * config/pa/elf.h: Likewise.
1839
1840 2001-12-11  Richard Henderson  <rth@redhat.com>
1841
1842         * objc/objc-act.c (build_string_class_template): New.
1843         (build_objc_string_object): Call it.
1844
1845 2001-12-11  Steve Ellcey  <sje@cup.hp.com>
1846
1847         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
1848         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
1849         * calls.c (store_unaligned_arguments_into_pseudos): Check
1850         FUNCTION_ARG_REG_LITTLE_ENDIAN to see how structures
1851         are passed/returned.
1852         * expr.c (move_block_from_reg): Ditto.
1853         (move_block_from_reg): Ditto.
1854         (copy_blkmode_from_reg): Ditto.
1855         * stmt.c (expand_return): Ditto.
1856         * stor-layout.c (compute_record_mode): If
1857         FUNCTION_ARG_REG_LITTLE_ENDIAN is set then check
1858         MEMBER_TYPE_FORCES_BLK even if mode == VOIDmode.
1859         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set to true
1860         so that Structures of one field are still treated as structures.
1861         (FUNCTION_ARG_REG_LITTLE_ENDIAN): New, set it to true.
1862         (FUNCTION_ARG_PADDING): Set to ia64_hpux_function_arg_padding().
1863         (PAD_VARARGS_DOWN): Modify from default to not pad structures down.
1864         * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): New.
1865         * config/ia64/ia64.c (ia64_hpux_function_arg_padding): New function
1866         to special case handling of structure padding.
1867
1868 2001-12-11  Daniel Berlin  <dan@cgsoftware.com>
1869
1870         * sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
1871         (may_trap_exp): Stores only are risk if they trap, too, not just
1872         if code == MEM.
1873
1874 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
1875
1876         * flow.c (find_regno_partial): Indent properly.  Add a default to
1877         switch.
1878
1879 2001-12-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1880
1881         * c-common.c (combine_strings): Complain if concatenating
1882         __FUNCTION__.
1883         * c-parse.in (yylexname): Flag artificial strings.
1884         * tree.h (TREE_ARTIFICIAL_STRING_P): New.
1885 doc:
1886         * extend.texi: Update.
1887
1888 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
1889
1890         * c-common.c (type_for_mode): Handle unsigned vectors.
1891         (type_for_mode): Remove redundant calls to TYPE_MODE.
1892
1893         * tree.c (make_vector): New.
1894         (build_common_tree_nodes_2): Use make_vector for vector types.
1895         Add unsigned vector types.
1896
1897         * tree.h (tree_index): Add unsigned types for vectors.
1898         (unsigned_V16QI_type_node): New.
1899         (unsigned_V4SI_type_node): New.
1900         (unsigned_V8QI_type_node): New.
1901         (unsigned_V8HI_type_node): New.
1902         (unsigned_V4HI_type_node): New.
1903         (unsigned_V2SI_type_node): New.
1904
1905 2001-12-11  Stan Shebs  <shebs@apple.com>
1906
1907         * objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
1908         test of class names.
1909
1910 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
1911
1912         * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
1913         cpu configuration headers.
1914         * config/h8300/elf.h: Include dbxelf.h.
1915         * config/m68k/linux.h: Likewise.
1916         * config/m68k/m68020-elf.h: Likewise.
1917         * config/m68k/m68kv4.h: Likewise.
1918         * config/sh/elf.h: Likewise.
1919         * config/m68k/m68kemb.h: Add comment about the its purpose.
1920
1921 2001-12-11  Richard Henderson  <rth@redhat.com>
1922
1923         * objc/objc-act.c (build_constructor): Cast initializer values
1924         to the proper field types.
1925
1926 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
1927
1928         * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
1929
1930 2001-12-10  Roger Sayle <roger@eyesopen.com>
1931
1932         * builtins.c (expand_builtin): Use a switch statement to list
1933         those functions not expanded without optimizations, instead of a
1934         series of equality tests.
1935
1936 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
1937
1938         * config/alpha/vms.h (LIB_SPEC): Define.
1939         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
1940
1941         * libgcc2.c (_bb): Remove ctime declaration.
1942
1943         * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
1944         that works if LN_S = cp.
1945
1946         * config/alpha/x-vms (version): Change "." to "_".
1947
1948         * configure.in: Hardcode that vfork works on VMS host.
1949         * configure: Regenerated.
1950
1951 Mon Dec 10 18:37:31 2001  Douglas B. Rupp  <rupp@gnat.com>
1952
1953         * gcc.c (convert_filename): Add do_obj parameter. Don't convert
1954         unless do_obj true.
1955         (process_command): Modify calls to convert_filename.
1956
1957 2001-12-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1958
1959         * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
1960
1961 Mon Dec 10 15:54:27 2001  Jeffrey A Law  (law@cygnus.com)
1962
1963         * combine.c (known_cond): Check mode of each operand to determine
1964         if COND is comparing floating point values.
1965
1966 2001-12-10  David Edelsohn  <edelsohn@gnu.org>
1967
1968         * rs6000.h (processor_type): Add PPC405.
1969         (RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
1970         * rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
1971         rios1, rs64, and ppc630 processors.
1972         * rs6000.c (processor_target_table): Add PPC405.
1973
1974 2001-12-10  Richard Henderson  <rth@redhat.com>
1975
1976         * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
1977         instead of hardcoding subregs into the _be and _le patterns.
1978
1979 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1980
1981         * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
1982
1983 Mon Dec 10 09:19:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1984
1985         * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
1986         what insn does.
1987
1988 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1989
1990         * doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
1991         copyright notice formerly conditioned on @ifinfo on @ifnottex
1992         instead.
1993
1994 Mon Dec 10 06:15:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1995
1996         * vmsdbgout.c (lookup_filename): Remove warning.
1997
1998 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
1999
2000         * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
2001
2002         * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
2003         (exeext, target_alias, prefix, local_prefix): Define.
2004         * config/alpha/x-vms (USE_COLLECT2): Make empty.
2005         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
2006         file specifications. Remove ".".
2007         (GCC_INCLUDE_DIR): Remove redefinition (redundant).
2008         * fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*
2009
2010 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
2011
2012         * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
2013
2014 Sun Dec  9 21:57:24 2001  Douglas B. Rupp  <rupp@gnat.com>
2015
2016         * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
2017         Add rules for building [vp]crt0.o
2018         * config/alpha/vms.h (START_FILE_SPEC): Define.
2019         * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
2020         * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
2021         * doc/invoke.texi: Document special Alpha/VMS options.
2022
2023 Sun Dec  9 20:25:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2024
2025         * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
2026         * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
2027         not GNUC.
2028
2029 Sun Dec  9 20:19:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2030                           Douglas B. Rupp  <rupp@gnat.com>
2031
2032         * tree.c (append_random_char): Conditionalize INO for VMS.
2033
2034 2001-12-09  Richard Henderson  <rth@redhat.com>
2035
2036         * cfgcleanup.c (label_is_jump_target_p): New function.
2037         (try_optimize_cfg): Use label_is_jump_target_p to check if label is
2038         target of a JUMP_INSN from the preceding block.
2039
2040 Sun Dec  9 18:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
2041
2042         * vmsdbgout.c (lookup_filename): Assign null string instead
2043         of null pointer to fnam.
2044
2045 2001-12-09  Richard Henderson  <rth@redhat.com>
2046
2047         * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
2048         immediately after a call; insert nops before a call.
2049
2050 2001-12-09  Richard Henderson  <rth@redhat.com>
2051
2052         * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
2053         not FUNCTION_BOUNDARY.
2054         * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
2055         * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
2056         * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
2057
2058 2001-12-09  Hans-Peter Nilsson  <hp@bitrange.com>
2059
2060         * config/mmix/mmix.c (mmix_function_block_profiler,
2061         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
2062         unused functions.
2063         * config/mmix/mmix-protos.h (mmix_function_block_profiler,
2064         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
2065         prototypes.
2066
2067         * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
2068         Delete obsoleted macros.
2069
2070 2001-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2071
2072         * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
2073         doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
2074
2075         * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
2076         cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
2077         function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
2078         config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
2079         config/i370/i370.c, config/i386/i386.c,
2080         config/i386/i386-interix.h, config/i386/i386.md,
2081         config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
2082         config/m32r/m32r-protos.h, config/mcore/mcore.h,
2083         config/rs6000/rs6000.h, config/sparc/linux64.h,
2084         config/sparc/sparc.c, config/v850/v850-protos.h,
2085         config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
2086         spelling errors.
2087
2088 2001-12-09  Daniel Berlin  <dan@cgsoftware.com>
2089
2090         * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
2091         altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
2092
2093         * config/rs6000/rs6000.c: Ditto.
2094
2095         * config/rs6000/rs6000.md: Ditto.
2096
2097 2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2098
2099         * 1750a.md: Add default case in switch.
2100         * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
2101         if-else statement.
2102         * dsp16xx.c (print_operand_address): Likewise.
2103         * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
2104         * ia64.md: Add missing braces.
2105         * rs6000-protos.h (s8bit_cint_operand): Prototype.
2106         * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
2107         if-else statement.
2108         * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
2109         * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
2110         * dbxout.c (dbxout_source_file): Move a variable into the scope
2111         where it is used.
2112         * final.c (profile_function): Mark parameter with
2113         ATTRIBUTE_UNUSED.
2114         * genemit.c (gen_expand): Likewise for generated file.
2115         * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
2116
2117         * vmsdbg.h: Delete spurious close-comment.
2118         (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
2119         * vmsdbgout.c (write_modbeg): Define return type.
2120
2121         * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
2122         * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2123         * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2124         * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
2125         * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
2126         * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
2127         * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
2128
2129 2001-12-08  Tom Rix  <trix@redhat.com>
2130
2131         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
2132         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
2133         * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
2134         for powerpc64.
2135         * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
2136         movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
2137         * config/rs6000/rs6000.c (expand_block_move): Do not use
2138         gen_movstrsi_2reg and powerpc64.
2139
2140 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2141
2142         * c-common.h (rid): Add RID_CHOOSE_EXPR and
2143         RID_TYPES_COMPATIBLE_P.
2144
2145         * c-parse.in (reswords): Add __builtin_choose_expr.
2146         Add __builtin_types_compatible_p.
2147         Add CHOOSE_EXPR token.
2148         Add TYPES_COMPATIBLE_P token.
2149         Add production for CHOOSE_EXPR.
2150         Add production for TYPES_COMPATIBLE_P.
2151
2152         * doc/extend.texi (__builtin_choose_expr): Add documentation.
2153         (__builtin_types_compatible_p): Likewise.
2154
2155 2001-12-08  David Edelsohn  <edelsohn@gnu.org>
2156
2157         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
2158         to unions.
2159
2160 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2161
2162         * c-parse.in: Take string literals in assembler constructs,
2163         not expressions.
2164         * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
2165         check the strings are STRING_CSTs.
2166
2167 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2168
2169         * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
2170         using combine_strings to do the concatenation.
2171         * c-parse.in: Replace uses of the string non-terminal with STRING.
2172         Don't attempt string concatenation.
2173         (OBJC_STRING): New terminal.
2174         (string): Remove non-terminal.
2175         (_yylex): Call combine_strings on function names.  Generate
2176         OBJC_STRING terminals; don't pass '@' on to yacc.
2177         * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
2178         (build_asm_stmt): Similarly.
2179
2180 2001-12-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2181
2182         * rtlanal.c (get_jump_table_offset): Delete unused variable.
2183
2184 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
2185
2186         * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
2187         (prefetch): Rewrite using PREFETCH RTL primitive.
2188         * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
2189         * arm.c (arm_init_builtins): Don't initialize a builtin for
2190         __builtin_prefetch here.
2191         (arm_expand_builtin): Don't expand __builtin_prefetch here.
2192
2193 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
2194
2195         * final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
2196         in test for a subreg.
2197
2198 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2199
2200         * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
2201         strings.
2202
2203 2001-12-07  Richard Henderson  <rth@redhat.com>
2204
2205         * doc/extend.texi: Fix typo last change.
2206
2207         * c-decl.c (c_language): Remove duplicate.
2208
2209 2001-12-07  Dale Johannesen  <dalej@apple.com>
2210
2211         * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
2212         * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
2213         specific codegen, eliminate a register copy.
2214         (print_operand_address): Add support for Darwin's lo16(constant)
2215         syntax.
2216         (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
2217         generation of addresses within very large data objects.
2218         (s8bit_cint_operand):  New.
2219         * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
2220         Move "mtjmpr" to correct functional unit for 750/7400/7450.
2221         Add imul2 and imul3 insn types for multiplication by 16- and
2222         8-bit constants.
2223         Change tablejump patterns to strongly discourage using LR
2224         rather than CTR.
2225         Add %lo16 patterns for Darwin loads and stores.
2226
2227 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2228
2229         * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
2230
2231 2001-12-07  Stephane Carrez  <Stephane.Carrez@sun.com>
2232
2233         * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
2234         with %sp because it can cause the delayed instruction to load
2235         below the stack.
2236
2237 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2238
2239         * alpha.c (alpha_expand_unaligned_store,
2240         alpha_expand_unaligned_store_words): Use constm1_rtx in place of
2241         call to immed_double_const.
2242
2243 2001-12-07  Aldy Hernandez  <aldyh@redhat.com>
2244
2245         * doc/extend.texi (Variable Attributes): Document vector_size.
2246
2247         * attribs.c (c_common_attribute_table): Add vector_size.
2248         (handle_vector_size_attribute): New.
2249         (vector_size_helper): New.
2250         (decl_attributes): Relayout the decl after calculating attribs.
2251
2252 2001-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2253
2254         * doc/gcc.texi: Don't include install-old.texi.  Adjust menu
2255         description for Trouble section.
2256         * doc/install-old.texi: Adjust for inclusion as chapter of new
2257         installation manual.
2258         * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
2259         Adjust to include old installation chapter as chapter of new
2260         installation manual.
2261
2262 Fri Dec  7 11:07:35 EST 2001  John Wehle  (john@feith.com)
2263
2264         * rtl.h (get_jump_table_offset): Declare.
2265         * rtlanal.c (get_jump_table_offset): Implement.
2266
2267 Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2268
2269         * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
2270         Deleted; were used only by BB profiler code.
2271         (sbb_head, sbb_tail, sbb_label_num): Likewise.
2272         (end_final): Delete now-unused vars I, PTR, and SPTR.
2273
2274         * expr.c (store_field): Remove warning.
2275         (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
2276         (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
2277         (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
2278         divisor constant power of 2.
2279         (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
2280
2281 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2282
2283         * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
2284         shifting.
2285
2286 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
2287
2288         * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
2289         (DWARF_FRAME_REGISTERS): Delete.
2290
2291 2001-12-06  Janis Johnson  <janis187@us.ibm.com>
2292
2293         * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
2294         * builtins.def (BUILT_IN_PREFETCH): Change arguments.
2295         * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
2296         with defaults for read prefetch with high degree of locality.
2297         * doc/extend.texi (__builtin_prefetch): Update documentation.
2298         * doc/md.texi (prefetch): Add documentation.
2299
2300 2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2301
2302         * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
2303         UNIX V5.1A stdio.h.
2304         * fixinc/fixincl.x: Regenerate.
2305         Fixes PR libf2c/4826.
2306
2307 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
2308             Richard Henderson  <rth@redhat.com>
2309
2310         * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
2311         (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
2312
2313         * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
2314         to PRE_GCC3_DWARF_FRAME_REGISTERS.
2315         (frame_state): Same.
2316         (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
2317
2318 2001-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2319
2320         * langhooks.c (lhd_staticp): Mark parameter with
2321         ATTRIBUTE_UNUSED.
2322
2323 2001-12-06  H.J. Lu <hjl@gnu.org>
2324
2325         * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
2326         reduce noise.
2327         (.po.pox): Likewise.
2328         (o/$(PACKAGE).pot): Likewise.
2329
2330 2001-12-06  Alexandre Oliva  <aoliva@redhat.com>
2331
2332         * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
2333         * tree-inline.c (expand_call_inline): ... here.
2334
2335 2001-12-06  H.J. Lu <hjl@gnu.org>
2336
2337         * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
2338         (.po.pox): Likewise.
2339         (o/$(PACKAGE).pot): Likewise.
2340
2341 2001-12-06  David O'Brien  <obrien@FreeBSD.org>
2342
2343         * config.gcc: Include dbxelf.h before elfos.h.
2344         * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
2345
2346 2001-12-06  Zack Weinberg  <zack@codesourcery.com>
2347
2348         * cppfiles.c (open_file): If we've opened a directory by
2349         mistake, close it.
2350         (find_include_file): Avoid turning / into // or // into ///.
2351
2352 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
2353
2354         * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
2355         (STRUCT_VALUE_REGNUM): Restore definition.
2356
2357 2001-12-06  Andrew MacLeod <amacleod@redhat.com>
2358
2359         * flow.c (find_regno_partial): Return register, not the expression
2360         the register is in.
2361
2362 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2363
2364         * function.c (handle_epilogue_set): Check for FP setting case when
2365         SP is set from FP in same insn.
2366
2367 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
2368
2369         * config/arm/arm.c (load_multiple_sequence): Pass pointer to
2370         RTX when calling alter_subreg().
2371         (store_multiple_sequence): Pass pointer to RTX when calling
2372         alter_subreg().
2373
2374 Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2375
2376         * function.c (assing_parms): Fix typo in last change.
2377         * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
2378         * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
2379         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2380         * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
2381
2382 2001-12-06  Alan Modra  <amodra@bigpond.net.au>
2383
2384         * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
2385         correct code selecting section.
2386
2387 Thu Dec  6 12:45:33 CET 2001  Jan Hubicka  <jh@suse.cz>
2388
2389         * final.c (count_basic_block, add_bb, add_bb_string):
2390         Kill.
2391         (end_final, final_start_function, final, final_scan_insn,
2392         leaf_function_p): Kill BB profiler related code.
2393         * flags.h (profile_block_flag): Kill.
2394         * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
2395         BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
2396         __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
2397         bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
2398         reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
2399         __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
2400         __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
2401         __bb_init_trace_func): Kill.
2402         * toplev.c (profile_block_flag): Kill.
2403         (indepdendent_decode_option, process_options): Kill -a related code.
2404         * alpha.c (direct_call_operand): Likewise.
2405         * arm.c (arm_expand_prologue, thumb_expand_prologue,
2406         thumb_expand_epilogue): Likewise.
2407         * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
2408         * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2409         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2410         MACHINE_STATE_RESTORE): Kill.
2411         * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2412         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2413         MACHINE_STATE_RESTORE): Kill.
2414         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
2415         * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
2416         ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
2417         code.
2418         (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
2419         * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2420         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2421         MACHINE_STATE_RESTORE): Kill.
2422         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
2423         * i960.c (i960_output_function_prologue): Kill BB profiler related
2424         code.
2425         * ia64.c (ia64_compute_frame_size): Likewise.
2426         * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2427         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2428         MACHINE_STATE_RESTORE): Kill.
2429         * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
2430         * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2431         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2432         MACHINE_STATE_RESTORE): Kill.
2433         * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
2434         * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2435         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2436         MACHINE_STATE_RESTORE): Kill.
2437         * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
2438         Kill BB profiler related code.
2439         * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2440         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2441         MACHINE_STATE_RESTORE): Kill.
2442         * mips.c (mips_expand_prologue): Kill BB profiler related code.
2443         * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2444         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2445         MACHINE_STATE_RESTORE): Kill.
2446         * rs6000.c (rs6000_override_options): Kill BB profiler related code.
2447         * s960.c (s390_function_prologue): Kill BB profiler related code.
2448         * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2449         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2450         MACHINE_STATE_RESTORE): Kill.
2451         * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2452         * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2453         * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2454         * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2455         * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
2456         sparc_nonflat_function_epilogue): Kill BB profiler related code.
2457         (sparc_function_block_profiler, sparc_block_profiler,
2458         sparc_function_block_profiler_exit): Kill.
2459         * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
2460         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2461         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2462         MACHINE_STATE_RESTORE): Kill.
2463         * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2464         * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2465         * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2466         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2467         MACHINE_STATE_RESTORE): Kill.
2468         * doc/invoke.texi: Kill documentation of -a and -ax.
2469         * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2470         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2471         MACHINE_STATE_RESTORE): Kill.
2472
2473 2001-10-26  Steve Christiansen  <smc@us.ibm.com>
2474
2475         * doc/rtl.texi: Use a table to display RTL format characters.
2476
2477 2001-12-06  Bo Thorsen  <bo@suse.co.uk>
2478
2479         * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
2480
2481 Wed Dec  5 19:18:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2482
2483         * function.c (keep_stack_depressed): Check global_live_at_start
2484         of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
2485
2486 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
2487
2488         * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
2489         as set by the generic FreeBSD configure framework.
2490
2491 2001-12-04  Jason Merrill  <jason@redhat.com>
2492
2493         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2494         start_inlining, end_inlining.
2495         * tree-inline.c (expand_call_inline): Call them.
2496         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
2497         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
2498         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
2499         * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
2500         (lhd_tree_inlining_end_inlining): New fn.
2501
2502 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2503
2504         * c-common.c (shadow_warning): New function, moved from cp/decl.c.
2505         * c-common.h (shadow_warning): New.
2506         * c-decl.c: Include c-common.h.
2507         (warn_if_shadowing): New, broken out of pushdecl.
2508         (pushdecl): Use warn_if_shadowing.
2509         (store_parm_decls): Prevent duplicate -Wshadow warnings.
2510
2511 Wed Dec  5 17:59:19 2001  Douglas B. Rupp  <rupp@gnat.com>
2512
2513         * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
2514         (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
2515         (LIB_SPEC): Remove.
2516
2517 Wed Dec  5 16:03:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2518
2519         * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
2520         (QUAL_UNION_TYPE): New type.
2521
2522         * varasm.c (output_constant, case ERROR_MARK): New case.
2523
2524         * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
2525         (c_com): Delete its reference.
2526         * builtins.c: Delete memory checking code.
2527         * calls.c, expr.c, function.c, stmt.c: Likewise.
2528         * builtins.c (expand_builtin_arg_info): Remove reference to
2529         EXPAND_MEMORY_USE_* modifiers.
2530         * explow.c (expr_size): Likewise.
2531         * expr.c (expand_expr, expand_increment): Likewise.
2532         * expr.h (ARGS_SIZE_RTX): Likewise.
2533         * function.c (assign_parms, expand_pending_sizeso): Likewise.
2534         * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
2535         * expr.c (in_check_memory_usage): Delete.
2536         (get_push_address, get_memory_usage_from_modifier): Delete.
2537         (expand_assigment): Use EXPAND_WRITE on destination.
2538         (expand_expr): Delete ro_modifier.
2539         * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
2540         add EXPAND_WRITE.
2541         (memory_use_mode): Delete.
2542         * flags.h (flag_check_memory_usage): Deleted.
2543         (flag_prefix_function_name): Likewise.
2544         * function.c (expand_function_start): Don't set
2545         current_function_check_memory_usage.
2546         * function.h (check_memory_usage): Delete.
2547         * libfuncs.h, optabs.c: Delete chkr_* stuff.
2548         * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
2549         EXPAND_WRITE.
2550         * toplev.c (flag_check_memory_usage): Deleted.
2551         (flag_prefix_function_name): Likewise.
2552         (f_options, process_options): Delete references to above.
2553         * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
2554         * varasm.c (CHKR_PREFIX): Deleted.
2555         (make_decl_rtl): Remove flag_prefix_function_name handling.
2556         (assemble_name): Likewise.
2557         * doc/extend.texi: Remove no_check_memory_usage attribute.
2558         * doc/invoke.texi: Remove -fcheck-memory-usage
2559         and -fprefix-function-name.
2560
2561 2001-12-05  Andreas Schwab  <schwab@suse.de>
2562
2563         * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
2564         from autoconf.
2565
2566 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2567
2568         * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
2569
2570 2001-12-05  William Cohen  <wcohen@redhat.com>
2571
2572         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
2573         instruction.
2574
2575 2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
2576
2577         * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
2578         builtins.
2579
2580         * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
2581         better reflect reality (change from Apple's tree).
2582         Add more of altivec instructions.
2583         Add ftruncv4sf2 pattern.
2584         Remove more unspecs (vector merge instructions, etc).
2585
2586         * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
2587         builtins.
2588         (bdesc_1arg): New, for 1 argument altivec builtins.
2589         (altivec_expand_builtin): Handle unary and ternary ops.
2590         (altivec_init_builtins): Ditto.
2591
2592 Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2593
2594         * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
2595         * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
2596
2597 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2598
2599         * gcse.c (store_killed_in_insn): Consider pure calls
2600         as potential store killers in addition to normal calls.
2601
2602 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2603
2604         * expr.c (expand_expr): When checking promoted value, use
2605         DECL_MODE (exp) and not mode.
2606
2607 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2608
2609         * c-typeck.c (output_init_element): Call digest_init
2610         just once, not in each if branch and check its return value for
2611         error_mark_node.
2612
2613 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2614
2615         * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
2616         type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
2617         (finish_struct): Break the loop if n_incomplete went to 0.
2618         For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
2619
2620 Wed Dec  5 07:41:13 2001  Douglas B. Rupp  <rupp@gnat.com>
2621
2622         * config/alpha/alpha.c (alpha_va_start): Update VMS case.
2623
2624 Wed Dec  5 07:27:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2625                           Douglas B. Rupp  <rupp@gnat.com>
2626
2627         * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
2628         * doc/invoke.texi: Add -gvms.
2629         * doc/passes.texi: Add mention of vmsdbgout.c.
2630         * doc/tm.texi: Document VMS debugging output.
2631
2632 Wed Dec  5 06:26:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2633
2634         * function.h (tree, rtx): Remove no-longer-needed definitions.
2635
2636         * function.c (keep_stack_depressed): Refine check for register
2637         clobbered over call.
2638
2639         * expr.c (store_expr): When copying string constant into array,
2640         use functions that update memrefs instead of computations on
2641         addresses to better track MEMs.  Also properly handle 32/64 pointers.
2642         (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
2643         (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
2644
2645         * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
2646         underneath COMPONENT_REFs.
2647         (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
2648
2649 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2650
2651         * toplev.c (display_target_options): Don't print twice.
2652
2653 Wed Dec  5 00:42:16 EST 2001  John Wehle  (john@feith.com)
2654
2655         * emit-rtl.c (set_unique_reg_note): Don't set
2656         a REG_EQUAL or REG_EQUIV note if multiple sets
2657         are present.
2658
2659 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2660
2661         * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
2662         CASE_DROPS_THROUGH.
2663
2664 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
2665
2666         * rtl.h (initialize_uninitialized_subregs): New prototype.
2667         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
2668         when optimization is on.
2669         * flow.c (find_regno_partial): Find subregs within an expression.
2670         (initialize_uninitialized_subregs): Initialize live on entry registers
2671         which are used in subreg expressions.
2672
2673 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
2674
2675         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
2676
2677 2001-12-04  DJ Delorie  <dj@redhat.com>
2678
2679         * fixinc/fixincl.c (initialize): Avoid problemsome macro
2680         parameter names (PR 3388).
2681
2682 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
2683
2684         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
2685         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
2686
2687 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2688
2689         * c-common.def (COMPOUND_LITERAL_EXPR): New.
2690         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
2691         (c_staticp): New function.
2692         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
2693         (c_staticp): Declare.
2694         * c-typeck.c (default_function_array_conversion, build_unary_op):
2695         Don't handle CONSTRUCTOR specially.
2696         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
2697         * c-decl.c (build_compound_literal): New function.
2698         * c-tree.h (build_compound_literal): Declare.
2699         * c-parse.in (primary): Use build_compound_literal.
2700         * c-lang.c (LANG_HOOKS_STATICP): Define.
2701         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
2702         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
2703         * doc/extend.texi: Update documentation of compound literals.
2704         Fixes PR c/4787.
2705
2706 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2707
2708         * langhooks.h (struct lang_hooks): Add staticp.
2709         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
2710         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
2711         * langhooks.c (lhd_staticp): New function.
2712         * tree.c (staticp): Call lang_hooks.staticp for language-specific
2713         tree codes.
2714
2715 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2716
2717         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
2718         * gcc.c (process_command): Ensure the cpp driver sees
2719         --help and --target-help, and that the help is printed
2720         exactly once.
2721
2722 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
2723
2724         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
2725
2726 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
2727
2728         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
2729         flag_strict_aliasing.  Use separate assignment statements.
2730
2731 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
2732
2733         * build-make, cross-make: Delete file.
2734         * configure.in: Set and substitute CROSS, ALL,
2735         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
2736         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
2737         whether build == host and host == target.  Do not
2738         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
2739         AC_SUBST cross_defines or extra_c_flags.
2740         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
2741         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
2742         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
2743         partially or completely with autoconf-substituted @variable@
2744         notation.
2745         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
2746         @build_overrides@, @extra_c_flags@, all.build, install-build,
2747         install-cross-rest, install-float-h-cross): Deleted.
2748         (install-normal): Rename to install.  Delete old "install"
2749         indirection rule.
2750
2751 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
2752
2753         * stmt.c (expand_return): Clear destination instead of clobbering it
2754         when setting a return value via bitsets.
2755
2756 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
2757
2758         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
2759         it has DECL_SAVED_TREE.
2760
2761         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
2762         is in a different binding level, get its abstract origin to be
2763         olddecl.
2764         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
2765         check earlier.
2766         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
2767         DECL_INITIAL is NULL.
2768
2769 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
2770
2771         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
2772         Return correct value if one of the subexpressions was optimized to
2773         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
2774         (and_reg_cond): Similarly.
2775
2776 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
2777
2778         * function.c (assign_parms): Set last_named only for last named
2779         argument.
2780
2781 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2782
2783         * doc/install.texi: Use the GFDL.  Include years from old install
2784         manual in copyright notice.  Include copyright and GFDL notice on
2785         HTML index page.  Include usual footer on testing.html.
2786         * doc/install.texi2html: Build gfdl.html.  Use -I
2787         $SOURCEDIR/include.
2788         * doc/include/fdl.texi: Adapt for use in the install manual.
2789
2790 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2791
2792         * doc/install.texi: Document that installed native compiler for
2793         building cross compilers should be GCC 2.95 or later.
2794
2795 2001-12-03  Eric Christopher  <echristo@redhat.com>
2796
2797         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
2798         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
2799         patterns.
2800
2801 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
2802
2803         * rtl.def (PREFETCH): New rtx code.
2804         * doc/rtl.texi (PREFETCH): Add documentation.
2805         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
2806         * rtlanal.c (reg_referenced_p): Ditto.
2807         * sched-vis.c (print_exp):  Ditto.
2808         * ssa-dce.c (find_inherently_necessary):  Ditto.
2809
2810         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
2811           (PREFETCH_BLOCK): Define.
2812         * config/ia64/ia64.md (itanium_class): Add lfetch.
2813           (prefetch, prefetch_internal): New.
2814
2815         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
2816         * builtins.def (BUILT_IN_PREFETCH): New.
2817         * builtins.c (expand_builtin_expect): New.
2818           (expand_builtin): Call it.
2819         * doc/extend.texi: Document __builtin_prefetch.
2820
2821         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
2822           conflicts with new generic prefetch functionality.
2823         * config/i386/i386.c (ix86_expand_builtin): Use new name for
2824           prefetch_sse.
2825
2826 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
2827
2828         * objc/Make-lang.in: Update copyright.
2829         (OBJC_OBJS): Add objc-lang.o.
2830         (objc-lang.o): New rule.
2831         * objc/config-lang.in: Fix file description and update
2832         copyright.
2833         * objc/objc-act.c: Do not include langhooks.h and
2834         langhooks-def.h
2835         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
2836         (objc_post_options): Move to objc-lang.c.
2837         (objc_init_options): Move to objc-lang.c.
2838         (objc_init): Make non-static.
2839         (objc_decode_option): Make non-static.
2840         (HASHFUNCTION): Remove macro.
2841         (hash_func): New function.
2842         (hash_enter): Replace HASHFUNCTION with hash_func.
2843         (hash_lookup): Replace HASHFUNCTION with hash_func.
2844         (maybe_objc_tree_codes): New function.
2845         (init_objc): Move ObjC tree code initialization to
2846         maybe_objc_tree_codes().
2847         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
2848         (objc_init): New public prototype.
2849         (objc_decode_option): New public prototype.
2850         (maybe_add_objc_tree_codes): New public prototype.
2851         * objc/objc-lang.c: New file.
2852         (lang_hooks): Moved from objc-act.c.
2853         (objc_post_options): Moved from objc-act.c.
2854         (objc_init_options): Moved from objc-act.c.
2855
2856 2001-12-03  Geoff Keating  <geoffk@redhat.com>
2857
2858         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
2859         of array elements.
2860
2861 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2862
2863         PR c/4988
2864         * gcc.c (process_command): Don't add a preprocessor option for
2865         --help and --target-help; cc1 is enough.
2866
2867 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2868
2869         * c-decl.c (grokdeclarator): Use ISO word.
2870         * cppinit.c: Remove leading capital from diagnostic messages, as
2871         per GNU coding standards.
2872         * emit-rtl.c: Similarly.
2873         * final.c: Similarly.
2874         * gcc.c: Similarly.
2875         * tradcpp.c: Similarly.
2876         * config/arm/arm.c: Similarly.
2877         * config/arm/arm.h: Similarly.
2878         * config/avr/avr.c: Similarly.
2879         * config/avr/avr.h: Similarly.
2880         * config/c4x/c4x.c: Similarly.
2881         * config/cris/cris.c: Similarly.
2882         * config/cris/cris.h: Similarly.
2883         * config/d30v/d30v.c: Similarly.
2884         * config/dsp16xx/dsp16xx.c: Similarly.
2885         * config/dsp16xx/dsp16xx.h: Similarly.
2886         * config/h8300/h8300.c: Similarly.
2887         * config/i386/i386.c: Similarly.
2888         * config/i386/xm-djgpp.h: Similarly.
2889         * config/i960/i960.h: Similarly.
2890         * config/m32r/m32r.c: Similarly.
2891         * config/m68hc11/m68hc11.c: Similarly.
2892         * config/m88k/m88k.c: Similarly.
2893         * config/m88k/m88k.h: Similarly.
2894         * config/mcore/mcore.c: Similarly.
2895         * config/mcore/mcore.h: Similarly.
2896         * config/mips/mips.c: Similarly.
2897         * config/mmix/mmix.c: Similarly.
2898         * config/pa/pa.c: Similarly.
2899         * config/rs6000/rs6000.c: Similarly.
2900         * config/rs6000/sysv4.h: Similarly.
2901         * config/s390/s390.c: Similarly.
2902         * config/sparc/sparc.c: Similarly.
2903         * config/v850/v850-c.c: Similarly.
2904         * config/v850/v850.c: Similarly.
2905
2906 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
2907
2908         * rs6000.h (RETURN_IN_MEMORY): Cast result of
2909         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
2910
2911 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
2912
2913         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
2914         bit twiddling constant.
2915
2916 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
2917
2918         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
2919         call purge_dead_edges after removing.
2920         (delete_null_pointer_checks): Do not handle delete_list.
2921
2922         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
2923         (count_basic_blocks): ... here.
2924         (find_basic_blocks, find_bb_boundaries): Cleanup.
2925
2926         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
2927         overflow for types greater then 2 * HOST_WIDE_INT.
2928
2929         * reload.c (find_reloads): Update the duplicates after swapingg.
2930
2931 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
2932
2933         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
2934
2935 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
2936
2937         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
2938         MASK_LONG_DOUBLE_128): Delete.
2939         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
2940         TARGET_AIX_STRUCT_RET): New flags.
2941         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
2942         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
2943         and -m(no-)svr4-struct-return.
2944         (TARGET_OPTIONS): Add entry for -mlong-double-.
2945         (rs6000_long_double_size_string, rs6000_long_double_type_size,
2946         rs6000_altivec_abi): Declare.
2947         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
2948         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
2949         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
2950         structures of size <= 8 bytes in registers.
2951         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
2952
2953         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
2954         rs6000_long_double_type_size, rs6000_altivec_abi): New
2955         globals.
2956         (rs6000_override_options): Set rs6000_long_double_type_size
2957         from rs6000_long_double_size_string, if nonzero.  Set the
2958         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
2959         not already set.
2960         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
2961         target_flags bit.
2962         (rs6000_init_builtins): This hook now takes no arguments.
2963
2964         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
2965         DRAFT_V4_STRUCT_RET to 1.
2966
2967 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2968
2969         * c-typeck.c (really_start_incremental_init, push_init_level):
2970         Avoid constructor_max_index being other than an INTEGER_CST.
2971
2972 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
2973
2974         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
2975         unsigned.
2976         (ASM_GENERATE_INTERNAL_LABEL): Same.
2977         (UNIQUE_SECTION): Fix typo.
2978
2979 2001-12-02  Richard Henderson  <rth@redhat.com>
2980
2981         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
2982
2983 2001-12-02  Richard Henderson  <rth@redhat.com>
2984
2985         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
2986         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
2987         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
2988         * expr.h, final.c, reload1.c: Adjust users.
2989
2990         * alias.c (nonoverlapping_component_refs_p): New.
2991         (decl_for_component_ref, adjust_offset_for_component_ref): New.
2992         (nonoverlapping_memrefs_p): Use them.
2993         * emit-rtl.c (component_ref_for_mem_expr): New.
2994         (set_mem_attributes): Use it.
2995         (set_mem_offset): New.
2996         * expr.c (expand_assignment): Call set_mem_attributes for
2997         inner references; adjust the memory offset as needed.
2998         * print-rtl.c (print_mem_expr): New.
2999         (print_rtx): Use it.
3000
3001 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
3002
3003         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
3004
3005         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
3006         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
3007         (ASM_SPEC): Don't redefine.
3008         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
3009         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
3010         * config/alpha/vms-dwarf2.asm: New file.
3011
3012         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
3013         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
3014         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
3015         (vmsdbgout_after_prologue): New declaration.
3016         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
3017         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
3018         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
3019         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
3020         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
3021         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
3022         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
3023         Test VMS_DEBUGGING_INFO.
3024         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
3025         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
3026         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
3027         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
3028         VMS_AND_DWARF2_DEBUG.
3029         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
3030         (decode_g_option): Add "vms" to debug_type_names.
3031         (process_options): Set vmsdbg_debug_hooks if -gvms.
3032         (lang_independent_init): Emit line number for VMS unless -g0.
3033         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
3034         * vmsdbg.h, vmsdbgout.c: New files.
3035
3036 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3037
3038         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
3039
3040 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3041
3042         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
3043         * dwarf2out.c (is_cxx): Prototype.
3044         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
3045         warning.
3046         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
3047
3048 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3049
3050         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
3051
3052 2001-12-02  Geoff Keating  <geoffk@redhat.com>
3053
3054         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
3055         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
3056         rather than simplify_subreg.  Check for volatile-ness.  Check that
3057         we're not splitting one slow operation into two slow operations.
3058
3059 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
3060
3061         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
3062         before shifting.
3063
3064 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3065
3066         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
3067         capital from diagnostics.
3068         * c-lex.c (cb_file_change): Similarly.
3069         * c-parse.in : Similarly.
3070         * cfgrtl.c (verify_flow_info): Similarly.
3071         * collect2.c: Similarly.
3072         * cppfiles.c (find_include_file): Similarly.
3073         * cppinit.c (cpp_handle_option): Similarly.
3074         * cpplex.c (cpp_spell_token): Similarly.
3075         * cppmain.c (do_preprocessing): Similarly.
3076         * gcc.c (translate_options, process_command, do_spec1,
3077         main, pfatal_execute): Similarly.
3078         * genattr.c (main): Similarly.
3079         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
3080         write_test_expr, main): Similarly.
3081         * gencodes.c (main): Similarly.
3082         * genconfig.c (main): Similarly.
3083         * genconstants.c (main): Similarly.
3084         * genemit.c (main): Similarly.
3085         * genextract.c (main): Similarly.
3086         * genflags.c (main): Similarly.
3087         * genopinit.c (main): Similarly.
3088         * genoutput.c (process_template, main): Similarly.
3089         * genpeep.c (main): Similarly.
3090         * genrecog.c (main): Similarly.
3091         * gensupport.c (is_predicable, identify_predicable_attribute,
3092         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
3093         * ggc-page.c (alloc_anon): Similarly.
3094         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
3095         parse_begin, parse_bend, parse_def, parse_end, parse_file,
3096         parse_stabs_common, parse_stabs, write_varray, write_object,
3097         read_seek, copy_object, main, error): Similarly.
3098         * profile.c (compute_branch_probabilities): Similarly.
3099         * reg-stack.c (check_asm_stack_operands): Similarly.
3100         * reload.c (find_reloads): Similarly.
3101         * reload1.c (spill_failure, failed_reload): Similarly.
3102         * rtl-error.c (_fatal_insn_not_found): Similarly.
3103         * toplev.c (read_integral_parameter, crash_signal,
3104         decode_f_option, set_target_switch, parse_options_and_default_flags)
3105         : Similarly.
3106         * tradcif.y (parse_number, yylex): Similarly.
3107         * tradcpp.c (main, fancy_abort): Similarly.
3108         * tree.c (tree_check_failed): Similarly.
3109         * varray.c (varray_check_failed): Similarly.
3110         * xcoffout.c (xcoff_output_standard_types): Similarly.
3111 objc:
3112         * objc-act.c (get_object_ref, lookup_and_install_protocols,
3113         build_objc_string_object, objc_declare_alias, build_ivar_chain,
3114         finish_message_expr, build_protocol_expr, is_public,
3115         start_class): Similarly.
3116
3117 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3118
3119         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
3120         trailing period from diagnostics.
3121         * c-lex.c (cb_file_change): Similarly.
3122         * cppmacro.c (check_trad_stringification): Similarly.
3123         * gcc.c (do_spec_1): Similarly.
3124         * genattr.c (main): Similarly.
3125         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
3126         * gencodes.c (main): Similarly.
3127         * genconfig.c (main): Similarly.
3128         * genconstants.c (main): Similarly.
3129         * genemit.c (main): Similarly.
3130         * genextract.c (main): Similarly.
3131         * genopinit.c (main): Similarly.
3132         * genoutput.c (main): Similarly.
3133         * genpeep.c (main): Similarly.
3134         * genrecog.c (main): Similarly.
3135         * mips-tfile.c (add_file, error): Similarly.
3136         * profile.c (init_branch_prob): Similarly.
3137         * reload1.c (spill_failure): Similarly.
3138         * stmt.c (parse_output_constraint): Similarly.
3139         * varasm.c (assemble_variable): Similarly.
3140
3141 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3142
3143         * m68k.c (init_FPA_table): Provide static prototype.
3144         * mips/abi64.h (mips_function_value): Move prototype to ...
3145         * mips-protos.h (mips_function_value): ... here.
3146         * mips.c: Include halfpic.h.
3147         * output.h (rdata_section): Prototype.
3148
3149         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
3150         * m88k.c (m88k_svr3_asm_out_constructor,
3151         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
3152         !OBJECT_FORMAT_ELF.
3153         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
3154         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
3155         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
3156
3157 2001-12-01  Geoff Keating  <geoffk@redhat.com>
3158
3159         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
3160         LO_SUM addresses less than word size are not legitimate,
3161         because they lead to invalid SUBREGs.
3162         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
3163
3164 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
3165
3166         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
3167         while scanning for multiple back edges.
3168
3169 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3170
3171         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
3172         * config/rs6000/tramp.asm: Use it.
3173
3174 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
3175
3176         * gencheck.c, gengenrtl.c: Don't define xmalloc.
3177         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
3178         xmalloc.
3179
3180 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3181
3182         * pa.c (output_ascii): Cast `p' to unsigned char.
3183
3184 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
3185
3186         * config/rs6000/rs6000.c (altivec_expand_builtin): add
3187         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
3188         *_16qi,_8hi, rename existing V4SI ones to *_4si.
3189         (altivec_init_builtins): Ditto.
3190         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
3191
3192         * config/rs6000/rs6000.md: Add attribute types vecsimple,
3193         veccomplex, vecfloat, and vecperm, for altivec instructions.
3194         Modify altivec patterns to use appropriate attribute type.
3195         Modify altivec patterns to match RTL operations where appropriate
3196         (IE no unspec where we can avoid it).
3197         Add vector unit scheduling for ppc7450.
3198         Rename patterns to what they are where appropriate
3199         (altivec_vaddfp->addv4sf3, etc)
3200
3201         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
3202         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
3203
3204         * config/rs6000/sysv4.h: Add -mcpu=7450.
3205
3206         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
3207         _builtin_altivec_ld_interal function.
3208
3209 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3210
3211         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
3212         strchr, strrchr, isascii, gettimeofday.
3213         * config.in, configure: Regenerate.
3214
3215 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
3216
3217         * unroll.c (unroll_loop): Correct special exit cases.
3218
3219 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
3220
3221         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
3222         accept DFmode and DImode only.
3223
3224 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
3225
3226         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
3227         (STACK_DYNAMIC_OFFSET): Same.
3228
3229 2001-11-30  Richard Henderson  <rth@redhat.com>
3230
3231         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
3232
3233 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
3234
3235         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
3236         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
3237         the values in call_used_registers.
3238
3239 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
3240
3241         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
3242         gthr-single.
3243
3244 2001-11-30  Jason Merrill  <jason@redhat.com>
3245
3246         * dwarf2out.c (is_cxx): New fn.
3247         (add_data_member_location_attribute): Check it.
3248         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
3249
3250 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3251
3252         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
3253
3254 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
3255
3256         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
3257         MODE_VECTOR_FLOAT as allowed.
3258
3259 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
3260
3261         Purge cruft now we have build libiberty.
3262
3263         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
3264         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
3265         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
3266         USE_HOST_STRSTR): Delete variables.
3267         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
3268         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
3269         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3270         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
3271         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
3272         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
3273         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
3274         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
3275         (HOST_LIBS): Ditto.
3276         (HOST_RTL): Remove hashtab.o safe-ctype.o.
3277         (OBJS): Remove splay-tree.o.
3278         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
3279         (distclean): No need to delete splay-tree.c obstack.c
3280         hashtab.c safe-ctype.c.
3281         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
3282         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
3283         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
3284         Delete.
3285         * configure.in: Don't use them.
3286         Set and substitute @FORBUILD@.
3287         * config.in, configure: Regenerate.
3288         * doprint.c: Move to libiberty/_doprnt.c.
3289         * doc/configterms.texi: Document that libiberty is now built
3290         up to three times.  Fix typo.
3291
3292 2001-11-30  Jason Merrill  <jason@redhat.com>
3293
3294         * dwarf2out.c (add_data_member_location_attribute): Do the
3295         right thing for virtual bases.
3296         * dbxout.c (dbxout_type): For a virtual base, print the offset
3297         within the vtable.
3298
3299 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
3300
3301         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
3302
3303 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
3304
3305         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
3306         go in memory.
3307         Remove unused attribute for named.
3308
3309 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3310
3311         * genattrtab.c (attr_rtx_1): New function containing the
3312         majority of `attr_rtx'.  Move variable declarations into the
3313         scope where they are used.  Eliminate unnecessary gotos.
3314         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
3315         VA_FIXEDARG, and VA_CLOSE.
3316
3317 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
3318
3319         * config/cris/cris.c (cris_notice_update_cc): Check first
3320         destination also against overlap with cc_status.value2 and second
3321         destination against overlap with cc_status.value1.  For overlaps,
3322         clear overlapped value, don't just CC_STATUS_INIT.
3323
3324         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
3325         Fix typo in comment.
3326         (LINK_SPEC): Remove whitespace at end of line.
3327
3328 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3329
3330         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
3331
3332 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3333
3334         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
3335         macros for the supported debugging types.
3336
3337 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3338
3339         PR other/4932
3340         * config/i386/i386.c (print_operand):  Verify that the
3341           argument to %c is a constant and not a conditional which
3342           needs to be reversed.
3343
3344 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
3345
3346         * emit-rtl.c (gen_lowpart_common): Fix conversion of
3347         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
3348         of low part of those arrays for 32bit and 64bit hosts.
3349
3350 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3351
3352         * Makefile.in (insn-output.o): Depend on insn-codes.h.
3353
3354 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3355
3356         * configure.in (target_list): Add generated-manpages.
3357         * configure: Regenerate.
3358         * Makefile.in (generated-manpages): Depend on
3359         lang.generated-manpages.
3360         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
3361
3362 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
3363
3364         * config/arm/crti.asm (_init): Add .thumb_func if compiled
3365         with -mthumb.
3366         (_fini): Add .thumb_func if compiled with -mthumb.
3367
3368 2001-11-28  Eric Christopher  <echristo@redhat.com>
3369
3370         * config/mips/mips.c (override_options): Fix thinko in mips_tune
3371         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
3372
3373 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
3374
3375         * alpha.md (tablejump): Use pic_offset_table_rtx
3376         instead of gen_rtx_REG.
3377
3378 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
3379
3380         * expr.c (store_expr): When copying a string constant into an
3381         array, reset the known alignment of the MEM for the section to
3382         be cleared to BITS_PER_UNIT.
3383
3384 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
3385
3386         * config/cris/cris.c: Remove whitespace at end of line.
3387
3388 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
3389
3390         * config.gcc (i[34567]86-*-interix3*): New case.
3391         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
3392         New files.
3393
3394 2001-11-28  Richard Henderson  <rth@redhat.com>
3395
3396         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
3397         symbolic_operand as the predicate.
3398
3399 2001-11-28  Richard Henderson  <rth@redhat.com>
3400
3401         * doloop.c (doloop_modify_runtime): Properly select induction
3402         variable; skip late entry test if biv initializer created by loop.
3403
3404 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3405
3406         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
3407         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
3408
3409         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
3410
3411         * tree.h: Add missing checks on some macros; make formatting more
3412         consistent.
3413
3414         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
3415         level; only add to pending_sizes if find it.
3416
3417         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
3418
3419         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
3420         Add casts to remove warnings.
3421
3422         * Makefile.in (OBJS): Sort alphabetically.
3423
3424         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
3425         Also minor cleanups.
3426
3427 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
3428
3429         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
3430         (FLAGS_TO_PASS): Add STAGE_PREFIX.
3431         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
3432         to STAGE_PREFIX.
3433
3434 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
3435
3436         * cse.c (true_dependence_in_rtx): New function.
3437         (invalidate): Use it.
3438
3439         * c-common.h (GOTO_FAKE_P): New macro.
3440         * tree-inline.c (GOTO_FAKE_P): Set.
3441         * c-tree.texi (GOTO_FAKE_P): Document.
3442
3443         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
3444         containing pointers.
3445         (output_addressed_constants): Check for local/external relocations.
3446         * elfos.h (SELECT_SECTION): Classify data section.
3447         * tm.texi (SELECT_SECTION): Update documentation.
3448
3449         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
3450         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
3451
3452 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3453
3454         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3455         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
3456         OBJECT_FORMAT_ROSE.
3457
3458 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
3459
3460         * config/cris/cris.c: Tweak spacing for prototypes.
3461         (LOSE_AND_RETURN): New macro.
3462         (cris_operand_lossage): New function.
3463         (cris_print_index, cris_print_base): Use cris_operand_lossage
3464         rather than fatal_insn.
3465         (cris_print_operand, cris_print_operand_address): Use
3466         LOSE_AND_RETURN rather than fatal_insn and internal_error.
3467         (cris_output_addr_const): Use LOSE_AND_RETURN and
3468         output_operand_lossage rather than fatal_insn and internal_error
3469         for valid but unexpected rtx expressions.
3470
3471         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
3472         for a SUBREG in src or dest, abort instead.
3473
3474 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3475
3476         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
3477         doc.
3478
3479 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
3480
3481         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
3482         preprocessor define.  If only DBX_DEBUGGING_INFO or only
3483         DWARF2_DEBUGGING_INFO is supported for the target, provide
3484         appropriate definitions.
3485
3486 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3487
3488         * Makefile.in: Update, and add c-objc-common.o dependencies.
3489         * c-lang.c: Remove unnecessary includes.
3490         (c_init): Move bulk of code to c_objc_common_init, and call it.
3491         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
3492         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
3493         c-objc-common.c.
3494         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
3495         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
3496         c_objc_common_init, c_missing_noreturn_ok_p): New.
3497         * toplev.c: Update comment.
3498         * doc/passes.texi: Update.
3499 objc:
3500         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3501         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3502         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
3503         (objc_init): Update to use c_objc_common_init.
3504
3505 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3506
3507         * cpphash.c (_cpp_init_hashtable): Update.
3508         * cpphash.h (struct spec_nodes): Remove n_L.
3509         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
3510
3511 2001-11-17  Richard Henderson  <rth@redhat.com>
3512
3513         * unroll.c (loop_iterations): Move last change ...
3514         * doloop.c (doloop_modify_runtime): ... here.
3515
3516 2001-11-17  Corey Minyard  <minyard@acm.org>
3517             Richard Henderson  <rth@redhat.com>
3518
3519         * unroll.c (loop_iterations): Detect one situation in which we
3520         overestimate the number of iterations.
3521
3522 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3523
3524         * gcc.c (set_input): Export.
3525         Move declaration ...
3526         gcc.h (set_input): ... here.
3527
3528 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3529
3530         * gcc.c (set_collect_gcc_options): New function, split out from
3531         main.
3532         Ignore elided switches.
3533         (do_spec): Invoke before executing command.
3534         (do_spec_1): Likewise.
3535         Fixes PR other/3968.
3536
3537 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
3538
3539         * config/cris/cris.h (INT_ASM_OP): Remove.
3540
3541 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3542
3543         * config/i386/sol2.h (WINT_TYPE): Redefine.
3544         (WINT_TYPE_SIZE): Likewise.
3545
3546 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3547
3548         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
3549         (dup2): Make static and add prototype.
3550         * m68k/plexus.h: Don't define NO_DUP2.
3551         * configure.in (AC_CHECK_FUNCS): Add dup2.
3552         * config.in, configure: Regenerate.
3553
3554         * ia64/aix.h (REG_SIZE): Don't #undef.
3555         * sparc.h (REG_SIZE): Delete.
3556         * flow.c (mark_used_regs): Don't use REG_SIZE.
3557         * regs.h (REG_SIZE): Delete.
3558
3559 2001-11-27  Andreas Schwab  <schwab@suse.de>
3560
3561         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
3562         PREFERRED_DEBUGGING_TYPE.
3563
3564 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3565
3566         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
3567         (expr.o, varasm.o): Depends on langhooks.h.
3568         * c-common.c (c_safe_from_p): Always declare.
3569         (c_expand_expr): Refine when declared.
3570         * c-lang.c (c-common.h): Now include.
3571         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
3572         (c_init): Don't set lang_safe_from_expr.
3573         * expr.c (langhooks.h): Now include.
3574         (lang_safe_from_p): No longer define.
3575         (safe_from_p): Use lang hook.
3576         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
3577         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
3578         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
3579         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
3580         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
3581         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
3582         * langhooks.h (struct lang_hooks): New fields expand_constant
3583         and safe_from_p.
3584         * output.h (output_constant): Size arg is HOST_WIDE_INT.
3585         * stmt.c (expand_decl_init): No longer need to expand constant
3586         for CONST_DECL.
3587         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
3588         * toplev.c (lang_expand_constant): Delete var.
3589         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
3590         operations on SAVE_EXPR.
3591         * varasm.c (langhooks.h): Now include.
3592         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
3593         (record_constant_1, output_addressed_constants): Likewise.
3594         (initializer_constant_valid_p, output_constant): Likewise.
3595         (output_constant_def): Process no-defer of string constant.
3596         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
3597         (output_constant): Strip more conversions.
3598         Track our size and pad for the rest.
3599         (array_size_for_constructor): Remove code for non-byte STRING_CST.
3600         (output_constructor): SIZE now HOST_WIDE_INT.
3601
3602 2001-11-27  Richard Henderson  <rth@redhat.com>
3603
3604         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
3605         in computing DIFF.
3606
3607 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
3608
3609         * cppfiles.c (read_include_file): Add comment.
3610
3611 2001-11-26  Richard Henderson  <rth@redhat.com>
3612
3613         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
3614
3615 2001-11-26  Richard Henderson  <rth@redhat.com>
3616
3617         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
3618         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
3619         commented out override.
3620
3621 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3622
3623         * cppfiles.c (stack_include_file): Don't optimize zero-length
3624         files.
3625         (read_include_file): NUL-terminate read files.
3626         * cpplex.c (handle_newline, skip_escaped_newlines,
3627         get_effective_char, skip_whitespace, parse_identifier,
3628         parse_identifier_slow, parse_number, parse_string,
3629         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
3630         NUL-terminated.
3631         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
3632         Be sure buffers are NUL terminated.
3633         * cppmacro.c (warn_of_redefinition): Kill compile warning.
3634
3635 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3636
3637         * c-common.c: Include tree-inline.h.
3638         (c_language): Move separate definitions here.
3639         (c_common_init_options, c_common_post_options): New.
3640         (c_common_lang_init): Rename c_common_init.
3641         * c-common.h (c_common_lang_init): Similarly.
3642         (c_common_init_options, c_common_post_options): New.
3643         * c-lang.c (c_post_options): Move body to c_common_post_options.
3644         (c_init_options): Use c_common_init_options.
3645         (c_init): Update.
3646         * langhooks.def: Rearrange.
3647         * langhooks.h: Rearrange, and improve comments.
3648         * toplev.c (do_compile): New function.
3649         (toplev_main): Use it.
3650         (lang_independent_f_options, parse_options_and_default_flags,
3651         process_options): Remove trailing periods.
3652         * Makefile.in: Update.
3653 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
3654         functions.
3655         (ojbc_init): Update.
3656
3657 2001-11-26  Richard Henderson  <rth@redhat.com>
3658
3659         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
3660
3661 2001-11-26  DJ Delorie  <dj@redhat.com>
3662
3663         * expr.c (store_constructor): Actually use the value computed
3664         if WORD_REGISTER_OPERATIONS.
3665
3666 2001-11-26  Richard Henderson  <rth@redhat.com>
3667
3668         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
3669         for CONSTRUCTOR.
3670
3671 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
3672
3673         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
3674         correct function on AIX.
3675
3676 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
3677
3678         * toplev.c (process_options): Don't force
3679         flag_optimize_sibling_calls to zero just because exceptions are
3680         enabled.
3681
3682 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
3683
3684         * df.h (transfer_function_sbitmap): Use PARAMS around argument
3685         list in function prototypes.
3686         (transfer_function_bitmap): Likewise.
3687
3688 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
3689
3690         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
3691         * config/i386/netbsd-elf.h: Likewise.
3692
3693 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
3694
3695         * doc/trouble.texi: Remove outdated RS/6000 comments.
3696
3697 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
3698
3699         * final.c (walk_alter_subreg): Fix return value.
3700
3701 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
3702
3703         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
3704         alter_subreg.
3705         * sparc.md (post-reload splitters): Do not call alter_subreg.
3706         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
3707
3708 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
3709
3710         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
3711
3712 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
3713
3714         * final.c: (insn_lengths): Make it an int *, so that large jump
3715         tables don't overflow.
3716
3717 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
3718
3719         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
3720         (format_types): Use it for scanf.
3721         (dollar_arguments_pointer_p): New.
3722         (init_dollar_format_checking): Store details of which arguments
3723         are pointers.
3724         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
3725         (finish_dollar_format_checking): Take extra parameter
3726         pointer_gap_ok.  Treat unused arguments differently if
3727         pointer_gap_ok and the unused arguments are pointers.
3728         (check_format_info_main): Pass extra argument to
3729         finish_dollar_format_checking.
3730         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
3731         unused arguments are present between used arguments with operand
3732         numbers.
3733
3734 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
3735
3736         * df.c: Add prototypes for hybrid_search_bitmap and
3737         hybrid_search_sbitmap.
3738         (hybrid_search_bitmap): New function.
3739         (hybrid_search_sbitmap): New function.
3740         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
3741         (iterative_dataflow_bitmap): Ditto.
3742
3743 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3744
3745         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
3746         address computations.
3747
3748 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3749
3750         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
3751         register b (low part of d).
3752
3753 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3754
3755         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
3756         passed to mcount.
3757
3758 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
3759
3760         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
3761         * config/alpha/x-vms: New file, to compile the above.
3762         * config.gcc (alpha*-dec-vms*): Add x-vms.
3763
3764 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
3765
3766         * genextract.c (main): Set ro_loc for peepholes.
3767
3768 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
3769
3770         * fix-header.c (main): Move inf_buffer termination and inf_limit
3771         calculation to after read.
3772
3773         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
3774         (__UNIX_FOPEN): Define.
3775
3776 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3777
3778         * function.c (assign_stack_temp_for_type): Clear alias set before
3779         setting new one.
3780
3781 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
3782
3783         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
3784         format.
3785         * rs6000.md (cmptf): Fix typo.
3786
3787 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
3788
3789         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
3790         * varasm.c (output_constructor): Use assemble_integer rather
3791         than ASM_OUTPUT_BYTE.
3792
3793 2001-11-23  Andreas Jaeger  <aj@suse.de>
3794
3795         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
3796         extension.
3797
3798 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
3799
3800         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
3801         default definition.
3802         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
3803         (MULTILIB_DEFAULTS): Remove previous definition.
3804
3805 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3806
3807         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
3808         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
3809
3810 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3811
3812         * cris.h: Revert thinko in last patch.
3813
3814 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3815
3816         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
3817         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
3818         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
3819         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
3820         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
3821         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
3822
3823         * predict.c, reg-stack.c: Fix spelling errors.
3824
3825 2001-10-09  Andrew Haley  <aph@redhat.com>
3826
3827         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
3828         start of stack slot.
3829
3830 2001-11-22  Graham Stott  <grahams@redhat.com>
3831
3832         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
3833         replacement jump after original jump.
3834
3835         (verify_flow_info): Remove redundent initialisation.
3836         Handle reaching end of insn list before finding a BARRIER.
3837         Only issue one missing barrier diagnostic.
3838
3839 2001-11-22  Graham Stott  <grahams@redhat.com>
3840
3841         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
3842
3843 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3844
3845         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
3846         insn actually does.
3847
3848 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
3849
3850         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
3851         Fix typo -mm32rx=> -m32rx.
3852
3853         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
3854         targets.
3855
3856         * config.gcc (xscale-coff): Add necessary header files to
3857         tm_file variable.
3858
3859 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
3860
3861         * rs6000.c (output_cbranch): Use $, not %$, in output template.
3862
3863 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3864
3865         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
3866         (lang_type_quals): Declare.
3867         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
3868         retrieve language-specific qualifiers for a type node, instead of
3869         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
3870         lang_dump_tree.
3871         * tree-dump.h: Rename from c-dump.h.
3872         * c-common.h (C_TYPE_QUALS): Removed.
3873         Move declarations for tree-dump.c interface to...
3874         * tree.h: ... here. Remove lang_dump_tree.
3875         * langhooks.h (struct lang_hooks_for_tree_dump): New.
3876         (struct lang_hooks): Add tree_dump hooks.
3877         * langhooks.c (lhd_tree_dump_dump_tree): New function.
3878         (lhd_tree_dump_type_quals): New function.
3879         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
3880         Declare.
3881         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
3882         * Makefile.in: Move tree-dump.o to language-independent back-end.
3883
3884 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3885
3886         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
3887         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
3888         * arc.h (DBX_REGISTER_NUMBER): Likewise.
3889         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
3890         * avr.h (DBX_REGISTER_NUMBER): Likewise.
3891         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
3892         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
3893         * convex.h (DBX_REGISTER_NUMBER): Likewise.
3894         * cris.h (DBX_REGISTER_NUMBER): Likewise.
3895         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
3896         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
3897         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
3898         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
3899         * i370.h (DBX_REGISTER_NUMBER): Likewise.
3900         * i860.h (DBX_REGISTER_NUMBER): Likewise.
3901         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
3902         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
3903         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
3904         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
3905         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
3906         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
3907         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
3908         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
3909         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
3910         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
3911         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
3912         * romp.h (DBX_REGISTER_NUMBER): Likewise.
3913         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
3914         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
3915         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
3916         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
3917         * v850.h (DBX_REGISTER_NUMBER): Likewise.
3918         * vax.h (DBX_REGISTER_NUMBER): Likewise.
3919         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
3920
3921         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
3922         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
3923
3924 2001-11-21  H.J. Lu <hjl@gnu.org>
3925
3926         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
3927
3928 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3929
3930         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
3931         emit_cmp_and_jump_insns.
3932
3933         * stormy16.c (xstormy16_expand_builtin_va_arg,
3934         xstormy16_expand_casesi): Likewise.
3935
3936 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3937
3938         * function.c (keep_stack_depressed): Major rework.
3939         (handle_epilogue_set, emit_equiv_load): New functions.
3940         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
3941         has return value.
3942         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
3943         * rtl.h (SET_IS_RETURN_P): New macro.
3944
3945         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
3946         and also support TREE_ADDRESSABLE.
3947         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
3948
3949 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
3950
3951         * rs6000.md (cmptf_internal1): Replace %$ with $.
3952
3953 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
3954
3955         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
3956         (read_include_file): Use STAT_SIZE_TOO_BIG.
3957
3958         * cppinit.c (INO_T_COPY): Define.
3959         (INO_T_EQ): Uppercase parameters.
3960         (append_include_chain): Use INO_T_COPY.
3961
3962 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
3963
3964         * cfg.c: Fix typos and formatting in the introductory comment.
3965
3966 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
3967
3968         * profile.c (compute_branch_probabilites):  Compute probabilities
3969         for entry/exit edges; estimate probabilities for zero counts.
3970
3971 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
3972
3973         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
3974         to emit_library_call.
3975         * function.c (expand_main_function, expand_function_start,
3976         expand_function_end): Likewise.
3977         * profile.c (output_func_start_profiler): Likewise.
3978         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
3979         second argument to emit_library_call.
3980         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
3981         as second argument to emit_library_call.
3982         * calls.c (emit_library_call): Update fn_type description.
3983
3984 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
3985
3986         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
3987         if fndecl is still DECL_INLINE and has DECL_RESULT.
3988
3989 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3990
3991         * clipper.c (clipper_movstr): Avoid uninitialized warning.
3992         * i960.c (is_mask, legitimize_address): Likewise.
3993         * m88k.c (m88k_expand_prologue): Likewise.
3994         * m88k.md: Likewise.
3995         * mcore.c (emit_new_cond_insn): Likewise.
3996         * stormy16.c (xstormy16_emit_cbranch): Likewise.
3997
3998 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
3999
4000         * config.gcc: Delete powerpcle-*-solaris2* stanza.
4001         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
4002         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
4003         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
4004         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
4005         config/rs6000/t-ppcos: Expunge all references to Solaris.
4006
4007         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
4008
4009         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
4010         output templates.
4011         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
4012         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
4013
4014 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4015
4016         * sh.md: Avoid uninitialized warnings.
4017         * vax.c (vax_rtx_cost): Likewise.
4018
4019 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
4020
4021         * rs6000.c (direct_return): Check if we are saving altivec
4022         registers.
4023         (first_altivec_reg_to_save): New.
4024         Updated stack frame layout comments.
4025         (rs6000_stack_info): Calculate altivec register save size.
4026         Save link register if we saved some altivec registers.
4027         (rs6000_stack_info): Align save size to 16 if altivec abi or
4028         abi_darwin.
4029         (rs6000_stack_info): Calculate altivec register offsets.
4030         (rs6000_stack_info): Add altivec info to save_size.
4031         (debug_stack_info): Add altivec debug info.
4032         (rs6000_emit_prologue): Save altivec registers and vrsave.
4033         (compute_vrsave_mask): New.
4034         (altivec_expand_builtin): Remove unused variables.
4035         (rs6000_parse_abi_options): Add static qualifier.
4036         (rs6000_expand_builtin): Remove unused parameters.
4037         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
4038         (altivec_init_builtins): Same.
4039         (is_altivec_return_reg): New.
4040         (vrsave_operation): New.
4041         (ALTIVEC_REG_BIT): New.
4042         (generate_set_vrsave): New.
4043
4044         * rs6000.md (get_vrsave): New.
4045         (set_vrsave): New.
4046         (*set_vrsave_internal): New.
4047
4048         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
4049         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
4050         altivec_padding_size, vrsave_mask.
4051         (TOTAL_ALTIVEC_REGS): New.
4052         (EPILOGUE_USES): Add VRSAVE_REGNO.
4053
4054 2001-11-20  Jeff Law <law@redhat.com>
4055
4056         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
4057         exit label as necessary.
4058
4059 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
4060
4061         * reload1.c (elimination_effects): Use function_invariant_p
4062         instead of CONSTANT_P when considering register equivalences.
4063
4064 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
4065
4066         * config.gcc: Add FreeBSD/PowerPC target.
4067         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4068         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4069         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4070         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4071         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4072         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
4073         freebsd-spec.h to tm_file.
4074         (rs6000-*-lynxos*): Add lynx.h to tm_file.
4075         * config/freebsd.h: Tidy up.
4076         (USING_CONFIG_FREEBSD): Define.
4077         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
4078         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
4079         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
4080         (TARGET_HAS_F_SETLKW): Define.
4081         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
4082         * config/freebsd-spec.h: New file.
4083         * config/rs6000/freebsd.h: New file.
4084         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
4085         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
4086         USING_SVR4_H to know when to turn on ELF support.
4087         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
4088         define only if not already defined.
4089         Add FreeBSD support.
4090         * config/rs6000/aix.h (TARGET_VERSION): Define.
4091         * config/rs6000/beos.h: Likewise.
4092         * config/rs6000/darwin.h: Likewise.
4093         * config/rs6000/mach.h: Likewise.
4094         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
4095         Don't include lynx.h directly.
4096
4097 2001-11-20  Graham Stott  <grahams@redhat.com>
4098
4099         * unwind-dw2-fde.c (__deregister_frame_info_bases):
4100         Fix lossage in last change return OB.
4101
4102 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
4103
4104         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
4105         Remove unneeded exit related macros.
4106
4107 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
4108
4109         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
4110
4111         * rs6000.c (rs6000_emit_move): Add TFmode case.
4112         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
4113         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
4114         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
4115         * rs6000.h: ... to here.
4116         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
4117         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
4118         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
4119
4120 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4121
4122         * emit-rtl.c (get_mem_attrs): Fix typo.
4123
4124 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
4125
4126         * c-lang.c (finish_file): Backout 2001-11-16
4127         changes, instead set DECL_DEFER_OUTPUT for static inline functions
4128         before calling c_expand_deferred_function.
4129
4130 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
4131
4132         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
4133         Don't register empty .eh_frame sections.
4134         (__deregister_frame_info_bases, __deregister_frame): Don't
4135         unregister them either.
4136
4137 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
4138
4139         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
4140         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
4141         * configure: Regenerate.
4142         * config.in: Add dummy definitions of new flags.
4143         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
4144         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
4145         * gcc.c (ASM_DEBUG_SPEC): New macro.
4146         (asm_debug): New static variable.
4147         (default_compilers): Add asm_debug when assembling from
4148         user input.
4149         (static_specs): Add asm_debug.
4150
4151 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
4152
4153         * config.gcc (*-*-freebsd*): Remove configuration block.
4154
4155 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
4156
4157         bootstrap/4422
4158         * configure.in: Setup ability to run ./stage[1234]/xgcc in
4159         fixinc *as if* it were a proper lang subdirectory.
4160         * configure: Rebuilt.
4161
4162 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
4163
4164         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
4165
4166 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4167
4168         * 1750a.md: Don't use hex format for a const_int.
4169
4170 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
4171
4172         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
4173
4174 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
4175
4176         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
4177         defined (prevents link errors when gettext isn't in the system
4178         library).
4179
4180 2001-11-19  DJ Delorie  <dj@redhat.com>
4181
4182         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
4183         (validate_const_int): New.
4184         (read_rtx): Validate constant integers.
4185         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
4186
4187 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
4188
4189         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
4190
4191 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
4192
4193         * toplev.c (DUMPFILE_FORMAT): Define default.
4194         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
4195         (close_dump_file, compile_file): Likewise.
4196         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
4197         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
4198
4199 2001-11-19  Jeff Law <law@redhat.com>
4200
4201         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
4202         a nop-jump.
4203
4204 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4205
4206         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
4207         Don't fall off the base token run.
4208
4209 2001-11-19  Jason Wilkins <fenix@io.com>
4210
4211         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
4212
4213 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4214
4215         * tree.def (VIEW_CONVERT_EXPR): New tree code.
4216         * tree.h (handled_component_p): New declaration.
4217         * alias.c (handled_component_p): Move function from here ...
4218         * expr.c (handled_component_p): ... to here and non longer static.
4219         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
4220         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
4221         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
4222         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
4223         (expand_expr, case VIEW_CONVERT_EXPR): New case.
4224         (expand_expr, cse ADDR_EXPR): No need to copy if already
4225         BIGGEST_ALIGNMENT.
4226         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
4227         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
4228         (output_constant): Handle VIEW_CONVERT_EXPR.
4229         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
4230         Add new case for VIEW_CONVERT_EXPR.
4231
4232 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4233
4234         * a29k/unix.h (ASM_FILE_START): Const-ify.
4235         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
4236         * i386/isc.h (ASM_FILE_START): Const-ify.
4237         * i386/sun386.h (ASM_FILE_START): Likewise.
4238         * m32r.md: Likewise.
4239         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
4240         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
4241         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
4242         * mn10200.md: Initialize variable.
4243
4244 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
4245
4246         * gcse.c (try_replace_reg): Copy RTX before creating note.
4247
4248         * df.h (df_ref_flags): New uenum.
4249         (DF_REF_FLAGS): New macro.
4250         (struct ref): Add field "flags".
4251         * df.c (HANDLE_SUBREG): Remove.
4252         (df_ref_create): Likewise; set flags field of ref.
4253         (df_def_record_1): Strip down read_write subreg; remove
4254         commented out code; set READ_WRITE flag.
4255         (read_modify_subreg_p): New static function.
4256         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
4257         new argument "flags".
4258         (df_insn_refs_record): Update call of df_uses_record.
4259         (df_insn_modify): Avoid #if 0 around comment.
4260         (df_dump): Dump the read/write flag.
4261
4262         * predict.c (propagate_freq): Make cyclic_probability and frequency
4263         volatile
4264
4265         * i386.c (ix86_cc_mode): Accept USE.
4266
4267         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
4268         jump is turned into simplejump.
4269
4270 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
4271
4272         * doc/fragments.texi, doc/trouble.texi: Remove links to old
4273         installation chapter.
4274         * doc/gcc.texi: Don't claim that this manual documents
4275         installation.  Mark Installation menu entry as being out of date.
4276
4277 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
4278
4279         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
4280         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
4281         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
4282
4283 2001-11-19  Jason Merrill  <jason@redhat.com>
4284
4285         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
4286         cur_token, not after.
4287
4288         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
4289         Lose ASM_OUTPUT_CONSTRUCTOR.
4290         * system.h: Poison it and INT_ASM_OP.
4291         * c-lang.c (finish_file): Don't check for it.
4292         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
4293
4294 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4295
4296         * mmix.c (mmix_cc1_ignored_option): Const-ify.
4297         (mmix_init_machine_status): Make static to match declaration.
4298         (mmix_unique_section): Const-ify.
4299         (mmix_output_quoted_string): Avoid automatic aggregate
4300         initialization.
4301         (mmix_output_register_setting): Likewise.
4302         (mmix_output_shiftvalue_op_from_str): Likewise.
4303
4304         * mmix.h (mmix_cc1_ignored_option): Const-ify.
4305         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4306         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4307
4308 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4309
4310         PR c/4448
4311         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
4312         name __objc_thread_exit_status so that it matches the
4313         variable defined in objc/thr.h.
4314
4315 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4316
4317         PR bootstrap/4020
4318         * mklibgcc.in: Add missing semi-colons.
4319         * Makefile.in: Same.
4320
4321 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4322
4323         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
4324         after re-laying out decl in incomplete case.
4325         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
4326
4327 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4328
4329         * doc/install-old.texi: Move some sections out to ...
4330         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
4331         ... here.  New files.  Make into chapters rather than sections.
4332         * doc/gcc.texi: Include the new files and add menu entries for
4333         them.
4334         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
4335
4336 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4337
4338         * tree.h (TYPE_ALIGN_OK): New flag.
4339         * emit-rtl.c (set_mem_attributes): Handle it.
4340         * expr.c (emit_single_push_insn): Only set to alias set 0 if
4341         doing sibcall optimization.
4342         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
4343         when make temporary.
4344         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
4345         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
4346
4347         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
4348
4349 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4350
4351         * c-decl.c (c_decode_option): Give deprecation warning for
4352         -traditional.
4353         * doc/invoke.texi (-traditional): Note that this option is
4354         deprecated.
4355
4356 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
4357
4358         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
4359         arg to HOST_WIDE_INT, not long.
4360
4361         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
4362         (HAS_INIT_SECTION): Define.
4363         (REAL_ARITHMETIC): Don't undefine.
4364
4365 2001-11-18  Egor Duda  <deo@logos-m.ru>
4366
4367         * config/i386/cygwin.h: Strip leading '*' from name, if any.
4368
4369 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4370
4371         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
4372         * c-common.c: Include diagnostic.h.
4373         (c_common_finish): New.
4374         * c-common.h (c_common_finish): New.
4375         * c-lang.c (LANG_HOOKS_FINISH): Override.
4376         * c-parse.in: Don't include diagnostic.h.
4377         (finish_parse): Remove.
4378         * langhooks.h: Update comments.
4379         * toplev.c (lang_dependent_init): New prototype.
4380         (finalize): New.
4381         (compile_file): Split cleanup code out to finalize.
4382         (lang_dependent_init): Stop if lang_hooks.init fails.
4383         (toplev_main): Update.
4384         * tree.h (finish_parse): Remove.
4385 objc:
4386         * objc-act.c (LANG_HOOKS_FINISH): Override.
4387
4388 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
4389
4390         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
4391         * config/alpha/vms_tramp.asm: New file.
4392         * config/alpha/vms-tramp.asm: Removed.
4393
4394 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4395
4396         * c-common.c (struct disabled_builtin, disabled_builtins,
4397         disable_builtin_function, builtin_function_disabled_p): New.
4398         (builtin_function_2): Check for disabled built-in functions.
4399         * c-common.h (disable_builtin_function): Declare.
4400         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
4401         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
4402         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
4403
4404 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4405
4406         PR target/4606
4407         * config.gcc: Remove reference to va-clipper.h.
4408
4409 2001-11-17  Stan Shebs  <shebs@apple.com>
4410
4411         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
4412         AltiVec-related bitfields.
4413
4414 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4415
4416         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
4417         (mark_eh_region, case ERT_UKNONW): New case.
4418
4419 2001-11-17  Christopher Faylor  <cgf@redhat.com>
4420             Corinna Vinschen  <vinschen@redhat.com>
4421
4422         * config/i386/cygwin.h: Search target specific include directory for
4423         w32api stuff, if appropriate.
4424
4425 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
4426
4427         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
4428
4429 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
4430
4431         * config/rs6000/rs6000.md: Change all ldvx to lvx.
4432
4433 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
4434
4435         * gensupport.c (process_rtx): Don't assume filename is the first
4436         argument of any rtl.
4437
4438 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4439
4440         * vax-protos.h (reg_was_0_p): New prototype.
4441         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
4442         * vax.c (follows_p, reg_was_0_p): New functions.
4443
4444 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4445
4446         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
4447         (casesi1): Likewise.  Define new pattern which arises by simplification
4448         when operand 1 is a constant int.  Correct pattern which arises by
4449         simplification when operand 1 is zero.
4450
4451 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
4452
4453         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
4454         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
4455         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
4456         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
4457         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
4458         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
4459         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
4460         * config/arm/aof.h: Don't include arm.h.
4461         * config/arm/aout.h: Likewise.
4462         * config/arm/coff.h: Don't include semi.h and aout.h.
4463         * config/arm/elf.h: Don't include aout.h.
4464         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
4465         (TARGET_VERSION): Undef before defining.
4466         (ARM_OS_NAME): Likewise
4467         (TARGET_DEFAULT): Likewise
4468         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
4469         * config/arm/pe.h: Don't include arm/coff.h.
4470         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
4471         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
4472         * config/arm/riscix1-1.h: Likewise.
4473         * config/arm/rix-gas.h: Don't include riscix.h.
4474         (DBX_CONTIN_LENGTH): Undef before defining.
4475         * config/arm/semi.h: Don't include aout.h.
4476         * config/arm/semiaof.h: Don't include aof.h.
4477         * config/arm/strongarm-coff.h: Don't include coff.h.
4478         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
4479         * config/arm/vxarm.h: Don't include arm/coff.h.
4480         * config/arm/xscale-coff.h: Don't include coff.h.
4481
4482 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4483
4484         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
4485         emit_cmp_insn.
4486
4487 2001-11-16  Andreas Jaeger  <aj@suse.de>
4488
4489         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
4490         to ....
4491         (fixup_fallthru_exit_predecessor): ... this.
4492         Change callers and prototype.
4493
4494 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
4495
4496         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
4497         hand; don't use gen_setcc_2.
4498         (ix86_expand_builtin): Fix pshufw.
4499         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
4500         case UNORDERED to emit the right assembler instruction.
4501         (mmx_pshufw): Lose operand 2.
4502         (cvtsi2ss): Fix representation.
4503         From Graham Stott:
4504         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
4505
4506 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
4507
4508         * doc/include/linux-and-gnu.texi: Remove.
4509         * doc/gnu.texi: New.
4510         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
4511         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
4512
4513 2001-11-16  Kazu Hirata  <kazu@hxi.com>
4514
4515         * config/a29k/a29k.c: Fix comment formatting.
4516         * config/a29k/a29k.h: Likewise.
4517         * config/arc/arc.c: Likewise.
4518         * config/arc/arc.h: Likewise.
4519         * config/vax/vax.c: Likewise.
4520         * config/vax/vax.h: Likewise.
4521         * config/we32k/we32k.c: Likewise.
4522         * config/we32k/we32k.h: Likewise.
4523
4524 2001-11-16  Jeff Law  <law@redhat.com>
4525
4526         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
4527         creating a new jump insn.
4528
4529 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4530
4531         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
4532         copy misaligned data.
4533         * varasm.c (assemble_variable): Set alignment into MEM when changed.
4534
4535 2001-11-16  Graham Stott  <grahams@redhat.com>
4536
4537         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
4538         OPALIGN type.
4539
4540 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
4541
4542         * except.c: Support for catching a list of types with a single handler
4543         (struct eh_region): Change type and filter to lists for catch regions.
4544         (mark_eh_region): Mark the filter list for GC also.
4545         (expand_start_catch): Always build a list if argument not NULL and
4546         register each type of the list through add_type_for_runtime.
4547         (duplicate_eh_region_1): Change type into type_list for catch regions.
4548         (assign_filter_values): Assign a filter to each type associated with a
4549         catch region. Assign filter for NULL types in a unique entry in the
4550         filter list.
4551         (build_post_landing_pads): Emit compare and jump for each filter of
4552         the list associated with a catch region.
4553         (reachable_next_level): When the type thrown is known, stop the search
4554         as soon as one type within a catch list matches. Also, a handler is
4555         potentially reachable only if at least one of the types it catches
4556         has not been previously caught.
4557         (collect_one_action_chain): Retrieve the filter for a NULL type list
4558         from the first filter list entry. For non NULL type lists, add an
4559         action record for every filter assigned.
4560         * except.h: Reflect changes in comment before expand_start_catch.
4561
4562 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4563
4564         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
4565         BLKmode.
4566
4567 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
4568
4569         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
4570
4571 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
4572
4573         * c-lang.c (finish_file): Don't emit static inline functions if
4574         they weren't referenced.
4575
4576 2001-11-15  Stan Shebs  <shebs@apple.com>
4577
4578         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
4579
4580 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4581
4582         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
4583         call.
4584         * config/i386/i386.md: Likewise.
4585
4586 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4587
4588         * timevar.c (rtl.h): Include so get fancy abort.
4589
4590 2001-11-15  Dale Johannesen  <dalej@apple.com>
4591
4592         * config/darwin.h (SELECT_RTX_SECTION):  Force address
4593         initializers into 'const' section
4594         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
4595         if_then_else to match result, not operands
4596
4597 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4598
4599         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
4600         * emit-rtl.c (change_address): Fix typo in default alignment.
4601         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
4602         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
4603         * rtl.h (REGNO_PTR_FRAME_P): New macro.
4604
4605         * expr.c (store_field): Pass tree instead of max size; callers changed.
4606         Change handling of alignment.
4607         Only copy to_rtx if is TARGET.
4608         (expand_expr_unaligned): Delete; callers now use expand_expr.
4609         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
4610         (expand_assignment): Change handling of alignment.
4611         Only copy to_rtx if was original.
4612         (get_inner_reference): No longer return alginment; callers changed.
4613         (expand_expr, case COMPONENT_REF): Change handling of alignment.
4614         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
4615         (compare_from_rtx): Delete ALIGN parm; all callers changed.
4616         (do_compare_rtx_and_jump): Likewise.
4617         * expr.h: Reflect above changes.
4618         * tree.h: Likewise.
4619         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
4620         to get_inner_reference.
4621         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
4622         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
4623         * optabs.c: Likewise.
4624         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
4625         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
4626         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
4627         compare_rtx_and_jump, and emit_cmp_jump_insns.
4628         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
4629         * function.c (assign_stack_temp_for_type): No longer static.
4630         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
4631         (prepare_cmp_insn): Delete declaration.
4632         * rtl.h (assign_stack_temp_for_type): Add declaration.
4633         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
4634         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
4635         * config/i386/i386.c,config/mips/mips.c: Likewise.
4636         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
4637         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
4638
4639 2001-11-15  Stan Shebs  <shebs@apple.com>
4640
4641         * config/rs6000/rs6000.h: Fix a comment typo.
4642         (RTX_COSTS): Sort processor versions better.
4643
4644 2001-11-15  Kazu Hirata  <kazu@hxi.com>
4645
4646         * config/h8300/h8300.md: Fix insn length of bit insns.
4647
4648 2001-11-15  Jason Merrill  <jason@redhat.com>
4649
4650         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
4651         DIEs if there were errors in the source.
4652
4653         * config/alpha/alpha-interix.h, config/alpha/elf.h,
4654         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
4655         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
4656         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
4657         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
4658         config/elfos.h, config/lynx.h, config/netware.h,
4659         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
4660         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
4661         uses to use ASM_LONG.
4662
4663 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
4664
4665         * gensupport.c  process_include : Change call to alloca to
4666         xmalloc.
4667
4668 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
4669
4670         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
4671         templates.
4672
4673 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4674
4675         * final.c (alter_subreg): If simplify_subreg can't do anything,
4676         handle REG ourselves and abort for others.
4677
4678 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
4679
4680         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
4681         routines.
4682
4683 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4684
4685         * fix-header.c (read_scan_file): Update.
4686
4687 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4688
4689         * toplev.c (toplev_main): Don't start timing until after
4690         command-line options are parsed.
4691
4692 2001-11-15  Andreas Schwab  <schwab@suse.de>
4693
4694         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
4695         makefile frag, not host makefile frag.
4696         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
4697         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
4698         used.
4699         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
4700         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
4701         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
4702         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
4703         * config/i386/t-dgux (STMP_FIXPROTO): Define.
4704         * config/x-interix: Don't define STMP_FIXPROTO and
4705         FIXPROTO_DEFINES.
4706         * config/t-interix: New file, define STMP_FIXPROTO.
4707         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
4708         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
4709         * config/t-svr4 (FIXPROTO_DEFINES): Define.
4710         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
4711         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
4712         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
4713         * config/m68k/t-hp3200: Renamed from x-hp3200.
4714         * config/i370/t-oe: Renamed from x-oe.
4715         * config/mips/t-iris: Renamed from x-iris.
4716         * config/pa/t-bsd: Renamed from x-pa.
4717         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
4718         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
4719         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
4720         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
4721         config/rs6000/x-cygwin: Remove files.
4722
4723         * configure.in: Check for target objdump and use that in eh_frame
4724         optimization test.
4725         * configure: Regenerated.
4726
4727 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
4728
4729         * jump.c (squeeze_notes): Return true if no real insns were found.
4730         * rtl.h (squeeze_notes): Adjust prototype.
4731         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
4732         squeeze_notes finds no real instructions, abort.
4733         (merge_blocks_move_successor_nojumps): Likewise.
4734         * loop.c (find_and_verify_loops): Likewise.
4735         * stmt.c (expand_end_case): Likewise.
4736         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
4737         find any real instructions.
4738
4739         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
4740
4741         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
4742         conditional jump, request updating life into for the block
4743         containing it.  Fix a typo which prevented life info update.
4744         Clear blocks bitmap before using it.
4745
4746 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4747
4748         * c-common.c: Include c-lex.h.
4749         (c_common_lang_init): Change prototype.  Call init_c_lex and
4750         init_pragma from here.
4751         * c-common.h (c_common_lang_init): Change prototype.
4752         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
4753         * c-lang.c (c_init): Change prototype.  Update.
4754         (c_init_options): Update.
4755         * c-lex.c (cpp_filename): Remove.
4756         (init_c_lex): Update.  Read the main file, and get the original
4757         file name.
4758         (yyparse): Finish the command line options.
4759         * c-parse.in (c_parse_init): Call init_reswords here.
4760         (init_parse): Remove.
4761         * c-tree.h (c_init_decl_processing): New.
4762         * cpphash.c (_cpp_init_hashtable): After initializing the hash
4763         table, populate it.
4764         * cppinit.c (read_original_filename, cpp_finish_options): New.
4765         (cpp_create_reader): New prototype. Defer hash table initialization.
4766         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
4767         hash table.  Get the original filename.
4768         * cpplib.h (cpp_create_reader): Update.
4769         (cpp_start_read): Remove.
4770         (cpp_read_main_file, cpp_finish_options): New.
4771         * cppmain.c (main, do_preprocessing): Update.
4772         * langhooks.h (struct langhooks): Update init prototype.
4773         * toplev.c (general_init, parse_options_and_default_flags,
4774         process_options, lang_indpendent_init, lang_dependent_init,
4775         init_asm_output): New; perform the bulk of initialization.
4776         (compile_file): Move most of initialization to above functions.
4777         (debug_hooks): Initialize statically.
4778         (set_Wunused): Relocate.
4779         (toplev_main): Move most of initialization to other init functions.
4780         Have a clear logic flow.
4781         * tree.h (init_parse, init_decl_processing): Remove.
4782 objc:
4783         * objc-act.c (objc_init): Update prototype, combine with old
4784         init_parse.
4785         (objc_init_options): Update.
4786
4787
4788 2001-11-15  Andreas Jaeger  <aj@suse.de>
4789
4790         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
4791         portability.
4792         * basic-block.h: Adjust prototype.
4793
4794 2001-11-15  Kazu Hirata  <kazu@hxi.com>
4795
4796         * config/rs6000/aix31.h: Fix comment formatting.
4797         * config/rs6000/beos.h: Likewise.
4798         * config/rs6000/darwin.h: Likewise.
4799         * config/rs6000/eabi.asm: Likewise.
4800         * config/rs6000/linux.h: Likewise.
4801         * config/rs6000/linux64.h: Likewise.
4802         * config/rs6000/lynx.h: Likewise.
4803         * config/rs6000/netbsd.h: Likewise.
4804         * config/rs6000/rs6000.c: Likewise.
4805         * config/rs6000/rs6000.h: Likewise.
4806         * config/rs6000/rs6000.md: Likewise.
4807         * config/rs6000/sol2.h: Likewise.
4808         * config/rs6000/tramp.asm: Likewise.
4809         * config/rs6000/xcoff.h: Likewise.
4810         * config/rs6000/xm-beos.h: Likewise.
4811
4812 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
4813
4814         * rtl.def (INCLUDE) : Define.
4815         * gensupport.c  (init_include_reader, process_include,
4816         save_string) :  New functions to implement an include facility
4817         in .md files.
4818         * gensupport.h : Add prototype for init_md_reader_args.
4819         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
4820         genextract.c genflags.c genopinit.c genoutput.c
4821         genpeep.c genrecog.c: Change call to init_md_reader to
4822         init_md_reader_args.
4823         * md.texi: Document (include "path") and -I directives for RTL
4824         generation tools.
4825
4826 2001-11-14  DJ Delorie  <dj@redhat.com>
4827
4828         * integrate.c (get_hard_reg_initial_reg): New.
4829         * integrate.h (get_hard_reg_initial_reg): Prototype.
4830         * local-alloc.c (block_alloc): Don't tie pseudos that
4831         represent call-saved hard regs' initial values.
4832
4833 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4834
4835         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
4836         recursion.
4837
4838 2001-11-14  Roger Sayle <roger@eyesopen.com>
4839
4840         * fold-const.c (fold): Optimize strlen comparisons against zero.
4841
4842 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
4843
4844         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
4845         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
4846         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
4847         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
4848         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
4849         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
4850         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
4851         Include various CPU headers via tm_file.  a.out based platforms now
4852         properly include sparc/aout.h.  sol2.h usage now implies including
4853         elfos.h, svr4.h, and sparc/sysv4.h.
4854         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
4855         Also define to '1'.
4856         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
4857         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
4858         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
4859         Remove.  They are a.out specific and belong in sparc/aout.h.
4860         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
4861         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
4862         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
4863         sparc/sparc.h.
4864         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
4865         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
4866         Moved here from sparc/sparc.h.
4867         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
4868         defining.
4869         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
4870         * config/sparc/lynx.h:  Don't include lynx.h.
4871         (SELECT_SECTION): Do not undef.
4872         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
4873         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
4874         and sparc/sysv4.h.
4875         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
4876         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
4877         sparc/aout.h now.
4878         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
4879         Don't undef, there is no need.
4880         * config/sparc/splet.h (CPP_PREDEFINES): Define.
4881         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
4882         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
4883         Don't include sparc/sparc.h.
4884         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
4885         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
4886         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
4887         elfos.h and svr4.h.
4888         (TARGET_VERSION): Define.
4889         * config/sparc/vxsim.h (TARGET_VERSION): Define.
4890
4891 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
4892
4893         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
4894         (cfg_layout_finalize): Use it.
4895         * bb-reorder.c (HAVE_epilogue): Remove.
4896         (make_reorder_chain): Do not care special placement of
4897         last basic block.
4898
4899         * predict.c (expected_value_to_br_prob): Delete the note
4900         once transformed.
4901
4902         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
4903         measure integration time separately.
4904
4905 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4906
4907         * function.c (struct temp_slot): ALIGN now unsigned.
4908
4909 2001-11-14  Kazu Hirata  <kazu@hxi.com>
4910
4911         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
4912         * config/dsp16xx/dsp16xx.h: Likewise.
4913         * config/dsp16xx/dsp16xx.md: Likewise.
4914
4915 2001-11-14  Kazu Hirata  <kazu@hxi.com>
4916
4917         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
4918         that deals with 7-bit shifts in HImode.
4919
4920 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
4921
4922         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
4923         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
4924         (final_scan_insn): Update call of alter_subreg.
4925         (cleanup_subreg_operands): Likewise.
4926         (alter_subreg): Rewrite using simplify_subreg.
4927         (output_address, output_operand): Update call of alter_subreg.
4928         * output.h (alter_subreg): Update prototype.
4929         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
4930         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
4931         * Makefile.in (final.o): Add dependency on expr.h
4932
4933 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4934
4935         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
4936
4937 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
4938
4939         * doc/install.texi (sparc-*-linux*): Mention requirements for
4940         binutils and glibc.
4941
4942 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
4943
4944         * Makefile.in (POD2MAN): Don't include --section=1.
4945         (manext): Rename to man1ext.  All users changed.
4946         (man7ext): New.
4947         (man7dir): New.
4948         (generated-manpages): Also depend on $(docdir)/gfdl.7,
4949         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
4950         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
4951         --section=1 in calls to $(POD2MAN).
4952         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
4953         (maintainer-clean, install, uninstall): Handle the new man pages.
4954         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
4955         (installdirs): Create man7dir.
4956         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
4957         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
4958         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
4959         the SEE ALSO man page section.
4960         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
4961         and fsf-funding(7) in the SEE ALSO man page section.
4962         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
4963         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
4964         * doc/include/fdl.texi, doc/include/funding.texi,
4965         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
4966         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
4967
4968 2001-11-13  Richard Henderson  <rth@redhat.com>
4969
4970         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
4971         as appropriate for the artificial decl.
4972
4973 2001-11-13  Richard Henderson  <rth@redhat.com>
4974
4975         * loop.c (combine_movables): Turn off combination until
4976         move_movables validation bugs are fixed.
4977
4978 2001-11-13  DJ Delorie  <dj@redhat.com>
4979
4980         * config.gcc (powerpc|rs6000): Set default cpp options based
4981         on --with-cpu settings.
4982         * config/rs6000/softfloat.h: New.
4983
4984 2001-11-13  Kazu Hirata  <kazu@hxi.com>
4985
4986         * config/h8300/h8300.c (shift_alg_si): Use special code for
4987         25-bit shifts on H8/S.
4988         (get_shift_alg): Generate special code for 25-bit shifts on
4989         H8/S.
4990
4991 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
4992
4993         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
4994         (adjust_automodify_address_1): New.
4995         * expr.h (adjust_address, adjust_address_nv): Adjust.
4996         (adjust_automodify_address, adjust_automodify_address_nv): Define.
4997         (adjust_address_1): Update prototype.
4998         (adjust_automodify_address_1): Add prototype.
4999         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
5000         (store_by_pieces_2): Likewise.
5001
5002 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5003
5004         * Makefile.in (explow.o): Now depends on ggc.h.
5005         * explow.c (ggc.h): Include.
5006         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
5007
5008         * Makefile.in (expr.o): Depends on insn-attr.h.
5009         * expr.c (insn-attr.h): New include.
5010         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
5011         of MEM.
5012         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
5013         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
5014         clean up related usage in ADDR_EXPR.
5015         (expand_expr_unaligned): Likewise.
5016
5017         * emit-rtl.c (change_address): Fix typo in alias setting.
5018
5019 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5020
5021         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
5022
5023 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5024
5025         PR bootstrap/3451
5026         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
5027         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
5028
5029 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
5030
5031         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
5032         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
5033         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
5034         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
5035         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
5036         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
5037         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
5038         sparc64-*-linux*):  Include various CPU headers via tm_file.
5039         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
5040         (SELECT_SECTION): Likewise.
5041         (SELECT_RTX_SECTION): Likewise.
5042         * config/sparc/sparc_bi.h: New file.
5043         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
5044         * config/sparc/linux-aout.h: Likewise.
5045         * config/sparc/linux.h: Don't include sparc/sysv4.h.
5046         * config/sparc/linux64.h: Likewise.
5047         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
5048         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
5049         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
5050         and dbxcoff.h
5051         (ASM_OUTPUT_IDENT): Do not #undef.
5052         (SELECT_SECTION): Likewise.
5053         (SELECT_RTX_SECTION): Likewise.
5054         * config/sparc/liteelf.h: Don't include gofast.h.
5055         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
5056         * config/sparc/lynx.h: Don't include sparc/sparc.h.
5057         * config/sparc/pbd.h: Likewise.
5058         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
5059         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
5060         * config/sparc/rtemself.h: Don't include rtems.h.
5061         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
5062         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
5063         sparc_bi.h instead.
5064         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
5065         * config/sparc/sol2.h: Include sparc/sparc.h directly.
5066         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
5067         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
5068         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
5069         * config/sparc/sp86x-elf.h: Don't include gofast.h.
5070         * config/sparc/splet.h: Don't include sparc/aout.h.
5071         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
5072         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
5073         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
5074         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
5075         * config/sparc/vxsparc64.h: Don't include gofast.h.
5076         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
5077
5078 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5079
5080         * doc/standards.texi: Mention C99 TC1.
5081
5082 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5083
5084         * mips-protos.h (mips_output_conditional_branch): Const-ify.
5085         * mips.c (mips_output_conditional_branch): Likewise.
5086
5087 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5088
5089         * config/h8300/h8300.c (shift_alg_si): Use special code for
5090         15-bit logical shifts and 31-bit logical shifts.
5091         (get_shift_alg): Generate special code for 15-bit and 31-bit
5092         logical shifts.
5093
5094 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5095
5096         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
5097         doing 6-bit logical shifts on H8/S.
5098         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
5099         (get_shift_alg): Generate special code for 21-bit shifts on
5100         H8/S.
5101
5102 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5103
5104         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
5105         label.
5106
5107 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5108
5109         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
5110         if both size and offset known.
5111
5112 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
5113
5114         * config/ia64/freebsd.h: Fix misspelling.
5115
5116 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5117
5118         * doc/gcc.texi: Move several chapters out to ...
5119         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
5120         doc/include/linux-and-gnu.texi, doc/interface.texi,
5121         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
5122         ... here.  New files.
5123         * doc/gcc.texi, doc/contrib.texi: Move section headings into
5124         contrib.texi.
5125         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
5126
5127 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5128
5129         * config/alpha/alpha-interix.h: Fix comment formatting.
5130         * config/alpha/alpha.c: Likewise.
5131         * config/alpha/alpha.h: Likewise.
5132         * config/alpha/alpha32.h: Likewise.
5133         * config/alpha/freebsd.h: Likewise.
5134         * config/alpha/unicosmk.h: Likewise.
5135         * config/alpha/vms.h: Likewise.
5136
5137 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5138
5139         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5140
5141 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
5142
5143         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
5144         numbers.
5145
5146 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5147
5148         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
5149         from type.
5150         (replace_equiv_address): Call update_temp_slot_address.
5151
5152         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
5153
5154         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
5155
5156 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5157
5158         * config/h8300/h8300.c (shift_alg_qi): New.
5159         (shift_alg_hi): Likewise.
5160         (shift_alg_si): Likewise.
5161         (get_shift_alg): Change the type of count to unsigned int.
5162         Use the tables.
5163
5164 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
5165
5166         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
5167         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
5168         to decide whether to defer a function.
5169         (finish_function): Adjust.
5170         (c_expand_deferred_function): New function.
5171         * c-lang.c (deferred_fns): New variable.
5172         (c_init): Initialize it, and mark it as a root.
5173         (defer_fn): New function.
5174         (finish_file): Expand all deferred functions.
5175         * c-tree.h (defer_fn): Declare.
5176         (c_expand_deferred_function): Likewise.
5177         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
5178         * objc-act.c (deferred_fns): New variable.
5179         (objc_init): Initialize it, and mark it as a root.
5180         (defer_fn): New function.
5181         (finish_file): Expand all deferred functions.
5182
5183 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5184
5185         * alpha.c (unicosmk_special_name): Prototype.
5186         (unicosmk_ssib_name): Delete unused variable.
5187         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
5188         * alpha/vms.h (PREFIX): Undef before defining.
5189         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
5190         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
5191         controlling usage.  Const-ify.
5192         (alias_number): Delete unused variable.
5193         * m32r/m32r.c (m32r_sched_init): Add missing argument.
5194         (m32r_expand_block_move): Fix uninitialized warnings.
5195         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
5196         always true' warnings.
5197         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
5198         * sh/sh.c: Include "integrate.h".
5199         (output_far_jump): Fix uninitialized warning.
5200         * final.c (shorten_branches): Avoid automatic aggregate
5201         initialization.
5202         * integrate.c (subst_constants): Likewise.
5203
5204 2001-11-11  Kazu Hirata  <kazu@hxi.com>
5205
5206         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
5207         (get_shift_alg): Remove redundant code.
5208
5209 2001-11-11  Kazu Hirata  <kazu@hxi.com>
5210
5211         * config/pa/milli64.S: Fix comment formatting.
5212         * config/pa/pa-64.h: Likewise.
5213         * config/pa/pa-linux.h: Likewise.
5214         * config/pa/pa-protos.h: Likewise.
5215         * config/pa/pa.c: Likewise.
5216         * config/pa/pa.h: Likewise.
5217         * config/pa/pa32-linux.h: Likewise.
5218         * config/pa/pa32-regs.h: Likewise.
5219         * config/pa/pa64-hpux.h: Likewise.
5220         * config/pa/pa64-regs.h: Likewise.
5221         * config/pa/som.h: Likewise.
5222
5223 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5224
5225         * doc/gcc.texi: Move several chapters out to ...
5226         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
5227         doc/service.texi, doc/standards.texi, doc/trouble.texi,
5228         doc/vms.texi: ... here.  New files.
5229         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
5230
5231 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5232
5233         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
5234         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
5235         collect2.c, combine.c, config.in, configure, configure.in,
5236         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
5237         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
5238         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
5239         spelling errors.
5240
5241 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5242
5243         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
5244         Adjust operand number in CONST_DOUBLE.
5245
5246         * expmed.c (extract_bit_field): No longer pass in alignment.
5247         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
5248         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
5249         Likewise.
5250         * expr.c (store_constructor, store_constructor_field): Likewise.
5251         (store_field, emit_group_load, emit_group_store): Likewise.
5252         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
5253         (store_bit_field, extract_bit_field): Likewise.
5254         * calls.c, expr.c, function.c: Change calls to above functions.
5255         * ifcvt.c, stmt.c: Likewise.
5256
5257         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
5258         constant and one is on frame.
5259         If know memref offset, adjust size from decl.
5260
5261 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5262
5263         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
5264         format specifier warning.
5265         * convex.h (ASM_OUTPUT_BYTE): Likewise.
5266         * elfos.h (ALIGN_ASM_OP): Undef before defining.
5267         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
5268         warning.
5269         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5270         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5271         * i386-interix.h (gen_stdcall_suffix): Prototype.
5272         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5273         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
5274         ASM_OUTPUT_LONG_DOUBLE): Likewise.
5275         * i386/interix.c (gen_stdcall_suffix): Const-ify.
5276         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5277         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
5278         specifier warnings.
5279         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5280         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
5281         ASM_OUTPUT_LONG_DOUBLE): Likewise.
5282         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5283         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5284         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5285         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5286         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
5287         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
5288         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5289         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
5290         Likewise.
5291         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
5292         Likewise.
5293         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
5294         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5295         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
5296         Likewise.
5297         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
5298         Likewise.
5299         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
5300         Likewise.
5301         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
5302         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5303         * m68k/news.h (PRINT_OPERAND): Likewise.
5304         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
5305         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
5306         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5307         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
5308         definition.
5309         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5310         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
5311         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
5312         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5313         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
5314         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
5315         PRINT_OPERAND): Likewise.
5316         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
5317         Likewise.
5318         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
5319         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
5320         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
5321         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5322         * mips.c (mips_output_external_libcall): Mark parameter with
5323         ATTRIBUTE_UNUSED.
5324         (mips_asm_file_start): Move variable into the scope where it's
5325         used.
5326         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5327         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5328         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
5329         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5330         * ns32k.c (print_operand): Likewise.
5331         * pa.c (print_operand, output_div_insn): Likewise.
5332         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
5333         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
5334         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
5335         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
5336         specifier warnings.
5337         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5338         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5339         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
5340         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
5341         specifier warnings.
5342         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5343
5344         * sdbout.c (sdbout_end_epilogue): Mark parameter with
5345         ATTRIBUTE_UNUSED.
5346         * varasm.c (assemble_global): Likewise.
5347
5348 2001-11-11  H.J. Lu <hjl@gnu.org>
5349
5350         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
5351
5352 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
5353
5354         * final.c (*_MAX_SKIP): Use *_max_skip variables.
5355         * flags.h (align_loops_max_skip, align_jumps_max_skip,
5356         align_labels_max_skip): New global variables.
5357         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
5358         align_labels_max_skip): New global variables.
5359         (toplev_main): Set new variables.
5360         * i386.c (override_options): Set max_skip values.
5361
5362 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
5363
5364         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
5365         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
5366         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
5367         don't print an @fptr for labels either.
5368         (xstormy16_output_addr_vec): Don't print @fptr here.
5369         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
5370
5371 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
5372
5373         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
5374         an ANSI/ISO definitino.
5375         (ssa_const_prop): Likewise.
5376
5377 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
5378
5379         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
5380         altivec registers.
5381
5382 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5383
5384         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
5385         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
5386         * cppmain.c (general_init): Call hex_init.
5387         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
5388
5389         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
5390
5391         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
5392         of dgux.c:output_file_start().
5393
5394         * i386/dgux.c: Delete file.
5395
5396 2001-11-09  Richard Henderson  <rth@redhat.com>
5397
5398         * config/alpha/alpha.c (decl_in_text_section): New.
5399         (current_file_function_operand): Use it.
5400         (alpha_encode_section_info, alpha_end_function): Likewise.
5401
5402 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
5403
5404         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
5405         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
5406         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
5407         so OS specific files and use CPP_PREDEFINES for their needs.
5408         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
5409         target headers to tm_file.
5410         * config/ia64/aix.h (TARGET_VERSION): Likewise.
5411         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
5412         * config/ia64/linux.h (TARGET_VERSION): Likewise.
5413         (FUNCTION_PROFILER): Remove.
5414         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
5415         version in config/ia64/linux.h.
5416         * config/ia64/freebsd.h: New file.
5417         * config/freebsd.h: Tidy up.
5418         (_USING_CONFIG_FREEBSD): Define.
5419         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
5420         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
5421         (FBSD_STARTFILE_SPEC): Likewise.
5422         (FBSD_ENDFILE_SPEC): Likewise.
5423         (FBSD_LIB_SPEC): Likewise.
5424         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
5425         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
5426         set an ELF-improper one.
5427
5428 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5429
5430         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
5431         constant can be loaded in a single instruction to a register.  When
5432         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
5433         depdi for insertion of most significant 32-bits on 64-bit hosts.
5434         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
5435         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
5436         * pa.md: New addmove pattern for adding constant_int to HImode
5437         register and moving result to HImode register.  Remove HImode HIGH
5438         and LO_SUM patterns.
5439
5440 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5441
5442         * Makefile.in: Update.
5443         * c-decl.c (print_lang_decl, print_lang_type): Remove.
5444         (print_lang_identifier): Rename c_print_identifier.
5445         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
5446         (print_lang_statistics, lang_print_xnode): Remove.
5447         * c-parse.in (set_yydebug): Rename c_set_yydebug.
5448         * c-tree.h (c_set_yydebug, c_print_identifier): New.
5449         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
5450         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
5451         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
5452         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
5453         (LANG_HOOKS_INITIALIZER): Update.
5454         * langhooks.h (struct lang_hooks): New members.
5455         (lang_print_tree_hook): New.
5456         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
5457         * print-tree.c: Include langhooks.h.
5458         (print_node): Update.
5459         * toplev.c (decode_d_option): Update.
5460         * tree.c: Include langhooks.h.
5461         (dump_tree_statistics): Update.
5462         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
5463         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
5464 objc:
5465         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
5466         LANG_HOOKS_SET_YYDEBUG): Override.
5467         (lang_print_xnode, print_lang_statistics): Remove.
5468
5469 2001-11-09  Richard Henderson  <rth@redhat.com>
5470
5471         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
5472         on the symbol string.
5473
5474 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5475
5476         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
5477         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
5478         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
5479
5480         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
5481
5482         * tlink.c (recompile_files): Copy strings passed to `putenv'.
5483
5484 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
5485
5486         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
5487         (TYPE_READONLY): Likewise.
5488
5489         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
5490
5491         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
5492         don't pass --gdwarf2 to the assembler if the compiler will also
5493         provide debug info.
5494
5495         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
5496         Don't change INDEX.
5497
5498 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5499
5500         * alias.c (nonoverlapping_memrefs_p): New function.
5501         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
5502
5503         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
5504
5505 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
5506
5507         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
5508         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
5509         generating altivec code.
5510         (FIXED_REGISTERS): VRSAVE is fixed.
5511         (CALL_USED_REGISTERS): VRSAVE is call used.
5512
5513 2001-11-09  Jason Eckhardt  <jle@rice.edu>
5514
5515         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
5516         code the branch target as ".+16/.+12", but rather use labels.
5517
5518 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
5519
5520         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
5521         to work around limitations of certain versions of GAS.
5522
5523         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
5524         (muldi3): Update due to SUBREG_BYTE changes.
5525         (casesi): Similarly.
5526
5527 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
5528
5529         * doc/invoke.texi: Remove comment referring to -xf77-version.
5530
5531 2001-11-09  Kazu Hirata  <kazu@hxi.com>
5532
5533         * config/convex/convex.c: Fix comment formatting.
5534         * config/convex/convex.h: Likewise.
5535
5536 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
5537
5538         * Makefile.in (.po.pox): Look both in srcdir and builddir
5539         for $(PACKAGE).pot.
5540         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
5541         to the source directory.
5542
5543 2001-11-09 Ben Elliston  <bje@redhat.com>
5544            Michael Meissner  <meissner@redhat.com>
5545            Andrew MacLeod  <amacleod@redhat.com>
5546            Richard Henderson  <rth@redhat.com>
5547            Nick Clifton  <nickc@redhat.com>
5548            Catherine Moore  <clm@redhat.com>
5549
5550         * m32r.c: Add support for m32rx processor.
5551         * m32r.h: Ditto.
5552         * m32r.md: Ditto.
5553         * t-m32r: Ditto.
5554         * m32r-protos.h: Add prototypes for m32rx functions.
5555         * doc/invoke.texi: Document -m32rx option.
5556
5557 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
5558
5559         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
5560         or after reload.
5561
5562 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5563
5564         * doc/install.texi2html: Use $MAKEINFO --no-split.
5565
5566 2001-11-09  Andreas Schwab  <schwab@suse.de>
5567
5568         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
5569         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
5570         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
5571         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
5572         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
5573
5574 2001-11-09  H.J. Lu <hjl@gnu.org>
5575
5576         * config/mips/mips.c (mips_output_function_prologues): Cast
5577         `tsize' to long for output.
5578
5579 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5580
5581         * c-lang.c (LANG_HOOKS_NAME): New.
5582         (lang_hooks): Constify.
5583         (c_init_options): Update.
5584         (lang_identify): Remove.
5585         * c-parse.in (language_string): Remove.
5586         * dbxout.c: Include langhooks.h.
5587         (dbxout_symbol_location): Update.
5588         * dwarf2out.c: Include langhooks.h.
5589         (gen_compile_unit_die): Update.
5590         * dwarfout.c: Include langhooks.h.
5591         (prototyped_attribute, output_compile_unit_die): Update.
5592         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
5593         (LANG_HOOKS_INITIALIZER): Update.
5594         * langhooks.h (struct lang_hooks): New members.  Constify.
5595         * stringpool.c: Don't include toplev.h.
5596         (set_identifier_size): Remove.
5597         * toplev.c (toplev_main): Initialize identifier size.
5598         (print_version): Update.
5599         * tree.h (language_string, init_lex, lang_identify,
5600         set_identifier_size): Remove.
5601         * Makefile.in: Update dependencies.
5602         * config/darwin.c: Include langhooks.h.
5603         (func_name_maybe_scoped): Update.
5604         * config/darwin.h (ASM_END_FILE): Update.
5605         * config/nextstep.h (ASM_END_FILE): Update.
5606         * config/nextstep21.h (ASM_END_FILE): Update.
5607         * config/i386/sun386.h (ASM_END_FILE): Update.
5608         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
5609         (rs6000_output_function_epilogue): Update.
5610 objc:
5611         * objc-act.c (LANG_HOOKS_NAME): Override.
5612         (struct lang_hooks): Constify.
5613         (objc_init_options): Update.
5614         (lang_identify): Remove.
5615
5616 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
5617
5618         * fold-const.c (lshift_double): Honor PREC.
5619         (rshift_double): Likewise.
5620
5621 2001-11-08  Kazu Hirata  <kazu@hxi.com>
5622
5623         * config/1750a/1750a.c: Fix comment formatting.
5624         * config/1750a/1750a.h: Likewise.
5625
5626 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
5627
5628         * configure.in (--enable-languages): Be more permissive about
5629         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
5630         * configure: Regenerated.
5631
5632 2001-11-08  Richard Henderson  <rth@redhat.com>
5633
5634         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
5635
5636 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
5637
5638         * config.gcc: Rename stormy16 to xstormy16.
5639         * config/stormy16/stormy-abi: Likewise.
5640         * config/stormy16/stormy16-protos.h: Likewise.
5641         * config/stormy16/stormy16.c: Likewise.
5642         * config/stormy16/stormy16.h: Likewise.
5643         * config/stormy16/stormy16.md: Likewise.
5644
5645 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
5646
5647         * tree.h (TYPE_VOLATILE): Add enable-checking code.
5648         (TYPE_READONLY): Likewise.
5649
5650 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5651
5652         * reload1.c (reload): Don't delete equiv insn if can throw.
5653
5654         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
5655         (clear_storage): Likewise, for OBJECT.
5656
5657 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
5658
5659         * pa.c (emit_move_sequence): Fix SUBREG expression to
5660         use proper byte offset when extending a constant from
5661         SImode to DImode.
5662
5663 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
5664
5665         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
5666         which cannot throw.
5667
5668 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5669
5670         * explow.c (convert_memory_address, case SUBREG): Only return
5671         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
5672
5673 2001-11-08  Richard Henderson  <rth@redhat.com>
5674
5675         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
5676         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
5677         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
5678
5679 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
5680
5681         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
5682
5683 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
5684
5685         * dwarf2out.c (debug_str_hash): New.
5686         (struct indirect_string_node): New.
5687         (struct dw_val_struct): Change type of val_str to it.
5688         (DEBUG_STR_SECTION_FLAGS): Define.
5689         (add_AT_string): Push string into hashtable, increment reference
5690         counter.
5691         (AT_string): Return string from ht_identifier.
5692         (AT_string_form): New.
5693         (free_AT): For dw_val_class_str, just decrement reference counter.
5694         (size_of_string): Remove.
5695         (size_of_die): Use AT_string_form to decide what size the string
5696         occupies in DIE.
5697         (size_of_pubnames): Use strlen instead of size_of_string.
5698         (value_format): Use AT_string_form for dw_val_class_str.
5699         (output_die): Output DW_FORM_strp strings using
5700         dw2_asm_output_offset.
5701         (indirect_string_alloc, output_indirect_string): New.
5702         (dwarf2out_finish): Emit .debug_str strings if there are any.
5703
5704 2001-11-08  Andreas Franck  <afranck@gmx.de>
5705
5706         * configure.in: Add AC_ARG_PROGRAM to support program name
5707         transformation with --program-prefix, --program-suffix and
5708         --program-transform-name.
5709         * configure: Regenerated.
5710         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
5711         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
5712         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
5713         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
5714         program_transform_name the way suggested by autoconf.
5715         (GCC_TARGET_INSTALL_NAME): Define.
5716         (install-driver): Use the transformed target alias name.
5717
5718 2001-11-08  Richard Henderson  <rth@redhat.com>
5719
5720         * config/mips/mips.c (save_restore_insns): Remove GP from the
5721         restore registers mask early instead of special casing it inside
5722         the loop.
5723
5724 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5725
5726         * cp/decl.c (shadow_warning): New function.
5727         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
5728         and an error when a block scope decl shadows a parameter.
5729
5730 2001-11-08  Richard Henderson  <rth@redhat.com>
5731
5732         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
5733         case as well.
5734
5735 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5736
5737         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
5738         to implement floating negation on processors prior to PA 2.0.
5739
5740 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
5741
5742         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
5743         (USE_LINKONCE_INDIRECT): Define.
5744         (dw2_output_indirect_constant_1): Try to output indirect constants
5745         into linkonce sections if possible.
5746         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
5747         (dw2_output_indirect_constants): Likewise.
5748
5749 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
5750
5751         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
5752
5753 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5754
5755         * c-decl.c (pushdecl): Remove file and line.
5756         * c-typeck.c (pop_init_level): Remove size.
5757
5758 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
5759
5760         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
5761         for rs6000.
5762
5763         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
5764         (TARGET_ALTIVEC): New.
5765         (TARGET_SWITCHES): Add altivec.
5766         (FIRST_PSEUDO_REGISTER): Change to 109.
5767         (CALL_USED_REGISTERS): Same.
5768         (FIRST_ALTIVEC_REGNO): New.
5769         (LAST_ALTIVEC_REGNO): New.
5770         (ALTIVEC_REGNO_P): New.
5771         (UNITS_PER_ALTIVEC_WORD): New.
5772         (ALTIVEC_VECTOR_MODE): New.
5773         (FIXED_REGISTERS): Add altivec registers.
5774         (REG_ALLOC_ORDER): Same.
5775         (HARD_REGNO_NREGS): Adjust for altivec registers.
5776         (HARD_REGNO_MODE_OK): Same.
5777         (MODES_TIEABLE_P): Same.
5778         (REGISTER_MOVE_COST): Same.
5779         (REGNO_REG_CLASS): Same.
5780         (reg_class): Add ALTIVEC_REGS.
5781         (REG_CLASS_NAMES): Same.
5782         (REG_CLASS_CONTENTS): Same.
5783         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
5784         (ALTIVEC_ARG_RETURN): New.
5785         (FUNCTION_VALUE): Handle VECTOR_TYPE.
5786         (LIBCALL_VALUE): Handle altivec vector modes.
5787         (VECTOR_MODE_SUPPORTED_P): New.
5788         (ALTIVEC_ARG_MIN_REG): New.
5789         (ALTIVEC_ARG_MAX_REG): New.
5790         (ALTIVEC_ARG_NUM_REG): New.
5791         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
5792         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
5793         (REGISTER_NAMES): Add altivec regs.
5794         (DEBUG_REGISTER_NAMES): Same.
5795         (ADDITIONAL_REGISTER_NAMES): Same.
5796         (rs6000_builtins): New.
5797         (MD_EXPAND_BUILTIN): New.
5798         (MD_INIT_BUILTINS): New.
5799         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
5800         for AltiVec instructions.
5801         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5802         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
5803         registers.
5804         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
5805         (TARGET_SWITCHES): Add no-altivec.
5806         (DATA_ALIGNMENT): Align vectors to 128 bits.
5807         (TARGET_OPTIONS): Add abi= option.
5808         Add rs6000_abi_string extern.
5809         (LOCAL_ALIGNMENT): New.
5810         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
5811         (MASK_ALTIVEC_ABI): New.
5812         (TARGET_ALTIVEC_ABI): New.
5813         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
5814         call-saved.
5815         (STACK_BOUNDARY): Adjust for altivec.
5816         (BIGGEST_ALIGNMENT): Same.
5817         (rs6000_args): Add vregno.
5818         (USE_ALTIVEC_FOR_ARG_P): New.
5819         (FIXED_REGISTERS): Add vrsave register.
5820         (CALL_USED_REGISTERS): Same.
5821         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
5822         (VRSAVE_REGNO): New.
5823         (reg_class): Add VRSAVE_REGS.
5824         (REG_CLASS_NAMES): Same.
5825         (REG_CLASS_CONTENTS): Same.
5826         (REGNO_REG_CLASS): Same.
5827
5828         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
5829         (ABI_STACK_BOUNDARY): Same.
5830         (BIGGEST_ALIGNMENT): Same.
5831         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
5832         (ROUND_TYPE_ALIGN): Same.
5833
5834         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5835         to 64.
5836
5837         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5838         to 64.
5839
5840         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5841         to 64.
5842
5843         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
5844         (altivec_expand_builtin): New.
5845         (altivec_init_builtins): New.
5846         (TARGET_EXPAND_BUILTIN): New.
5847         (TARGET_INIT_BUILTINS): New.
5848         (rs6000_init_builtins): New.
5849         (struct builtin_description): New.
5850         (bdesc_2arg): New.
5851         (rs6000_reg_names): Add altivec registers.
5852         (alt_reg_names): Same.
5853         (secondary_reload_class): Altivec regs can hold altivec regs and
5854         memory.
5855         (rs6000_emit_move): Force constants into memory for AltiVec moves.
5856         (print_operand): Add 'y' case for printing altivec memory
5857         operands.
5858         (rs6000_legitimize_address): Legitimize vector addresses into
5859         [REG+REG] or [REG].
5860         (altivec_expand_binop_builtin): New.
5861         New string rs6000_current_abi.
5862         (rs6000_override_options): Call rs6000_parse_abi_options.
5863         (rs6000_parse_abi_options): New.
5864         (function_arg_boundary): Vector arguments must be 16
5865         byte aligned.
5866         (function_arg_advance): Handle vector arguments.
5867         (function_arg_partial_nregs): Same.
5868         (init_cumulative_args): Same.
5869         (function_arg): Same.
5870
5871         * config/rs6000/rs6000.md (altivec_lvx): New.
5872         (type): Add altivec attribute.
5873         (movv4si): New.
5874         (*movv4si_internal): New.
5875         (movv16qi): New.
5876         (*movv16qi_internal): New.
5877         (movv8hi): New.
5878         (*movv8hi_internal1): New.
5879         (movv4sf): New.
5880         (*movv4sf_internal1): New.
5881         (altivec_stvx): New.
5882         (vaddubm): New.
5883         (vadduhm): New.
5884         (vadduwm): New.
5885         (vaddfp): New.
5886         (vaddcuw): New.
5887         (vaddubs): New.
5888         (vaddsbs): New.
5889         (vadduhs): New.
5890         (vaddshs): New.
5891         (vadduws): New.
5892         (vaddsws): New.
5893         (vand): New.
5894         (vandc): New.
5895         (vavgub): New.
5896         (vavgsb): New.
5897         (vavguh): New.
5898         (vavgsh): New.
5899         (vavguw): New.
5900         (vavgsw): New.
5901         (vcmpbfp): New.
5902         (vcmpequb): New.
5903         (vcmpequh): New.
5904         (vcmpequw): New.
5905         (vcmpeqfp): New.
5906         (vcmpgefp): New.
5907         (vcmpgtub): New.
5908         (vcmpgtsb): New.
5909         (vcmpgtuh): New.
5910         (vcmpgtsh): New.
5911         (vcmpgtuw): New.
5912         (vcmpgtsw): New.
5913         (vcmpgtfp): New.
5914         (vcmpgefp): New.
5915         (vcmpgtub): New.
5916         (vcmpgtsb): New.
5917         (vcmpgtuh): New.
5918         (vcmpgtsh): New.
5919         (vcmpgtuw): New.
5920         (vcmpgtsw): New.
5921         (vcmpgtfp): New.
5922         (vmaxub): New.
5923         (vmaxsb): New.
5924         (vmaxuh): New.
5925         (vmaxsh): New.
5926         (vmaxuw): New.
5927         (vmaxsw): New.
5928         (vmaxfp): New.
5929         (vmrghb): New.
5930         (vmrghh): New.
5931         (vmrghw): New.
5932         (vmrglb): New.
5933         (vmrglh): New.
5934         (vmrglw): New.
5935         (vminub): New.
5936         (vminsb): New.
5937         (vminuh): New.
5938         (vminsh): New.
5939         (vminuw): New.
5940         (vminsw): New.
5941         (vminfp): New.
5942         (vmuleub): New.
5943         (vmulesb): New.
5944         (vmuleuh): New.
5945         (vmulesh): New.
5946         (vmuloub): New.
5947         (vmulosb): New.
5948         (vmulouh): New.
5949         (vmulosh): New.
5950         (vnor): New.
5951         (vor): New.
5952         (vpkuhum): New.
5953         (vpkuwum): New.
5954         (vpkpx): New.
5955         (vpkuhss): New.
5956         (vpkshss): New.
5957         (vpkuwss): New.
5958         (vpkswss): New.
5959         (vpkuhus): New.
5960         (vpkshus): New.
5961         (vpkuwus): New.
5962         (vpkswus): New.
5963         (vrlb): New.
5964         (vrlh): New.
5965         (vrlw): New.
5966         (vslb): New.
5967         (vslh): New.
5968         (vslw): New.
5969         (vsl): New.
5970         (vslo): New.
5971         (vsrb): New.
5972         (vrsh): New.
5973         (vrsw): New.
5974         (vsrab): New.
5975         (vsrah): New.
5976         (vsraw): New.
5977         (vsr): New.
5978         (vsro): New.
5979         (vsububm): New.
5980         (vsubuhm): New.
5981         (vsubuwm): New.
5982         (vsubfp): New.
5983         (vsubcuw): New.
5984         (vsububs): New.
5985         (vsubsbs): New.
5986         (vsubuhs): New.
5987         (vsubshs): New.
5988         (vsubuws): New.
5989         (vsubsws): New.
5990         (vsum4ubs): New.
5991         (vsum4sbs): New.
5992         (vsum4shs): New.
5993         (vsum2sws): New.
5994         (vsumsws): New.
5995         (vxor): New.
5996
5997 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
5998
5999         * Makefile.in (df.o): Add fibheap.h to dependencies.
6000
6001         * df.h: Add prototypes for transfer functions, iterative_dataflow
6002         functions.
6003         (enum df_flow_dir): New enum.
6004         (enum df_confluence_op): New enum.
6005         (struct df): Add inverse_rts_map.
6006
6007         * df.c: Add sbitmap.h to the list of includes.
6008         (df_rd_global_compute): Removed.
6009         (df_ru_global_compute): Removed.
6010         (df_lr_global_compute): Removed.
6011         (df_rd_transfer_function): New function.
6012         (df_ru_transfer_function): New function.
6013         (df_lr_transfer_function): New function.
6014         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
6015         Use iterative_dataflow_bitmap instead of df_*_global_compute.
6016         (iterative_dataflow_sbitmap): New function.
6017         (iterative_dataflow_bitmap): New function.
6018
6019 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6020
6021         * doc/gcc.texi: Move terminology and spelling conventions to
6022         htdocs/codingconventions.html.
6023
6024 2001-11-07  Graham Stott  <grahams@redhat.com>
6025
6026         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
6027
6028 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
6029
6030         * expmed.c (expand_mult): Force operand to register before computing
6031         cost.
6032         * i386.c (x86_decompose_lea): New global vairable.
6033         * i386.h (x86_decompose_lea): Declare.
6034         (TARGET_DECOMPOSE_LEA): New macro.
6035         (RTX_COST): Handle leas properly.
6036
6037 2001-11-06  Richard Henderson  <rth@redhat.com>
6038
6039         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
6040         defined for a CONSTRUCTOR; don't check it.
6041
6042 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
6043
6044         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
6045         test for absolute pathnames.
6046
6047 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
6048
6049         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
6050         instructions up to the target pc inclusive.
6051
6052 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
6053
6054         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
6055
6056 2001-11-06  Eric Christopher  <echristo@redhat.com>
6057
6058         * config/mips/mips.md(movdf_internal2): Add constraints for float
6059         to general register move.
6060         * config/mips/elf64.h: Add default ABI.
6061
6062 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6063
6064         * alias.c:: Include langhooks.h.
6065         * emit-rtl.c: Similarly.
6066         * toplev.c: Similarly.
6067         * tree-inline.c: Similarly.
6068         * langhooks-def.h: New, the old langhooks.h.  Give the default
6069         hooks a common prefix.
6070         * langhooks.h: Contents extracted from toplev.h.
6071         * toplev.h: Move langhook stuff to langhooks.h.
6072         * langhooks.c: Give default hooks a common prefix.
6073
6074         * c-lang.c: Include langhooks-def.h.
6075         * objc/objc-act.c: Similarly.
6076         * Makefile.in: Update.
6077         * objc/Make-lang.in: Update.
6078
6079 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
6080
6081         * doc/install.texi: Document that configure options not listed in
6082         this file are unsupported.  Document --with-system-zlib.
6083
6084 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6085
6086         * rtl.h (mem_for_const_double): New declaration.
6087         * varasm.c (mem_for_const_double): New function.
6088         * config/convex/convex.md (movdf): Use it.
6089         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
6090         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
6091         * config/m68k/m68kv4.h: Likewise.
6092
6093         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
6094         of new GP reg classes.
6095
6096         * expr.c (store_field): When making temp object for unaligned
6097         component, set it to alias set 0.
6098
6099 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
6100
6101         * c-common.c (c_expand_expr_stmt): Apply default conversions to
6102         non-lvalue arrays if C99.
6103         * c-typeck.c (default_conversion): Split out code handling
6104         array-to-pointer and function-to-pointer conversions into a
6105         separate default_function_array_conversion function.
6106         (default_function_array_conversion): New function.  Keep track of
6107         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
6108         arrays unchanged outside C99 mode instead of giving an error for
6109         them.
6110         (build_component_ref): Use pedantic_non_lvalue when handling
6111         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
6112         (convert_arguments): Use default_function_array_conversion.
6113         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
6114         non-lvalues are OK.
6115         (unary_complex_lvalue): Likewise.
6116         (internal_build_compound_expr): Use
6117         default_function_array_conversion.  Apply default conversions to
6118         function in compound expression.
6119         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
6120         Use default_function_array_conversion.
6121         * doc/extend.texi: Update documentation of subscripting non-lvalue
6122         arrays.
6123         Fixes PR c/461.
6124
6125 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
6126
6127         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
6128         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
6129         corresponding to the complete set of .po and .gmo files in
6130         the source directory's po subdir, modified by LINGUAS.  Don't
6131         look at ALL_LINGUAS.
6132         * configure.in: Don't set ALL_LINGUAS.
6133         * configure: Regenerate.
6134
6135         * Makefile.in (.po.gmo): Don't move into source directory.
6136         (.po.pox): Clarify comments.
6137         (install-po): Look for .gmo files in both srcdir and objdir;
6138         don't fail if a file is totally missing.
6139         (distclean): rmdir ada subdirectory too.
6140
6141 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
6142
6143         * config/rs6000/rs6000.c (rs6000_select_section): Handle
6144         CONSTRUCTORs _correctly_.
6145
6146 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6147
6148         * c-decl.c (delete_block): Remove.
6149         * c-tree.h (delete_block): Remove.
6150
6151 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6152
6153         * cppexp.c (lex, parse_defined): Update warning about defined.
6154
6155 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
6156
6157         * config/rs6000/rs6000.c (rs6000_select_section): Handle
6158         CONSTRUCTORs too.
6159
6160 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
6161
6162         * config/arm/arm.c (arm_return_in_memory): Cope with
6163         int_size_in_bytes returning -1.
6164
6165         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
6166         DECL being NULL.
6167
6168 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
6169
6170         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
6171         remove unneeded dependencies;
6172         (cfglayout.o): New.
6173         * cfglayout.c, cfglayout.h: New files; break out from ...
6174         * bb-reorder.c: ... here; Remove unneeded includes;
6175
6176 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
6177
6178         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
6179
6180 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
6181
6182         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
6183         mode as well.  Do not explicitly create intermediate regs.
6184
6185 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6186
6187         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
6188         (common_section): Delete unused variable.
6189         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
6190         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
6191         * arm-protos.h (arm_poke_function_name, aof_add_import,
6192         aof_delete_import): Const-ify.
6193         * arm.c (legitimize_pic_address): Wrap variables in the macro
6194         controlling their usage.
6195         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
6196         (arm_poke_function_name, pic_chain, import, aof_add_import,
6197         aof_delete_import): Const-ify.
6198         * i386.c (ix86_osf_output_function_prologue): Const-ify.
6199         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
6200         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
6201         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
6202         * i860/sysv3.h: Add missing comment closure.
6203         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
6204         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
6205         to symbolic_operand.
6206
6207         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
6208         (i960-*-*): Set tmake_file.
6209         (sparc86x-*-elf*): Fix typo in header name.
6210
6211         * sched-rgn.c (schedule_insns): Delete unused variable.
6212
6213 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6214
6215         PR c/2820
6216         * c-typeck.c (lookup_field): Rework to return a chain down to
6217         the looked-up field.
6218         (build_component_ref): Use the new lookup_field to handle
6219         nested anonymous entities correctly.
6220
6221 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6222
6223         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
6224         Change parameters to gen_rtx_CONST_DOUBLE.
6225         (GEN_INT64, sparc_emit_set_const64): Likewise.
6226         * config/sparc/sparc.md (movdf split): Likewise.
6227
6228 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
6229
6230         * unroll.c (calculate_giv_inc): Use find_last_value rather
6231         than just hoping the last instruction is the right SET.
6232         [Fixes 990604-1.c on stormy16.]
6233
6234         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
6235         library at all if -T is used.
6236
6237         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
6238         some uses of uninitialized variables in error cases.
6239
6240         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
6241         look at 'temp' if we won't be using it.
6242
6243         * config/stormy16/stormy16.h (CONST_COSTS): Define.
6244         (RTX_COSTS): Define.
6245         (ADDRESS_COST): Define.
6246         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
6247
6248         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
6249
6250         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
6251         stormy16_asm_output_mi_thunk.
6252         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
6253         function.
6254         * config/stormy16/stormy16-protos.h
6255         (stormy16_asm_output_mi_thunk): New prototype.
6256
6257 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6258
6259         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
6260         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
6261         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
6262         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
6263         sched-int.h, toplev.c, config/alpha/alpha.c,
6264         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
6265         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
6266         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
6267         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
6268         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
6269         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
6270         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
6271
6272 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6273
6274         * Makefile.in (dbxout.o): Depend on function.h.
6275         * collect2.c (is_in_list): Hide unused function.
6276         * dbxout.c: Include function.h.
6277         (source_label_number, dbxout_source_line, dbxout_source_file,
6278         dbxout_function_end, dbxout_begin_function): Wrap/move inside
6279         macros controlling usage.
6280         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
6281         * output.h (exports_section): Prototype.
6282
6283         * convex.c (convex_output_function_prologue): Fix format specifier
6284         warning.
6285         (asm_declare_function_name): Fix signed/unsigned warning.
6286         (print_operand): Fix format specifier warning.
6287         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
6288         * dsp16xx-protos.h (uns_comparison_operator,
6289         num_1600_core_shifts): Prototype.
6290         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
6291         (frame_size, frame_pointer_offset): Delete.
6292         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
6293         Make static.  Fix format specifier warnings.
6294         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
6295         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
6296         * dsp16xx.md: Add default case in switches.
6297         * fr30.h (IN_RANGE): Delete.
6298         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
6299         * mcore-protos.h (mcore_output_cmov): Const-ify.
6300         * mcore.c (mcore_output_cmov): Likewise.
6301         * mcore.h (switch_to_section): Make static and prototype.
6302         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
6303         unsigned>=0 warnings.
6304         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
6305         * rs6000-protos.h (read_only_data_section,
6306         read_only_private_data_section): Prototype.
6307         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
6308         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
6309         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
6310
6311 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6312
6313         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
6314         ATTRIBUTE_UNUSED.
6315         * final.c (final_scan_insn): Add brackets around body of if-stmt.
6316         * gcc.c (convert_filename): Add static prototype.  Const-ify.
6317         Wrap variable in macros controlling its use.
6318         * output.h (sdata_section): Add prototype.
6319
6320         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6321         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
6322         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
6323         (ASM_FILE_START): Const-ify.
6324         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
6325         specifier warning.
6326         * c4x.md: Don't use the 'U' integer suffix.
6327         * clipper.md (clipper_movstr): Delete declaration.
6328         * d30v-protos.h (d30v_move_2words): Const-ify.
6329         (debug_stack_info): Add prototype.
6330         * d30v.c: Include "integrate.h".
6331         (d30v_function_arg_boundary, d30v_function_arg,
6332         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
6333         signed/unsigned warnings.
6334         (d30v_print_operand_memory_reference, d30v_move_2words):
6335         Const-ify.
6336         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
6337         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
6338         * fr30.md: Const-ify.
6339         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6340         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
6341         (mvs_get_label_page): Hide unused static function.
6342         * i860.c (current_function_original_name): Const-ify.
6343         * i860/sysv3.h (current_function_original_name): Likewise.
6344         * i860/sysv4.h (current_function_original_name): Likewise.
6345         * i960.md: Add default case in switches.  Remove unused variable.
6346         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
6347         * m32r.md: Const-ify.
6348         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
6349         * m68hc11.c: Include "reload.h".
6350         (static_chain_reg, print_options, m68hc11_asm_file_start):
6351         Const-ify.
6352         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
6353         around & in comparison.
6354         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
6355         * mn10200.c (shift_mode): Remove trailing comma.
6356         * mn10300-protos.h (output_tst): Const-ify.
6357         * mn10300.c (output_tst): Likewise.
6358         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
6359         warnings.
6360         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
6361         * pa.c (output_ascii): Likewise.
6362         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6363         * pdp11.md (expand_unop): Delete declarations.
6364         * pj-protos.h (pj_output_addsi3): Const-ify.
6365         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
6366         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
6367         unique_src_operand): Add prototypes.
6368         (pj_output_store_into_lval): Make definition static.
6369         (pj_function_incoming_arg): Don't use unary plus.
6370         (pj_output_addsi3): Const-ify.
6371         * romp.md (get_symref): Delete declarations.
6372         * v850-c.c (mark_current_function_as_interrupt): Don't return
6373         value from void function.
6374         * v850.c: Include "integrate.h".
6375         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
6376         * vax-protos.h (const_section): Add prototype.
6377
6378 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
6379
6380         * machmode.def: Add documentation for the seventh argument in
6381         vector modes.
6382
6383 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
6384
6385         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
6386         consistently.
6387         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
6388         <-melf>: Don't have markup for ELF acronym.
6389
6390 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
6391
6392         * config.gcc (mmix-*-*): New target.
6393         * doc/invoke.texi: Document MMIX options.
6394         * doc/contrib.texi: Add note about MMIX port to my entry.
6395         * config/mmix/t-mmix: New file.
6396         * config/mmix/mmix.h: New file.
6397         * config/mmix/mmix-protos.h: New file.
6398         * config/mmix/mmix.c: New file.
6399         * config/mmix/mmix.md: New file.
6400         * config/mmix/crti.asm: New file.
6401         * config/mmix/crtn.asm: New file.
6402
6403 2001-11-03  Kazu Hirata  <kazu@hxi.com>
6404
6405         * config/sparc/linux-aout.h: Fix comment formatting.
6406         * config/sparc/linux.h: Likewise.
6407         * config/sparc/linux64.h: Likewise.
6408         * config/sparc/lynx.h: Likewise.
6409         * config/sparc/pbd.h: Likewise.
6410         * config/sparc/sol2-sld-64.h: Likewise.
6411         * config/sparc/sol2.h: Likewise.
6412         * config/sparc/sparc.c: Likewise.
6413         * config/sparc/sparc.h: Likewise.
6414         * config/sparc/sparc.md: Likewise.
6415         * config/sparc/sunos4.h: Likewise.
6416         * config/sparc/vxsim.h: Likewise.
6417         * config/sparc/vxsparc.h: Likewise.
6418         * config/sparc/vxsparc64.h: Likewise.
6419
6420 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6421
6422         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
6423         reference to CONST_DOUBLE_MEM in comment.
6424         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
6425         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
6426         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
6427         * function.c (pop_function_context_from): Don't call
6428         restore_varasm_status.
6429         * function.h (restore_varasm_status): Delete declaration.
6430         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
6431         * rtl.c: Likewise.
6432         * rtl.def (CONST_DOUBLE): Update comment.
6433         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
6434         (CONST_DOUBLE_CHAIN): Likewise.
6435         (CONST_DOUBLE_MEM): Delete.
6436         (gen_rtx_CONST_DOUBLE): Update parameters.
6437         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
6438         Remove reference to CONST_DOUBLE_MEM.
6439         (const_alias_set): New variable.
6440         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
6441         (immed_real_const_1): Adjust tests for 0, 1, and 2.
6442         Don't set CONST_DOUBLE_MEM.
6443         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
6444         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
6445         Put constant in const_alias_set.
6446         (struct pool_constant): ALIGN now unsigned.
6447         OFFSET now HOST_WIDE_INT.
6448         Delete LABEL.
6449         (restore_varasm_status): Deleted.
6450         (mark_pool_constant): Mark desc->rtl.
6451         (force_const_mem): Rework to store rtl in hash table,
6452         not CONST_DOUBLE_MEM.
6453         Put constant in const_alias_set.
6454         (find_pool_constant): Check desc->rtl.
6455         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
6456         (init_varasm_once): Initialize const_alias_set.
6457
6458         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
6459         force_const_mem.
6460
6461         * reload.c (combine_reloads): Don't combine an output reload if there
6462         are other reloads around for part of the output.
6463
6464         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
6465         constant expression.
6466         (set_mem_decl): New function.
6467         * expr.h (set_mem_decl): New declaration.
6468         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
6469         (output_asm_operand_names): Add tab.
6470         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
6471
6472         * builtins.c (get_memory_rtx): Properly set MEM alias set and
6473         attributes.
6474
6475 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6476
6477         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
6478         Use "invalid" instead of "illegal".  Use @r in comments in
6479         examples.
6480
6481 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6482
6483         * c-decl.c (pushdecl): Move block inside if conditional to remove
6484         possibility of a segfault.  Lookup block-level extern
6485         variables in enclosing scopes correctly.
6486
6487         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
6488
6489 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
6490
6491         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
6492         SUBREG so we avoid SUBREGing memory.
6493
6494         * expmed.c (store_bit_field): Same.
6495
6496 2001-11-02  DJ Delorie  <dj@redhat.com>
6497
6498         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
6499         using FP registers for DImode mem-mem moves is acceptable.
6500
6501 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
6502
6503         * builtins.c (apply_args_size): Handle vector arguments.
6504         (apply_result_size): Same.
6505
6506         * machmode.def: Set WIDER mode field for all vector entries.
6507
6508 2001-11-02  Graham Stott  <grahams@redhat.com>
6509
6510         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
6511
6512 2001-11-01  Eric Christopher  <echristo@redhat.com>
6513
6514         * config.gcc: Revert part of earlier patch.
6515         * config/mips/linux.h: Ditto.
6516         * df.c: Include tm_p.h to avoid warnings.
6517         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
6518         #if/#endif.
6519         * config/mips/mips.c: Define mips_abi regardless.
6520         (mips_output_function_prologues): Add long casts for .frame
6521         output.
6522         (override_options): Allow use of ABI_32.
6523
6524 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6525
6526         * config/m68hc11/m68hc11.c: Fix comment formatting.
6527         * config/m68hc11/m68hc11.h: Likewise.
6528         * config/m68hc11/m68hc11.md: Likewise.
6529
6530 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6531
6532         * c-typeck.c (default_conversion): Retain the original expression
6533         codes.
6534         * gcc.dg/Wparentheses.c: New tests.
6535
6536 2001-11-01  David S. Miller  <davem@redhat.com>
6537
6538         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
6539         64-bit Sparc description more in line with reality.
6540
6541 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6542
6543         * Makefile.in (GCOV_OBJS): Add version.o.
6544         * gcov.c: Include "version.h" and <getopt.h>.
6545         (gcov_version_string): Remove.
6546         (print_usage): Take a parameter to determine whether this is a
6547         call from --help or an error message.  Give fuller output that
6548         follows the GNU Coding Standards for --help.
6549         (print_version): New function.
6550         (options): New.
6551         (process_args): Use getopt_long.  Support long options.  Follow
6552         GNU Coding Standards for --help and --version.
6553         * doc/gcov.texi: Document long options.
6554         Addresses part of PR other/704.
6555
6556 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6557
6558         * pa.c (output_move_double): Fix typo in double load.
6559
6560 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6561
6562         * config/h8300/h8300.c (h8300_encode_label): Compute a string
6563         before passing it to ggc_alloc_string.
6564
6565 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6566
6567         * config/m68k/3b1.h: Fix comment formatting.
6568         * config/m68k/3b1g.h: Likewise.
6569         * config/m68k/a-ux.h: Likewise.
6570         * config/m68k/amix.h: Likewise.
6571         * config/m68k/apollo68.h: Likewise.
6572         * config/m68k/atari.h: Likewise.
6573         * config/m68k/aux-exit.c: Likewise.
6574         * config/m68k/ccur-GAS.h: Likewise.
6575         * config/m68k/crds.h: Likewise.
6576         * config/m68k/dpx2.h: Likewise.
6577         * config/m68k/dpx2g.h: Likewise.
6578         * config/m68k/hp310.h: Likewise.
6579         * config/m68k/hp320.h: Likewise.
6580         * config/m68k/isi.h: Likewise.
6581         * config/m68k/linux.h: Likewise.
6582         * config/m68k/lynx.h: Likewise.
6583         * config/m68k/m68k-psos.h: Likewise.
6584         * config/m68k/m68k.c: Likewise.
6585         * config/m68k/m68k.h: Likewise.
6586         * config/m68k/m68k.md: Likewise.
6587         * config/m68k/m68kelf.h: Likewise.
6588         * config/m68k/m68kv4.h: Likewise.
6589         * config/m68k/mot3300.h: Likewise.
6590         * config/m68k/news.h: Likewise.
6591         * config/m68k/next.h: Likewise.
6592         * config/m68k/pbb.h: Likewise.
6593         * config/m68k/plexus.h: Likewise.
6594         * config/m68k/sgs.h: Likewise.
6595         * config/m68k/sun3.h: Likewise.
6596         * config/m68k/tower.h: Likewise.
6597         * config/m68k/vxm68k.h: Likewise.
6598
6599 2001-10-31  DJ Delorie  <dj@redhat.com>
6600
6601         * config/mips/mips.h (mips_cache_flush_func): Prototype.
6602         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
6603         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
6604         * config/mips/mips.c (mips_cache_flush_func): New.
6605         * doc/invoke.texi: Document the new options.
6606
6607 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
6608
6609         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
6610         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
6611
6612         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
6613
6614         * config/cris/cris.c: Include output.h after tree.h but before
6615         target.h.
6616
6617 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
6618
6619         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
6620         (INTL_SUBDIRS): Just intl.
6621         (.SUFFIXES): Add .gmo .po .pox.
6622         (native): Also depend on build-@POSUB@.
6623         (intl.all, intl.install): Depend on config.h and things it includes.
6624         (po-generated): New target; depend on c-parse.c and tradcif.c.
6625         (install-normal): Also depend on install-@POSUB@.
6626         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
6627         (build-, install-, build-po, update-po, install-po,
6628         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
6629
6630         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
6631         * configure.in: Don't munge XGETTEXT.  Don't generate
6632         po/Makefile.in.
6633         * configure: Regenerate.
6634
6635         * exgettext: Delete.
6636         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
6637         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
6638
6639 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6640
6641         * config/h8300/h8300.md (two anonymous patterns): New.
6642
6643 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
6644
6645         * tree.h (tree_index): Add support for V16QI and V8HI.
6646         (V8HI_type_node): New.
6647         (V16QI_type_node): New.
6648
6649         * tree.c (build_common_tree_nodes_2): Same.
6650
6651         * c-common.c (type_for_mode): Same.
6652
6653 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6654
6655         * config/i386/att.h: Fix comment formatting.
6656         * config/i386/beos-elf.h: Likewise.
6657         * config/i386/bsd.h: Likewise.
6658         * config/i386/bsd386.h: Likewise.
6659         * config/i386/crtdll.h: Likewise.
6660         * config/i386/cygwin.asm: Likewise.
6661         * config/i386/cygwin.h: Likewise.
6662         * config/i386/djgpp.h: Likewise.
6663         * config/i386/freebsd-aout.h: Likewise.
6664         * config/i386/freebsd.h: Likewise.
6665         * config/i386/gas.h: Likewise.
6666         * config/i386/i386-interix.h: Likewise.
6667         * config/i386/i386-protos.h: Likewise.
6668         * config/i386/i386.c: Likewise.
6669         * config/i386/i386.h: Likewise.
6670         * config/i386/i386.md: Likewise.
6671         * config/i386/i386elf.h: Likewise.
6672         * config/i386/interix.c: Likewise.
6673         * config/i386/isc.h: Likewise.
6674         * config/i386/isccoff.h: Likewise.
6675         * config/i386/iscdbx.h: Likewise.
6676         * config/i386/linux.h: Likewise.
6677         * config/i386/lynx.h: Likewise.
6678         * config/i386/mingw32.h: Likewise.
6679         * config/i386/netbsd-elf.h: Likewise.
6680         * config/i386/next.h: Likewise.
6681         * config/i386/osf1elf.h: Likewise.
6682         * config/i386/osfrose.h: Likewise.
6683         * config/i386/sco5.h: Likewise.
6684         * config/i386/seq-gas.h: Likewise.
6685         * config/i386/seq-sysv3.h: Likewise.
6686         * config/i386/sequent.h: Likewise.
6687         * config/i386/sol2.h: Likewise.
6688         * config/i386/sun386.h: Likewise.
6689         * config/i386/uwin.asm: Likewise.
6690         * config/i386/uwin.h: Likewise.
6691         * config/i386/vxi386.h: Likewise.
6692         * config/i386/win32.h: Likewise.
6693         * config/i386/winnt.c: Likewise.
6694         * config/i386/xm-cygwin.h: Likewise.
6695         * config/i386/xm-mingw32.h: Likewise.
6696
6697 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6698
6699         * builtins.def: Fix comment typos.
6700         * config/alpha.c: Likewise.
6701         * config/arm/arm.c: Likewise.
6702         * config/avr/avr.h: Likewise.
6703         * config/d30v/d30v.c: Likewise.
6704         * config/d30v/d30v.h: Likewise.
6705         * config/d30v/d30v.md: Likewise.
6706         * config/dsp16xx/dsp16xx.c: Likewise.
6707         * config/fr30/fr30.c: Likewise.
6708         * config/fr30/fr30.md: Likewise.
6709         * config/i386/i386.c: Likewise.
6710         * config/i860/i860.c: Likewise.
6711         * config/i960/i960.c: Likewise.
6712         * config/ia64/ia64.c: Likewise.
6713         * config/mips/mips.c: Likewise.
6714         * config/pa/pa.c: Likewise.
6715         * config/rs6000/rs6000.c: Likewise.
6716         * config/s390/s390.c: Likewise.
6717         * config/sparc/sparc.c: Likewise.
6718
6719 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6720
6721         * config/mips/elf.h: Fix comment formatting.
6722         * config/mips/elf64.h: Likewise.
6723         * config/mips/iris5.h: Likewise.
6724         * config/mips/iris5gas.h: Likewise.
6725         * config/mips/iris6.h: Likewise.
6726         * config/mips/isa3264.h: Likewise.
6727         * config/mips/linux.h: Likewise.
6728         * config/mips/mips.c: Likewise.
6729         * config/mips/mips.h: Likewise.
6730         * config/mips/mips.md: Likewise.
6731         * config/mips/mips16.S: Likewise.
6732         * config/mips/netbsd.h: Likewise.
6733         * config/mips/osfrose.h: Likewise.
6734         * config/mips/r3900.h: Likewise.
6735         * config/mips/sni-svr4.h: Likewise.
6736         * config/mips/svr4-t.h: Likewise.
6737         * config/mips/ultrix.h: Likewise.
6738
6739 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
6740
6741         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
6742         when we update head->current.
6743
6744 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
6745
6746         * tree.c (id_string_size): Remove.
6747         (dump_tree_statistics): Update.
6748         * toplev.c (compile_file): If dumping stats, dump tree stats too.
6749
6750 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
6751
6752         * sched-rgn.c (schedule_insns): Fix comment.
6753
6754 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
6755
6756         * configure.in: Correct previous change: don't assume that
6757         gas's version number _isn't_ the last thing on the line, or
6758         isn't the only number on the line, either.
6759         * configure: Regenerate.
6760
6761 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6762
6763         * cfgcleanup.c: Fix a comment typo.
6764
6765 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6766
6767         * alias.c: Fix comment formatting.
6768         * recog.c: Likewise.
6769         * config/cris/cris.c: Likewise.
6770         * config/cris/cris.h: Likewise.
6771         * config/i960/i960.c: Likewise.
6772         * config/i960/i960.h: Likewise.
6773
6774 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6775
6776         * config/arm/arm.c: Fix a comment typo.
6777         * config/arm/arm.h: Likewise.
6778         * config/ia64/ia64.c: Likewise.
6779
6780 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
6781
6782         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
6783         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
6784         * rtl.h (set_unique_reg_note): Change return value.
6785         * gcse.c (try_replace_reg): Use set_unique_reg_note.
6786         * cse.c (cse_insn): Likewise.
6787         * expr.c (emit_move_insn): Likewise.
6788         * explow.c (force_reg): Likewise.
6789         * local-alloc (update_equiv_regs): Likewise.
6790         * loop.c (move_moveables, load_mems): Likewise.
6791         * reload (find_reloads): Likewise.
6792
6793 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
6794
6795         Localization fixes.
6796         * c-decl.c (parmlist_tags_warning, start_struct,
6797         check_for_loop_decls): Separate messages for struct, union and
6798         enum cases to allow for languages in which they have different
6799         genders.
6800         * c-format.c (scanf_flag_specs): Separate short and long name of
6801         the assignment suppression feature.
6802         (check_format_types): Localize "pointer" and "different types"
6803         strings.
6804         * c-lex.c (lex_number): Localize "an unsigned long int" and
6805         related strings.
6806         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
6807         warning message.
6808         * c-typeck.c (build_unary_up): Separate messages for increment and
6809         decrement cases to allow for languages in which they use different
6810         articles.  Localize the strings "increment" and "decrement" in one
6811         case.
6812
6813 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
6814
6815         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
6816         when no changes has been made.
6817
6818         * gcse.c (reg_set_bitmap): Turn into reg_set.
6819         (modify_mem_list_set, canon_modify_mem_list_set)
6820         (clear_modify_mem_tables, free_modify_mem_tables): New.
6821         (gcse_main); Use free_modify_mem_tables.
6822         (free_gcse_mem): Likewise; free the bitmaps.
6823         (alloc_gcse_main): Initialize the bitmaps.
6824         (canon_list_insert): Set canon_modify_mem_list_set.
6825         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
6826         (compute_hash_table): Use clear_modify_mem_tables.
6827         (reset_opr_set_tables): Likewise.
6828         (oprs_not_set_p): reg_set_bitmap is regset.
6829         (mark_set, mark_clobber): Likewise.
6830
6831         * df.h (DF_EQUIV_NOTES): New constant.
6832         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
6833         when asked for.
6834
6835         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
6836         (init_regions, schedule_insns): Conditionalize the checking
6837         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
6838
6839 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
6840
6841         * i386.md (movti_rex64 splitter): Fix condition.
6842
6843 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
6844
6845         * configure.in: Do not assume that gas's version number is the
6846         last thing on the first line of as --version output.
6847         * configure: Regenerate.
6848
6849         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
6850         MT_WARNING, MT_ERROR, MT_FATAL.
6851         (main): Call gcc_init_libintl.
6852         (v_message): Call gettext on msgid and "warning: "
6853         * tradcif.y: Include intl.h.
6854         (yyerror): Make parameter definition consistent with
6855         prototype.  Call gettext on msgid argument.
6856
6857 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6858
6859         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
6860         warnings.
6861
6862         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
6863
6864 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6865
6866         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
6867         before referencing it.
6868
6869 2001-10-26  DJ Delorie  <dj@redhat.com>
6870
6871         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
6872         override -G, and force -G0.
6873
6874 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
6875
6876         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
6877         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
6878         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
6879         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
6880
6881         * loop.h (struct induction): Rename ext_dependant to
6882         ext_dependent.
6883         * loop.c: Change all uses.
6884         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
6885         All callers changed.
6886         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
6887
6888 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
6889
6890         * c-parse.in (expr_no_commas, primary), c-typeck.c
6891         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
6892
6893 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
6894
6895         Undo assemble_name change in earlier patch.
6896
6897 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
6898
6899         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
6900         determining the type of the receiver, do not check that TREE_CODE
6901         of receiver is CALL_EXPR before calling receiver_is_class_object().
6902         (receiver_is_class_object): For the GNU runtime: recognize
6903         the case that the receiver is self in a class method context.
6904         Check that TREE_CODE of receiver is CALL_EXPR when checking that
6905         the receiver is a call to objc_get_class.
6906
6907 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6908
6909         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
6910
6911 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6912
6913         * Makefile.in (OBJS): Put all files in alphabetical order.
6914
6915         * dwarf2out.c (add_const_value_attribute): Fix error in last
6916         change.
6917
6918 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
6919
6920         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
6921         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
6922         fix warning.
6923         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
6924         (life_analysis): call purge_all_dead_edges after deleting noops.
6925         (delete_noop_move): Do not purge CFG.
6926         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
6927
6928 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
6929
6930         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
6931         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
6932         (ASM_GLOBALIZE_LABEL): Use assemble_name.
6933         (ASM_OUTPUT_COMMON): Likewise.
6934         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
6935         (rs6000_output_function_epilogue): Likewise.
6936         (output_mi_thunk): Fix typo.
6937         (rs6000_output_symbol_ref): Use assemble_name.
6938         (output_toc): Likewise.
6939         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
6940         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
6941         assemble_name calls STRIP_NAME_ENCODING.
6942         (ASM_OUTPUT_LABEL): Use assemble_name.
6943         (ASM_GLOBALIZE_LABEL): Likewise.
6944         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6945         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
6946         (ASM_OUTPUT_LOCAL): Likewise.
6947
6948 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6949
6950         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
6951         (expand_builtin_apply, expand_builtin_return): Likewise.
6952         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
6953
6954 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
6955
6956         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
6957         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
6958         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
6959         configure, configure.in, except.c, except.h, flow.c, function.c,
6960         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
6961         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
6962         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
6963         unroll.c: Fix spelling errors.
6964
6965         * doc/extend.texi, doc/invoke.texi: Fix spelling.
6966
6967         * doc/gcc.texi: Document use of "dependent" and American spelling.
6968
6969 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
6970
6971         * expr.c (emit_group_load): Support CONCATs by storing them to memory
6972         and reloading.
6973
6974 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6975
6976         * expr.c (store_constructor_field): Only call adjust_address on MEM.
6977
6978 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
6979
6980         * genrecog.c (write_switch):  Output if before switch for
6981         DT_elt_zero_wide_safe.
6982
6983 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6984
6985         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
6986         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
6987         (FUNCTION_PROFILER): Const-ify.
6988         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
6989         (eliminate_constant_term, assemble_name, output_addr_const):
6990         Remove declarations.
6991         (ptr_half_pic_address_p, half_pic_hash): Prototype.
6992         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
6993         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
6994         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
6995         (half_pic_declare, half_pic_external): Const-ify.
6996         * toplev.c: Include "halfpic.h".
6997
6998 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
6999
7000         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
7001         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
7002         config/i386/i386.c, config/i386/i386-interix.h,
7003         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
7004         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
7005         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
7006         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
7007         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
7008         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
7009         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
7010         spelling errors.
7011
7012         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
7013         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
7014         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
7015         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
7016         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
7017         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
7018         system.h, toplev.c: Fix spelling errors.
7019
7020 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7021
7022         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
7023
7024         * dwarf2out.c (reg_number): Abort if pseudo.
7025         (reg_loc_descriptor): Return 0 if pseudo.
7026         (is_based_loc): Return 0 if pseudo.
7027         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
7028         recursive calls.
7029         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
7030         (loc_descriptor): Return 0 if can't find location and handle 0
7031         return from recursive calls.
7032         (loc_descriptor_from_tree): Likewise.
7033         Fix handling of indirect.
7034         Also return 0 for PLACEHOLDER_EXPR.
7035         Clean up COMPONENT_REF cases.
7036         (add_AT_location_descriptor): Simplify, but handle 0 return from
7037         loc_descriptor.
7038         (add_const_value_attribute): Avoid shift count warning.
7039         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
7040         Set comp_unit_die as context if not in function.
7041
7042         * config/mips/mips-protos.h: Break up long lines.
7043         Remove needless #ifdef/#endif blocks.
7044         Don't declare functions declared in file made by genpreds or recog.h.
7045         * config/mips/mips.c (mips_output_function_prologue): TSIZE
7046         is now HOST_WIDE_INT; delete unneeded casts.
7047         * config/mips/mips.h: Don't use #elif.
7048
7049         * expr.c (stor_constructor_field): Always call adjust_address.
7050         Copy TARGET before changing its alias set.
7051         (store_field): Likewise, for TO_RTX.
7052         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
7053         replacement.
7054         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
7055         (find_placeholder): Return 0 if can't find object.
7056         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
7057         returns 0.
7058
7059 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
7060
7061         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
7062
7063 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
7064
7065         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
7066         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
7067         (merge_blocks): Properly udpate life after making edge nonfallthru.
7068         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
7069
7070 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7071
7072         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
7073
7074 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7075
7076         * c-typeck.c (convert_arguments): When comparing for enumeral
7077         type equality, use TYPE_MAIN_VARIANT.
7078         * gcc.dg/Wconversion.c: New tests.
7079
7080 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7081
7082         * s390/s390.c: Fix comment typos.
7083         * s390/s390.h: Likewise.
7084         * s390/s390.md: Likewise.
7085
7086 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7087
7088         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
7089         (walk_tree): Use it for tail calls where appropriate.
7090
7091 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7092
7093         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
7094         non-local label_refs.
7095
7096 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7097
7098         * config/h8300/h8300.md (4 anonymous patterns): New.
7099
7100 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7101
7102         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
7103         algorithm through the shift_info structure.
7104         (emit_a_shift): Update the use of get_shift_alg.
7105
7106 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
7107
7108         * sched-rgn.c: Remove bitset typedef.
7109         Change bitset to sbitmap in prototypes / variable types.
7110         Remove bbset_size.
7111         Remove edgeset_bits.
7112         Remove edgeset_size.
7113         s/BITSET_ADD/SET_BIT/g
7114         s/BITSET_INVERT/sbitmap_ones/g
7115         s/BITSET_INTER/sbitmap_a_and_b/g
7116         s/BITSET_UNION/sbitmap_a_or_b/g
7117         s/BITSET_DIFFER/sbitmap_difference/g
7118         s/bitset_member/TEST_BIT/g
7119         (BITSET_*): Removed.
7120         (bitset_member): Removed.
7121         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
7122         EXECUTE_IF_SET_IN_SBITMAP.
7123         (split_edges): Rewrite, use sbitmap functions instead of bitset
7124         operations.
7125         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
7126
7127 2001-10-26  Andreas Schwab  <schwab@suse.de>
7128
7129         * reload1.c (emit_input_reload_insns): Fix parens in last
7130         (undocumented) change that was supposed to change only whitespace.
7131
7132 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7133
7134         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
7135
7136         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
7137         ASM_OPERANDS.
7138
7139 2001-10-26  Andreas Jaeger  <aj@suse.de>
7140
7141         * flow.c (clear_log_links): Remove unused variable.
7142         * cfgcleanup.c (cleanup_cfg): Likewise.
7143
7144 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7145
7146         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
7147         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
7148
7149 2001-10-26  Richard Henderson  <rth@redhat.com>
7150
7151         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
7152         rename PV_REG to R27_REG.
7153         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
7154         (REG_CLASS_FROM_LETTER): Update.
7155         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
7156         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
7157         (udivsi3, modsi3, umodsi3): Likewise.
7158         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
7159
7160 2001-10-26  Richard Henderson  <rth@redhat.com>
7161
7162         * cfg.c (clear_aux_for_blocks): Split out of ...
7163         (free_aux_for_blocks): here.
7164         (clear_aux_for_edges): Split from ...
7165         (free_aux_for_edges): here.
7166         * basic-block.h: Declare them.
7167         * lcm.c (compute_antinout_edge): Use them.
7168         (compute_laterin, compute_available, compute_nearerout): Likewise.
7169         (optimize_mode_switching): Likewise.
7170
7171 2001-10-26  Richard Henderson  <rth@redhat.com>
7172
7173         * Makefile.in (unstage*): Remove as, ld, collect-ld before
7174         moving everything back to the main build directory.
7175
7176 2001-10-26  Christopher Faylor  <cgf@redhat.com>
7177
7178         * config/i386/cygwin.h: Search target specific include directory, if
7179         appropriate.
7180
7181 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7182
7183         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
7184         of macro guards. Fix #endif comment.
7185
7186         * output.h (default_exception_section, default_eh_frame_section):
7187         Move prototypes outside of macro guard.
7188
7189         * crtstuff.c: Fix #endif comment.
7190
7191 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
7192
7193         * doc/md.texi (movMM): Clarify semantics of storing into a
7194         non-paradoxical SUBREG.
7195
7196 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
7197
7198         * langhooks.c (lang_hook_default_clear_binding_stack): New.
7199         (lang_hook_default_get_alias_set): Move next to other alias
7200         hooks.
7201         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
7202         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
7203         (LANG_HOOKS_INITIALIZER): Add it.
7204         * toplev.h (struct lang_hooks): Add clear_binding_stack.
7205         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
7206         instead of a loop calling poplevel.
7207
7208 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
7209
7210         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
7211         occurrences of #elif with #if...#endif.
7212
7213 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7214
7215         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
7216
7217 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7218
7219         * alias.c (can_address_p): No longer static.
7220         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
7221         Return 0 if all parameters are default values.
7222         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
7223         (adjust_address_1): Try harder to compute a size.
7224         * expr.c (expand_assignment, store_constructor): If can't address,
7225         set MEM_KEEP_ALIAS_SET_P.
7226         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
7227         (store_field): Likewise.
7228         (store_constructor): Simplify call to store_constructor_field.
7229         * expr.h (can_address_p): New declaration.
7230         * gensupport.c (gen_rtx_CONST_INT): New function.
7231         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
7232         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
7233         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
7234
7235         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
7236
7237 2001-10-24  Christopher Faylor  <cgf@redhat.com>
7238
7239         * config/i386/cygwin.h: Use proper path for mingw crt files when
7240         -mno-cygwin.
7241
7242 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7243
7244         * dwarf2out.c (file_info_cmp): Always return consistent results.
7245
7246 2001-10-24  Roger Sayle <roger@eyesopen.com>
7247
7248         * stmt.c (expand_end_case): Index jumptables from zero for
7249         suitably small values of minval.
7250
7251 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
7252
7253         * stor-layout.c (place_union_field): If any field was aligned with
7254         attribute aligned, set record type's TYPE_USER_ALIGN.
7255         (place_field): Likewise.
7256         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
7257         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
7258
7259 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
7260
7261         * c-common.h (struct c_common_identifier): Remove rid_code field.
7262         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
7263
7264         * c-typeck.c (constructor_designated): New local flag.
7265         (struct constructor_stack): Add "designated" field to match.
7266         (start_init): Clear it.
7267         (really_start_incremental_init, push_init_level): Push and
7268         clear it.
7269         (pop_init_level): Pop it.
7270         (set_designator): Set it.
7271
7272         (pop_init_level): Suppress "missing initializer" warnings if
7273         constructor_designated is true.
7274         (process_init_element): Suppress warning about union
7275         initialization under traditional C, if constructor_designated
7276         is true.
7277
7278 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7279
7280         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
7281         change.
7282
7283 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
7284
7285         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
7286
7287 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
7288
7289         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
7290         the node was already a set to a constant.
7291
7292 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7293
7294         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
7295         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
7296
7297 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7298
7299         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
7300         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
7301         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
7302         * s390.c (s390_final_chunkify): Don't use string concatenation.
7303         (s390_function_prologue, s390_function_epilogue): Const-ify.
7304         * s390.h (FUNCTION_PROFILER): Remove unused variable.
7305
7306 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
7307
7308         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
7309         prototypes.
7310
7311 2001-10-23  Stan Shebs  <shebs@apple.com>
7312
7313         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
7314         -traditional-cpp in first-stage compilation.
7315
7316 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7317
7318         * gensupport.c (target_flags): Add.
7319
7320 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
7321
7322         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
7323         if needed.
7324         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
7325         * except.c (expand_builtin_frob_return_addr): Likewise.
7326         (expand_builtin_eh_return): Likewise.
7327         * stmt.c (expand_computed_goto): Likewise.
7328         * explow.c (memory_address): Likewise.
7329         (allocate_dynamic_stack_space): Clean up predicate testing.
7330         (probe_stack_range): Convert SIZE to Pmode.
7331         * calls.c (rtx_for_function_call): Only call convert_memory_address
7332         if needed.
7333         Pass function call operand as ptr_mode, not Pmode.
7334         * expr.c (expand_assignment): Clean up calls to convert_memory
7335         address by only doing so when needed and making offsets Pmode.
7336         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
7337         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
7338         is in Pmode, not ptr_mode.
7339
7340 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7341
7342         * darwin-protos.h (constructor_section, destructor_section,
7343         mod_init_section, mod_term_section): Prototype.
7344         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
7345         Const-ify.
7346         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
7347         Likewise.
7348         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
7349         objc_section_init declaration.
7350         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
7351         (objc_section_init, try_section_alias): Make static.
7352         (alias_section): Make static and hide unused function.
7353         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
7354
7355 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7356
7357         * alias.c (can_address_p): Compnonents are not addressable if
7358         the containing type has alias set 0.
7359         (get_alias_set): Rework to use STRIP_NOPS.
7360         Only call front-end routine on object, type, or object with
7361         NOPs stripped, not inner values.
7362         Use language hook to call front-end routine.
7363         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
7364         (expand_builtin_apply): Call set_mem_align on MEMs we make.
7365         Don't pass alignment to emit_block_move.
7366         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
7367         (expand_builtin_memset): Likewise, but for clear_storage.
7368         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
7369         and remove C++ specific parts.
7370         * c-common.h (c_common_get_alias_set): Add declaration.
7371         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
7372         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
7373         (save_fixed_argument_area): Call set_mem_align.
7374         Remove alignment in call to emit_block_move.
7375         (emit_library_call_value_1, store_one_arg): Likewise.
7376         (target_for_arg): Remove; disabled long ago.
7377         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
7378         once and similar cleanups.
7379         (offset_address): Use proper introductory comment.
7380         * expr.c (emit_block_move): Use alignment from that of MEM args, not
7381         from explicit operand; all callers changed.
7382         (clear_storage): Likewise.
7383         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
7384         (store_field): Remove kludge on alias set used for to_rtx.
7385         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
7386         (expand_expr_unaligned): Call set_mem_attributes instead of
7387         set_mem_alias_set.
7388         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
7389         * function.c (assign_stack_temp_for_type): Set MEM alignment.
7390         (expand_function_end): Track MEM attributes of trampolines.
7391         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
7392         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
7393         attributes from original.
7394         * langhooks.c (lang_hook_default_get_alias_set): New function.
7395         (hook_get_alias_set_0): New function.
7396         * langhooks.h (hook_get_alias_set_0): New declaration.
7397         (lang_hook_default_get_alias_set): Likewise.
7398         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
7399         * reload1.c (alter_reg): Use adjust_address_nv.
7400         * rtl.c (get_mode_alignment): Moved to here.
7401         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
7402         change default if unknown from 1 to BITS_PER_UNIT.
7403         * stor-layout.c (get_mode_alignment): Remove from here.
7404         * toplev.h (struct lang_hoks): Add get_alias_set field.
7405         * tree.h (lang_get_alias_set): Delete declaration.
7406         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
7407         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7408         (ix86_va_arg): Likewise.
7409         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7410         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7411         * config/sparc/sparc.c (sparc_va_arg): Likewise.
7412         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7413         (expand_block_move_mem): Remove dead code.
7414
7415 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7416
7417         * c-common.c (warn_div_by_zero): New.
7418         * c-common.h (warn_div_by_zero): New.
7419         * c-decl.c (c_decode_option): Take it on the command line.
7420         * c-typeck.c (build_binary_op): Warn about division by zero.
7421         * doc/invoke.texi: Document the new command line option, fix
7422         documentation of -Wmultichar.
7423         * testsuite/gcc.dg/divbyzero.c: New tests.
7424         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
7425
7426 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
7427
7428         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
7429
7430         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
7431         to avoid update_life_info call.
7432         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
7433         * cfgcleanup.c (bb_flags): New enum.
7434         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
7435         (notice_new_block, update_forwarder_flag): New functions.
7436         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
7437         (try_forward_edges): Likewise; update flags.
7438         (merge_blocks): Likewise.
7439         (outgoing_edges_match): Likewise.
7440         (try_crossjump_to_edge): Likewise.
7441         (try_optimize_cfg): Likewise; initialize and clear the flags;
7442         recompute life info if needed.
7443         (cleanup_cfg): No need to clear aux pointers.
7444
7445 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
7446
7447         * config/i386/i386.c (override_options): Default to minimum
7448         stack alignment when optimizing for code size.
7449         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
7450         change.
7451
7452         * config/i386/i386.c (override_options): Set upper limit of
7453         -mpreferred-stack-boundary to 12.
7454
7455 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
7456
7457         * recog.c (peephole2_optimize): Add default case to switch.
7458
7459 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
7460
7461         * doc/gcc.texi (Sending Patches): Remove.
7462
7463 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
7464
7465         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
7466         fields when comparing.
7467
7468 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7469
7470         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
7471         * arm.c (HOST_INT, HOST_UINT): Likewise.
7472
7473 2001-10-22  Stan Shebs  <shebs@apple.com>
7474
7475         * config/darwin-protos.h (darwin_exception_section): Declare.
7476         (darwin_eh_frame_section): Declare.
7477
7478 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
7479
7480         * i386.md (movti_rex64): Fix mode.
7481
7482 2001-10-22  Stan Shebs  <shebs@apple.com>
7483
7484         * target.h (struct gcc_target): Add asm_out.exception_section,
7485         asm_out.eh_frame_section.
7486         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
7487         (TARGET_ASM_EH_FRAME_SECTION): New.
7488         (TARGET_INITIALIZER): Update.
7489         * output.h (default_exception_section): Declare.
7490         (default_eh_frame_section): Declare.
7491         * dwarf2out.c: Include target.h.
7492         (output_call_frame_info): Call target hook for eh frames.
7493         (default_eh_frame_section): New function.
7494         * except.c: Include target.h.
7495         (output_function_exception_table): Call target hook for exception
7496         section.
7497         * varasm.c (default_exception_section): Rename from
7498         exception_section, remove EXCEPTION_SECTION macro.
7499
7500         * config/darwin.h (darwin_eh_frame_section): New function.
7501         (EXCEPTION_SECTION): Remove.
7502         (TARGET_ASM_EXCEPTION_SECTION): Define.
7503         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
7504         (nextstep_exception_section): New function.
7505         (nextstep_eh_frame_section): New function.
7506         (TARGET_ASM_EXCEPTION_SECTION): Define.
7507         (TARGET_ASM_EH_FRAME_SECTION): Define.
7508
7509         * config/pa/som.h (EXCEPTION_SECTION): Remove.
7510         (TARGET_ASM_EXCEPTION_SECTION): Define.
7511         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
7512         (EXCEPTION_SECTION): Remove.
7513         (TARGET_ASM_EXCEPTION_SECTION): Define.
7514         * config/stormy16/stormy16.h: Remove comments referencing
7515         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
7516
7517         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
7518         TARGET_ASM_EH_FRAME_SECTION.
7519
7520 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
7521
7522         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
7523         terms.
7524
7525         * c-format.c: Fix spelling typo in comment.
7526
7527         * sched-int.h: Fix typo in GCC preamble.
7528
7529 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7530
7531         PR debug/4252
7532         * doc/invoke.texi: Remove references to -fdump-translation-unit.
7533
7534 2001-10-22  Richard Henderson  <rth@redhat.com>
7535
7536         * config/i386/i386.c (ix86_expand_clear): New.
7537         * config/i386/i386-protos.h: Declare it.
7538         * config/i386/i386.md (setcc peep2s): Use it.
7539         (movsi_xor): Unexport.
7540
7541 2001-10-22  Richard Henderson  <rth@redhat.com>
7542
7543         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
7544         free_EXPR_LIST_list for LOG_LINKS.
7545
7546 2001-10-21  Robert Lipe  <robertlipe@usa.net>
7547
7548         * config/i386/i386.c (sco_asm_named_section): Delete.
7549         (sco_asm_out_constructor): Delete.
7550         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
7551         (ASM_OUTPUT_DOUBLE_INT): Likewise.
7552         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
7553         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
7554         (EXCEPTION_SECTION): Delete EH scn renaming hack.
7555
7556 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7557
7558         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
7559         and/or fold extra calls into fewer ones.
7560         * collect2.c (dump_file): Likewise.
7561         * cppexp.c (parse_number): Likewise.
7562         * cpplex.c (_cpp_lex_direct): Likewise.
7563         * final.c (output_asm_insn, asm_fprintf): Likewise.
7564         * fix-header.c (inf_scan_ident, main): Likewise.
7565         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
7566         Likewise.
7567         * fold-const.c (real_hex_to_f): Likewise.
7568         * gen-protos.c (parse_fn_proto): Likewise.
7569         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
7570         * genrecog.c (change_state, write_action): Likewise.
7571         * gensupport.c (shift_output_template): Likewise.
7572         * local-alloc.c (requires_inout): Likewise.
7573         * mips-tfile.c (IS_ASM_IDENT): Likewise.
7574         * protoize.c (is_id_char, main): Likewise.
7575         * real.c (asctoeg): Likewise.
7576         * recog.c (asm_operand_ok): Likewise.
7577         * reload.c (find_reloads): Likewise.
7578         * scan.c (scan_identget_token): Likewise.
7579         * sched-vis.c (print_value): Likewise.
7580         * stringpool.c (ggc_alloc_string): Likewise.
7581         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
7582         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
7583         * tradcpp.c (rescan): Likewise.
7584         * tree.c (clean_symbol_name): Likewise.
7585         * varasm.c (decode_reg_name): Likewise.
7586
7587         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
7588         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
7589         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
7590         * m88k.c (output_ascii): Likewise.
7591         * m88k.h (OVERRIDE_OPTIONS): Likewise.
7592         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
7593         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
7594         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
7595
7596 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7597
7598         * langhooks.c (lang_hook_default_do_nothing,
7599         lang_hook_default_decode_option): New defaults.
7600         * langhooks.h: Make hooks unconditional and non-NULL.
7601         * toplev.c (compile_file, toplev_main): Update.
7602         * toplev.h: Update comments.
7603         * objc/objc-act.c (lang_hooks): Update to new paradigm.
7604
7605 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7606
7607         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
7608
7609         * system.h (IN_RANGE): New macro.
7610
7611 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
7612
7613         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
7614         INTLDEPS variable, which does not include $LIBICONV.
7615         * Makefile.in: Use INTLDEPS in LIBDEPS.
7616         * configure: Regenerate.
7617
7618 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7619
7620         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
7621         * cpplex.c (lex_percent, lex_dot): Remove.
7622         (get_effective_char, skip_block_comment, skip_line_comment,
7623         parse_identifier_slow, parse_number, parse_string, save_comment,
7624         _cpp_lex_direct): Update to do lookback freely.
7625         (IF_NEXT_IS, BACKUP): New macros.
7626         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
7627         * cppmacro.c (paste_tokens): Update.
7628
7629 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
7630
7631         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
7632
7633 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
7634
7635         * reload1.c (reload): Check CONSTANT_P before calling
7636         LEGITIMATE_PIC_OPERAND_P.
7637         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
7638         workaround of 2001-10-13.
7639
7640 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
7641
7642         * i386.c (split_di): Handle splitting of DFmode.
7643
7644 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7645
7646         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
7647         (adjust_address_1, offset_address): Likewise.
7648
7649         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
7650         (output_asm_insn): Call it for each line output.
7651         Don't record an operand more than once.
7652
7653         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
7654         * main.c: Include config.h and system.h, but not ansidecl.h.
7655         * Makefile.in (main.o): Update accordingly.
7656
7657 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
7658
7659         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
7660
7661 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
7662
7663         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
7664         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
7665         Break out from ...
7666         (find_sub_basic_blocks): ... here;
7667         (find_many_sub_basic_blocks): New.
7668         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
7669
7670         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
7671
7672         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
7673
7674         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
7675
7676         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
7677         * flow.c (update_life_info): Measure time.
7678         * c-decl.c: Include timevar.h
7679         (c_expand_body): Measure time.
7680         * toplev.c (rest_of_compilation): Measure time of mode switching
7681         separately.
7682         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
7683
7684         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
7685         (lang_independent_options): Add asynchronous-unwind-tables
7686         (toplev_main): flag_asynchronous_unwind_tables implies
7687         flag_unwind_tables.
7688         * flags.h (flag_asynchronous_unwind_tables): Declare.
7689         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
7690         flag_asynchronous_unwind_tables.
7691         (output_call_frame_info): Likewise.
7692         * invoke.texi (-fasynchronous-unwind-tables): Document.
7693         * i386.c (optimization_options): Enable
7694         flag_asynchronous_unwind_tables.
7695
7696         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
7697         * i386.md (s* expanders): Destination is QImode.
7698
7699         * toplev.c (rest_of_compilation): Do not call clear_log_links.
7700         * rtl.h (clear_log_links): Kill.
7701         * flow.c (clear_log_links): Make static; accept blocks parameter;
7702         do no clear life info.
7703         (update_life_info): Call clear_log_links.
7704
7705         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
7706
7707 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7708
7709         * cpplex.c (handle_newline, skip_escaped_newlines,
7710         get_effective_char, skip_block_comment, skip_line_comment,
7711         parse_identifier_slow, parse_number, parse_string,
7712         _cpp_lex_direct): Update to do more stepping back.
7713         (trigraph_ok): Similarly.  Rename trigraph_p.
7714         (SAVE_STATE, RESTORE_STATE): Remove.
7715         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
7716
7717         * cpplib.c (destringize): Rename destringize_and_run, and
7718         call run_directive directly.
7719         (_cpp_do__Pragma): Simplify.
7720
7721 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7722
7723         * pe.c (arm_pe_unique_section): Const-ify.
7724         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
7725         (switch_to_section): Add static prototype.
7726
7727         * output.h (drectve_section): Prototype.
7728
7729 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7730
7731         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
7732         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
7733         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
7734         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
7735         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
7736         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
7737         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
7738         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
7739         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
7740         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
7741         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
7742         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
7743         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
7744         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
7745         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
7746         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
7747         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
7748         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
7749         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
7750         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
7751         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
7752         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
7753         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
7754         cris-*-none, cris-*-linux*: Update ${tmfile} list.
7755         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
7756         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
7757         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
7758         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
7759         v850-*-*): Delete superflous ${cpu_type} setting.
7760         * config/linux.h: Delete svr4.h include.
7761         (SET_ASM_OP): Delete.
7762         * config/netware.h (INT_ASM_OP): Undef before define.
7763         * config/ptx4.h: Delete elfos.h include.
7764         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
7765         * config/svr4.h: Delete elfos.h include. Update commentary.
7766         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
7767         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
7768         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
7769         config/v850/v850.h: Delete svr4.h include.
7770         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
7771         config/m68k/m68kv4.h, config/m88k/sysv4.h,
7772         config/sparc/sysv4.h: Update includes.
7773         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
7774         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
7775         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
7776         config/m88k/dguxbcs.h: Delete includes.
7777         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
7778         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
7779         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
7780         it.
7781         * config/m88k/dgux.h: Delete include.
7782         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
7783         defining it.
7784         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
7785         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
7786         * config/sh/elf.h: Update include.
7787         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
7788         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
7789
7790 2001-10-19  Catherine Moore  <clm@redhat.com>
7791
7792         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
7793         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
7794         base and count fields.
7795         (stormy16_expand_builtin_va_start):  last_reg_count changed to
7796         size_of_reg_args.  Use count + size in first comparison.
7797
7798 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7799
7800         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
7801         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
7802         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
7803         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
7804         Set alignment from type if INDIRECT_REF.
7805         (adjust_address_1, offset_address): Simplify alignment compuitation.
7806         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
7807         here; done by set_mem_attributes.
7808
7809 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7810
7811         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
7812         * arm-protos.h (rdata_section, zero_init_section, common_section):
7813         Prototype.
7814         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
7815         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
7816         traditional mode stringification.
7817         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
7818         in macros controling its use.
7819         * rtlanal.c: Include tm_p.h.
7820         * varasm.c (asm_output_aligned_bss): Mark parameter with
7821         ATTRIBUTE_UNUSED.
7822         (assemble_constant_align, assemble_start_function, assemble_align,
7823         assemble_variable, assemble_trampoline_template,
7824         output_constant_def_contents): Wrap potentially empty if-stmt body
7825         in brackets.
7826
7827 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7828
7829         * a29k-protos.h (literal_section): Prototype.
7830         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
7831         * a29k.md: Ensure function pointers are prototyped.
7832         * genattrtab.c (write_eligible_delay): Mark parameter with
7833         ATTRIBUTE_UNUSED.
7834
7835 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7836
7837         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
7838         * 1750a.c (print_operand): Fix format specifier warning.
7839         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
7840         * 1750a.md: Likewise.
7841         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
7842         * genemit.c (output_add_clobbers): Mark parameter with
7843         ATTRIBUTE_UNUSED.
7844         * genrecog.c (write_subroutine): Likewise.
7845         * integrate.c (expand_inline_function): Delete unused variable.
7846         * varasm.c (remove_from_pending_weak_list): Wrap with
7847         ASM_WEAKEN_LABEL.
7848
7849 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
7850
7851         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
7852         field is different to previous argument's neg field.
7853
7854         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
7855
7856 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7857
7858         * final.c (get_decl_from_op): New function.
7859         (output_asm_insn): Call it; write "*" when item with decl is address.
7860
7861 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
7862
7863         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
7864         about 64-bit support from the 3.0_branch version.
7865
7866 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
7867
7868         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
7869         USE_INCLUDED_LIBINTL when appropriate.
7870         * configure, config.in: Regenerate.
7871         * Makefile.in (datadir): Set to @datadir@.
7872         (intl.o): Also depend on $(CONFIG_H) and system.h.
7873
7874         * intl.c: Factor out common gettext initialization sequence.
7875         (gcc_init_libintl):  New function.
7876         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
7877         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
7878         off NLS.  Add multiple include guard.  No need to #ifdef-guard
7879         an #undef.  Prototype gcc_init_libintl here.
7880
7881         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
7882         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
7883         Use gcc_init_libintl.
7884
7885 2001-10-19  Catherine Moore  <clm@redhat.com>
7886
7887         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
7888
7889         * config/stormy16/stormy16.c (stormy16_split_move):  Make
7890         sure that REG_INC notes are present for auto_inc operands.
7891
7892 2001-10-19  Andreas Jaeger  <aj@suse.de>
7893
7894         * configure: Regenerated.
7895         * configure.in: Add x86_64 to switch statements.
7896
7897 2001-10-18  Richard Henderson  <rth@redhat.com>
7898
7899         * config/alpha/alpha.md (sibcall_osf_1): Load destination
7900         address into $27 explicitly.
7901         (sibcall_value_osf_1): Likewise.
7902
7903 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7904
7905         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
7906         (offset_address): New function.
7907         (free_emit_status): Free regno_decl.
7908         (init_emit): Pass proper number of elements to xcalloc.
7909         Allocate regno_decl.
7910         (mark_emit_status): Mark regno_decl values.
7911         * expr.c (highest_pow2_factor): New function.
7912         (expand_assigment): Use it and offset_address.
7913         Properly handle ptr_mode vs. Pmode in offset calculation.
7914         (store_constructor, expand_expr_unaligned): Likewise.
7915         (expand_expr, case COMPONENT_EXPR): Likewise.
7916         * expr.h (offset_address): New decl.
7917         * function.h (struct emit_status): Add regno_decl.
7918         (REGNO_DECL): New macro.
7919         * final.c (output_asm_name): Move in file and don't conditionalize
7920         on flag_print_asm_name.
7921         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
7922         Output names of operands, if known.
7923         * function.c (assign_parms): Set REGNO_DECL.
7924         * integrate.c (integrate_decl_tree): Likewise.
7925         * stmt.c (expand_decl): Likewise.
7926         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
7927
7928 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
7929
7930         * attribs.c (handle_noinline_attribute): New function.
7931         (handle_used_attribute): Likewise.
7932         (c_common_attribute_table): Added noinline and used.
7933         * doc/extend.texi (Function Attributes): Document them.
7934         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
7935         Warn when merging inline with attribute noinline.
7936         (start_decl, start_function): Warn if inline and attribute
7937         noinline appear in the same declaration.
7938
7939 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7940
7941         * config.gcc: Update c4x and i370 for C front end-specific
7942         dependencies.
7943         * config/c4x/c4x-c.c: New.
7944         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
7945         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
7946         New declarations.
7947         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
7948         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
7949         Make extern.
7950         (c4x_init_pragma): Remove.
7951         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
7952         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
7953         c4x_pr_ignored): Move to c4x-c.c.
7954         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
7955         * config/c4x/t-c4x: Update.
7956         * config/i370/i370-c.c: New.
7957         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
7958         (i370_pr_map): Move to i370-c.c.
7959         * config/i370/t-i370: New.
7960
7961         * doc/tm.texi: Update.
7962
7963 2001-10-17  Stan Shebs  <shebs@apple.com>
7964
7965         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
7966         typo fixes throughout.
7967         (machopic_output_stub): Remove some dead code.
7968
7969 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
7970
7971         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
7972         leak.
7973
7974 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7975
7976         * Makefile.in (print-rtl.o): Depend on TREE_H.
7977         * alias.c (get_alias_set): Make two passes over objects to first
7978         see if inner object is access via restricted pointer.
7979         Defer allocating alias set for restricted pointer until here.
7980         Call find_placeholder with second arg nonzero.
7981         Minor cleanups.
7982         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
7983         set for restricted pointer types.
7984         * emit-rtl.c (set_mem_attributes): Set more attributes.
7985         (set_mem_align, change_address, adjust_address_1): New functions.
7986         (change_address_1): Now static.
7987         (adjust_address, adjust_address_nv): Deleted.
7988         (replace_equiv_address): Call change_address_1.
7989         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
7990         (find_placeholder): Get starting point from PLIST arg.
7991         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
7992         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
7993         (adjust_address, adjust_address_nv): New macros.
7994         * print-rtl.c (tree.h): New include.
7995         (print_rtx, case MEM): Print all memory attributes.
7996
7997 2001-10-17  Richard Henderson  <rth@redhat.com>
7998
7999         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
8000
8001 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8002
8003         * c-tree.texi: Eliminate duplicated word.
8004         * cpp.texi: Likewise.
8005         * install.texi: Likewise.
8006         * invoke.texi: Likewise.
8007         * tm.texi: Likewise.
8008
8009 2001-10-17  Michael Collison  <collison@isisinc.net>
8010
8011         * dsp16xx.c: Fix comment formatting to match GNU standards.
8012         (dsp16xx_output_function_prologue): Change type of 'size'
8013         parameter from 'int' to HOST_WIDE_INT.
8014         (dsp16xx_output_function_epilogue): Change type of 'size'
8015         parameter from 'int' to HOST_WIDE_INT.
8016
8017 2001-10-16  Richard Henderson  <rth@redhat.com>
8018
8019         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
8020         * configure, config.in: Rebuild.
8021
8022         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
8023         (ix86_output_addr_diff_elt): New.
8024         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
8025         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8026         (JUMP_TABLES_IN_TEXT_SECTION): New.
8027         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
8028         * config/i386/i386-protos.h: Update.
8029
8030         * config/i386/386bsd.h, config/i386/beos-elf.h,
8031         config/i386/freebsd-aout.h, config/i386/freebsd.h,
8032         config/i386/i386-interix.h, config/i386/i386elf.h,
8033         config/i386/linux.h, config/i386/netbsd-elf.h,
8034         config/i386/netbsd.h, config/i386/openbsd.h,
8035         config/i386/ptx4-i.h, config/i386/rtemself.h,
8036         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
8037         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
8038
8039 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
8040
8041         * stmt.c (expand_asm_operands): Update commentary.
8042
8043 2001-10-16  Stan Shebs  <shebs@apple.com>
8044
8045         * config/darwin.h (GCC_NAME): Remove, no longer used.
8046         (NO_MATH_LIBRARY): Ditto.
8047         (MATH_LIBRARY): Define to emptiness.
8048         (DWARF2_DEBUGGING_INFO): Define.
8049         (PREFERRED_DEBUGGING_TYPE): Define.
8050         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
8051         (EXCEPTION_SECTION): Define.
8052         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8053         * config/darwin.c (darwin_encode_section_info): Handle case of
8054         DECL_INITIAL being error_mark_node.
8055
8056 2001-10-16  Richard Henderson  <rth@redhat.com>
8057
8058         * alpha.c (current_file_function_operand): Don't fail for profiling.
8059         (direct_call_operand): New.
8060         * alpha-protos.h: Declare it.
8061         * alpha.h (EXTRA_CONSTRAINT): Use it.
8062         (PREDICATE_CODES): Add it.
8063         (ASM_OUTPUT_MI_THUNK): Remove.
8064         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
8065         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
8066
8067 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
8068
8069         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
8070         (JUMP_TABLES_IN_TEXT_SECTION): Define.
8071
8072 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
8073
8074         * cfg.c (free_edge): Break out from ....
8075         (remove_edge): ... here.
8076         (clear_edges): Use free_edge.
8077
8078         * att.h (ASM_QUAD): Add comment.
8079         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
8080
8081 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
8082
8083         * i386.c (split_ti): New function.
8084         (ix86_split_to_parts): Support TImodes.
8085         * i386.h (VALID_INT_MODE_P): Add TImode.
8086         * i386.md (movdi splitter): Fix.
8087         (movti): Support 64bit integer registers.
8088         (movti_rex64): New function and splitter.
8089
8090         * i386.c (*_cost): Add movsx/movzx cost.
8091         * i386.h (struct processor_costs): Add movsx/movzx fields.
8092         (RTX_COSTS): Handle zero/sign extend + avoid believing that
8093         64bit operations require split on 64bit machine.
8094         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
8095
8096         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
8097         (ix86_expand_move): Avoid pushes of memory if size does not match;
8098         move long constants to register.
8099         (x86_initialize_trampoline): Fix mode.
8100         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
8101         Use ASM_QUAD on 64bit.
8102         * i386.md (test pattern): Disallow impossible constants.
8103         (tablejump PIC expander): Fix emitting of sum.
8104         (movdicc_rex64): Rename to movdicc.
8105         * linux64.h (LINK_SPEC): Add missing '%'.
8106
8107 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
8108
8109         * tree-inline.c (inlinable_function_p): Leave it up to the
8110         front-end to turn -finline-functions into DECL_INLINE set for all
8111         functions.
8112
8113 2001-10-16  Stan Shebs  <shebs@apple.com>
8114
8115         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
8116
8117 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
8118
8119         * recog.c: Formatting and comment typo fixes.
8120
8121         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
8122         version in single tree build.
8123         * configure: Regenerate.
8124
8125 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
8126
8127         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
8128         MODE arguments to gen_rtx and compare operand with const0_rtx.
8129
8130 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8131
8132         * system.h: Poison old unused target macros.
8133         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
8134         * config/stormy16/stormy16.c: Update references to obsolete macros.
8135         * config/stormy16/stormy16.h: Similarly.
8136         * config/stormy16/stormy16.md: Similarly.
8137         * config/cris/cris.h: Similarly.
8138
8139 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8140
8141         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
8142         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
8143         cpp_register_pragma): Update accordingly.
8144
8145 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8146
8147         * c-pragma.h (cpp_register_pragma_space): Remove.
8148         * cpplib.h (cpp_register_pragma_space): Remove.
8149         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
8150         (cpp_register_pragma_space): Remove.
8151         (cpp_register_pragma): Simplify using lookup_pragma_entry,
8152         add sanity checks.
8153         (do_pragma): Similarly.
8154         (_cpp_init_internal_pragmas): Don't register namespaces.
8155
8156         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
8157         Don't register namespaces.
8158         * cp/lex.c (init_cp_pragma): Similarly.
8159         * doc/tm.texi: Update.
8160
8161 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8162
8163         PR c/4157
8164         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
8165
8166 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
8167
8168         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
8169         add scheduling support.
8170         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
8171         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
8172         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
8173
8174
8175 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
8176
8177         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
8178         missing CONSTANT_P test in core GCC.
8179
8180 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8181
8182         * cppmain.c (struct printer): New member source.
8183         (scan_translation_unit): Fix spacing at start of lines.
8184         (cb_line_change): Update.
8185
8186         * gcc.dg/cpp/spacing2.c: New test.
8187
8188 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
8189
8190         * config/cris/arit.c: Use __builtin_labs, not abs.
8191
8192         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
8193
8194         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
8195         misplaced sprintf and fprintf argument.
8196
8197 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
8198
8199         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
8200         * configure.in, Makefile.in: Take out obsolete check-po logic.
8201         * configure, config.in: Regenerate.
8202
8203 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
8204
8205         * objc/objc-act.c (finish_objc): Correct precondition for emitting
8206         symtab declarations.
8207
8208 2001-10-12  Stan Shebs  <shebs@apple.com>
8209
8210         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
8211         declarations of arguments and local variables.
8212
8213 2001-10-12  Christopher Faylor  <cgf@redhat.com>
8214
8215         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
8216         ENDFILE_SPEC definition.
8217
8218 2001-10-12  Kazu Hirata  <kazu@hxi.com>
8219
8220         * gthr-dce.h: Fix comment formatting.
8221         * gthr-posix.h: Likewise.
8222         * gthr-single.h: Likewise.
8223         * gthr-solaris.h: Likewise.
8224         * gthr-vxworks.h: Likewise.
8225         * gthr-win32.h: Likewise.
8226
8227 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
8228
8229         * final.c (output_asm_insn): Make sure assembly dialects are
8230         terminated, not nested.  Output `|' and `}' characters if they
8231         don't appear inside assembly dialect selection.
8232         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
8233         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
8234         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
8235         strsetsi_rex_1): Add {} braces.
8236
8237 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
8238
8239         * toplev.c (compile_file): Ignore return value from yyparse.
8240         Always pop any nested binding levels after yyparse returns.
8241
8242 2001-10-11  Richard Henderson  <rth@redhat.com>
8243
8244         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
8245
8246 2001-10-11  Richard Henderson  <rth@redhat.com>
8247
8248         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
8249         fall back to add_AT_long_long for large CONST_INT.
8250
8251 2001-10-11  Richard Henderson  <rth@redhat.com>
8252
8253         * config/i386/i386.md (setcc splitters): Add four splitters to
8254         simplify compound compares that simplify_comparison can't handle.
8255
8256 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
8257
8258         * cpplex.c (digraph_spellings, token_spellings): Make static.
8259
8260 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8261
8262         * unroll.c (loop_iterations): Fixup last patch.
8263
8264 2001-10-11  Richard Henderson  <rth@redhat.com>
8265
8266         * rtl.h (REG_VTABLE_REF): New.
8267         * rtl.c (reg_note_name): Add it.
8268         * combine.c (distribute_notes): Handle it.
8269         * final.c (final_scan_insn): Handle it.
8270         * tree.def (VTABLE_REF): New.
8271         * expr.c (expand_expr): Handle it.
8272         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
8273         * output.h: Declare them.
8274
8275 2001-10-11  Richard Henderson  <rth@redhat.com>
8276
8277         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
8278         for a DECL_INITIAL.
8279
8280 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
8281
8282         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
8283         available in 64-bit mode.
8284
8285 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
8286
8287         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
8288         cris-*-linux* cases.
8289         * config/cris/cris-protos.h: New file.
8290         * config/cris/cris.c: New file.
8291         * config/cris/cris.h: New file.
8292         * config/cris/cris.md: New file.
8293         * config/cris/linux.h: New file.
8294         * config/cris/aout.h: New file.
8295         * config/cris/arit.c: New file.
8296         * config/cris/cris_abi_symbol.c: New file.
8297         * config/cris/mulsi3.asm: New file.
8298         * config/cris/t-aout: New file.
8299         * config/cris/t-cris: New file.
8300         * config/cris/t-elfmulti: New file.
8301         * config/cris/t-linux: New file.
8302         * doc/invoke.texi: Add CRIS options.
8303         * doc/install.texi (Specific): Add blurb for CRIS.
8304
8305 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
8306
8307         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
8308         before using it.
8309         * config/float/i32.h: Likewise.
8310         * config/float-i386.h: Likewise.
8311         * config/float-i64.h: Likewise.
8312         * config/float-m68k.h: Likewise.
8313         * config/float-sh.h: Likewise.
8314         * config/float-sparc.h: Likewise.
8315
8316 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
8317
8318         * doc/contrib.texi: Add note about CRIS port to my entry.
8319
8320 2001-10-11  Kazu Hirata  <kazu@hxi.com>
8321
8322         * basic-block.h: Fix formatting.
8323         * bitmap.h: Likewise.
8324         * cpplib.h: Likewise.
8325         * c-tree.h: Likewise.
8326         * diagnostic.h: Likewise.
8327         * flags.h: Likewise.
8328         * ggc.h: Likewise.
8329         * longlong.h: Likewise.
8330         * real.h: Likewise.
8331         * reload.h: Likewise.
8332         * rtl.h: Likewise.
8333         * tree.h: Likewise.
8334
8335 2001-10-10  Richard Henderson  <rth@redhat.com>
8336
8337         * c-parse.in (asm_operand): Allow named operands.
8338         * genconfig.c (max_recog_operands): Set to 29.
8339         * local-alloc.c (requires_inout): Skip multiple digits.
8340         * recog.c (asm_operand_ok): Likewise.
8341         (preprocess_constraints): Use strtoul for matching constraints.
8342         (constrain_operands): Likewise.
8343         * regmove.c (find_matches): Likewise.
8344         * reload.c (find_reloads): Likewise.
8345         * stmt.c (parse_output_constraint): Don't reject in-out
8346         constraint on operands > 9.  Reject '[' in constraint.
8347         (expand_asm_operands): Handle named operands.  Use strtoul
8348         for matching constraints.
8349         (check_operand_nalternatives): Split out from expand_asm_operands.
8350         (check_unique_operand_names): New.
8351         (resolve_operand_names, resolve_operand_name_1): New.
8352
8353         * doc/extend.texi (Extended Asm): Document named operands.
8354         * doc/md.texi (Simple Constraints): Document matching constraints
8355         on operands > 9.
8356
8357 2001-10-10  Richard Henderson  <rth@redhat.com>
8358
8359         * combine.c (try_combine): Handle a SEQUENCE of one insn.
8360
8361         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
8362         (jcc splitters): Add two splitters to simplify compound compares
8363         that simplify_comparison can't handle.
8364
8365 2001-10-10  Richard Henderson  <rth@redhat.com>
8366
8367         * langhooks.c: Include langhooks.h.
8368         * Makefile.in (langhooks.o): Depend on it.
8369
8370 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
8371
8372         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
8373         should not be considered as a no-op.
8374         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
8375
8376 2001-10-10  Stan Shebs  <shebs@apple.com>
8377
8378         * alias.c: Remove uses of "register" specifier in declarations
8379         of arguments and local variables.
8380         * c-common.c: Ditto.
8381         * c-convert.c: Ditto.
8382         * c-decl.c: Ditto.
8383         * c-format.c: Ditto.
8384         * c-semantics.c: Ditto.
8385         * c-typeck.c: Ditto.
8386         * caller-save.c: Ditto.
8387         * calls.c: Ditto.
8388         * cfg.c: Ditto.
8389         * cfgbuild.c: Ditto.
8390         * cfgrtl.c: Ditto.
8391         * collect2.c: Ditto.
8392         * combine.c: Ditto.
8393         * convert.c: Ditto.
8394         * cppexp.c: Ditto.
8395         * cppfiles.c: Ditto.
8396         * cse.c: Ditto.
8397         * dbxout.c: Ditto.
8398         * defaults.h: Ditto.
8399         * df.c: Ditto.
8400         * dwarf2out.c: Ditto.
8401         * dwarfout.c: Ditto.
8402         * emit-rtl.c: Ditto.
8403         * explow.c: Ditto.
8404         * expmed.c: Ditto.
8405         * expr.c: Ditto.
8406         * final.c: Ditto.
8407         * fix-header.c: Ditto.
8408         * floatlib.c: Ditto.
8409         * flow.c: Ditto.
8410         * fold-const.c: Ditto.
8411         * function.c: Ditto.
8412         * gcc.c: Ditto.
8413         * gcse.c: Ditto.
8414         * gen-protos.c: Ditto.
8415         * genattrtab.c: Ditto.
8416         * gencheck.c: Ditto.
8417         * genconfig.c: Ditto.
8418         * genemit.c: Ditto.
8419         * genextract.c: Ditto.
8420         * genflags.c: Ditto.
8421         * gengenrtl.c: Ditto.
8422         * genoutput.c: Ditto.
8423         * genpeep.c: Ditto.
8424         * genrecog.c: Ditto.
8425         * gensupport.c: Ditto.
8426         * global.c: Ditto.
8427         * gmon.c: Ditto.
8428         * graph.c: Ditto.
8429         * haifa-sched.c: Ditto.
8430         * hard-reg-set.h: Ditto.
8431         * hash.c: Ditto.
8432         * integrate.c: Ditto.
8433         * jump.c: Ditto.
8434         * lists.c: Ditto.
8435         * local-alloc.c: Ditto.
8436         * loop.c: Ditto.
8437         * mips-tdump.c: Ditto.
8438         * mips-tfile.c: Ditto.
8439         * optabs.c: Ditto.
8440         * prefix.c: Ditto.
8441         * print-rtl.c: Ditto.
8442         * read-rtl.c: Ditto.
8443         * real.c: Ditto.
8444         * recog.c: Ditto.
8445         * reg-stack.c: Ditto.
8446         * regclass.c: Ditto.
8447         * regmove.c: Ditto.
8448         * reload.c: Ditto.
8449         * reload1.c: Ditto.
8450         * reorg.c: Ditto.
8451         * resource.c: Ditto.
8452         * rtl.c: Ditto.
8453         * rtlanal.c: Ditto.
8454         * scan.c: Ditto.
8455         * sched-deps.c: Ditto.
8456         * sched-rgn.c: Ditto.
8457         * sdbout.c: Ditto.
8458         * simplify-rtx.c: Ditto.
8459         * stmt.c: Ditto.
8460         * stor-layout.c: Ditto.
8461         * toplev.c: Ditto.
8462         * tradcif.y: Ditto.
8463         * tradcpp.c: Ditto.
8464         * tree.c: Ditto.
8465         * unroll.c: Ditto.
8466         * varasm.c: Ditto.
8467         * xcoffout.c: Ditto.
8468
8469 2001-10-10  Richard Henderson  <rth@redhat.com>
8470
8471         * rtl.h (can_reverse_comparison_p): Remove.
8472
8473 2001-10-10  Christopher Faylor <cgf@redhat.com>
8474
8475         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
8476         used.
8477
8478 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8479
8480         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
8481         (Thanks to Chris Faylor for suggesting macro name).
8482         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
8483         WIN32 defines.
8484         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
8485         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
8486         (MATH_LIBRARY): Undef before definition.
8487         (OUTPUT_QUOTED_STRING): Likewise.
8488         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
8489
8490 2001-10-10  Richard Henderson  <rth@redhat.com>
8491
8492         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
8493         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
8494         a tristate comparison value.
8495         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
8496
8497 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8498
8499         PR c++/4512
8500         * unroll.c (loop_iterations): Ignore insns generated by loop
8501         unrolling.
8502
8503         * config.gcc (mips*-*-gnu*): Delete support.
8504         * config/mips/gnu.h: Remove.
8505
8506 2001-10-10  Kazu Hirata  <kazu@hxi.com>
8507
8508         * calls.c: Fix formatting.
8509         * c-decl.c: Likewise.
8510         * cfgcleanup.c: Likewise.
8511         * combine.c: Likewise.
8512         * cppfiles.c: Likewise.
8513         * cpplib.c: Likewise.
8514         * cppmacro.c: Likewise.
8515         * crtstuff.c: Likewise.
8516         * cse.c: Likewise.
8517         * dwarf2out.c: Likewise.
8518         * expmed.c: Likewise.
8519         * expr.c: Likewise.
8520         * fold-const.c: Likewise.
8521         * function.c: Likewise.
8522         * gcse.c: Likewise.
8523         * genattrtab.c: Likewise.
8524         * ggc-page.c: Likewise.
8525         * integrate.c: Likewise.
8526         * libgcc2.c: Likewise.
8527         * loop.c: Likewise.
8528         * optabs.c: Likewise.
8529         * profile.c: Likewise.
8530         * protoize.c: Likewise.
8531         * real.c: Likewise.
8532         * recog.c: Likewise.
8533         * reload1.c: Likewise.
8534         * reload.c: Likewise.
8535         * reorg.c: Likewise.
8536         * resource.c: Likewise.
8537         * sched-rgn.c: Likewise.
8538         * sdbout.c: Likewise.
8539         * stmt.c: Likewise.
8540         * toplev.c: Likewise.
8541         * varasm.c: Likewise.
8542
8543 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
8544
8545         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
8546         * Makefile.in (langhooks.o): Add dependencies.
8547
8548 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
8549
8550         * rs6000.c (rs6000_emit_load_toc_table): Don't
8551         strdup the toc label.
8552         (create_TOC_reference): Likewise.
8553
8554 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8555
8556         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
8557         version default.
8558
8559 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8560
8561         * config/i386/i386.c (ix86_attribute_table): Correct
8562         min_len, max_len fields for dllimport, dllexport and shared.
8563
8564 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
8565
8566         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
8567         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
8568         Consistently use "nonzero" instead of "non-zero".
8569
8570 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8571
8572         * acconfig.h: Fix comment formatting.
8573         * c-dump.h: Likewise.
8574         * c-tree.h: Likewise.
8575         * conditions.h: Likewise.
8576         * expr.h: Likewise.
8577         * function.h: Likewise.
8578         * gthr.h: Likewise.
8579         * hwint.h: Likewise.
8580         * integrate.h: Likewise.
8581         * intl.h: Likewise.
8582         * loop.h: Likewise.
8583         * optabs.h: Likewise.
8584
8585 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8586
8587         * c-common.h: Fix comment formatting.
8588         * c-dump.c: Likewise.
8589         * cfg.c: Likewise.
8590         * diagnostic.h: Likewise.
8591         * except.c: Likewise.
8592         * gcc.h: Likewise.
8593         * gcov-io.h: Likewise.
8594         * genattrtab.c: Likewise.
8595         * output.h: Likewise.
8596         * predict.h: Likewise.
8597         * reload1.c: Likewise.
8598         * reload.h: Likewise.
8599         * resource.h: Likewise.
8600         * scan.h: Likewise.
8601         * system.h: Likewise.
8602         * tree.h: Likewise.
8603         * tree-inline.c: Likewise.
8604         * tsystem.h: Likewise.
8605         * varasm.c: Likewise.
8606         * xcoffout.h: Likewise.
8607
8608 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
8609
8610         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
8611
8612 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
8613
8614         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
8615         config/i386/i386elf.h, config/i386/netbsd-elf.h,
8616         config/i386/netware.h, config/mcore/gfloat.h,
8617         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
8618         config/netware.h, gccbug.in: Update FSF address.
8619
8620 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8621
8622         * c-common.c: Fix comment typos.
8623         * cfgrtl.c: Likewise.
8624         * collect2.c: Likewise.
8625         * cpplex.c: Likewise.
8626         * doloop.c: Likewise.
8627         * dwarf2out.c: Likewise.
8628         * dwarfout.c: Likewise.
8629         * expr.c: Likewise.
8630         * fold-const.c: Likewise.
8631         * gcc.c: Likewise.
8632         * gcov.c: Likewise.
8633         * gcse.c: Likewise.
8634         * global.c: Likewise.
8635         * ifcvt.c: Likewise.
8636         * loop.c: Likewise.
8637         * optabs.c: Likewise.
8638         * protoize.c: Likewise.
8639         * regclass.c: Likewise.
8640         * reorg.c: Likewise.
8641         * rtl.h: Likewise.
8642         * stmt.c: Likewise.
8643         * tree.h: Likewise.
8644         * doc/cpp.texi: Likewise.
8645         * doc/c-tree.texi: Likewise.
8646         * doc/extend.texi: Likewise.
8647         * doc/invoke.texi: Likewise.
8648         * doc/objc.texi: Likewise.
8649         * doc/tm.texi: Likewise.
8650
8651 2001-10-08  Richard Henderson  <rth@redhat.com>
8652
8653         * varasm.c (set_named_section_flags): Initialize "declared".
8654
8655 2001-10-08  Robert Lipe  <robertlipe@usa.net>
8656
8657         * varasm.c (struct in_named_entry): Add declared.
8658         (named_section_first_declaration): New function.
8659         (default_elf_asm_named_section): Use it.
8660         * output.h (named_section_first_declaration): New.
8661
8662 2001-10-08  Richard Henderson  <rth@redhat.com>
8663
8664         * i386.md (movsi_xor): Export.
8665         (setcc peep2): Use it when available; add an alternative to
8666         match zero_extendhisi2_and.
8667
8668 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8669
8670         * romp-protos.h (romp_initialize_trampoline): New function.
8671         * romp.c (romp_initialize_trampoline): Likewise.
8672         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
8673         romp_initialize_trampoline.
8674
8675 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8676
8677         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
8678         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8679         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8680         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8681
8682 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8683
8684         * unroll.c (loop_iterations): Extend check for multiple back edges.
8685
8686 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
8687
8688         * langhooks.h: New file.
8689         * Makefile.in (OBJS): Added langhooks.o.
8690         (c-lang.o): Depend on langhooks.h.
8691         (c-common.o): Don't depend on tree-inline.h.
8692         (tree-inline.o): Depend on toplev.h.
8693         (langhooks.o): New rule.
8694         * c-common.c: Don't include tree-inline.h.
8695         (c_mark_lang_decl): Mark argument c as unused.
8696         (c_common_lang_init): Don't initialize hooks here.
8697         * c-lang.c: Include langhooks.h, then override some macros.
8698         (lang_hooks): Initialize with macros in langhooks.h.
8699         (c_init): Don't initialize hooks here.
8700         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
8701         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
8702         * tree-inline.c: Include toplev.h.  Don't define hook variables.
8703         * tree-inline.h: Don't define hook types nor declare hook
8704         variables.  Move macros to...
8705         * langhooks.c: ... new file, as functions.  Adjust all callers.
8706
8707 2001-10-08  Jeffrey A Law  <law@cygnus.com>
8708
8709         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
8710         purge_mem_unchanging_flag on all instructions, not just on those
8711         before NOTE_INSN_FUNCTION_BEG.
8712
8713 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8714
8715         * cppmacro.c (_cpp_create_definition): Leave comments off.
8716
8717         * doc/cpp.texi: Update.
8718
8719 2001-10-08  DJ Delorie  <dj@redhat.com>
8720
8721         * c-decl.c (grokfield): Make sure the only unnamed fields
8722         we're allowing are either structs or unions.
8723         * doc/extend.texi: Add documentation for the unnamed field
8724         extension.
8725
8726 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
8727
8728         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
8729         * configure.in: Use it.
8730         * configure: Regenerated.
8731         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
8732         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
8733
8734 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8735
8736         * cppfiles.c (open_file): Don't mark zero-length files
8737         never-reread here.  Don't output diagnostics here either.
8738         (stack_include_file): Mark them never-reread here.
8739         (_cpp_read_file): Update.
8740
8741 2001-10-08  Richard Henderson  <rth@redhat.com>
8742
8743         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8744
8745 2001-10-08  Richard Henderson  <rth@redhat.com>
8746
8747         * expr.c (store_expr): When converting a CONST_INT for storage
8748         in a SUBREG, convert it to both SUBREG modes before stripping
8749         the SUBREG.
8750
8751 2001-10-08  Richard Henderson  <rth@redhat.com>
8752
8753         * varasm.c (restore_varasm_status): New.
8754         * function.h: Declare it.
8755         * function.c (pop_function_context_from): Call it.
8756
8757 2001-10-08  Richard Henderson  <rth@redhat.com>
8758
8759         * c-common.h (struct c_lang_decl): Add declared_inline.
8760         * c-tree.h (DECL_DECLARED_INLINE_P): New.
8761         * c-lang.c (c_disregard_inline_limits): Use it.
8762         * c-decl.c (duplicate_decls): Likewise.
8763         (pushdecl, redeclaration_error_message): Likewise.
8764         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
8765         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
8766         Set DECL_INLINE if -finline-functions.
8767         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
8768
8769 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8770
8771         * cppmacro.c (funlike_invocation_p): Move some logic to caller
8772         in enter_macro_context.  Create a padding token in its own context
8773         if necessary when the search for '(' fails.
8774         (enter_macro_context): Update.
8775
8776 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
8777
8778         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
8779         genmultilib, toplev.c: Fix spelling errors of "separate" as
8780         "seperate", and corresponding spelling errors of related words.
8781
8782 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8783
8784         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
8785         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
8786         Likewise.
8787         * c-dump.c (dump_option_value_info): Likewise.
8788         * c-format.c (format_length_info, format_char_info,
8789         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
8790         * collect2.c (names): Likewise.
8791         * cppdefault.h (default_include): Likewise.
8792         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
8793         * flow.c (life_analysis): Likewise.
8794         * gcc.c (dir_separator_str, modify_target, option_map,
8795         target_option_translations, spec_list_1, extra_specs_1,
8796         init_spec): Likewise.
8797         * gcov.c (gcov_version_string): Likewise.
8798         * genattr.c (write_units): Likewise.
8799         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
8800         * gengenrtl.c (rtx_definition, defs): Likewise.
8801         * genrecog.c (pred_table): Likewise.
8802         * global.c (global_alloc): Likewise.
8803         * lcm.c (optimize_mode_switching): Likewise.
8804         * local-alloc.c (find_free_reg): Likewise.
8805         * params.h (param_info): Likewise.
8806         * predict.c (predictor_info): Likewise.
8807         * protoize.c (unexpansion_struct): Likewise.
8808         * real.c (bmask): Likewise.
8809         * recog.h (insn_operand_data, insn_data): Likewise.
8810         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
8811         * stmt.c (expand_nl_goto_receiver): Likewise.
8812         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
8813         target_switches, target_options): Likewise.
8814         * tradcif.y (token, tokentab2, yylex): Likewise.
8815         * tree.h (attribute_spec): Likewise.
8816
8817         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
8818         Likewise.
8819         * arc.c (arc_output_function_epilogue): Likewise.
8820         * arm.c (processors, all_cores, all_architectures,
8821         arm_override_options, isr_attribute_arg, isr_attribute_args,
8822         arm_isr_value): Likewise.
8823         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
8824         Likewise.
8825         * c4x.c (c4x_int_reglist): Likewise.
8826         * d30v.c (override_options): Likewise.
8827         * h8300.c (shift_insn): Likewise.
8828         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
8829         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
8830         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
8831         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
8832         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
8833         * i386.h (processor_costs, ix86_cost): Likewise.
8834         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
8835         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
8836         * m68k.c (codes_68881, codes_FPA): Likewise.
8837         * m88k.c (mode_from_align, max_from_align, all_from_align,
8838         best_from_align, m_options): Likewise.
8839         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
8840         * mcore.c (mode_from_align): Likewise.
8841         * mips/elf64.h (UNIQUE_SECTION): Likewise.
8842         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
8843         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
8844         * mips.h (mips_regno_to_class): Likewise.
8845         * ns32k.c (scales): Likewise.
8846         * pa.c (import_string, magic_milli): Likewise.
8847         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
8848         * sparc.c (leaf_reg_remap, sparc_override_options,
8849         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
8850         Likewise.
8851         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
8852
8853 2001-10-07  Dale Johannesen  <dalej@apple.com>
8854
8855         * reload1.c (reload_reg_free_p): Teach register interference
8856         checking that multiple output reloads are emitted in
8857         reverse order.
8858         reload1.c (reload_reg_reaches_end_p):  Ditto.
8859         reload1.c (reloads_conflict):  Ditto.
8860
8861 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
8862
8863         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
8864         NULL_TREE inside @code.
8865
8866 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
8867
8868         * doc/gcc.texi: Document consistent style of "32-bit",
8869         "Objective-C", and "@code{NULL}".
8870
8871 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
8872
8873         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
8874         (cpp_token_len, cpp_spell_token, cpp_output_token,
8875         _cpp_equiv_tokens): Handle it.
8876         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
8877         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
8878         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
8879         error messages.
8880
8881 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8882
8883         * gcc.c (default_compilers): Remove .ada.
8884
8885 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8886
8887         * doc/cppinternals.texi: Update.
8888
8889 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
8890
8891         * gcc.c (main): Set this_file_error if the appropriate
8892         compiler for a language has not been installed.
8893
8894 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
8895
8896         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
8897
8898 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8899
8900         * gccbug.in (CATEGORIES): Add ada.
8901
8902 2001-10-05  Catherine Moore  <clm@redhat.com>
8903
8904         * config/stormy16/stormy-abi:  Document abi changes.
8905         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
8906         (ICALL_REGS): New register class.
8907         (NUM_ARGUMENT_REGISTERS): Now 6.
8908         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
8909         in registers.
8910         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
8911         * config/stormy16.md (call_internal, call_value_internal,
8912         indirect_jump): Use new 'z' constraint.
8913
8914 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8915
8916         * doc/cppinternals.texi: Update.
8917
8918 2001-10-05  Richard Henderson  <rth@redhat.com>
8919
8920         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
8921         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
8922         the gas section-name-as-label feature.
8923
8924 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8925
8926         * doc/cppinternals.texi: Update.
8927
8928 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8929
8930         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
8931         to ensure valid SImode constants.
8932
8933 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
8934
8935         * Makefile.in (c-decl.o): Depend on tree-inline.h.
8936         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
8937         * c-decl.c: Include tree-inline.h.
8938         (c_expand_body): Call optimize_inline_calls. Determine whether
8939         a function is inlinable upfront, and only clear
8940         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
8941         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
8942         (c_disregard_inline_limits): New function.
8943         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
8944         (c_post_options): Enable tree inlining if inlining is enabled.
8945         Don't inline trees when instrumenting functions.
8946         (c_init): Initialize lang_disregard_inline_limits and
8947         lang_cannot_inline_tree_fn.
8948         * tree-inline.c (initialize_inlined_parameters): Handle calls
8949         with fewer arguments than declared parameters, and fewer
8950         parameters than passed arguments.  Don't assume value is a
8951         DECL.
8952         (declare_return_variable): Convert return value back to the
8953         original type, if it was promoted.
8954         (tree_inlinable_function_p): New function.
8955         (inlinable_function_p): Don't look at DECL_INLINE if we're
8956         inlining all functions.  Make it work with a NULL id.
8957         Re-check DECL_UNINLINABLE after language-specific checks.
8958         * tree-inline.h (tree_inlinable_function_p): Declare it.
8959         * integrate.c (save_for_inline): Don't bother to prepare argvec
8960         when not inlining.
8961         * cse.c (check_for_label_ref): Don't check deleted labels.
8962
8963         * Makefile.in (tree-inline.o): Depend on newly-included headers.
8964         * tree-inline.c: Include headers needed for the functions moved in.
8965         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
8966         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
8967         (copy_body, initialize_inlined_parameters): Likewise.
8968         (declare_return_variable, inlinable_function_p): Likewise.
8969         (expand_call_inline, expand_calls_inline): Likewise.
8970         (optimize_inline_calls, clone_body): Likewise.
8971         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
8972         (copy_tree_r, remap_save_expr): Likewise.
8973
8974 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
8975
8976         * Makefile.in (OBJS): Added tree-inline.o.
8977         (c-common.o): Depend on tree-inline.h.
8978         (tree-inline.o): New target.
8979         * c-common.c: Include tree-inline.h.
8980         (c_mark_lang_decl): Don't mark saved_tree.
8981         (c_common_lang_init): Set lang_anon_aggr_type_p.
8982         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
8983         (struct c_lang_decl): Moved saved_tree to tree_decl.
8984         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
8985         * integrate.h (function_attribute_inlinable_p): Declare it.
8986         * integrate.c (function_attribute_inlinable_p): Export it.
8987         * tree-inline.c: New file.  Define variables declared in...
8988         * tree-inline.h: New file.  Declare functions to be moved to
8989         tree-inline.c.  Define macros and declare types and hooks for
8990         language-specific tree inlining.
8991         (flag_inline_trees): Moved definition from cp/decl2.c.
8992         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
8993         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
8994         (struct tree_decl): Moved saved_tree from c_lang_decl and
8995         inlined_fns from C++'s lang_decl.
8996
8997 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
8998
8999         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
9000         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
9001
9002 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9003
9004         * doc/cppinternals.texi: Update.
9005
9006 2001-10-04  Eric Christopher  <echristo@redhat.com>
9007
9008         * config/mips/mips.c (init_cumulative_args): Remember to set
9009         cum->prototype.
9010         * config.gcc: Redo linux configuration. Add target_cpu_default
9011         of soft-float to all mipsisa32 combinations and tx39.
9012         * config/mips/linux.h: Remove include of mips.h.
9013
9014 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
9015
9016         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
9017         HOST_LDFLAGS and HOST_CPPFLAGS.
9018
9019 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
9020
9021         * c-parse.in (objc_inherit_code, objc_pq_context,
9022         objc_public_flag): Make static.
9023         (objc_interface_context, objc_implementation_context,
9024         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
9025         global tree array in objc/objc-act.[ch].
9026         (methoddef): Remove unnecessary code.
9027
9028         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
9029         Hoist struct definitions to objc-act.h.
9030         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
9031         cat_count): Place declaration in objc-act.h.
9032         (objc_tree_index): Move enumeration to objc-act.h.
9033         (objc_global_trees): Place declaration and macro accessors in
9034         objc-act.h.
9035         (implementation_context): Remove duplicate; use
9036         objc_implementation_context instead:
9037         (method_context): Remove duplicate; use objc_method_context
9038         instead.
9039         (objc_ellipsis_node, objc_method_prototype_template,
9040         implemented_classes, function_type): Move global vars to
9041         objc_global_trees.
9042         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
9043         (build_message_expr): Move actual construction of ObjC message
9044         send nodes to finish_message_expr.
9045         (finish_message_expr): New routine, contains code formerly in
9046         build_message_expr.
9047         * objc/objc-act.h (finish_message_expr): New prototype.
9048         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
9049         declarations; these vars are now part of objc_global_trees.
9050         (objc_tree_index, objc_global_trees): Move definitions from
9051         objc-act.c.
9052         * objc/objc-tree.def: Update copyright info.
9053
9054 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
9055
9056         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
9057         op is NULL.
9058         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
9059         only if TARGET_ARCH64.
9060
9061 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
9062
9063         * doc/extend.texi: Fix some problems with previous checkin.
9064         * doc/invoke.texi: Likewise.
9065
9066 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9067
9068         * cpphash.h: Update comments.
9069         (cpp_context): Update.
9070         (spec_nodes): Remove n__Pragma.
9071         * cppinit.c (cpp_create_reader): Update.
9072         (builtin_array): Add _Pragma.
9073         * cpplib.h: Update comments.
9074         (NODE_DISABLED, BT_PRAGMA): New.
9075         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
9076         * cppmacro.c (struct cpp_macro): Remove disabled.
9077         (builtin_macro): Return int, handle _Pragma, push the new token
9078         on the context stack.
9079         (funlike_invocation_p): Unconstify, update.
9080         (enter_macro_context): Handle builtins here.
9081         (replace_args, push_token_context, push_ptoken_context):
9082         Update for prototype changes.
9083         (_cpp_pop_context): Update.
9084         (cpp_get_token): Don't handle buitins, nor _Pragma here.
9085         (cpp_sys_macro_p): Update.
9086         (_cpp_free_definition): Clear disabled flag.
9087         (_cpp_create_definition): Upate.
9088         * cppmain.c: Update comments.
9089
9090 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
9091                                 Andreas Jaeger <aj@suse.de>,
9092                                 Jan Hubicka    <jh@suse.cz>
9093
9094         * doc/invoke.texi (i386 Options): Document x86-64 options.
9095         (i386 and x86-64 Options): Rename i386 options section.
9096
9097         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
9098         (TARGET_SWITCHES): Add -munwind-info.
9099         (MASK_NO_UNWIND_INFO): New.
9100         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
9101         biarch compilation.
9102         (ASM_OUTPUT_DOUBLE_INT): New.
9103
9104         * config/i386/linux64.h: New spec file for Linux x86-64 support.
9105         * config.gcc: Fix tm_file settings for x86-64.
9106         * config/i386/x86-64.h: New file with OS independent x86-64
9107         definitions.
9108         * config/i386/biarch64.h: New file used to configure compiler
9109         to biarch/64bit compilation.
9110
9111         * config/i386/i386.c: (override_options): Set flags default
9112         for 64bit compilation.
9113
9114 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9115
9116         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
9117         (ix86_expand_int_movcc): Optimize DImode conditional moves with
9118         constants on x86_64.
9119         (ix86_attr_length_immediate_default): Support MODE_DI.
9120         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
9121         condition.
9122         (indirect_jump, tablejump): Turn into expander.
9123
9124 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9125
9126         * c-common.c (c_format_attribute_table): Make format and
9127         format_arg attributes apply to function types rather than to
9128         decls.
9129         (is_valid_printf_arglist): Construct an attribute list and pass
9130         that to check_function_format rather than a name.
9131         * c-common.h (check_function_format): Adjust prototype.
9132         * c-decl.c (duplicate_decls): Preserve attributes from type of
9133         built-in decl when allowing for harmless conflict in types.
9134         * c-format.c (record_function_format,
9135         record_international_format, function_format_list,
9136         international_format_info, international_format_list): Remove.
9137         (function_format_info): Remove next, name and assembler_name.
9138         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
9139         (decode_format_attr): New.
9140         (handle_format_attribute): Handle receiving a type rather than a
9141         decl.  Call decode_format_attr.  Store format information in a
9142         function_format_info.
9143         (handle_format_arg_attribute): Correct comment.  Handle receiving
9144         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
9145         arg_num.
9146         (check_format_info_recurse, check_format_info_main): Take argument
9147         numbers as unsigned HOST_WIDE_INT.
9148         (check_function_format): Take a list of attributes from the
9149         function type rather than a name or assembler name.  Check for
9150         format attributes in that list and the attributes on the type of
9151         the current function rather than looking through
9152         function_format_list.
9153         (check_format_info): Use unsigned HOST_WIDE_INT for argument
9154         numbers.
9155         (check_format_info_recurse): Take format_arg attributes from the
9156         type of the function calls rather than using
9157         international_format_list.  Allow for multiple format_arg
9158         attributes.
9159         * c-typeck.c (build_function_call): Pass type attributes to
9160         check_function_format rather than name or assembler name.  Don't
9161         require there to be a name or assembler name to check formats.
9162
9163 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9164
9165         * attribs.c (decl_attributes): Possibly call
9166         insert_default_attributes to insert default attributes on
9167         functions in a lazy manner.
9168         * builtin-attrs.def: New file; define the default format and
9169         format_arg attributes.
9170         * c-common.c (c_format_attribute_table): Move to earlier in the
9171         file.
9172         (c_common_nodes_and_builtins): Initialize format_attribute_table.
9173         (enum built_in_attribute, built_in_attributes,
9174         c_attrs_initialized, c_init_attributes,
9175         c_common_insert_default_attributes): New.
9176         (c_common_lang_init): Don't initialize format_attribute_table.  Do
9177         call c_init_attributes.
9178         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
9179         * c-common.h (init_function_format_info): Don't declare.
9180         (c_common_insert_default_attributes): Declare.
9181         * c-decl.c (implicitly_declare, builtin_function): Call
9182         decl_attributes.
9183         (init_decl_processing): Don't call init_function_format_info.
9184         (insert_default_attributes): New.
9185         * c-format.c (handle_format_attribute,
9186         handle_format_arg_attribute): Be quiet about inappropriate
9187         declaration when applying default attributes.
9188         (init_function_format_info): Remove.
9189         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
9190         (insert_default_attributes): Declare.
9191
9192 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9193
9194         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
9195
9196 2001-10-01  Jim Wilson  <wilson@redhat.com>
9197
9198         * sched-deps.c (add_dependence): When elide conditional dependence,
9199         check that insn doesn't modify cond2.
9200
9201 2001-10-01  Dale Johannesen  <dalej@apple.com>
9202
9203         * config/rs6000/rs6000.h (enum processor_type): Add support
9204         for 7400 (G4) and 7450.
9205         (RTX_COSTS): Ditto.
9206         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
9207         (rs6000_issue_rate): Ditto.
9208         (rs6000_adjust_cost): Fix cycle counts for compares.
9209         (debug_stack_info):  Fix an obvious typo.
9210         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
9211         * doc/invoke.texi: Document.
9212         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
9213         for Darwin.
9214         (PROCESSOR_DEFAULT): Ditto.
9215
9216 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
9217
9218         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
9219         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
9220         later recursive make invocation.
9221
9222 2001-10-01  Hans Boehm  <boehm@acm.org>
9223
9224         * optabs.c (emit_libcall_block): When using non-call exceptions,
9225         don't add REG_LIBCALL reg notes to trapping calls.
9226
9227 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
9228
9229         * flow.c (propagate_block_delete_libcall): Remove unused first arg
9230         (propagate_one_insn):  Update for above change
9231
9232 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
9233
9234         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
9235         _Unwind_GetTextRelBase): Argument is unused.
9236
9237 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9238
9239         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
9240         Loop through NOPs, placeholders, and components.
9241         Don't go through NOPs if change mode.
9242         (record_alias_subset): Do nothing if SUBSET and SET are the same.
9243         * emit-rtl.c (set_mem_alias_set): Enable check.
9244         * expr.c (find_placeholder): New function.
9245         (expand_expr, case PLACEHOLDER_EXPR): Use it.
9246         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
9247         to modify it and avoid unneeded copies.
9248         * expr.h (expand_expr): Always define.
9249         (find_placeholder): New declaration.
9250
9251 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9252
9253         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
9254         operand 2 is the stack pointer.
9255         ("addr-peephole"): Fix address computation peephole when operand 2
9256         is the stack pointer.
9257
9258 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9259
9260         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
9261         (ix86_setup_incoming_varargs): Likewise.
9262
9263 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
9264
9265         * stor-layout.c (layout_type): Don't complain about too-large
9266         array here.
9267
9268 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9269
9270         * function.c (keep_stack_depressed): Don't use delete_insn.
9271
9272         * expr.h (set_mem_alias_set): Move decl to here.
9273         * rtl.h (mem_attrs): New typedef and struct.
9274         (union rtunion_def): Add field for mem_attrs.
9275         (X0MEMATTR, MEM_ATTRS): New macros.
9276         (MEM_ALIAS_SET): Use MEM_ATTRS.
9277         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
9278         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
9279         (set_mem_alias_set): Delete decl from here.
9280
9281         * alias.c (set_mem_alias_set): Delete from here.
9282         * emit-rtl.c (mem_attrs_htab): New variable.
9283         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
9284         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
9285         (mem_attrs_mark, get_mem_attrs): Likewise.
9286         (gen_rtx_MEM): Clear MEM_ATTRS.
9287         (set_mem_attributes): Move to here.
9288         (set_mem_alias_set): Likewise, and call get_mem_attrs.
9289         (init_emit_once): const_int_htab now deletable htab.
9290         Initialize mem_attrs_htab.
9291         * explow.c (set_mem_attributes): Delete from here.
9292         * function.c (put_var_into_stack): Clear MEM_ATTRS.
9293         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
9294         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
9295         * reload1.c (reload): Rework changing REG to MEM.
9296
9297 2001-09-30  H.J. Lu <hjl@gnu.org>
9298
9299         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
9300         * config.in: Rebuild.
9301
9302 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9303
9304         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
9305         ("tsthi_1"): Avoid allocation in register y.
9306         ("*movqi_68hc12"): Reorganize and fix constraints.
9307         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
9308         ("addqi3"): Likewise.
9309         ("addhi3"): Fix constraints.
9310         ("*logicalhi3_zexthi"): Disparage soft registers.
9311
9312 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9313
9314         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
9315         to tmp reg.
9316
9317 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9318
9319         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
9320         that we use setjmp/longjmp exceptions.
9321
9322 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
9323
9324         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
9325         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
9326         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
9327         _cpp_pool_alloc, _cpp_next_chunk): Remove.
9328         (_cpp_extend_buff, BUFF_ROOM): Update.
9329         (_cpp_append_extend_buff): New.
9330         (struct cpp_reader): Remove macro_pool, add a_buff.
9331         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
9332         macro_pool.
9333         (cpp_destroy): Free a_buff instead of macro_pool.
9334         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
9335         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
9336         _cpp_pool_alloc, ): Remove.
9337         (parse_number, parse_string): Update use of _cpp_extend_buff.
9338         (_cpp_extend_buff): Update.
9339         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
9340         * cpplib.c (glue_header_name, parse_answer):
9341         Update use of _cpp_extend_buff.
9342         (cpp_register_pragma, cpp_register_pragma_space): Use
9343         _cpp_aligned_alloc.
9344         (do_assert, do_unassert): Check for EOL, update.
9345         * cppmacro.c (stringify_arg, collect_args): Update to use
9346         _cpp_extend_buff and _cpp_append_extend_buff.
9347         (save_parameter, parse_params, alloc_expansion_token,
9348         _cpp_create_definition): Rework memory management.
9349
9350 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
9351
9352         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
9353         update md_exec_prefix.
9354         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
9355         to string constant.
9356
9357 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
9358
9359         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
9360         (SELECT_CC_MODE): Use s390_select_ccmode.
9361         * config/s390/s390-protos.h (s390_select_ccmode): Add.
9362         * config/s390/s390.c (s390_select_ccmode): New.
9363         (s390_match_ccmode): Add CCLmode.
9364         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
9365         (output_branch_condition, output_inverse_branch_condition): Removed.
9366         (print_operand): Use s390_branch_condition_mnemonic.
9367         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
9368         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
9369         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
9370
9371         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
9372         when converting conditional branches to far branches.
9373         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
9374         cmpint_di): Use CCSmode instead of CCUmode.
9375
9376         * config/s390/s390.c (legitimate_la_operand_p): New.
9377         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
9378         * config/s390/s390.md (movsi): Convert load address patterns to
9379         arithmetic operations when necessary.
9380         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
9381         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
9382         (*do_la_reg_0): Don't use before reload.
9383
9384         * config/s390/s390.c (legitimize_address): Make more efficient
9385         use of two-register addressing mode.
9386
9387         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
9388         with -mno-backchain in some corner cases.
9389
9390         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
9391
9392 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
9393
9394         * reload.c (find_reloads): Mark new USE insns with QImode.
9395         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
9396         find_reloads_subreg_address): Likewise.
9397         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
9398         encountered.
9399         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
9400         CLOBBERs.
9401         (reload): Make sure there are no USEs with mode other than
9402         VOIDmode.  At the end, remove those marked with QImode.
9403
9404 2001-09-29  Per Bothner  <per@bothner.com>
9405
9406         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
9407         * Makefile.in (includedir):  Rename to local_includedir.
9408         (includedir):  Define as $(prefix)/include.
9409         * config.in (PREFIX_INCLUDE_DIR):  New variable.
9410         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
9411
9412 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
9413
9414         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
9415         storehps builtins.
9416         * doc/extend.texi (Vector Extensions): New node.
9417         * doc/invoke.texi (Machine Dependent Options): Add documentation for
9418         i386 -mmmx, -msse, -m3dnow.
9419
9420 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9421
9422         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
9423
9424 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
9425
9426         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
9427
9428         * doc/invoke.texi (Optimize Options): Delete spurious @table.
9429
9430 2001-09-28  Richard Henderson  <rth@redhat.com>
9431
9432         * varasm.c (assemble_integer): Bound alignment check by
9433         BIGGEST_ALIGNMENT.
9434
9435         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
9436
9437 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9438
9439         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
9440
9441 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
9442
9443         Mostly from Graham Stott  <grahams@redhat.com>
9444         * c-common.c (type_for_mode): Add support for V2SFmode.
9445         * tree.c (build_common_tree_nodes_2): Likewise.
9446         * tree.h (enum tree_index, global_trees): Likewise.
9447         * config/i386/i386.c (x86_3dnow_a): New variable.
9448         (override_options): Support 3Dnow extensions.
9449         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
9450         Athlon's version of 3Dnow.
9451         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
9452         (ix86_expand_builtin): Handle them.
9453         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
9454         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
9455         TARGET_3DNOW_A): New macros.
9456         (TARGET_SWITCHES): Add 3Dnow switches.
9457         (VALID_MMX_REG_MODE_3DNOW): New macro.
9458         (VECTOR_MODE_SUPPORTED_P): Use it.
9459         (enum ix86_builtins): Add entries for 3Dnow builtins.
9460         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
9461         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
9462         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
9463         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
9464         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
9465         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
9466         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
9467         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
9468         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
9469         sfence_insn, prefetch): Make these available if TARGET_SSE or
9470         TARGET_3DNOW_A.
9471
9472 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
9473
9474         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
9475         ix86_va_start, ix86_build_va_list): Declare.
9476         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
9477         ix86_va_start, ix86_build_va_list): New global functions.
9478         * i386.md (sse_prologue_save_insn): New insn.
9479         (sse_prologue_save): New expander.
9480         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
9481         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
9482
9483 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9484
9485         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
9486         Use size_t everywhere, make definitions consistent with
9487         prototypes.
9488
9489 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
9490
9491         * gcse.c (replace_store_insn): Use delete_insn.
9492         * loop.c (move_movables): Likewise; avoid delete_insn
9493         from clobbering notes moved elsewhere.
9494         (check_dbra_loop): Use delete_insn.
9495         * ssa.c (convert_from_ssa): Likewise.
9496         * cse.c (cse_insn): Use delete_insn.
9497
9498 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9499
9500         * cpphash.h (struct cpp_buff): Make unsigned.
9501         (_cpp_get_buff): Take length of size_t.
9502         (_cpp_unaligned_alloc): New.
9503         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
9504         (struct cpp_reader): Remove ident_pool.  Add u_buff.
9505         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
9506         (cpp_destroy): Destroy u_buff, not ident_pool.
9507         * cpplex.c (parse_number, parse_string, save_comment,
9508         cpp_token_as_text): Update to use the unaligned buffer.
9509         (new_buff): Make unsigned.
9510         (_cpp_unaligned_alloc): New.
9511         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
9512         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
9513         Similarly.
9514         (collect_args): Make unsigned.
9515
9516 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
9517
9518         * cpplex.c (cpp_output_token): Use a putc loop for
9519         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
9520
9521         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
9522         * configure, config.in: Regenerate.
9523         * system.h: Replace fwrite and fprintf with their unlocked
9524         variants if available.
9525
9526 2001-09-27  Richard Henderson  <rth@redhat.com>
9527
9528         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
9529         in favour of .eh_frame.
9530
9531 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
9532
9533         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
9534         to macros.
9535         (LIBCALL_VALUE): Likewise.
9536
9537 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9538
9539         * cpphash.h: Update comment.
9540         * cpplex.c: Update comments.
9541         (_cpp_can_paste): Remove.
9542         * cpplib.h (_cpp_can_paste): Remove.
9543         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
9544         lexer rather than _cpp_can_paste.
9545
9546 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9547
9548         * doc/cppinternals.texi: Update.
9549
9550 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9551
9552         * cpphash.h (struct cpp_pool): Remove locks and locked.
9553         (struct cpp_context): Add member buff.
9554         (struct cpp_reader): Remove member argument_pool.
9555         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
9556         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
9557         * cpplex.c (chunk_suitable): Remove pool argument.
9558         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
9559         (new_buff, _cpp_extend_buff): Update.
9560         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
9561         which buffer is returned.
9562         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
9563         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
9564         * cppmacro.c (lock_pools, unlock_pools): Remove.
9565         (push_ptoken_context): Take a _cpp_buff.
9566         (enter_macro_context): Pool locking removed.
9567         (replace_args): Use a _cpp_buff for the replacement list with
9568         arguments replaced.
9569         (push_token_context): Clear buff.
9570         (expand_arg): Use _cpp_pop_context.
9571         (_cpp_pop_context): Free a context's buffer, if any.
9572
9573 2001-09-26  DJ Delorie  <dj@redhat.com>
9574
9575         * c-typeck.c (digest_init): Check for sizeless arrays.
9576
9577 2001-09-26  Richard Henderson  <rth@redhat.com>
9578
9579         * optabs.c (init_one_libfunc): Create a dummy function type
9580         instead of using error_mark_node.
9581
9582 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9583
9584         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
9585         _cpp_extend_buff, _cpp_free_buff): New.
9586         (struct cpp_reader): New member free_buffs.
9587         * cppinit.c (cpp_destroy): Free buffers.
9588         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
9589         _cpp_extend_buff, _cpp_free_buff): New.
9590         * cpplib.h (struct cpp_options): Remove unused member.
9591         * cppmacro.c (collect_args): New.  Combines the old parse_arg
9592         and parse_args.  Use _cpp_buff for memory allocation.
9593         (funlike_invocation_p, replace_args): Update.
9594
9595 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9596
9597         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
9598
9599 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
9600
9601         * except.c (sjlj_mark_call_sites): Change address inside sequence.
9602
9603 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9604
9605         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
9606         glibc.
9607
9608 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
9609             Jim Wilson  <wilson@redhat.com>
9610
9611         * doc/install.texi (Specific, ia64-*-linux): Document.
9612
9613 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9614
9615         * Makefile.in (cfgrtl.o): Add.
9616         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
9617         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
9618         free_aux_for_edge): Declare.
9619         * cfg.c
9620         (HAVE_return): Undefine.
9621         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
9622         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
9623         free_aux_for_edge): New global functions.
9624         (first_delete_block): New static variable.
9625         (init_flow): Clear first_delete_block.
9626         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
9627          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
9628          try_redirect_by_replacing_jump, last_loop_beg_note,
9629          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
9630          delete_insn, delete_insn_chain, create_basic_block_structure,
9631          create_basic_block, flow_delete_block, compute_bb_for_insn,
9632          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
9633          set_block_for_new_insns, split_block, merge_blocks_nomove,
9634          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
9635          redirect_edge_and_branch, force_nonfallthru_and_redirect,
9636          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
9637          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
9638          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
9639          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9640          purge_all_dead_edges): Move to ....
9641         * cfgrtl.c: New file; .... Here.
9642
9643         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
9644         (reroder_basic_block): Use alloc_aux_for_blocks.
9645         * predict.c (estimate_bb_frequencies): Likewise; use
9646         alloc_aux_for_edges.
9647         * profile.c (compute_branch_probabilities): Likewise.
9648         (branch_prob): Likewise.
9649         * reg-stack.c (reg_to_stack): Likewise.
9650
9651         * emit-rtl.c (emit_insns_after): Never return NULL.
9652
9653         * basic-block.h (set_block_for_new_insns): Delete.
9654         * cfgrtl.c (set_block_for_new_insns): Delete.
9655
9656         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
9657         calls when crossjumping.
9658
9659         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
9660         * unroll.c (copy_loop_body): Use delete_insn.
9661
9662         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
9663         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
9664         keep_stack_depressed): Likewise.
9665         * gcse.c (cprop_cc0_jump): Likewise.
9666         * local-alloc.c (update_equiv_regs): Likewise.
9667         * loop.c (scan_loop, loop_delete_insns): Likewise.
9668         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
9669         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
9670         delete_output_reload, delete_address_reloads_1,
9671         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
9672         Likewise.
9673         * sibcall.c (replace_call_placeholder): Likewise.
9674         * cse.c (cse_insn): Likewise.
9675
9676 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
9677
9678         From Graham Stott  <grahams@redhat.com>
9679         (def_builtin): Only define builtins appropriate for target_flags.  All
9680         callers changed.
9681         (builtin_decsription): Add new field mask which is used to determine
9682         when to define the builtin via the macro def_builtin.
9683
9684         (bdesc_comi): Initialise new mask fields.
9685         (bdesc_2srg): Likewise.
9686         (bdesc_1arg): Likewise.
9687
9688         * config/i386/i386.c (ix86_init_builtins): Correct return type
9689         building v4hi_ftype_v4hi_int_int tree node.
9690         (ix86_expand_sse_comi): Fix typo swapping operands.
9691         Don't swap comparision condition, it is already swapped.
9692         (ix86_expand_sse_compare): Before swapping operands
9693         move operand 1 into new rtx and not the target rtx.
9694         Don't swap comparison condition, it is already swapped.
9695         Always check whether we need to create a new TARGET.
9696
9697         * config/i386/i386.md: (sse_comi) Fix typos.
9698         (sse_ucomi): Likewise.
9699         (cvtss2si): Fix operand 0 contraint.
9700         (cvttss2si): Likewise.
9701         (sse_unpckhps): Fix mode for operand 2.
9702         (sse_unpcklps): Likewise.
9703
9704 2001-09-25  Graham Stott  <grahams@redhat.com>
9705
9706         * sibcall.c (skip_copy_to_return_value): Tighten return value
9707         copy check.
9708
9709 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
9710
9711         * rs6000.c (lwa_operand): Address must be word aligned.
9712
9713 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9714
9715         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
9716         number has been set.
9717         (type_hash_mark): Mark type itself.
9718
9719 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9720
9721         * c-lex.c (cb_def_pragma): Update.
9722         (c_lex): Update, and skip padding.
9723         * cppexp.c (lex, parse_defined): Update, remove unused variable.
9724         * cpphash.h (struct toklist): Delete.
9725         (union utoken): New.
9726         (struct cpp_context): Update.
9727         (struct cpp_reader): New members eof, avoid_paste.
9728         (_cpp_temp_token): New.
9729         * cppinit.c (cpp_create_reader): Update.
9730         * cpplex.c (_cpp_temp_token): New.
9731         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
9732         (cpp_output_token): Don't print leading whitespace.
9733         (cpp_output_line): Update.
9734         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
9735         do_include_common, do_line, do_ident, do_pragma,
9736         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
9737         parse_assertion): Update.
9738         (get_token_no_padding): New.
9739         * cpplib.h (CPP_PADDING): New.
9740         (AVOID_LPASTE): Delete.
9741         (struct cpp_token): New union member source.
9742         (cpp_get_token): Update.
9743         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
9744         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
9745         replace_args, quote_string, stringify_arg, parse_arg, next_context,
9746         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
9747         _cpp_backup_tokens, _cpp_create_definition): Update.
9748         (push_arg_context): Delete.
9749         (padding_token, push_token_context, push_ptoken_context): New.
9750         (make_string_token, make_number_token): Update, rename.
9751         (cpp_get_token): Update to handle tokens as pointers to const,
9752         and insert padding appropriately.
9753         * cppmain.c (struct printer): New member prev.
9754         (check_multiline_token): Constify.
9755         (do_preprocessing, cb_line_change): Update.
9756         (scan_translation_unit): Update to handle spacing.
9757         * scan-decls.c (get_a_token): New.
9758         (skip_to_closing_brace, scan_decls): Update.
9759         * fix-header.c (read_scan_file): Update.
9760
9761         * doc/cpp.texi: Update.
9762
9763 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9764
9765         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
9766         leak by passing malloc'ed pointer to reconcat, not concat.
9767
9768 2001-09-24  DJ Delorie  <dj@redhat.com>
9769
9770         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
9771
9772 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
9773
9774         * flow.c (delete_dead_jumptables): Delete jumptable if the only
9775         reference is from the literal pool.
9776
9777 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
9778
9779         * doc/install.texi (Final install): Request additional information
9780         in mail about successful builds.
9781
9782 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9783
9784         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
9785         initial value of return pointer register instead of value in frame-20.
9786         Revise comments.
9787
9788 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9789
9790         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
9791         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
9792         the libcall if there isn't a referenced identifier for the symbol.
9793
9794 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9795
9796         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
9797         non 64-bit machines.  Use these as a plabel for the trampoline.
9798         (TRAMPOLINE_SIZE): Adjust size for new words.
9799         (INITIALIZE_TRAMPOLINE): Initialize new words.
9800         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
9801         pointer to the plabel in the trampoline.
9802
9803 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9804
9805         * pa.c (function_arg): Pass floating arguments in both general and
9806         floating registers in indirect (dynamic) calls when generating code
9807         for the 32 bit ABI and the HP assembler.
9808
9809 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9810
9811         * doc/install.texi: Markup fixes.
9812         Use Solaris 2, SunOS 4 as appropriate.
9813         (Specific, *-*-solaris2*): Explain this.
9814         Unconditionally warn against /usr/ucb tools.
9815         Remove Sun as warning, obsolete.
9816         Move X11 header bug workaround here, update patches.
9817         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
9818         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
9819
9820 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
9821
9822         * errors.h (warning, error, fatal, internal_error): Don't mark
9823         with ATTRIBUTE_PRINTF_n.
9824         * toplev.h (internal_error, fatal_io_error, warning, error,
9825         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
9826         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
9827         Likewise.
9828
9829 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9830
9831         * function.c (pop_function_context_from): var_refs_queue
9832         and temp slots now in GC memory.
9833         (mark_function_status, free_after_compilation): Likewise;
9834         also struct function now in GC memory.
9835         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
9836         (combine_temp_slots): Likewise.
9837         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
9838         (prepare_function_start): Use GC memory for struct function.
9839         (mark_temp_slot): Deleted.
9840         (gcc_mark_struct_function): struct function now in GC memory.
9841
9842         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
9843         code for division, not modulus.
9844
9845         * rtl.def (MEM): Remove obsolete part of comment.
9846
9847 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
9848
9849         * c-format.c (init_function_format_info): Check __builtin_printf
9850         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
9851         in gnu89 mode.
9852
9853 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9854
9855         * c-common.c (format_attribute_table): Remove decl.
9856         * tree.h (format_attribute_table, lang_attribute_table): New decls.
9857         (lang_attribute_common): Likewise.
9858
9859         * function.c (fix_lexical_address): Use set_mem_alias_set.
9860         (expand_function_start): Likewise.
9861         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
9862
9863         * varasm.c (output_constant): Fix unused variable warning.
9864
9865         * attribs.c: New file, from c-common.c.
9866         (attribute_tables): Now four elements.
9867         (format_attribute_table, lang_attribute_common): New variables.
9868         (init_attributes): Reflect above changes.
9869         (handle_mode_attribute): Delete check for wider than uintmax.
9870         * c-common.c: Delete parts moved to attribs.c.
9871         (enum attrs): Deleted; unused.
9872         (c_format_attribute_table): New variable.
9873         (c_common_lang_init): Initialize format_attribute_table with it.
9874         * c-common.h (decl_attributes): Remove decl.
9875         * tree.h (decl_attribute): Move it to here.
9876         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
9877         (attribs.o): New rule.
9878
9879 2001-09-22  Andreas Jaeger  <aj@suse.de>
9880
9881         * builtins.c (c_getstr): Remove unused variable.
9882
9883 2001-09-21  Richard Henderson  <rth@redhat.com>
9884
9885         * reload1.c (reload): Use delete_insn instead of splatting
9886         NOTE_INSN_DELETED.
9887
9888 2001-09-21  Richard Henderson  <rth@redhat.com>
9889
9890         * reload.c (push_secondary_reload): Don't check for "=" in output
9891         constraint after ""->ALL_REGS check.
9892
9893 2001-09-21  Richard Henderson  <rth@redhat.com>
9894
9895         * predict.c (expected_value_to_br_prob): Use pc_set.
9896
9897         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
9898         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
9899
9900 2001-09-21  Richard Henderson  <rth@redhat.com>
9901
9902         * rtl.h (LCT_RETURNS_TWICE): New.
9903         * calls.c (emit_call_1): Set current_function_calls_setjmp for
9904         ECF_RETURNS_TWICE.
9905         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
9906         to ECF_RETURNS_TWICE.
9907         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
9908         call to setjmp.
9909
9910         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
9911
9912         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
9913         (JMP_BUF_SIZE): New.
9914
9915 2001-09-21  Richard Henderson  <rth@redhat.com>
9916
9917         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
9918         to R8_REGS.
9919
9920 2001-09-21  Richard Henderson  <rth@redhat.com>
9921
9922         * tree.def (FDESC_EXPR): New.
9923         * expr.c (expand_expr): Handle it.
9924         * varasm.c (initializer_constant_valid_p): Likewise.
9925         (output_constant): Likewise.
9926         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
9927         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
9928         (ASM_OUTPUT_FDESC): New.
9929         * doc/tm.texi: Document the new macros.
9930
9931 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
9932
9933         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
9934         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
9935         once merging is complete.
9936
9937 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9938
9939         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
9940
9941 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
9942
9943         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
9944         that would be invalid after a merge.
9945
9946 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
9947
9948         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
9949         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
9950         remove some labels.
9951         (flow_delete_insn): This one.
9952         (delete_insn_chain): Rename from ...; do not care labels.
9953         (flow_delete_insn_chain): ... this one.
9954         (flow_delete_block): Remove the insns one BB has been expunged.
9955         (merge_blocks_nomove): Likewise.
9956         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
9957         updating BB boundaries.
9958         (tidy_fallthru_edge): Likewise.
9959         (commit_one_edge_insertion): Likewise.
9960         * cfgbuild.c (find_basic_block): Likewise.
9961         (find_basic_blocks_1): Likewise.
9962         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
9963         (try_crossjump_to_edge): Likewise.
9964         (try_optimize_cfg): Likewise.
9965         * cse.c (delete_trivially_dead_insns): Likewise.
9966         * df.c (df_insn_delete): Likewise.
9967         * doloop.c (doloop_modify): Use delete_related_insns.
9968         * emit-rtl.c (try_split): Likewise.
9969         (remove_insn): Update BB boundaries.
9970         * expect.c (connect_post_landing_pads): Use delete_related_insns.
9971         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
9972         updating BB boundaries.
9973         (propagate_block_delete_insn): Likewise.
9974         (propagate_block_delete_libcall): Likewise.
9975         * function.c (delete_handlers): Use delete_related_insns.
9976         (thread_prologue_and_epilogue_insns): Likewise.
9977         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
9978         * genpeep.c (gen_peephole): Use delete_related_insns.
9979         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
9980         BB boundaries.
9981         (find_cond_trap): Likewise.
9982         * integrate.c (save_for_inline): Use delete_related_insns.
9983         (copy_insn_list): Likewise.
9984         * jump.c (pruge_linie_number_notes): Likewise.
9985         (duplicate_loop_exit_test): Likewise.
9986         (delete_computation): Likewise.
9987         (delete_related_insn): Rename from ...; use delete_insn
9988         (delete_insn): ... this one.
9989         (redirect_jump): Use delete_related_insns.
9990         * loop.c (scan_loop): Likewise.
9991         (move_movables): Likewise.
9992         (find_and_verify_loops): Likewise.
9993         (check_dbra_loop): Likewise.
9994         * recog.c (peephole2_optimize): Likewise.
9995         * reg-stack.c (delete_insn_for_stacker): Remove.
9996         (move_for_stack_reg): Use delete_insn.
9997         * regmove.c (combine_stack_adjustments_for_block): Likewise.
9998         * reload1.c (delete_address_reloads): Use delete_related_insns.
9999         (fixup_abnormal_edges): Use delete_insn.
10000         * recog.c (emit_delay_sequence): Use delete_related_insns.
10001         (delete_from-delay_slot): Likewise.
10002         (delete_scheduled_jump): likewise.
10003         (optimize_skip): Likewise.
10004         (try_merge_delay_insns): Likewise.
10005         (full_simple_delay_slots): Likewise.
10006         (fill_slots_from_thread): Likewise.
10007         (relax_delay_slots): Likewise.
10008         (make_return_insns): Likewise.
10009         (dbr_schedule): Likewise.
10010         * rtl.h (delete_insn): Rename to delete_related_insns.
10011         (delete_insn, delete_insn_chain): New prototypes.
10012         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
10013         by df_insn_delete already.
10014         * ssa-dce.c (delete_insn_bb): Use delete_insn.
10015         * ssa.c (convert_from_ssa): Use delete_related_insns.
10016         * unroll.c (unroll_loop): Likewise.
10017         (calculate_giv_inc): Likewise.
10018         (copy_loop_body): Likewise.
10019
10020         * i386-protos.h (ix86_libcall_value, ix86_function_value,
10021         ix86_function_arg_regno_p, ix86_function_arg_boundary,
10022         ix86_return_in_memory, ix86_function_value): Declare.
10023         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
10024         new static valurables.
10025         (x86_64_reg_class): New enum
10026         (x86_64_reg_class_name): New array.
10027         (classify_argument, examine_argument, construct_container,
10028          merge_classes): New static functions.
10029         (optimization_options): Enable flag_omit_frame_pointer and disable
10030         flag_pcc_struct_return on 64bit.
10031         (ix86_libcall_value, ix86_function_value,
10032         ix86_function_arg_regno_p, ix86_function_arg_boundary,
10033         ix86_return_in_memory, ix86_function_value): New global functions.
10034         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
10035         (function_arg_advance): Handle x86_64 passing conventions.
10036         (function_arg): Likewise.
10037         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
10038         (RETURN_IN_MEMORY): Move offline.
10039         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
10040         (FUNCTION_VALUE_REGNO_P): New macro.
10041         (FUNCTION_ARG_REGNO_P): Move offline.
10042         (struct ix86_args): Add maybe_vaarg.
10043         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
10044         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
10045
10046 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
10047
10048         * s390.md: Changed attributes for scheduling.
10049         * s390.c: (s390_adjust_cost, s390_adjust_priority)
10050         Changed scheduling
10051
10052 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10053
10054         Table-driven attributes.
10055         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
10056         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
10057         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
10058         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
10059         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
10060         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
10061         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
10062         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
10063         * tree.h (struct tree_decl): Change machine_attributes to
10064         attributes.
10065         * doc/c-tree.texi: Document that all attributes are now attached
10066         to decls and types.
10067         * c-common.c (add_attribute, attrtab, attrtab_idx,
10068         default_valid_lang_attribute, valid_lang_attribute): Remove.
10069         (attribute_tables, attributes_initialized,
10070         c_common_attribute_table, default_lang_attribute_table): New
10071         variables.
10072         (handle_packed_attribute, handle_nocommon_attribute,
10073         handle_common_attribute, handle_noreturn_attribute,
10074         handle_unused_attribute, handle_const_attribute,
10075         handle_transparent_union_attribute, handle_constructor_attribute,
10076         handle_destructor_attribute, handle_mode_attribute,
10077         handle_section_attribute, handle_aligned_attribute,
10078         handle_weak_attribute, handle_alias_attribute,
10079         handle_no_instrument_function_attribute,
10080         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
10081         handle_no_limit_stack_attribute, handle_pure_attribute): New
10082         functions.
10083         (init_attributes, decl_attributes): Rewrite to implement
10084         table-driven attributes.
10085         * c-common.h (enum attribute_flags): Move to tree.h.
10086         * c-format.c (decl_handle_format_attribute,
10087         decl_handle_format_arg_attribute): Rename to
10088         handle_format_attribute and handle_format_arg_attribute.  Update
10089         for table-driven attributes.
10090         * c-common.h (decl_handle_format_attribute,
10091         decl_handle_format_arg_attribute): Remove prototypes.
10092         (handle_format_attribute, handle_format_arg_attribute): Add
10093         prototypes.
10094         * c-decl.c (grokdeclarator): Handle attributes nested inside
10095         declarators.
10096         * c-parse.in (setattrs, maybe_setattrs): Remove.
10097         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
10098         Update to handle nested attributes properly.
10099         (maybe_resetattrs, after_type_declarator,
10100         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
10101         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
10102         properly.
10103         (make_pointer_declarator): Update to handle nested attributes
10104         properly.
10105         * doc/extend.texi: Update documentation of limits of attributes
10106         syntax.  Warn about problems with attribute semantics in C++.
10107         * target.h (struct target): Remove valid_decl_attribute and
10108         valid_type_attribute.  Add attribute_table and
10109         function_attribute_inlinable_p.
10110         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
10111         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
10112         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
10113         Add.
10114         (TARGET_INITIALIZER): Update.
10115         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
10116         definition.
10117         (function_attribute_inlinable_p): New function.  Check for the
10118         presence of any machine attributes before using
10119         targetm.function_attribute_inlinable_p.
10120         (function_cannot_inline_p): Update.
10121         * Makefile.in (integrate.o): Update dependencies.
10122         * doc/tm.texi: Update documentation of target attributes and
10123         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
10124         * tree.c (default_valid_attribute_p, valid_machine_attribute):
10125         Remove.
10126         (default_target_attribute_table,
10127         default_function_attribute_inlinable_p): New.
10128         (lookup_attribute): Update comment to clarify handling of multiple
10129         attributes with the same name.
10130         (merge_attributes, attribute_list_contained): Allow multiple
10131         attributes with the same name but different arguments to appear in
10132         the same attribute list.
10133         * tree.h (default_valid_attribute_p): Remove prototype.
10134         (struct attribute_spec): New.
10135         (default_target_attribute_table): Declare.
10136         (enum attribute_flags): Move from c-common.h.  Add
10137         ATTR_FLAG_TYPE_IN_PLACE.
10138         (default_function_attribute_inlinable_p): Declare.
10139         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
10140         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10141         (TARGET_ATTRIBUTE_TABLE): Define.
10142         (vms_attribute_table): New.
10143         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
10144         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10145         (TARGET_ATTRIBUTE_TABLE): Define.
10146         (arc_attribute_table, arc_handle_interrupt_attribute): New.
10147         * config/arm/arm.c (arm_valid_type_attribute_p,
10148         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
10149         Remove.
10150         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
10151         define.
10152         (TARGET_ATTRIBUTE_TABLE): Define.
10153         (arm_attribute_table, arm_handle_fndecl_attribute,
10154         arm_handle_isr_attribute): New.
10155         * config/avr/avr.c (avr_valid_type_attribute,
10156         avr_valid_decl_attribute): Remove.
10157         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
10158         define.
10159         (TARGET_ATTRIBUTE_TABLE): Define.
10160         (avr_attribute_table, avr_handle_progmem_attribute,
10161         avr_handle_fndecl_attribute): New.
10162         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
10163         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10164         (TARGET_ATTRIBUTE_TABLE): Define.
10165         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
10166         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
10167         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10168         (TARGET_ATTRIBUTE_TABLE): Define.
10169         (h8300_attribute_table, h8300_handle_fndecl_attribute,
10170         h8300_handle_eightbit_data_attribute,
10171         h8300_handle_tiny_data_attribute): New.
10172         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
10173         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
10174         Remove prototypes.
10175         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
10176         declarations.
10177         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
10178         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
10179         define.
10180         (TARGET_ATTRIBUTE_TABLE): Define.
10181         (ix86_attribute_table, ix86_handle_cdecl_attribute,
10182         ix86_handle_regparm_attribute): New.
10183         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
10184         i386_pe_valid_type_attribute_p): Remove.
10185         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
10186         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
10187         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10188         (TARGET_ATTRIBUTE_TABLE): Define.
10189         (ia64_attribute_table): New.
10190         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
10191         interrupt_ident2, model_ident1, model_ident2): Remove.
10192         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10193         (TARGET_ATTRIBUTE_TABLE): Define.
10194         (init_idents): Update.
10195         (m32r_attribute_table, m32r_handle_model_attribute): New.
10196         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
10197         Remove.
10198         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10199         (TARGET_ATTRIBUTE_TABLE): Define.
10200         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
10201         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
10202         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10203         (TARGET_ATTRIBUTE_TABLE): Define.
10204         (mcore_attribute_table, mcore_handle_naked_attribute): New.
10205         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
10206         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10207         (TARGET_ATTRIBUTE_TABLE): Define.
10208         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
10209         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
10210         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10211         (TARGET_ATTRIBUTE_TABLE): Define.
10212         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
10213         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
10214         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10215         (TARGET_ATTRIBUTE_TABLE): Define.
10216         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
10217         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
10218         New.
10219         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
10220         Remove.
10221         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
10222         (TARGET_ATTRIBUTE_TABLE): Define.
10223         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
10224         New.
10225         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
10226         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10227         (TARGET_ATTRIBUTE_TABLE): Define.
10228         (v850_attribute_table, v850_handle_interrupt_attribute,
10229         v850_handle_data_area_attribute): New.
10230         * config/v850/v850-c.c (mark_current_function_as_interrupt):
10231         Return void.  Call decl_attributes instead of
10232         valid_machine_attribute.
10233
10234 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
10235
10236         * sh-protos.h (sh_pr_n_sets): Declare.
10237         * sh.c (calc_live_regs): If the initial value for PR has been copied,
10238         look at the copy to determine if PR needs to be saved.
10239         sh_pr_n_sets: New function.
10240         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
10241         (ALLOCATE_INITIAL_VALUE): Define.
10242
10243         * sh.c (initial_elimination_offset):
10244         Fix RETURN_ADDRESS_POINTER_REGNUM case.
10245
10246 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
10247
10248         * integrate.c (allocate_initial_values): New function.
10249         * integrate.h (allocate_initial_values): Declare.
10250         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
10251         here...
10252         * reload1.c (reload): And initialization of reg_equiv_memory_loc
10253         from here...
10254         * toplev.c (rest_of_compilation): To here.
10255         Call allocate_initial_values.
10256         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
10257
10258 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10259
10260         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
10261
10262 2001-09-20  DJ Delorie  <dj@redhat.com>
10263
10264         * c-typeck.c (really_start_incremental_init): Discriminate
10265         between zero-length arrays and flexible arrays.
10266         (push_init_level): Detect zero-length arrays and handle them
10267         like fixed-sized arrays.
10268         * expr.c (store_constructor): Handle zero-length arrays and
10269         flexible arrays correctly.
10270         * doc/extend.texi: Update zero-length array notes.
10271
10272 2001-09-20  Jim Wilson  <wilson@redhat.com>
10273
10274         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
10275         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
10276         for issue port conflicts.
10277         (cycle_end_fill_slots): TYPE_L instructions take two slots.
10278
10279 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
10280
10281         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
10282         on ia64.
10283
10284 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10285
10286         * fold-const.c (hashtab.h): Include.
10287         (int_const_binop): Remove FORSIZE arg and compute from type; all
10288         callers changed.
10289         Call size_int_type_wide for all single-word constants.
10290         (size_htab_hash, size_htab_eq): New functions.
10291         (size_int_type_wide): Rework to use hash table.
10292         * ggc-common.c (hashtab.h): Include.
10293         (struct d_htab_root): New struct.
10294         (d_htab_roots): New variable.
10295         (ggc_add_deletable_htab, ggc_htab_delete): New functions
10296         (ggc_mark_roots): Handle deletable htabs.
10297         * ggc-page.c (ggc_marked_p): New function.
10298         * ggc-simple.c (ggc_marked_p): Likewise.
10299         * ggc.h: Reformatting throughout.
10300         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
10301         * tree.c (init_obstacks): Make type_hash_table a deletable root.
10302         (type_hash_add): Allocate struct type_hash from GC memory.
10303         (mark_hash_entry, mark_type_hash): Deleted.
10304         (type_hash_marked_p, type_hash_mark): New functions.
10305         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
10306
10307 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
10308
10309         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
10310         than SImode.
10311
10312 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10313
10314         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
10315         array-too-large test for signed sizetype.
10316
10317 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
10318
10319         * i386.md (indirect_jump): Allow Pmode operand.
10320         (tablejump): LIkewise; perform expansion to 64bit mode.
10321         * i386.c (symbolic_operand): Allow 64bit PIC references.
10322         (pic_symbolic_operand): Likewise.
10323         (ix86_find_base_term): Strip the 64bit PIC references.
10324         (legitimate_pic_address_disp_p): Handle 64bit PIC.
10325         (legitimize_pic_address): Likewise.
10326         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
10327         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
10328
10329 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
10330
10331         * stringpool.c (get_identifier_with_length): New function.
10332         * tree.h (get_identifier_with_length): New prototype.
10333
10334 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
10335             David Edelsohn  <edelsohn@gnu.org>
10336
10337         Revert:
10338         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
10339         already sign-extended.
10340
10341         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
10342         * config/rs6000/rs6000.c (logical_operand): Always compare op as
10343         HOST_WIDE_INT.
10344         (rs6000_emit_set_long_const): Avoid unnecessary shift.
10345         (output_profile_hook): Declare label_name const.
10346         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
10347         to match constraints.
10348
10349 2001-09-19  Stan Shebs  <shebs@apple.com>
10350
10351         * alias.c: Fix typos in comments.
10352         * sched-rgn.c (init_ready_list): Ditto.
10353         * unwind-dw2.c (uw_frame_state_for): Ditto.
10354         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
10355         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
10356         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
10357
10358 2001-09-19  Richard Henderson  <rth@redhat.com>
10359
10360         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
10361         to the exit block.
10362         * Makefile.in (cfg.o): Depend on TM_P_H.
10363
10364 2001-09-19  Richard Henderson  <rth@redhat.com>
10365
10366         * config/alpha/alpha.c (local_symbol_p): Split out from ...
10367         (local_symbolic_operand): ... here.
10368         (small_symbolic_operand): Check mode.
10369         (global_symbolic_operand): New.
10370         (input_operand): Reject symbolics if explicit relocs.
10371         (call_operand): Tidy.
10372         (alpha_legitimize_address): Use movdi_er_high_g.
10373         (alpha_expand_mov): Likewise.
10374         * config/alpha/alpha-protos.h: Update.
10375         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10376         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
10377         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
10378         (UNSPECV_LDGP2): Remove.
10379         (all call patterns): Use 's' not 'i' for symbolic constraint.
10380         (call_osf call_value_osf): Use call_operand.
10381         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
10382         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
10383         (prologue_ldgp_1_er): Remove.
10384         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
10385         (builtin_setjmp_receiver_er patterns): Use them.
10386         (exception_receiver_er): Likewise.
10387
10388 2001-09-19  Richard Henderson  <rth@redhat.com>
10389
10390         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
10391
10392         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
10393         and NON_LOCAL_GOTO notes.
10394         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
10395         copy over CALL_INSN_FUNCTION_USAGE.
10396
10397 2001-09-18  Catherine Moore  <clm@redhat.com>
10398
10399         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
10400         Define as 0.
10401
10402 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
10403
10404         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
10405         new-style tm_file specification.  Specify correct tm_p_file,
10406         md_file, and out_file for s390x.
10407
10408         * config/s390/linux.h, linux64.h:  Don't include other target
10409         macro header files.  Now handled via tm_file.
10410
10411         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
10412         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
10413         are defined before use.
10414
10415 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
10416
10417         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
10418         code generation only for Gnu assembler.
10419
10420 2001-09-18  Catherine Moore  <clm@redhat.com>
10421
10422         * config/stormy16 (LIB_SPEC): Remove -lnosys.
10423
10424 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
10425
10426         * config/mips/mips.c (mips_frame_set): New.
10427         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
10428         a parallel frame-related expression with a set for each register.
10429
10430 2001-09-18  Philip Blundell  <philb@gnu.org>
10431
10432         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
10433         header files.
10434
10435 2001-09-17  Dale Johannesen  <dalej@apple.com>
10436
10437         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
10438         * config/rs6000/aix.h (FIXED_R2): Define.
10439         * config/rs6000/darwin.h (FIXED_R2): Define.
10440         * config/rs6000/sysv4.h (FIXED_R2): Define.
10441
10442 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
10443
10444         * except.c (dw2_build_landing_pads): New local
10445         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
10446         barrier after clobbers.  Fixes c++/4012.
10447
10448 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10449
10450         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
10451
10452 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
10453
10454         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
10455         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
10456
10457 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10458
10459         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
10460         alloca/strcpy.
10461
10462 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10463
10464         * cpphash.h (_cpp_lex_direct): New.
10465         * cpplex.c (_cpp_lex_token): Update.
10466         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
10467         and increment that pointer.
10468         * cppmacro.c (alloc_expansion_token): New.
10469         (lex_expansion_token): Lex macro expansion directly into
10470         macro storage.
10471
10472 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
10473
10474         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
10475
10476 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
10477
10478         * basic-block.h (free_bb_for_insn): Declare.
10479         * bb-reorder.c (label_for_bb): Use block_label.
10480         (emit_jump_to_block_after): Remove.
10481         (insert_intra_1): Do not update block_for_insn.
10482         (insert_inter_bb_scope_notes): Likewise; update bb->end
10483         * cfg.c (free_bb_for_insn): New.
10484         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
10485         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
10486         (commit_one_edge_insertion): Likewise.
10487         (commit_one_edge_insertion): Do not update BB boundary.
10488         (commit_edge_insertions): Do not call compute_bb_for_insn.
10489         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
10490         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
10491         (merge_blocks_move_successor_nojumps): Likewise.
10492         (try_crossjump_to_edge): Do not update block_for_insn.
10493         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
10494         * df.c (df_pattern_emit_later): Do not update BB boundary.
10495         (df_jump_pattern_emit_after): Likewise.
10496         (df_insn_move_before): Use emit_insn_before.
10497         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
10498          properly.
10499         (add_insn_after, add_insn_before, emit_insns_after): Update BB
10500         boundaries and basic_block_for_insn.
10501         (reorder_insns_nobb): Rename from reorder_insns.
10502         (reorder_insns): New.
10503         (emit_block_insn_before, emit_block_insn_after): Kill.
10504         * flow.c (check_function_return_warnings): Do not call
10505         compute_bb_for_insn; Do not free basic_block_for_insn.
10506         (attempt_auto_inc): Do not update basic_block_for_insn.
10507         * function.c (emit_return_into_block): Likewise;
10508         do not update BB boundaries.
10509         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
10510         (insert_insn_end_bb): Use emit_insn_before; Likewise.
10511         (pre_insert_copy_insn): Likewise.
10512         (update_ld_motion_notes): Likewise.
10513         (insert_insn_start_bb): Likewise.
10514         (replace_store_insn): Likewise.
10515         * ifcvt.c (noce_process_if_block): Likewise.
10516         (if_convert): Do not call compute_bb_for_insn.
10517         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
10518         Use emit_insn_before and emit_insn_after.
10519         * recog.c (split_all_insns): Do not update BB boundaries;
10520         Do not call compute_bb_for_insn.
10521         (peephole2_optimize): Do not update BB boundaries.
10522         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
10523         emit_insn_before.
10524         (emit_swap_insn): Likewise.
10525         (convert_regs_1): Likewise.
10526         * reload1.c (reload): Call compute_bb_for_insn.
10527         * rtl.h (reorder_insns_nobb): Declare.
10528         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
10529         * toplev.c (rest_of_compilation): Call free_bb_for_insn
10530         at places CFG is invalidated; do not call compute_bb_for_insn.
10531
10532         * cfg.c (expunge_block): Invalidate BB structure.
10533
10534         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
10535         array.
10536
10537         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
10538
10539 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10540
10541         * cpphash.h (_cpp_lex_token): Update prototype.
10542         * cpplex.c (_cpp_lex_token): New prototype.
10543         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
10544         lex_macro_node, read_flag, do_pragma_poison): Update.
10545         * cppmacro.c (cpp_get_token, parse_params,
10546         lex_expansion_token): Update.
10547
10548 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10549
10550         * cppmain.c (scan_translation_unit): Don't worry about
10551         putting a space after hashes.
10552         * cpplib.c (directive_diagnostics): New.
10553         (_cpp_handle_directive): Update to use directive_diagnostics.
10554         (run_directive): Don't toggle prevent_expansion.
10555         (do_line): Backup in case of the line extension.
10556         * cpplib.h (cpp_lexer_pos): Remove.
10557         * cppmacro.c (_cpp_create_definition): Precede a leading #
10558         with whitespace.
10559
10560 2001-09-15  Richard Henderson  <rth@redhat.com>
10561
10562         * c-typeck.c (comptypes): Handle zero-length arrays properly.
10563
10564 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10565
10566         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
10567
10568 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10569
10570         PR preprocessor/3571
10571         * tradcpp.c (handle_directive): Skip non-vertical space.
10572
10573 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10574
10575         * cppmain.c (setup_callbacks): Set line callback only
10576         if outputting preprocessed source.
10577
10578 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10579
10580         * collect2.c (main): Const-ification.
10581         * gcc.c (translate_options, process_command): Use xstrdup in
10582         lieu of xmalloc/strcpy.
10583         (main): Use concat in lieu of xmalloc/strcpy/strcat.
10584
10585 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10586
10587         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
10588         example.
10589
10590 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10591
10592         * scan-decls.c (scan_decls): Fix typo.
10593
10594 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10595
10596         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
10597         Split mlstring_pos into mls_line and mls_col.
10598         * cppinit.c (cpp_create_reader): Initialize line to 1.
10599         (cpp_destroy): Free tokenruns.
10600         (push_include): Don't update lexer_pos.
10601         * cpplex.c (unterminated, parse_string): Update.
10602         (lex_token): Don't update lexer_pos, update.
10603         * cpplib.c (if_stack): Save line instead of line + col.
10604         (start_directive, _cpp_do__Pragma, do_else, do_elif,
10605         push_conditional, _cpp_pop_buffer): Update.
10606         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
10607         (_cpp_create_definition): Update.
10608
10609 2001-09-15  Eric Christopher  <echristo@redhat.com>
10610
10611         * config/mips/abi64.h: Add support for MEABI.
10612
10613 2001-09-15  Eric Christopher  <echristo@redhat.com>
10614
10615         * config/mips/mips.md: Add unspec #2.
10616         (reload_indi): Use.
10617         (reload_outdi): Ditto.
10618         (reload_outsi): Ditto.
10619         (HILO_delay): New.
10620
10621 2001-09-15  Eric Christopher  <echristo@redhat.com>
10622             Jason Eckhardt  <jle@redhat.com>
10623
10624         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
10625         * config/mips/isa32-linux.h: New file.
10626         * config/mips/isa3264.h: Ditto.
10627         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
10628         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
10629         (output_block_mode): Support MEABI.
10630         (function_arg): Ditto. Fix floating point arg passing.
10631         (mips_va_start): Ditto.
10632         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
10633         processors.
10634         (mips_asm_file_start): Add new section to pass abi to gdb.
10635         (function_arg_pass_by_reference): Support MEABI.
10636         (mips_parse_cpu): Support mips32 and mips64 processors.
10637         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
10638         TARGET_MIPS5KC.  Support isa32 and isa64.
10639         (processor_type): Add r4kc, r5kc, r20kc.
10640         (GENERATE_MULT3_SI): New.
10641         (GENERATE_MULT3_DI): Ditto.
10642         (GENERATE_MULT3): Remove.
10643         (ISA_HAS_64BIT_REGS): Add isa == 64.
10644         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
10645         (ISA_HAS_MADD_MSUB): New.
10646         (ISA_HAS_CLZ_CLO): Ditto.
10647         (ISA_HAS_DCLZ_DCLO): Ditto.
10648         (ABI_GAS_ASM_SPEC): New.
10649         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
10650         (ASM_SPEC): Ditto.
10651         (LINK_SPEC): Ditto.
10652         (SUBTARGET_CC1_SPEC): Ditto.
10653         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10654         (PAD_VARARGS_DOWN): Support MEABI.
10655         (HARD_REGNO_NREGS): Move to mips.c.
10656         (ASM_OUTPUT_IDENT): Add #undef.
10657         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
10658         (mulsi3): Use GENERATE_MULT3_SI.
10659         (mulsi3_mult3): Ditto.  Support mips32, mips64.
10660         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
10661         (mul_sub_si): New pattern.
10662         (unnamed splitters): New.
10663         (muldi3): Use GENERATE_MULT3_DI.
10664         (muldi3_internal2): Ditto.
10665         (movdicc): Support mips32.
10666         * config/mips/t-isa3264: New file.
10667
10668 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
10669
10670         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
10671         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
10672         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
10673
10674         * reorg.c (fill_slots_from_thread): After call to
10675         steal_delay_list_from_target, update own_thread as new_thread may
10676         have branched.
10677
10678 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
10679
10680         * cpperror.c (print_location): Take line and column, for
10681         default positioning use the previously lexed token.
10682         (_cpp_begin_message): Take line and column.
10683         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10684         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10685         * cpphash.h (_cpp_begin_message): Update prototype.
10686         * cppinit.c (push_include): Don't set output line.
10687         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
10688         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
10689         (do_pragma): Kludge for front ends.  Don't expand macros at all.
10690         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
10691         (struct cpp_token): Remove output_line.
10692         (struct cpp_callbacks): New member line_change.
10693         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
10694         cpp_get_token): Preserve BOL flag.
10695         (cpp_get_line): Remove.
10696         (_cpp_backup_tokens): Remove useless abort().
10697         * cppmain.c (cb_line_change): New.
10698         (scan_translation_unit): Don't worry about starting new lines here.
10699         * scan-decls.c (scan_decls): Update.
10700         * c-lex.c (c_lex, init_c_lex): Update.
10701         (cb_line_change, src_lineno): New.
10702
10703 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
10704
10705         * tree.c (append_random_chars): Generate the random
10706         characters in a reproducable fashion.
10707
10708 2001-09-14  Richard Henderson  <rth@redhat.com>
10709
10710         * config/i386/i386.c (internal_label_prefix): New.
10711         (internal_label_prefix_len): New.
10712         (override_options): Set them.
10713         (local_symbolic_operand): New.
10714         (legitimate_pic_address_disp_p): Use it.
10715         (legitimize_pic_address): Likewise.
10716
10717 2001-09-14  Marc Espie <espie@openbsd.org>
10718
10719         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
10720         correctly.
10721
10722 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10723
10724         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
10725         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
10726
10727 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
10728
10729         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
10730         invocation of SUBREG_REGNO_OFFSET.
10731
10732         * haifa-sched.c: Fix typo in FSF copyright statement.
10733         * sched-deps.c: Fix typo in FSF copyright statement.
10734         * sched-ebb.c: Fix typo in FSF copyright statement.
10735         * sched-rgn.c: Fix typo in FSF copyright statement.
10736         * sched-vis.c: Fix typo in FSF copyright statement.
10737
10738         * config.gcc: Move inclusion of arm elf specific header files
10739         from the files themselves into the tm_file variable.  Make
10740         sure that elfos.h is included before target specific elf
10741         headers.
10742         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
10743         already defined.
10744         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
10745         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
10746         ASM_OUTPUT_CASE_LABEL): Protect definition.
10747         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
10748         not already defined.
10749         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
10750         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
10751         Remove duplicate definition.
10752         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
10753         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
10754         (RDATA_SECTION_FUNCTION): Remove redundant definition.
10755         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
10756         Remove inclusion of arm/elf.h.
10757         * config/arm/unknown-elf.h: as for conix-elf.h.
10758         (STARTFILE_SPEC): Include crti.o and crtn.o.
10759         * config/arm/linux-elf.h: as for conix-elf.h.
10760         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
10761         * config/arm/strongarm-elf.h: Remove inclusion of
10762         unknown-elf.h.
10763         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
10764         * config/arm/unknown-elf-oabi.h: Remove inclusion of
10765         unknown-elf.h and elf.h.
10766         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
10767         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
10768         ASM_WEAKEN_LABEL): Remove redundant definition.
10769         * config/arm/elf.h: Test for inclusion of elfos.h
10770         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
10771         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
10772         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
10773         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
10774         redundant definition.
10775         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
10776         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
10777         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
10778         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
10779         Add rules to build crti.o and crtn.o
10780         * crti.asm: New file.
10781         * crtn.asm: New file.
10782
10783 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
10784
10785         * c-parse.in (_yylex): Use _cpp_backup_tokens.
10786         * cpphash.h (struct tokenrun): Add prev.
10787         (struct lexer_state): Remove bol.
10788         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
10789         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
10790         : Remove.
10791         * cppinit.c (cpp_create_reader): Don't set bol.
10792         (cpp_destroy): Don't free lookaheads.
10793         * cpplex.c (lex_directive): Remove.
10794         (next_tokenrun): Update.
10795         (_cpp_lex_token): Clean up logic.
10796         (lex_token): Update to return a pointer to lexed token, since it
10797         can move to the start of the buffer.  Simpify newline handling.
10798         * cpplib.c (SEEN_EOL): Update.
10799         (skip_rest_of_line): Remove lookahead stuff.
10800         (end_directive): Line numbers are already incremented.  Revert
10801         to start of lexed token buffer if we can.
10802         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
10803         parse_answer): Use _cpp_backup_tokens.
10804         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
10805         instead.  Don't check for EOL.
10806         (do_include_common, do_line, do_pragma_system_header): Use
10807         skip_rest_of_line.
10808         * cpplib.h (BOL, _cpp_backup_tokens): New.
10809         * cppmacro.c (save_lookahead_token, take_lookahead_token,
10810         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
10811         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
10812         (builtin_macro): Don't use cpp_get_line.
10813         (cpp_get_line): Short term kludge.
10814         (parse_arg): Handle directives in arguments here.  Back up when
10815         appropriate.  Store EOF at end of argument list.
10816         (funlike_invocation_p): Use _cpp_backup_tokens.
10817         (push_arg_context): Account for EOF at end of list.
10818         (cpp_get_token): Remove lookahead stuff.  Update.
10819
10820 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10821
10822         * c-parse.in (yyerror): Const-ification and/or static-ization.
10823         * c-typeck.c (push_member_name): Likewise.
10824         * collect2.c (main): Likewise.
10825         * dbxout.c (dbxout_parms): Likewise.
10826         * diagnostic.c (format_with_decl): Likewise.
10827         * dwarf2out.c (output_ranges): Likewise.
10828         * dwarfout.c (fundamental_type_code): Likewise.
10829         * except.c (dw2_output_call_site_table): Likewise.
10830         * gcc.c (do_spec_1): Likewise.
10831         * genopinit.c (optabs): Likewise.
10832         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
10833         gen_declaration_1, handle_impent): Likewise.
10834         * protoize.c (default_include, in_system_include_dir, abspath):
10835         Likewise.
10836         * sched-vis.c (visualize_stall_cycles): Likewise.
10837         * sdbout.c (plain_type_1, sdbout_end_function,
10838         sdbout_end_epilogue): Likewise.
10839         * varasm.c (decode_reg_name): Likewise.
10840
10841         * 1750a.c (mod_regno_adjust): Likewise.
10842         * alpha.c (alpha_write_one_linkage,
10843         unicosmk_output_default_externs): Likewise.
10844         * arm.c (arm_condition_codes): Likewise.
10845         * arm.h (arm_condition_codes): Likewise.
10846         * avr.c (output_movsisf, encode_section_info): Likewise.
10847         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
10848         Likewise.
10849         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
10850         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
10851         * m88k.c (output_function_profiler): Likewise.
10852         * mips.c (mips_output_conditional_branch): Likewise.
10853         * ns32k.c (ns32k_out_reg_names): Likewise.
10854         * ns32k.h (ns32k_out_reg_names): Likewise.
10855         * pj.c (pj_output_rval): Likewise.
10856         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
10857         * sparc.c (sparc_flat_function_prologue,
10858         sparc_flat_function_epilogue): Likewise.
10859
10860 2001-09-13  Markus Werle <numerical.simulation@web.de>
10861             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10862
10863         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
10864         Aachen University of Technology".
10865
10866 2001-09-13  Andreas Schwab  <schwab@suse.de>
10867
10868         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
10869         C99.
10870
10871 2001-09-13  Richard Henderson  <rth@redhat.com>
10872
10873         * config/alpha/alpha.c (small_symbolic_operand): New.
10874         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
10875         (some_operand, input_operand): Don't handle HIGH.
10876         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
10877         (alpha_expand_mov): Likewise.
10878         (print_operand) [H]: Just print HIGH symbol.
10879         (print_operand_address): Handle small data.
10880         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
10881         (TARGET_SWITCHES): Add -msmall-data/large-data.
10882         (PIC_OFFSET_TABLE_REGNUM): New.
10883         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
10884         (PREDICATE_COES): Update.
10885         * config/alpha/alpha.md (adddi_er_high): New.
10886         (adddi_er_low): Handle small data.
10887         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
10888         prefer .sdata to .rodata.
10889         (SELECT_RTX_SECTION): Likewise.
10890
10891 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
10892
10893         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
10894         defining __size_t and leaving size_t undefined.
10895
10896 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
10897
10898         * basic-block.h (expunge_block): Declare.
10899         * cfg.c (expunge_block): Remove static declaration.
10900
10901 2001-09-12  Richard Henderson  <rth@redhat.com>
10902
10903         * integrate.c (copy_insn_list): Copy label name from
10904         NOTE_INSN_DELETED_LABEL.
10905
10906 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10907
10908         * c-common.c (c_tree_code_name): Const-ification.
10909         * c-decl.c (c_decode_option): Likewise.
10910         * c-typeck.c (warn_for_assignment): Likewise.
10911         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
10912         Likewise.
10913         * cppinit.c (output_deps): Likewise.
10914         * dependence.c (dependence_string, direction_string): Likewise.
10915         * dwarf2out.c (output_ranges): Likewise.
10916         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
10917         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
10918         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
10919         standard_startfile_prefix, standard_startfile_prefix_1,
10920         standard_startfile_prefix_2, tooldir_base_prefix,
10921         standard_bindir_prefix, find_a_file): Likewise.
10922         * genattrtab.c (make_length_attrs): Likewise.
10923         * gencheck.c (tree_codes): Likewise.
10924         * genemit.c (gen_split): Likewise.
10925         * genrecog.c (special_mode_pred_table): Likewise.
10926         * graph.c (graph_ext): Likewise.
10927         * protoize (default_include): Likewise.
10928         * reload.c (reload_when_needed_name): Likewise.
10929         * sched-vis.c (visualize_stall_cycles): Likewise.
10930         * tlink.c (recompile_files): Likewise.
10931         * toplev.c (decode_g_option): Likewise.
10932         * tradcpp.c (output_deps): Likewise.
10933         * varasm.c (decode_reg_name): Likewise.
10934
10935         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
10936         Const-ification.
10937         * arm.md: Likewise.
10938         * avr.c (avr_regnames, encode_section_info): Likewise.
10939         * c4x.c (float_reg_names): Likewise.
10940         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
10941         * elfos.h (const_section): Likewise.
10942         * i386.c (ix86_comp_type_attributes): Likewise.
10943         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
10944         * ia64/aix.h (UNIQUE_SECTION): Likewise.
10945         * ia64.c (type_names): Likewise.
10946         * m68hc11.c (reg_class_names): Likewise.
10947         * m88k.c (m_options): Likewise.
10948         * mips.c (mips_output_conditional_branch, mips_unique_section):
10949         Likewise.
10950         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10951         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
10952         ultra_code_names): Likewise.
10953         * sparc.h (OVERRIDE_OPTIONS): Likewise.
10954
10955 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
10956
10957         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
10958         Use --fatal-warnings option for gas.
10959         * configure: Rebuilt.
10960
10961 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10962
10963         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
10964
10965 2001-09-11  Jim Wilson  <wilson@redhat.com>
10966
10967         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
10968
10969 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10970
10971         * builtins.c (c_strlen): Treat an offset too large for a
10972         HOST_WIDE_INT as out of range.
10973
10974 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
10975
10976         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
10977         (EDGE_CRITICAL_P): New predicate.
10978         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
10979         handling.
10980         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
10981         (dump_edge_info): Remove "crit".
10982         * cfganal.c (mark_critical_edges): Kill.
10983         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
10984         * cfgcleanup.c (cleanup_cfg): Likewise.
10985         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
10986         (find_spanning_tree): Likewise.
10987         * reg-stack.c (convert_regs_1): Likewise.
10988         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
10989
10990         * basic-block.h (create_basic_block_structure): New.
10991         (create_basic_block): Update prototype.
10992         (force_nonfallthru): New.
10993         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
10994         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
10995         handle updating of block_for_insn, creating of empty BBs and BBs at
10996         the end of INSN chain.
10997         (create_basic_block): New function.
10998         (split_block): Use create_basic_block.
10999         (force_nonfallthru_and_redirect): Break out from ...; cleanup
11000         (redirect_edge_and_branch_force): ... here.
11001         (force_nonfallthru): New.
11002         (split_edge): Rewrite to use force_nonfallthru and create_block.
11003         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
11004         (find_basic_blocks): Free basic_block_for_insn.
11005         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
11006
11007         * cfg.c: Fix formating.
11008         * cfgcleanup.c: Fix formating.
11009         (merge_blocks, tail_recursion_label_p): Return bool.
11010         (merge_blocks_move_predecessor_nojumps,
11011          merge_blocks_move_successor_nojumps): Return void.
11012
11013 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
11014
11015         * configure.in: Check whether assembler supports section merging.
11016         * config.in: Rebuilt.
11017         * configure: Rebuilt.
11018         * varasm.c (variable_section, output_constant_pool): Pass alignment
11019         to SELECT_SECTION and SELECT_RTX_SECTION.
11020         (mergeable_string_section): New.
11021         (mergeable_constant_section): New.
11022         (default_elf_asm_named_section): Output SECTION_MERGE and
11023         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
11024         * output.h (mergeable_string_section): New.
11025         (mergeable_constant_section): New.
11026         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
11027         * toplev.c (flag_merge_constants): New.
11028         (f_options): Add -fmerge-constants and -fmerge-all-constants
11029         options.
11030         (toplev_main): Default to -fno-merge-constants if not optimizing.
11031         * flags.h (flag_merge_constants): Add extern.
11032         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
11033         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
11034         argument.
11035         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
11036         Define if assembler has working .subsection -1 support.
11037         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
11038         Put constant into special SHF_MERGE sections if the linker should
11039         attempt to merge duplicates.
11040         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
11041         macro argument.
11042         Put constant into special SHF_MERGE sections if the linker should
11043         attempt to merge duplicates.
11044         * config/alpha/elf.h: Likewise.
11045         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
11046         has working .subsection -1 support.
11047         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
11048         SELECT_SECTION.
11049         * config/svr3.h: Likewise.
11050         * config/darwin.h: Likewise.
11051         * config/arm/aof.h: Likewise.
11052         * config/arm/linux-elf.h: Likewise.
11053         * config/avr/avr.h: Likewise.
11054         * config/c4x/c4x.h: Likewise.
11055         * config/d30v/d30v.h: Likewise.
11056         * config/i386/dgux.h: Likewise.
11057         * config/i386/osfrose.h: Likewise.
11058         * config/i386/sco5.h: Likewise.
11059         * config/i386/svr3gas.h: Likewise.
11060         * config/ia64/aix.h: Likewise.
11061         * config/m32r/m32r.h: Likewise.
11062         * config/m68k/m68k.h: Likewise.
11063         * config/m88k/dgux.h: Likewise.
11064         * config/m88k/m88k.h: Likewise.
11065         * config/mcore/mcore-pe.h: Likewise.
11066         * config/mips/mips.h: Likewise.
11067         * config/pa/pa.h: Likewise.
11068         * config/pa/pa-linux.h: Likewise.
11069         * config/romp/romp.h: Likewise.
11070         * config/rs6000/sysv4.h: Likewise.
11071         * config/rs6000/xcoff.h: Likewise.
11072         * config/s390/linux.h: Likewise.
11073         * config/sparc/sparc.h: Likewise.
11074         * config/sparc/sysv4.h: Likewise.
11075         * config/stormy16/stormy16.h: Likewise.
11076         * config/v850/v850.h: Likewise.
11077         * config/vax/vms.h: Likewise.
11078         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
11079         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
11080         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
11081         default_elf_asm_named_section for SHF_MERGE sections.
11082
11083 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11084
11085         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
11086         is OK.
11087
11088 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11089
11090         * c-common.c (split_specs_attrs): Allow for empty attributes with
11091         empty TREE_PURPOSE.  Fixes PR c/4294.
11092
11093 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
11094
11095         * basic-block.h (cached_make_edge, make_single_succ): New.
11096         (make_edge): Remove first parameter.
11097         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
11098         * cfg.c (cached_make_edge): Rename from make_edge; return newly
11099         created edge; use obstack allocation.
11100         (make_edge, make_single_succ_edge): New.
11101         (first_removed_edge): New static variable.
11102         (init_flow): Initialize first_removed_edge and n_edges.
11103         (clear_edges): Use remove_edge.
11104         (flow_delete_block): Likewise.
11105         (remove_edge): Add removed edges to the removed edges list.
11106         (split_block, redirect_edge_and_branch_force, split_edge):
11107         Use make_edge.
11108         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
11109         (add_noreturn_fake_exit_edges): Likewise.
11110         (connect_infinite_loops_to_exit): Liekwise.
11111         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
11112         Use cached_make_edge.
11113         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
11114         * profile.c (branch_prob): Update make_edge call.
11115         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11116
11117 2001-09-11  Richard Henderson  <rth@redhat.com>
11118
11119         * config/alpha/alpha.c: Tidy formatting.
11120         (local_symbolic_operand): Verify mode.
11121         (alpha_sa_mask): Ignore unicos for eh_return.
11122         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
11123         * config/alpha/alpha.md (umk divsi patterns): Remove.
11124         (extendsfdf2): Remove unicos check.
11125         (tablejump): Merge vms and unicos code; always use direct set
11126         plus label_ref use.
11127
11128 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11129
11130         * config.gcc (alpha*-*-unicosmk*): New target.
11131
11132         * config/alpha/alpha-protos.h (symbolic_operand,
11133         unicosmk_add_call_info_word, unicosmk_add_extern,
11134         unicosmk_defer_case_vector, unicosmk_unique_section,
11135         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
11136         unicosmk_asm_file_start, unicosmk_asm_file_end,
11137         unicosmk_output_common): Declare.
11138
11139         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
11140         direct_return, function_arg, alpha_va_start, alpha_va_arg,
11141         alpha_does_function_need_gp, alpha_end_function): Support Cray
11142         Unicos/Mk.
11143         (alpha_init_machine_status, alpha_mark_machine_status,
11144         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
11145         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
11146         unicosmk_asm_named_section, unicosmk_insert_attributes,
11147         unicosmk_section_type_flags, symbolic_operand,
11148         unicosmk_output_module_name, unicosmk_output_default_externs,
11149         unicosmk_output_dex, unicosmk_output_externs,
11150         unicosmk_output_addr_vec, unicosmk_ssib_name,
11151         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
11152         unicosmk_asm_file_end, unicosmk_output_common,
11153         unicosmk_section_type_flags, unicosmk_unique_section,
11154         unicosmk_add_call_info_word, unicosmk_text_section,
11155         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
11156         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
11157         unicosmk_dex_count, unicosmk_special_name): New.
11158         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
11159         TARGET_ABI_UNICOSMK.
11160         (get_aligned_mem, alpha_expand_unaligned_load,
11161         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
11162         alpha_expand_unaligned_store_words): Support big-endian mode.
11163         (print_operand): Likewise. New format specifier 't'. Use
11164         TARGET_AS_SLASH_BEFORE_SUFFIX.
11165         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
11166         (alpha_pv_save_size): Update with above change.
11167         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
11168         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
11169         Unicos/Mk.
11170
11171         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
11172         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
11173         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
11174         (EXTRA_CONSTRAINT): New constraint 'U'.
11175         (PREDICATE_CODES): Add symbolic_operand.
11176
11177         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
11178         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
11179         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
11180         (integer division and modulus patterns): Split in default and
11181         Unicos/Mk versions.
11182         (*divmodsi_internal, *divmoddi_internal): Disable for
11183         TARGET_ABI_UNICOSMK.
11184         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
11185         little-endian and big-endian versions.
11186         (ext, ins, msk): Likewise.
11187         (extv, extzv, insv): Support big-endian mode.
11188         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
11189         (call_umk, call_value_umk, *call_umk, tablejump_umk,
11190         *tablejump_umk_internal, *call_value_umk): New.
11191         (*movdi_nofix): Add pattern for loading an address into a register on
11192         TARGET_ABI_UNICOSMK.
11193         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
11194         (umk_mismatch_args, arg_home_umk): New.
11195         (various insns): Don't use mov, fmov, nop, fnop and unop.
11196         (realign): Support TARGET_ABI_UNICOSMK.
11197
11198         * config/alpha/unicosmk.h: New file.
11199         * config/alpha/t-unicosmk: New file.
11200
11201         * fixinc/inclhack.def (unicosmk_restrict): New.
11202         * fixinc/fixincl.x: Regenerate.
11203
11204         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
11205         (wchar_t): Check for and define __WCHAR_T__.
11206
11207 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
11208
11209         * combine.c (simplify_shift_const): Treat shifts by the mode
11210         size as undefined.
11211
11212 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11213
11214         * cpphash.h (struct tokenrun): New.
11215         (struct cpp_context): New member bol.
11216         (struct cpp_reader): New members.
11217         (_cpp_init_tokenrun): New.
11218         * cppinit.c (cpp_create_reader): Set up the token runs.
11219         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
11220         (lex_token): New internalised version of _cpp_lex_token.  Don't
11221         handle directives or the multiple include optimization here any
11222         more.  Simply lex a token.
11223         * cpplib.c (run_directive): Clear bol.
11224         (_cpp_pop_buffer): Set bol.
11225         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
11226         arguments.
11227
11228 2001-09-11  Michael Meissner  <meissner@redhat.com>
11229
11230         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
11231         give an error if the user uses -mfp32.
11232         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
11233         default options.
11234         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
11235         floating point register size.
11236         (EXTRA_SPECS): Add CPP_FPR_SPEC.
11237
11238         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
11239         HOST_WIDE_INT_PRINT_DEC to properly print the result of
11240         int_size_in_bytes.
11241         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
11242         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
11243
11244 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
11245
11246         * dbxout.c (dbxout_parms): Fix typo in comment.
11247         * unroll.c (loop_find_equiv_value): Ditto.
11248         * toplev.c (rest_of_compilation): Ditto.
11249         * loop.c (scan_loop): Ditto.
11250         * dwarf2out.c (struct dw_fde_struct): Ditto.
11251
11252 2001-09-10  Zack Weinberg  <zackw@panix.com>
11253
11254         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
11255         copying identifier when we're just going to throw it away.
11256         (parse_identifier_slow): New routine to handle abnormal cases.
11257         (_cpp_lex_token): Update call site.
11258
11259         * hashtable.c (ht_lookup): Don't assume that the string we've
11260         been given is NUL-terminated.
11261         * system.h: #define __builtin_expect(a, b) to (a) if not
11262         GCC >=3.0.
11263
11264 2001-09-10  Michael Meissner  <meissner@redhat.com>
11265
11266         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
11267         binutils, gdb.
11268
11269 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
11270
11271         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
11272
11273 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11274
11275         * builtins.c (c_getstr): Correct thinko in last change and further
11276         cleanup.
11277
11278 2001-09-10  Tim Freeman <tim@fungibole.com>
11279
11280         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
11281         into varray's and register them as roots with the garbage
11282         collector so they are not collected too soon.
11283
11284 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
11285
11286         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
11287         New.
11288         * basic-block.h (flow_obstack, label_value_list,
11289         tail_recursion_label_list): Declare
11290         (tidy_fallthru_edges): Declare.
11291         (expunge_block, last_loop_beg_note): Delete.
11292         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
11293         * cfg.c: New file
11294         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
11295         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
11296         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
11297         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
11298         expunge_block, flow_delete_block, compute_bb_for_insn,
11299         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
11300         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
11301         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
11302         try_redirect_by_replacing_jump, last_loop_beg_note,
11303         redirect_edge_and_branch, redirect_edge_and_branch_force,
11304         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
11305         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
11306         commit_edge_insertions, dump_flow_info, debug_flow_info,
11307         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
11308         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
11309         Move here from flow.c
11310         * cfganal.c: New file.
11311         (forwarder_block_p, can_fallthru, mark_critical_edges,
11312          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
11313          find_unreachable_blocks, create_edge_list, free_edge_list,
11314          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
11315          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
11316          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
11317          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
11318          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
11319          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
11320         Move here from flow.c
11321         * cfgbuild.c: New file
11322         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
11323          make_edges, find_basic_blocks_1, find_basic_blocks,
11324          find_sub_basic_blocks): Move here from flow.c
11325         * cfgcleanup.c: New file.
11326         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
11327          merge_blocks_move_predecessor_nojumps,
11328          merge_blocks_move_successor_nojumps, merge_blocks,
11329          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
11330          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
11331         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
11332         if succeeded.
11333         * cfgloop.c: New file
11334         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
11335          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
11336          flow_loop_exit_edges_find, flow_loop_nodes_find,
11337          flow_loop_pre_header_scan, flow_loop_pre_header_find,
11338          flow_loop_tree_node_add, flow_loops_tree_build,
11339          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
11340          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
11341         Move here from flow.c
11342         * flow.c: Remove everything moved elsewhere
11343         * output.h (cleanup_cfg): Return bool.
11344
11345         * bb-reorder.c (reorder_block_def): Remove 'index'.
11346         (insert_intra_1): Add argument BB, set block for new note.
11347         (make_reorder_chain): Do not depdent on BB indexes.
11348         (make_reorder_chain_1): Do not use BB indexes.
11349         (label_for_bb): Likewise; set BB for new insn.
11350         (emit_jump_to_block_after): Likewise.
11351         (fixup_reorder_chain): Sanity check that all basic blocks
11352         are chained; verify newly created insn chain; remove
11353         undocnitional jump simplifying; Do not use BB indexes;
11354         properly initialize count and frequency information;
11355         dump reordered sequence.
11356         (insert_intra_bb_scope_notes): update call of insert_intra_1.
11357         (insert_inter_bb_scope_notes): Set block for new insn.
11358         (reorder_basic_blocks): Dump flow info before reoredering.
11359
11360 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11361
11362         * alias.c (clear_reg_alias_info): Use K&R format definition.
11363         Avoid unsigned warning.
11364         * builtins.c: Use "unsigned int", not "unsigned".
11365         (target_char_cast): Use host_integerp and tree_low_cst.
11366         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
11367         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
11368         (c_getstr): Likewise.
11369         (std_expand_builtin_va_arg): Use int_size_in_bytes.
11370         (builtin_memcpy_read_str): Avoid unsigned warning.
11371         (expand_builtin_memcpy): Alignments are unsigned.
11372         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
11373         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
11374         * predict.c (expensive_function_p): LIMIT now unsigned.
11375         * resource.c (mark_target_live_regs): Make some vars unsigned.
11376         * sdbout.c: Use "unsigned int", not "unsigned".
11377         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
11378         (sdbout_source_line): Likewise.
11379         (sdbout_record_type_name): Remove "const" for NAME declaration.
11380         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
11381
11382 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
11383
11384         * calls.c (store_one_arg): Expand comment.
11385
11386 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11387
11388         * calls.c (store_one_arg): Make sure that the entire argument is
11389         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
11390
11391 2001-09-09  Richard Henderson  <rth@redhat.com>
11392
11393         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
11394
11395 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
11396
11397         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
11398
11399 2001-09-09  Richard Henderson  <rth@redhat.com>
11400
11401         * config/alpha/alpha.c (alpha_next_sequence_number): New.
11402         (alpha_this_literal_sequence_number): New.
11403         (alpha_this_gpdisp_sequence_number): New.
11404         (some_operand, input_operand): Add HIGH.
11405         (local_symbolic_operand): New.
11406         (alpha_encode_section_info): New.
11407         (alpha_legitimate_address_p): Allow LO_SUM.
11408         (alpha_legitimize_address): Generate HIGH+LO_SUM.
11409         (alpha_expand_mov): Likewise.
11410         (secondary_reload_class): Check memory_operand not general_operand
11411         for FP_REGS test.
11412         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
11413         (alpha_expand_unaligned_store): Likewise.
11414         (alpha_expand_unaligned_load_words): Likewise.
11415         (alpha_expand_unaligned_store_words): Likewise.
11416         (alpha_expand_block_clear): Likewise.
11417         (print_operand): Handle %#, %*, %H.
11418         (print_operand_address): Handle LO_SUM.
11419         (find_lo_sum): New.
11420         (alpha_does_function_need_gp): Use it.
11421         (alpha_expand_block_move): Fix signed compare warnings.
11422         (alpha_sa_mask, alpha_align_insns): Likewise.
11423         * config/alpha/alpha-protos.h: Update.
11424         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
11425         (MASK_EXPLICIT_RELOCS): New.
11426         (TARGET_SWITCHES): Add -mexplicit-relocs.
11427         (EXTRA_CONSTRAINT): Add 'T'.
11428         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
11429         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
11430         (ENCODE_SECTION_INFO): Out line.
11431         (REDO_SECTION_INFO_P): New.
11432         (STRIP_NAME_ENCODING): New.
11433         (ASM_OUTPUT_LABELREF): New.
11434         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
11435         (PREDICATE_CODES): Update.
11436         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
11437         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
11438         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
11439         builtin_setjmp_receiver_er, exception_receiver_1_er,
11440         call_value_osf_1_er): New patterns.
11441         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
11442         (movqi, movhi, movsi): Add explicit $31 base register to lda.
11443         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
11444         (FINAL_PRESCAN_INSN): New.
11445
11446 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
11447
11448         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
11449
11450 2001-09-08  Andreas Jaeger  <aj@suse.de>
11451
11452         * i386.h (TARGET_SWITCHES): Fix description.
11453
11454 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
11455
11456         * rs6000.c (num_insns_constant): Compute number of instructions
11457         more accurately.
11458
11459         * doc/install.texi: Explain AIX exception handling work-around.
11460         Update URL for AIX fixes.
11461
11462 2001-09-07  Jim Wilson  <wilson@redhat.com>
11463
11464         * alias.c (clear_reg_alias_info): New.
11465         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
11466         * rtl.h (clear_reg_alias_info): Declare.
11467
11468 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11469
11470         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
11471         available.
11472         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
11473         (m16m,edivm,emulm): Change declaration to match definition.
11474
11475 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
11476
11477         * reload.c (push_reload): Check for subreg_lowpart_p instead of
11478         SUBREG_BYTE being 0 when determining if the inner part of a subreg
11479         can be reloaded.
11480
11481 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11482
11483         * c-common.c (signed_or_unsigned_type): Handle machine mode types
11484         which have no corresponding C type.
11485         * fold_const.c (target_isinf,target_isnan,target_negative): Update
11486         the representation of 64-bit doubles to work with 64-bit ints.
11487
11488 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
11489
11490         * config/mips/mips.c (override_options): Do not override ISA when ABI
11491         specified if MIPS_CPU_STRING_DEFAULT was specified.
11492
11493 2001-09-07  Richard Henderson  <rth@redhat.com>
11494
11495         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
11496         (express_from_1): Wrap lines.
11497         * rtlanal.c (commutative_operand_precedence): Rename from
11498         operand_preference; export.
11499         * rtl.h: Declare it.
11500         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
11501         (simplify_binary_operation): Invoke simplify_plus_minus on
11502         (CONST (PLUS ...)) as well.
11503         (struct simplify_plus_minus_op_data): New.
11504         (simplify_plus_minus_op_data_cmp): New.
11505         (simplify_plus_minus): Use them.  Avoid infinite recursion with
11506         simplify_binary_operation wrt CONST.
11507
11508 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
11509
11510         * h8300-protos.h (general_operand_dst_push): Remove.
11511         * h8300.c (general_operand_dst_push): Likewise.
11512         * h8300.h (OK_FOR_T): Likewise.
11513         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
11514         * h8300.md (pushqi_h8300): New.
11515         (pushqi_h8300hs): Likewise.
11516         (pushqi): Likewise.
11517         (pushhi_h8300): Likewise.
11518         (pushhi_h8300hs): Likewise.
11519         (pushhi): Likewise.
11520
11521 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11522
11523         * genattrtab.c (attr_printf): First arg is unsigned.
11524         Clean up formatting of callers.
11525
11526 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
11527
11528         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
11529         registers.
11530
11531 2001-09-07  Andreas Jaeger  <aj@suse.de>
11532
11533         * i386.h (TARGET_SWITCHES): Fix descriptions.
11534
11535 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11536
11537         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
11538
11539 2001-09-06  Ira Ruben  <ira@apple.com>
11540
11541         Remove OP_IDENTIFIER.
11542         * tree.def (OP_IDENTIFIER): Remove.
11543         * tree.c (tree_node_kind enum): Remove op_id_kind.
11544         (tree_node_kind_names): Remove "op_identifiers".
11545         (make_node): Remove OP_IDENTIFIER test.
11546         (build_op_identifier): Removed because it isn't being used.
11547         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
11548         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
11549
11550 2001-09-06  Richard Henderson  <rth@redhat.com>
11551
11552         * simplify-rtx.c (simplify_binary_operation): Revert last change.
11553
11554 2001-09-06  Richard Henderson  <rth@redhat.com>
11555
11556         * simplify-rtx.c (simplify_binary_operation): Simplify contents
11557         of CONST.
11558
11559 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11560
11561         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
11562         number used for CR register.
11563
11564 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
11565                           Joern Rennecke (amylaar@cygnus.com)
11566
11567         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
11568         * h8300.c (initial_offset): Handle offset between RP and FP.
11569         (h8300_return_addr_rtx): New function.
11570         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
11571         return register.
11572         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
11573         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11574         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
11575         (CAN_ELIMINATE, REGISTER_NAMES):
11576         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
11577
11578 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
11579
11580         Remove TYPE_NONCOPIED_PARTS.
11581         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
11582         (struct tree_type): Remove noncopied_parts.
11583         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
11584         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
11585         (fixed_type_p): Remove.
11586         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
11587         (expand_expr, MODIFY_EXPR): Likewise.
11588         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
11589         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
11590
11591 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
11592
11593         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
11594         compiler warnings.
11595         (mask64_operand): Likewise.
11596         (includes_rldic_lshift_p): Likewise.
11597         (includes_rldicr_lshift_p): Likewise.
11598
11599 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
11600
11601         * objc/objc-act.c (build_message_expr): If a class method cannot
11602         be found, do not issue a warning if a corresponding instance
11603         method exists in the root class.
11604
11605 2001-09-05  Richard Henderson  <rth@redhat.com>
11606
11607         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
11608
11609 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
11610
11611         * function.c (ggc_mark_struct_function): Mark f->outer.
11612         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
11613         * integrate.c (output_inline_function): ... not here.
11614
11615 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
11616
11617         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
11618
11619         * i386.c (size_cost): New static variable.
11620         (override_function): Use size_cost when -Os is specified.
11621
11622         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
11623         properly;  Use current_function_calls_eh_return.
11624         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
11625         use leave to avoid dependency chain.
11626
11627         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
11628         get BB loop_depth instead of computing it from LOOP notes.
11629
11630         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
11631
11632 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11633
11634         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11635         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11636         UNALIGNED_DOUBLE_INT_ASM_OP): Define
11637
11638 2001-09-05  Jeffrey A Law  (law@cygnus.com)
11639             Jason Merrill (jason@redhat.com)
11640
11641         * stor-layout.c (layout_type): Complain if an array's size can
11642         not be represented in a size_t.
11643
11644         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
11645
11646 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
11647
11648         * gcc.c: (process_command) Add parentheses around assignment
11649         used as truth value.
11650
11651 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
11652
11653         * config/mips/mips.c (save_restore_insns): Don't mark any register
11654         save slots as unchanging if current_function_calls_eh_return.
11655
11656 2001-09-05  Richard Henderson  <rth@redhat.com>
11657
11658         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
11659         * config/alpha/alpha-protos.h: Declare it.
11660         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
11661         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
11662         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
11663         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
11664         (REG_OK_FOR_BASE_P): Select one of the above.
11665
11666 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
11667
11668         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
11669         (crti.o): Prefix name of object file with $(T).
11670         (crtn.o): Likewise.
11671
11672 2001-09-05  David S. Miller  <davem@redhat.com>
11673
11674         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11675         * config/sparc/linux64.h: Likewise.
11676
11677 2001-09-05  Andreas Jaeger  <aj@suse.de>
11678
11679         * doc/invoke.texi (i386 Options): -mwide-multiply is not
11680         available anymore, remove the documentation.
11681         (i386 Options): Fix typo, cleanup index entries.
11682
11683         * prefix.c (concat): Remove, we can use the version from liberty.
11684
11685 2001-09-05  Richard Henderson  <rth@redhat.com>
11686
11687         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
11688         New functions split out of md file expanders.
11689         * config/alpha/alpha-protos.h: Declare them.
11690         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
11691
11692 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11693
11694         * cppmacro.c (funlike_invocation_p): No need to restore context.
11695
11696 2001-09-04  Richard Henderson  <rth@redhat.com>
11697
11698         * reload.c (push_reload): Export.
11699         * reload.h (push_reload): Declare it.
11700
11701         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
11702         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11703         * config/alpha/alpha.c (alpha_legitimize_address): New.
11704         (alpha_legitimize_reload_address): Likewise.
11705         * config/alpha/alpha-protos.h: Declare them.
11706
11707 2001-09-04  Stan Shebs  <shebs@apple.com>
11708
11709         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
11710         * config/darwin.c (machopic_stub_name): Account for internally
11711         generated lib calls such as memcpy.
11712
11713 2001-09-04  Richard Henderson  <rth@redhat.com>
11714
11715         * unwind.h (_UA_END_OF_STACK): New flag.
11716         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
11717
11718 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
11719
11720         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
11721
11722 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
11723
11724         * config/mips/mips.c (save_restore_insns): Change base_offset to
11725         fp_offset in second call to mips_emit_frame_related_store.
11726
11727 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
11728
11729         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
11730         sometimes be represented as a NOTE of type
11731         NOTE_INSN_DELETED_LABEL.
11732         (Insns): Document NOTE_INSN_DELETED_LABEL.
11733
11734 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
11735
11736         * c-common.h (tree_dump_index): Add more comments.
11737         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
11738         (dump_option_value_info): New struct.
11739         (dump_options): New array.
11740         (dump_switch_p): Parse switch options symbolically.
11741         * doc/invoke.texi (-fdump-ast): Rename to ...
11742         (-fdump-tree): ... here. Document that options are symbolic, and
11743         not all are applicable.
11744
11745 2001-09-04  David S. Miller  <davem@redhat.com>
11746
11747         * config/sparc/sparc.md (define_splits): Kill constraints.
11748
11749         Cleanup redundant and unused insn attributes.
11750         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
11751         binary, and move.  Mark ialu as default.
11752         (commented out define_function_unit "alu"): Kill.
11753         (define_attr "use_clobbered"): Kill.
11754         (whole file): Kill address insn type references.  Replace
11755         all unary/binary/move references with ialu.
11756         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
11757         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
11758         TYPE_IALU.
11759
11760         Simplify length insn attribute and make more judicious use
11761         of insn attribute defaulting.
11762         * config/sparc/sparc.md (all insns with length > one): Mark as
11763         insn type multi if real instructions, else use default if
11764         it is a forced splitter.
11765         (all insns with length == one): Use default insn length.
11766         (all insns of type ialu): Use default insn type.
11767
11768         Fix erroneous insn attribute settings.
11769         (addx): Set insn type to misc.
11770         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
11771         const_umulsidi3_sp64): Set insn type to imul.
11772
11773         Track SFmode vs DFmode insns according to UltraSPARC
11774         scheduling rules.
11775         * config/sparc/sparc.md ("fptype"): New attribute, default
11776         to "single".
11777         (all DFmode single insns): Mark as fptype "double".
11778
11779 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
11780
11781         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
11782
11783 2001-09-03  Richard Henderson  <rth@redhat.com>
11784
11785         * function.h (struct function): Add arg_pointer_save_area_init.
11786         * function.c (expand_function_end): Init arg_pointer_save_area.
11787         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
11788         when called from a nested function.
11789
11790 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
11791
11792         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
11793         is enabled.
11794
11795 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11796
11797         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
11798
11799 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
11800
11801         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
11802         (emit_push_insn): Use specified padding direction when
11803         STACK_PUSH_CODE is POST_INC.
11804
11805         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
11806
11807 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11808
11809         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
11810
11811 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
11812
11813         * cppinit.c (cpp_start_read): Free the imacros list as we
11814         traverse it.  Don't free the chains before returning.
11815         (_cpp_push_next_buffer): Only try pushing buffers if we've
11816         completed -imacros handling.
11817
11818 2001-08-31  Eric Christopher  <echristo@redhat.com>
11819
11820         * gcc.c (handle_braces): Add explaination for abort.
11821
11822 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
11823
11824         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
11825         move adjustment of bitpos instead.
11826
11827 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
11828
11829         * function.c: Remove all_functions.  Make outer_function_chain
11830         static.
11831         (init_function_start): Don't add new function structure to
11832         all_functions.
11833         (find_function_data, push_function_context_to,
11834         pop_function_context_from, put_var_into_stack,
11835         trampoline_address): Update for changed structure element names.
11836         (push_function_context_to): Disentangle.
11837         (free_after_compilation): Also free F.
11838         (expand_dummy_function_end): Don't free cfun here.
11839         (put_var_into_stack): Comment why we can't use find_function_data here.
11840         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
11841         (mark_function_chain): Split into maybe_mark_struct_function and
11842         ggc_mark_struct_function.  Export the latter.
11843         (init_function_once): Mark from cfun and outer_function_chain;
11844         not all_functions.
11845
11846         * function.h (struct function): Kill next_global.  Rename next
11847         to outer.  All users updated to match.
11848         (all_functions, outer_function_chain): Don't declare.
11849
11850         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
11851         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
11852         don't touch f->inlinable, after calling rest_of_compilation.
11853
11854         * tree.h: Forward-declare struct function.  Prototype
11855         ggc_mark_struct_function.
11856
11857 2001-08-31  Kazu Hirata  <kazu@hxi.com>
11858
11859         * config/h8300/h8300.md (*andorhi3): Fix typos.
11860
11861 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11862
11863         * calls.c (emit_library_call_value): Don't use a fixed
11864         argument after VA_CLOSE, i.e. out of scope in traditional C.
11865
11866         * emit-rtl.c (gen_rtvec): Likewise.
11867
11868 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11869
11870         * Makefile.in (c-pragma.o): Depend on output.h.
11871         (reorg.o): Depend on except.h.
11872
11873         * c-pragma.c: Include output.h.
11874
11875         * reorg.c: Include except.h.
11876
11877         * unwind-dw2.c: Call __builtin_alloca, not alloca.
11878
11879 2001-08-31  Richard Henderson  <rth@redhat.com>
11880
11881         * sched-deps.c (add_dependence): Don't elide dependency if the
11882         conditional used by insn is modified in elem.
11883
11884 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
11885
11886         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
11887
11888 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
11889
11890         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
11891         dump_switch_p.
11892
11893 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
11894
11895         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
11896         function.
11897         (stormy16_asm_out_constructor): New function.
11898         (TARGET_ASM_CONSTRUCTOR): Define.
11899         (TARGET_ASM_DESTRUCTOR): Define.
11900
11901 2001-08-31  Andreas Jaeger  <aj@suse.de>
11902
11903         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
11904         * loop.c (add_label_notes): Likewise.
11905         * reload.c (find_reloads): Likewise.
11906         * config/sh/sh.c (machine_dependent_reorg): Likewise.
11907
11908 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
11909
11910         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
11911         code here.  Take _Unwind_{W,Sw}ord*.
11912         (read_encoded_value_with_base): Use them.
11913         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
11914         words.
11915         (extract_cie_info): Simplify read_?leb128 handling.
11916         (execute_stack_op, execute_cfa_program): Likewise.
11917         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
11918
11919 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
11920
11921         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
11922         the frame pointer to pop the stack if convenient.
11923
11924         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
11925         Don't use post-increment before combine.
11926         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
11927         a call-saved register.
11928
11929 2001-08-31  Andreas Jaeger  <aj@suse.de>
11930
11931         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
11932         code was correct.
11933
11934 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
11935
11936         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
11937         not DIV/MOD, of course.
11938
11939 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
11940
11941         * rtl.def: Undo my patch commited 2001-08-27.
11942
11943         * genattrtab.c: Ditto.
11944
11945         * rtl.h: Ditto.
11946
11947         * sched-int.h: Ditto.
11948
11949         * target-def.h: Ditto.
11950
11951         * target.h: Ditto.
11952
11953         * haifa-sched.c: Ditto.
11954
11955         * sched-rgn.c: Ditto.
11956
11957         * sched-vis.c: Ditto.
11958
11959         * Makefile.in: Ditto.
11960
11961         * doc/md.texi: Ditto.
11962
11963         * doc/tm.texi: Ditto.
11964
11965         * doc/contrib.texi: Ditto.
11966
11967         * doc/gcc.texi: Ditto.
11968
11969         * genattrtab.h: Remove it.
11970
11971         * genautomata.c: Remove it.
11972
11973         * genattr.c: Undo my patch and Richard Henderson's patch commited
11974         2001-08-27.
11975
11976 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
11977
11978         * config.gcc (h8300-*-elf*): New case.
11979         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
11980         (SUBTARGET_CPP_SPEC): Define.
11981         (EXTRA_SPECS): Define.
11982         (SUBTARGET_EXTRA_SPECS): Define.
11983         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
11984         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
11985
11986 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
11987
11988         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
11989         (LIB2FUNCS_EXTRA): Define.
11990         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
11991         config/h8300/fixunssfsi.c: New file.
11992
11993 2001-08-30  Kazu Hirata  <kazu@hxi.com>
11994
11995         * config/h8300/h8300.md (zero_extendqihi2): Changes to
11996         define_expand to accommodate target-specific attributes.
11997         (anonymous zero_extendqihi2 patterns): New.
11998
11999 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
12000
12001         * h8300.md (*andorhi3): New pattern.
12002
12003 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
12004
12005         * h8300.c (dosize): Fix test for "sub".
12006
12007 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
12008
12009         * c-typeck.c (pointer_diff): Try to eliminate common term before
12010         doing conversions.
12011
12012 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
12013
12014         * config/arm/arm.c (arm_compute_initial_elimination_offset):
12015         Account for the saves of the FP registers.
12016
12017         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
12018         (TEXT_SECTION_ASM_OP): Define.
12019         (INIT_SECTION_ASM_OP): Define.
12020         (FINI_SECTION_ASM_OP): Define.
12021         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
12022         (RDATA_SECTION_FUNCITON): Provide prototype.
12023
12024 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
12025
12026         * reload1.c (move2add_note_store): Correct typo checking for
12027         argument pushes.
12028
12029 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
12030
12031         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
12032         note should not be considered outside the libcall block.
12033
12034 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12035
12036         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
12037
12038 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12039
12040         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
12041
12042 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12043
12044         * config/h8300/h8300-protos.h: Add a prototype for
12045         emit_logical_op.
12046         * config/h8300/h8300.c (emit_logical_op): New.
12047         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
12048         (andsi3): Likewise.
12049         (iorhi3): Likewise.
12050         (iorsi3): Likewise.
12051         (xorhi3): Likewise.
12052         (xorsi3): Likewise.
12053
12054 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12055
12056         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
12057         comparison with rtx INTVAL.
12058         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
12059         expression.
12060         * pa.h (FUNCTION_ARG_SIZE): Likewise.
12061
12062 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12063
12064         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
12065         comment typos.
12066
12067 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12068
12069         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
12070         (reg n) to (mem (pre_dec (reg n))
12071         (anonymous movsi pattern): Likewise.
12072
12073 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12074
12075         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
12076
12077 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12078
12079         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
12080         several special constants.
12081
12082 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12083
12084         * config/h8300/lib1funcs.asm: Fix comment typos.
12085
12086 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12087
12088         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
12089         Fix format specifier warnings.
12090
12091         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
12092         inet_makeaddr, semctl): Prototype.
12093
12094         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
12095         (save_restore_insns): Use base_offset, not gp_offset.
12096
12097         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
12098         (ASM_OUTPUT_BYTE): Fix format specifier warning.
12099
12100 2001-08-29  Richard Henderson  <rth@redhat.com>
12101
12102         * bb-reorder.c (function_tail_eff_head): New.
12103         (record_effective_endpoints): Set it.
12104         (fixup_reorder_chain): Use it.
12105
12106 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12107
12108         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
12109
12110 2001-08-28  Dale Johannesen  <dalej@apple.com>
12111
12112         * config/darwin.c (machopic_function_base_name): Add const
12113         qualifier to a string.
12114         (darwin_encode_section_info): Ditto.
12115
12116 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12117
12118         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
12119         function definition.
12120
12121 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
12122
12123         * df.h (struct df): Add rts_order variable.
12124
12125         * df.c (df_visit_next_rts): New function.
12126         (df_visit_next): Renamed to df_visit_next_rc
12127         (df_analyse_1): Allocate/compute/free rts_order as well.
12128         (df_rd_global_compute): Use df_visit_next_rc instead of
12129         df_visit_next.
12130         (df_ru_global_compute): Use df_visit_next_rts instead of
12131         df_visit_next.
12132
12133         * flow.c (flow_reverse_top_sort_order_compute): New function.
12134
12135         * basic-block.h: Add prototype.
12136
12137 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
12138
12139         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
12140         blocks, the BB_REACHABLE is now set, rather than aux being
12141         non-NULL. Update the test to reflect this.
12142
12143 2001-08-28  Eric Christopher  <echristo@redhat.com>
12144
12145         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
12146         config/mips/crti.asm: Ditto.
12147
12148 2001-08-28  Eric Christopher <echristo@redhat.com>
12149             Richard Henderson <rth@redhat.com>
12150
12151         * c-pragma.h (add_weak): Move prototype from here...
12152         * output.h (add_weak): ... to here.
12153         * varasm.c (add_weak): Fix typo.
12154         * config/mips/crti.asm: New file.
12155         * config/mips/crtn.asm: Ditto.
12156         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
12157         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
12158         (INVOKE__main): Ditto.
12159         (INIT_SECTION_ASM_OP): New.
12160         (FINI_SECTION_ASM_OP): Ditto.
12161         (STARTFILE_SPEC): Add crti.
12162         (ENDFILE_SPEC): Add crtn.
12163         * config/mips/elf64.h: Same.
12164         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
12165         Remove.
12166         * config/mips/vxworks.h: Ditto.
12167         * config/mips/t-elf: Support crti and crtn.
12168
12169 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12170
12171         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
12172         INSN_LIST.
12173
12174 2001-08-28  Richard Henderson  <rth@redhat.com>
12175
12176         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
12177         (one_cmplbi2 splitter): Remove redundant test.
12178
12179 2001-08-28  Dale Johannesen  <dalej@apple.com>
12180
12181         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
12182
12183 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
12184
12185         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
12186
12187 2001-08-28  Stan Shebs  <shebs@apple.com>
12188
12189         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
12190         (UNALIGNED_SHORT_ASM_OP): Define.
12191         (UNALIGNED_INT_ASM_OP): Define.
12192
12193 2001-08-28  Will Cohen  <wcohen@redhat.com>
12194
12195         * config/rs6000/rs6000.md (store_multiple): Correct RTL
12196         generation for first set.
12197
12198 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
12199
12200         * flow.c (redirect_edge_succ_nodup): Return new edge.
12201         (try_simplify_condjump): Use new edge.
12202         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
12203
12204         * cse.c (cse_basic_block): Skip note instructions.
12205
12206 2001-08-27  Richard Henderson  <rth@redhat.com>
12207
12208         * combine.c (combine_simplify_rtx): Don't reverse condition
12209         if there is no reverse for the condition.
12210         (simplify_comparison): Don't simplify subregs from INT to FP.
12211
12212         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
12213         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
12214         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
12215         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
12216         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
12217         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
12218
12219 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
12220
12221         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
12222         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
12223         (pushqi1): New.
12224         (adddi_dilshr32, adddi_dishl32): Only data register can be
12225         source for mem destination.
12226
12227         * expmed.c (store_bit_field): Ignore adjustment to bitpos
12228         and use bitnum to decide about register move.
12229
12230 2001-08-27  Richard Henderson  <rth@redhat.com>
12231
12232         * genattr.c (main): Emit state_t even when not doing scheduling.
12233
12234 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
12235             Richard Henderson  <rth@redhat.com>
12236
12237         * gcse.c (reg_first_set, reg_last_set): Replace with ...
12238         (reg_avail_info, current_bb): ... these.
12239         (oprs_unchanged_p, record_last_reg_set_info): Use them.
12240         (compute_hash_table): Likewise.
12241
12242 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
12243
12244         * flow.c (verify_flow_info): Use checksums to verify edges.
12245
12246 2001-08-27  Richard Henderson  <rth@redhat.com>
12247
12248         * genautomata.c (expand_automata): Always create a description.
12249
12250 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
12251
12252         * optabs.c (expand_binop): Correctly handle the carry in multiword
12253         add/subtract operations.
12254
12255 2001-08-27  Fred Fish  <fnf@be.com>
12256
12257         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
12258         __SIZE_TYPE__.
12259
12260 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
12261
12262         * reload.c (find_reloads_toplev): Back out this change:
12263
12264         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
12265
12266         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
12267         mem if the address is a mode_dependent_address_p.
12268
12269 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
12270
12271         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
12272         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
12273         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
12274         RTL constructions.
12275
12276         * genattr.c (main): New variable num_insn_reservations.  Increase
12277         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
12278         pipeline hazard recognizer interface.
12279
12280         * genattrtab.h: New file.
12281
12282         * genattrtab.c: Include genattrtab.h.
12283         (attr_printf, check_attr_test, make_internal_attr,
12284         make_numeric_value): Move protypes into genattrtab.h.  Define them
12285         as external.
12286         (num_dfa_decls): New global variable.
12287         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
12288         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
12289         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
12290         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
12291
12292         * genautomata.c: New file.
12293
12294         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
12295
12296         * sched-int.h: (curr_state): Add the external definition for
12297         automaton pipeline interface.
12298         (haifa_insn_data): Add comments for members blockage and units.
12299
12300         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12301         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12302         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12303         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12304         TARGET_SCHED_DFA_POST_CYCLE_INSN,
12305         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12306         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
12307         macros.
12308         (TARGET_SCHED): Use the new macros.
12309
12310         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
12311         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
12312         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
12313         dfa_bubble): New members in gcc_target.sched.
12314
12315         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
12316         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
12317         (insn_queue): Redefine it as pointer to array.
12318         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
12319         INSN_QUEUE_SIZE.
12320         (max_insn_queue_index_macro_value): New variable.
12321         (curr_state, dfa_state_size, ready_try): New varaibles for
12322         automaton interface.
12323         (ready_element, ready_remove, max_issue): New function prototypes
12324         for automaton interface.
12325         (choose_ready): New function prototype.
12326         (insn_unit, blockage_range): Add comments.
12327         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
12328         FUNCTION_UNITS_SIZE == 0.
12329         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
12330         actual_hazard, potential_hazard): Add comments.
12331         (insn_cost): Use cost -1 as undefined value.  Remove
12332         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
12333         pipeline interface.
12334         (ready_element, ready_remove): New functions for automaton
12335         interface.
12336         (schedule_insn): Add new code for automaton pipeline interface.
12337         (queue_to_ready): Add new code for automaton pipeline interface.
12338         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
12339         (debug_ready_list): Print newline when the queue is empty.
12340         (max_issue): New function for automaton pipeline interface.
12341         (choose_ready): New function.
12342         (schedule_block): Add new code for automaton pipeline interface.
12343         Print ready list before scheduling each insn.
12344         (sched_init): Add new code for automaton pipeline interface.
12345         Initiate insn cost by -1.
12346         (sched_finish): Free the current automaton state and finalize
12347         automaton pipeline interface.
12348
12349         * sched-rgn.c: Include target.h.
12350         (init_ready_list, new_ready, debug_dependencies): Add new code for
12351         automaton pipeline interface.
12352
12353         * sched-vis.c: Include target.h.
12354         (get_visual_tbl_length): Add code for automaton interface.
12355         (target_units, print_block_visualization):  Add comments.
12356
12357         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
12358         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
12359         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
12360         (getruntime.o, genautomata.o): New entries.
12361         (genattrtab.o): Add new dependency file genattrtab.h.
12362         (genattrtab): Add new dependencies.  Link it with `libm.a'.
12363         (getruntime.o, hashtab.o): New entries for canadian cross.
12364
12365         * doc/md.texi: Description of automaton based model.
12366
12367         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
12368         Add comments.
12369         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12370         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12371         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12372         TARGET_SCHED_DFA_POST_CYCLE_INSN,
12373         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12374         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12375         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
12376         hook descriptions.
12377         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
12378         MAX_DFA_ISSUE_RATE): New macro descriptions.
12379
12380         * doc/contrib.texi: Add dfa based scheduler contribution.
12381
12382         * doc/gcc.texi: Add more information about genattrtab.
12383
12384 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
12385
12386         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
12387         an RTL basic block.
12388
12389 2001-08-27  Richard Henderson  <rth@redhat.com>
12390
12391         * function.c (expand_function_end): Don't init arg_pointer_save_area.
12392         (get_arg_pointer_save_area): New.  Create an init it here.
12393         (fix_lexical_addr): Use it.
12394         * function.h: Declare it.
12395         * builtins.c (expand_builtin_setjmp_receiver): Use it.
12396         * stmt.c (expand_nl_goto_receiver): Use it.
12397
12398 2001-08-27  Richard Henderson  <rth@redhat.com>
12399
12400         * final.c (final_scan_insn): Don't enter APP_ON mode for
12401         empty asm strings.
12402
12403         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
12404         alignment for assemble_integer for DW_EH_PE_aligned.
12405         * except.c (output_function_exception_table): Likewise.
12406
12407 2001-08-26  Andreas Jaeger  <aj@suse.de>
12408
12409         * c-tree.h: Add prototyp for c_sizeof_nowarn.
12410
12411 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
12412
12413         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
12414
12415 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
12416
12417         * config/rs6000/rs6000.c (mask_operand): Rewrite without
12418         bit-shifting loop.
12419         (mask64_operand): Likewise.
12420         (rldic_operand): Delete.
12421         (includes_lshift64_p): Delete.
12422         (includes_rldic_lshift_p): New function.
12423         (includes_rldicr_lshift_p): New function.
12424         (print_operand): Don't call rldic_operand in case 'W'.
12425         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
12426         (includes_lshift64_p): Remove.
12427         (includes_rldic_lshift_p): Declare.
12428         (includes_rldicr_lshift_p): Declare.
12429         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
12430         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
12431         Replace match_operand rldic_operand predicate with
12432         const_int_operand.  Replace includes_lshift64_p condition with
12433         includes_rldic_lshift_p.
12434         <ashldi3_internal 64 bit rldicr patterns>: New.
12435
12436 2001-08-27  Andreas Jaeger  <aj@suse.de>
12437
12438         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
12439         * errors.c: Likewise.
12440         * final.c: Likewise.
12441         * dwarf2asm.c: Likewise.
12442         * doprint.c (checkit): Likewise.
12443         * diagnostic.c: Likewise.
12444         * collect2.c: Likewise.
12445         * calls.c: Likewise.
12446         * c-semantics.c (build_stmt): Likewise.
12447         * c-format.c (status_warning): Likewise.
12448         * c-errors.c (pedwarn_c99): Likewise.
12449         * builtins.c (validate_arglist): Likewise.
12450         * config/pj/pj.c (pj_printf): Likewise.
12451         * fix-header.c: Likewise.
12452         * gcc.c: Likewise.
12453         * gcov.c (fnotice): Likewise.
12454         * gensupport.c (message_with_line): Likewise.
12455         * mips-tfile.c: Likewise.
12456         * protoize.c (notice): Likewise.
12457         * read-rtl.c (fatal_with_file_and_line): Likewise.
12458         * rtl-error.c: Likewise.
12459         * tradcpp.c: Likewise.
12460         * tree.c: Likewise.
12461         * cp/tree.c (build_min_nt): Likewise.
12462         (build_min): Likewise.
12463         * cp/lex.c: Likewise.
12464         * cp/errfn.c: Likewise.
12465         * cp/rtti.c (create_pseudo_type_info): Likewise.
12466
12467 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
12468
12469         * df.c (df_uses_record): Return after recording all uses
12470         in ASM_OPERANDS.
12471
12472 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
12473
12474         * df.c (df_insn_modify): Realloc the INSN table here, if
12475         necessary, here, too.
12476
12477 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
12478
12479         * config/mips/mips.c (mips_function_value): Handle complex return
12480         values.
12481
12482 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
12483
12484         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
12485         unshared.
12486         * reload.c (make_memloc): Copy result if it is still
12487         reg_equiv_memory_loc[regno] on return.
12488         (subst_reloads) [ENABLE_CHECKING]: Check that none of
12489         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
12490         reg_equiv_mem are modified by the substitutions.
12491
12492 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12493
12494         * predict.c (expensive_function_p): New.
12495         * rtl.h (expensive_function_p): Declare.
12496         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
12497         (use_fast_prologue_epilogue): New static variable.
12498         (expand_prologue): Set it; emit short prologues if unset.
12499         (expand_epilogue): Likewise.
12500
12501 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
12502
12503         * config.gcc: Add stormy16-*-elf case.
12504         * config/stormy16/stormy-abi: New file.
12505         * config/stormy16/stormy16-lib2.c: New file.
12506         * config/stormy16/stormy16-protos.h: New file.
12507         * config/stormy16/stormy16.c: New file.
12508         * config/stormy16/stormy16.h: New file.
12509         * config/stormy16/stormy16.md: New file.
12510         * config/stormy16/t-stormy16: New file.
12511
12512 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
12513
12514         * i386.h (no-accumulate-outgoing-args): Use proper mask.
12515
12516 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
12517
12518         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
12519         descriptor members are pointer size, not constant 4.
12520         * config/rs6000/rs6000.md (define_splits): Remove more unused
12521         constraints.
12522
12523 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12524
12525         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
12526
12527 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
12528
12529         * cp/rtti.c (VPARAMS): Fix parameter.
12530
12531 2001-08-24  Zack Weinberg  <zackw@panix.com>
12532
12533         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
12534         to zero.
12535         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
12536         to switch.
12537         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
12538         in if controlling use of insv.
12539         (extract_bit_field): Likewise, for extv and extzv.
12540
12541 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
12542
12543         * i386.md (movcc peep2): Fix load of 0.
12544
12545 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12546
12547         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
12548         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
12549
12550 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
12551
12552         * c-pragma.h: Move weak_syms and weak_decls...
12553         * varasm.c: ...here.  Now static.
12554         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
12555         depend on HANDLE_PRAGMA_WEAK.
12556
12557         * c-common.c (c_alignof, c_alignof_expr): Move here...
12558         * c-typeck.c: ...from here.
12559         * c-tree.h, c-common.h: Adjust.
12560
12561 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
12562
12563         * config/ia64/ia64.c (rws_update): If !pred, set write_count
12564         instead of incrementing it.
12565
12566         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
12567         asm ready, don't try to move them all into the same array element.
12568
12569 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12570
12571         * function.c (thread_prologue_and_epilogue_insns): Avoid
12572         fallthru flag on edge to exit.
12573
12574         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
12575
12576         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
12577         dead edges.
12578
12579 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
12580
12581         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
12582         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
12583         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
12584         Remove prototype.
12585
12586 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
12587
12588         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
12589         replace "GNU CC" with "GCC".
12590
12591 2001-08-23  Richard Henderson  <rth@redhat.com>
12592
12593         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
12594         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
12595         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
12596         Need GR between FR and not GR_AND_FR.
12597         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
12598         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
12599         AR regs before GR regs.
12600         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
12601         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
12602         (REGISTER_MOVE_COST): Update.
12603         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
12604
12605 2001-08-23  Richard Henderson  <rth@redhat.com>
12606
12607         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
12608         a register class.
12609
12610 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
12611
12612         * reload1.c (emit_reload_insns): Don't look for notes
12613         on a NULL store_insn.
12614
12615 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12616
12617         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
12618         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
12619         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
12620         format specifier warnings.
12621         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
12622
12623 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
12624
12625         * config/i386/i386-protos.h: Correct declaration of
12626         i386_pe_asm_named_section.
12627
12628 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12629
12630         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
12631         variable i.
12632         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
12633
12634 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12635
12636         * cpperror.c (print_location): Don't show _Pragma.
12637         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
12638         and file change callback generation here.
12639         (stack_include_file): Update use of cpp_push_buffer.
12640         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
12641         (struct cpp_buffer): Remove type, pfile members.
12642         * cppinit.c (cpp_handle_option): Use free_chain.
12643         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
12644         (skip_escaped_newlines, get_effective_char, lex_percent): Take
12645         a cpp_reader rather than a cpp_buffer.
12646         (skip_escaped_newlines, get_effective_char, skip_block_comment,
12647         skip_line_comment, parse_string, lex_percent, lex_dot,
12648         _cpp_lex_token): Update accordingly.
12649         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
12650         generation here.
12651         (cpp_push_buffer): Update prototype.
12652         (run_directive): Update use of cpp_push_buffer.
12653         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
12654         handle_assertion): Update use of run_directive.
12655         * cpplib.h (enum cpp_buffer_type): Remove.
12656         (cpp_push_buffer): Update prototype.
12657         * fix-header.c (read_scan_file): Update.
12658
12659 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12660
12661         * gcc.c (struct prefix_list): Change prefix to const char *.
12662
12663 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12664
12665         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
12666
12667 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
12668
12669         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
12670         from a new MEM.
12671
12672         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
12673         a squeezable note.
12674         * rtl.h: Adjust.
12675         * ifcvt.c (dead_or_predicable): Adjust.
12676         * loop.c (find_and_verify_loops): Adjust.
12677         * stmt.c (expand_end_case): Adjust.
12678         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
12679         head and end insn pointers in the basic block, not just local copies.
12680         (merge_blocks_move_predecessor_nojumps): Likewise.
12681
12682 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
12683
12684         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
12685         bitmap.h, builtin-types.def, builtins.c, builtins.def,
12686         c-aux-info.c, c-common.c, c-common.def, c-common.h,
12687         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
12688         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
12689         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
12690         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
12691         conditions.h, config.gcc, configure.frag, configure.in,
12692         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
12693         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
12694         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
12695         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
12696         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
12697         emit-rtl.c, errors.c, errors.h, except.c, except.h,
12698         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
12699         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
12700         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
12701         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
12702         gencheck.c, gencodes.c, genconfig.c, genemit.c,
12703         genextract.c, genflags.c, gengenrtl.c, genmultilib,
12704         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
12705         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
12706         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
12707         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
12708         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
12709         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
12710         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
12711         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
12712         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
12713         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
12714         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
12715         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
12716         params.h, predict.c, predict.def, predict.h, prefix.c,
12717         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
12718         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
12719         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
12720         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
12721         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
12722         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
12723         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
12724         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
12725         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
12726         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
12727         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
12728         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
12729         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
12730         xcoffout.h: replace "GNU CC" with "GCC".
12731
12732 2001-08-21  Richard Henderson  <rth@redhat.com>
12733
12734         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
12735         (final_scan_insn): Consider jump tables data even if we have no
12736         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
12737         ADDR_VEC_ALIGN.
12738         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
12739         (ASM_OUTPUT_CASE_END): Remove.
12740         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
12741         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
12742         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
12743
12744 2001-08-21  Richard Henderson  <rth@redhat.com>
12745
12746         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
12747         at barrier insns.  Emit stop bits before barriers.
12748
12749         * flow.c (flow_find_cross_jump): Don't consider unconditional
12750         return insns for commoning.
12751
12752         * final.c (compute_alignments): Fix typo.
12753
12754         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
12755         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
12756         (store_bit_field): Use mode_for_extraction more places.
12757         (extract_bit_field): Likewise.
12758
12759 2001-08-21  Zack Weinberg  <zackw@panix.com>
12760
12761         * caller-save.c: Don't include insn-codes.h.
12762         (reg_save_code, reg_restore_code): Make arrays of int.
12763         All uses updated to match.
12764         (insert_save, insert_restore): No need to initialize "code"
12765         variable upon declaration.
12766         * Makefile.in: update dependencies; fix typo in clean rule.
12767
12768 2001-08-21  Richard Henderson  <rth@redhat.com>
12769
12770         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
12771         (merge_if_block): Handle fallout from same.
12772
12773 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12774
12775         * builtins.c (type_to_class): Fix typo in last change.
12776
12777 2001-08-21  Richard Henderson  <rth@redhat.com>
12778
12779         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
12780         ia64_asm_output_label.
12781
12782         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
12783         copy of gp while the real gp register contains garbage.
12784
12785 2001-08-21  Zack Weinberg  <zackw@panix.com>
12786
12787         * expmed.c (mode_for_extraction): New function.
12788         (store_bit_field, extract_bit_field): Use it.
12789         * expr.h: Prototype it and provide an enum for its first argument.
12790
12791         * combine.c, function.c, recog.c: Don't include insn-codes.h.
12792         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
12793         and digging through the insn_data tables.
12794         * Makefile.in: Update dependencies.
12795
12796 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12797
12798         * cppfiles.c (stack_include_file): line-map.c now handles include
12799         depth.
12800         (handle_missing_handler): Similarly.
12801         (_cpp_execute_include): Similarly.
12802         (_cpp_pop_file_buffer): Similarly.
12803         * cpphash.h (struct cpp_reader): Remove system_include_depth,
12804         buffer_stack_depth and include_depth.
12805         * cpplib.c (do_include_common): line-map.c now handles include depth.
12806         (cpp_push_buffer): Similarly.
12807         (_cpp_pop_buffer): Similarly.
12808         * cppmacro.c (builtin_macro): Update.
12809         * line-map.c (init_line_maps): Set depth.
12810         (add_line_map): Increment "used" earlier.  Update and use the
12811         include depth.
12812         (trace_include): Use the include depth.
12813         * line-map.h (struct line_maps): New member depth.
12814
12815 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12816
12817         * cppfiles.c (stack_include_file): Don't handle -H here.
12818         * cppinit.c (cpp_start_read): Set include tracing after
12819         cpp_post_options and after stacking the main file.
12820         * line-map.c (trace_include): New.
12821         (init_line_maps, add_line_map): Update.
12822         * line-map.h (struct line_maps): New member trace_includes.
12823
12824 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12825
12826         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
12827         * cppfiles.c (stack_include_file): Only stack a file if there
12828         is something to do.  Return a boolean indicating whether a
12829         buffer was stacked or not.
12830         (_cpp_execute_include): Similarly.
12831         (_cpp_read_file): Similarly.
12832         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
12833
12834 2001-08-21  Sam Steingold  <sds@gnu.org>
12835
12836         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
12837         (RECACHE): keep obufp_before_macroname up to date
12838
12839 2001-08-21  Zack Weinberg  <zackw@panix.com>
12840
12841         * stmt.c: Don't include insn-codes.h.
12842         (expand_end_case): Machine specific logic moved to expr.c.
12843         No need to worry about __builtin_classify_type.
12844         (check_for_full_enumeration_handling, emit_case_nodes):
12845         Kill #if 0 blocks.
12846
12847         * builtins.o (expand_builtin_classify_type): Split up so code
12848         can be shared with fold_builtin_classify_type.
12849         (type_to_class, fold_builtin_classify_type): New functions.
12850         (fold_builtins): Handle __builtin_classify_type.
12851
12852         * expr.c (do_tablejump): Now static.
12853         (case_values_threshold, try_casesi, try_tablejump): New;
12854         code mostly from stmt.c (expand_end_case).
12855         (expr.h): Update prototypes.
12856
12857         * Makefile.in (stmt.o): Update dependencies.
12858
12859 2001-08-21  Will Cohen  <wcohen@redhat.com>
12860
12861         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
12862         declaration of variable i.
12863         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
12864         declaration of variable i.
12865
12866 2001-08-21  Richard Henderson  <rth@redhat.com>
12867
12868         * crtstuff.c: Fix thinko last change.  Move list tails to start
12869         of CRT_END section.  Tidy ifdefs.
12870         (__EH_FRAME_BEGIN__): Always static for ELF.
12871         (__do_global_ctors_1): Rename from __frame_dummy.
12872         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
12873         name change; don't hide __EH_FRAME_BEGIN__.
12874
12875 2001-08-21  Richard Henderson  <rth@redhat.com>
12876
12877         * gdbinit.in: Move break on exit after break on fancy_abort.
12878
12879         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
12880         sized types.
12881
12882 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12883
12884         * cpphash.h (_cpp_push_next_buffer): New.
12885         * cppinit.c (do_includes): Remove.
12886         (push_include, free_chain, _cpp_push_next_buffer): New.
12887         (cpp_start_read): Use them to rework command line option handling.
12888         (cpp_handle_option): Combine handling of -include and -imacros.
12889         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
12890         appropriate.  Always insert missing \n at EOF.
12891         * cpplib.c (start_directive): Get the directive position right.
12892         * cppmain.c (cb_file_change): Always print the first line, unless
12893         preprocessed.
12894
12895 2001-08-20  Andreas Jaeger  <aj@suse.de>
12896
12897         * profile.c (compute_branch_probabilities): Remove extra new-line
12898         in error message.
12899         * flow.c (verify_flow_info): Likewise.
12900
12901 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
12902
12903         * basic-block.h (basic_block): Add new field 'flags'.
12904         (BB_REACHABLE): Define.
12905         (expunge_block): Declare.
12906         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
12907         (EXIT_BLOCK_PTR): Ditto.
12908         (expunge_block): Remove static declaration.
12909         (cleanup_cfg): Clear bb->aux on every basic block.
12910         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
12911         computing reachability.
12912         (delete_unreachable_blocks): Delete block b if b->flags has
12913         BB_REACHABLE unset.
12914
12915 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
12916
12917         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
12918
12919 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12920
12921         * sparc.c (sparc_variable_issue): Fix typo in last change.
12922
12923 2001-08-20  Richard Henderson  <rth@redhat.com>
12924
12925         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
12926
12927 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12928
12929         * pa.h (RETURN_IN_MEMORY): Improve comment.
12930
12931 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
12932
12933         * doc/invoke.texi (Profiling options): Clarify the interactions
12934         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
12935
12936 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
12937
12938         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
12939         command.
12940
12941 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12942
12943         * gcc.c (make_relative_prefix): Allocate a sufficiently large
12944         buffer.
12945
12946 2001-08-20  Richard Henderson  <rth@redhat.com>
12947
12948         * final.c (end_final): Fix typo last change.
12949
12950 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12951
12952         * cppinit.c (init_standard_includes): The returned buffer
12953         is already malloc-ed.
12954         * gcc.c (add_prefix): Similarly.
12955         * prefix.c (translate_name): Update to support clear buffer
12956         ownership rules.
12957         (update_path): Similarly.  Be sure to free any newly allocated
12958         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
12959         (tr): New function.
12960         * prefix.h (update_path): Update prototype and document.
12961         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
12962         up and update to new buffer ownership rules.
12963         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
12964
12965 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
12966
12967         * final.c (compute_alignments): New function.
12968         (init_insn_lengths): Do not care label_align.
12969         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
12970         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
12971         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
12972         (shorted_branches): Realloc label_align array; do
12973         not call init_insn_lengths; Do not care about loop alignments.
12974         * output.h (compute_alignments): Declare.
12975         * toplev.c (rest_of_compilation): Call compute_alignments.
12976         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
12977
12978         * predict.c (block_info_def): Add npredecesors, remove nvisited;
12979         change visited to tovisit.
12980         (propagate_freq): Use faster traversing algorithm.
12981         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
12982         to tovisit; reverse meaning.
12983
12984         * predict.c (struct block_info_def): Remove nvisited.
12985         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
12986         (estimate_bb_frequencies): Call mark_dfs_back_edges.
12987
12988 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
12989
12990         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
12991         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
12992         (TARGET_FUSED_MADD): New.
12993         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
12994         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
12995         the multiply-add instructions.
12996
12997 2001-08-19  Richard Henderson  <rth@redhat.com>
12998
12999         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
13000         is aligned to pointer size.
13001
13002 2001-08-19  Richard Henderson  <rth@redhat.com>
13003
13004         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
13005         display markers during final schedule.
13006
13007 2001-08-19  Richard Henderson  <rth@redhat.com>
13008
13009         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
13010
13011 2001-08-19  Richard Henderson  <rth@redhat.com>
13012
13013         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
13014         in the same string.
13015         (ASM_NAME_TO_STRING): Remove.
13016         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
13017         in the same string.  Remove support for expressions.
13018
13019 2001-08-19  Richard Henderson  <rth@redhat.com>
13020
13021         * config/i386/i386.md (tablejump): Make an expander; handle
13022         pic relative addressing here.
13023         (tablejump_1): Rename from tablejump_pic.
13024         (casesi): Remove.
13025
13026 2001-08-19  Richard Henderson  <rth@redhat.com>
13027
13028         * regclass.c (fix_register): Fix typo.
13029
13030 2001-08-18  Richard Henderson  <rth@redhat.com>
13031
13032         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
13033         (struct _Unwind_Context): Expand br_loc to hold it.
13034         (uw_frame_state_for): Handle leaf functions better.
13035         (uw_update_reg_address): Update for br_loc change.
13036
13037 2001-08-18  Richard Henderson  <rth@redhat.com>
13038
13039         * crtstuff.c: Move list heads before code that uses them.
13040         (__JCR_LIST__): Remove initial null.
13041         (frame_dummy, __frame_dummy): Do java registration here ...
13042         (__do_global_ctors_aux): ... not here.
13043
13044         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
13045         (__do_global_dtors_aux): Update to match.
13046         (__JCR_LIST__, __do_jv_register_classes): New.
13047         (.init): Call it.
13048         * config/ia64/crtend.asm (__JCR_END__): New.
13049         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
13050         instead of an indirect LTOFF22 reloc.
13051
13052 2001-08-18  Richard Henderson  <rth@redhat.com>
13053
13054         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
13055         * regclass.c (init_reg_sets_1): Fix typo.
13056         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
13057         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
13058         (ia64_compute_frame_size): Make ar.unat live when in use.
13059         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
13060         for ar.pfs; remove ar.unat handling.
13061         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
13062         call-saved.
13063         (PREDICATE_CODES): Add ar_pfs_reg_operand.
13064         * config/ia64/ia64-protos.h: Update decls.
13065         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
13066         (sibcall_pic): Likewise.
13067
13068 2001-08-18  Richard Henderson  <rth@redhat.com>
13069
13070         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
13071         pred_rel_mutex when searching for insn_group_barrier.
13072         * config/ia64/ia64.md (cycle_display): Combine the expander
13073         and insn patterns.
13074
13075         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
13076         bit before asm as needed.
13077
13078 2001-08-18  Richard Henderson  <rth@redhat.com>
13079
13080         * timevar.def (TV_MACH_DEP): New.
13081         * toplev.c (rest_of_compilation): Use it.
13082         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
13083
13084 2001-08-18  Zack Weinberg  <zackw@panix.com>
13085
13086         * unwind-dw2.c (execute_stack_op): Add default aborts to
13087         the inner switches to prevent warnings.
13088
13089 2001-08-18  Richard Henderson  <rth@redhat.com>
13090
13091         * timevar.h (struct timevar_time_def): Change element type to float.
13092         (ticks_to_msec, clocks_to_msec): Likewise.
13093         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
13094         (get_time): Likewise.
13095         (timevar_print): Adjust zero check and printing to match.
13096
13097 2001-08-18  Zack Weinberg  <zackw@panix.com>
13098
13099         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
13100         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
13101         Eliminate overfull or underfull hboxes.
13102
13103 2001-08-18  Zack Weinberg  <zackw@panix.com>
13104
13105         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
13106
13107 2001-08-18  Zack Weinberg  <zackw@panix.com>
13108
13109         * haifa-sched.c: Convert to target hooks.  Macros replaced
13110         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
13111         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
13112         MD_SCHED_FINISH, and HAVE_cycle_display.
13113         * target-def.h (TARGET_SCHED_ADJUST_COST,
13114         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
13115         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
13116         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
13117         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
13118         New hook #defines to be overridden.
13119         (TARGET_SCHED): Bring them all together.
13120         (TARGET_INITIALIZER): Update.
13121         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
13122         instead of 'struct rtx_def *' throughout.
13123         (struct sched): New set of hooks for the scheduler.
13124         * Makefile.in (haifa-sched.o): Depend on target.h.
13125         * doc/tm.texi: Document the new scheduler hooks, together in
13126         their own section, instead of scattered around.
13127         Fix a bunch of underfull/overfull hboxes.
13128
13129         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
13130         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
13131         sparc.h: Don't define any of the old scheduler macros.
13132
13133         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
13134         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
13135         sparc.c: Create hook functions from code extracted from
13136         corresponding target header, or make existing hooks static, as
13137         appropriate.  Set the appropriate entries in targetm.
13138
13139         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
13140         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
13141         rs6000-protos.h, s390-protos.h, sparc-protos.h:
13142         Remove prototypes for functions which are now static.
13143
13144         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
13145         related gunk; the Haifa scheduler is now the only choice.
13146
13147 2001-08-18  Zack Weinberg  <zackw@panix.com>
13148
13149         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
13150         * genopinit.c: Put floating point divide insns in sdiv_optab.
13151         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
13152         * config/gofast.h, config/c4x/c4x.h,
13153         config/ia64/hpux_longdouble.h, config/mips/mips.h,
13154         config/pa/long_double.h, config/rs6000/sysv4.h,
13155         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
13156         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
13157         (init_optabs): Use init_optabv for overflow-trapping optabs.
13158         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
13159         cmp_optab RTX codes so have_insn_for can find them.
13160
13161         * optabs.c (expand_simple_binop, expand_simple_unop,
13162         have_insn_for, gen_sub3_insn): New interfaces.
13163         * expr.h: Prototype new functions.
13164         (enum optab_methods): Move here from optabs.h.
13165
13166         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
13167         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
13168         Use new functions instead of working directly with optabs.
13169         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
13170         unroll.c: Don't include optabs.h.
13171         * caller-save.c, combine.c, function.c, stmt.c: Just include
13172         insn-codes.h, not optabs.h.
13173         * Makefile.in: Update dependencies.
13174
13175         * combine.c (make_compound_operation, simplify_comparison):
13176         Fix typos testing for this or that instruction.
13177
13178 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13179
13180         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
13181         generating libgcc.a.
13182
13183 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13184
13185         * except.c (TYPE_HASH): Delete.
13186
13187         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
13188         HOST_WIDE_INT.
13189
13190         * tree.c (TYPE_HASH): Delete.
13191
13192         * tree.h (TYPE_HASH): Define.
13193
13194 2001-08-18  Graham Stott  <grahams@redhat.com>
13195
13196         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
13197         define_split.
13198         (adddi3_internal_2+2): Likewise.
13199         (eh_set_lr_di+1): Likewise.
13200
13201 2001-08-17  Richard Henderson  <rth@redhat.com>
13202
13203         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
13204         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
13205         * dwarf2asm.c: ... here.
13206         * dwarfout.c: Remove them.
13207
13208         * varasm.c (assemble_integer): Add align parameter.
13209         (assemble_real, output_constant, output_constructor): Likewise.
13210         * output.h: Update decls.
13211         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
13212         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
13213         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
13214         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
13215         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
13216         Update all callers.
13217
13218         * final.c (end_final): Abort profile block generation if we
13219         haven't layed it out properly.
13220         * output.h (assemble_eh_integer): Remove stale decl.
13221         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
13222         (min_align): New.
13223         (assemble_integer): Handle unaligned data.
13224         (assemble_real): Abort on unaligned data.
13225         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
13226         anything useful.
13227         (default_dtor_section_asm_out_destructor): Use assemble_align.
13228         (default_named_section_asm_out_constructor): Likewise.
13229         (default_ctor_section_asm_out_constructor): Likewise.
13230         * config/darwin.c (machopic_asm_out_constructor): Likewise.
13231         (machopic_asm_out_destructor): Likewise.
13232         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
13233         (nextstep_asm_out_destructor): Likewise.
13234         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
13235         (vms_asm_out_destructor): Likewise.
13236
13237 2001-08-17  Richard Henderson  <rth@redhat.com>
13238
13239         * config/mips/iris6.h (TARGET_IRIX6): New.
13240         (current_section_name, current_section_flags): New.
13241         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
13242         (MAX_OFILE_ALIGNMENT): New.
13243         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
13244         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
13245         (copy_file_data): Split out from
13246         (mips_asm_file_end): ... here.
13247         (mips_asm_file_start): Remove extra .section directive.  Use
13248         tmpfile instead of mips_make_temp_file.
13249         (mips_unique_section): Use const char * as needed for warnings.
13250         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
13251         re-add align parameter.
13252         (iris6_asm_named_section): New.
13253         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
13254         (iris6_asm_output_align, iris6_section_align_1): New.
13255         (iris6_asm_file_start, iris6_asm_file_end): New.
13256         * config/mips/mips-protos.h: Update decls.
13257
13258 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
13259
13260         * doc/install.texi (Install GCC): Add links to build status pages.
13261         (Specific): Ditto.
13262         (Final install): Ditto; request updates for specific info
13263
13264 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13265
13266         * cpperror.c (print_location):  Don't take a file name; use the
13267         line map instead.
13268         (_cpp_begin_message): Similarly.
13269         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
13270         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
13271         (cpp_pedwarn_with_file_and_line): Remove.
13272         * cppfiles.c (stack_include_file): Update; set filename to stdin
13273         here when appropriate.
13274         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
13275         (_cpp_begin_message): Don't take a file name.
13276         * cppinit.c: Add comment.
13277         * cpplex.c: Fix end-of-directive indicator.
13278         * cpplib.c: Don't include intl.h.
13279         (run_directive, do_diagnostic): Update.
13280         (do_line): Update to not use nominal_fname.
13281         (cpp_push_buffer): Don't take a filename.
13282         * cpplib.h (struct ht): Remove.
13283         (cpp_push_buffer): Don't take a filename.
13284         (cpp_pedwarn_with_file_and_line): Remove.
13285         * cppmacro.c (struct cpp_macro): Remove file.
13286         (builtin_macro): Update.
13287         (_cpp_create_definition): Update.
13288         * cppmain.c: Correct comment.
13289         * fix-header.c (read_scan_file): Update.
13290
13291 2001-08-17  Kazu Hirata  <kazu@hxi.com>
13292
13293         * sbitmap.c: Fix comment formatting.
13294         * sched-deps.c: Likewise.
13295         * sibcall.c: Likewise.
13296         * simplify-rtx.c: Likewise.
13297         * ssa.c: Likewise.
13298         * ssa-ccp.c: Likewise.
13299         * stor-layout.c: Likewise.
13300         * timevar.c: Likewise.
13301         * toplev.c: Likewise.
13302         * unwind-dw2.c: Likewise.
13303         * unwind-dw2-fde.c: Likewise.
13304         * varasm.c: Likewise.
13305
13306 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13307
13308         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
13309         or larger than an integer in memory.
13310
13311 2001-08-17  Zack Weinberg  <zackw@panix.com>
13312
13313         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
13314         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
13315         * rtl.h: Don't forward-declare union tree_node here.  Don't
13316         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
13317         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
13318         and tree respectively.
13319         * tree.h: Don't forward-declare struct rtx_def here.  Don't
13320         typedef tree here.  Change all uses of struct rtx_def *,
13321         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
13322         and tree respectively.
13323
13324 2001-08-17  Richard Henderson  <rth@redhat.com>
13325
13326         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
13327         config/mips/openbsd.h: Fix typos last change.
13328
13329 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13330
13331         * doc/invoke.texi (Optimize Options): The default for
13332         -finline-limit is 600.
13333
13334 2001-08-17  Richard Henderson  <rth@redhat.com>
13335
13336         * varasm.c (text_section): Allow TEXT_SECTION to override the
13337         printing of TEXT_SECTION_ASM_OP.
13338         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
13339         (DATA_SECTION, BSS_SECTION): Remove.
13340         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
13341         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
13342         Rename from s/_NAME//.
13343         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
13344         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
13345         (TEXT_SECTION): ... here.  New.
13346         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
13347         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
13348         * config/mips/openbsd.h: Likewise.
13349         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
13350         (mips_asm_file_end): Likewise test.
13351         (mips_output_function_epilogue): Likewise.  Switch back to data
13352         section after emitting the function.
13353
13354         * doc/tm.texi (Sections): Document TEXT_SECTION.
13355
13356 2001-08-17  Richard Henderson  <rth@redhat.com>
13357
13358         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
13359         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
13360
13361 2001-08-17  Richard Henderson  <rth@redhat.com>
13362
13363         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
13364         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
13365         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
13366         Add aligned attribute.
13367
13368 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
13369
13370         * config/sh/sh.md: Add modes to unspecs in first insn to match
13371         those in the second.
13372
13373         * Makefile.in: Fix collect2 copy for Cygwin.
13374
13375 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13376
13377         Install the proper patch.
13378         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
13379         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
13380         (expand_function_start): Likewise.
13381         * stmt.c (expand_decl): Likewise.
13382         * varasm.c (make_decl_rtx): Likewise.
13383
13384 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13385
13386         * final.c: Undo my previous accidental checkin.
13387         * output.h: Likewise.
13388         * tm.texi: Likewise.
13389
13390 2001-08-16  Richard Henderson  <rth@redhat.com>
13391
13392         * varasm.c (named_section_flags): Remove align parameter.
13393         * varasm.c, dwarf2out.c: Update all callers.
13394         * output.h: Update prototypes.
13395
13396         * target.h (target.asm_out.named_section): Remove align parameter.
13397         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
13398         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
13399         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
13400         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
13401         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
13402
13403         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
13404         (get_named_section_flags, set_named_section_flags): New.
13405         (named_section_flags): Use them.
13406         (named_section): Do decl vs section flags check here...
13407         (default_section_type_flags): ... not here.
13408         (init_varasm_once): Create in_named_htab.
13409         (resolve_unique_section): Mark reloc unused.
13410
13411 2001-08-16  Richard Henderson  <rth@redhat.com>
13412
13413         * varasm.c (force_const_mem): Keep pool alignment in bits.
13414         (output_constant_pool): Use assemble_align.
13415
13416 2001-08-16  Zack Weinberg  <zackw@panix.com>
13417
13418         * doc/tm.texi: Remove extra @table command.
13419
13420 2001-08-16  Zack Weinberg  <zackw@panix.com>
13421
13422         * final.c (shorten_branches): Clear the end of the label_align
13423         array only if we made it larger.  Break up messy expressions
13424         for clarity.
13425
13426         * diagnostic.c (internal_error): Check for error recursion
13427         before doing ICE suppression.
13428
13429         * timevar.c: Timing variables now count in milliseconds.
13430         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
13431         (get_time): Not here.
13432         (timevar_print): Don't print any timer whose user, cpu, and
13433         wall times are all zero as displayed.
13434         * timevar.h: Update comment aboout units.  Make timevar
13435         counters unsigned.
13436
13437 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
13438
13439         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
13440         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
13441         (expand_function_start): Likewise.
13442         * stmt.c (expand_decl): Likewise.
13443         * varasm.c (make_decl_rtx): Likewise.
13444
13445 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
13446
13447         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
13448         (finalize_record_size): Don't set TYPE_USER_ALIGN.
13449
13450 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
13451
13452         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
13453         variables.
13454
13455 2001-08-16  Andreas Jaeger  <aj@suse.de>
13456
13457         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
13458         prototype.
13459
13460 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
13461
13462         * rtl.h (only_sets_cc0_p): New prototype.
13463         * jump.c (sets_cc0_p): Handle INSN.
13464         (only_sets_cc0_p): New function.
13465         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
13466         (tidy_fallthru_edge): Likewise.
13467         * integrate.c (copy_insn_list): Likewise.
13468         * unroll.c (unroll_loop): Likewise.
13469         (copy_loop_body): Likewise.
13470
13471 2001-08-15  Jason Eckhardt  <jle@redhat.com>
13472
13473         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
13474
13475 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13476
13477         * predict.c (struct block_info_def): Remove nvisited.
13478         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
13479         (estimate_bb_frequencies): Call mark_dfs_back_edges.
13480
13481         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
13482         (ix86_adjust_cost): Teach scheduler that latency to load operand can
13483         be masked.
13484
13485 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
13486
13487         * predict.def: Update hitrates.
13488
13489 2001-08-15  Richard Henderson  <rth@redhat.com>
13490
13491         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
13492
13493 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
13494
13495         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
13496         note from its associated jump.
13497
13498 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
13499
13500         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
13501         also on 64-bit s390x targets.
13502
13503 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
13504
13505         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
13506         function.
13507         (arm_expand_prologue): Handled nested functions which take a
13508         variable argument list.
13509         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
13510         macro with an invocation of
13511         arm_compute_initial_elimination_offset.
13512         * config/arm/arm-protos.h: Prototype
13513         arm_compute_initial_elimination_offset.
13514
13515 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13516
13517         * doc/install.texi (Specific, avr): Fix markup.
13518         (Specific, c4x): Ditto.
13519
13520 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
13521
13522         * predict.c (dump_prediction): Change `bool' parameter to `int'.
13523
13524 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
13525
13526         * Makefile.in (OBJS): Add rtl-error.o
13527         (rtl-error.o): New rule.
13528         (diagnostic.o): Adjust dependency.
13529         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
13530         error_for_asm, _fatal_insn, _fatal_insn_not_found,
13531         warning_for_asm): Move to...
13532         rtl-error.c: ...here.  New file.
13533
13534 2001-08-14  Richard Henderson  <rth@redhat.com>
13535
13536         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
13537         if USING_SJLJ_EXCEPTIONS.
13538
13539 2001-08-14  Steve Ellcey <sje@cup.hp.com>
13540
13541         * tlink.c (scan_linker_output): Check string for unsatisfied in
13542         addition to undefined and unresolved.
13543
13544 2001-08-14  Graham Stott  <grahams@redhat.com>
13545
13546         * libgcc2.c (*): Replace EH_FRAME_SECTION with
13547         EH_FRAME_SECTION_NAME.
13548
13549 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
13550
13551         * genattrtab.c (simplify_test_exp_in_temp): New function.
13552         (simplify_test_exp): Avoid explicit use of temporary obstack.
13553         (simplify_cond, insert_right_side, evaluate_eq_attr,
13554         simplify_and_tree, simplify_or_tree, eliminate_known_true):
13555         Use simplify_test_exp_in_temp.
13556         (optimize_attrs): Iterate until expression stabilizes.
13557
13558 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
13559
13560         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
13561         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
13562
13563 2001-08-13  Richard Henderson  <rth@redhat.com>
13564
13565         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
13566         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
13567         * config/arm/conix-elf.h: Likewise.
13568
13569 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
13570
13571         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
13572         in gcc.c.
13573         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13574
13575         * gcse.c (hash_scan_set): Expressions that are set as part of
13576         jump instructions are not available.
13577
13578 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
13579
13580         * config/s390/s390.c (print_operand, s390_function_prologue,
13581         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
13582
13583 2001-08-13  Richard Henderson  <rth@redhat.com>
13584
13585         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
13586         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
13587         * doc/tm.texi (Exception Region Output): Document it.
13588
13589 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
13590
13591         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
13592         DWARF2 instead of stabs by default.
13593
13594 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
13595
13596         * config/rs6000/rs6000.c: Include optabs.h.
13597
13598 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
13599
13600         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
13601         save/restore routines.
13602         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
13603
13604 2001-08-13  Andreas Jaeger  <aj@suse.de>
13605
13606         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
13607         the english is correct.
13608
13609 2001-08-13  Zack Weinberg  <zackw@panix.com>
13610
13611         * expr.h: Split out optab- and libfunc-related code to...
13612         * optabs.h, libfuncs.h: ... these new headers.
13613
13614         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
13615         (OPTABS_H): New.
13616         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
13617         dependencies.
13618         * mkconfig.sh: Don't include insn-codes.h from config.h.
13619
13620         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
13621         enum insn_code is available.  Move reload_in_optab and
13622         reload_out_optab array declarations to optabs.h.
13623         * regmove.c (gen_add3_insn): Move to optabs.c, export from
13624         there, prototype in expr.h.
13625         * gencodes.c: Cleanup: zap global variables, don't use
13626         printf where puts will do, don't bother defining MAX_INSN_CODE
13627         which nothing uses, let CODE_FOR_nothing get its value implicitly.
13628
13629         * genemit.c, genopinit.c: Include optabs.h in generated file.
13630         * genoutput.c: Include insn-codes.h in generated file.
13631         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
13632         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
13633         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
13634         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
13635         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
13636         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
13637         Include optabs.h.
13638         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
13639         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
13640         config/m88k/m88k.c, config/sparc/sparc.c:
13641         Include libfuncs.h.
13642         * reload.c: Include expr.h and optabs.h before reload.h.
13643         * config/alpha/alpha.c: Include tree.h before reload.h.
13644         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
13645         and reload.h in that order.
13646         * config/sparc/sparc.c: Include debug.h.
13647         * recog.c: Include insn-codes.h.
13648
13649 2001-08-13  Andreas Jaeger  <aj@suse.de>
13650
13651         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
13652         s390*linux.
13653
13654 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
13655
13656         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
13657         * gcc.c (init_spec): Fix typo in comment.
13658         * varasm.c (data_section): Fix typo in comment.
13659
13660 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
13661
13662         * predict.c (dump_prediction): New argument "USED".
13663         (combine_predictions_for_insn): Determine the used heuristics,
13664         output the case no heuristic applied.
13665         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
13666
13667 2001-08-13  Andreas Jaeger  <aj@suse.de>
13668
13669         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
13670         register %rip.
13671
13672 2001-08-13  Kazu Hirata  <kazu@hxi.com>
13673
13674         * jump.c: Fix formatting.
13675
13676 2001-08-13  Kazu Hirata  <kazu@hxi.com>
13677
13678         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
13679         length.
13680
13681 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
13682
13683         * loop.c (check_dbra_loop): Use condjump_label to compute
13684         jump_label.
13685
13686         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
13687         to better document the files they're in.
13688
13689 2001-08-12  Zack Weinberg  <zackw@panix.com>
13690
13691         * recog.h (struct insn_operand_data): Shrink 'mode' field
13692         to 16 bits.
13693
13694 2001-08-12  Kazu Hirata  <kazu@hxi.com>
13695
13696         * gcc.c: Fix comment formatting.
13697         * gccspec.c: Likewise.
13698         * gcov.c: Likewise.
13699         * gcse.c: Likewise.
13700         * genemit.c: Likewise.
13701         * gengenrtl.c: Likewise.
13702         * genrecog.c: Likewise.
13703         * gensupport.c: Likewise.
13704         * ggc-page.c: Likewise.
13705         * global.c: Likewise.
13706         * graph.c: Likewise.
13707         * ifcvt.c: Likewise.
13708         * integrate.c: Likewise.
13709         * lcm.c: Likewise.
13710         * libgcc2.c: Likewise.
13711         * loop.c: Likewise.
13712         * mbchar.c: Likewise.
13713         * optabs.c: Likewise.
13714         * predict.c: Likewise.
13715         * prefix.c: Likewise.
13716         * profile.c: Likewise.
13717         * protoize.c: Likewise.
13718         * real.c: Likewise.
13719         * recog.c: Likewise.
13720         * regclass.c: Likewise.
13721         * regmove.c: Likewise.
13722         * reg-stack.c: Likewise.
13723         * reload1.c: Likewise.
13724         * resource.c: Likewise.
13725         * rtlanal.c: Likewise.
13726         * rtl.c: Likewise.
13727
13728 2001-08-12  Kazu Hirata  <kazu@hxi.com>
13729
13730         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
13731         a tree representing a constant is passed to the macro.
13732
13733 2001-08-12  Richard Henderson  <rth@redhat.com>
13734
13735         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
13736         (rs6000_elf_asm_out_destructor): New.
13737         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
13738         (DTORS_SECTION_ASM_OP): Remove.
13739         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
13740         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
13741
13742 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
13743
13744         Revert:
13745         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13746         * gcc.c (set_collect_gcc_options): New function, split out from
13747         main.
13748         Ignore elided switches.
13749         (do_spec_1): Invoke before executing command.
13750         (set_input): Export.
13751         Move declaration ...
13752         * gcc.h (set_input): ... here.
13753         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13754         file.
13755
13756 2001-08-12  Richard Henderson  <rth@redhat.com>
13757
13758         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
13759         thinko wrt TARGET_RELOCATABLE.
13760
13761 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13762
13763         * fix-header.c (cb_file_change): Update prototype.
13764
13765 2001-08-11  Zack Weinberg  <zackw@panix.com>
13766
13767         * toplev.c (set_float_handler): Make static.
13768         * toplev.h: Don't prototype set_float_handler.
13769
13770         * simplify-rtx.c: Don't include setjmp.h.
13771         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
13772         New functions.
13773         (simplify_unary_operation, simplify_binary_operation): Use them,
13774         via do_float_handler.
13775
13776         * fold-const.c: Don't include setjmp.h.
13777         (exact_real_inverse_1): New function.
13778         (exact_real_inverse): Use it, via do_float_handler.
13779
13780         * varasm.c: Don't include setjmp.h.
13781         (assemble_real_1): New function.
13782         (assemble_real): Use it, via do_float_handler.
13783         Call internal_error if we get a trap here.
13784
13785         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
13786         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
13787
13788 2001-08-11  Zack Weinberg  <zackw@panix.com>
13789
13790         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
13791         STACK_BOUNDARY if not already defined.
13792
13793         * calls.c, function.c, reload1.c, explow.c: Don't default
13794         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
13795         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
13796
13797         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
13798         to run-time test.
13799
13800         * doc/tm.texi: Document that STACK_BOUNDARY is required;
13801         clarify difference between it and PREFERRED_STACK_BOUNDARY.
13802
13803 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13804
13805         * cppmacro.c (enter_macro_context): Push macro expansions even
13806         if empty.
13807
13808 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13809
13810         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
13811         (rs6000_elf_section_type_flags): Actually return a value.
13812
13813 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
13814
13815         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
13816         Clean up code: add missing comments and prototypes, fix warnings,
13817         remove obsolete code, fix spacing to conform to coding style.
13818
13819 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
13820
13821         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
13822         and TARGET_ASM_CLOSE_PAREN.
13823         (regclass_map): CC register belongs to class NO_REGS.
13824         (legitimize_pic_address): Don't generate unnecessary moves
13825         (to avoid confusing loop optimization).
13826         (check_and_change_labels): Replace jump_long by indirect_jump.
13827         (s390_final_chunkify): Don't start a new literal pool on section
13828         switch in 64-bit code.
13829         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
13830
13831         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
13832         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
13833         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
13834         modes correctly.
13835         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
13836         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
13837         (CONST_COSTS): Fixed incorrect costs.
13838
13839         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
13840         Use emit_jump instead of emit_jump_insn (gen_jump).
13841         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
13842         (to avoid confusing flow analysis).
13843         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
13844         (casesi, casesi_jump): New.
13845         (jump_long): Removed.  Functionality merged into indirect_jump.
13846         (indirect_jump): Accept address_operand, not just register_operand.
13847         (cjump_long, icjump_long): Use same logic as indirect_jump.
13848         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
13849         Fixed broken setjmp/longjmp handling.
13850         (do_builtin_setjmp_setup): Removed.
13851
13852         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
13853         broken GNU as versions that don't accept .quad with large
13854         negative values.  Use hexadecimal output instead.
13855         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
13856         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
13857         FUNCTION_EPILOGUE): Removed.  Now in targetm.
13858
13859         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
13860
13861         * config/s390/fixdfdi.h: Add missing copyright statement.
13862         Fix type conflicts on 64-bit.  Add missing SFmode routines.
13863
13864         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
13865         email address.
13866
13867 2001-08-11  Richard Henderson  <rth@redhat.com>
13868
13869         * rtl.h (REG_EH_RETHROW): Remove.
13870         * rtl.c (reg_note_name): Update.
13871         * combine.c (distribute_notes): Don't check for it.
13872
13873 2001-08-11  Richard Henderson  <rth@redhat.com>
13874
13875         * combine.c (distribute_notes): Place REG_SETJMP.
13876
13877 2001-08-11  Richard Henderson  <rth@redhat.com>
13878
13879         * doc/extend.texi (Arrays and pointers implementation): Discourage
13880         relying on sign-extension of pointers.
13881
13882 2001-08-11  H.J. Lu <hjl@gnu.org>
13883
13884         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
13885         in_dtors.
13886         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
13887         RDATA_SECTION_ASM_OP.
13888
13889 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13890
13891         * doc/install.texi (Specific, c4x): Fix cross-reference to the
13892         main manual to work both for info and HTML versions.
13893
13894 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13895             Matt Kraai <kraai@alumni.carnegiemellon.edu>
13896
13897         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
13898         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
13899         (struct cpp_pool): New member first.
13900         * cppinit.c (append_include_chain): Plug memory leaks.
13901         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
13902         Allocate pragma structures from the (aligned) macro pool to
13903         avoid leaking memory.
13904         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
13905         so we don't leak memory.
13906         * hashtable.c (ht_destroy): New.
13907         * hashtable.h (ht_destroy): New.
13908
13909 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13910             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13911
13912         * c-lex.c (map): Make const.
13913         (cb_file_change): Update for callback passing a line map.
13914         Don't assume we have a previous map.  Remove sanity check
13915         about popping too many files.
13916         * cpperror.c (print_location): Make map const.
13917         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
13918         (cpp_make_system_header): Similarly.
13919         (search_from): Similarly.
13920         (_cpp_execute_include): Don't remember where we came from.
13921         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
13922         (struct cpp_reader): Make map const.
13923         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
13924         * cpplib.c (do_line): Update; line maps now hold sysp.
13925         (cpp_push_buffer): Similarly.
13926         (_cpp_do_file_change): Similarly; callback with map instead.
13927         (cpp_get_line_maps): Constify return value.
13928         (_cpp_pop_buffer): Update.
13929         * cpplib.h (struct cpp_file_change): Remove.
13930         (struct cpp_callbacks): Update.
13931         (cpp_get_line_maps): Constify return value.
13932         * cppmacro.c (_cpp_create_definition): Update.
13933         * cppmain.c (struct printer): Constify map.
13934         (maybe_print_line): Similarly.
13935         (print_line): Similarly.  Deduce flags 1 and 2 here.
13936         (cb_file_change): Update.
13937         * line-map.c (free_line_maps): Warn regardless.
13938         (add_line_map): Return pointer to const.  When passed NULL to_file
13939         with LC_LEAVE, use the obvious values for the return point so the
13940         caller doesn't have to figure them out.
13941         (lookup_line): Return pointer to const.
13942         (print_containing_files): Take pointer to const.
13943         * line-map.h (struct line_map): New members reason, sysp.
13944         (add_line_map): Return pointer to const.
13945         (lookup_line): Similarly.
13946         (print_containing_files): Take pointer to const.
13947
13948 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
13949             Richard Henderson  <rth@redhat.com>
13950
13951         * regmove.c (regmove_optimize): Avoid setting a register twice in
13952         a parallel set.
13953
13954 2001-08-10  Richard Henderson  <rth@redhat.com>
13955
13956         * doc/extend.texi (Arrays and pointers implementation): Document
13957         behavior of pointer/integer conversion.
13958
13959 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
13960
13961         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
13962
13963 2001-08-10  Richard Henderson  <rth@redhat.com>
13964
13965         * doc/extend.texi (C Implementation): New chapter.
13966         * doc/gcc.texi (Top): Link it in.
13967
13968 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
13969
13970         * doc/install.texi (Specific): Fix CVS merge botch.
13971
13972 2001-08-10  Richard Henderson  <rth@redhat.com>
13973
13974         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
13975         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
13976
13977 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
13978
13979         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
13980         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
13981         this macro is now required.
13982
13983         * cselib.c (cselib_process_insn), flow.c (propagate_block),
13984         loop.c (find_and_verify_loops), reload.c (reload): Check
13985         for rtx code of CALL_INSN, not CALL, when deciding if we
13986         need to check for REG_SETJMP note.
13987
13988         * gcse.c (compute_hash_table, compute_store_table): Update
13989         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
13990         logic.
13991
13992         * config/avr/avr.c: Fix typo.
13993         * config/convex/convex.c (expand_movstr): Use adjust_address.
13994         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
13995         variable.
13996         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
13997         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
13998         Fix typo.
13999         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
14000         Do define STACK_BOUNDARY.
14001         * config/i370/i370.c: Include expr.h.
14002         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
14003         config/pa/som.h, config/v850/v850.h: Take in_ctors and
14004         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
14005         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
14006         * config/m88k/m88k.c: Include c-tree.h after expr.h.
14007         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
14008         * config/romp/romp.c: Include expr.h after tree.h.
14009         Include toplev.h.
14010         (output_fpop): Use xmalloc, not oballoc.
14011         * config/we32k/we32k.c: Include expr.h.
14012
14013 2001-08-10  Kazu Hirata  <kazu@hxi.com>
14014
14015         * config/h8300/h8300.h: Fix formatting.
14016
14017 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
14018
14019         * c-common.h (RETURN_NULLIFIED_P): Lose.
14020         * c-semantics.c (genrtl_return_stmt): Don't check it.
14021
14022 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14023
14024         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
14025         (mips_annotate_frame_insn): New function.
14026         (mips_emit_frame_related_store): New function.
14027         (save_restore_insns): Don't mark instructions that set up the base
14028         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
14029         the store instructions instead.
14030         (mips_expand_prologue): If the stack size is moved into a temporary
14031         register, do not mark that move as frame-related.  Add a
14032         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
14033
14034 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14035
14036         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
14037         stack slot as unchanging if current_function_calls_eh_return.
14038
14039 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14040
14041         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
14042         access the second half of the TFmode scratch operand.
14043
14044 2001-08-10  Anthony Green  <green@redhat.com>
14045
14046         * java/class.c (emit_register_classes): Conditionalize code on
14047         JCR_SECTION_NAME.
14048
14049 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14050
14051         * doc/install.texi (Specific, avr): Fix cross-reference to the
14052         main manual to work both for info and HTML versions.
14053
14054 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14055
14056         * stmt.c (expand_null_return_1): Remove code to generate simple returns
14057         and "use_goto" argument.
14058         (expand_null_return, expand_value_return): Update all callers.
14059         * function.c (expand_function_end): Remove code to generate simple
14060         return.
14061         * config/vax/vax.md (epilogue): New expander for function return.
14062         * doc/md.texi (epilogue): Remove "if defined".
14063
14064 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
14065
14066         * Makefile.in: Partially revert my previous change:
14067         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
14068         of the hashtab.o and safe-ctype.o rules.
14069
14070 2001-08-09  Richard Henderson  <rth@redhat.com>
14071
14072         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
14073         (USE_COLLECT2): Remove duplicate definition.
14074         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
14075         (use_collect2): Remove dead code.
14076         * configure.in (use_collect2): Remove will_use_collect2 and
14077         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
14078         * configure: Rebuild.
14079
14080         * target.h (targetm.asm_out.constructor): New.
14081         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
14082         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
14083         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
14084         * varasm.c (in_ctors, in_dtors): New.
14085         (assemble_constructor, assemble_destructor): Remove.
14086         (default_stabs_asm_out_destructor): New.
14087         (default_named_section_asm_out_destructor): New.
14088         (dtors_section, default_dtor_section_asm_out_destructor): New.
14089         (default_stabs_asm_out_constructor): New.
14090         (default_named_section_asm_out_constructor): New.
14091         (ctors_section, default_ctor_section_asm_out_constructor): New.
14092         * output.h: Update declarations.
14093         * c-decl.c (c_expand_body): Use target hooks instead of
14094         assemble_constructor and assemble_destructor.
14095         * profile.c (output_func_start_profiler): Likewise.
14096         * objc/objc-act.c (finish_objc): Likewise.
14097         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
14098         for the constructor.
14099         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
14100
14101         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
14102         (DTORS_SECTION_ASM_OP): Likewise.
14103         (__CTOR_LIST__): Use attribute section when possible.
14104         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
14105
14106         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
14107         ASM_OUTPUT_CONSTRUCTOR.
14108
14109         * config/darwin.c (machopic_asm_out_constructor): New.
14110         (machopic_asm_out_destructor): New.
14111         * config/darwin-protos.h: Update declarations.
14112         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14113         (ASM_OUTPUT_DESTRUCTOR): Remove.
14114         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14115         * config/nextstep.c (nextstep_asm_out_constructor): New.
14116         (nextstep_asm_out_destructor): New.
14117         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14118         (ASM_OUTPUT_DESTRUCTOR): Remove.
14119         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14120         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
14121         ASM_OUTPUT_*STRUCTOR.
14122         * config/i386/aix386ng.h: Likewise.
14123
14124         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
14125         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
14126         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
14127         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14128         * config/lynx.h: Likewise.
14129         * config/netware.h: Likewise.
14130         * config/psos.h: Likewise.
14131         * config/alpha/alpha-interix.h: Likewise.
14132         * config/alpha/elf.h: Likewise.
14133         * config/arc/arc.h: Likewise.
14134         * config/arm/aof.h: Likewise.
14135         * config/arm/coff.h: Likewise.
14136         * config/arm/elf.h: Likewise.
14137         * config/c4x/c4x.h: Likewise.
14138         * config/h8300/h8300.h: Likewise.
14139         * config/i386/cygwin.h: Likewise.
14140         * config/i386/djgpp.h: Likewise.
14141         * config/i386/i386-coff.h: Likewise.
14142         * config/i386/i386-interix.h: Likewise.
14143         * config/i386/sco5.h: Likewise.
14144         * config/i386/vsta.h: Likewise.
14145         * config/i386/win32.h: Likewise.
14146         * config/i960/i960-coff.h: Likewise.
14147         * config/ia64/sysv4.h: Likewise.
14148         * config/m68hc11/m68hc11.h: Likewise.
14149         * config/m68k/coff.h: Likewise.
14150         * config/m68k/mot3300.h: Likewise.
14151         * config/m88k/m88k.h: Likewise.
14152         * config/mcore/mcore-pe.h: Likewise.
14153         * config/mcore/mcore.h: Likewise.
14154         * config/mips/elf.h: Likewise.
14155         * config/mips/elf64.h: Likewise.
14156         * config/mips/iris6.h: Likewise.
14157         * config/pa/pa64-hpux.h: Likewise.
14158         * config/rs6000/sysv4.h: Likewise.
14159         * config/sh/sh.h: Likewise.
14160         * config/sparc/litecoff.h: Likewise.
14161
14162         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
14163         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
14164         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14165         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14166         (ASM_OUTPUT_DESTRUCTOR): Remove.
14167         * config/a29k/a29k.c: Move include of tree.h.
14168         * config/a29k/udi.h: Delete file.
14169         * config/alpha/alpha.c (vms_asm_out_constructor): New.
14170         (vms_asm_out_destructor): New.
14171         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
14172         (EXTRA_SECTION_FUNCTIONS): Likewise.
14173         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14174         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14175         * config/c4x/c4x.c: Move include of tree.h.
14176         * config/clipper/clipper.c (clix_asm_out_constructor): New.
14177         (clix_asm_out_destructor): New.
14178         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14179         (ASM_OUTPUT_DESTRUCTOR): Remove.
14180         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14181         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14182         (TARGET_ASM_CONSTRUCTOR): New.
14183         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
14184         (sco_asm_out_constructor): New.
14185         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
14186         * config/i386/svr3gas.h: Remove stack grows up code.
14187         Remove code duplicated from i386/sysv3.h.
14188         (TARGET_ASM_CONSTRUCTOR): New.
14189         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14190         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
14191         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14192         (TARGET_ASM_CONSTRUCTOR): New.
14193         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
14194         (m68hc11_asm_out_destructor): New.
14195         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
14196         (TARGET_ASM_DESTRUCTOR): New.
14197         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
14198         * config/m68k/dpx2.h: Properly undef all the bits inherited from
14199         config/svr3.h pertaining to section manipulation.
14200         * config/m68k/dpx2g.h: Remove #if 0 code.
14201         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
14202         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
14203         (ASM_OUTPUT_CONSTRUCTOR): Remove.
14204         (TARGET_ASM_CONSTRUCTOR): New.
14205         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
14206         (m88k_svr3_asm_out_constructor): New.
14207         (m88k_svr3_asm_out_destructor): New.
14208         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14209         (ASM_OUTPUT_DESTRUCTOR): Remove.
14210         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14211         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
14212         * config/rs6000/aix.h: Likewise.
14213         * config/mips/rtems64.h: Don't undef removed constructor related bits.
14214         * config/mips/vxworks.h: Likewise.
14215         * config/rs6000/lynx.h: Likewise.
14216         * config/sh/elf.h: Likewise.
14217         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
14218         (DTORS_SECTION_ASM_OP): New.
14219         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14220         (ASM_OUTPUT_DESTRUCTOR): Remove.
14221         * config/sparc/sol2-sld-64.h: Likewise.
14222         * config/vax/vax.c (vms_asm_out_constructor): New.
14223         (vms_asm_out_destructor): New.
14224         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14225         (ASM_OUTPUT_DESTRUCTOR): Remove.
14226         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14227
14228         * doc/tm.texi (@node Initialization): Update.
14229
14230 2001-08-09  Richard Henderson  <rth@redhat.com>
14231
14232         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
14233         (__do_global_dtors_aux): Use gp-relative static data to avoid
14234         one dynamic relocation.
14235         (__do_frame_setup): Register Java classes.
14236         * config/alpha/crtend.asm (__JCR_END__): New.
14237
14238 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
14239
14240         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
14241         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
14242         (GEN, STAGESTUFF): Add new files.
14243         (insn-constants.h, s-constants, tm-preds.h, s-preds,
14244         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
14245         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
14246         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
14247         as well as insn-codes.h and insn-flags.h in config.h; and no
14248         extra headers in tconfig.h and hconfig.h.
14249
14250         * gencodes.c: Eliminate code to generate predicate declarations
14251         or #defines for md-file constants.
14252         * genconstants.c, genpreds.c: New files.
14253
14254         * i386.md: Re-order guard expressions such that TARGET_64BIT
14255         comes first, when this permits better optimization.  Add
14256         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
14257         why this is desirable.
14258
14259 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
14260
14261         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
14262         (find_fde_for_dso): Remove.
14263         (_Unwind_IteratePhdrCallback): New.
14264         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
14265         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
14266
14267 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14268
14269         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
14270         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
14271
14272 2001-08-09  Graham Stott  <grahams@redhat.com>
14273
14274         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
14275         (vis_no_unit): Use it.
14276         (visualize_no_unit): Add the insn only if room exists.
14277
14278 2001-08-09  Graham Stott  <grahams@redhat.com>
14279
14280         * predict.c (estimate_probability): Replace magic numbers with
14281         appropriate enumeration.
14282
14283 2001-08-09  Graham Stott  <grahams@redhat.com>
14284
14285         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
14286         parameter.
14287         (EXTRACT_FLAGS): Likewise.
14288
14289 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
14290
14291         * config/mips/mips.c    (mips_legitimate_address_p): Check for
14292         CONST_INT in last patch.
14293
14294 2001-08-08  Anthony Green  <green@redhat.com>
14295
14296         * java/class.c (emit_register_classes): Use assemble_jcr if
14297         possible.  Keep the original mechanism as a fallback.
14298         * defaults.h (JCR_SECTION_NAME): Define if we have named section
14299         and weak symbol support.
14300         * crtstuff.c (__JCR_LIST__): Define.
14301         (__JCR_END__): Define.
14302         (_Jv_RegiserClasses): Define weak symbol if possible.
14303         (__do_global_ctors_aux): Register classes for ELF targets with
14304         weak symbol support.
14305
14306 2001-08-08  Kazu Hirata  <kazu@hxi.com>
14307
14308         * dbxout.c: Fix comment formatting.
14309         * dependence.c: Likewise.
14310         * df.c: Likewise.
14311         * diagnostic.c: Likewise.
14312         * dominance.c: Likewise.
14313         * doprint.c: Likewise.
14314         * dwarf2out.c: Likewise.
14315         * dwarfout.c: Likewise.
14316         * emit-rtl.c: Likewise.
14317         * except.c: Likewise.
14318         * explow.c: Likewise.
14319         * expmed.c: Likewise.
14320         * expr.c: Likewise.
14321         * flow.c: Likewise.
14322         * fold-const.c: Likewise.
14323         * function.c: Likewise.
14324
14325 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14326
14327         * global.c (retry_global_alloc): Avoid shadowing allocno.
14328
14329 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
14330
14331         * except.c (remove_fixup_regions): Fix typo.
14332
14333 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
14334
14335         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
14336         unsigned HOST_WIDE_INT to avoid warning.
14337         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
14338         * flow.c (set_block_for_new_insns): Likewise.
14339
14340 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
14341
14342         * sibcall.c (return_value_pseudo): New static variable.
14343         (skip_copy_to_return_value): Handle return_value_pseudo.
14344         (call_ends_block_p): Ensure that return_value_pseudo is set.
14345         (optimize_sibling_and_tail_recursive_call): Discover the
14346         load of pseudo return value in alternate exit block.
14347
14348 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
14349
14350         * calls.c (ECF_ALWAYS_RETURN): New constant.
14351         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
14352         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
14353         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
14354         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
14355         * rtl.c (reg_note_name): New name.
14356         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
14357
14358 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
14359
14360         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
14361
14362 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
14363
14364         * alias.c (get_alias_set): Return a previously calculated
14365         alias set for a VAR_DECL.
14366         * function.c (gen_mem_addressof): Calculate the alias set before
14367         touching the RTL.
14368
14369 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
14370
14371         * predict.def: Set hitrates according our experimental run.
14372
14373 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
14374
14375         * i386.h (HARD_REGNO_RENAME_OK): New macro.
14376
14377 2001-08-08  H.J. Lu <hjl@gnu.org>
14378
14379         * config/mips/mips.c (mips_unique_section): New. Copied from
14380         config/mips/elf.h.
14381
14382         * config/mips/mips-protos.h (mips_unique_section): New
14383         prototype.
14384
14385         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
14386
14387         * config/mips/little.h: New. Generic little endian mips
14388         targets. Only mips*-*-linux* is converted to use it so far.
14389
14390         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
14391         (WCHAR_TYPE): Defined
14392         (WCHAR_TYPE_SIZE): Likewise.
14393         (INIT_SUBTARGET_OPTABS): Likewise.
14394         (BSS_SECTION_ASM_OP): Likewise.
14395         (SBSS_SECTION_ASM_OP): Likewise.
14396         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14397         (ASM_DECLARE_OBJECT_NAME): Likewise.
14398         (UNIQUE_SECTION): Likewise.
14399         (EXTRA_SECTIONS): Likewise.
14400         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
14401         (ASM_OUTPUT_DESTRUCTOR): Likewise.
14402         (ASM_OUTPUT_DEF): Likewise.
14403         (HANDLE_SYSV_PRAGMA): Removed.
14404         (NO_IMPLICIT_EXTERN_C): Likewise.
14405         (TARGET_MEM_FUNCTIONS): Likewise.
14406         (STARTFILE_SPEC): Likewise.
14407         (ENDFILE_SPEC): Likewise.
14408         (LIB_SPEC): Likewise.
14409         (INVOKE__main): Likewise.
14410         (CTOR_LIST_BEGIN): Likewise.
14411         (CTOR_LIST_END): Likewise.
14412         (DTOR_LIST_BEGIN): Likewise.
14413         (DTOR_LIST_END): Likewise.
14414         (SET_ASM_OP): Likewise.
14415         (ASM_OUTPUT_SOURCE_LINE): Likewise.
14416         (ASM_OUTPUT_DEF): Likewise.
14417         (ASM_OUTPUT_IDENT): Likewise.
14418
14419         * config/mips/mips.h (ASM_SPEC): Undefine before define.
14420         (CPLUSPLUS_CPP_SPEC): Likewise.
14421         (ASM_APP_ON) Redefine only if not defined.
14422         (ASM_APP_OFF): Likewise.
14423         (ASM_OUTPUT_SOURCE_LINE): Likewise.
14424         (ASM_OUTPUT_IDENT): Likewise.
14425
14426         * config.gcc: Update tm_file for Linux/mips.
14427
14428 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
14429
14430         * cselib.c (cselib_record_sets): If insn is predicated, turn
14431         sources into IF_THEN_ELSEs.
14432
14433         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
14434         Turn into define_insn_and_split.
14435
14436         * sched-deps.c: Include "cselib.h".
14437         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
14438         Use cselib to turn memory addresses into VALUEs.
14439         (sched_analyze): Call cselib_init/cselib_finish if necessary.
14440         * sched-int.h (struct sched_info): New member USE_CSELIB.
14441         * sched-ebb.c (ebb_sched_info): Initialize it.
14442         * sched-rgn.c (rgn_sched_info): Likewise.
14443         * Makefile.in (sched-deps.o): Update dependencies.
14444
14445         * cselib.h (cselib_subst_to_values): Declare.
14446         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
14447         that have no value and autoincs to be handled by generating a new
14448         dummy value.
14449
14450 2001-08-08  Graham Stott  <grahams@redhat.com>
14451
14452         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
14453         within fixed length SEQUENCE.
14454
14455 2001-08-08  Graham Stott  <grahams@redhat.com>
14456
14457         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
14458         (diagnostic_prefixing_rule): Likewise.
14459         (diagnostic_line_cutoff): Likewise.
14460         (diagnostic_kind_count): Likewise.
14461
14462 2001-08-08  Graham Stott  <grahams@redhat.com>
14463
14464         * alias.c (find_base_decl): Delete redundent assignment.
14465
14466 2001-08-08  Graham Stott  <grahams@redhat.com>
14467
14468         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
14469         (abs): Uppercase and paranthesize macro parameter.
14470         (MEM_DEPENDENCY): Add whitespace.
14471
14472 2001-08-08  Graham Stott  <grahams@redhat.com>
14473
14474         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
14475         failure check for CONST_INT
14476
14477 2001-08-08  Graham Stott  <grahams@redhat.com>
14478
14479         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
14480         (libcall_dead_p): Likewise.
14481
14482         (mark_used_regs): Constify fmt.
14483         (find_use_as_address): Likewise.
14484
14485 2001-08-08  Graham Stott  <grahams@redhat.com>
14486
14487         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
14488          parameter.
14489
14490 2001-08-08  Graham Stott  <grahams@redhat.com>
14491
14492         * combine.c (combine_simplify_rtx): Update comment and
14493         remove erroneous test.
14494
14495 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14496
14497         * cppinit.c (cpp_finish): Pop the final buffer without comment.
14498         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
14499         take care to avoid multiple no-newline at EOF warnings in that
14500         case.
14501
14502 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
14503
14504         * calls.c (expand_call): Do not emit INSN_SETJMP note.
14505         (emit_library_call_value_1): Likewise.
14506         (emit_call_1): Emit REG_SETJMP note.
14507         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
14508         of INSN_SETJMP
14509         * cselib.c (cselib_process_insn): Likewise.
14510         * flow.c (propagate_block): Likewise.
14511         * loop.c (find_and_verify_loops): Likewise.
14512         * reload.c (find_equiv_regs): Likewise.
14513         * reload1.c (reload): Likewise.
14514         * resource.c (mark_referenced_resources,
14515         mark_set_resources): Likewise.
14516         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
14517         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
14518         * haifa-sched.c (unlink_other_notes): Likewise.
14519         (reemit_notes): Likewise.
14520         * sched-ebb.c (sched_ebb): Likewise.
14521         * sched-rgc.c (sched_region): Likewise.
14522         * rtl.c (note_insn_name): Likewise.
14523         (reg_note_name): Add REG_SETJMP
14524         * rtl.h (reg_note): Add REG_SETJMP.
14525         (insn_note): Remove NOTE_INSN_SETJMP.
14526
14527         * profile.c (branch_prob): Add fake edges for setjmp.
14528
14529 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
14530
14531         * config.gcc: Quote target_cpu_default2 correctly for
14532         powerpc*-*-* targets.
14533
14534 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14535
14536         * cpplib.h, line-map.h: Update comments.
14537         * cppmain.c (printer_init): Move inline.
14538         (maybe_print_line, print_line): Take a map pointer.
14539         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
14540         (cb_file_change): Don't use prior value of print.map.
14541
14542 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
14543
14544         * doc/install.texi: Document fine-grained multilib configuration.
14545
14546 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
14547
14548         * rtlanal.c (find_first_parameter_load): Call note_stores
14549         only on the instructions.
14550
14551 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14552
14553         * alias.c (nonlocal_mentioned_p):
14554         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
14555         * calls.c (emit_call_1): Likewise.
14556         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
14557         * cselib.c (cselib_process_insn): Likewise.
14558         * df.c (df_insns_modify): Likewise.
14559         * flow.c (need_fake_edge_p): Likewise.
14560         (propagate_one_insn): Likewise.
14561         * haifa-sched.c (reemit_notes): Likewise.
14562         * integrate.c (copy_insn_list): Likewise.
14563         * jump.c (delete_prior_computation): Likewise.
14564         * local-alloc.c (validate_equiv_mem): Likewise.
14565         * loop.c (scan_loop): Likewise.
14566         * predict.c (estimate_probability): Likewise.
14567         * reload.c (reload): Likewise.
14568         * sched-deps (sched_analyze): Likewise.
14569         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
14570         * gcse.c (compute_hash_table): Likewise.
14571         (mark_call): Likewise.
14572         (store_killed_in_insn): Likewise.
14573
14574 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
14575
14576         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
14577
14578 2001-08-06  Richard Henderson  <rth@redhat.com>
14579
14580         * varasm.c (assemble_gc_entry): Remove.
14581         * output.h: Likewise.
14582
14583 2001-08-06  Richard Henderson  <rth@redhat.com>
14584
14585         * varasm.c (assemble_constructor): Take a symbol_ref and a
14586         priority instead of a bare string.  Move priority handling
14587         here from cp/decl2.c.
14588         * output.h: Update decls.
14589
14590         * c-decl.c (c_expand_body): Update calls to assemble_constructor
14591         and assemble_destructor.
14592         * profile.c (output_func_start_profiler): Likewise.
14593         * objc/objc-act.c (finish_objc): Likewise.
14594         (build_module_descriptor): Return the symbol not the symbol name.
14595
14596 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
14597
14598         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
14599         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
14600         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
14601         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
14602         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
14603         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
14604
14605 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14606
14607         * cpperror.c (print_containing_files): Moved to line-map.c.
14608         (print_location): line-map.c handles re-listing or otherwise.
14609         * cpphash.h (struct lexer_state): Remove next_bol.
14610         (struct cpp_buffer): Remove include_stack_listed.
14611         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
14612         Remove faked buffer handling.
14613         (_cpp_do_file_change): Tweak.
14614         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
14615         * cppmain.c (struct printer): Remove filename.
14616         (print_line, cb_file_change): Update accordingly.
14617         * line-map.c: Include intl.h.
14618         (init_line_maps): Initialize last_listed.
14619         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
14620         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
14621         (print_containing_files): New.
14622         * line-map.h (struct line_maps): New member last_listed.
14623         (print_containing_files, INCLUDED_FROM): New.
14624         * Makefile.in: Update.
14625         * po/POTFILES.in: Add line-map.c.
14626
14627 2001-08-06  Richard Henderson  <rth@redhat.com>
14628
14629         * except.c (convert_from_eh_region_ranges_1): Never mark
14630         USE or CLOBBER insns as throwing.
14631
14632         * expr.c (store_constructor): Don't clobber memory targets.
14633
14634 2001-08-06  Andreas Jaeger  <aj@suse.de>
14635
14636         * profile.c (branch_prob): Remove unused variable insn.
14637
14638         * Makefile.in (local-alloc.o): Add dependency on except.h.
14639
14640         * local-alloc.c: Include except.h for can_throw_internal prototype.
14641
14642 2001-08-06  Richard Henderson  <rth@redhat.com>
14643
14644         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
14645         * function.c (expand_main_function): Implement it.
14646         * doc/tm.texi: Document it.
14647
14648 2001-08-06  Stan Shebs  <shebs@apple.com>
14649
14650         * doc/install.texi: Document powerpc-*-darwin* details.
14651
14652 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
14653
14654         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
14655         (ASM_CPU_SPEC): Move back to rs6000.h
14656         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
14657
14658         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
14659
14660         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
14661         readded.
14662
14663         * config/rs6000/linux64.h: Ditto.
14664
14665         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
14666         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
14667         nothing.
14668
14669         Remove accidently readded definitions of FUNCTION_PROLOGUE,
14670         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
14671
14672         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
14673         to rs6000.h
14674
14675 2001-08-05  Richard Henderson  <rth@redhat.com>
14676
14677         * local-alloc.c (update_equiv_regs): Do not move insns that
14678         can throw.
14679
14680 2001-08-05  Jan Hubicka  <jh@suse.cz>
14681
14682         * Makefile.in (reload1.o): Add dedendancy on except.h
14683         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
14684         prototypes.
14685         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
14686         indicating wehther edges has been cleaned up.
14687         * reload1.c: Inlucde except.h
14688         (fixup_abnormal_edges): Accept deleted insns.
14689         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
14690         after combine.
14691
14692 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14693
14694         * cpplib.c (do_line): Correct line number after pop_buffer.
14695
14696 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14697
14698         PR preprocessor/3824
14699         * line-map.c: Update comments.
14700         * line-map.h: Update comments.
14701         * tradcif.y: Don't consider large numbers unsigned.
14702
14703 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14704
14705         PR preprocessor/3081
14706         * c-lex.c (map): New.
14707         (cb_file_change): Update map and use it.
14708         (cb_def_pragma, cb_define, cb_undef): Use map and line.
14709         (c_lex): Update to use map.
14710         * cpperror.c (print_location): Move to using logical line numbers.
14711         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
14712         (cpp_make_system_header): Similarly.
14713         (_cpp_execute_include): Stop line numbering hacks.  Store the
14714         line we will return to.
14715         * cpphash.h (CPP_BUF_LINE): Remove.
14716         (struct cpp_buffer): Remove lineno and pseudo_newlines.
14717         Add map and return_to_line.
14718         (_cpp_do_file_change): Update.
14719         * cppinit.c (cpp_start_read): Update line kludge.
14720         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
14721         (trigraph_ok): Use logical line numbers for diagnostics.
14722         (skip_block_comment): Likewise.
14723         (skip_whitespace): Likewise.
14724         (skip_line_comment): Use pfile->line instead.
14725         (_cpp_lex_token): Update to use logical line numbering exclusively.
14726         Handle BOL locally.  Accept new lines in directives, but keep
14727         pfile->line decremented.  Diagnostics use logical lines.  Update
14728         directive handling.
14729         * cpplib.c (SEEN_EOL): New.
14730         (skip_rest_of_line, check_eol): Use it.
14731         (end_directive): Increase line number when accepting the newline
14732         at the end of a directive.
14733         (run_directive): Simplify.
14734         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
14735         (_cpp_do_file_change): Update to take buffer line number as an
14736         argument, and store the current map in the cpp_reader.  Remove
14737         line number kludges.
14738         (_cpp_do__Pragma): Restore output position after a _Pragma.
14739         (cpp_push_buffer): Don't set output line or lineno.
14740         (_cpp_pop_buffer): Transfer more info from a faked buffer.
14741         Remove line kludge.  Set output_line.
14742         * cppmacro.c (builtin_macro): Update handling of __LINE__.
14743         (parse_arg): Use logical lines.
14744         (save_lookahead_token): Save EOFs too now.
14745         * cppmain.c (struct printer): Fix comments.
14746         (printer_init): Simplify, let caller do errors.
14747         (scan_translation_unit, check_multiline_token, dump_macro): Update.
14748         (maybe_print_line): Simplify.
14749         (print_line): Don't print a linemarker if -P.
14750         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
14751         (cb_file_change): Simplify.
14752         * line-map.h (LAST_SOURCE_LINE): Fix.
14753         (CURRENT_LINE_MAP): New.
14754
14755 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
14756
14757         * doloop.c (doloop_modify_runtime): Properly compute number of
14758         iterations if loop was unrolled.
14759
14760         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
14761         if their CSELIB_VAL_PTRs are.
14762
14763         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
14764         (setup_spill_pointers): Initialize it.
14765         (spill_restore_mem): Set it.
14766         (do_spill, do_restore): Use it to add REG_INC note.
14767         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
14768
14769         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
14770         asms if other insns are available.
14771
14772         * config/ia64/ia64.c (condop_operator): New predicate.
14773         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
14774         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
14775         patterns.
14776
14777         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
14778         temporary register than directly using a MEM.
14779
14780 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
14781
14782         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
14783         parameter in last change.
14784
14785 2001-08-04  Zack Weinberg  <zackw@panix.com>
14786
14787         * sparc.md: Don't use #if inside C test expression.
14788
14789 2001-08-04  Richard Henderson  <rth@redhat.com>
14790
14791         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
14792
14793 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14794
14795         * cpphash.h (struct cpp_reader): New member directive_line.
14796         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
14797         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
14798         do_pragma): Pass line to callbacks.
14799         (start_directive): Record line of directive.
14800         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
14801         cb_include): Similarly.
14802         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
14803         Similarly.
14804
14805 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
14806
14807         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
14808         comment.
14809
14810 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14811
14812         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
14813
14814         * reload1.c (fixup_abnormal_edges): New static function.
14815         (reload): Use it.
14816
14817         * flow.c (need_fake_edge_p): New function.
14818         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
14819         avoid call insn to be very last insn in the insn stream.
14820
14821         * profile.c (branch_prob): Call flow_call_edges_add instead of
14822         doing that by hand; cleanup cfg to re-merge basic blocks once
14823         we are done.
14824
14825 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14826
14827         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
14828         are also on line-map.h.
14829         * cppfiles.c (stack_include_file): Update.
14830         * cpphash.h (struct cpp_buffer): New member return_at_eof.
14831         (_cpp_pop_buffer): New.
14832         * cppinit.c (cpp_destroy, cpp_finish): Update.
14833         (do_includes): Mark each buffer to return at EOF.
14834         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
14835         return as requested.
14836         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
14837         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
14838         * cpplib.h (cpp_pop_buffer): Remove.
14839         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
14840         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
14841         buffers.
14842         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
14843         to pop buffers.
14844         (do_preprocessing): Update.
14845         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
14846         * c-parse.in (_yylex): Similarly.
14847         * scan-decls.c (scan_decls): Similarly.
14848         * line-map.h: Update comments.
14849
14850         * objc/Make-lang.in (objc-act.o): Update dependencies.
14851
14852 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14853
14854         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
14855         and soft register for operand 0.
14856         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
14857
14858 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14859
14860         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
14861         register for operand 0.
14862         ("bitcmpqi_z_used"): Allow memory for operand 0.
14863         (split "bitcmpqi"): New split to handle address reg as operand 1.
14864
14865 2001-08-04  Andreas Jaeger  <aj@suse.de>
14866
14867         * gcse.c: Revert Daniel's last patch.
14868
14869 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
14870
14871         * sparc-protos.h: Add prototypes for fp_zero_operand and
14872         reg_or_0_operand.
14873         * sh-protos.h: Add prototype for fpul_operand.
14874
14875 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
14876
14877         * doc/extend.texi (Other Builtins): Fix typo in last change.
14878
14879 2001-08-03  Richard Henderson  <rth@redhat.com>
14880
14881         * target.h (gcc_target): Add asm_out.named_section,
14882         section_type_flags, have_named_sections.
14883         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
14884         (TARGET_HAVE_NAMED_SECTIONS): New.
14885         (TARGET_SECTION_TYPE_FLAGS): New.
14886
14887         * Makefile.in (toplev.o): Depend on TARGET_H.
14888         (varasm.o, dbxout.o): Likewise.
14889         * c-common.c (decl_attributes): Check targetm.have_named_sections
14890         instead of ifdef ASM_OUTPUT_SECTION_NAME.
14891         * dbxout.c (dbxout_function_decl): Likewise.
14892         (dbxout_function_end): Likewise.
14893         * toplev.c (compile_file): Likewise.
14894         * varasm.c (exception_section): Likewise.
14895         * cp/decl2.c (finish_objects): Likewise.
14896
14897         * defaults.h (EH_FRAME_SECTION): Remove.
14898         (EH_FRAME_SECTION_ASM_OP): Remove.
14899         (EH_FRAME_SECTION_NAME): New.
14900         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
14901         (UNIQUE_SECTION_P): Remove.
14902         * dwarf2out.c (SECTION_FORMAT): Remove.
14903         (ASM_OUTPUT_SECTION): Remove.
14904         (output_call_frame_info): Use named_section_flags.
14905         (output_comp_unit, dwarf2out_start_source_file): Likewise.
14906         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
14907         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
14908         * varasm.c (in_eh_frame, eh_frame_section): Remove.
14909         (named_section_flags): New.
14910         (named_section): Use it and targetm.section_type_flags.
14911         (resolve_unique_section): New.
14912         (assemble_start_function): Use it.
14913         (asm_emit_uninitialised, assemble_variable): Likewise.
14914         (default_section_type_flags): New.
14915         (default_no_named_section, default_elf_asm_named_section): New.
14916         (default_coff_asm_named_section, default_pe_asm_named_section): New.
14917         * output.h: Update varasm.c decls.
14918         (SECTION_*): New flags.
14919
14920         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
14921         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
14922
14923         * config/elfos.h (UNIQUE_SECTION_P): Remove.
14924         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
14925         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
14926         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
14927         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
14928         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
14929         * config/mips/elf.h, config/mips/elf64.h: Likewise.
14930         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
14931         * config/pa/pa64-hpux.h,
14932
14933         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
14934         (TARGET_ASM_NAMED_SECTION): New.
14935         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
14936         * config/alpha/vms.h, config/arm/coff.h: Likewise.
14937         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
14938         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
14939         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
14940         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
14941         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
14942         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
14943         * config/i386/sco5.h, config/i386/win32.h: Likewise.
14944         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
14945         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
14946         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
14947         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
14948         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
14949         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
14950         * config/sparc/sysv4.h: Likewise.
14951
14952         * config/nextstep.h: Error until named sections implemented.
14953
14954         * config/a29k/a29k.c (a29k_asm_named_section): New.
14955         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
14956         (vms_section_type_flags, vms_asm_named_section): New.
14957         * config/arm/arm.c (arm_elf_asm_named_section): New.
14958         * config/avr/avr.c (asm_output_section_name): Remove.
14959         * config/avr/avr-protos.h: Update.
14960         * config/c4x/c4x.c (c4x_asm_named_section): New.
14961         * config/h8300/h8300.c (h8300_asm_named_section): New.
14962         * config/i386/i386.c (sco_asm_named_section): New.
14963         * config/i386/winnt.c (SECTION_PE_SHARED): New.
14964         (i386_pe_section_type_flags): New.
14965         (i386_pe_asm_named_section): New.
14966         * config/i386/i386-protos.h: Update.
14967         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
14968         * config/mcore/mcore.c (mcore_asm_named_section): New.
14969         * config/mips/mips.c (iris6_asm_named_section): New.
14970         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
14971         instead of UNIQUE_SECTION_P.
14972         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
14973         (xcoff_asm_named_section): New.
14974         * config/sh/sh.c (sh_asm_named_section): New.
14975         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
14976
14977         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
14978         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
14979         (EH_FRAME_SECTION_NAME): New.
14980         (EXCEPTION_SECTION): New.
14981         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
14982         (DEBUG_*_SECTION): Remove.
14983         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
14984         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
14985         (EH_FRAME_SECTION_ASM_OP): Remove.
14986
14987         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
14988         (ASM_OUTPUT_SECTION_NAME): Remove.
14989         (TARGET_ASM_NAMED_SECTION): New.
14990         (TARGET_HAVE_NAMED_SECTIONS): New.
14991         (TARGET_SECTION_TYPE_FLAGS): New.
14992         (EH_FRAME_SECTION_ASM_OP): Remove.
14993         (EH_FRAME_SECTION_NAME): New.
14994
14995 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
14996
14997         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
14998         for complex expressions when cfun == 0.
14999         * doc/extend.texi: Document that __builtin_constant_p can be
15000         used in data initializers as well as functions.
15001
15002 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
15003
15004         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
15005         variable I locally, instead of expecting a declaration in the
15006         calling context.
15007
15008 2001-08-03  Richard Henderson  <rth@redhat.com>
15009
15010         * except.c (collect_one_action_chain): Add an explicit cleanup
15011         action if regions surrounding a catch were encoded entirely
15012         within the call-site entry.
15013
15014 2001-08-03  Richard Henderson  <rth@redhat.com>
15015
15016         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
15017         don't take REGNO of a non-register.
15018
15019 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15020
15021         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
15022         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
15023         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
15024         (__gthread_mutex_init_function): New function for mutex initialization.
15025
15026 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15027
15028         * Makefile.in: Revert screwed up commit.
15029
15030 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15031
15032         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
15033         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
15034         merged by linker script to get a final _exit().
15035         (__do_global_dtors): New for destructor handling in specific exit
15036         section.
15037         (__do_global_ctors): New for constructors in specific install section.
15038         (__map_data_section): Map data sections before running constructors.
15039         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
15040         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
15041         (DTORS_SECTION_ASM_OP): Likewise.
15042         (CTORS_SECTION_FUNCTION): Define to force a reference to
15043         __do_global_ctors.
15044         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
15045
15046 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15047
15048         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
15049
15050         * Makefile.in: Add df.h to gcse.c dependencies.
15051
15052 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15053
15054         * varasm.c (output_constant_def_contents): Use for the length of a
15055         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
15056         depending on which is larger.
15057
15058 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15059
15060         * gcse.c: Include df.h for use as a dataflow analyzer.
15061         Remove regvec.
15062         Declaration of reg_set_info: gone.
15063         New df_analyzer variable used by store motion.
15064         (reg_set_info): Deleted.
15065         (mark_mem_regs): New function, analyze regs used by a mem.
15066         (store_ops_ok): Use dataflow analyzer results to determine if
15067         necessary regs are changed in the block.
15068         (find_moveable_store): Remove check for symbol ref, we can handle
15069         much more complex expressions now.
15070         (compute_store_table): Remove most of the code, it's unnecessary
15071         now that the dataflow analyzer records the info for us.
15072         (store_killed_after): Add parameter to say whether to do the
15073         store_ops_okay test, used to speed up testing when we already know
15074         the answer, and just want to know if the store itself was killed.
15075         (build_store_vector): Largely rewritten to calculate the various
15076         vectors properly, and somewhat optimized.
15077         (store_motion): Init the df_analyzer, get REG_DEF chains.
15078         Also handle trapping expressions (since mems almost always trap)
15079         (simple_mem): Redefine what a simple mem is.
15080
15081 2001-08-03  DJ Delorie  <dj@redhat.com>
15082
15083         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
15084         set from a constant part of the condition.
15085
15086 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
15087
15088         * mkdeps.c (deps_add_default_target): Make local variable
15089         ``start'' a const char pointer.
15090         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
15091
15092 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15093
15094         * doc/install.texi (Configuration): Fix markup.
15095         (Specific, i?86-*-udk): Likewise.
15096         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
15097         --with-gnu-ld.
15098         Document --enable-threads and --enable-libgcj status.
15099         (Specific, mips-sgi-irix*): Canonicalize triples.
15100         (Specific, mips-sgi-irix5): Warn about problems with this config.
15101         Mention required GNU as patch.
15102         Native assembler problems are fixed.
15103         (Specific, mips-sgi-irix6): Update O32 ABI support status.
15104         Document --enable-threads and --enable-libgcj status.
15105
15106 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15107
15108         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
15109         of mkinstalldirs.
15110
15111 2001-08-03  Richard Henderson  <rth@redhat.com>
15112
15113         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
15114         constant data.
15115
15116 2001-08-03  Richard Henderson  <rth@redhat.com>
15117
15118         * rtlanal.c (find_first_parameter_load): Stop if we
15119         reach a CODE_LABEL at BOUNDARY.
15120
15121 2001-08-03  Richard Henderson  <rth@redhat.com>
15122
15123         * config/alpha/alpha.md (force_movdi): New insn.
15124         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
15125         Tweek FRP marking of VMS prologue insns.
15126         * config/alpha/vms.h (EPILOGUE_USES): New.
15127
15128 2001-08-02  Richard Henderson  <rth@redhat.com>
15129
15130         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
15131
15132 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
15133
15134         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
15135         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
15136         config/convex/convex.h, config/d30v/d30v.c,
15137         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15138         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
15139         config/mips/mips.h, config/mn10200/mn10200.h,
15140         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
15141         config/v850/v850.h, config/vax/openbsd.h,
15142         config/vax/openbsd1.h, config/vax/ultrix.h,
15143         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
15144         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
15145         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
15146         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
15147         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
15148         in comments and documentation.
15149
15150 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15151
15152         * line-map.c: New.
15153         * line-map.h: New.
15154         * Makefile.in (line-map.o): New.
15155         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
15156         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
15157         * cpperror.c (print_containing_files): Similarly.
15158         (print_location): Update.  Don't output a space before _Pragma.
15159         * cppfiles.c (stack_include_file): Set to line 1 immediately.
15160         (stack_include_filee, cpp_make_system_header): Update.
15161         (_cpp_execute_include): Get logical line number right for calling
15162         as-yet-unterminated #include.
15163         * cpphash.h (struct cpp_reader): Add line_maps.
15164         (_cpp_do_file_change): Update.
15165         * cppinit.c (cpp_create_reader): Initialize line maps.
15166         (cpp_destroy): Destroy line maps.
15167         (cpp_start_read): Get logical line number right.
15168         * cpplex.c (parse_string): Only warn once for multi-line strings.
15169         Use boolean variable for null warning.
15170         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
15171         already.
15172         (do_include_common): End the directive early.
15173         (do_line): Don't warn about out-of-range lines in preprocessed
15174         source.  Update.  Remove unused variables.
15175         (_cpp_do_file_change): Update for new line mapping.
15176         (pragma_cb): New typedef.
15177         (cpp_register_pragma): Stop looking ahead before calling the
15178         handler.  Clean up.
15179         (do_pragma_system_header): End directive early.
15180         (cpp_get_line_maps): New.
15181         (cpp_pop_buffer): Fudge logical line.  Update.
15182         * cpplib.h: Include line-map.h
15183         (enum cpp_fc_reason): Remove.
15184         (struct cpp_file_change): Update.
15185         (cpp_get_line_maps): New.
15186         * cppmain.c (struct_printer): New member map.
15187         (cb_file_change): Update for new mappings.
15188         * fix-header.c (cb_file_change): Similarly.
15189
15190 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15191
15192         * Makefile.in (libgcc.mk): Define mkinstalldirs.
15193         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
15194
15195 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
15196
15197         * config/vax/vax.c: include expr.h.
15198
15199 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15200
15201         * Makefile.in ($(srcdir)/configure): Only rebuild in
15202         maintainer mode.
15203         ($(srcdir)/config.in): Only define in maintainer mode.
15204         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
15205
15206 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
15207
15208         * doc/install.texi (Install GCC: Binaries): Update Bull info.
15209
15210 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15211
15212         * gcc.c (set_collect_gcc_options): New function, split out from
15213         main.
15214         Ignore elided switches.
15215         (do_spec_1): Invoke before executing command.
15216         (set_input): Export.
15217         Move declaration ...
15218         * gcc.h (set_input): ... here.
15219         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
15220         file.
15221
15222 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
15223
15224         Kill -fhonor-std.
15225         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
15226         interaction.
15227         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
15228
15229 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
15230
15231         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
15232         for the unnamed instructions it expands to.
15233
15234 2001-08-02  Richard Henderson  <rth@redhat.com>
15235
15236         * regclass.c (call_really_used_regs): Conditionally define.
15237         (init_reg_sets_1): Don't use it if not defined.
15238         (fix_register): Similarly, don't set it.
15239
15240 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15241
15242         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
15243         Correct comment that had been missed in the previous change.
15244
15245 2001-08-01  Stan Shebs  <shebs@apple.com>
15246
15247         * config/darwin.c (machopic_stub_name): Try matching by name.
15248         (update_stubs): New function.
15249         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
15250         unconditionally.
15251
15252 2001-08-01  Richard Henderson  <rth@redhat.com>
15253
15254         * except.c (output_function_exception_table): Use assemble_align.
15255         * varasm.c (assemble_eh_label): Remove.
15256         (assemble_eh_align, assemble_eh_integer): Remove.
15257
15258 2001-08-01  Robert Lipe  <robertl@caldera.com>
15259
15260         * dwarfout.c: Remove reference to README.DWARF.
15261
15262 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
15263
15264         * regclass.c (call_really_used_regs): New array for registers which
15265         are actually used by a call.
15266         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
15267         new array.
15268         (fix_register): Set call_really_used too.
15269         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
15270         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
15271
15272 2001-08-01  Richard Henderson  <rth@redhat.com>
15273
15274         * read-rtl.c (read_name): Consider \r whitespace.
15275
15276 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
15277
15278         * config.gcc: Recognize powerpc-*-netbsd*.
15279
15280         * doc/install.texi (Host/target specific installation notes for
15281         GCC): Mention powerpc-*-netbsd*.
15282
15283         * config/rs6000/netbsd.h: New file.
15284         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
15285         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
15286         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
15287         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
15288         (TARGET_VERSION): Redefine.
15289
15290         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
15291         mcall-netbsd as a match for mcall-sysv.
15292         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
15293         (ncrti.S, ncrtn.S): New targets.
15294         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
15295
15296         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
15297         "netbsd' as a V4 ABI.
15298         (ASM_SPEC): Check for -mcall-netbsd.
15299         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
15300         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
15301         (LIB_SPEC, ENDFILE_SPEC): Ditto.
15302         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
15303         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
15304         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
15305         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
15306
15307         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
15308         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
15309
15310 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
15311
15312         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
15313         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
15314         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
15315         including "unwind-pe.h".
15316
15317 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
15318
15319         * rs6000.md (define_splits): Kill unused constraints.
15320
15321 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
15322                               Jan Hubicka  <jh@suse.cz>
15323
15324         * function.c (thread_prologue_and_epilogue_insns): Kill code
15325         dealing with non-existent CFG.
15326
15327 2001-08-01  Kazu Hirata  <kazu@hxi.com>
15328
15329         * alias.c: Fix comment formatting.
15330         * bitmap.c: Likewise.
15331         * builtins.c: Likewise.
15332         * calls.c: Likewise.
15333         * c-common.c: Likewise.
15334         * c-decl.c: Likewise.
15335         * c-dump.c: Likewise.
15336         * c-lex.c: Likewise.
15337         * collect2.c: Likewise.
15338         * combine.c: Likewise.
15339         * conflict.c: Likewise.
15340         * cppfiles.c: Likewise.
15341         * cppinit.c: Likewise.
15342         * cpplex.c: Likewise.
15343         * cpplib.c: Likewise.
15344         * cppmacro.c: Likewise.
15345         * cppspec.c: Likewise.
15346         * c-pragma.c: Likewise.
15347         * crtstuff.c: Likewise.
15348         * cse.c: Likewise.
15349         * cselib.c: Likewise.
15350         * c-semantics.c: Likewise.
15351         * c-typeck.c: Likewise.
15352
15353 2001-08-01  H.J. Lu <hjl@gnu.org>
15354
15355         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
15356
15357 2001-08-01  H.J. Lu <hjl@gnu.org>
15358
15359         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
15360
15361 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
15362
15363         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
15364         contextualizing Objective-C class name lookup by the lexer.
15365         (typespec_reserved_nonattr): Disable ObjC class name lookup after
15366         seeing a TYPESPEC.
15367         (protocoldef): Add support for forward @protocol declarations.
15368         (yylexname): Suppress ObjC class name lookup in certain contexts;
15369         re-enable after lookup is complete.
15370         (_yylex): Re-enable ObjC class name lookup when certain
15371         punctuation marks are seen.
15372
15373         * objc/objc-act.c (check_protocol_recursively): New function used
15374         for finding circular dependencies in protocols.
15375         (objc_declare_protocols): New function for handling forward
15376         @protocol declarations.
15377         (receiver_is_class_object): Detect the case when 'self' is used
15378         inside of a class method.
15379         (build_message_expr): Issue a warning if class method is desired
15380         but instance method is found instead.
15381         (conforms_to_protocol): Streamline.
15382         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
15383         protocol Foo, even if 'Bar foo' does not.
15384         (check_protocols): Streamline.
15385         (start_protocol): Add checks for circular and duplicate protocol
15386         definitions.
15387         (encode_aggregate_within): For typedefs of structs, encode the
15388         underlying struct.
15389         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
15390         (objc_declare_protocols): New prototype.
15391
15392 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15393
15394         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
15395         * cpplex.c (handle_newline): Update prototype.  Maintain logical
15396         line number.
15397         (skip_escaped_newlines, skip_block_comment, parse_string):
15398         Update accordingly.
15399         (_cpp_lex_token): Update, and store token position within the token.
15400         * cpplib.h (struct cpp_token): Add line and column entries.
15401         * cppmacro.c (replace_args): Position stringified tokens correctly.
15402
15403 2001-08-01  Andreas Jaeger  <aj@suse.de>
15404
15405         * basic-block.h: Add prototype for last_loop_beg_note.
15406
15407 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
15408
15409         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
15410         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
15411         comment.
15412         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
15413         while handling WITH_CLEANUP_EXPR node. Use second operand calling
15414         expand_decl_cleanup.
15415         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
15416         the first RTX.
15417         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
15418         operand while calling simple_cst_equal.
15419         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
15420         operand is the cleanup expression, the third is the RTL_EXPR.
15421         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
15422
15423 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
15424
15425         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
15426
15427 2001-07-31  matthew green  <mrg@eterna.com.au>
15428
15429         * config.gcc (i386-*-netbsdelf): New description.
15430         * config/i386/netbsd-elf.h: New file.
15431
15432 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
15433
15434         * loop.c (check_dbra_loop): Use single_set to compute
15435         jump_label.
15436
15437 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
15438
15439         PowerPC reorg and support for powerpc64-*-linux*.
15440
15441         Also fixes emitting of constants on 32 bit and 64 bit
15442         platforms.
15443
15444         * config.gcc: powerpc64-*-linux* is a new target.
15445         Things that needed aix.h now also include xcoff.h
15446
15447         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
15448         xcoff.h.
15449         Move AIX specific stuff into aix.h.
15450         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
15451         with more than just XCOFF now.
15452         (SET_ASM_OP): Remove, now defined where needed.
15453         (FUNCTION_PROLOGUE): New macro definition.
15454         (FUNCTION_EPILOGUE): New macro definition.
15455         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
15456
15457         * config/rs6000/xcoff.h: New file.
15458
15459         * config/rs6000/linux64.h: New file.
15460
15461         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
15462
15463 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
15464
15465         * rs6000.c (print_operand_address): Handle ELF syntax.
15466         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
15467         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
15468         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
15469
15470 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
15471
15472         * rs6000.c (rs6000_override_options): Only disable
15473         flag_function_sections for XCOFF.
15474         (exact_log2_cint_operand): New predicate.
15475         (reg_or_{add,sub}_cint64_operand): New predicates.
15476         (add_operand): Compare CONST_INT with fewer function calls.
15477         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
15478         (print_operand, case 'p'): Ensure positive operand.
15479         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
15480         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
15481         (PREDICATE_CODES): Add new predicates.
15482         * rs6000.md (addsi3): Split 32-bit constants more correctly.
15483         (divsi3, modsi3): Ensure positive power-of-2.
15484         (adddi3): Use new predicate.  Split 32-bit constants more
15485         correctly.  Re-arrange splitter to handle any constant.
15486         (subdi3): Use new predicate.
15487         (divdi3, moddi3): Ensure positive power-of-2.
15488         (movdi): Use rs6000_emit_set_const.
15489         (load_toc_v4_pic_di): Delete.
15490
15491 2001-07-31  Graham Stott <grahams@redhat.com>
15492
15493         * function.c (pad_below): Revert 2001-07-26 patch.
15494
15495 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
15496
15497         * reg-stack (convert_regs_1): Fix best edge condition.
15498
15499 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
15500
15501         * jump.c (duplicate_loop_exit_test): Better test for jumps
15502         entering the loop; create loop pre_header.
15503
15504 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
15505
15506         * doc/install.texi: Add s390 and s390x as new targets.
15507         * doc/invoke.texi: Add documentation of S/390 and zSeries
15508         target options.
15509         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
15510
15511 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
15512
15513         * config/m68k/m68k.md: Replace all general_operand with
15514         nonimmediate_operand for all destinations.
15515         * config/m68k/m68k.c (not_sp_operand): Likewise.
15516
15517 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
15518
15519         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
15520
15521 2001-07-30  Richard Henderson  <rth@redhat.com>
15522
15523         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
15524         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
15525
15526 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
15527
15528         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
15529         Add missing doc strings
15530         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
15531         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
15532
15533 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
15534
15535         * i386.c (ix86_output_main_function_alignment_hack): New function.
15536         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
15537
15538         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
15539         edges by EDGE_DFS_BACK flag.
15540         (dump_edge_info): Add dfs_back flag.
15541         * basic-block.h (EDGE_DFS_BACK): New constant.
15542         (mark_dfs_back_edges): Declare.
15543         * alias.c (loop_p): Remove.
15544         (mark_constant_function): Use mark_dfs_back_edges.
15545
15546         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
15547         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
15548         (compensate_edge): Break out from ...
15549         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
15550         (convert_regs_2): Set block_done once block is really done;
15551         Do updating of the predecessors counts.
15552
15553         * toplev.c (rest_of_compilation): Recompute block_for_insn
15554         before post-reload cfg_cleanup.
15555         * function.c (thread_prologue_epilogue_insns):
15556         Call set_block_for_new_insns when emitting prologue directly.
15557
15558 2001-07-30  Andreas Jaeger  <aj@suse.de>
15559
15560         * jump.c: Add prototype for mark_modified_reg.
15561
15562         * cse.c (set_live_p): Add unused attribute.
15563
15564         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
15565         overflow.
15566         (scan_for_source_files): Use long for count to avoid overflow.
15567         (output_data): Likewise.
15568         (output_data): Don't use string concatatenation to silence gcc
15569         -traditional.
15570
15571         * predict.c: Fix typos and grammar.
15572
15573         * gcse.c (insert_insn_end_bb): Remove unused variables.
15574
15575 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
15576
15577         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
15578         (attempt_auto_inc): LIkewise.
15579         (mark_used_reg): Likewise.
15580         (try_pre_increment_1): Likewise.
15581         * regclass.c (regclass): Likewise.
15582         * global.c (allocno_compare): Update comment; change scaling factor.
15583         * local-alloc.c (QTY_CMP_PRI): Likewise.
15584         * regs.h (REG_FREQ_FROM_BB): New.
15585         (REG_FREQ_MAX): Likewise.
15586
15587 2001-07-30  H.J. Lu <hjl@gnu.org>
15588
15589         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
15590         -D_GNU_SOURCE.
15591
15592 2001-07-30  H.J. Lu  (hjl@gnu.org)
15593
15594         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
15595         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
15596         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
15597
15598 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
15599
15600         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
15601         as -mthumb-interwork when -mcpu=arm7 is specified.
15602
15603 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
15604
15605         * predict.def (noreturn, loop branch, loop exit): Mark as first
15606         match heuristics.
15607
15608 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
15609
15610         * combine.c (try_combine): Avoid barrier after noop jumps.
15611
15612 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15613
15614         * cpphash.h (struct cpp_reader): Remove import_warning.
15615         * cpplib.c (skip_rest_of_line): Don't bother turning off
15616         macro expansion.
15617         (parse_include): Move include handling to...
15618         (do_include_common): ... here.  Move import warning from...
15619         (do_import): ... here.
15620         (do_pragma_poison): Don't do a callback for poison identifiers.
15621         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
15622         * cppmain.c (setup_callbacks): Similarly.
15623
15624 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
15625
15626         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
15627         handle multiple sets.
15628         * except.c (sjlj_mark_call_sites): .... here.
15629         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
15630
15631 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
15632
15633         Suggested by Richard Henderson and Richard Kenner:
15634         * combine.c (recog_for_combine): Use the fake recog
15635         only if instruction does not match.
15636         * rtl.h (NOOP_MOVE_INSN_CODE): New.
15637         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
15638
15639         * combine.c (try_combine): Discover noop jump as direct jump.
15640
15641 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
15642
15643         * df.c (df_rd_global_compute): Add successors to worklist, not
15644         current item.
15645         (df_ru_global_compute): Ditto.
15646
15647 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
15648
15649         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
15650         increment REG_N_SETS.
15651
15652 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
15653
15654         * sbitmap.h: New prototype for sbitmap_a_xor_b.
15655
15656         * sbitmap.c (sbitmap_a_xor_b): New function.
15657         ifdef the basic block stuff on IN_GCC.
15658
15659 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15660
15661         * cppexp.c (parse_defined): Always record the macro name.
15662         (lex): Don't worry about identifiers, or special-case
15663         CPP_NOT here.
15664         (_cpp_parse_expr): Figure out at the end of the routine
15665         whether we saw a valid !defined() expression.
15666         * cppfiles.c (stack_include_file): Update for mi_valid.
15667         (_cpp_pop_file_buffer): Similarly.
15668         * cpplex.c (_cpp_lex_token): Similarly.
15669         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
15670         mi_if_not_defined, mi_lexed): Remove.
15671         (mi_valid): New.
15672         * cpplib.c (do_if): Simplify.
15673         (do_endif, push_conditional, _cpp_handle_directive): Update
15674         for renaming of mi_state to mi_valid.
15675 doc:
15676         * cpp.texi: Add index entries for digraphs, and add comment
15677         that C++ refers to them as alternative tokens.
15678
15679 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
15680
15681         * basic-block.h (CLEANUP_PRE_LOOP): New.
15682         * except.c (finish_eh_generation): Update call of cleanup_cfg.
15683         * sibcall.c (optimize_sibling_calls): Likewise.
15684         * toplev.c (rest_of_compilation): Likewise.
15685         * flow.c (try_forward_edges): Take argument MODE;
15686         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
15687         (try_optimize_cfg): Update call of try_forward_edges.
15688
15689 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
15690                                 Jan Hubicka  <jh@suse.cz>
15691
15692         * (validate_replace_rtx_1): Fix simplification of MINUS.
15693
15694 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
15695
15696         PR preprocessor/3669
15697         * cppinit.c (init_dependency_output): Turn off dump requests
15698         if sending dependencies to stdout.
15699
15700 2001-07-28  Richard Henderson  <rth@redhat.com>
15701
15702         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
15703         not optimizing.
15704
15705 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
15706
15707         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
15708
15709 2001-07-28  Kazu Hirata  <kazu@hxi.com>
15710
15711         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
15712         is VAR_DECL first to prevent an ICE.
15713
15714 2001-07-28  Richard Henderson  <rth@redhat.com>
15715
15716         * varasm.c (immed_real_const_1): Don't elide special cases for
15717         nested functions.
15718         (clear_const_double_mem): Clear const_tiny_rtx too.
15719
15720 2001-07-28  Richard Henderson  <rth@redhat.com>
15721
15722         * dwarf2out.c (dw_val_class_offset): New.
15723         (struct dw_ranges_struct, dw_ranges_ref): New.
15724         (ranges_table, ranges_table_allocated): New.
15725         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
15726         (add_AT_offset, add_ranges, output_ranges): New.
15727         (print_die, output_die): Handle dw_val_class_offset.
15728         (attr_checksum, size_of_die, value_format): Likewise.
15729         (gen_lexical_block_die): Handle non-contiguous blocks.
15730         (gen_block_die): Likewise.
15731         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
15732         if needed.  Dump the ranges table.
15733         * final.c (final_start_function): Remove unnecessary notes and
15734         rebuild the block tree before numbering the blocks.
15735         * function.c (reorder_blocks_0): Walk the existing block tree
15736         to unmark all blocks.
15737         (reorder_blocks_1): Create block fragments when duplicate block
15738         notes are seen.
15739         (reorder_fix_fragments): New.
15740         (reorder_blocks): Call it.
15741         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
15742
15743 2001-07-28  Richard Henderson  <rth@redhat.com>
15744
15745         * emit-rtl.c (adjust_address): Make a copy of the memory address.
15746
15747 2001-07-28  Richard Henderson  <rth@redhat.com>
15748
15749         * flow.c (add_to_mem_set_list): New function.
15750         (init_propagate_block_info): Use it.
15751         (mark_set_1): Likewise.
15752         (insn_dead_p): Canonicalize memory address for dead store
15753         comparison.  Allow wider mode stores to kill narrower mode stores.
15754         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
15755         (invalidate_mems_from_set): Don't handle MEMs.
15756
15757 2001-07-28  Kazu Hirata  <kazu@hxi.com>
15758
15759         * config/h8300/h8300.h: Fix formatting.
15760
15761 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
15762
15763         * basic-block.h (EDGE_FREQUENCY): New macro.
15764         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
15765         for new BB/edges.
15766         * flow.c (find_sub_basic_blocks): Likewise.
15767         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
15768         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
15769
15770         * predict.c (DEF_PREDICTOR): New argument FLAGS.
15771         (HITRATE): New macro.
15772         (PRED_FLAG_FIRST_MATCH): New constant.
15773         (predictor_info): New field flgags.
15774         (combine_predictions_for_insn): Use DS theory to combine
15775         probabilities; set the edge probabilities when finished.
15776         (estimate_probability): Avoid duplicated matches
15777         of LOOP_BRANCH heuristics for nested loops; update comment.
15778         * predict.def: Add flags for each prediction, set probabilities
15779         according to B&L paper.
15780         * predict.h (DEF_PREDICTOR): New argument FLAGS.
15781
15782         * profile.c (compute_branch_probabilities):  Cleanup way the edge
15783         probabilities are computed and REG_BR_PROB notes are dropped; if
15784         values does not match, emit error.
15785         (init_branch_prob): Do error instead of warning when profile driven
15786         feedback is missing or corrupt.
15787
15788 2001-07-27  DJ Delorie  <dj@redhat.com>
15789
15790         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
15791         against a constant, try to adjust the compare to have the desired
15792         constant in it so that min/max optimizations happen more often.
15793
15794 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15795
15796         * flow.c (last_loop_beg_note): New function.
15797         (redirect_edge_and_branch): Use it.
15798         (split_edge): Likewise.
15799
15800         * alias.c (loop_p): Avoid uninitialized memory access.
15801
15802         * flow.c (try_forward_edges): Avoid accessing freed memory.
15803
15804         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
15805         variable access.
15806
15807 2001-07-26  Andrew Haley  <aph@redhat.com>
15808         Joern Rennecke <amylaar@redhat.com>
15809
15810         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
15811         (SUBTARGET_CPP_ENDIAN_SPEC): New.
15812         (SUBTARGET_CPP_SPEC): New.
15813         (CPP_SPEC): Remove.
15814         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
15815         (SUBTARGET_CPP_PTR_SPEC): New.
15816         (CPP_DEFAULT_CPU_SPEC): New.
15817         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
15818         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
15819         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
15820         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
15821         (SUBTARGET_CPP_SPEC): Define as an empty string.
15822
15823 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15824
15825         * doc/install.texi (Configuration): Properly link the host
15826         specific instructions also when generating HTML.
15827
15828 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
15829
15830         * flow.c (redirect_edge_and_branch_force): Test
15831         target->global_live_at_start.
15832
15833 2001-07-26  Richard Henderson  <rth@redhat.com>
15834
15835         * simplify-rtx.c (avoid_constant_pool_reference): Export.
15836         * rtl.h (avoid_constant_pool_reference): Declare it.
15837         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
15838         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
15839
15840 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
15841
15842         * rtl.h (cleanup_barriers): Declare.
15843         * jump.c (cleanup_barriers): New function.
15844         * toplev.c (rest_of_compilation): Call cleanup_barriers
15845         before loop optimizer and after bb_reorder.
15846
15847         * flow.c (back_edge_of_syntactic_loop_p): New.
15848         (split_edge): Use it.
15849
15850 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15851
15852         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
15853
15854 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
15855
15856         * cse.c (cse_process_notes): Replace any registers if the address
15857         remains valid.
15858
15859 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
15860
15861         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
15862         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
15863         (propagate_block): Update prototype.
15864         * flow.c (update_life_info): Simplify the CFG and
15865         recalculate the global regs which are alive when
15866         removing dead code during a global update.
15867         (propagate_block): Return non-zero if an INSN is
15868         deleted.
15869
15870 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15871
15872         * Makefile.in (LIBICONV): Define.
15873
15874 2001-07-26  Catherine Moore  <clm@redhat.com>
15875
15876         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
15877         of conditional to avoid tree checking errors.
15878
15879 2001-07-26  Kazu Hirata  <kazu@hxi.com>
15880
15881         * regmove.c (regmove_optimize): Don't replace a reg with
15882         another reg of a different mode.
15883
15884 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
15885
15886         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
15887         limit length of dependency flush list.
15888         * params.h (MAX_PENDING_LIST_LENGTH): Define.
15889         * sched-int.h  (struct deps): Add pending_flush_length field.
15890         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
15891         has 1 element in it.
15892         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
15893         (sched_analyze): After a jump, if the pending memory flush list is too
15894         large, flush the pending lists.
15895         (init_deps): Initialize pending_flush_length to 0.
15896         * doc/invoke.texi (max_pending_list_length): Document parameter.
15897
15898 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
15899
15900         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
15901         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
15902         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
15903
15904 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15905
15906         * cpphash.h (struct_lexer_state): Delete was_skipping.
15907         Move skipping here from struct cpp_reader.
15908         * cpplex.c (parse_identifier): Update.
15909         (_cpp_lex_token): Don't skip tokens in a directive.
15910         * cpplib.c (struct if_stack): Update.
15911         (start_directive, end_directive): Don't change skipping state.
15912         (_cpp_handle_directive): Update.
15913         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
15914         (do_else, do_endif): Update; only check for excess tokens if not
15915         in a skipped conditional block.
15916         (push_conditional): Update for new struct if_stack.
15917
15918 2001-07-26  Graham Stott  <grahams@redhat.com>
15919
15920         * function.c (locate_and_pad_parm): Also pad initial offset
15921         so that the total argument size also includes the padding.
15922
15923 2001-07-26  Graham Stott <grahams@redhat.com>
15924
15925         * gensupport.c (alter_output_for_insn): Correct enable checking failure
15926         change XSTR to XTMPL.
15927
15928         (process_one_cond_exec): Likewise
15929
15930 2001-07-25  Richard Henderson  <rth@redhat.com>
15931
15932         * varasm.c (assemble_variable): Create DECL_RTL before setting
15933         TREE_ASM_WRITTEN.
15934
15935 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
15936
15937         * predict.c (estimate_probability): Avoid duplicated predictions.
15938
15939         * loop.c (find_and_verify_loops): Grok multiple barriers.
15940
15941 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15942
15943         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
15944
15945         * dbxout.c: Consistently use putc instead of fputc.
15946         (print_wide_int): New function; call instead of direct fprintf.
15947         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
15948         (dbxout_type_fields, dbxout_type_method_1): Likewise.
15949         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
15950         (print_int_cst_octal): Likewise.
15951         (print_octal): Show we wrote characters.
15952         (dbxout_type): Set have_used_extensions in more places.
15953
15954 2001-07-25  Catherine Moore  <clm@redhat.com>
15955
15956         * config/v850/v850.c (v850_va_arg):  Use addr
15957         instead of valist to build incr.
15958
15959 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
15960
15961         * flow.c (delete_dead_jumptables): New function.
15962         (life_analyzis): Call it.
15963         * bb-reorder.c (skip_insns_after_block): Handle contradictory
15964         sequences.
15965
15966 2001-07-25  Richard Henderson  <rth@redhat.com>
15967
15968         * except.c (reachable_handlers): Handle a region being removed
15969         out from under a RESX.
15970
15971 2001-07-25  Richard Henderson  <rth@redhat.com>
15972
15973         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
15974         swap GE/GT if it is an fp comparison.
15975
15976 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
15977
15978         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
15979         operands.
15980
15981 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
15982
15983         * ssa.c (rename_insn_1): Do not wrap an assignment to a
15984         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
15985         glitch.
15986
15987         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
15988         throw an exception.
15989         (visit_expression): When attempting to simplify an expression,
15990         retrieve any modes for arguments before they are simplified
15991         to constants.
15992
15993 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
15994             Janis Johnson  <janis@us.ibm.com>
15995
15996         * stmt.c (expand_goto): A nonlocal goto can be a call too.
15997         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
15998         pointer parameters to match documented usage of nonlocal_goto.
15999         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
16000         parameters to their correct order.
16001         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
16002         parameters to their correct order.
16003
16004 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
16005
16006         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
16007
16008 2001-07-25  Jan Hubicka  <jh@suse.cz>
16009             Richard Henderson  <rth@redhat.com>
16010
16011         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
16012         the sequence.
16013         (make_edges): New argument update_p; populate the edge cache if set.
16014         (find_basic_blocks): Update make_edges invocation.
16015
16016 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16017
16018         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
16019
16020 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16021
16022         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
16023         -Acpu and -Amachine.h.
16024         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
16025         Corrected header to say ELF not a.out.
16026         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
16027         when given -msoft-float.
16028
16029 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16030
16031         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
16032         extra multilib parts like arm-elf.
16033         (i960-*-coff*, i960-*-rtems): Should not use collect2.
16034         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
16035         crtfini.o as extra multilib parts.
16036
16037 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16038
16039         * configure.in: Add rtems as a supported thread model.
16040         * gthr-rtems.h: Add missing entry point __gthread_active_p.
16041         * configure: Rebuilt.
16042
16043 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
16044
16045         * stor-layout.c (get_mode_alignment): make it work when
16046         BITS_PER_UNIT is not a power of two.
16047         * builtins.c (get_pointer_alignment): Likewise.
16048
16049 2001-07-24  Richard Henderson  <rth@redhat.com>
16050
16051         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
16052         the retrieved constant into the expected mode.
16053
16054 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
16055
16056         * flow.c (try_simplify_condjump): Avoid duplicated edges.
16057         (verify_flow_info): Check for duplicated edges; clarify
16058         error reporting.
16059
16060         * flow.c (block_label): Update basic_block_for_insn.
16061         (commit_edge_insertions): Call compute_bb_for_insn.
16062
16063         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
16064         returns too.
16065
16066         * flow.c (redirect_edge_and_branch,
16067         try_optimize_cfg): Use redirect_edge_succ_nodup
16068         (redirect_edge_succ_nodup): New.
16069         * basic_block.h (redirect_edge_succ_nodup): Declare.
16070
16071         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
16072         after gcse.
16073
16074 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
16075
16076         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
16077         (try_crossjump_to_edge): Update commetns.
16078         (try_crossjump_bb): Likewise.
16079
16080 2001-07-24  Richard Henderson  <rth@redhat.com>
16081
16082         * combine.c (distribute_notes): Move set of need_refresh
16083         for noop_move_p down to catch all cases.
16084
16085 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
16086
16087         * recog.c (split_all_insns_noflow): New.
16088         * rtl.h (split_all_insns_noflow): Declare.
16089         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
16090         * m68hc11.c (m68hc11_reorg): Likewise.
16091         * sh.c (machine_dependent_reorg): Likewise.
16092         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
16093         call.
16094
16095 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
16096
16097         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
16098         (ashlsi3_n splitter): Likewise.
16099         (lshrsi3_n splitter): Likewise.
16100
16101         (GOTaddr2picreg): Make const SImode.
16102         (sym_label2reg): Likewise.
16103         (symGOT2reg): Likewise.
16104         (symGOTOFF2reg) Likewise.
16105
16106         (casesi_worker_0): Make unspec SImode.
16107
16108 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
16109
16110         * config/sh/sh.c (barrier_align): Check that an operand really is
16111         an insn before extracting its INSN_CODE.
16112
16113 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
16114
16115         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
16116         dangling else.
16117
16118         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
16119         for SImode to prevent overflow.
16120
16121 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16122
16123         * config/mips/irix6-libc-compat.c: New file.
16124         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
16125         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
16126         passing workaround.
16127
16128 2001-07-24  lars brinkhoff  <lars@nocrew.org>
16129
16130         * rtl.texi (REG_POINTER): Document.
16131         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
16132         QFmode, HFmode, TQFmode, QCmode, and HCmode.
16133
16134 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
16135
16136         * flow.c (delete_noop_moves): Do not confuse libcall regions.
16137
16138 2001-07-23  Richard Henderson  <rth@redhat.com>
16139
16140         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
16141
16142 2001-07-23  Kazu Hirata  <kazu@hxi.com>
16143
16144         * config/h8300/h8300-protos.h: Add a prototype for
16145         general_operand_dst_push.
16146         * config/h8300/h8300.c (general_operand_dst_push): New.
16147         * config/h8300/h8300.h (OK_FOR_T): New.
16148         (EXTRA_CONSTRAINT): Use it.
16149         * config/h8300/h8300.md (movqi_push): Remove and integrate into
16150         the existing movqi pattern.
16151         (movhi_push): Likewise.
16152
16153         * reload.c: Fix comment typos.
16154
16155 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
16156
16157         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
16158
16159 2001-07-23  H.J. Lu  (hjl@gnu.org)
16160
16161         * doc/extend.texi: Update __builtin_return_address and
16162         __builtin_frame_address.
16163
16164 2001-07-23  Richard Henderson  <rth@redhat.com>
16165
16166         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
16167         before CSE.
16168         * config/i386/i386.md: New setcc+movzbl peephole2.
16169
16170 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
16171
16172         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
16173         * objc/objc-act.c: Include debug.h.
16174         (synth_module_prologue): Save and restore debug hooks too.
16175
16176 2001-07-23  lars brinkhoff  <lars@nocrew.org>
16177
16178         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
16179         and C4X_FLOAT_FORMAT.
16180         (BOOL_TYPE_SIZE): Document.
16181
16182 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
16183
16184         * unroll.c (loop_iterations): Fix miscalculation of initial
16185         giv offset.
16186
16187 2001-07-13  Andrew Haley  <aph@redhat.com>
16188
16189         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
16190         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
16191         * config/sh/sh.c (sh_can_redirect_branch): New function.
16192         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
16193         * reorg.c (steal_delay_list_from_target): Use
16194         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
16195
16196 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
16197
16198         * flow.c (try_simplify_condjump): Unlink insn chain on
16199         fallthru edge; use can_fallthru.
16200
16201 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
16202
16203         * basic-block.h (find_sub_basic_block): Declare.
16204         * flow.c (make_edges): New arguments MIN and MAX;
16205         (find_sub_basic_blocks): Revamp to use make_edges
16206         and purge_dead_edges.
16207         (find_basic_blocks): Update call of find_sub_basic_block.
16208
16209         * recog.c (split_all_insns): Always expect CFG to be consistent;
16210         call find_sub_basic_blocks in case something has changed.
16211         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
16212         has been built.
16213
16214         * basic-block.h (delete_noop_moves): Declare.
16215         * combine.c (combine_instructions): Call it.
16216         (recog_for_combine): Tolerate noop moves
16217         (distribute_notes): Force refresh when register dies at noop move.
16218         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
16219         too.
16220         (life_analysis): Update delete_noop_moves call.
16221         (set_noop_p): Move too ...
16222         * rtlanal.c (noop_move_p): ... here.
16223         * rtl.h (noop_move_p): Declare.
16224
16225         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
16226         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
16227         after combine.
16228         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
16229         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
16230
16231 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
16232
16233         * reload.c (push_reload): Fix typo in comment.
16234         (find_reloads_address): Ditto.
16235         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
16236
16237 2001-07-22  Richard Henderson  <rth@redhat.com>
16238
16239         * flow.c: Grammar check and clarify a lot of comments.
16240         (try_simplify_condjump): Rename variables to be clearer.
16241         (try_forward_edges): Skip complex and fallthru edges.
16242         Rearrange tests to avoid duplicate checks.
16243         (flow_find_cross_jump): Likewise.
16244         (outgoing_edges_match): Allow match if neither branch has
16245         probability data.  Loosen probability match to 5%.
16246         (try_crossjump_to_edge): Hoist repeated indirection into
16247         local variables.
16248         (try_crossjump_bb): Don't check complex edges.  Eliminate
16249         redundant crossjump tests.
16250         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
16251         checks before more expensive checks.
16252
16253 2001-07-22  Richard Henderson  <rth@redhat.com>
16254
16255         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
16256         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
16257         arguments.
16258
16259 2001-07-22  Richard Henderson  <rth@redhat.com>
16260
16261         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
16262         (const_sint32_operand): Likewise.
16263         * m68k.md (anon mulsi pattern): Use const_int_operand not
16264         const_sint32_operand.
16265         (umulsi3_highpart): Zero extend a constant input.
16266         (smulsi3_highpart): Don't bother checking SImode constant.
16267         (const_umulsi3_highpart): Give op3 DImode.
16268         (const_smulsi3_highpart): Likewise.
16269
16270 2001-07-22  Richard Henderson  <rth@redhat.com>
16271
16272         * flow.c (split_block): Make sure bb_note is included in the
16273         new block when splitting before a label.
16274
16275 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
16276
16277         * basic-block.h (redirect_edge_and_branch_force,
16278         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
16279         * flow.c (redirect_edge_and_branch_force,
16280         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
16281         (redirect_edge_and_branch_force): Fix copying of lifeness information.
16282         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
16283         * ifcvt.c (dead_or_predictable): Take BB as an new destination
16284         instead of label; update CFG after transformation.
16285         (find_if_case_1): Update call, use redirect_edge_and_branch_force
16286         for finishing the transformation; handle even case where ELSE
16287         does not follow THEN.
16288         (find_if_case_2): Update call of dead_or_predictable; simplify
16289         CFG update.
16290
16291         * emit-rtl.c (split_branch_probability): New global variable.
16292         (try_split): Take care to set split_branch_probability and
16293         create REG_BR_PROB note for new jump insns.
16294         * md.texi (define_split): Document new feature.
16295
16296         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
16297
16298 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16299
16300         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
16301         (asm_out_file): Remove redundant declaration.
16302         (assemble_asm): Remove old #if 0 block.
16303         (assemble_variable): Remove end of function; debug output is
16304         now handled with global_decl.  Remove old #if 0 block.  Update.
16305         Remove saved_in_section and associated no-op code.
16306         * Makefile.in (varasm.o): Correct dependencies.
16307
16308 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
16309
16310         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
16311         the definition in defaults.h.
16312
16313 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
16314
16315         * jump.c: Update comments.
16316         (delete_barrier_successors, delete_unreferenced_labels,
16317         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
16318         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
16319         jump_optimize, jump_optimize_minimal): Kill.
16320         (rebuild_jump_labels): Move code from jump_optimize_1.
16321         (purge_line_number_notes): Likewise.
16322         (copy_loop_headers): Likewise.
16323         * reg-stack.c: Update comment.
16324         * stmt.c: Likewise.
16325         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
16326         JUMP_AFTER_REGSCAN): Kill.
16327         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
16328         purge_line_number_notes and copy_loop_headers.
16329
16330 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
16331            Richard Henderson  <rth@redhat.com>
16332
16333         * dbxout.c (dbxout_global_decl): New.
16334         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
16335         * sdbout.c (sdbout_finish): New.
16336         (sdbout_debug_hooks): Use it, add comments.
16337         (sdbout_global_decl): Defer initialised public vars to
16338         sdbout_finish.
16339         * varasm.c (assemble_variable): Don't output debug information
16340         for file-scope variables.
16341
16342 2001-07-22  Richard Henderson  <rth@redhat.com>
16343
16344         * config/alpha/alpha.c (get_trap_mode_suffix): New.
16345         (get_round_mode_suffix): New.
16346         (print_operand): Use them for [/].  Remove support for [&'`()+].
16347         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
16348         * config/alpha/alpha.md (attr round_suffix): New.
16349         (attr trap_suffix): New.
16350         (all insns): Set them appropriately.  Use %/ instead of the
16351         myriad punctuators.
16352
16353 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
16354
16355         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
16356
16357 2001-07-22  Richard Henderson  <rth@redhat.com>
16358
16359         * regrename.c (regrename_optimize): Compute nregs for each
16360         potential target register.
16361
16362 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
16363            Richard Henderson  <rth@redhat.com>
16364
16365         * dbxout.c (dbxout_global_decl): New.
16366         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
16367         * sdbout.c (sdbout_finish): New.
16368         (sdbout_debug_hooks): Use it, add comments.
16369         (sdbout_global_decl): Defer initialised public vars to
16370         sdbout_finish.
16371         * varasm.c (assemble_variable): Don't output debug information
16372         for file-scope variables.
16373
16374 2001-07-21  H.J. Lu  (hjl@gnu.org)
16375
16376         * config/mips/mips.c (mips_cpu): Moved into ...
16377         (override_options): Here.
16378
16379         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
16380         mips_tune.
16381         (mips_cpu): Removed.
16382
16383 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16384
16385         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
16386         ("iorqi3"): Likewise.
16387         ("xorqi3"): Likewise.
16388         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
16389         ("*subhi3_sp): Likewise.
16390         ("*subhi3"): Likewise.
16391         ("extendhisi2"): Accept D, X and Y as source operand to avoid
16392         reload problems.
16393
16394 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16395
16396         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
16397         * config/freebsd.h: Likewise.
16398         * config/linux.h: Likewise.
16399         * config/openbsd.h: Likewise.
16400         * config/alpha/linux-elf.h: Likewise.
16401         * config/arm/linux-elf.h: Likewise.
16402         * config/d30v/d30v.h: Likewise.
16403         * config/fr30/fr30.h: Likewise.
16404         * config/ia64/aix.h: Likewise.
16405         * config/ia64/ia64.h: Likewise.
16406         * config/mips/linux.h: Likewise.
16407         * config/pj/pj.h: Likewise.
16408         * config/rs6000/linux.h: Likewise.
16409         * config/sparc/linux.h: Likewise.
16410         * config/sparc/linux64.h: Likewise.
16411
16412 2001-07-20  Bruce Korb  <bkorb@gnu.org>
16413
16414         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
16415         because getc() and char* may disagree on signedness.
16416
16417 2001-07-20  Richard Henderson  <rth@redhat.com>
16418
16419         * doc/rtl.texi (REG_DEAD): Update for current semantics.
16420
16421         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
16422         insns to delete in the presence of cc0 in a jump insn.
16423
16424 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
16425                                 Jan Hubicka  <jh@suse.cz>
16426
16427         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
16428         of doing the change by hand.
16429
16430 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
16431
16432         * rtlanal.c (set_noop_p): Return true for noop jumps.
16433
16434         * expr.c (emit_single_push_insn): Add call to push expander.
16435         * expr.h (optab_index): Add OTI_push
16436         (push_optab): New constant.
16437         * genopinit.c (optabs): Add push_optab.
16438         * optabs.c (init_optab): Init push optab.
16439         * md.texi (push??1): Document
16440
16441 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16442
16443         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
16444         expand to emit the pattern; put a REG_INC note for push/pop
16445         instructions.
16446         ("movdf", "movdf_internal"): Likewise.
16447         ("movsi", "movsi_internal"): Likewise.
16448         ("movsf", "movsf_internal"): Likewise.
16449         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
16450
16451 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16452
16453         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
16454         gen_highpart.
16455
16456 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
16457
16458         * params.def: Change default max inline insns to 100.
16459
16460 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
16461
16462         * combine.c (combine_simplify_rtx): Generate a new shift operation
16463         when simplifying the first operand of a (neg (ashift)) expression.
16464
16465 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
16466
16467         * regclass.c (N_REG_INTS): Use only 32 bits per element.
16468
16469 2001-07-20  Kelley Cook  <kelley.cook@home.com>
16470
16471         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
16472         information.   Move rest into ...
16473         (*-*-solaris): ... here.  Eliminate redundant information and
16474         reword necessary packages section.  Delete 4.x assembler bug info.
16475         (sparc-sun-*): Merge into ...
16476         (sparc-sun-sunos*): here.
16477
16478 2001-07-20  Catherine Moore  <clm@redhat.com>
16479
16480         * config/v850/v850.md (casesi): Generate LABEL_REF
16481         with Pmode.
16482
16483 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
16484
16485         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
16486         * i386.c (ix86_zero_extend_to_Pmode): Make global.
16487         * i386.md (strclrsi expander): Use it.
16488
16489 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
16490
16491         * integrate.c (copy_insn_list): handle
16492         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
16493         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
16494         identically as to CODE_LABEL.
16495
16496         * fold-const (fold): Convert A/B/C to A/(B*C) and
16497         A/(B/C) to (A/B)*C
16498
16499         * except.c (connect_post_landing_pads): Delete the RESX insns.
16500
16501 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
16502
16503         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
16504
16505         * config/mips/mips.md (nmadd/nmsub): Use macro.
16506
16507 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
16508
16509         * cppinit.c (remove_dup_dir): Make static.
16510         (remove_dup_dirs): Make static. Only warn about preempting a
16511         system directory with a non-system directory.
16512
16513 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
16514
16515         * ifcvt.c (noce_try_store_flag_constants): Correct order
16516         of parameters to trunc_int_for_mode.
16517
16518 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
16519
16520         * reorg.c (fill_simple_delay_slots): If an instruction might throw
16521         an exception that will be caught within this function, do not fill
16522         its delay slot with any subsequent instruction.
16523
16524 2001-07-19  Steve Ellcey <sje@cup.hp.com>
16525
16526         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
16527         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
16528         pointer extension instruction.
16529         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
16530         * simplify-rtx.c (simplify_unary_operation) Likewise.
16531         * explow.c (convert_memory_address) Check value of
16532         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
16533         less than zero.
16534         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
16535         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
16536         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
16537         Add Multilib Support.
16538         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
16539         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
16540         Add Multilib Support.
16541         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
16542         support.
16543         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
16544         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
16545         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
16546
16547 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
16548
16549         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
16550         old and new operands in `<', `3' and `b'.
16551
16552 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16553
16554         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
16555         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
16556         (toplev.o): Don't depend on xcoffout.h.
16557         * c-decl.c: Include debug.h
16558         (duplicate_decls): Use debug hook.
16559         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
16560         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16561         (dbxout_types): Remove.
16562         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
16563         * debug.c (do_nothing_debug_hooks): Update.
16564         (debug_true_tree, debug_nothing_rtx): New.
16565         * debug.h (struct rtx_def): New.
16566         (struct gcc_debug_hooks): New hooks ignore_block,
16567         outlining_inline_function and label.
16568         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
16569         dwarf2out_frame_finish): New.
16570         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
16571         Make static, update prototype.
16572         (dwarf2_debug_hooks): Update.
16573         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
16574         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
16575         * dwarfout.c (dwarf_debug_hooks): Update.
16576         * emit-rtl.c: Include debug.h.
16577         (remove_unnecessary_notes): Use debug hook.
16578         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
16579         (final_scan_insn): Use debug hook.
16580         * integrate.c (output_inline_function): Use debug hook.
16581         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
16582         (sdb_debug_hooks): Update.
16583         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
16584         * toplev.c: Don't include xcoffout.h.
16585         (note_outlining_of_inline_function, debug_ignore_block): Remove.
16586         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
16587         Remove.
16588         * tree.h (dwarf2out_do_frame): Remove.
16589
16590 2001-07-19  Catherine Moore  <clm@cygnus.com>
16591
16592         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
16593
16594 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
16595
16596         * reload1.c (eliminate_regs_in_insn): When updating a set
16597         to the frame pointer to the hardware frame pointer, perform
16598         the update always not just when REPLACE is set.
16599
16600         * reload1.c (choose_reload_regs): Don't inherit a reload
16601         that crosses multiple registers if registers past the first
16602         don't fit in the desired class.
16603
16604         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
16605         when negating constants.
16606
16607 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
16608
16609         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
16610         * doc/tree.texi: Ditto.
16611
16612 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
16613             Jakub Jelinek  <jakub@redhat.com>
16614
16615         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
16616         (extract_cie_info): Handle "eh" augmentation properly,
16617         remember eh_ptr.
16618         (struct frame_state, __frame_state_for): New.
16619
16620 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16621
16622         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
16623         HANDLE_SYSV_PRAGMA): Define.
16624         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
16625         previous args.
16626         (copy_object): Caller changed.
16627
16628 2001-07-19  Andreas Schwab  <schwab@suse.de>
16629
16630         * configure.in (assembler dwarf2 debug_line support): Define nop
16631         insn for m68k.
16632         * configure: Regenerated.
16633
16634 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16635
16636         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
16637         dwarfout.h.
16638         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
16639         to conditionally compiled block.
16640         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16641         * dbxout.h (dbxout_function): Remove.
16642         * debug.c (do_nothing_debug_hooks): Update.
16643         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
16644         global_decl, deferred_inline_function.
16645         * dwarf2out.c (dwarf2_debug_hooks): Update.
16646         (dwarf2out_global_decl): New.
16647         * dwarfout.c: Don't include dwarfout.h.
16648         (dwarfout_global_decl, dwarfout_function_decl,
16649         dwarfout_deferred_inline_function): New.
16650         (dwarf_debug_hooks): Update.
16651         * dwarfout.h: Remove.
16652         * final.c: Don't include dwarfout.h.
16653         * sdbout.c (sdbout_global_decl): New.
16654         (sdbout_debug_hooks): Update.
16655         * toplev.c: Don't include dwarfout.h.
16656         (check_global_declarations, rest_of_compilation): Use new debug hooks.
16657         (note_deferral_of_defined_inline_function): Remove.
16658         * toplev.h (note_deferral_of_defined_inline_function): Remove.
16659         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
16660         * ch/lex.c: Don't include dwarfout.h.
16661         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
16662         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
16663         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
16664         * cp/optimize.c: Include debug.h.
16665         (maybe_clone_body): Use debug hook.
16666         * cp/semantics.c: Include debug.h.
16667         (expand_body): Use debug hook.
16668         * po/POTFILES.in: Remove dwarfout.h.
16669
16670 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16671
16672         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
16673         * c-parse.in (yyerror, _yylex): Similarly.
16674         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
16675         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
16676         Update comments.
16677         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
16678         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
16679
16680 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
16681
16682         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
16683         in-class declaration at -g1.  Fixes c++/2814.
16684
16685 2001-07-18  Richard Henderson  <rth@redhat.com>
16686
16687         * doc/md.texi (reload_in/out): Document restrictions in predicates
16688         and constraints for these patterns.  Document empty string matching
16689         ALL_REGS.
16690
16691 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16692
16693         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
16694
16695 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
16696
16697         * cse.c: Undo my previous patch.
16698
16699 2001-07-18  Tom Tromey  <tromey@redhat.com>
16700
16701         For PR java/2812:
16702         * configure: Rebuilt.
16703         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
16704         instead.
16705         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
16706
16707 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
16708                                 Jan Hubicka  <jh@suse.cz>
16709
16710         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
16711         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
16712         * jump.c (mark_jump_label): Do not forward branches.
16713
16714 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
16715
16716         * cse.c (delete_trivially_dead_insns): Delete the libcall block
16717         when return value is unused.
16718
16719 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
16720
16721         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
16722
16723 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
16724
16725         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
16726         on error.  We can't blindly return the result of
16727         pthread_mutex_trylock because it returns a positive number on
16728         error, while we must return -1 on error.
16729         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
16730         fixes.
16731         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
16732
16733 2001-07-18  Andreas Jaeger  <aj@suse.de>
16734
16735         * integrate.c (output_inline_function): Correct type of debug_hooks.
16736
16737 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
16738
16739         * combine.c (combine_simplify_rtx): DIV can be treated
16740         associatively for floats if unsafe math optimisations are enabled.
16741
16742 2001-07-17  Richard Henderson  <rth@redhat.com>
16743
16744         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
16745
16746 2001-07-17  Richard Henderson  <rth@redhat.com>
16747
16748         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
16749         don't force the function address into a register.
16750         (expand_call, emit_library_call_value_1): Update callers.
16751         * builtins.c (expand_builtin_apply): Likewise.
16752         * expr.h (prepare_call_address): Update decl.
16753
16754 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
16755
16756         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
16757         config directory.
16758         * config/i386/chorus.h: Move up.
16759         * config/sparc/chorus.h: Likewise.
16760         * config/rs6000/chorus.h: Likewise.
16761         * config/chorus.h: Moved here.
16762
16763 2001-07-17  Andreas Schwab  <schwab@suse.de>
16764
16765         * configure.in  (assembler eh_frame optimization): Handle big
16766         endian.
16767         * configure: Regenerated.
16768
16769 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
16770
16771         * expr.c (epxand_expr): Convert divisions into multiplications by
16772         reciprocals if -ffast-math.
16773
16774 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
16775
16776         * dbxout.c (dbxout_really_begin_function): Rename to
16777         dbxout_begin_function.
16778         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16779         (dbxout_begin_function): Remove.
16780         (dbxout_function): Update.
16781         (dbxout_source_line): Update prototype.
16782         * dbxout.h (dbxout_begin_function): Remove.
16783         * debug.c (do_nothing_debug_hooks): Update.
16784         (debug_nothing_tree): Update.
16785         (debug_nothing_charstar_rtx): Remove.
16786         * debug.h (union tree_node): Declare.
16787         (struct rtx_def): Remove.
16788         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
16789         begin_function.  Change source_line prototype.
16790         (debug_nothing_tree): New.
16791         (debug_nothing_charstar_rtx): Delete.
16792         (dwarf2out_begin_prologue): Moved from ...
16793         * tree.h: ... here.
16794         * dwarf2out.c (dwarf2_debug_hooks): Update.
16795         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
16796         debug info, call dwarf2out_source_line.
16797         (dwarf2out_souce_line): Update prototype.
16798         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
16799         Change prototype, make static.
16800         (dwarfout_source_line): Update prototype.
16801         (dwarf_debug_hooks): Update.
16802         * dwarfout.h (dwarfout_begin_function): Remove.
16803         * final.c (final_start_function, final_scan_insn): Use appropriate
16804         debug hooks, update to use notice_source_line.
16805         (output_source_line): Rename notice_source_line.  Don't call the
16806         source_line debug hook.
16807         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
16808         make static, update prototype.
16809         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
16810         prototype.
16811         (sdbout_end_prologue): New.
16812         (sdbout_source_line): Update prototype.
16813         (sdbout_debug_hooks): Update.
16814         (sdbout_symbol): Remove unused var.
16815         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
16816         Delete.
16817         * varasm.c: Include debug.h.
16818         (assemble_start_function): Use begin_function debug_hook.
16819         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
16820         update with prototype.
16821         (xcoffout_source_line): Update prototype.
16822         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
16823         update prototype.
16824         (xcoffout_source_line): Update prototype.
16825
16826 2001-07-17  Richard Henderson  <rth@redhat.com>
16827
16828         * c-typeck.c (build_binary_op): Do not shorten unsigned
16829         right shift after sign extension.
16830
16831 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
16832
16833         * combine.c (combine_simplify_rtx): Attempt to simplify
16834         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
16835
16836         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
16837         (simplify_binary_operation, simplify_unary_operation,
16838          simplify_relational_operation): Use it.
16839
16840         * combine.c (combine_simplify_rtx): Don't do associative law
16841         on divisions; allow associative law on floats.
16842
16843 2001-07-17  H.J. Lu <hjl@gnu.org>
16844             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16845
16846         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
16847         ASM_OUTPUT_WEAK_ALIAS are defined.
16848         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
16849         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
16850         Moved ...
16851         * config/mips/iris5.h: ... here.
16852         (HANDLE_SYSV_PRAGMA): Defined as 1.
16853         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
16854         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
16855         symbol.
16856
16857 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
16858
16859         * c-parse.in (all_prefix_attributes): New variable.
16860         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
16861         (maybe_resetattrs): New production.
16862         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
16863         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
16864         notype_initdcl, nested_function, notype_nested_function,
16865         component_decl, components, components_notype,
16866         component_declarator, component_notype_declarator,
16867         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
16868         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
16869         after a comma being applied to more than one declarator.
16870         * doc/extend.texi (Attribute Syntax): Update.  Remove
16871         documentation of bugs that are no longer present.
16872
16873 2001-07-13  Eric Christopher  <echristo@redhat.com>
16874
16875         * config/mips/mips.h: Change TUNE_MIPS* options to use
16876         mips_tune.
16877         (EXTRA_SPECS): Add cc1_cpu_spec.
16878         * config/mips/mips.md (muldf3): Fix typo.
16879
16880 2001-07-16  Richard Henderson  <rth@redhat.com>
16881
16882         * config/m68k/m68k.c: Include expr.h and reload.h.
16883         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
16884         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
16885
16886 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
16887             Richard Henderson  <rth@redhat.com>
16888
16889         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
16890         (insn_live_p): Fix fall off end of function.
16891         (dead_libcall_p): Remove COUNTS argument; update callers.
16892         (delete_trivially_dead_insns): Remove unused variables.
16893
16894 2001-07-17  Andreas Jaeger  <aj@suse.de>
16895
16896         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
16897         x86-64 pic support.
16898
16899         * lcm.c (optimize_mode_switching): Avoid warning for unused
16900         variable if !NORMAL_MODE.
16901
16902         * flow.c (try_crossjump_to_edge): Remove unused variable.
16903
16904 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16905
16906         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
16907         atexit declaration in stdlib.h.
16908
16909 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
16910
16911         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
16912
16913 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16914
16915         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
16916         * except.c (finish_eh_generation): Update call of cleanup_cfg;
16917         do rebuild_jump_labels instead of jump_optimize
16918         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
16919         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
16920         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
16921
16922         * flow.c: Include timevar.h
16923         (find_basic_block): Push/pop timevar;
16924         (cleanup_cfg): Likewise.
16925         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
16926         * Makefile: Add dependencies on timevar.h
16927
16928         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
16929         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
16930
16931         * rtl.h (delete_trivially_dead_insns): Add new parameter.
16932         * toplev.c (rest_of_compilation): Update calls.
16933         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
16934         (delete_trivially_dead_insns): ... here; accept new argument
16935         preserve_basic_blocks; preserve basic blocks if set.
16936
16937         * reg-stack.c (stack_regs_mentioned): Return 0 if
16938         stack_regs_mentioned_data is not initialized.
16939         (reg_to_stack): Make stack_regs_mentioned survive after the
16940         reg-stack is completted; do not call cleanup_cfg.
16941         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
16942         make cleanup_cfg after bb-reorder to output to debug file.
16943
16944 2001-07-16  Richard Henderson  <rth@redhat.com>
16945
16946         * regclass.c (init_reg_sets): Use only 32 bits per initializer
16947         from int_reg_class_contents.
16948
16949 2001-07-16  Richard Henderson  <rth@redhat.com>
16950
16951         * hard-reg-set.h (regs_invalidated_by_call): Declare.
16952         * regclass.c (regs_invalidated_by_call): Move from cse.c.
16953         (init_reg_sets_1): Move initialization from cse_main.
16954         * cse.c (regs_invalidated_by_call): Move to regclass.c.
16955         (cse_main): Move its initialization also.
16956         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
16957         * flow.c (propagate_one_insn): Likewise.
16958         * gcse.c (compute_hash_table): Likewise.
16959         (compute_kill_rd, compute_store_table): Likewise.
16960         * sched-deps.c (sched_analyze_1): Likewise.
16961
16962 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
16963
16964         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
16965         gen_rtx_SET.
16966
16967 2001-07-16  Steve Ellcey <sje@cup.hp.com>
16968
16969         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
16970         in if statement so we don't access undefined memory.
16971
16972 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
16973
16974         * gcse.c: Update comment at top.
16975         Update comment on mem handling.
16976         mem_last_set, mem_first_set, mem_set_in_block: gone.
16977         Declaration of reg_set_info: gone.
16978         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
16979         pointless with load_killed_in_block_p (they are *more*
16980         conservative then it, not less, and less accurate).
16981         (oprs_not_set_p): Ditto.
16982         (alloc_gcse_mem): Don't allocate mem_set_in_block
16983         (free_gcse_mem): Don't free it, either.
16984         (record_last_mem_set_info): Update comment in front, remove
16985         mem_*set_* stuff. Note the reason we don't handle stores directly
16986         here.
16987         (compute_hash_table): Update comments to reflect reality. Remove
16988         mem_*set_* references.
16989         (reset_opr_set_tables): Remove mem_*set_* references.
16990         (mark_call): Ditto.
16991         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
16992         (mark_clobber): Ditto (on both parts, we double set here too).
16993         (expr_killed_p): Remove mem_set_in_block test.
16994         (compute_transp): Remove mem_set_in_block test.
16995
16996         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
16997         of edge, and removal of phi alternative to dump file.
16998         (ssa_ccp_substitute_constants): Add note about register now being
16999         constant, and which uses were replaced in what insns to dump file.
17000
17001 2001-07-16  Andreas Jaeger  <aj@suse.de>
17002
17003         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
17004         variables of type HOST_WIDEST_INT.
17005
17006         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
17007         (__bb_exit_func): Correct type of count_max to avoid overflow.
17008         (num_digits): Handle long long argument.
17009
17010         * combine.c (gen_lowpart_for_combine): Remove unused variable.
17011
17012 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
17013
17014         * output.h (sdb_begin_function_line): Restore as an extern
17015         variable.
17016         * sdbout.c (sdb_begin_function_line): Make extern.
17017
17018 2001-07-15  Richard Henderson  <rth@redhat.com>
17019
17020         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
17021         * genrecog.c (maybe_both_true_mode): New.
17022         (maybe_both_true_2): Use it.
17023         (write_switch): Don't put Pmode in a switch.
17024         * rtl.c (mode arrays): Don't explicitly size them.
17025
17026 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
17027
17028         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
17029         handling; move unconditional splitting before mode switching.
17030
17031         * i386.md (type): Add fistp type.
17032         (i387, length_attr, scheduling definitions): Handle this type.
17033         (fix_trunc?f?i2): Revamp to use mode switching.
17034         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
17035         * i386.h (fp_cw_mode): New enum
17036         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
17037         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
17038
17039 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17040
17041         * Makefile.in (integrate.o): Add debug.h.
17042         * integrate.c (debug.h): Add.
17043         (output_inline_function): Save, reset, and restore debug_hooks.
17044
17045 2001-07-15  Richard Henderson  <rth@redhat.com>
17046
17047         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
17048         instead of COMPARE for the EQUIV expression.
17049
17050 2001-07-15  Richard Henderson  <rth@redhat.com>
17051
17052         * flow.c (redirect_edge_and_branch_force): Initialize
17053         global_live_at_start and global_live_at_end.
17054         (allocate_bb_life_data): Export.
17055         * basic-block.h (allocate_bb_life_data): Declare.
17056         * toplev.c (rest_of_compilation): Call it.
17057
17058 2001-07-15  Richard Henderson  <rth@redhat.com>
17059
17060         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
17061         (alpha_tablejump_best_label): New.
17062         * config/alpha/alpha-protos.h: Declare them.
17063         * config/alpha/alpha.md: Use braced strings for code blocks.
17064         (tablejump_osf): Break out add with r29.
17065         (tablejump_osf_internal): Remove.
17066         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
17067         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
17068
17069 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
17070
17071         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
17072         of the movable.
17073
17074         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
17075
17076         * i386-protos.h (ix86_split_fp_branch): Update prototype.
17077         (ix86_fp_jump_nontrivial_p): New.
17078         * i386.md (fp_jcc_?): Update call of split_fp_branch;
17079         use ix86_fp_jump_nontrivial_p.
17080         * i386.c (ix86_fp_jump_nontrivial_p): New.
17081         (ix86_split_fp_branch): Accept code instead of rtx.
17082         (ix86_expand_compare): Expand comparison early in case
17083         doing so is resonably cheap.
17084
17085 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
17086
17087         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
17088         not 'machine'.
17089         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
17090         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
17091
17092 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
17093
17094         * dbxout.c (dbxout_source_line): Make static, update prototype.
17095         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
17096         (dbxout_init, dbxout_finish, dbxout_source_line,
17097         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
17098         * dbxout.h (dbxout_source_line): Delete.
17099         * debug.c (debug_nothing_file, debug_nothing_file_int,
17100         debug_nothing_file_charstar_rtx): New.
17101         (do_nothing_debug_hooks): Update.
17102         (debug_nothing_void, debug_nothing_charstar_rtx,
17103         dwarf2out_end_epilogue): New.
17104         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
17105         * debug.h (struct rtx_def): Declare.
17106         (gcc_debug_hooks): New hooks source_line, end_epilogue
17107         and end_function.
17108         (debug_nothing_void, debug_nothing_charstar_rtx,
17109         dwarf2out_end_epilogue): New.
17110         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
17111         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
17112         (dwarf2_debug_hooks): Update.
17113         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
17114         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
17115         * dwarf2out.h (dwarf2out_source_line): Remove.
17116         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
17117         Make static, update prototype.
17118         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
17119         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
17120         (dwarf_debug_hooks): Update.
17121         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
17122         dwarfout_end_function): Remove.
17123         * final.c (profile_function): Use debug hooks for ending functions
17124         and epilogues.
17125         (output_source_line, final_end_function): Update prototype,
17126         use debug hooks.
17127         (final_start_function, final_scan_insn): Update.
17128         * output.h (sdb_begin_function_line): Remove.
17129         (final_end_function): Update prototype.
17130         * sdbout.c (sdb_begin_function_line): Make static.
17131         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
17132         (sdbout_source_line): New.
17133         (sdbout_end_epilogue, sdbout_end_function): Make static, update
17134         prototypes.
17135         (sdb_debug_hooks): Update.
17136         (sdbout_init, sdbout_source_line,
17137         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
17138         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
17139         * toplev.c (compile_file, rest_of_compilation): Update.
17140         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
17141         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
17142         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
17143         Update for prototype changes.
17144         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
17145         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
17146
17147 2001-07-15  Richard Henderson  <rth@redhat.com>
17148
17149         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
17150         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
17151         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
17152         * config/alpha/alpha.c: Likewise.
17153         * config/alpha/alpha.md: Likewise.
17154         * config/alpha/alpha32.h: Likewise.
17155         * config/alpha/vms.h: Likewise.
17156         (OPEN_VMS): Remove.
17157
17158 2001-07-14  Richard Henderson  <rth@redhat.com>
17159
17160         * config/alpha/alpha.md: Use define_constants for unspec values.
17161         Substitute throughout.
17162
17163 2001-07-14  Tim Josling  <tej@melbpc.org.au>
17164
17165         * tree.def (EXPON_EXPR) remove. Never supported anyway.
17166
17167 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17168
17169         * pa.md: Remove unused constraints from define_split's.
17170
17171 2001-04-14  Richard Henderson  <rth@redhat.com>
17172
17173         * ifcvt.c (find_cond_trap): Test for exit block.
17174
17175 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
17176
17177         Re-install recently reverted patch.
17178         * emit-rtl.c (try_split): Update mark_jump_label call.
17179         * flow.c (find_sub_basic_blocks): Likewise.
17180         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
17181         jump_back_p): Kill.
17182         (mark_all_labels): Kill second parameter.
17183         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
17184         (rebuild_jump_labels, jump_optimize_minimal): Update call
17185         of jump_optimize_1.
17186         (jump_optimize_1): Kill crossjumping code.
17187         (mark_jump_label): Kill cross_jump parameter.
17188         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
17189         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
17190         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
17191          splitting.
17192         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
17193         DFI_bpro.
17194         (dump_file_info): Likewise.
17195         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
17196         reorganize passes to do reg-stack first, bb-reorder second.
17197         * invoke.texi (-d letters doc): Remove the jump2 pass.
17198
17199 2001-07-14  Richard Henderson  <rth@redhat.com>
17200
17201         * ifcvt.c (find_cond_trap): New.
17202         (find_if_header): Call it.
17203         (merge_if_block): Relax existing jump sanity check.
17204         * jump.c (jump_optimize_1): Remove conditional trap handling.
17205
17206 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
17207
17208         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
17209         millicode.
17210         (insn_refs_are_delayed): Correct comment.
17211         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
17212         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
17213         instead of r31.  Make associated insn !TARGET_64BIT, and
17214         provide an additional 64-bit insn that clobbers r2.
17215         (divsi3): Likewise.
17216         (udivsi3): Likewise.
17217         (modsi3): Likewise.
17218         (umodsi3): Likewise.
17219
17220 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
17221
17222         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
17223
17224         * flow.c (redirect_edge_and_branch_force, split_edge,
17225         try_crossjump_to_edge): Use set_block_for_new_insns.
17226         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
17227
17228 2001-07-13  H.J. Lu  (hjl@gnu.org)
17229
17230         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
17231         the correct patch.
17232
17233 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
17234
17235         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
17236
17237 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
17238
17239         * c-common.c (decl_attributes): Take a pointer to the node to
17240         which attributes are to be attached, and a flags argument.
17241         * c-common.h (enum attribute_flags): New.
17242         (decl_attributes): Update prototype.
17243         * c-decl.c (start_decl, push_parm_decl, finish_struct,
17244         finish_enum, start_function): Update calls to decl_attributes.
17245         * c-parse.in (component_declarator, component_notype_declarator,
17246         label): Update calls to decl_attributes.
17247
17248 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
17249
17250         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
17251         * config/avr/avr.c (legitimate_address_p): Return value changed
17252         from letter to register classes. For better debugging.
17253
17254 2001-07-13  Kazu Hirata  <kazu@hxi.com>
17255
17256         * jump.c (reversed_comparison_code_parts): Fix comment typos.
17257
17258 2001-07-13  H.J. Lu  (hjl@gnu.org)
17259
17260         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
17261
17262 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
17263
17264         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
17265         correctly for shared configurations.
17266         * config/t-libgcc-pic:  New.
17267         * config/{i386,m68k,sparc}/t-openbsd:  New.
17268         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
17269         Support -shared.  Support debugging libraries with -g.
17270         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
17271         frame information does not emit pointer diffs.
17272         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
17273         emit pointer diffs.
17274
17275 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
17276
17277         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
17278
17279 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
17280
17281         * combine.c (try_combine): Ensure const_int pow2 is positive.
17282
17283 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
17284
17285         * config.gcc: Add configuration for s/390.
17286         * config/s390/s390.c: New. Subroutines for code generation.
17287         * config/s390/s390.h: New. Definitions for s/390.
17288         * config/s390/s390-protos.h: New. Prototypes.
17289         * config/s390/linux.h: New. Definitions for linux for s/390.
17290         * config/s390/linux64.h: New. Definitions for linux for zSeries.
17291         * config/s390/t-linux: New. Makefile fragment.
17292         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
17293         * config/s390/fixdfdi.h: New. Fix L_fix*di.
17294
17295 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
17296
17297         * emit-rtl.c (try_split): Update mark_jump_label call.
17298         * flow.c (find_sub_basic_blocks): Likewise.
17299         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
17300         jump_back_p): Kill.
17301         (mark_all_labels): Kill second parameter.
17302         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
17303         (rebuild_jump_labels, jump_optimize_minimal): Update call
17304         of jump_optimize_1.
17305         (jump_optimize_1): Kill crossjumping code.
17306         (mark_jump_label): Kill cross_jump parameter.
17307         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
17308         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
17309         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
17310          splitting.
17311         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
17312         DFI_bpro.
17313         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
17314         reorganize passes to do reg-stack first, bb-reorder second.
17315         * invoke.texi (-d letters doc): Remove the jump2 pass.
17316
17317 2001-07-12  Steve Ellcey <sje@cup.hp.com>
17318
17319         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
17320
17321 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
17322
17323         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
17324         basic blocks.
17325         (verify_flow_info): Make diagnostics prettier.
17326
17327 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
17328
17329         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
17330
17331         * flow.c (outgoing_edges_match): Return early if condition reversal
17332         failed.
17333
17334 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
17335
17336         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
17337         (mips_move_2words): When splitting a move into two instructions,
17338         prefix the second address operand with '%D'.
17339
17340 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
17341
17342         * Makefile.in (final.o): Depend on debug.h.
17343         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
17344         (dbx_debug_hooks): Add new hooks.
17345         (xcoff_debug_hooks): New.
17346         * debug.c (debug_nothing_file_int_int): New.
17347         (do_nothing_debug_hooks): Update.
17348         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
17349         (debug_nothing_file_int_int): New.
17350         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
17351         static, update prototype.
17352         (dwarf2_debug_hooks): Update.
17353         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
17354         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
17355         static, update prototype.
17356         (dwarf_debug_hooks): Update.
17357         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
17358         * final.c: Include debug.h.
17359         (final_scan_insn): Use debug hooks when beginning and ending blocks.
17360         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
17361         static, update prototype.
17362         (sdb_debug_hooks): Update.
17363         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
17364         * toplev.c: Distinguish between xcoff and dbx.
17365
17366         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
17367         Call all debug hooks, not just dwarf ones.
17368
17369 2001-07-11  Timothy Wall  <twall@redhat.com>
17370
17371         * config.gcc: Add configuration for AIX5/IA64.
17372         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
17373         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
17374         support prefix/suffix code.
17375         * config/ia64/t-aix: New.  Makefile fragment.
17376         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
17377
17378 2001-07-11  Kazu Hirata  <kazu@hxi.com>
17379
17380         * recog.c (validate_change): Fix a comment typo.
17381
17382 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
17383
17384         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
17385         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
17386         hooks directly.
17387         * dbxout.c (dbx_debug_hooks): Add new hooks.
17388         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
17389         make static.
17390         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
17391         make static.
17392         * dbxout.h (dbxout_start_new_source_file,
17393         dbxout_resume_previous_source_file): Delete.
17394         * debug.c (do_nothing_debug_hooks): Add new hooks.
17395         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
17396         (debug_nothing_int_charstar, debug_nothing_int): New.
17397         * debug.h (gcc_debug_hooks): New hooks define, undef,
17398         start_source_file and end_source_file.
17399         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
17400         (debug_nothing_int_charstar, debug_nothing_int): New.
17401         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
17402         the conditionally compiled section.
17403         (dwarf2out_start_source_file, dwarf2out_end_source_file,
17404         dwarf2out_define, dwarf2out_undef): Make static.
17405         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
17406         dwarf2out_define, dwarf2out_undef): Remove.
17407         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
17408         (dwarfout_start_source_file, dwarfout_end_source_file,
17409         dwarfout_define, dwarfout_undef): Make static.
17410         (dwarfout_start_source_file_check,
17411         dwarfout_end_source_file_check): New.
17412         (dwarfout_define, dwarfout_finish): Update.
17413         * dwarfout.h (dwarfout_start_new_source_file,
17414         dwarfout_resume_previous_source_file, dwarfout_define,
17415         dwarfout_undef): Remove.
17416         * sdbout.c (sdb_debug_hooks): Add new hooks.
17417         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
17418         make static.
17419         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
17420         make static, take an arg.
17421         * sdbout.h (sdbout_start_new_source_file,
17422         sdbout_resume_previous_source_file): Delete.
17423         * toplev.c (debug_start_source_file, debug_end_source_file,
17424         debug_define, debug_undef): Delete.
17425         * toplev.h (debug_start_source_file, debug_end_source_file,
17426         debug_define, debug_undef): Delete.
17427
17428         * java/jcf-parse.c: Include debug.h.
17429         (parse_class_file): Update to use debug hooks directly.
17430         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
17431
17432 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17433
17434         * alias.c (set_mem_alias_set): New function.
17435         * rtl.h (set_mem_alias_set): Declare it.
17436         * builtins.c (expand_builtin_return_addr): Call it instead of
17437         using MEM_ALIAS_SET accessor.
17438         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
17439         (get_memory_rtx, expand_builtin_va_arg): Likewise.
17440         (expand_builtin_va_copy):Likewise.
17441         * caller-save.c (setup_save_areas): Likewise.
17442         * calls.c (compute_argument_addresses): Likewise.
17443         * explow.c (set_mem_attributes): Likewise.
17444         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
17445         (expand_assignment, store_constructor_field, store_field): Likewise.
17446         (expand_expr_unaligned): Likewise.
17447         * function.c (assign_stack_temp_for_type): Likewise.
17448         (put_reg_into_stack, gen_mem_addressof): Likewise.
17449         * ifcvt.c (noce_try_cmove_arith): Likewise.
17450         * reload1.c (reload, alter_reg): Likewise.
17451         * config/alpha/alpha.c (get_aligned_mem): Likewise.
17452         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
17453         (alpha_expand_unaligned_store): Likewise
17454         (alpha_expand_unaligned_load_words): Likewise.
17455         (alpha_expand_unaligned_store_words): Likewise.
17456         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
17457         (alpha_expand_epilogue): Likewise.
17458         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
17459         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
17460         * config/i386/i386.c (legitimize_pic_address): Likewise.
17461         * config/i960/i960.c (setup_incoming_varargs): Likewise.
17462         * config/ia64/ia64.c (spill_restore_mem): Likewise.
17463         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
17464         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
17465         * config/mips/mips.c (mips_va_arg): Likewise.
17466         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
17467         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
17468         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
17469         (setup_incoming_varargs, rs6000_va_arg): Likewise.
17470         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
17471         (rs6000_emit_epilogue): Likewise.
17472         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
17473         * config/sparc/sparc.c (sparc_va_arg): Likewise.
17474         * config/v850/v850.c (v850_va_arg): Likewise.
17475
17476 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
17477
17478         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
17479         when fallthru edge is present.
17480         (mege_blocks): Handle case where creation of jump insn
17481         is required.
17482
17483         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
17484         CLEANUP_POST_REGSTACK): New constants.
17485         * except.c (finish_eh_generation): Update call of cleanup_cfg,
17486         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
17487         * output.h (cleanup_cfg): Update prototype.
17488         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
17489         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
17490         cleanup_cfg call; kill missleading comment.
17491         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
17492         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
17493         parameter; control optimizations performed using it.
17494         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
17495         try_crossjump_bb): New functions.
17496
17497 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17498
17499         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
17500         extern.
17501         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
17502         pa_output_function_prologue.
17503         * pa-protos.h (pa_output_function_prologue): New prototype.
17504
17505 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17506
17507         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
17508         and low to get correct sign extension in low+high test.
17509
17510 2001-07-11  Janis Johnson <janis@us.ibm.com>
17511
17512         * gcov.c (arcdata): Use gcov_type to fix branch percentage
17513         for large hit count.
17514
17515         * profile.c (branch_prob): Fix .bbg info for computed gotos
17516         and C++ EH code.
17517
17518 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
17519
17520         * stmt.c (parse_output_constraint): New function, split out
17521         from ...
17522         (expand_asm_operands): ... here.  Use parse_output_constraint.
17523         * tree.h (parse_output_constraint): Declare it.
17524
17525 2001-07-11  Richard Henderson  <rth@redhat.com>
17526
17527         * bitmap.c: Comment some functions; fiddle whitespace.
17528         (bitmap_free): Don't export.
17529         (bitmap_element_allocate): Use memset.
17530         * bitmap.h (bitmap_free): Don't declare.
17531
17532 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
17533
17534         * gcse.c, lcm.c, sched-deps.c:
17535         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
17536
17537         * flow.c (flow_loops_find): Free dom if we found no loops, since
17538         we aren't going to save it.
17539
17540         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
17541         done.
17542
17543 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
17544
17545         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
17546
17547 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17548
17549         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
17550         #ifndef DWARF2_DEBUGGING_INFO.
17551
17552 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17553
17554         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
17555
17556 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17557
17558         * config/mips/mips.c (gen_int_relational): Tell the caller not to
17559         reverse a branch if a NE comparison is implemented with GTU.
17560
17561 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17562             H.J. Lu  <hjl@gnu.org>
17563
17564         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
17565         constant addresses.
17566         (call_internal2): Likewise.
17567         (call_value_internal1): Likewise.
17568         (call_value_internal2): Likewise.
17569         (call_value_multiple_internal1): Likewise.
17570         (call_value_multiple_internal2): Likewise.
17571
17572 2001-07-10  Kazu Hirata  <kazu@hxi.com>
17573
17574         * calls.c (emit_library_call_value_1): Fix a comment typo.
17575         * dwarf2out.c (mem_loc_descriptor): Likewise.
17576         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
17577
17578 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
17579
17580         * simplify-rtx.c (simplify_subreg): Fix typo in comment
17581
17582 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17583
17584         * recog.c (offsettable_address_p): Handle LO_SUM case.
17585         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
17586         instead of plus_constant.
17587
17588 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17589
17590         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
17591         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
17592
17593 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17594
17595         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
17596         adjust_address_nv instead of plus_constant.
17597
17598 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
17599
17600         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
17601         dwarf2out.o): Depend on debug.h, wrap long lines.
17602         * dbxout.c: Include debug.h.
17603         (dbx_debug_hooks): New.
17604         (dbxout_init): Make static, take just 2 args.
17605         (dbxout_finish): Make static.
17606         * dbxout.h (dbxout_init, dbxout_finish): Delete.
17607         * debug.c: New file.
17608         * debug.h: New file.
17609         * dwarf2out.c: Include debug.h.
17610         (dwarf2_debug_hooks): New.
17611         (dwarf2out_init): Make static.
17612         (dwarf2out_finish): Make static, take 2 args.
17613         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
17614         * dwarfout.c: Include debug.h.
17615         (dwarf_debug_hooks): New.
17616         (dwarfout_init): Make static.
17617         (dwarfout_finish): Make static, take 2 args.
17618         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
17619         * sdbout.c: Include debug.h.
17620         (sdb_debug_hooks): New.
17621         (sdbout_init): Make static, take 2 args.
17622         * sdbout.h (sdbout_init): Delete.
17623         * toplev.c: Include debug.h.
17624         (debug_hooks): New.
17625         (compile_file): Set deubg_hooks based on command line options.
17626         Use the hooks unconditionally rather than conditional compilation.
17627
17628 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
17629
17630         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
17631         first_insn_after_basic_block_note instead.
17632
17633         * df.c (df_bb_refs_unlink): #if 0 out for now.
17634
17635 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
17636
17637         * ssa.h: Add prototype for ssa_const_prop
17638         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
17639         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
17640         (ssa_fast_dce): Remove unused variable
17641
17642 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17643
17644         * diagnostic.c (finish_diagnostic): Rename to
17645         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
17646         calls thourghout.
17647
17648 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
17649
17650         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
17651         .loc support.
17652
17653         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
17654         (dump_file): Only pad the demangled name with spaces if the
17655         mangled name was padded with spaces.
17656
17657 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
17658
17659         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
17660         edge detection.
17661
17662 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17663
17664         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
17665         extraction if no direct load if either EXPAND_CONST_ADDRESS or
17666         EXPAND_INITIALIZER.
17667
17668         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
17669         whether can put offset inside LO_SUM to check mode alignment, not size.
17670
17671 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17672
17673         * doc/tm.texi (Misc): Fix thinko.
17674
17675 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
17676
17677         * regmove.c (replace_in_call_usage): Fix warnings.
17678         * sched-deps.c (add_dependence): Fix warnings.
17679         * simplify-rtx.c (simplify_subreg): Likewise.
17680         Return NULL_RTX instead of NULL.
17681
17682         * reg-stack.c (emit_swap_insn): Eliminate warnings.
17683         (subst_asm_stack_regs): Likewise.
17684
17685         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
17686         warnings.
17687
17688         * dwarf2out.c (output_call_frame_info): Declare i as int.
17689         (build_abbrev_table): Declare n_alloc as int.
17690         (dwarf2out_finish): Initialize die.
17691         * except.c: Declare sjlj_funcdef_number as unsigned.
17692         (connect_post_landing_pads): Declare j as unsigned.
17693         (convert_to_eh_region_ranges): Initialize call_site.
17694         (output_function_exception_table): Initialize tt_format_size.
17695         * expr.c (move_by_pieces_1): Initialize to1.
17696         (store_constructor): Initialize minelt and maxelt.
17697         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
17698         * function.c (instantiate_decls): Avoid signed/unsigned warning.
17699
17700         * c-decl.c (combine_parm_decls): Unused, remove.
17701         * c-tree.h: Remove prototype for combine_parm_decls.
17702
17703         * reload.c (push_reload): Fix warning.
17704         (regno_clobbered_p): Likewise.
17705         * reload1.c (replace_pseudos_in_call_usage): Likewise.
17706         (reload_combine): Likewise.
17707
17708         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
17709         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
17710         warnings.
17711         * bitmap.c (bitmap_operation): Change user.
17712         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
17713
17714 2001-07-10  Eric Christopher  <echristo@redhat.com>
17715
17716         * config/mips/mips.c (override_options): Fix typo.
17717
17718 2001-07-09  Stan Shebs  <shebs@apple.com>
17719
17720         * target.h (struct gcc_target): New fields init_builtins and
17721         expand_builtin.
17722         * target-def.h (TARGET_INIT_BUILTINS): New macro.
17723         (TARGET_EXPAND_BUILTIN): New macro.
17724         (TARGET_INITIALIZER): Add them.
17725         * builtins.c: Include target.h.
17726         (expand_builtin): Use targetm.expand_builtin.
17727         (default_init_builtins): New function.
17728         (default_expand_builtin): New function.
17729         * expr.h (default_init_builtins): Declare.
17730         (default_expand_builtin): Declare.
17731         * c-common.c (c_common_nodes_and_builtins): Use
17732         targetm.init_builtins.
17733         * defaults.h (MD_INIT_BUILTINS): Remove.
17734         * Makefile.in (builtins.o): Depend on target.h.
17735
17736         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
17737         (TARGET_EXPAND_BUILTIN): Define.
17738         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
17739         (MD_EXPAND_BUILTIN): Remove.
17740
17741         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
17742         (TARGET_EXPAND_BUILTIN): Define.
17743         (c4x_init_builtins): Make endlink arg a local.
17744         (c4x_print_operand): Fix typos in adjust_address usages.
17745         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
17746         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
17747         (MD_EXPAND_BUILTIN): Remove.
17748
17749         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
17750         (TARGET_EXPAND_BUILTIN): Define.
17751         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
17752         (ix86_init_builtins): Call new function only if TARGET_MMX.
17753         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
17754         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
17755         (MD_EXPAND_BUILTIN): Remove.
17756
17757         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
17758         (TARGET_EXPAND_BUILTIN): Define.
17759         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
17760         (MD_EXPAND_BUILTIN): Remove.
17761
17762         * doc/tm.texi: Document these changes.
17763
17764 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
17765
17766         * basic-block.h (tree_node): Forward declare if needed.
17767         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
17768         (BLOCK_HEAD_TREE): Define.
17769         (BLOCK_END_TREE): Define.
17770         (struct loops): Rename field 'tree' to 'tree_root'.
17771         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
17772         'end_tree'.
17773         (flow_loops_tree_build): Rename reference to field 'tree' to
17774         'tree_root'.
17775         (flow_loops_level_compute): Ditto.
17776         * predict.c (estimate_bb_frequencies): Ditto.
17777         * tree.h (struct tree_common): Add field 'aux'.
17778
17779 2001-07-09  Stan Shebs  <shebs@apple.com>
17780
17781         * config/darwin.c (darwin_encode_section_info): Don't mark any
17782         DECL_EXTERNAL node as defined.
17783
17784 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17785
17786         * pa.c (pa_init_machine_status, pa_mark_machine_status,
17787         pa_free_machine_status, hppa_init_pic_save): Delete.
17788         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
17789         (hppa_profile_hook): Use hppa_pic_save_rtx.
17790         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
17791         hppa_init_pic_save): Delete.
17792         (hppa_pic_save_rtx): Declare.
17793         * pa.md (call, call_value, sibcall, sibcall_value,
17794         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
17795
17796 2001-07-09  Kazu Hirata  <kazu@hxi.com>
17797
17798         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
17799         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
17800
17801 2001-07-09  Andreas Jaeger  <aj@suse.de>
17802
17803         * output.h: Add declaration of final_forward_branch_p.
17804
17805         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
17806
17807         * varray.c: Include errors.h for internal_error and trim_filename
17808         declarations.
17809
17810         * Makefile.in (varray.o): Add errors.h.
17811
17812 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
17813
17814         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
17815         * optabs.c (have_add2_insn): Check whether the add insn chosen
17816         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
17817         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
17818
17819 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
17820
17821         * Makefile.in (OBJS): Add ssa-ccp.o
17822         (ssa-ccp.o): Add dependencies.
17823         * toplev.c (DFI_ssa_ccp): New dump file enum.
17824         (dump_file): Add entry for dumping after SSA CCP.
17825         (flag_ssa_ccp): New flag variable.
17826         (f_options): Add -fssa-ccp.
17827         (rest_of_compilation): Run SSA CCP if requested.
17828         * timevar.def (TV_SSA_CCP): New timevar.
17829         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
17830         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
17831         Fix minor typo in SSA DCE documentation.
17832         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
17833         Add documentation for new dump option.  Renumber dump files
17834         appropriately.
17835
17836 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
17837
17838         * emit-rtl.c (gen_highpart_mode): New.
17839         * rtl.h (gen_highpart_mode): Declare.
17840         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
17841         operand can be VOIDmode constant.
17842
17843 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
17844
17845         * flow.c (redirect_edge_and_branch_force): New.
17846         (can_fallthru): Ensure that basic blocks are succeeding.
17847         (try_optimize_cfg): Do not delete basic block if it is the last one.
17848
17849         * flow.c (try_redirect_by_replacing_jump): Do not remove
17850         jumps with side effects, unlink chain on fallthru edge;
17851         set block for new jump instruction; avoid basic block to
17852         over by line number note.
17853
17854         * flow.c (try_simplify_condjump): Verify that the condjump
17855         is not always falling through.
17856
17857         Re-install patch:
17858         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
17859
17860         * flow.c (forwarder_block_p): Fix for fallthru blocks.
17861         (try_redirect_by_replacing_jump): Update properly the count
17862         and frequency information.
17863
17864 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17865
17866         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
17867         address that is a LO_SUM specially.
17868         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
17869
17870         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
17871
17872         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
17873         (operand_subword): Use them.
17874         (change_address_1): Renamed from change_address; new arg VALIDATE.
17875         * expr.h: Reflect above changes; change_address now macro.
17876         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
17877         making MEM.
17878         * cselib.c (add_mem_for_addr): Likewise.
17879         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
17880         * regmove.c (try_apply_stack_adjustment): Likewise.
17881         * reload.c (push_reload, make_memloc): Likewise.
17882         * reload1.c (eliminate_regs): Likewise.
17883         * simplify-rtx.c (simplify_replace_rtx): Likewise.
17884         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
17885         adjust_addess.
17886         * combine.c (make_extraction, simplify_shift_const): Likewise.
17887         (gen_lowpart_for_combine): Likewise.
17888         * cse.c (gen_lowpart_if_possible): Likewise.
17889         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
17890         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
17891         * optabs.c (gen_move_insn): Likewise.
17892         * reload1.c (alter_reg): Likewise.
17893         * simplify-rtx.c (simplify_subreg): Likewise.
17894         * stmt.c (expand_anon_union_decl): Likewise.
17895         * recog.c (validate_replace_rtx_1): Likewise.
17896         (expr.h): Include.
17897         * Makefile.in (recog.o): Add $(EXPR_H).
17898         * explow.c (stabilize): Call replace_equiv_address.
17899         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
17900         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
17901
17902 2001-07-03  Andrew Haley  <aph@redhat.com>
17903
17904         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
17905         the mode of the memory location.
17906
17907 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
17908
17909         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
17910
17911 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
17912
17913         * final.c (output_addr_const): Use target opening and
17914         closing parentheses.
17915         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
17916         defaults, add to TARGET_ASM_OUT.
17917         * target.h (struct gcc_target): Add open_paren and close_paren.
17918         * doc/md.texi: Update.
17919         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
17920         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
17921         TARGET_ASM_CLOSE_PAREN.
17922         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
17923         Override.
17924         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
17925         Override.
17926         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
17927         * config/a29k/a29k.h: Similarly.
17928         * config/alpha/alpha.h: Similarly.
17929         * config/arc/arc.h: Similarly.
17930         * config/arm/aof.h: Similarly.
17931         * config/arm/aout.h: Similarly.
17932         * config/avr/avr.h: Similarly.
17933         * config/c4x/c4x.h: Similarly.
17934         * config/clipper/clipper.h: Similarly.
17935         * config/convex/convex.h: Similarly.
17936         * config/d30v/d30v.h: Similarly.
17937         * config/dsp16xx/dsp16xx.h: Similarly.
17938         * config/elxsi/elxsi.h: Similarly.
17939         * config/fr30/fr30.h: Similarly.
17940         * config/h8300/h8300.h: Similarly.
17941         * config/i370/i370.h: Similarly.
17942         * config/i386/i386.h: Similarly.
17943         * config/i860/i860.h: Similarly.
17944         * config/i960/i960.h: Similarly.
17945         * config/ia64/ia64.h: Similarly.
17946         * config/m32r/m32r.h: Similarly.
17947         * config/m68hc11/m68hc11.h: Similarly.
17948         * config/m68k/m68k.h: Similarly.
17949         * config/m88k/m88k.h: Similarly.
17950         * config/mcore/mcore.h: Similarly.
17951         * config/mips/mips.h: Similarly.
17952         * config/mn10200/mn10200.h: Similarly.
17953         * config/mn10300/mn10300.h: Similarly.
17954         * config/ns32k/ns32k.h: Similarly.
17955         * config/pa/pa.h: Similarly.
17956         * config/pdp11/pdp11.h: Similarly.
17957         * config/pj/pj.h: Similarly.
17958         * config/romp/romp.h: Similarly.
17959         * config/rs6000/rs6000.h: Similarly.
17960         * config/sh/sh.h: Similarly.
17961         * config/sparc/sparc.h: Similarly.
17962         * config/v850/v850.h: Similarly.
17963         * config/vax/vax.h: Similarly.
17964         * config/we32k/we32k.h: Similarly.
17965
17966 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
17967
17968         * doc/c-tree.texi: Document representation of attributes.
17969
17970 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
17971
17972         * doc/tm.texi: Update some places for the rename of target to
17973         targetm.  Fix typo.
17974
17975 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
17976
17977         * target.h (struct gcc_target): Add insert_attributes.
17978         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
17979         (TARGET_INITIALIZER): Update.
17980         * tree.c, tree.h (default_insert_attributes): New function.
17981         Update comments on other default functions to refer to targetm,
17982         not target.
17983         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
17984         TARGET_INSERT_ATTRIBUTES.
17985         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
17986         * c-common.c (decl_attributes): Use targetm.insert_attributes.
17987         Don't use PRAGMA_INSERT_ATTRIBUTES.
17988         * Makefile.in (c-common.o): Depend on $(TARGET_H).
17989         * c-decl.c (start_decl, start_function): Don't call
17990         SET_DEFAULT_DECL_ATTRIBUTES.
17991         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
17992         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
17993         declare.
17994         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
17995         (c4x_check_attribute): Avoid modifying attribute list itself.
17996         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
17997         Make static.
17998         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
17999         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
18000         declare.
18001         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
18002         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
18003         Make static.
18004         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
18005         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
18006         declare.
18007         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
18008         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
18009         Adjust parameters.  Make static.
18010
18011 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18012
18013         * c-common.c (decl_attributes): Only take a single attributes
18014         parameter.
18015         * c-common.h (decl_attributes): Update prototype.
18016         * c-decl.c (start_decl, start_function): Only take a single
18017         attributes parameter.  Update calls to decl_attributes.
18018         (finish_struct, finish_enum): Update calls to decl_attributes.
18019         (push_parm_decl): Expect unified list of attributes.  Update call
18020         to decl_attributes.
18021         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
18022         notype_nested_function, component_declarator,
18023         component_notype_declarator, label): Update calls to
18024         decl_attributes.
18025         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
18026         lists that are passed to push_parm_decl.
18027         * c-tree.h (start_function, start_decl): Update prototypes.
18028         * config/sh/sh-protos.h, config/sh/sh.c
18029         (sh_pragma_insert_attributes): Only take a single attributes
18030         parameter.
18031         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
18032         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
18033         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
18034         build_module_descriptor, generate_static_references,
18035         generate_strings, build_selector_translation_table,
18036         generate_descriptor_table, generate_protocols,
18037         generate_ivars_list, generate_dispatch_table,
18038         generate_protocol_list, generate_category,
18039         generate_shared_structures, really_start_method, add_objc_decls,
18040         generate_classref_translation_entry): Update calls to start_decl
18041         and start_function.
18042         (build_tmp_function_decl, start_method_def): Unify attribute lists
18043         that are passed to push_parm_decl.
18044
18045 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
18046
18047         * final.c (no_asm_to_stream): New.
18048         (final_scan_insn): Use target structures for prologue ends
18049         and epilogue starts.
18050         * output.h (no_asm_to_stream): New.
18051         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
18052         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
18053         (TARGET_ASM_OUT): Update.
18054         * target.h (struct gcc_target): New members function_end_prologue
18055         and function_begin_epilogue.
18056         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
18057         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
18058         * config/alpha/alpha.c (output_end_prologue): Rename to
18059         alpha_output_function_end_prologue.  Use in target struct
18060         and make static.
18061         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
18062         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
18063         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
18064         ia64_output_function_end_prologue.  Use in target struct
18065         and make static.
18066         (ia64_function_prologue, ia64_funciton_epilogue): Rename
18067         mistyped prototypes.
18068         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
18069         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
18070         Delete.
18071         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
18072         an use in target struct, make static.
18073         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
18074         Delete.
18075
18076 2001-07-08  Richard Henderson  <rth@redhat.com>
18077
18078         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
18079
18080 2001-07-08  Richard Henderson  <rth@redhat.com>
18081
18082         * config/i386/i386.md: Remove constraints strings from define_split
18083         and define_peephole2 patterns.
18084         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
18085         (eh_return): Use them.
18086
18087 2001-07-08  Richard Henderson  <rth@redhat.com>
18088
18089         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
18090         Document MD_FALLBACK_FRAME_STATE_FOR.
18091
18092 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18093
18094         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
18095         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
18096         elimination.
18097         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
18098
18099 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
18100
18101         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
18102         of the label inside NAME as opposed to just the end of NAME.
18103
18104 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
18105
18106         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
18107         * config/alpha/alpha.c (alpha_init_machine_status,
18108         alpha_mark_machine_status, alpha_free_machine_status): Delete.
18109         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
18110         (vms_valid_decl_attribute_p): Make static, conditionally compile.
18111         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
18112
18113 2001-07-06  Stan Shebs  <shebs@apple.com>
18114
18115         * target.h (targetm): Rename global from "target", so as not to
18116         conflict with local variables.
18117         * c-decl.c: Ditto.
18118         * c-typeck.c: Ditto.
18119         * final.c: Ditto.
18120         * tree.c: Ditto.
18121         * cp/decl.c: Ditto.
18122         * cp/decl2.c: Ditto.
18123         * cp/typeck.c: Ditto.
18124         * 1750a/1750a.c: Ditto.
18125         * a29k/a29k.c: Ditto.
18126         * arc/arc.c: Ditto.
18127         * arm/arm.c: Ditto.
18128         * avr/avr.c: Ditto.
18129         * clipper/clipper.c: Ditto.
18130         * convex/convex.c: Ditto.
18131         * d30v/d30v.c: Ditto.
18132         * dsp16xx/dsp16xx.c: Ditto.
18133         * elxsi/elxsi.c: Ditto.
18134         * fr30/fr30.c: Ditto.
18135         * h8300/h8300.c: Ditto.
18136         * i370/i370.c: Ditto.
18137         * i386/i386.c: Ditto.
18138         * i860/i860.c: Ditto.
18139         * i960/i960.c: Ditto.
18140         * ia64/ia64.c: Ditto.
18141         * m32r/m32r.c: Ditto.
18142         * m68hc11/m68hc11.c: Ditto.
18143         * m68k/m68k.c: Ditto.
18144         * m88k/m88k.c: Ditto.
18145         * mips/mips.c: Ditto.
18146         * ns32k/ns32k.c: Ditto.
18147         * pa/pa.c: Ditto.
18148         * pdp11/pdp11.c: Ditto.
18149         * romp/romp.c: Ditto.
18150         * rs6000/rs6000.c: Ditto.
18151         * sh/sh.c: Ditto.
18152         * sparc/sparc.c: Ditto.
18153         * vax/vax.c: Ditto.
18154         * we32k/we32k.c: Ditto.
18155         * doc/tm.texi: Update the manual to match.
18156
18157 2001-07-06  Richard Henderson  <rth@redhat.com>
18158
18159         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
18160         DWARF2_UNWIND_INFO not just whether it is defined.
18161
18162 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
18163
18164         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
18165         call to simplify_binary_operation returns a new pattern.
18166
18167 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
18168
18169         * glimits.h (__SHRT_MAX__): New.
18170         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
18171         (SHRT_MAX): Define in terms of __SHRT_MAX__.
18172
18173 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
18174
18175         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
18176         avoid warnings.
18177
18178 2001-07-06  Richard Henderson  <rth@redhat.com>
18179
18180         * bitmap.c (bitmap_release_memory): Move adjacent to the
18181         allocation functions.
18182         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
18183         the implementation.  Binary search for the set bit.
18184         (bitmap_union_of_diff): Allocate the temporary on the stack
18185         instead of using xmalloc.
18186
18187 2001-07-06  Richard Henderson  <rth@redhat.com>
18188
18189         * genrecog.c (validate_pattern): Warn for constraints in
18190         define_{expand,split,peephole2}.  Remove strict_low_part
18191         before looking up match_dup.
18192
18193 2001-07-06  DJ Delorie  <dj@redhat.com>
18194
18195         * doc/gcc.texi (Makefile): Rename to be a more general purpose
18196         chapter about various build hints and history.  Add section
18197         talking about the various types of native and cross builds.
18198
18199 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
18200
18201         * Makefile.in (final.o): Depend on target.h.
18202         * final.c: Include target.h.
18203         (default_function_pro_epilogue): New.
18204         (final_start_function): Use target structure for function prologues.
18205         (final_end_function): Use target structure for function epilogues.
18206         * fold-const.c (real_hex_to_f): Constify s and p.
18207         * output.h (default_function_pro_epilogue): New.
18208         * real.h (real_hex_to_f): Update prototype.
18209         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
18210         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
18211         (TARGET_INITIALIZER): Update.
18212         * target.h (gcc_target): Add struct asm_out.
18213         * doc/tm.texi: Update.
18214
18215 config:
18216         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
18217         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
18218         in cpu/cpu.c, or rename old functions consistently.  Take
18219         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
18220         redundant macros and prototypes.  Make new functions static.
18221
18222         * 1750a/1750a.c: Similarly.
18223         * 1750a/1750a.h: Similarly.
18224         * a29k/a29k-protos.h: Similarly.
18225         * a29k/a29k.c: Similarly.
18226         * a29k/a29k.h: Similarly.
18227         * arc/arc-protos.h: Similarly.
18228         * arc/arc.c: Similarly.
18229         * arc/arc.h: Similarly.
18230         * arm/arm-protos.h: Similarly.
18231         * arm/arm.c: Similarly.
18232         * arm/arm.h: Similarly.
18233         * avr/avr-protos.h: Similarly.
18234         * avr/avr.c: Similarly.
18235         * avr/avr.h: Similarly.
18236         * clipper/clipper-protos.h: Similarly.
18237         * clipper/clipper.c: Similarly.
18238         * clipper/clipper.h: Similarly.
18239         * convex/convex.c: Similarly.
18240         * convex/convex.h: Similarly.
18241         * d30v/d30v-protos.h: Similarly.
18242         * d30v/d30v.c: Similarly.
18243         * d30v/d30v.h: Similarly.
18244         * d30v/d30v.md: Similarly.
18245         * dsp16xx/dsp16xx-protos.h: Similarly.
18246         * dsp16xx/dsp16xx.c: Similarly.
18247         * dsp16xx/dsp16xx.h: Similarly.
18248         * elxsi/elxsi.c: Similarly.
18249         * elxsi/elxsi.h: Similarly.
18250         * fr30/fr30.c: Similarly.
18251         * fr30/fr30.md: Similarly.
18252         * h8300/h8300-protos.h: Similarly.
18253         * h8300/h8300.c: Similarly.
18254         * h8300/h8300.h: Similarly.
18255         * i370/i370-protos.h: Similarly.
18256         * i370/i370.c: Similarly.
18257         * i370/i370.h: Similarly.
18258         * i386/i386.c: Similarly.
18259         * i386/osf1elf.h: Similarly.
18260         * i386/osfrose.h: Similarly.
18261         * i860/i860-protos.h: Similarly.
18262         * i860/i860.c: Similarly.
18263         * i860/i860.h: Similarly.
18264         * i960/i960-protos.h: Similarly.
18265         * i960/i960.c: Similarly.
18266         * i960/i960.h: Similarly.
18267         * ia64/ia64-protos.h: Similarly.
18268         * ia64/ia64.c: Similarly.
18269         * ia64/ia64.h: Similarly.
18270         * m32r/m32r-protos.h: Similarly.
18271         * m32r/m32r.c: Similarly.
18272         * m32r/m32r.h: Similarly.
18273         * m68hc11/m68hc11-protos.h: Similarly.
18274         * m68hc11/m68hc11.c: Similarly.
18275         * m68hc11/m68hc11.h: Similarly.
18276         * m68k/crds.h: Similarly.
18277         * m68k/dpx2.h: Similarly.
18278         * m68k/m68k-protos.h: Similarly.
18279         * m68k/m68k.c: Similarly.
18280         * m68k/m68k.h: Similarly.
18281         * m68k/news.h: Similarly.
18282         * m88k/m88k-protos.h: Similarly.
18283         * m88k/m88k.c: Similarly.
18284         * m88k/m88k.h: Similarly.
18285         * mips/mips-protos.h: Similarly.
18286         * mips/mips.c: Similarly.
18287         * mips/mips.h: Similarly.
18288         * ns32k/merlin.h: Similarly.
18289         * ns32k/ns32k.c: Similarly.
18290         * ns32k/ns32k.h: Similarly.
18291         * ns32k/tek6000.h: Similarly.
18292         * pa/pa-protos.h: Similarly.
18293         * pa/pa.c: Similarly.
18294         * pa/pa.h: Similarly.
18295         * pdp11/2bsd.h: Similarly.
18296         * pdp11/pdp11-protos.h: Similarly.
18297         * pdp11/pdp11.c: Similarly.
18298         * pdp11/pdp11.h: Similarly.
18299         * romp/romp-protos.h: Similarly.
18300         * romp/romp.c: Similarly.
18301         * romp/romp.h: Similarly.
18302         * rs6000/rs6000-protos.h: Similarly.
18303         * rs6000/rs6000.c: Similarly.
18304         * rs6000/rs6000.h: Similarly.
18305         * rs6000/sysv4.h: Similarly.
18306         * sh/sh-protos.h: Similarly.
18307         * sh/sh.c: Similarly.
18308         * sh/sh.h: Similarly.
18309         * sparc/sparc-protos.h: Similarly.
18310         * sparc/sparc.c: Similarly.
18311         * sparc/sparc.h: Similarly.
18312         * vax/vax.c: Similarly.
18313         * vax/vax.h: Similarly.
18314         * vax/vms.h: Similarly.
18315         * we32k/we32k.c: Similarly.
18316         * we32k/we32k.h: Similarly.
18317
18318 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
18319
18320         * basic-block.h (first_insn_after_basic_block_note): Declare.
18321         * flow.c (first_insn_after_basic_block_note): Define.  Moved
18322         from...
18323         * ssa.c (first_insn_after_basic_block_note): Remove.
18324         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
18325         necessary.
18326         (ssa_eliminate_dead_code): Properly update the CFG and PHI
18327         nodes when we find a dead conditional branch.  Insert BARRIERs
18328         after any blocks with no successors, but which do not have
18329         any BARRIERs.
18330
18331 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
18332
18333         * varray.c (varray_check_failed): Use internal_error.
18334
18335 2001-07-05  Andrew Haley  <aph@redhat.com>
18336
18337         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
18338         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
18339         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
18340
18341 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
18342
18343         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
18344         reference if the target constant is also a SYMBOL_REF.
18345
18346 2001-07-05  Eric Christopher  <echristo@redhat.com>
18347
18348         * config/mips/mips.h (MASK_MIPS3900): Remove.
18349         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
18350         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
18351         (TARGET_MIPS3900): Change to use mips_arch.
18352         (TARGET_MIPS4000): New.
18353         (TARGET_MIPS4100): New.
18354         (TARGET_MIPS4300): New.
18355         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
18356         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
18357         for -mipsX.
18358         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
18359         (ISA_HAS_BRANCHLIKELY): To here.
18360         (CC1_CPU_SPEC):  New.
18361         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
18362         (mips_arch_string): Declare.
18363         (mips_arch): Declare.
18364         (TARGET_OPTIONS): Add -march and -mtune.
18365
18366         * config/mips/mips.c (mips_arch_string): New.
18367         (mips_arch): New.
18368         (override_options): Handle -march for codegen and -mtune
18369         for scheduling. Use mips_arch. Move tx39 target default here.
18370         (mips_parse_cpu): Move error message to override_options.
18371
18372         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
18373
18374         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
18375
18376         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
18377         (MIPS Options): Ditto.  Change mcpu entry to historical text.
18378
18379 2001-07-05  H.J. Lu  (hjl@gnu.org)
18380
18381         * config/mips/mips.c (mips_parse_cpu): New function to parse
18382         -march=*/-mcpu=*.
18383
18384 2001-07-05  Jim Wilson  <wilson@redhat.com>
18385
18386         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
18387         * config/ia64/t-ia64: Likewise.
18388         (LIB1ASMFUNCS): Update comment.
18389
18390 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
18391
18392         * doc/install.texi (Install GCC: Binaries): Fix typo.
18393
18394 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18395
18396         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
18397         reference using the stack pointer, adjust it since we push Y
18398         temporarily.
18399         ("*ashrsi3"): Likewise.
18400         ("*lshrsi3"): Likewise.
18401
18402 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18403
18404         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
18405         when -fomit-frame-pointer is used.
18406
18407 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
18408
18409         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
18410         (try_redirect_by_replacing_jump): Reverse updating properly the
18411         count and frequency information.  Reverse removing cc0 setter.
18412         (forwarder_block_p): Reverse fixing for fallthru blocks.
18413
18414 2001-07-05  DJ Delorie  <dj@redhat.com>
18415
18416         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
18417         (translate_options): If the above is defined, use it to map
18418         given options to new options.
18419         * doc/tm.texi: Document it.
18420
18421 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
18422             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18423
18424         * doc/invoke.texi (Optimize Options): Document that -fgcse may
18425         cause programs using computed gotos to run more slowly.
18426
18427 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18428
18429         * doc/install.texi (Specific): Markup, spelling and typo fixes.
18430         Fixed sorting.
18431         Consistently require binutils 2.11.2, not prereleases.
18432         (Specific, decstation-*): Canonicalize as mips-dec-*.
18433         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
18434         always necessary.
18435         (Specific, m68k-altos): Removed reference to README.altos, deleted.
18436         (Specific, mips-*): Reword MIPS C compiler requirements.
18437         (Specific, powerpc*-*-*): New, mention --with-cpu once.
18438         (Specific, sunv5): Removed, obsolete.
18439
18440 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
18441
18442         * dwarf2out.c (output_loc_list): Use an all ones mask for
18443         .text asm output and don't rely on long long
18444         literals. Reformat some long lines.
18445
18446 2001-07-05  Andreas Jaeger  <aj@suse.de>
18447
18448         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
18449         section.
18450
18451 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18452
18453         * dwarf2out.c (dwarf2out_define): Update comment.
18454         (dwarf2out_undef): Ditto.
18455         (dwarf2out_start_source_file): Ditto.
18456         (dwarf2out_end_source_file): Ditto.
18457         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
18458         since we never call the start/end debug hook for the primary file.
18459
18460 2001-07-04  Kazu Hirata  <kazu@hxi.com>
18461
18462         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
18463         from shll.
18464
18465 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
18466
18467         * cppinit.c (remove_dup_dirs): Inform if a system include
18468         directory is being reordered.
18469         * doc/invoke.texi (Directory Options): GCC warns if you hide a
18470         system include.
18471         * doc/cpp.texi (Search Paths): Likewise.
18472         * doc/gcc.texi (Interoperation): Remove information about
18473         -I/usr/include.
18474
18475 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
18476
18477         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
18478         (VARRAY_TOP_CHAR_PTR): Likewise.
18479
18480 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18481
18482         * gcc.c (process_command): Don't assign elements of a const char*.
18483
18484 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18485
18486         * emit-rtl.c (change_address): Don't abort if invalid address while
18487         reload is in progress.
18488
18489 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18490
18491         * c-lex.c (cb_file_change): Pass line number to
18492         debug_start_source_file.
18493         (cb_undefine): Pass correct line number to debug_undef.
18494
18495         * toplev.c (debug_start_source_file): Add line number to
18496         parameters. Pass it along to dwarf2out_start_source_file.
18497         (decode_g_option): Stop resetting debug level back to normal when
18498         we change debug formats, unless the current level is
18499         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
18500         3).
18501
18502         * toplev.h (debug_start_source_file): Add line number to
18503         parameters.
18504
18505         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
18506         parameters.
18507
18508         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
18509         parameters.
18510         Output debug_macinfo data for starting file if requested.
18511         (dwarf2out_end_source_file): Output debug_macinfo data for ending
18512         file if requested.
18513         (dwarf2out_define): Output debug_macinfo data for defining a macro
18514         if requested.
18515         (dwarf2out_undef): Output debug_macinfo data for undefining a
18516         macro if requested.
18517         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
18518         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
18519         (macinfo_section_label): New. DWARF2 macro info section label.
18520         (dwarf2out_init): If we want macro info, output the start label
18521         for the section.
18522         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
18523         attribute to the compilation unit die pointing to the macro info.
18524
18525 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18526
18527         * dwarf2out.c (new_loc_list): Move to inside #ifdef
18528         DWARF2_DEBUGGING_INFO.
18529         (add_loc_descr_to_loc_list): Ditto.
18530         (output_loc_list): Ditto.
18531         Also, fix thinko in curr not being initialized.
18532         (gen_internal_sym): Ditto.
18533
18534 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18535
18536         * emit-rtl.c (replace_equiv_address): New function.
18537         * expr.h (replace_equiv_address): New declaration.
18538         * explow.c (validize_mem): Call it instead of change_address and
18539         also call if -fforce-addr and address is constant.
18540         * expr.c: Replace more calls to change_address with adjust_address
18541         and/or replace_equiv_address or to validize_mem.
18542         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
18543         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
18544         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
18545         * config/i370/i370.md, config/i860/i860.md: Likewise.
18546         * config/i960/i960.md, config/mips/mips.c: Likewise.
18547         * config/mips/mips.md, config/pa/pa.md: Likewise.
18548         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
18549         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
18550
18551 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18552
18553         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
18554
18555         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
18556         function.
18557
18558 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
18559
18560         * doc/include: New directory.
18561         * doc/fdl.texi: Move to doc/include/fdl.texi.
18562         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
18563         * doc/include/funding.texi, doc/include/gpl.texi: New files.
18564         * doc/gcc.texi: Use funding.texi and gpl.texi.
18565         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
18566         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
18567         Update dependencies and use -I $(docdir)/include.
18568
18569 2001-07-04  Anthony Green  <green@redhat.com>
18570
18571         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
18572
18573 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18574
18575         * doc/install.texi (sparc64-*-*): Remove garbage.
18576
18577 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
18578
18579         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
18580         Fix typo in last change to use adjust_address.
18581
18582 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18583
18584         * doc/install.texi (Specific): Update information for *-*-solaris*.
18585
18586 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18587
18588         * explow.c (plus_constant_wide): Reinitialize Y for restart.
18589
18590 2001-07-03  Stan Shebs  <shebs@apple.com>
18591
18592         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
18593         case for flag_no_mach_text_sections.
18594         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
18595         * config/darwin.c (flag_no_mach_text_sections): Remove.
18596         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
18597
18598 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18599
18600         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
18601         and avoid checking for constant as first operand.
18602         * recog.c (find_constant_term_loc): No longer static.
18603         (adj_offettable_operand): Delete.
18604         * rtl.h (adj_offsettable_operand): Delete declaration.
18605         (find_constant_term): Add declaration.
18606         * caller-save.c: Replace calls to adj_offsettable_operand with calls
18607         to adjust_address.
18608         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
18609         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
18610         * config/i386/i386.c, config/i386/i386.md: Likewise.
18611         * config/i860/i860.c, config/i960/i960.c: Likewise.
18612         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
18613         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
18614         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
18615         * config/mips/mips.c, config/mips/mips.md: Likewise.
18616         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
18617         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
18618         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
18619         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
18620         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
18621         * config/ns32k/ns32k.md: Likewise.
18622
18623 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
18624
18625         * rtl.c (copy_rtx): Handle 'T' format letter.
18626         * gensupport.c (collect_insn_data): Likewise.
18627         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
18628
18629 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
18630
18631         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
18632         -B option.  Use 'dir' not 'foo' as example directory name.
18633
18634 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18635
18636         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18637         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
18638
18639 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
18640
18641         * doc/cppinternals.texi: Improve formatting and logical markup.
18642
18643 2001-07-03  Andreas Jaeger  <aj@suse.de>
18644
18645         * Makefile.in (insn-recog.o): Add dependency on reload.h.
18646
18647         * genrecog.c (write_header): Include reload.h for prototypes in
18648         insn-recog.c.
18649
18650 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18651
18652 config:
18653         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
18654         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
18655         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
18656         i386_pe_valid_type_attribute_p): Add.
18657         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
18658         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
18659
18660 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18661
18662         * explow.c (plus_constant_wide, case LO_SUM): New case.
18663         (plus_constant_for_output_wide): Delete.
18664         * rtl.h (plus_constant_for_output): Delete.
18665         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
18666         instead of plus_constant_for_output.
18667         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
18668         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
18669         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
18670         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
18671         * config/sparc/sparc.md: Likewise.
18672         Convert some change_address calls to adjust_address.
18673
18674 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
18675
18676         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
18677         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
18678         documentation of -std and -Wwrite-strings.
18679
18680 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
18681
18682         * cse.c (canon_hash): Don't register registers in very small
18683         register classes, as extending their lifetime might cause
18684         reload to fail.
18685
18686 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
18687
18688         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
18689
18690         * flow.c (forwarder_block_p): Fix for fallthru blocks.
18691         (try_redirect_by_replacing_jump): Update properly the count
18692         and frequency information.
18693
18694 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
18695
18696         * toplev.c (dump_file_index): Move SSA dumps just after first
18697         jump dump.
18698         (dump_file): Corresponding changes.
18699         (rest_of_compilation): Move SSA path to just after the first
18700         jump pass.
18701         * doc/gcc.texi (Passes): Update due to movement of SSA path.
18702         * doc/invoke.texi: Update dump file #s as they were completely
18703         out of date with reality.
18704
18705 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
18706
18707         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
18708
18709         * expr.c (emit_move_insn_1): Deal with non-default
18710         STACK_PUSH_CODE.
18711
18712         * expr.c (emit_single_push_insn): Fix warning.
18713
18714 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
18715
18716         * expr.c (emit_move_insn_1): Avoid modifying
18717         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
18718
18719 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18720
18721         * emit-rtl.c (adjust_address): New function.
18722         * expr.h (adjust_address): Add declaration.
18723         * builtins.c: Replace some calls to change_address with calls to it
18724         or to validize_mem.
18725         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
18726         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
18727         * config/arm/arm.c, config/convex/convex.c: Likewise.
18728         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
18729         * config/i386/i386.c, config/i386/i386.md: Likewise.
18730         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
18731         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
18732         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
18733         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
18734         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
18735
18736 2001-07-02  Jim Wilson  <wilson@redhat.com>
18737
18738         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
18739
18740 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
18741
18742         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
18743         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
18744
18745 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
18746
18747         * cppinit.c (lang_defaults): New table.
18748         (set_lang): Just read from lang_defaults into the live options
18749         structure.
18750
18751 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
18752
18753         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
18754         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
18755         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
18756
18757 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18758
18759         * doc/install.texi: Various spelling and markup fixes.
18760         (Installing GCC): Component specific installation instructions are
18761         gone.
18762         Fix reference.
18763         Warn about removing old install dir in the presence of shared libs.
18764         (Configuration): Invoke with options target to match configure
18765         --help.
18766         Consistently refer to gas, gld pathnames.
18767         Invert --enable-multilib documentation.
18768         Remove references to old compiler versions.
18769
18770 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18771
18772         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
18773
18774 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18775
18776         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
18777         section.
18778         (Specific, mips*-sgi-irix5): Note IDO download.
18779         Reworded MIPS C hints.
18780         Use GNU as instead of GAS.
18781         Markup fixes.
18782         Removed SGI Freeware reference, IRIX 6 only.
18783         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
18784         Note N64 library requirement/workaround.
18785         Update O32 hints.
18786         Complete list of structure passing bug victims.
18787
18788 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18789
18790         * doc/install.texi: Remove CVS Id.
18791
18792 2001-07-02  Andreas Jaeger  <aj@suse.de>
18793
18794         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
18795         (find_inherently_necessary): Remove unused variable.
18796
18797 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
18798
18799         * c-common.h (TDI_inlined): New ast dump phase.
18800         (dump_flag_name): New function.
18801         * c-dump.c (dump_files): Add inlined phase.
18802         (dump_flag_name): Define.
18803         * doc/invoke.texi (-fdump-ast-inlined): Document.
18804
18805 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18806
18807         * stor-layout.c (layout_decl): Revert change to handling of alignment
18808         in packed types.
18809
18810 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18811
18812         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
18813         for FIELD_DECL.
18814
18815 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
18816
18817         * doc/tm.texi (FUNCTION_ARG): Document that the last call
18818         is special.
18819
18820 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
18821
18822         * tlink.c (recompile_files): Remove COMPILER_PATH and
18823         LIBRARY_PATH from the environment.
18824
18825 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
18826
18827         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
18828         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
18829         enumerators.
18830         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
18831
18832         * c-parse.in (OBJC_STRING): Kill.
18833         (objc_string): Decompose to [objc_string] '@' STRING.
18834         (reswords): Take the leading '@' off all the Objective C keywords.
18835         (objc_rid_sans_at): Kill.
18836         (init_reswords): Don't initialize it.
18837         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
18838         (_yylex): Kill reconsider label.  Look ahead one token after
18839         an '@'; if we get an identifier, check whether it's an
18840         Objective C @-keyword.  If so, return the keyword.  Otherwise,
18841         put back the token and return the '@' as a terminal.
18842
18843         * cpplib.c (lex_macro_node): Remove unnecessary check for
18844         leading '@' on identifier.  Clarify control flow and commentary.
18845
18846 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18847
18848         * cse.c (new_label_ref): Variable deleted.
18849         (insert): Remove set of new_label_ref.
18850         (check_for_label_ref): New function.
18851         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
18852
18853 See ChangeLog.5 for earlier changes.