OSDN Git Service

* doc/md.texi: Add @findex define_insn_and_split.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-12-28  Kazu Hirata  <kazu@hxi.com>
2
3         * doc/md.texi: Add @findex define_insn_and_split.
4
5 2001-12-28  Hans Bohem  <hans_boehm@hp.com>
6
7         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
8         * config/ia64/unwind-ia64.c (uw_init_context_1): Redo sp, psp,
9         bsp setup.  Set pri_unat_loc to something reasonable.
10         (uw_install_context): Add missing cast.
11         (unw_access_gr): Fix off-by-1 indexing error.
12
13 2001-12-28  Kazu Hirata  <kazu@hxi.com>
14
15         * except.c: Fix comment formatting.
16         * flags.h: Likewise.
17         * flow.c: Likewise.
18         * predict.c: Likewise.
19         * simplify-rtx.c: Likewise.
20         * system.h: Likewise.
21         * vmsdbg.h: Likewise.
22         * vmsdbgout.c: Likewise.
23
24 2001-12-28  Kazu Hirata  <kazu@hxi.com>
25
26         * config/h8300/h8300.md: Fix formatting.
27
28 2001-12-28  Geoff Keating  <geoffk@redhat.com>
29
30         * varasm.c (record_constant_1): Correct parameter to recursive
31         call in default case.
32
33 2001-12-28  Jakub Jelinek  <jakub@redhat.com>
34
35         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT,
36         ASM_OUTPUT_DWARF_PCREL): Define.
37         * config/sparc/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
38         * configure.in (HAVE_AS_SPARC_UA_PCREL): Check whether as supports
39         .uaword %r_disp32() and linker handles it correctly.
40         * configure, config.in: Rebuilt.
41
42 2001-12-28  Jakub Jelinek  <jakub@redhat.com>
43
44         * c-typeck.c (store_init_value): If initializing object with array
45         type of unknown size by a compound literal, set object's size from
46         compound literal size.
47         * doc/extend.texi (Compound Literals): Adjust documentation.
48
49 2001-12-28  Richard Henderson  <rth@redhat.com>
50
51         * real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
52         (endian): Clear word 3 for INTEL_EXTENDED_IEEE_FORMAT.
53         (etartdouble): Invoke etoe64 for INTEL_EXTENDED_IEEE_FORMAT.
54         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Don't special case
55         INTEL_EXTENDED_IEEE_FORMAT.
56
57 2001-12-27  Geoff Keating  <geoffk@redhat.com>
58
59         * combine.c (try_combine): Mask off sign bits when combining
60         stores to the low and high parts of a two-word value.
61
62         * expr.c (expand_expr): Don't mark memory for non-constants as
63         constant.
64
65 Thu Dec 27 20:39:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
66
67         * integrate.c (copy_rtx_and_substitute, case MEM): If inlining
68         and not for LHS, clear RTX_UNCHANGING_P.
69
70 2001-12-28  Philipp Thomas  <pthomas@suse.de>
71
72         * cppfiles.c (stack_include_file): Don't translate <stdin>.
73
74 2001-12-27  Roger Sayle <roger@eyesopen.com>
75
76         * builtins.c (expand_builtin_memcmp): Optimize memcmp built-in
77         when all arguments are known constant.  Fixes PR opt/3508.
78
79 2001-12-27  Kazu Hirata  <kazu@hxi.com>
80
81         * config/h8300/h8300.md (two anonymous patterns): Remove.
82
83 2001-12-27  Richard Henderson  <rth@redhat.com>
84
85         * haifa-sched.c (reemit_other_notes): New.
86         (schedule_block): Use it.
87         * sched-ebb.c (schedule_ebbs): Call remove_unnecessary_notes.
88         * sched-rgn.c (schedule_insns): Likewise.
89         * cfglayout.c (remove_scope_notes): Handle removing note at
90         the end of the insn chain.
91         * function.c (debug_find_var_in_block_tree): New.
92
93 2001-12-27  Alan Modra  <amodra@bigpond.net.au>
94             David Edelsohn  <edelsohn@gnu.org>
95
96         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.
97
98 2001-12-27  Jakub Jelinek  <jakub@redhat.com>
99
100         * toplev.c (independent_decode_option): Re-add -aux-info option
101         handling.
102
103 Thu Dec 27 09:50:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
104
105         * integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
106         if special value.
107
108 2001-12-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
109
110         * collect2.c (is_ctor_dtor): Const-ify.
111         * m88k-protos.h (output_file_start): Likewise.
112         * m88k.c (m88k_lang_independent_options, output_options,
113         output_file_start): Likewise.
114         * fix-header.c (files_to_ignore, std_include_entry, include_entry,
115         std_include_table, main): Likewise.
116         * protoize.c (longopts): Likewise.
117         * regclass.c (int_reg_class_contents): Likewise.
118         * toplev.c (dump_file, f_options, W_options): Make static.
119         (lang_independent_options, f_options, W_options): Const-ify.
120         * tree-dump.c (dump_file_info): Likewise.
121         * unroll.c (_factor): Make static.
122
123 Wed Dec 26 17:55:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
124
125         * config/alpha/alpha.c (alpha_align_insns): Remove warning.
126
127         * config/sparc/sparc.md (call struct patterns): Show starting
128         at two words long.
129
130 2001-12-26  David Edelsohn  <edelsohn@gnu.org>
131
132         * rs6000.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add mcpu=405.
133         * sysv4.h (CPP_SYSV_SPEC, CPP_OS_VXWORKS_SPEC): Add mcpu=405.
134
135 2001-12-26  DJ Delorie  <dj@redhat.com>
136
137         * function.c (expand_main_function): Make sure stack adjustments
138         happen before sjlj exception setup.
139
140 2001-12-26  David Edelsohn  <edelsohn@gnu.org>
141
142         * rs6000.md (indirect_jump): Prefer CTR over LR.
143         * xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.
144
145 Tue Dec 25 12:04:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
146
147         * dwarf2out.c: Reformatting and minor code rearrangement.
148
149 2001-12-24  Douglas B. Rupp (rupp@gnat.com)
150
151         * configure.in (quoted_stage_prefix_set_by_configure): Generate.
152         * configure: Regenerated.
153         * Makefile.in (SUBDIR_FLAGS_TO_PASS): Use
154         quoted_stage_prefix_set_by_configure.
155
156 Mon Dec 24 10:24:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
157
158         * rtl.h (in_expr_list_p): New declaration.
159         * rtlanal.c (in_expr_list_p): New function.
160         * cfgcleanup.c: Reformatting and minor code rearrangement.
161         * cfglayout.c, cfgloop.c, cfgrtl.c: Likewise.
162
163 2001-12-23  Richard Henderson  <rth@redhat.com>
164
165         PR c/5163:
166         * c-decl.c (duplicate_decls): As needed, set DECL_INLINE when
167         we have a function body associated.  Minor cleanups.
168         (grokdeclarator): Do not set DECL_INLINE without a function body.
169
170 2001-12-23  Richard Henderson  <rth@redhat.com>
171
172         * stmt.c (resolve_operand_names): Handle operand modifiers.
173
174 2001-12-23  Richard Henderson  <rth@redhat.com>
175
176         * stmt.c (parse_input_constraint): Break out from ...
177         (expand_asm_operands): ... here.  Loop over the operands twice,
178         the first time only calling mark_addressable.  Correct and simplify
179         the conditions for spilling an output operand to memory.
180
181 2001-12-23  Richard Henderson  <rth@redhat.com>
182
183         * config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
184
185         * config/alpha/alpha.md (UNSPEC_SIBCALL): New.
186         (sibcall, sibcall_value, sibcall_osf_1_er, sibcall_osf_1): Use it.
187         (sibcall_value_osf_1_er, sibcall_value_osf_1): Likewise.
188
189 2001-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
190
191         * c-typeck.c (c_start_case): Don't strip conversions from the
192         controlling expression.  Partially fixes PR c/2454.
193
194 2001-12-23  Joseph S. Myers  <jsm28@cam.ac.uk>
195
196         * Makefile.in (USER_H): Remove proto.h.
197         * config.gcc (c*-convex-*): Set extra_headers=proto.h.
198
199 2001-12-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
200
201         * arc.c (arc_hard_regno_mode_ok): Const-ify.
202         * arc.h (arc_hard_regno_mode_ok): Likewise.
203         * i386.c (x86_64_reg_class_name): Make static.
204         * m68k.c (regno_reg_class): Const-ify.
205         * m68k.h (regno_reg_class): Likewise.
206         * mcore.c (reg_class_from_letter): Likewise.
207         * mcore.h (reg_class_from_letter): Likewise.
208         * sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
209         ext_shift_insns, ext_shift_amounts): Likewise.
210         * sh.h (reg_class_from_letter): Likewise.
211         * sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
212         hard_64bit_mode_classes): Likewise.
213         * sparc.h (hard_regno_mode_classes): Likewise.
214
215         * gcc.c (modify_target): Make static.
216         * gengenrtl.c (defs, formats): Likewise.
217         * reload1.c (elim_table_1, init_elim_table): Const-ify.
218         * tradcpp.c (directive, directive_table, handle_directive,
219         skip_if_group, run_directive): Likewise.
220
221 2001-12-23  Richard Henderson  <rth@redhat.com>
222
223         * calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for
224         an invalid result register; do end the sequence properly.
225         (emit_library_call_value_1): Likewise.
226
227 2001-12-22  Aldy Hernandez  <aldyh@redhat.com>
228
229         * config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.
230
231         * config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.
232
233         * config/rs6000/rs6000.c: Clean up some spacing and indentation.
234         (altivec_init_builtins): Add tree types for builtins with 4 bit
235         literals.
236         (bdesc_3arg): Add vsldoi variants.
237
238 2001-12-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
239
240         * 1750a.h (datalbl, jmplbl): Declare array size explicitly.
241         * a29k.h (a29k_debug_reg_map): Likewise.
242         * arc.h (arc_regno_reg_class): Likewise.
243         * c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
244         * convex.h (regno_reg_class, reg_class_from_letter): Likewise.
245         * d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
246         * i386.h (regclass_map): Likewise.
247         * m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
248         * mcore.h (regno_reg_class): Likewise.
249         * mips.h (mips_print_operand_punct, mips_char_to_class):
250         Likewise.
251         * ns32k.h (regclass_map): Likewise.
252         * pj.h (pj_debugreg_renumber_vec): Likewise.
253         * s390.h (regclass_map): Likewise.
254         * sh.h (regno_reg_class): Likewise.
255         * sparc.h (sparc_regno_reg_class): Likewise.
256
257         * hard-reg-set.h (reg_class_contents): Likewise.
258         * machmode.h (class_narrowest_mode): Likewise.
259
260 2001-12-22  David Edelsohn  <edelsohn@gnu.org>
261
262         * loop.c (scan_loop, move_movables, count_one_set): Do not
263         overlook hard registers when computing statistics.
264
265 Sun Dec 23 00:49:37 CET 2001  Jan Hubicka  <jh@suse.cz>
266
267         * calls.c (ECF_LIBCALL_BLOCK): New constant.
268         (emit_call_1, initialize_argument_information,
269         precompute_arguments, expand_call,
270         emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
271         instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.
272
273 2001-12-22  Joseph S. Myers  <jsm28@cam.ac.uk>
274
275         * config.gcc (extra_headers): Move settings to math-68881.h and
276         ppc-asm.h to common code for CPU types.  Use math-68881.h on all
277         m68k targets.
278         (header_files): Remove unused setting.
279
280 2001-12-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
281
282         * elxsi.c: Include "hard-reg-set.h" and/or don't declare
283         `call_used_regs' explicitly.
284         * i860.c: Likewise.
285         * m68k.c: Likewise.
286         * ns32k.c: Likewise.
287         * pa.c: Likewise.
288         * vax.c: Likewise.
289         * we32k.c: Likewise.
290
291 Fri Dec 21 23:30:14 CET 2001  Jan Hubicka  <jh@suse.cz>
292
293         * i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
294         (TARGET_CPU_DEFAULT_*): Renumber.
295
296 Sat Dec 22 12:20:20 EST 2001  John Wehle  (john@feith.com)
297
298         * rtl.h (subreg_lsb): Declare.
299         * rtlanal.c (subreg_lsb): Implement.
300
301 Sat Dec 22 08:59:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
302
303         * predict.c: Reformatting and minor cleanups.
304         * cfg.c, cfganal.c, cfgbuild.c: Likewise.
305
306         * expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
307         SAVE_EXPR.
308         * function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
309         (put_addressof_into_stack): Clarify code in setting of used_p.
310
311         * calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
312         (expand_call): Delete from here.
313         Do pending stack adjustments if ECF_SP_DEPRESSED.
314
315         * dwarf2out.c (save_rtx): Deleted.
316         (mem_loc_descriptor): Do equivalent operation.
317         (add_const_value_attribute, case CONST): Likewise.
318         (add_name_and_src_coords_attributes): Likewise.
319
320 2001-12-21  Kazu Hirata  <kazu@hxi.com>
321
322         * config/h8300/h8300.h: Fix comment formatting.
323
324 Fri Dec 21 17:30:15 2001  Jeffrey A Law  (law@redhat.com)
325
326         * pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
327         (CPLUSPLUS_CPP_SPEC): Define _INCLUDE_LONGLONG.
328
329 2001-12-21  Robert Lipe  <robertlipe@usa.net>
330
331          * system.h (PREFETCH): Explictly undefine.
332
333 2001-12-21  Richard Henderson  <rth@redhat.com>
334
335         * c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
336         (RESTORE_WARN_FLAGS): Restore it.
337         (extension): Zero warn_traditional.
338
339 2001-12-21  Kazu Hirata  <kazu@hxi.com>
340
341         * doc/passes.texi: Fix a typo.
342
343 2001-12-21  Kazu Hirata  <kazu@hxi.com>
344
345         * config/h8300/h8300.h: Fix a comment typo.
346
347 2001-12-21  Jakub Jelinek  <jakub@redhat.com>
348
349         * combine.c (nonzero_bits): If using reg_nonzero_bits,
350         we don't know anything about bits outside of X mode.
351         (num_sign_bit_copies): Likewise.
352
353 2001-12-21  Nick Clifton  <nickc@cambridge.redhat.com>
354
355         * config/arm/arm.md (prefetch): Use 'a' operand code.
356
357 2001-12-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
358
359         * aclocal.m4 (gcc_AC_PROG_GNAT): Run prospective ada drivers in
360         subshells.
361         * configure.in: Likewise for perl Pod::Man.
362
363         * configure: Regenerated.
364
365 2001-12-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
366
367         * builtin-attrs.def (__builtin_printf_unlocked,
368         __builtin_fprintf_unlocked, printf_unlocked, fprintf_unlocked):
369         Mark with the __printf__ attribute.
370         
371         * builtins.c (expand_builtin_fputs): Add an `unlocked' parameter
372         and set the replacement function depending on it.
373         (expand_builtin): Skip BUILT_IN_*_UNLOCKED when not optimizing.
374         Handle BUILT_IN_*_UNLOCKED when optimizing.
375         
376         * builtins.def (DEF_EXT_FALLBACK_BUILTIN,
377         DEF_EXT_FRONT_END_LIB_BUILTIN): New macros.
378         Declare the "unlocked" stdio functions.
379         
380         * c-common.c (c_expand_builtin_printf, c_expand_builtin_fprintf):
381         Add an `unlocked' parameter and set the replacement function
382         depending on it.
383         (c_expand_builtin): Handle BUILT_IN_PRINTF_UNLOCKED and
384         BUILT_IN_FPRINTF_UNLOCKED.
385
386         * doc/extend.texi (printf_unlocked, fprintf_unlocked,
387         fputs_unlocked): Document.
388
389 2001-12-20  Josef Zlomek  <zlomek@matfyz.cz>
390
391         * cfgloop.c (flow_loops_find): Use the information of the depth
392         first search order of the CFG correctly when finding natural loops.
393
394 2001-12-20  Richard Henderson  <rth@redhat.com>
395
396         * config/alpha/alpha.md (prologue_mcount): Update for explicit relocs.
397
398 2001-12-20  Richard Henderson  <rth@redhat.com>
399
400         * config/alpha/alpha.c (call_operand) [OSF]: Accept pseudos.
401         * config/alpha/alpha.md (call_osf, call_value_osf): Don't force
402         operand into $27.
403
404 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
405
406         * configure.in (all_headers, all_lib2funcs): Remove.
407         * configure: Regenerate.
408         * Makefile.in (LANG_EXTRA_HEADERS): Remove.
409         (USER_H): Don't include $(LANG_EXTRA_HEADERS).
410         * config/alpha/t-interix (USER_H): Don't include
411         $(LANG_EXTRA_HEADERS).
412         * config/i386/t-interix: Likewise.
413         * config/t-openbsd: Likewise.
414
415 2001-12-20  Andreas Jaeger  <aj@suse.de>
416
417         * libgcc2.c (__bb_exit_func): Remove unused variable.
418         (num_digits): Remove unused function.
419
420 2001-12-20 Alan Shieh <ashieh@hkn.eecs.berkeley.edu>
421
422         * config/arm/arm.c (arm_output_epilogue): Changed IP restore
423         to use ldmfd instead of ldmea.
424         * config/arm/arm.c (arm_compute_initial_elimination_offset):
425         Modified to reflect behavior of arm_expand_prologue when generating
426         interrupt handlers
427
428 2001-12-20  Nick Clifton  <nickc@cambridge.redhat.com>
429
430         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask):  New
431         function. Compute which of registers r0 through r12 should be
432         saved onto the stack during a function's prologue.
433         (arm_compute_save_reg_mask): Use
434         arm_compute_save_reg0_reg12_mask.
435         (arm_compute_initial_elimination_offset): Use
436         arm_compute_save_reg0_reg12_mask.
437
438         (arm_expand_prologue): Do not mark as save of the IP register
439         for an interrupt handler as being part of the frame creation
440         code.
441
442 2001-12-20  Richard Henderson  <rth@redhat.com>
443
444         * varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer
445         to emit floating point values.
446         (assemble_real_1): Remove.
447
448         * 1750a/1750a.c (real_value_to_target_single): New.
449         (real_value_to_target_double): New.
450         * 1750a/1750a.h (TARGET_FLOAT_FORMAT): New.
451         (REAL_VALUE_TO_TARGET_SINGLE): New.
452         (REAL_VALUE_TO_TARGET_DOUBLE): New.
453         * 1750a/1750a-protos.h: Update.
454
455         * 1750a/1750a.h, a29k/a29k.h, alpha/alpha.h, alpha/unicosmk.h,
456         alpha/vms.h, arc/arc.h, arm/aof.h, arm/aout.h, avr/avr.c,
457         avr/avr.h, c4x/c4x.h, clipper/clix.h, convex/convex.h, cris/cris.h,
458         d30v/d30v.h, dsp16xx/dsp16xx.c, dsp16xx/dsp16xx.h, elxsi/elxsi.h,
459         fr30/fr30.h, h8300/h8300.h, i370/i370.h, i386/i386.h, i386/i386elf.h,
460         i386/next.h, i386/ptx4-i.h, i386/sysv4.h, i860/fx2800.h, i860/i860.h,
461         i860/paragon.h, i860/sysv4.h, i960/i960-protos.h, i960/i960.c,
462         i960/i960.h, ia64/ia64.h, m32r/m32r.h, m68hc11/m68hc11.c,
463         m68hc11/m68hc11.h, m68k/3b1.h, m68k/altos3068.h, m68k/crds.h,
464         m68k/dpx2.h, m68k/hp320.h, m68k/m68k.h, m68k/mot3300.h, m68k/news.h,
465         m68k/next.h, m68k/next21.h, m68k/sgs.h, m68k/sun2o4.h, m68k/sun3.h,
466         m68k/tower-as.h, m88k/m88k.h, mcore/mcore.h, mips/mips-protos.h,
467         mips/mips.c, mips/mips.h, mmix/mmix-protos.h, mmix/mmix.c,
468         mmix/mmix.h, mn10200/mn10200.h, mn10300/mn10300.h, ns32k/encore.h,
469         ns32k/ns32k.h, pa/long_double.h, pa/pa.h, pdp11/pdp11.h, pj/pj.h,
470         romp/romp.c, romp/romp.h, rs6000/rs6000.h, s390/linux.h, sh/sh.h,
471         sparc/sparc.h, stormy16/stormy16.h, v850/v850.h, vax/vax.h,
472         vax/vaxv.h, we32k/we32k.h, doc/tm.texi: Remove ASM_OUTPUT_FLOAT,
473         ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE_FLOAT,
474         ASM_OUTPUT_SHORT_FLOAT, ASM_OUTPUT_THREE_QUARTER_FLOAT, and all
475         associated support routines.
476
477 Thu Dec 20 16:58:46 CET 2001  Jan Hubicka  <jh@suse.cz>
478
479         * cfgcleanup.c (flow_find_cross_jump): Avoid incrementing of ninsns
480         if one of block does not contain jump.
481         (outgoing_edge_math): Revert last path; require edges to be noncomplex
482         nonfake to match single exit edge; require conditional jumps to not
483         have side effect.
484
485 2001-12-20  Turly O'Connor  <turly@apple.com>
486
487         * tm.texi (ASM_OUTPUT_OPERAND): Change documentation references to
488         "recog_operand" to "recog_data.operand".
489         * rtl.def: Likewise.
490
491 2001-12-20  Jakub Jelinek  <jakub@redhat.com>
492
493         * simplify-rtx.c (simplifi_binary_operation) [DIV]: If DIV has
494         narrower mode than op0, only return the bits in DIV's mode.
495
496 2001-12-20  Jakub Jelinek  <jakub@redhat.com>
497
498         * combine.c (distribute_notes): Avoid adding REG_LABEL notes
499         to JUMP_INSNs with JUMP_LABEL.
500
501 2001-12-19  Aldy Hernandez  <aldyh@redhat.com>
502
503         * doc/install.texi: Add documentation for --enable-altivec.
504
505         * config.gcc: Add support for --enable-altivec.
506
507         * config/rs6000/altivec.h: New.
508
509         * config/rs6000/linuxaltivec.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
510         Define.  Fix typo.
511
512         * config/rs6000/rs6000.c (vrsave_operation): Change unspec to
513         unspec_volatile.
514         (generate_set_vrsave): Generate the unspec here instead of calling
515         an .md pattern.
516         (generate_set_vrsave): Use gen_rtvec.
517         (rs6000_emit_prologue): Replace call to gen_get_vrsave with
518         gen_rtx_SET.
519
520         * config/rs6000/rs6000.md ("*movsi_internal1"): Add constraints
521         for setting special registers.
522         ("*set_vrsave_internal"): Use unspec_volatile.
523         ("set_vrsave"): Remove.
524         ("get_vrsave"): Remove.
525
526         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add vrsave to
527         SPECIAL_REGS.
528
529 2001-12-19  Bruce Korb  <bkorb@gnu.org>
530
531         * gcc/fixinc/inclhack.def:  Remove all the fix suppression "fixes".
532         (strict_ansi_not_ctd):  accommodate __STDC__ == 0 tests in UW 2.1.2
533         * gcc/fixinc/mkfixinc.sh(i?86-*-sysv4.2uw2*): now uses fixincl program
534         * gcc/fixinc/base/...: adjust for changes in fixes
535
536 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
537
538         * po/gcc.pot: Regenerate.
539
540         * configure.in (all_diff_excludes, diff_excludes): Remove.
541         * configure: Regenerate.
542         * Makefile.in (LANG_DIFF_EXCLUDES): Remove.
543         * objc/config-lang.in (diff_excludes): Remove.
544
545 2001-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
546
547         * config/sparc/sparc.md (ldd peephole2s): For load peepholes pass
548         the destination register as a parameter to mems_ok_for_ldd_peep.
549         For store peepholes pass NULL_RTX.  Move all volatile checks ...
550         * config/sparc/sparc.c (mems_ok_for_ldd_peep): ... here.  Add a
551         register parameter, check it's not the same as base for an address.
552         * config/sparc/sparc-protos.h (mems_ok_for_ldd_peep): Update.
553
554 2001-12-19  Jakub Jelinek  <jakub@redhat.com>
555
556         * config/ia64/ia64.c (ia64_single_set): Return first set for
557         prologue_allocate_stack and epilogue_deallocate_stack instructions.
558
559 2001-12-19  Dale Johannesen  <dalej@apple.com>
560
561          * config/rs6000/rs6000.h: LEGITIMIZE_RELOAD_ADDRESS:
562          redefine in terms of rs6000_legitimize_reload_address().
563          * config/rs6000/rs6000-protos.h: Add this function.
564          * config/rs6000/rs6000.c: Add this function.  Includes
565          handling for Darwin FP constants.
566
567 Wed Dec 19 11:01:21 2001  Jeffrey A Law  (law@redhat.com)
568
569         * config/pa/t-hpux-shlib: New file.
570         * config.gcc (hpux10, hpux11): Include t-hpux-shlib in tmake_file
571         for 32bit hpux10 & hpux11 configurations.
572
573 2001-12-19  Nick Clifton  <nickc@cambridge.redhat.com>
574
575         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Pass
576         -mno-fpu onto gas unless -mhard-float is specified.
577         (MULTILIB_DEFAULTS): Include msoft-float.
578
579         * config/arm/t-xscale-coff (EXTRA_MULTILIB_PARTS): Remove definition.
580
581         * config/arm/coff.h (SUPPORTS_INIT_PRIORITY): Define (to false).
582         * config/arm/elf.h (SUPPORTS_INIT_PRIORITY): Define (to true).
583
584 Wed Dec 19 06:12:34 2001  Douglas B. Rupp  <rupp@gnat.com>
585
586         * dwarf2out.c (add_name_and_src_coords_attributes): Fix VMS procedure
587         descriptor output.
588
589 2001-12-18  Stan Shebs  <shebs@apple.com>
590
591         * rs6000.h (LOCAL_ALIGNMENT): Fix parens.
592
593 Tue Dec 18 17:02:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
594
595         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
596         on an INTEGER_CST.
597
598 2001-12-18  David Edelsohn  <edelsohn@gnu.org>
599
600         * rs6000.c (rs6000_override_options): Only use DI ops when
601         TARGET_64BIT.  Fix typo.
602
603 Tue Dec 18 16:39:46 CET 2001  Jan Hubicka  <jh@suse.cz>
604
605         * att.h (ASM_FILE_START): Use asm_dialect.
606         * linux.h (ASM_FILE_START): Likewise.
607         * gas.h (ASM_FILE_START): Likewise.
608         * i386.c (ix86_debug_arg_string, ix86_debug_addr_string,
609         ix86_asm_string, ix86_asm_dialect): New.
610         (override_options): Set asm_dialect.
611         * i386.h (MASK_MIX_SSE_I387, MASK_INTEL_SYNTAX, MASK_DEBUG_ARG,
612         MASK_DEBUG_ADDR): Kill.
613         (MASK_64BIT, MASK_NO_RED_ZONE): renumber.
614         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Use string.
615         (ASSEMBLER_DIALECT): Use asm_dialect.
616         (TARGET_SWITCHES): Undocument deprecated items; deprecate intel-syntax;
617         remove debug-addr and debug-arg.
618         (TARGET_OPTIONS): Add debug-arg, debug-addr, asm.
619         (asm_dialect): New enum.
620         (ix86_debug_arg_string, ix86_debug_addr_string,
621         ix86_asm_string, ix86_asm_dialect): Declare.
622         * invoke.texi (-mintel-syntax): Remove.
623         (-masm): Document.
624
625 Tue Dec 18 16:37:42 CET 2001  Jan Hubicka  <jh@suse.cz>
626
627         * libgcc2.c (__bb_exit_func): Kill -ax dumping code.
628
629 2001-12-18  Jason Merrill  <jason@redhat.com>
630
631         C++ ABI change: destroy value arguments in caller.
632         * calls.c (initialize_argument_information): Pass the address of
633         the TARGET_EXPR temporary rather than storing it into another.
634
635 Tue Dec 18 07:09:06 2001  Douglas B. Rupp  <rupp@gnat.com>
636
637         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Add /gnu/include.
638         * config/alpha/vms.h (STACK_CHECK_BUILTIN): #define 0 for VMS.
639
640 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
641
642         * config/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
643         * config/sparc/linux.h (PREFERRED_DEBUGGING_TYPE): Remove.
644         * config/sparc/linux64.h (PREFERRED_DEBUGGING_TYPE): Remove.
645         (CC1_SPEC): Don't default to -gstabs+ if -m32.
646
647 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
648
649         * elfos.h (PREFERRED_DEBUGGING_TYPE): Change to DWARF2_DEBUG.
650
651 2001-12-18  Joseph S. Myers  <jsm28@cam.ac.uk>
652
653         * po/gcc.pot: Regenerate.
654
655 2001-12-18  Kazu Hirata  <kazu@hxi.com>
656
657         * config/h8300/h8300.c: Fix comment typos.
658         * config/h8300/h8300.h: Fix comment formatting.
659
660 2001-12-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
661
662         * machmode.h (mode_name, mode_class, mode_size, mode_unit_size,
663         mode_bitsize, mode_mask_array, mode_wider_mode): Set array size in
664         declaration to NUM_MACHINE_MODES.
665         (mode_size, mode_unit_size): Set array type to unsigned char.
666         (mode_bitsize): Set array type to unsigned short.
667
668         * rtl.c (rtx_length): Set array type to unsigned char.
669         (rtx_length, rtx_name, rtx_format, rtx_class): Set array size to
670         NUM_RTX_CODE.
671         (mode_bitsize): Set array type to unsigned short.
672         (mode_size, mode_unit_size): Set array type to unsigned char.
673         (mode_name, mode_class, mode_bitsize, mode_size, mode_unit_size,
674         mode_wider_mode, mode_mask_array): Set array size to
675         NUM_MACHINE_MODES.
676
677         * rtl.h (rtx_length, rtx_name, rtx_format, rtx_class): Set array
678         size in declaration to NUM_RTX_CODE.
679
680 2001-12-17  Richard Henderson  <rth@redhat.com>
681
682         * config/alpha/alpha.md (unop): Encode RB as $sp.
683
684 2001-12-17  Neil Booth  <neil@daikokuya.demon.co.uk>
685
686         * Makefile.in: Update dependencies.
687         * c-lang.c: Remove unnecessary includes.
688         (deferred_fns, start_cdtor, finish_cdtor, defer_fn): Move to
689         c-objc-common.c.
690         (finish_file): Move body to c_common_finish_file.
691         * c-objc-common.c: Include varray.h and ggc.h.
692         (deferred_fns, start_cdtor, finish_cdtor, defer_fn,
693         expand_deferred_fns, c_objc_common_finish_file): Moved from c-lang.c.
694         (c_objc_common_init): Initialize deferred function array.
695         * c-tree.h (c_objc_common_finish_file,
696         static_ctors, static_dtors): New.
697 objc:
698         * Make-lang.in: Update dependencies.
699         * objc/objc-act.c: Don't include varray.h.
700         (defer_fn, deferred_fns): Move to c-objc-common.c.
701         (objc_init): Similarly for initialization of it.
702         (finish_file): Move some to c-objc-common.c, use
703         c_objc_common_finish_file.
704
705 2001-12-17  Aldy Hernandez  <aldyh@redhat.com>
706
707         * config/rs6000/rs6000.c: Remove is_gpr_return_reg prototype.
708
709 2001-12-17  Neil Booth  <neil@daikokuya.demon.co.uk>
710
711         * doc/cppinternals.texi: Update.
712
713 Mon Dec 17 14:21:21 2001  Jeffrey A Law  (law@redhat.com)
714
715         * expmed.c (emit_store_flag): Extract updated comparison code
716         from the return value of compare_from_rtx.
717         * expr.c (do_store_flag): Similarly.
718
719 2001-12-17  Nick Clifton  <nickc@cambridge.redhat.com>
720
721         * caller-save.c (init_caller_save): Use MODE_BASE_REG_CLASS in
722         preference to BASE_REG_CLASS.
723         * recog.c (preprocess_constraints): Ditto.
724         * regclass.c (record_operand_costs, scan_one_insn, regclass,
725         record_reg_classes, record_address_regs): Ditto.
726         * regrename.c (scan_rtx_address, scan_rtx,
727         replace_oldest_value_addr, replace_oldest_value_mem): Ditto.
728         * reload.c (find_reloads, find_reloads_address,
729         find_reloads_address_1): Ditto.
730         * reload1.c (maybe_fix_stack_asms): Ditto.
731         * defaults.h (MODE_BASE_REG_CLASS): Provide default
732         definition.
733         * doc/tm.texi: Document MODE_BASE_REG_CLASS.
734
735         * config/arm/arm.h (MODE_BASE_REG_CLASS): Define.
736
737 2001-12-17  Joseph S. Myers  <jsm28@cam.ac.uk>
738
739         * doc/install.texi2html: Use -I $SOURCEDIR.
740
741         Separate user and internals manuals.
742         * Makefile.in (info, $(docdir)/gcc.info, dvi, gcc.dvi): Update
743         dependencies.
744         ($(docdir)/gccint.info, gccint.dvi): New targets.
745         (maintainer-clean, install-info, uninstall): Update.
746         * doc/.cvsignore: Add gccint.info*.
747         * doc/include/gcc-common.texi: New file.
748         * doc/gcc.texi: Use it.  Adjust to be a user-only manual.  Put
749         copyright notice in a macro.  Don't include ISBN unless FSFPRINT
750         is defined.
751         * doc/gccint.texi: New file.
752         * doc/configfiles.texi, doc/extend.texi, doc/invoke.texi,
753         doc/md.texi, doc/passes.texi, doc/tm.texi, doc/trouble.texi:
754         Update for separate user and internals manuals.
755
756 2001-12-17  Dale Johannesen  <dalej@apple.com>
757
758          * config/rs6000/rs6000.h:  CPP_CPU_SPEC: add mcpu=7400.
759          ASM_CPU_SPEC: Ditto.
760          RTX_COSTS: Fix timing info for 7450 multiply.
761          * config/rs6000/rs6000.md:  Fix timing info for 7450 imul.
762          Allow floats to be kept in int regs in movsf_low,
763          movsf_low_st (Darwin only)
764
765 2001-12-17  Aldy Hernandez  <aldyh@redhat.com>
766
767         * config/rs6000/rs6000.c (vrsave_operation): Recognize SETs in
768         parallel.
769         (is_gpr_return_reg): New.
770         (rs6000_emit_prologue): Call generate_set_vrsave with additional
771         argument.  Save only registers in the mask.  Attach
772         REG_FRAME_RELATED_EXPR note to altivec offsets.  Do not call
773         rs6000_frame_related when saving VRSAVE.
774         (rs6000_emit_epilogue): Call generate_set_vrsave with additional
775         argument.  Restore only registers in the mask.  Restore altivec
776         registers after we restore CR.
777         (generate_set_vrsave): New parameter epiloguep.  Generate unspec
778         sets instead of clobbers for call saved registers.
779         (altivec_frame_fixup): New.
780
781 2001-12-17  Richard Henderson  <rth@redhat.com>
782
783         * config/sparc/sparc.md (movdi_zero): Remove.
784         (movdi_insn_sp32_v9): New.
785
786 2001-12-17  Richard Henderson  <rth@redhat.com>
787
788         * cfgcleanup.c (outgoing_edges_match): Check for insn match with
789         a single outgoing edge too.
790
791 Mon Dec 17 18:27:52 CET 2001  Jan Hubicka  <jh@suse.cz>
792
793         * cfgrtl.c (redirect_edge_and_branch):  Do simplify abnormal
794         edges resulting from computed jump
795
796 Mon Dec 17 17:57:05 CET 2001  Jan Hubicka  <jh@suse.cz>
797
798         * Makefile.in (cfgcleanup.o): Add cselib.h dependancy.
799         * basic-block.h (CLEANUP_THREADING): New constant.
800         * cfgcleanup.c: Include cselib.h
801         (thread_jump, mark_effect): New functions.
802         (try_forward_edges): Do jump threading when asked for.
803         * jump.c (mark_modified_reg, save_regs, num_same_regs, modified_regs,
804         modified_mem, thread_jumps, rtx_equal_for-thread_p): Kill.
805         * rtl.h (thread_jumps, rtx_equal_for_thread_p): Kill.
806         * toplev.c (rest_of_compilation): Do now call thread_jumps; use
807         CLEANUP_THREAD instead.
808
809 2001-12-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
810
811         * sparc/linux.h (STARTFILE_SPEC): Fix typo in last change.
812
813 2001-12-17  Tom Rix  <trix@redhat.com>
814
815         * config/rs6000/rs6000.c (expand_block_move): Fix limits on max size
816         of bytes.
817
818 2001-12-17  Richard Sandiford  <rsandifo@redhat.com>
819
820         * target.h (asm_out.byte_op, asm_out.aligned_op, asm_out.unaligned_op,
821         asm_out.integer): New fields.
822         * target-def.h (TARGET_ASM_BYTE_OP, TARGET_ASM_ALIGNED_[HSDT]I_OP,
823         TARGET_ASM_UNALIGNED_[HSDT]I_OP, TARGET_ASM_INTEGER): New initialisers.
824         (TARGET_ASM_ALIGNED_INT_OP, TARGET_ASM_UNALIGNED_INT_OP): Collect
825         the individual initialisers together.
826         (TARGET_ASM_OUT): Add the new initialisers.
827         * output.h (assemble_integer): Return bool.
828         (integer_asm_op): Declare.
829         (default_assemble_integer): Declare.
830         (assemble_aligned_integer): New interface to assemble_integer.
831         * varasm.c (integer_asm_op): New function to select pseudo-op.
832         (default_assemble_integer): Default implementation of asm_out.integer.
833         (assemble_integer): Use the new target hook.  Split objects into
834         words or bytes if the target hook fails.  Return bool.
835         * doc/tm.texi (ASM_OUTPUT_CHAR, ASM_OUTPUT_BYTE, ASM_OUTPUT_SHORT,
836         ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_OUTPUT_QUADRUPLE_INT,
837         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
838         UNALIGNED_DOUBLE_INT_ASM_OP): Undocument.
839         Document new target hooks.
840
841         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Use integer_asm_op.
842         * dwarf2asm.c (unaligned_integer_asm_op): Remove.
843         (dw2_assemble_integer): New.
844         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
845         dw2_asm_output_pcrel, dw2_asm_output_addr, dw2_asm_output_addr_rtx,
846         dw2_asm_output_encoded_addr_rtx): Use it.
847         (dw2_asm_output_nstring): Use assemble_integer for the null terminator.
848         (dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128): Use
849         integer_asm_op to get the byte pseudo-op.  Use assemble_integer
850         if it returns NULL.
851         * dwarf2asm.h (dw2_assemble_integer): Declare.
852         * dwarfout.c: Include dwarf2asm.h.  Use dwarf2 functions for the
853         default implementation of most macros.
854         (output_unsigned_leb128): Use dw2_asm_output_data.
855         (output_signed_leb128, dwarfout_source_line): Likewise.
856         (output_reg_number): Use dw2_assemble_integer.
857         (generate_macinfo_entry): Separate the type and offset arguments.
858         Use assemble_integer to write the value.
859         (dwarfout_start_source_file): Update generate_macinfo_entry usage.
860         (dwarfout_end_source_file, dwarfout_define, dwarfout_undef): Likewise.
861         * final.c (output_addr_const): Don't put brackets round a subtracted
862         symbol value or ".".
863         * halfpic.c (half_pic_finish): Use assemble_aligned_integer.
864
865         * config/1750a/1750a.c (assemble_integer_1750a): New,
866         * config/alpha/alpha.h (literal_section): Avoid ASM_OUTPUT_INT.
867         * config/arc/arc.c (arc_assemble_integer): New.
868         * config/arc/arc.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
869         * config/arm/arm.c (arm_poke_function_name): Likewise.
870         (arm_assemble_integer): New, extracted from...
871         * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): ...here, now removed.
872         (ARM_TRAMPOLINE_TEMPLATE, ARM_FUNCTION_PROFILER): Avoid ASM_OUTPUT_INT.
873         (ARM_FUNCTION_PROFILER): Likewise.
874         * config/avr/avr-protos.h (asm_output_byte): Remove.
875         (asm_output_char, asm_output_short): Remove.
876         * config/avr/avr.c (avr_assemble_integer): New.
877         (asm_output_byte, asm_output_char, asm_output_short): Remove.
878         * config/clipper/clipper.h (ASM_LONG): Remove.
879         * config/dsp16xx/dsp16xx-protos.h (asm_output_long): Remove.
880         * config/dsp16xx/dsp16xx.c (asm_output_long): Remove.
881         * config/elxsi/elxsi.c (elxsi_assemble_integer): New.
882         * config/i370/i370.c (i370_hlasm_assemble_integer): New.
883         * config/i370/i370.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_SHORT.
884         (ASM_BYTE, ASM_SHORT, ASM_LONG): Delete.
885         * config/i386/att.h, (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
886         * config/i386/linux.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Use
887         ASM_LONG instead of UNALIGNED_INT_ASM_OP.
888         * config/i386/sco5.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
889         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
890         * config/i386/sysv4.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Use
891         ASM_LONG instead of UNALIGNED_INT_ASM_OP.
892         * config/i860/fx2800.h (ASM_FILE_END): Avoid ASM_LONG.
893         * config/i860/i860.c (i860_output_function_epilogue): Likewise.
894         * config/i860/i860.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
895         (ASM_SHORT, ASM_LONG): Undefine.
896         * config/i860/paragon.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
897         * config/i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
898         * config/i960/i960.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
899         * config/ia64/ia64.c (ia64_assemble_integer): New.
900         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use integer_asm_op.
901         (ASM_OUTPUT_DWARF_PCREL): Likewise.
902         * config/m68hc11/m68hc11.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
903         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_VEC_ELT): Avoid ASM_LONG.
904         (ASM_SHORT, ASM_LONG): Remove.
905         * config/m68k/m68k.h (INT_OP_GROUP): New macro.
906         (INT_OP_STANDARD, INT_OP_DOT_WORD, INT_OP_NO_DOT, INT_OP_DC): New
907         macros, the allowed values for INT_OP_GROUP.
908         * config/m68k/amix.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP
909         * config/m68k/atari.h (ASM_OUTPUT_ASCII): Likewise
910         * config/m68k/m68kelf.h (ASM_OUTPUT_ASCII): Likewise
911         * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP): Remove.
912         (INT_OP_GROUP): Define to INT_OP_NO_DOT.
913         * config/m68k/dpx2.h (ASM_LONG): Undefine.
914         (INT_OP_GROUP): Define to INT_OP_DC.
915         * config/m68k/dpx2g.h (ASM_LONG): Undefine.
916         * config/m68k/hp320.h (INT_OP_GROUP): Define to INT_OP_NO_DOT.
917         * config/m68k/lynx.h (ASM_LONG): Undefine.
918         * config/m68k/dpx2g.h (ASM_LONG): Undefine.
919         * config/m68k/m68kelf.h (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
920         * config/m68k/m68kv4.h (ASM_OUTPUT_ASCII): Likewise.
921         (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_*.
922         * config/m68k/mot3300.h (INT_OP_GROUP): Define to INT_OP_STANDARD
923         for GAS and INT_OP_NO_DOT otherwise.
924         (ASM_CHAR, ASM_BYTE, ASM_SHORT, ASM_LONG): Remove.
925         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
926         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Avoid ASM_LONG.
927         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
928         * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP): Remove.
929         (INT_OP_GROUP): Define to INT_OP_STANDARD.
930         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
931         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Avoid LONG_ASM_OP.
932         (ASM_OUTPUT_ASCII): Avoid BYTE_ASM_OP.
933         * config/m68k/tower-as.h (ASM_LONG): Remove.
934         (INT_OP_GROUP): Define to INT_OP_NO_DOT.
935         * config/m88k/m88k.c (output_tdesc): Avoid ASM_LONG.
936         * config/m88k/m88k.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
937         (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Avoid ASM_LONG.
938         * config/mips/iris5.h (TARGET_IRIX5): Define.
939         * config/mips/mips.c (mips_assemble_integer): New.
940         * config/mips/sni-svr4.h (ASM_LONG): Undefine.
941         * config/mmix/mmix-protos.h (mmix_asm_output_double_int): Remove.
942         * config/mmix/mmix.c (mmix_assemble_integer): New.
943         (mmix_asm_output_double_int): Remove.
944         (mmix_print_operand): Call mmix_output_octa directly.
945         * config/mmix/mmix.h (ASM_LONG): Remove.
946         * config/ns32k/ns32k.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_INT.
947         * config/pa/pa.c (pa_assemble_integer): New.
948         (pa_override_options): Only use aligned DI ops on 64-bit targets.
949         Only use the unaligned ops if TARGET_GAS.
950         * config/pdp11/pdp11.c (pdp11_assemble_integer): New.
951         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Avoid ASM_OUTPUT_SHORT.
952         * config/pj/pj.h (ASM_LONG): Undefine.
953         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Undefine.
954         * config/rs6000/rs6000.c (rs6000_assemble_integer): New, mostly
955         extracted from ASM_OUTPUT_INT in sysv4.h.  Use in_text_section()
956         and in_toc_section() rather than the in_section variable.
957         (rs6000_override_options): Only use DI ops when TARGET_POWERPC64.
958         * config/rs6000/sysv4.h (TOC_SECTION_FUNCTION): Add in_toc_section().
959         (RELOCATABLE_NEEDS_FIXUP): Define.
960         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Change space to tab.
961         * config/s390/linux.h (ASM_SHORT, ASM_LONG, ASM_QUAD): Remove.
962         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Use integer_asm_op
963         to get the word directive.
964         (ASM_OUTPUT_ASCII): Avoid ASM_BYTE_OP.
965         * config/s390/s390.c (s390_assemble_integer): New.
966         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Use
967         integer_asm_op to get the word directive.
968         * config/sparc/sol2.h (ASM_SHORT, ASM_LONG): Remove.
969         * config/sparc/sparc-protos.h (output_double_int): Remove.
970         * config/sparc/sparc.c (output_double_int): Move to...
971         (sparc_assemble_integer): ...this new function.
972         (sparc_override_options): Only use .uaxword if TARGET_ARCH64.
973         * config/sparc/sparc.h (ASM_SHORT, ASM_LONG, ASM_LONGLONG): Remove.
974         * config/sparc/sysv4.h (ASM_LONG): Remove.
975         (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Avoid
976         ASM_LONG.
977         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Use assemble_aligned_integer.
978         * config/we32k/we32k.h (TRAMPOLINE_TEMPLATE): Likewise.
979
980         * config/1750a/1750a.c, config/a29k/a29k.c, config/alpha/alpha.c,
981         config/arc/arc.c, config/arm/arm.c, config/avr/avr.c, config/c4x/c4x.c,
982         config/clipper/clipper.c, config/convex/convex.c, config/cris/cris.c,
983         config/d30v/d30v.c, config/dsp16xx/dsp16xx.c, config/elxsi/elxsi.c,
984         config/fr30/fr30.c, config/h8300/h8300.c, config/i370/i370.c,
985         config/i386/i386.c, config/i860/i860.c, config/i960/i960.c,
986         config/ia64/ia64.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
987         config/m68k/m68k.c, config/m88k/m88k.c, config/mips/mips.c,
988         config/mmix/mmix.c, config/mn10200/mn10200.c, config/mn10300/mn10300.c,
989         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
990         config/sh/sh.c, config/sparc/sparc.c, config/stormy16/stormy16.c,
991         config/v850/v850.c, config/vax/vax.c, config/we32k/we32k.c
992         (TARGET_ASM_BYTE_OP, TARGET_ASM_ALIGNED_HI_OP,
993         TARGET_ASM_ALIGNED_SI_OP, TARGET_ASM_ALIGNED_DI_OP,
994         TARGET_ASM_UNALIGNED_HI_OP, TARGET_ASM_UNALIGNED_SI_OP,
995         TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_INTEGER): Redefine as
996         appropriate.
997
998         * config/defaults.h, config/darwin.h, config/elfos.h, config/svr3.h,
999         config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
1000         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
1001         config/clipper/clipper.h, config/convex/convex.h, config/cris/cris.h,
1002         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
1003         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
1004         config/i386/bsd.h, config/i386/djgpp.h, config/i386/i386.h,
1005         config/i386/sco5.h, config/i386/sol2.h, config/i386/sun386.h,
1006         config/i860/i860.h, config/i960/i960.h, config/ia64/ia64.h,
1007         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/auxas.h,
1008         config/m68k/dpx2.h, config/m68k/hp320.h, config/m68k/m68k.h,
1009         config/m68k/mot3300.h, config/m68k/sgs.h, config/m68k/tower-as.h,
1010         config/m88k/m88k.h, config/mcore/mcore-elf.h, config/mcore/mcore.h,
1011         config/mips/iris5.h, config/mips/iris6.h, config/mips/mips.h,
1012         config/mmix/mmix.h, config/mn10200/mn10200.h, config/mn10300/mn10300.h
1013         config/ns32k/encore.h, config/ns32k/ns32k.h, config/pa/pa-64.h,
1014         config/pa/pa.h, config/pdp11/pdp11.h, config/pj/pj.h,
1015         config/romp/romp.h, config/rs6000/linux64.h, config/rs6000/rs6000.h,
1016         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/linux.h,
1017         config/sh/sh.h, config/sparc/linux64.h, config/sparc/sol2.h,
1018         config/sparc/sp64-elf.h, config/sparc/sparc.h, config/sparc/sysv4.h,
1019         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
1020         config/we32k/we32k.h (ASM_OUTPUT_CHAR, ASM_OUTPUT_BYTE, ASM_BYTE_OP,
1021         ASM_BYTE, ASM_OUTPUT_SHORT, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT,
1022         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1023         UNALIGNED_DOUBLE_INT_ASM_OP): Undefine, where defined.
1024
1025 2001-12-17  Stan Shebs  <shebs@apple.com>
1026
1027         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
1028         (STACK_BOUNDARY): Remove definition.
1029         (CPP_PREDEFINES): Define __POWERPC__.
1030
1031 2001-12-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1032
1033         * doc/c-tree.texi (Trees): Only refer to GCC.
1034
1035 2001-12-17  Andreas Jaeger  <aj@suse.de>
1036
1037         * c-common.def: Fix typo in comment.
1038
1039 2001-12-16  David O'Brien  <obrien@FreeBSD.org>
1040
1041         * config.gcc (sparc64-*-freebsd*): Add target.
1042         * config/sparc/freebsd.h: New file.
1043         * config/sparc/sparc.h (LIB_SPEC, LINK_SPEC): Don't define.
1044         * config/sparc/sunos4.h (LIB_SPEC, LINK_SPEC): Define.
1045         * config/sparc/sysv4.h (CPP_PREDEFINES): Undefine before defining.
1046
1047 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
1048
1049         * config/rs6000/rs6000.c (rs6000_legitimize_address): Force both
1050         PLUS operands into registers for altivec mode.
1051
1052 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
1053
1054         * builtins.c (apply_args_size): Change regno to unsigned.
1055
1056 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
1057
1058         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): Change
1059         ALTIVEC_ARG_MAX_REG to ALTIVEC_ARG_NUM_REG.
1060
1061 2001-12-16  Zack Weinberg  <zack@codesourcery.com>
1062
1063         * c-typeck.c (error_init, pedwarn_init, warning_init): Call
1064         gettext on argument before printing.
1065
1066         * fold-const.c (negate_expr): Always call fold on new
1067         NEGATE_EXPR.
1068
1069 2001-12-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1070
1071         * c-common.def (COMPOUND_LITERAL_EXPR): Contain a DECL_STMT, not
1072         a DECL directly.
1073         * c-common.h (COMPOUND_LITERAL_EXPR_DECL_STMT): New.
1074         (COMPOUND_LITERAL_EXPR_DECL): Adjust definition.
1075         * c-decl.c (build_compound_literal): Put the decl inside a
1076         DECL_STMT.
1077         * doc/c-tree.texi (COMPOUND_LITERAL_EXPR): Update documentation.
1078         Fixes PR c/5105.
1079
1080 2001-12-16  Aldy Hernandez  <aldyh@redhat.com>
1081
1082         * config.gcc: Add powerpc-*-eabisimaltivec*.
1083
1084 2001-12-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1085
1086         * c-common.c, c-common.h (back_end_hook): Remove.
1087         * c-lang.c (finish_file): Remove back_end_hook.
1088
1089 Sun Dec 16 13:13:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1090
1091         * expr.c (highest_pow2_factor, case INTEGER_CST): Fix error in
1092         last change.
1093
1094 2001-12-16  Richard Henderson  <rth@redhat.com>
1095
1096         * toplev.c (parse_options_and_default_flags): Don't enable
1097         flag_cprop_registers at -O1.
1098
1099 2001-12-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1100
1101         * avr.c (avr_simplify_comparision_p, adjust_insn_length,
1102         mask_one_bit_p, output_reload_insisf): Don't use the 'U' suffix.
1103         * avr.h (reg_class): Likewise.
1104         * avr.md: Likewise.
1105         * mcore.c (try_constant_tricks, mcore_byte_offset,
1106         mcore_halfword_offset): Likewise.
1107         * sh.c (shl_sext_kind, gen_block_redirect, split_branches): Likewise.
1108         * v850.c (not_power_of_two_operand): Likewise.
1109
1110         * clipper/clix.h (ASM_OUTPUT_ASCII): Avoid signed/unsigned
1111         warnings.
1112         * convex.h (ASM_OUTPUT_ASCII): Likewise.
1113         * i370.h (ASM_OUTPUT_ASCII): Likewise.
1114         * i386/att.h (ASM_OUTPUT_ASCII): Likewise.
1115         * i386/i386-interix.h (ASM_OUTPUT_ASCII): Likewise.
1116         * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
1117         * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
1118         * i386/sco5.h (ASM_OUTPUT_ASCII): Likewise.
1119         * i386/sun386.h (ASM_OUTPUT_ASCII): Likewise.
1120         * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
1121         * i860/bsd.h (ASM_OUTPUT_ASCII): Likewise.
1122         * m68k/3b1.h (ASM_OUTPUT_ASCII): Likewise.
1123         * m68k/amix.h (ASM_OUTPUT_ASCII): Likewise.
1124         * m68k/atari.h (ASM_OUTPUT_ASCII): Likewise.
1125         * m68k/crds.h (ASM_OUTPUT_ASCII): Likewise.
1126         * m68k/hp320.h (ASM_OUTPUT_ASCII): Likewise.
1127         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Likewise.
1128         * m68k/mot3300.h (ASM_OUTPUT_ASCII): Likewise.
1129         * m68k/sgs.h (ASM_OUTPUT_ASCII): Likewise.
1130         * m68k/tower-as.h (ASM_OUTPUT_ASCII): Likewise.
1131         * mips/bsd-5.h (ASM_OUTPUT_ASCII): Likewise.
1132         * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
1133         * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
1134         * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
1135         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
1136         * vax/vaxv.h (ASM_OUTPUT_ASCII): Likewise.
1137         * we32k/we32k.h (ASM_OUTPUT_ASCII): Likewise.
1138
1139         * i386/uwin.h (MD_STARTFILE_PREFIX): Avoid redefinition warnings.
1140         * interix.h (TARGET_MEM_FUNCTIONS): Likewise.
1141         * psos.h (CPP_PREDEFINES): Likewise.
1142         * rs6000/linux64.h (ROUND_TYPE_ALIGN): Likewise.
1143         * rs6000/xcoff.h (RS6000_MCOUNT, RS6000_ITRUNC, RS6000_UITRUNC,
1144         ASM_OUTPUT_EXTERNAL): Likewise.
1145         * sparc/liteelf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1146         Likewise.
1147         * sparc/sp64-elf.h (UNALIGNED_DOUBLE_INT_ASM_OP): Likewise.
1148         * sparc/sp86x-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1149         Likewise.
1150         * sparc/sunos4.h (SUNOS4_SHARED_LIBRARIES): Likewise.
1151
1152         * c-lex.c (lex_number): Use ISXDIGIT/hex_value.
1153         * vax/xm-vms.h (FILE_NAME_NONDIRECTORY): Use ISUPPER/TOLOWER.
1154         * fold-const.c (real_hex_to_f): Use hex_value.
1155         * real.c (asctoeg): Use hex_value & ISXDIGIT.
1156         * toplev.c (toplev_main): Call hex_init.
1157         * tradcpp.c (main): Call hex_init.
1158
1159         * nextstep-protos.h: New file.
1160         * nextstep.c: Include "rtl.h", "output.h" & "tm_p.h".
1161         * nextstep.h (INCLUDE_DEFAULTS): Delete LOCAL_INCLUDE_DIR and
1162         STANDARD_INCLUDE_DIR from the CROSS_COMPILE clause.
1163         (nextstep_asm_out_constructor, nextstep_asm_out_destructor,
1164         handle_pragma): Move prototypes to nextstep-protos.h.
1165         * config.gcc (i[34567]86-next-*, m68k-next-nextstep2*,
1166         m68k-next-nextstep[34]*): Append nextstep-protos.h to tm_p_file.
1167
1168 2001-12-16  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1169
1170         PR other/3725
1171         * configure.in: Add AC_SUBST(target_alias).
1172         * configure: Regenerated.
1173
1174 2001-12-15  Richard Henderson  <rth@redhat.com>
1175
1176         * config/alpha/alpha.md (sibcall_osf_1_er): New.
1177         (sibcall_value_osf_1_er): New.
1178
1179 2001-12-15  Dan Nicolaescu  <dann@ics.uci.edu>
1180
1181         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Rename from
1182         addrs_ok_for_ldd_peep_withmem; take MEMs as parameters, not
1183         addrs; eliminate restriction of only using fp and sp as base
1184         registers.
1185         * config/sparc/sparc-protos.h: Update.
1186         * config/sparc/sparc.md (movdi): Use TARGET_V9 not TARGET_ARCH64.
1187         (*cmp_cc_set, *cmp_ccx_set64, *movdi_zero): New insns derived
1188         from old define_peepholes.
1189         Convert all the ldd/std peepholes to peephole2.
1190
1191 2001-12-15  Ulrich Weigand  <uweigand@de.ibm.com>
1192
1193         * s390.md (prologue, epilogue, *return_si, *return_di): New.
1194         s390.c (find_unused_clobbered_reg, s390_frame_info,
1195         save_fpr, restore_fpr, s390_emit_prologue, s390_emit_epilogue): New.
1196         s390-protos.h (s390_emit_prologue, s390_emit_epilogue): Declare.
1197         s390.c (s390_arg_frame_offset): Use s390_frame_info.
1198         (leaf_function_flag, cur_is_leaf_function,
1199         save_fprs, restore_fprs, force_const_mem_late): Remove.
1200         (s390_function_prologue, s390_function_epilogue): Mostly remove.
1201         s390.md (lit): New.  Uses ...
1202         s390.c (s390_output_constant_pool): ... this, so adapt and make global.
1203         s390-protos.h (s390_output_constant_pool): Declare.
1204         s390.md (load_multiple, store_multiple): Allow use after reload.
1205         s390.c (load_multiple_operation, store_multiple_operation): Likewise.
1206         s390.h (INCOMING_FRAME_SP_OFFSET): Define.
1207         s390.h (CALL_REALLY_USED_REGISTERS): Define.
1208         config/s390/linux64.h (CALL_USED_REGISTERS): Remove, now handled ...
1209         s390.h (CONDITIONAL_REGISTER_USAGE): ... here.
1210         s390.c (s390_sr_alias_set): New global variable, initialized ...
1211         (override_options): ... here.  New.
1212         s390-protos.h (override_options): Declare.
1213         s390.h (OVERRIDE_OPTIONS): Call it.
1214         s390.c (s390_function_profiler): New.
1215         s390-protos.h (s390_function_profiler): Declare.
1216         s390.h (FUNCTION_PROFILER): Call it.
1217         s390.c (s390_profile): Remove.
1218
1219         * s390.c (reg_used_in_mem_p): PC reload counts as memory access.
1220         (addr_generation_dependency_p): Consider literal pool register loads.
1221         (s390_adjust_priority): Do not schedule load_multiple.
1222         s390.md (attribute "type"): Define some additional types.
1223         (function_unit "integer"): Adapt.
1224         (many insns): Adapt "type" attribute setting.
1225
1226         * s390.c (general_s_operand, s_imm_operand): New.
1227         (s_operand): Remove old definition, call general_s_operand instead.
1228         s390-protos.h (s_imm_operand): Declare.
1229         s390.c (base_n_index_p, r_or_s_operand, r_or_s_or_im8_operand,
1230         r_or_x_or_im16_operand, r_or_im8_operand): Remove.
1231         s390-protos.h (r_or_s_operand, r_or_s_or_im8_operand,
1232         r_or_x_or_im16_operand, r_or_im8_operand): Likewise.
1233         s390.h (PREDICATE_CODES): Add s_imm_operand, remove r_or_s*_operand.
1234         s390.md (many insns): Rework insn predicates.
1235
1236         * s390.c (legitimate_pic_operand_p, legitimate_constant_p): Accept all
1237         non-symbolic constants.  Reload will force them because of ...
1238         (s390_preferred_reload_class): ... this.  New.
1239         s390-protos.h (s390_preferred_reload_class): Declare.
1240         s390.h (PREFERRED_RELOAD_CLASS): Call it.
1241         s390.md (movdi, movsi, movdf, movsf, *reload_la_64 splitters,
1242         *reload_la_31 splitters): Handle constants after reload.
1243         (many insns): no longer force all constants immediately.
1244         s390.c (legitimate_reload_constant_p): New helper routine.
1245         s390-protos.h (legitimate_reload_constant_p): Declare.
1246         s390.c (print_operand): Clean up CONST_INT case, add CONST_DOUBLE case.
1247
1248         * s390.h (FIRST_PSEUDO_REGISTER, FRAME_POINTER_REGNUM,
1249         HARD_FRAME_POINTER_REGNUM, REGISTER_NAMES): Add virtual frame pointer.
1250         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Update.
1251         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Likewise.
1252         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
1253         (DWARF_FRAME_REGISTERS): Define.
1254         s390.c (regclass_map): Add virtual frame pointer.
1255         (legitimate_la_operand_p): Allow use of virtual frame pointer.
1256         s390.md (*la_ccclobber, *addaddr_ccclobber): New.
1257         (addaddr, addsi_64): Delete.
1258
1259         * s390.h (HARD_REGNO_MODE_OK): Allow SImode and DImode values in
1260         floating point registers.
1261         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Define.
1262         (ADDR_FP_REGS, GENERAL_FP_REGS): New register classes.
1263         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
1264
1265         * s390.md (movti): Replace multi-insn output with splitters.
1266         (movdi_31, movdf_31): Likewise.
1267         (movti_ss, movdi_ss, movsi_ss, movdf_ss, movsf_ss): New.
1268         (movdi_lhi, movdi_lli, movdi_larl, movsi_lhi, movsi_lli): New.
1269         (movdi_64, movdi_31, movsi, movdf_64, movdf_31): Adapt.
1270         (movdf_soft_64, movdf_soft_31, movsf_soft): Remove.
1271         (movsf_64, movsf_31): Remove, replace by ...
1272         (movsf): ... this.
1273         (movqi_64): Use lhi instead of llill.
1274         (*movstrictqi, *movstricthi): Don't use (strict_low_part (mem)).
1275
1276         * s390.md (extendsidi2, *extendsidi2, extendhidi2, *extendhidi2,
1277         extendqidi2, extendhisi2, *extendhisi2, extendqisi2,
1278         extendqihi2 and associated splitters): Reworked.
1279         (zero_extendsidi2, zero_extendsidi2, *zero_extendsidi2,
1280         zero_extendhidi2, *zero_extendhidi2, zero_extendqidi2,
1281         zero_extendqidi2, *zero_extendqidi2, zero_extendhisi2,
1282         *zero_extendhisi2_64, zero_extendhisi2_31, zero_extendqisi2,
1283         *zero_extendqisi2_64, *zero_extendqisi2_mem_31,
1284         zero_extendqisi2_reg_31, zero_extendqihi2, *zero_extendqisi2_64,
1285         zero_extendqihi2, zero_extendqihi2_64, zero_extendqihi2_31,
1286         and associated splitters): Likewise.
1287         (*sethighqisi, *sethighhisi, *sethighqidi_64, *sethighqidi_31
1288         and associated splitters): New.
1289         (truncdisi2, truncdihi2, truncdiqi2, truncsihi2, do_truncsihi2,
1290         *truncsihi2_64, truncsiqi2, trunchiqi2): Remove.
1291         (ashlhi3, ashrhi3, lshrhi3, abshi3): Remove.
1292         s390.h (PROMOTE_PROTOTYPES): Remove.
1293         config/s390/linux64.h (PROMOTE_PROTOTYPES): Likewise.
1294
1295         * s390.md (muldi3): Delete, use instead ...
1296         (mulsidi3): ... this.
1297         (*muldi3_64): Rename to muldi3.
1298         (mulsi_6432): Fix template.
1299         (divdi3, moddi3): Delete, replace by ...
1300         (divmoddi4): ... this.
1301         (divmodtidi3): Fix template.
1302         (divmodtisi3): New.
1303         (udivdi3, umoddi3): Delete, replace by ...
1304         (udivmoddi4): ... this.
1305         (udivmodtidi3): Fix template.
1306         (divsi3, modsi3): Delete, replace by ...
1307         (divmodsi4): ... this.
1308         (divmoddisi3): Fix template.
1309         (udivsi3, umodsi3): Adapt.
1310
1311         * s390.md (anddi3): Remove SS alternative, use instead ...
1312         (anddi3_ss, anddi3_ss_inv): ... these.
1313         (anddi3_ni): New.
1314         (andsi3*, andhi3*, andqi3*): Likewise.
1315         (iordi3): Remove SS alternative, use instead ...
1316         (iordi3_ss, iordi3_ss_inv): ... these.
1317         (iordi3_oi): New.
1318         (iorsi3*, iorhi3*, iorqi3*): Likewise.
1319         (iordi3_cc, iordi3_cconly, iorsi3_cc, iorsi3_cconly): New.
1320         (xordi3): Remove SS alternative, use instead ...
1321         (xordi3_ss, xordi3_ss_inv): ... these.
1322         (xordi3_oi): New.
1323         (xorsi3*, xorhi3*, xorqi3*): Likewise.
1324         (xordi3_cc, xordi3_cconly, xorsi3_cc, xorsi3_cconly): New.
1325         (one_cmpldi2, one_cmplsi2, one_cmplhi2, one_cmplqi2):
1326         Expand to XOR with -1.
1327         (*one_cmpldi2, *one_cmplsi2, *one_cmplhi2): Remove.
1328         (cmpdi_tm): Delete, replace by ...
1329         (cmpdi_tm_reg, cmpdi_tm_mem): ... these.
1330         (cmpsi_cct): Delete, replace by ...
1331         (cmpsi_tm_reg, cmpsi_tm_mem): ... these.
1332         (cmpdi_tm2, cmpsi_tm2): Improve.
1333         (cmphi_tm_sub, cmpqi_tm_sub, cmpqi_tm2, cmpqi_tm): New.
1334         s390.c (s390_single_hi, s390_extract_hi,
1335         s390_single_qi, s390_extract_qi): New helper routines.
1336         s390-protos.h (s390_single_hi, s390_extract_hi,
1337         s390_single_qi, s390_extract_qi): Declare.
1338         s390.c (tmxx_operand, const1_operand): Remove.
1339         s390-protos.h (tmxx_operand, const1_operand): Likewise.
1340         s390.h (PREDICATE_CODES): Likewise.
1341
1342         * s390.md (sqrtdf2, sqrtsf2): New.
1343
1344         * s390.h (CRT_CALL_STATIC_FUNCTION): Define.
1345         (check_and_change_labels): Remove section-change special case.
1346
1347         * s390.h (RETURN_ADDR_RTX): Fix use of __builtin_return_address
1348         in leaf functions.  Needs ...
1349         (DYNAMIC_CHAIN_RTX):  ... this.  New.
1350
1351         * s390.c (emit_pic_move): Don't generate pseudos if no_new_pseudos.
1352
1353         * s390.md (movstrdix_64, movstrsix_31, movstrdi_64, movstrsi_31,
1354         clrstrsi_64, clrstrsi_31, cmpstr_64, cmpstr_31): Do not clobber
1355         input operands using a match_dup clause.
1356         (movstrdi, movstrsi, clrstrdi, clrstrsi, cmpstrdi, cmpstrsi): Adapt.
1357
1358         * s390.md (floatdidf2, floatdisf2, floatsidf2, floatsidf2_ieee,
1359         floatsisf2, floatsisf2_ieee): Add missing CC clobber.
1360
1361         * s390.md (floatsidf2_ibm): Use correct operand.
1362
1363         * s390.md (fixuns_truncdfdi2, fixuns_truncdfsi2, fix_truncdfsi2,
1364         fixuns_truncsfdi2, fixuns_truncsfsi2, floatsidf2): Remove use of
1365         non-portable constants.
1366         s390.c (s390_gen_rtx_const_DI): New helper routine.
1367         s390-protos.h (s390_gen_rtx_const_DI): Declare.
1368
1369         * s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Fix alignment.
1370
1371         * config/s390/linux.h (ASM_OUTPUT_SHORT, ASM_OUTPUT_CHAR,
1372         ASM_OUTPUT_BYTE): Clean up assembly output.
1373         (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGN): Remove duplicate definitions.
1374         (ASM_OUTPUT_ASCII): Remove.
1375
1376         * config/s390/t-linux (CRTSTUFF_T_CFLAGS_S): Define.
1377
1378 2001-12-15  Zack Weinberg  <zack@codesourcery.com>
1379
1380         * unwind-dw2-fde-glibc.c: #define _Unwind_Find_FDE to itself
1381         before including unwind-dw2-fde.c, if we are not using the
1382         special code in this file.
1383
1384 2001-12-15  Richard Henderson  <rth@redhat.com>
1385
1386         * config/alpha/alpha.h (TARGET_SWITCHES): Turn on
1387         MASK_EXPLICIT_RELOCS if the assembler supports it.
1388         * configure.in (HAVE_AS_EXPLICIT_RELOCS): New.
1389         * configure, config.in: Rebuild.
1390
1391 Sat Dec 15 17:53:03 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1392
1393         * calls.c (emit_call_1): If ECF_SP_DEPRESSED, pretend have adjusted
1394         for rounded_stack_size.
1395
1396 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1397
1398         * c-typeck.c, config/i386/i386.h, config/mcore/mcore.h,
1399         config/ns32k/ns32k.h, config/rs6000/sysv4.h, fold-const.c,
1400         toplev.c, cppinit.c, cppmacro.c, gcc.c: Use "built-in" and
1401         "bit-field" spellings in messages.
1402         * po/gcc.pot: Regenerate.
1403
1404 2001-12-15  Joseph S. Myers  <jsm28@cam.ac.uk>
1405
1406         * gcc.c, config/fr30/fr30.c, config/v850/v850-c.c, toplev.c: Use
1407         American spelling in messages.
1408         * po/gcc.pot: Regenerate.
1409
1410 2001-12-15  Kazu Hirata  <kazu@hxi.com>
1411
1412         * config/h8300/h8300.md: Adjust whitespacing.  Remove
1413         constraints from expanders.  Replace \@ with @.
1414
1415 2001-12-15  Richard Earnshaw  <rearnsha@arm.com>
1416
1417         * arm/unknown-elf.h (CPP_PREDEFINES): Add a suitable default.
1418
1419 2001-12-15  Ulrich Weigand  <uweigand@de.ibm.com>
1420
1421         * regrename.c (copyprop_hardreg_forward): Do not keep register
1422         value data live across abnormal call or eh egdes.
1423
1424 Sat Dec 15 08:29:45 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1425
1426         * expr.c (highest_pow2_factor, case INTEGER_CST): Return
1427         BIGGEST_ALIGNMENT for 0.
1428
1429 Sat Dec 15 14:13:03 CET 2001  Jan Hubicka  <jh@suse.cz>
1430
1431         * predict.def (PRED_NORETURN): Make probabilities match reality.
1432         (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL, PRED_ERROR_RETURN):
1433         Likewise.
1434
1435 2001-12-15  Jakub Jelinek  <jakub@redhat.com>
1436
1437         * configure.in: Check for ld.
1438         (HAVE_LD_EH_FRAME_HDR): Define if ld supports --eh-frame-hdr option.
1439         * configure, config.in: Rebuilt.
1440         * config.gcc: Add crtbeginT.o to extra_parts where needed.
1441         * config/t-linux (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde-glibc
1442         frame unwinding on Linux.
1443         * config/t-linux-gnulibc1 (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde
1444         frame unwinding.
1445         * config/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1446         (LINK_EH_SPEC): Define.
1447         * config/i386/gnu.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1448         * config/ia64/linux.h (STARTFILE_SPEC, LINK_EH_SPEC): Define.
1449         * config/ia64/fde-glibc.c (_Unwind_IteratePhdrCallback): Don't
1450         iterate further if pc falls into current library, but fde was not
1451         found.
1452         * config/sparc/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static
1453         if using glibc.
1454         (LINK_EH_SPEC): Define.
1455         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64):
1456         Use crtbeginT.o for -static.
1457         (LINK_EH_SPEC): Define.
1458         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1459         * Makefile.in (crtbeginT.o): Add rule.
1460         * gcc.c (init_gcc_specs): For -static-libgcc, use -lgcc -lgcc_eh.
1461         If neither -static-libgcc nor -shared-libgcc is passed and -shared,
1462         use -lgcc if LINK_EH_SPEC is defined and -lgcc_s -lgcc if not.
1463         If none of the above switches are passed, use -lgcc -lgcc_eh.
1464         (init_spec): If LINK_EH_SPEC is defined, prepend it to link_spec.
1465         * mklibgcc.in: Don't include LIB2ADDEH objects into libgcc.a if
1466         creating libgcc_s.so, put them into separate libgcc_eh.a instead.
1467         * unwind-dw2-fde.c: Don't include any headers if this file
1468         is included from other .c file.
1469         * unwind-dw2-fde-glibc.c: New file.
1470         * crtstuff.c (USE_PT_GNU_EH_FRAME, USE_EH_FRAME_REGISTRY): Define.
1471         Use it instead of EH_FRAME_SECTION_NAME where appropriate.
1472
1473 2001-12-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1474
1475         * builtins.c (expand_builtin_memcmp): Mark parameter with
1476         ATTRIBUTE_UNUSED.
1477         * cfgcleanup.c (insns_match_p): Likewise.
1478         * regrename.c (mode_change_ok): Likewise.
1479         * gcc.c (execute): Const-ify.
1480
1481 2001-12-14  Aldy Hernandez  <aldyh@redhat.com>
1482
1483         * c-parse.in (typename): Do not split attributes.
1484         Remove unsupported attributes warning.
1485
1486         * c-decl.c (groktypename): Apply attributes.
1487
1488 2001-12-14  Richard Henderson  <rth@redhat.com>
1489
1490         * config/ia64/ia64.c (spill_restore_mem): Mark iterator
1491         initialization as possibly dead.
1492
1493 2001-12-14  Richard Henderson  <rth@redhat.com>
1494
1495         * regrename.c (mode_change_ok): New.
1496         (find_oldest_value_reg): Use it.
1497
1498 2001-12-14  Richard Henderson  <rth@redhat.com>
1499
1500         * regrename.c (struct value_data): Add max_value_regs.
1501         (init_value_data): Initialize it.
1502         (kill_value): Kill values that overlap the dying register.
1503         (set_value_regno): New.
1504         (kill_set_value, kill_autoinc_value, copy_value): Use it.
1505         (copyprop_hardreg_forward_1): Kill earlyclobber operands
1506         before looking at inputs.
1507
1508 2001-12-14  David Edelsohn  <edelsohn@gnu.org>
1509
1510         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Handle
1511         DECL_WEAK for function descriptors.
1512         * config/rs6000/xcoff.h (HANDLE_PRAGMA_WEAK): Define if assembler
1513         weak support present.
1514         (ASM_WEAKEN_LABEL): Same.
1515
1516 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1517
1518         * config/h8300/h8300.md (anonymous pattern): Add a missing
1519         mode.
1520
1521 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1522
1523         * config/h8300/h8300.c (h8300_adjust_insn_length): Fix a
1524         comment typo.
1525
1526 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1527
1528         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
1529         Remove the initialization requierment.
1530         (h8300_handle_tiny_data_attribute): Likewise.
1531
1532 2001-12-14  Kazu Hirata  <kazu@hxi.com>
1533
1534         * config/h8300/h8300.md (udivqi3): Remove.
1535         (divqi3): Likewise.
1536         (udivhi3): Likewise.
1537         (divhi3): Likewise.
1538         (umodqi3): Likewise.
1539         (modqi3): Likewise.
1540         (umodhi3): Likewise.
1541         (modhi3): Likewise.
1542         (udivmodqi3): New.
1543         (divmodqi3): Likewise.
1544         (udivmodhi3): Likewise.
1545         (divmodhi3): Likewise.
1546
1547 Sat Dec 15 01:39:12 CET 2001  Jan Hubicka  <jh@suse.cz>
1548
1549         * cfgcleanup.c (flow_find_cross_jump): Replace tests for note
1550         by active_insn_p; count conditional jump as instruction.
1551
1552 2001-12-14  DJ Delorie  <dj@redhat.com>
1553             Danny Smith  <dannysmith@users.sourceforge.net>
1554
1555         * config/i386/cygwin.h (I386_PE_STRIP_ENCODING): Handle '*'
1556         at SYM_NAME[0] or SYM_NAME[3].
1557         (STRIP_NAME_ENCODING): Don't check for leading '*'.
1558
1559 2001-12-14  Ira Ruben   <ira@apple.com>
1560
1561         Add -### option (displays driver-generated commands without
1562         executing and quotes all arguments).
1563         * doc/invoke.texi: Add -###.
1564         * gcc.c (verbose_only_flag) - New flag.
1565         * (execute): If -### write quoted arguments and return.
1566         * (display_help): Print meaning of -###.
1567         * (process_command): Handle -###.
1568
1569 2001-12-14  Ira Ruben   <ira@apple.com>
1570
1571         Fix to no allow -save-temps to clobber user's source file.
1572         * gcc.c: Add static globals input_stat and input_stat_set.
1573         (do_spec_1): For 'g', 'u', 'U' case with save_temps_flag
1574         set, check that user's input file is not overwritten.
1575         (set_input): Reset input_stat_set for each new file.
1576
1577 Fri Dec 14 22:14:44 CET 2001  Jan Hubicka  <jh@suse.cz>
1578
1579         * predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
1580
1581 2001-12-14  Zack Weinberg  <zack@codesourcery.com>
1582
1583         * combine.c (record_dead_and_set_regs): Use
1584         regs_invalidated_by_call.  Don't note stores for CALL_INSNs.
1585
1586 2001-12-14  Roger Sayle <roger@eyesopen.com>
1587
1588         * builtins.def: Rename BUILT_IN_FSQRT to BUILT_IN_SQRT and
1589         __builtin_fsqrt to __builtin_sqrt.
1590
1591         * builtins.c (expand_builtin_mathfn,expand_builtin): Same.
1592         * doc/extend.texi: Simplify documentation to match patch.
1593
1594 Fri Dec 14 21:23:54 CET 2001  Jan Hubicka  <jh@suse.cz>
1595
1596         * config.gcc: Revamp target_cpu_default2 to strings;
1597         support new x86 variants.
1598         * i386.c (override_options): Default x86_cpu_string and x86_arch_string
1599         properly; set prefetch_sse.
1600         * i386.h (x86_prefetch_sse): Declare.
1601         (TARGET_PREFETCH_SSE): New.
1602         (CPP_CPU_DEFAULT_SPEC): Define according to the new macros.
1603         (TARGET_CPU_DEFAULT_*): New.
1604
1605 Thu Dec 13 21:57:13 CET 2001  Janis Johnson <janis187@us.ibm.com>
1606                               Jan Hubicka  <jh@suse.cz>
1607
1608         * config/i386/i386.h (struct processor_costs): Add new members
1609           prefetch_block and simultaneous_prefetches.
1610           (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): New.
1611         * config/i386/i386.c (processor_costs structs): Add values for
1612           prefetch_block and simultaneous_prefetches.
1613         * config/i386/i386.md (unspec values): Remove values for prefetch
1614           operations, which now use the PREFETCH rtx code.
1615           (prefetch_sse, prefetch_3dnow, prefetchw): Combine to use new
1616           unified prefetch support.
1617
1618 2001-12-14  Jason Merrill  <jason@redhat.com>
1619
1620         * diagnostic.c (sorry): Increment sorrycount before saving the
1621         buffer state.
1622
1623 Fri Dec 14 19:53:23 CET 2001  Jan Hubicka  <jh@suse.cz>
1624
1625         * i386.md (sqrt?f): Fix conditionals.
1626
1627 Fri Dec 14 07:29:52 2001  Douglas B. Rupp  <rupp@gnat.com>
1628
1629         * config.gcc (alpha64-dec-*vms*): New case.
1630         * config/alpha/t-vms64, config/alpha/vms-crt0-64.c: New files.
1631         * config/alpha/vms-psxcrt0-64.c, config/alpha/vms64.h: Likewise.
1632         * config/alpha/xm-vms64.h: Likewise.
1633
1634         * config/alpha/alpha.c (vms_attribute_table): Add new attributes.
1635         (alpha_write_linkage): Test for null alpha_links.
1636         (SECTION_VMS_GLOBAL, SECTION_VMS_INITIALIZE): New section attributes.
1637         (vms_section_type_flags, vms_asm_named_section): Handle them.
1638
1639 Fri Dec 14 12:05:14 CET 2001  Jan Hubicka  <jh@suse.cz>
1640
1641         * i386.c (ix86_fpmath, ix86_fpmath_string): New.
1642         (override_option): Set ix86_fpmath.
1643         * i386.h (MASK_MIX_SSE_I387): Remove.
1644         (TARGET_SSE_MATH): New.
1645         (TARGET_MIX_SSE_I387): Use ix86_fpmath.
1646         (TARGET_SWITCHES): Remove "mix-sse-i387".
1647         (fpmath_unit): New enum.
1648         (ix86_fpmath, ix86_fpmath_string): Declare.
1649         * i386.md (swapsf): Fix condition.
1650         (add?f, sub?f, mul?f, div?f, sqrt?f, min?f): Use TARGET_SSE_MATH.
1651         (fp_?f_*_nosse): New.
1652         (fp_*): Use TARGET_SSE_MATH.
1653         * invoke.texi (-mfpmath): Document.
1654         (-msse2): Add.
1655
1656 2001-12-14  Jason Merrill  <jason@redhat.com>
1657
1658         * dwarf2out.c (output_die): Print the string in the comment for
1659         a DW_FORM_strp.
1660
1661 2001-12-14  Richard Earnshaw  <rearnsha@arm.com>
1662
1663         * netbsd.h (COLLECT_SHARED_INIT_FUNC)
1664         (COLLECT_SHARD_FINI_FUNC): Remove redundant semicolon.
1665         * doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
1666         (COLLECT_SHARD_FINI_FUNC): Use @code where appropriate.
1667
1668 2001-12-13  Richard Henderson  <rth@redhat.com>
1669
1670         * regrename.c (kill_value_regno): Simplify chain removal.
1671         (kill_value): Kill all of HARD_REGNO_NREGS.
1672         (kill_set_value): Use kill_value not kill_value_regno.
1673         (kill_autoinc_value): Likewise.
1674         (copyprop_hardreg_forward): Don't collect refresh_blocks.
1675         Call delete_noop_moves.
1676
1677 2001-12-13  Aldy Hernandez  <aldyh@redhat.com>
1678
1679         * attribs.c (c_common_attribute_table): Swap decl_req and type_req
1680         for the mode attribute.
1681         (handle_mode_attribute): Handle types, not decls.
1682
1683 2001-12-13  Jason Merrill  <jason@redhat.com>
1684
1685         * c-common.h (COMPOUND_STMT_BODY_BLOCK): New macro.
1686
1687 2001-12-13  Aldy Hernandez  <aldyh@redhat.com>
1688
1689         * config/rs6000/rs6000.md (eh_set_lr_di): Change scratch
1690         constraint to base register.
1691         (eh_set_lr_si): Same.
1692
1693 2001-12-13  Hans-Peter Nilsson  <hp@axis.com>
1694
1695         * expr.c (expand_expr, case ADDR_EXPR): Don't honor
1696         flag_force_addr for modifier != EXPAND_CONST_ADDRESS,
1697         modifier != EXPAND_INITIALIZER and modifier != EXPAND_SUM.
1698
1699 Thu Dec 13 20:30:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1700
1701         * expr.c (copy_blkmode_from_reg): Add missing braces to eliminate
1702         warning and reformat comments.
1703         (expand_assignment): Don't pass EXPAND_WRITE if LHS is component.
1704         (highest_pow2_factor, case INTEGER_CST): Return BIGGEST_ALIGNMENT
1705         if overflow.
1706
1707 2001-12-12  Aldy Hernandez  <aldyh@redhat.com>
1708
1709         * config/rs6000/rs6000.c (rs6000_override_options): Add
1710         SUBSUBTARGET_OVERRIDE_OPTIONS.
1711
1712         * config/rs6000/eabialtivec.h: New file.
1713
1714         * config/rs6000/linuxaltivec.h: New file.
1715
1716         * config.gcc: Add powerpc-*-eabialtivec and
1717         powerpc-*-linux-gnualtivec.
1718
1719 2001-12-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1720
1721         * toplev.c (process_options, parse_options_and_default_flags):
1722         Set flag_no_inline before the post_options hook.
1723
1724 2001-12-13  Richard Henderson  <rth@redhat.com>
1725
1726         * emit-rtl.c (adjust_address_1): Don't adjust address if adjust
1727         is false.
1728
1729 2001-12-13  Richard Earnshaw  <rearnsha@arm.com>
1730
1731         * collect2.c (COLLECT_SHARED_INIT_FUNC)
1732         (COLLECT_SHARD_FINI_FUNC): Define default values.
1733         (write_c_file_stat): Use them to call construtor and destructor
1734         functions in shared libraries.
1735         * doc/tm.texi (COLLECT_SHARED_INIT_FUNC)
1736         (COLLECT_SHARD_FINI_FUNC): Document them.
1737         * config/netbsd.h (COLLECT_SHARED_INIT_FUNC)
1738         (COLLECT_SHARD_FINI_FUNC): Define.
1739
1740         * config/netbsd.h (LINK_SPEC): Don't pull in estart if creating a
1741         shared library.  Pass -shared through to the linker.
1742         * config/arm/netbsd.h (LINK_SPEC): Likewise.
1743
1744         * config/arm/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -fpic.
1745         (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME, SHLIB_OBJS, SHLIB_LINK)
1746         (SHLIB_INSTALL): Define.
1747
1748 2001-12-13  Richard Earnshaw  <rearnsha@arm.com>
1749
1750         * arm.c (legitimize_pic_address): Handle LABEL_REFs in substantially
1751         the same way as we handle SYMBOL_REFS.
1752
1753 Thu Dec 13 07:47:24 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1754
1755         * loop.c (remove_constant_addition): Fix prototype and whitespace.
1756         (emit_prefetch_instructions): Remove warnings and whitespace
1757         changes.
1758
1759 Thu Dec 13 06:48:38 2001  Douglas B. Rupp  <rupp@gnat.com>
1760
1761         * config/alpha/vms-cc.c (preprocess_args): Fix forward
1762         declaration.
1763
1764 Thu Dec 13 12:31:07 CET 2001  Jan Hubicka  <jh@suse.cz>
1765
1766         * predict.c (estimate_probability): Reorganize opcode heuristics.
1767         * predict.def (PRED_OPCODE_POSITIVE, PRED_OPCODE_NONEQUAL,
1768         PRED_FPOPCODE): New.
1769
1770         * i386.c (override_options): Recognize various CPU variants and set
1771         SSE/MMX/3dNOW flags accordingly.
1772         * i386.h (MASK_MMX_SET, MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET,
1773         MASK_3DNOW_A_SET): New.
1774         (MASK_ACCUMULATE_OUTGOING_ARGS_SET): New.
1775         (MASK_NO_ACCUMULATE_OUTGOING_ARGS): Delete.
1776         (MASK_*): Renumber.
1777         (TARGET_FLAGS): Use new masks.
1778         (CPP_CPU_SPECS): Recognize new CPU variants.
1779         * invoke.texi (-mcpu): Update documentation.
1780
1781         * flags.h (flag_prefetch_loop_arrays): Declare.
1782         * loop.h (LOOP_PREFETCH): Define new constant.
1783         * loop.c (strength_reduce): Call emit_prefetch_instructions.
1784         (MAX_PREFETCHES, PREFETCH_BLOCKS_BEFORE_LOOP_MAX,
1785         PREFETCH_BLOCKS_BEFORE_LOOP_MIN, PREFETCH_BLOCKS_IN_LOOP_MIN): New
1786         constants.
1787         (check_store_data): New structure.
1788         (check_store, emit_prefetch_instructions, rtx_equal_for_prefetch_p):
1789         New functions.
1790         * toplev.c: Include insn-flags.h.
1791         (flag_prefetch_loop_arrays): New global variable.
1792         (lang_independent_option): Add -fprefetch-loop-arrays.
1793         (rest_of_compilation) Pass LOOP_PREFETCH when flag_prefetch_loop_arrays
1794         is set.
1795         * Makefile.in (toplev.c): Depend on insn-flags.h.
1796         * invoke.texi (-fprefetch-loop-arrays): Document.
1797
1798         * predict.c (estimate_probability): Distribute the loop exit
1799         probability according to number of exit edges.
1800
1801         * cfgcleanup.c (insns_match_p): Break out from ...;
1802         (flow_find_cross_jump): ... here;
1803         (outgoing_edges_match): Add parameter MODE; attempt to match everything
1804         except for tablejumps.
1805         (try_crossjump_to_edge): Accept complex edges.
1806         (try_crossjump_bb): Likewise.
1807
1808 2001-11-29  Corey Minyard <minyard@acm.org>
1809
1810         * recog.c (validate_replace_rtx_1): Use simplify_gen_binary
1811         instead of plus_constant.
1812         * simplify-rtx.c (neg_const_int): New.
1813         (simplify_gen_binary, simplify_plus_minus): Use it.
1814
1815 2001-12-12  Roger Sayle  <roger@eyesopen.com>
1816
1817         * builtins.c (expand_builtin_memset, expand_builtin_memcpy,
1818         expand_builtin_strcpy): Additional arguments TARGET and MODE.
1819         (expand_builtin_bzero, expand_builtin_strcpy,
1820         expand_builtin_strncpy, expand_builtin_bzero): Pass additional
1821         TARGET and MODE parameters to the above functions.
1822         (expand_builtin_memset, expand_builtin_memcpy): Optimize the
1823         case where the LEN parameter is constant zero.
1824         (expand_builtin_memcmp): No longer conditional on
1825         HAVE_cmpstrsi.  Take an additional mode parameter.  Optimize
1826         the cases where len is either constant zero or one.
1827         Optimize to call to memcpy, even if the memcpy isn't inlined.
1828         (expand_builtin_strncpy): Optimize to call memcpy, even if the
1829         memcpy isn't inlined.
1830         (expand_builtin_strcmp, expand_builtin_strncmp): Always attempt
1831         to optimize to a call to memcmp.
1832         (expand_builtin): expand_builtin_memcmp can always be called,
1833         and pass the required parameters to expand_builtin_memcmp,
1834         expand_builtin_memset, expand_builtin_memcpy and
1835         expand_builtin_strcpy.
1836
1837 2001-12-12  David O'Brien  <obrien@FreeBSD.org>
1838
1839         * config.gcc (arm-*-freebsd*): Add target.
1840         * config/arm/freebsd.h: New file.
1841         * config/arm/arm.h (CPP_PREDEFINES): Do not define.
1842         (CPP_SPEC): #undef before defining.
1843         (CPP_CPU_ARCH_SPEC): Add -Acpu=arm -Amachine=arm.
1844         * config/arm/conix-elf.h (CPP_PREDEFINES): Remove -Acpu=arm
1845         -Amachine=arm.
1846         * config/arm/linux-elf.h: Likewise.
1847         * config/arm/netbsd.h: Likewise.
1848         * config/arm/riscix.h: Likewise.
1849         * config/arm/riscix1-1.h: Likewise.
1850         * config/arm/semiaof.h: Likewise.
1851
1852 2001-12-12  Richard Henderson  <rth@redhat.com>
1853
1854         * regrename.c (copyprop_hardreg_forward): New optimization.
1855         (kill_value_regno, kill_value, init_value_data, kill_clobbered_value,
1856         kill_set_value, kill_autoinc_value, copy_value, find_oldest_value_reg,
1857         replace_oldest_value_reg, replace_oldest_value_addr,
1858         replace_oldest_value_mem, copyprop_hardreg_forward_1,
1859         debug_value_data, validate_value_data): New.
1860         * rtl.h (copyprop_hardreg_forward): Declare.
1861         * toplev.c (flag_cprop_registers): New.
1862         (f_options): Add -fcprop-registers
1863         (rest_of_compilation): Invoke it.
1864         (parse_options_and_default_flags): Set it at -O1.
1865         * doc/invoke.texi: Document it.
1866
1867 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
1868
1869         * dwarf2out.c (dw_val_class): Add dw_val_class_range_list.
1870         (DEBUG_RANGES_SECTION_LABEL): Define.
1871         (ranges_section_label): Add.
1872         (add_AT_range_list): New.
1873         (print_die, sizeof_die, value_format): Handle dw_val_class_range_list.
1874         (output_loc_list): Location expression length is always 2-byte.
1875         (output_die): Handle dw_val_class_range_list.
1876         (gen_lexical_block_die): Call add_AT_range_list.
1877         (dwarf2out_init): Initialize ranges_section_label.
1878         (dwarf2out_finish): Emit ranges_section_label.
1879
1880 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
1881
1882         * c-typeck.c (digest_init): Allow initializing
1883         static storage duration objects with compound literals.
1884         * doc/extend.texi (Compound literals): Document the extension.
1885
1886 2001-12-12  Richard Henderson  <rth@redhat.com>
1887
1888         * emit-rtl.c (adjust_address_1): Always copy address to avoid
1889         shared rtl.
1890
1891 Wed Dec 12 07:37:52 2001  Olivier Hainque <hainque@act-europe.fr>
1892
1893         * stmt.c (expand_end_case): Do subtraction of lower bound as trees
1894         to avoid overflow.
1895
1896 Wed Dec 12 07:35:24 2001  Douglas B. Rupp  <rupp@gnat.com>
1897
1898         * cppfiles.c (read_include_file): Set buffer size properly when
1899         file is shorter than expected.
1900
1901 Wed Dec 12 08:35:33 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1902
1903         * objc/objc-act.c (encode_complete_bitfield): Fixed encoding
1904         enumeral types - encode them using 'i'.
1905
1906 2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
1907
1908         * doc/extend.texi (Deprecated Features): Deprecate implicit
1909         typename. Document that named return and initializer lists are now
1910         removed.
1911
1912 2001-12-11  Roger Sayle <roger@eyesopen.com>
1913
1914         * except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid
1915         compiler warning about enumeration values not being handled.
1916
1917 2001-12-11  Momchil Velikov  <velco@fadata.bg>
1918
1919         * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
1920         shifts.
1921
1922 2001-12-11  Richard Henderson  <rth@redhat.com>
1923
1924         * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
1925         * config/alpha/linux.h (TARGET_FIXUP_EV5_PREFETCH): New.
1926         * config/alpha/alpha.md (prefetch): New.
1927
1928 2001-12-11  Richard Henderson  <rth@redhat.com>
1929
1930         * combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C)
1931         if C has only low bits set and doesn't intersect with X or Y.
1932
1933 Tue Dec 11 23:58:39 EST 2001  John Wehle  (john@feith.com)
1934
1935         * basic-block.h (flow_preorder_transversal_compute): Declare.
1936         * cfganal.c (flow_preorder_transversal_compute): Implement.
1937
1938 Tue Dec 11 23:54:27 EST 2001  John Wehle  (john@feith.com)
1939
1940         * cfganal.c (flow_depth_first_order_compute): Always
1941         increment dfsnum.
1942
1943 2001-11-30 Alan Matsuoka <alanm@redhat.com>
1944
1945         * combine.c (combine_simplify_rtx) : Can't simplify
1946         cases that use mode class MODE_CC.
1947
1948 2001-12-11  Richard Henderson  <rth@redhat.com>
1949
1950         * expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in
1951         which there is no divide expander.
1952
1953 2001-12-11  Richard Henderson  <rth@redhat.com>
1954
1955         * except.c (sjlj_find_directly_reachable_regions): Don't
1956         consider RNL_BLOCKED a directly reachable region.
1957         (sjlj_assign_call_site_values): Trust directly_reachable.
1958         (sjlj_emit_dispatch_table): Likewise.
1959
1960 2001-12-11  Richard Henderson  <rth@redhat.com>
1961
1962         * config/alpha/alpha.md (divmodsi_internal_er): Split, so that
1963         we represent the address load's dependency on the gp.
1964         (divmoddi_internal_er): Likewise.
1965         (divmodsi_internal_er_1, divmoddi_internal_er_1): New.
1966
1967 2001-12-11  Richard Henderson  <rth@redhat.com>
1968
1969         * emit-rtl.c (widen_memory_access): New.
1970         * expr.h (widen_memory_access): Declare it.
1971         * config/alpha/alpha.c (get_aligned_mem): Use it.
1972
1973 2001-12-11  Richard Henderson  <rth@redhat.com>
1974
1975         * combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED
1976         simplification above out of range check.
1977
1978 2001-12-11  Dan Nicolaescu  <dann@ics.uci.edu>
1979
1980         * config/sparc/sparc.md (prefetch): New.
1981
1982 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
1983
1984         * output.h (regno_uninitialized): Make argument unsigned.
1985
1986         * flow.c (regno_uninitialized): Make regno unsigned.
1987
1988 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
1989
1990         * elfos.h (ENDFILE_SPEC, STARTFILE_SPEC): Do not define.
1991         * config/cris/cris.h (ENDFILE_SPEC): Define.
1992         * config/i386/i386elf.h ((ENDFILE_SPEC, STARTFILE_SPEC): Define.
1993         * config/pa/elf.h: Likewise.
1994
1995 2001-12-11  Richard Henderson  <rth@redhat.com>
1996
1997         * objc/objc-act.c (build_string_class_template): New.
1998         (build_objc_string_object): Call it.
1999
2000 2001-12-11  Steve Ellcey  <sje@cup.hp.com>
2001
2002         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
2003         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
2004         * calls.c (store_unaligned_arguments_into_pseudos): Check
2005         FUNCTION_ARG_REG_LITTLE_ENDIAN to see how structures
2006         are passed/returned.
2007         * expr.c (move_block_from_reg): Ditto.
2008         (move_block_from_reg): Ditto.
2009         (copy_blkmode_from_reg): Ditto.
2010         * stmt.c (expand_return): Ditto.
2011         * stor-layout.c (compute_record_mode): If
2012         FUNCTION_ARG_REG_LITTLE_ENDIAN is set then check
2013         MEMBER_TYPE_FORCES_BLK even if mode == VOIDmode.
2014         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set to true
2015         so that Structures of one field are still treated as structures.
2016         (FUNCTION_ARG_REG_LITTLE_ENDIAN): New, set it to true.
2017         (FUNCTION_ARG_PADDING): Set to ia64_hpux_function_arg_padding().
2018         (PAD_VARARGS_DOWN): Modify from default to not pad structures down.
2019         * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): New.
2020         * config/ia64/ia64.c (ia64_hpux_function_arg_padding): New function
2021         to special case handling of structure padding.
2022
2023 2001-12-11  Daniel Berlin  <dan@cgsoftware.com>
2024
2025         * sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
2026         (may_trap_exp): Stores only are risk if they trap, too, not just
2027         if code == MEM.
2028
2029 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
2030
2031         * flow.c (find_regno_partial): Indent properly.  Add a default to
2032         switch.
2033
2034 2001-12-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2035
2036         * c-common.c (combine_strings): Complain if concatenating
2037         __FUNCTION__.
2038         * c-parse.in (yylexname): Flag artificial strings.
2039         * tree.h (TREE_ARTIFICIAL_STRING_P): New.
2040 doc:
2041         * extend.texi: Update.
2042
2043 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
2044
2045         * c-common.c (type_for_mode): Handle unsigned vectors.
2046         (type_for_mode): Remove redundant calls to TYPE_MODE.
2047
2048         * tree.c (make_vector): New.
2049         (build_common_tree_nodes_2): Use make_vector for vector types.
2050         Add unsigned vector types.
2051
2052         * tree.h (tree_index): Add unsigned types for vectors.
2053         (unsigned_V16QI_type_node): New.
2054         (unsigned_V4SI_type_node): New.
2055         (unsigned_V8QI_type_node): New.
2056         (unsigned_V8HI_type_node): New.
2057         (unsigned_V4HI_type_node): New.
2058         (unsigned_V2SI_type_node): New.
2059
2060 2001-12-11  Stan Shebs  <shebs@apple.com>
2061
2062         * objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
2063         test of class names.
2064
2065 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
2066
2067         * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
2068         cpu configuration headers.
2069         * config/h8300/elf.h: Include dbxelf.h.
2070         * config/m68k/linux.h: Likewise.
2071         * config/m68k/m68020-elf.h: Likewise.
2072         * config/m68k/m68kv4.h: Likewise.
2073         * config/sh/elf.h: Likewise.
2074         * config/m68k/m68kemb.h: Add comment about the its purpose.
2075
2076 2001-12-11  Richard Henderson  <rth@redhat.com>
2077
2078         * objc/objc-act.c (build_constructor): Cast initializer values
2079         to the proper field types.
2080
2081 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
2082
2083         * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
2084
2085 2001-12-10  Roger Sayle <roger@eyesopen.com>
2086
2087         * builtins.c (expand_builtin): Use a switch statement to list
2088         those functions not expanded without optimizations, instead of a
2089         series of equality tests.
2090
2091 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
2092
2093         * config/alpha/vms.h (LIB_SPEC): Define.
2094         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
2095
2096         * libgcc2.c (_bb): Remove ctime declaration.
2097
2098         * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
2099         that works if LN_S = cp.
2100
2101         * config/alpha/x-vms (version): Change "." to "_".
2102
2103         * configure.in: Hardcode that vfork works on VMS host.
2104         * configure: Regenerated.
2105
2106 Mon Dec 10 18:37:31 2001  Douglas B. Rupp  <rupp@gnat.com>
2107
2108         * gcc.c (convert_filename): Add do_obj parameter. Don't convert
2109         unless do_obj true.
2110         (process_command): Modify calls to convert_filename.
2111
2112 2001-12-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2113
2114         * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
2115
2116 Mon Dec 10 15:54:27 2001  Jeffrey A Law  (law@cygnus.com)
2117
2118         * combine.c (known_cond): Check mode of each operand to determine
2119         if COND is comparing floating point values.
2120
2121 2001-12-10  David Edelsohn  <edelsohn@gnu.org>
2122
2123         * rs6000.h (processor_type): Add PPC405.
2124         (RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
2125         * rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
2126         rios1, rs64, and ppc630 processors.
2127         * rs6000.c (processor_target_table): Add PPC405.
2128
2129 2001-12-10  Richard Henderson  <rth@redhat.com>
2130
2131         * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
2132         instead of hardcoding subregs into the _be and _le patterns.
2133
2134 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2135
2136         * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
2137
2138 Mon Dec 10 09:19:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2139
2140         * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
2141         what insn does.
2142
2143 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2144
2145         * doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
2146         copyright notice formerly conditioned on @ifinfo on @ifnottex
2147         instead.
2148
2149 Mon Dec 10 06:15:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2150
2151         * vmsdbgout.c (lookup_filename): Remove warning.
2152
2153 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
2154
2155         * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
2156
2157         * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
2158         (exeext, target_alias, prefix, local_prefix): Define.
2159         * config/alpha/x-vms (USE_COLLECT2): Make empty.
2160         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
2161         file specifications. Remove ".".
2162         (GCC_INCLUDE_DIR): Remove redefinition (redundant).
2163         * fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*
2164
2165 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
2166
2167         * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
2168
2169 Sun Dec  9 21:57:24 2001  Douglas B. Rupp  <rupp@gnat.com>
2170
2171         * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
2172         Add rules for building [vp]crt0.o
2173         * config/alpha/vms.h (START_FILE_SPEC): Define.
2174         * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
2175         * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
2176         * doc/invoke.texi: Document special Alpha/VMS options.
2177
2178 Sun Dec  9 20:25:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2179
2180         * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
2181         * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
2182         not GNUC.
2183
2184 Sun Dec  9 20:19:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2185                           Douglas B. Rupp  <rupp@gnat.com>
2186
2187         * tree.c (append_random_char): Conditionalize INO for VMS.
2188
2189 2001-12-09  Richard Henderson  <rth@redhat.com>
2190
2191         * cfgcleanup.c (label_is_jump_target_p): New function.
2192         (try_optimize_cfg): Use label_is_jump_target_p to check if label is
2193         target of a JUMP_INSN from the preceding block.
2194
2195 Sun Dec  9 18:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
2196
2197         * vmsdbgout.c (lookup_filename): Assign null string instead
2198         of null pointer to fnam.
2199
2200 2001-12-09  Richard Henderson  <rth@redhat.com>
2201
2202         * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
2203         immediately after a call; insert nops before a call.
2204
2205 2001-12-09  Richard Henderson  <rth@redhat.com>
2206
2207         * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
2208         not FUNCTION_BOUNDARY.
2209         * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
2210         * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
2211         * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
2212
2213 2001-12-09  Hans-Peter Nilsson  <hp@bitrange.com>
2214
2215         * config/mmix/mmix.c (mmix_function_block_profiler,
2216         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
2217         unused functions.
2218         * config/mmix/mmix-protos.h (mmix_function_block_profiler,
2219         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
2220         prototypes.
2221
2222         * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
2223         Delete obsoleted macros.
2224
2225 2001-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2226
2227         * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
2228         doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
2229
2230         * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
2231         cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
2232         function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
2233         config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
2234         config/i370/i370.c, config/i386/i386.c,
2235         config/i386/i386-interix.h, config/i386/i386.md,
2236         config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
2237         config/m32r/m32r-protos.h, config/mcore/mcore.h,
2238         config/rs6000/rs6000.h, config/sparc/linux64.h,
2239         config/sparc/sparc.c, config/v850/v850-protos.h,
2240         config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
2241         spelling errors.
2242
2243 2001-12-09  Daniel Berlin  <dan@cgsoftware.com>
2244
2245         * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
2246         altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
2247
2248         * config/rs6000/rs6000.c: Ditto.
2249
2250         * config/rs6000/rs6000.md: Ditto.
2251
2252 2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2253
2254         * 1750a.md: Add default case in switch.
2255         * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
2256         if-else statement.
2257         * dsp16xx.c (print_operand_address): Likewise.
2258         * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
2259         * ia64.md: Add missing braces.
2260         * rs6000-protos.h (s8bit_cint_operand): Prototype.
2261         * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
2262         if-else statement.
2263         * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
2264         * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
2265         * dbxout.c (dbxout_source_file): Move a variable into the scope
2266         where it is used.
2267         * final.c (profile_function): Mark parameter with
2268         ATTRIBUTE_UNUSED.
2269         * genemit.c (gen_expand): Likewise for generated file.
2270         * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
2271
2272         * vmsdbg.h: Delete spurious close-comment.
2273         (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
2274         * vmsdbgout.c (write_modbeg): Define return type.
2275
2276         * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
2277         * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2278         * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2279         * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
2280         * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
2281         * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
2282         * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
2283
2284 2001-12-08  Tom Rix  <trix@redhat.com>
2285
2286         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
2287         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
2288         * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
2289         for powerpc64.
2290         * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
2291         movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
2292         * config/rs6000/rs6000.c (expand_block_move): Do not use
2293         gen_movstrsi_2reg and powerpc64.
2294
2295 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
2296
2297         * c-common.h (rid): Add RID_CHOOSE_EXPR and
2298         RID_TYPES_COMPATIBLE_P.
2299
2300         * c-parse.in (reswords): Add __builtin_choose_expr.
2301         Add __builtin_types_compatible_p.
2302         Add CHOOSE_EXPR token.
2303         Add TYPES_COMPATIBLE_P token.
2304         Add production for CHOOSE_EXPR.
2305         Add production for TYPES_COMPATIBLE_P.
2306
2307         * doc/extend.texi (__builtin_choose_expr): Add documentation.
2308         (__builtin_types_compatible_p): Likewise.
2309
2310 2001-12-08  David Edelsohn  <edelsohn@gnu.org>
2311
2312         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
2313         to unions.
2314
2315 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2316
2317         * c-parse.in: Take string literals in assembler constructs,
2318         not expressions.
2319         * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
2320         check the strings are STRING_CSTs.
2321
2322 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2323
2324         * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
2325         using combine_strings to do the concatenation.
2326         * c-parse.in: Replace uses of the string non-terminal with STRING.
2327         Don't attempt string concatenation.
2328         (OBJC_STRING): New terminal.
2329         (string): Remove non-terminal.
2330         (_yylex): Call combine_strings on function names.  Generate
2331         OBJC_STRING terminals; don't pass '@' on to yacc.
2332         * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
2333         (build_asm_stmt): Similarly.
2334
2335 2001-12-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2336
2337         * rtlanal.c (get_jump_table_offset): Delete unused variable.
2338
2339 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
2340
2341         * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
2342         (prefetch): Rewrite using PREFETCH RTL primitive.
2343         * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
2344         * arm.c (arm_init_builtins): Don't initialize a builtin for
2345         __builtin_prefetch here.
2346         (arm_expand_builtin): Don't expand __builtin_prefetch here.
2347
2348 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
2349
2350         * final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
2351         in test for a subreg.
2352
2353 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2354
2355         * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
2356         strings.
2357
2358 2001-12-07  Richard Henderson  <rth@redhat.com>
2359
2360         * doc/extend.texi: Fix typo last change.
2361
2362         * c-decl.c (c_language): Remove duplicate.
2363
2364 2001-12-07  Dale Johannesen  <dalej@apple.com>
2365
2366         * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
2367         * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
2368         specific codegen, eliminate a register copy.
2369         (print_operand_address): Add support for Darwin's lo16(constant)
2370         syntax.
2371         (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
2372         generation of addresses within very large data objects.
2373         (s8bit_cint_operand):  New.
2374         * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
2375         Move "mtjmpr" to correct functional unit for 750/7400/7450.
2376         Add imul2 and imul3 insn types for multiplication by 16- and
2377         8-bit constants.
2378         Change tablejump patterns to strongly discourage using LR
2379         rather than CTR.
2380         Add %lo16 patterns for Darwin loads and stores.
2381
2382 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2383
2384         * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
2385
2386 2001-12-07  Stephane Carrez  <Stephane.Carrez@sun.com>
2387
2388         * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
2389         with %sp because it can cause the delayed instruction to load
2390         below the stack.
2391
2392 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2393
2394         * alpha.c (alpha_expand_unaligned_store,
2395         alpha_expand_unaligned_store_words): Use constm1_rtx in place of
2396         call to immed_double_const.
2397
2398 2001-12-07  Aldy Hernandez  <aldyh@redhat.com>
2399
2400         * doc/extend.texi (Variable Attributes): Document vector_size.
2401
2402         * attribs.c (c_common_attribute_table): Add vector_size.
2403         (handle_vector_size_attribute): New.
2404         (vector_size_helper): New.
2405         (decl_attributes): Relayout the decl after calculating attribs.
2406
2407 2001-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2408
2409         * doc/gcc.texi: Don't include install-old.texi.  Adjust menu
2410         description for Trouble section.
2411         * doc/install-old.texi: Adjust for inclusion as chapter of new
2412         installation manual.
2413         * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
2414         Adjust to include old installation chapter as chapter of new
2415         installation manual.
2416
2417 Fri Dec  7 11:07:35 EST 2001  John Wehle  (john@feith.com)
2418
2419         * rtl.h (get_jump_table_offset): Declare.
2420         * rtlanal.c (get_jump_table_offset): Implement.
2421
2422 Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2423
2424         * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
2425         Deleted; were used only by BB profiler code.
2426         (sbb_head, sbb_tail, sbb_label_num): Likewise.
2427         (end_final): Delete now-unused vars I, PTR, and SPTR.
2428
2429         * expr.c (store_field): Remove warning.
2430         (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
2431         (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
2432         (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
2433         divisor constant power of 2.
2434         (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
2435
2436 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2437
2438         * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
2439         shifting.
2440
2441 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
2442
2443         * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
2444         (DWARF_FRAME_REGISTERS): Delete.
2445
2446 2001-12-06  Janis Johnson  <janis187@us.ibm.com>
2447
2448         * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
2449         * builtins.def (BUILT_IN_PREFETCH): Change arguments.
2450         * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
2451         with defaults for read prefetch with high degree of locality.
2452         * doc/extend.texi (__builtin_prefetch): Update documentation.
2453         * doc/md.texi (prefetch): Add documentation.
2454
2455 2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2456
2457         * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
2458         UNIX V5.1A stdio.h.
2459         * fixinc/fixincl.x: Regenerate.
2460         Fixes PR libf2c/4826.
2461
2462 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
2463             Richard Henderson  <rth@redhat.com>
2464
2465         * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
2466         (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
2467
2468         * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
2469         to PRE_GCC3_DWARF_FRAME_REGISTERS.
2470         (frame_state): Same.
2471         (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
2472
2473 2001-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2474
2475         * langhooks.c (lhd_staticp): Mark parameter with
2476         ATTRIBUTE_UNUSED.
2477
2478 2001-12-06  H.J. Lu <hjl@gnu.org>
2479
2480         * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
2481         reduce noise.
2482         (.po.pox): Likewise.
2483         (o/$(PACKAGE).pot): Likewise.
2484
2485 2001-12-06  Alexandre Oliva  <aoliva@redhat.com>
2486
2487         * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
2488         * tree-inline.c (expand_call_inline): ... here.
2489
2490 2001-12-06  H.J. Lu <hjl@gnu.org>
2491
2492         * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
2493         (.po.pox): Likewise.
2494         (o/$(PACKAGE).pot): Likewise.
2495
2496 2001-12-06  David O'Brien  <obrien@FreeBSD.org>
2497
2498         * config.gcc: Include dbxelf.h before elfos.h.
2499         * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
2500
2501 2001-12-06  Zack Weinberg  <zack@codesourcery.com>
2502
2503         * cppfiles.c (open_file): If we've opened a directory by
2504         mistake, close it.
2505         (find_include_file): Avoid turning / into // or // into ///.
2506
2507 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
2508
2509         * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
2510         (STRUCT_VALUE_REGNUM): Restore definition.
2511
2512 2001-12-06  Andrew MacLeod <amacleod@redhat.com>
2513
2514         * flow.c (find_regno_partial): Return register, not the expression
2515         the register is in.
2516
2517 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2518
2519         * function.c (handle_epilogue_set): Check for FP setting case when
2520         SP is set from FP in same insn.
2521
2522 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
2523
2524         * config/arm/arm.c (load_multiple_sequence): Pass pointer to
2525         RTX when calling alter_subreg().
2526         (store_multiple_sequence): Pass pointer to RTX when calling
2527         alter_subreg().
2528
2529 Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2530
2531         * function.c (assing_parms): Fix typo in last change.
2532         * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
2533         * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
2534         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2535         * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
2536
2537 2001-12-06  Alan Modra  <amodra@bigpond.net.au>
2538
2539         * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
2540         correct code selecting section.
2541
2542 Thu Dec  6 12:45:33 CET 2001  Jan Hubicka  <jh@suse.cz>
2543
2544         * final.c (count_basic_block, add_bb, add_bb_string):
2545         Kill.
2546         (end_final, final_start_function, final, final_scan_insn,
2547         leaf_function_p): Kill BB profiler related code.
2548         * flags.h (profile_block_flag): Kill.
2549         * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
2550         BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
2551         __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
2552         bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
2553         reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
2554         __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
2555         __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
2556         __bb_init_trace_func): Kill.
2557         * toplev.c (profile_block_flag): Kill.
2558         (indepdendent_decode_option, process_options): Kill -a related code.
2559         * alpha.c (direct_call_operand): Likewise.
2560         * arm.c (arm_expand_prologue, thumb_expand_prologue,
2561         thumb_expand_epilogue): Likewise.
2562         * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
2563         * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2564         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2565         MACHINE_STATE_RESTORE): Kill.
2566         * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2567         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2568         MACHINE_STATE_RESTORE): Kill.
2569         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
2570         * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
2571         ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
2572         code.
2573         (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
2574         * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2575         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2576         MACHINE_STATE_RESTORE): Kill.
2577         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
2578         * i960.c (i960_output_function_prologue): Kill BB profiler related
2579         code.
2580         * ia64.c (ia64_compute_frame_size): Likewise.
2581         * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2582         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2583         MACHINE_STATE_RESTORE): Kill.
2584         * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
2585         * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2586         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2587         MACHINE_STATE_RESTORE): Kill.
2588         * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
2589         * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2590         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2591         MACHINE_STATE_RESTORE): Kill.
2592         * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
2593         Kill BB profiler related code.
2594         * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2595         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2596         MACHINE_STATE_RESTORE): Kill.
2597         * mips.c (mips_expand_prologue): Kill BB profiler related code.
2598         * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2599         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2600         MACHINE_STATE_RESTORE): Kill.
2601         * rs6000.c (rs6000_override_options): Kill BB profiler related code.
2602         * s960.c (s390_function_prologue): Kill BB profiler related code.
2603         * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2604         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2605         MACHINE_STATE_RESTORE): Kill.
2606         * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2607         * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2608         * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2609         * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2610         * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
2611         sparc_nonflat_function_epilogue): Kill BB profiler related code.
2612         (sparc_function_block_profiler, sparc_block_profiler,
2613         sparc_function_block_profiler_exit): Kill.
2614         * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
2615         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2616         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2617         MACHINE_STATE_RESTORE): Kill.
2618         * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2619         * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
2620         * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2621         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2622         MACHINE_STATE_RESTORE): Kill.
2623         * doc/invoke.texi: Kill documentation of -a and -ax.
2624         * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
2625         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
2626         MACHINE_STATE_RESTORE): Kill.
2627
2628 2001-10-26  Steve Christiansen  <smc@us.ibm.com>
2629
2630         * doc/rtl.texi: Use a table to display RTL format characters.
2631
2632 2001-12-06  Bo Thorsen  <bo@suse.co.uk>
2633
2634         * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
2635
2636 Wed Dec  5 19:18:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2637
2638         * function.c (keep_stack_depressed): Check global_live_at_start
2639         of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
2640
2641 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
2642
2643         * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
2644         as set by the generic FreeBSD configure framework.
2645
2646 2001-12-04  Jason Merrill  <jason@redhat.com>
2647
2648         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2649         start_inlining, end_inlining.
2650         * tree-inline.c (expand_call_inline): Call them.
2651         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
2652         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
2653         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
2654         * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
2655         (lhd_tree_inlining_end_inlining): New fn.
2656
2657 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2658
2659         * c-common.c (shadow_warning): New function, moved from cp/decl.c.
2660         * c-common.h (shadow_warning): New.
2661         * c-decl.c: Include c-common.h.
2662         (warn_if_shadowing): New, broken out of pushdecl.
2663         (pushdecl): Use warn_if_shadowing.
2664         (store_parm_decls): Prevent duplicate -Wshadow warnings.
2665
2666 Wed Dec  5 17:59:19 2001  Douglas B. Rupp  <rupp@gnat.com>
2667
2668         * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
2669         (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
2670         (LIB_SPEC): Remove.
2671
2672 Wed Dec  5 16:03:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2673
2674         * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
2675         (QUAL_UNION_TYPE): New type.
2676
2677         * varasm.c (output_constant, case ERROR_MARK): New case.
2678
2679         * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
2680         (c_com): Delete its reference.
2681         * builtins.c: Delete memory checking code.
2682         * calls.c, expr.c, function.c, stmt.c: Likewise.
2683         * builtins.c (expand_builtin_arg_info): Remove reference to
2684         EXPAND_MEMORY_USE_* modifiers.
2685         * explow.c (expr_size): Likewise.
2686         * expr.c (expand_expr, expand_increment): Likewise.
2687         * expr.h (ARGS_SIZE_RTX): Likewise.
2688         * function.c (assign_parms, expand_pending_sizeso): Likewise.
2689         * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
2690         * expr.c (in_check_memory_usage): Delete.
2691         (get_push_address, get_memory_usage_from_modifier): Delete.
2692         (expand_assigment): Use EXPAND_WRITE on destination.
2693         (expand_expr): Delete ro_modifier.
2694         * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
2695         add EXPAND_WRITE.
2696         (memory_use_mode): Delete.
2697         * flags.h (flag_check_memory_usage): Deleted.
2698         (flag_prefix_function_name): Likewise.
2699         * function.c (expand_function_start): Don't set
2700         current_function_check_memory_usage.
2701         * function.h (check_memory_usage): Delete.
2702         * libfuncs.h, optabs.c: Delete chkr_* stuff.
2703         * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
2704         EXPAND_WRITE.
2705         * toplev.c (flag_check_memory_usage): Deleted.
2706         (flag_prefix_function_name): Likewise.
2707         (f_options, process_options): Delete references to above.
2708         * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
2709         * varasm.c (CHKR_PREFIX): Deleted.
2710         (make_decl_rtl): Remove flag_prefix_function_name handling.
2711         (assemble_name): Likewise.
2712         * doc/extend.texi: Remove no_check_memory_usage attribute.
2713         * doc/invoke.texi: Remove -fcheck-memory-usage
2714         and -fprefix-function-name.
2715
2716 2001-12-05  Andreas Schwab  <schwab@suse.de>
2717
2718         * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
2719         from autoconf.
2720
2721 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
2722
2723         * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
2724
2725 2001-12-05  William Cohen  <wcohen@redhat.com>
2726
2727         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
2728         instruction.
2729
2730 2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
2731
2732         * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
2733         builtins.
2734
2735         * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
2736         better reflect reality (change from Apple's tree).
2737         Add more of altivec instructions.
2738         Add ftruncv4sf2 pattern.
2739         Remove more unspecs (vector merge instructions, etc).
2740
2741         * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
2742         builtins.
2743         (bdesc_1arg): New, for 1 argument altivec builtins.
2744         (altivec_expand_builtin): Handle unary and ternary ops.
2745         (altivec_init_builtins): Ditto.
2746
2747 Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2748
2749         * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
2750         * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
2751
2752 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2753
2754         * gcse.c (store_killed_in_insn): Consider pure calls
2755         as potential store killers in addition to normal calls.
2756
2757 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2758
2759         * expr.c (expand_expr): When checking promoted value, use
2760         DECL_MODE (exp) and not mode.
2761
2762 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2763
2764         * c-typeck.c (output_init_element): Call digest_init
2765         just once, not in each if branch and check its return value for
2766         error_mark_node.
2767
2768 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
2769
2770         * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
2771         type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
2772         (finish_struct): Break the loop if n_incomplete went to 0.
2773         For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
2774
2775 Wed Dec  5 07:41:13 2001  Douglas B. Rupp  <rupp@gnat.com>
2776
2777         * config/alpha/alpha.c (alpha_va_start): Update VMS case.
2778
2779 Wed Dec  5 07:27:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2780                           Douglas B. Rupp  <rupp@gnat.com>
2781
2782         * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
2783         * doc/invoke.texi: Add -gvms.
2784         * doc/passes.texi: Add mention of vmsdbgout.c.
2785         * doc/tm.texi: Document VMS debugging output.
2786
2787 Wed Dec  5 06:26:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2788
2789         * function.h (tree, rtx): Remove no-longer-needed definitions.
2790
2791         * function.c (keep_stack_depressed): Refine check for register
2792         clobbered over call.
2793
2794         * expr.c (store_expr): When copying string constant into array,
2795         use functions that update memrefs instead of computations on
2796         addresses to better track MEMs.  Also properly handle 32/64 pointers.
2797         (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
2798         (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
2799
2800         * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
2801         underneath COMPONENT_REFs.
2802         (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
2803
2804 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2805
2806         * toplev.c (display_target_options): Don't print twice.
2807
2808 Wed Dec  5 00:42:16 EST 2001  John Wehle  (john@feith.com)
2809
2810         * emit-rtl.c (set_unique_reg_note): Don't set
2811         a REG_EQUAL or REG_EQUIV note if multiple sets
2812         are present.
2813
2814 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2815
2816         * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
2817         CASE_DROPS_THROUGH.
2818
2819 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
2820
2821         * rtl.h (initialize_uninitialized_subregs): New prototype.
2822         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
2823         when optimization is on.
2824         * flow.c (find_regno_partial): Find subregs within an expression.
2825         (initialize_uninitialized_subregs): Initialize live on entry registers
2826         which are used in subreg expressions.
2827
2828 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
2829
2830         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
2831
2832 2001-12-04  DJ Delorie  <dj@redhat.com>
2833
2834         * fixinc/fixincl.c (initialize): Avoid problemsome macro
2835         parameter names (PR 3388).
2836
2837 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
2838
2839         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
2840         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
2841
2842 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2843
2844         * c-common.def (COMPOUND_LITERAL_EXPR): New.
2845         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
2846         (c_staticp): New function.
2847         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
2848         (c_staticp): Declare.
2849         * c-typeck.c (default_function_array_conversion, build_unary_op):
2850         Don't handle CONSTRUCTOR specially.
2851         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
2852         * c-decl.c (build_compound_literal): New function.
2853         * c-tree.h (build_compound_literal): Declare.
2854         * c-parse.in (primary): Use build_compound_literal.
2855         * c-lang.c (LANG_HOOKS_STATICP): Define.
2856         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
2857         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
2858         * doc/extend.texi: Update documentation of compound literals.
2859         Fixes PR c/4787.
2860
2861 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2862
2863         * langhooks.h (struct lang_hooks): Add staticp.
2864         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
2865         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
2866         * langhooks.c (lhd_staticp): New function.
2867         * tree.c (staticp): Call lang_hooks.staticp for language-specific
2868         tree codes.
2869
2870 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2871
2872         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
2873         * gcc.c (process_command): Ensure the cpp driver sees
2874         --help and --target-help, and that the help is printed
2875         exactly once.
2876
2877 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
2878
2879         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
2880
2881 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
2882
2883         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
2884         flag_strict_aliasing.  Use separate assignment statements.
2885
2886 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
2887
2888         * build-make, cross-make: Delete file.
2889         * configure.in: Set and substitute CROSS, ALL,
2890         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
2891         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
2892         whether build == host and host == target.  Do not
2893         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
2894         AC_SUBST cross_defines or extra_c_flags.
2895         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
2896         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
2897         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
2898         partially or completely with autoconf-substituted @variable@
2899         notation.
2900         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
2901         @build_overrides@, @extra_c_flags@, all.build, install-build,
2902         install-cross-rest, install-float-h-cross): Deleted.
2903         (install-normal): Rename to install.  Delete old "install"
2904         indirection rule.
2905
2906 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
2907
2908         * stmt.c (expand_return): Clear destination instead of clobbering it
2909         when setting a return value via bitsets.
2910
2911 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
2912
2913         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
2914         it has DECL_SAVED_TREE.
2915
2916         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
2917         is in a different binding level, get its abstract origin to be
2918         olddecl.
2919         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
2920         check earlier.
2921         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
2922         DECL_INITIAL is NULL.
2923
2924 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
2925
2926         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
2927         Return correct value if one of the subexpressions was optimized to
2928         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
2929         (and_reg_cond): Similarly.
2930
2931 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
2932
2933         * function.c (assign_parms): Set last_named only for last named
2934         argument.
2935
2936 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2937
2938         * doc/install.texi: Use the GFDL.  Include years from old install
2939         manual in copyright notice.  Include copyright and GFDL notice on
2940         HTML index page.  Include usual footer on testing.html.
2941         * doc/install.texi2html: Build gfdl.html.  Use -I
2942         $SOURCEDIR/include.
2943         * doc/include/fdl.texi: Adapt for use in the install manual.
2944
2945 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2946
2947         * doc/install.texi: Document that installed native compiler for
2948         building cross compilers should be GCC 2.95 or later.
2949
2950 2001-12-03  Eric Christopher  <echristo@redhat.com>
2951
2952         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
2953         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
2954         patterns.
2955
2956 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
2957
2958         * rtl.def (PREFETCH): New rtx code.
2959         * doc/rtl.texi (PREFETCH): Add documentation.
2960         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
2961         * rtlanal.c (reg_referenced_p): Ditto.
2962         * sched-vis.c (print_exp):  Ditto.
2963         * ssa-dce.c (find_inherently_necessary):  Ditto.
2964
2965         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
2966           (PREFETCH_BLOCK): Define.
2967         * config/ia64/ia64.md (itanium_class): Add lfetch.
2968           (prefetch, prefetch_internal): New.
2969
2970         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
2971         * builtins.def (BUILT_IN_PREFETCH): New.
2972         * builtins.c (expand_builtin_expect): New.
2973           (expand_builtin): Call it.
2974         * doc/extend.texi: Document __builtin_prefetch.
2975
2976         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
2977           conflicts with new generic prefetch functionality.
2978         * config/i386/i386.c (ix86_expand_builtin): Use new name for
2979           prefetch_sse.
2980
2981 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
2982
2983         * objc/Make-lang.in: Update copyright.
2984         (OBJC_OBJS): Add objc-lang.o.
2985         (objc-lang.o): New rule.
2986         * objc/config-lang.in: Fix file description and update
2987         copyright.
2988         * objc/objc-act.c: Do not include langhooks.h and
2989         langhooks-def.h
2990         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
2991         (objc_post_options): Move to objc-lang.c.
2992         (objc_init_options): Move to objc-lang.c.
2993         (objc_init): Make non-static.
2994         (objc_decode_option): Make non-static.
2995         (HASHFUNCTION): Remove macro.
2996         (hash_func): New function.
2997         (hash_enter): Replace HASHFUNCTION with hash_func.
2998         (hash_lookup): Replace HASHFUNCTION with hash_func.
2999         (maybe_objc_tree_codes): New function.
3000         (init_objc): Move ObjC tree code initialization to
3001         maybe_objc_tree_codes().
3002         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
3003         (objc_init): New public prototype.
3004         (objc_decode_option): New public prototype.
3005         (maybe_add_objc_tree_codes): New public prototype.
3006         * objc/objc-lang.c: New file.
3007         (lang_hooks): Moved from objc-act.c.
3008         (objc_post_options): Moved from objc-act.c.
3009         (objc_init_options): Moved from objc-act.c.
3010
3011 2001-12-03  Geoff Keating  <geoffk@redhat.com>
3012
3013         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
3014         of array elements.
3015
3016 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3017
3018         PR c/4988
3019         * gcc.c (process_command): Don't add a preprocessor option for
3020         --help and --target-help; cc1 is enough.
3021
3022 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3023
3024         * c-decl.c (grokdeclarator): Use ISO word.
3025         * cppinit.c: Remove leading capital from diagnostic messages, as
3026         per GNU coding standards.
3027         * emit-rtl.c: Similarly.
3028         * final.c: Similarly.
3029         * gcc.c: Similarly.
3030         * tradcpp.c: Similarly.
3031         * config/arm/arm.c: Similarly.
3032         * config/arm/arm.h: Similarly.
3033         * config/avr/avr.c: Similarly.
3034         * config/avr/avr.h: Similarly.
3035         * config/c4x/c4x.c: Similarly.
3036         * config/cris/cris.c: Similarly.
3037         * config/cris/cris.h: Similarly.
3038         * config/d30v/d30v.c: Similarly.
3039         * config/dsp16xx/dsp16xx.c: Similarly.
3040         * config/dsp16xx/dsp16xx.h: Similarly.
3041         * config/h8300/h8300.c: Similarly.
3042         * config/i386/i386.c: Similarly.
3043         * config/i386/xm-djgpp.h: Similarly.
3044         * config/i960/i960.h: Similarly.
3045         * config/m32r/m32r.c: Similarly.
3046         * config/m68hc11/m68hc11.c: Similarly.
3047         * config/m88k/m88k.c: Similarly.
3048         * config/m88k/m88k.h: Similarly.
3049         * config/mcore/mcore.c: Similarly.
3050         * config/mcore/mcore.h: Similarly.
3051         * config/mips/mips.c: Similarly.
3052         * config/mmix/mmix.c: Similarly.
3053         * config/pa/pa.c: Similarly.
3054         * config/rs6000/rs6000.c: Similarly.
3055         * config/rs6000/sysv4.h: Similarly.
3056         * config/s390/s390.c: Similarly.
3057         * config/sparc/sparc.c: Similarly.
3058         * config/v850/v850-c.c: Similarly.
3059         * config/v850/v850.c: Similarly.
3060
3061 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
3062
3063         * rs6000.h (RETURN_IN_MEMORY): Cast result of
3064         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
3065
3066 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
3067
3068         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
3069         bit twiddling constant.
3070
3071 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
3072
3073         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
3074         call purge_dead_edges after removing.
3075         (delete_null_pointer_checks): Do not handle delete_list.
3076
3077         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
3078         (count_basic_blocks): ... here.
3079         (find_basic_blocks, find_bb_boundaries): Cleanup.
3080
3081         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
3082         overflow for types greater then 2 * HOST_WIDE_INT.
3083
3084         * reload.c (find_reloads): Update the duplicates after swapingg.
3085
3086 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
3087
3088         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
3089
3090 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
3091
3092         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
3093         MASK_LONG_DOUBLE_128): Delete.
3094         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
3095         TARGET_AIX_STRUCT_RET): New flags.
3096         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
3097         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
3098         and -m(no-)svr4-struct-return.
3099         (TARGET_OPTIONS): Add entry for -mlong-double-.
3100         (rs6000_long_double_size_string, rs6000_long_double_type_size,
3101         rs6000_altivec_abi): Declare.
3102         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
3103         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
3104         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
3105         structures of size <= 8 bytes in registers.
3106         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
3107
3108         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
3109         rs6000_long_double_type_size, rs6000_altivec_abi): New
3110         globals.
3111         (rs6000_override_options): Set rs6000_long_double_type_size
3112         from rs6000_long_double_size_string, if nonzero.  Set the
3113         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
3114         not already set.
3115         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
3116         target_flags bit.
3117         (rs6000_init_builtins): This hook now takes no arguments.
3118
3119         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
3120         DRAFT_V4_STRUCT_RET to 1.
3121
3122 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3123
3124         * c-typeck.c (really_start_incremental_init, push_init_level):
3125         Avoid constructor_max_index being other than an INTEGER_CST.
3126
3127 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
3128
3129         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
3130         unsigned.
3131         (ASM_GENERATE_INTERNAL_LABEL): Same.
3132         (UNIQUE_SECTION): Fix typo.
3133
3134 2001-12-02  Richard Henderson  <rth@redhat.com>
3135
3136         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
3137
3138 2001-12-02  Richard Henderson  <rth@redhat.com>
3139
3140         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
3141         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
3142         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
3143         * expr.h, final.c, reload1.c: Adjust users.
3144
3145         * alias.c (nonoverlapping_component_refs_p): New.
3146         (decl_for_component_ref, adjust_offset_for_component_ref): New.
3147         (nonoverlapping_memrefs_p): Use them.
3148         * emit-rtl.c (component_ref_for_mem_expr): New.
3149         (set_mem_attributes): Use it.
3150         (set_mem_offset): New.
3151         * expr.c (expand_assignment): Call set_mem_attributes for
3152         inner references; adjust the memory offset as needed.
3153         * print-rtl.c (print_mem_expr): New.
3154         (print_rtx): Use it.
3155
3156 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
3157
3158         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
3159
3160         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
3161         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
3162         (ASM_SPEC): Don't redefine.
3163         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
3164         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
3165         * config/alpha/vms-dwarf2.asm: New file.
3166
3167         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
3168         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
3169         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
3170         (vmsdbgout_after_prologue): New declaration.
3171         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
3172         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
3173         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
3174         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
3175         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
3176         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
3177         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
3178         Test VMS_DEBUGGING_INFO.
3179         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
3180         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
3181         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
3182         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
3183         VMS_AND_DWARF2_DEBUG.
3184         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
3185         (decode_g_option): Add "vms" to debug_type_names.
3186         (process_options): Set vmsdbg_debug_hooks if -gvms.
3187         (lang_independent_init): Emit line number for VMS unless -g0.
3188         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
3189         * vmsdbg.h, vmsdbgout.c: New files.
3190
3191 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3192
3193         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
3194
3195 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3196
3197         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
3198         * dwarf2out.c (is_cxx): Prototype.
3199         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
3200         warning.
3201         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
3202
3203 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3204
3205         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
3206
3207 2001-12-02  Geoff Keating  <geoffk@redhat.com>
3208
3209         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
3210         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
3211         rather than simplify_subreg.  Check for volatile-ness.  Check that
3212         we're not splitting one slow operation into two slow operations.
3213
3214 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
3215
3216         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
3217         before shifting.
3218
3219 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3220
3221         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
3222         capital from diagnostics.
3223         * c-lex.c (cb_file_change): Similarly.
3224         * c-parse.in : Similarly.
3225         * cfgrtl.c (verify_flow_info): Similarly.
3226         * collect2.c: Similarly.
3227         * cppfiles.c (find_include_file): Similarly.
3228         * cppinit.c (cpp_handle_option): Similarly.
3229         * cpplex.c (cpp_spell_token): Similarly.
3230         * cppmain.c (do_preprocessing): Similarly.
3231         * gcc.c (translate_options, process_command, do_spec1,
3232         main, pfatal_execute): Similarly.
3233         * genattr.c (main): Similarly.
3234         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
3235         write_test_expr, main): Similarly.
3236         * gencodes.c (main): Similarly.
3237         * genconfig.c (main): Similarly.
3238         * genconstants.c (main): Similarly.
3239         * genemit.c (main): Similarly.
3240         * genextract.c (main): Similarly.
3241         * genflags.c (main): Similarly.
3242         * genopinit.c (main): Similarly.
3243         * genoutput.c (process_template, main): Similarly.
3244         * genpeep.c (main): Similarly.
3245         * genrecog.c (main): Similarly.
3246         * gensupport.c (is_predicable, identify_predicable_attribute,
3247         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
3248         * ggc-page.c (alloc_anon): Similarly.
3249         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
3250         parse_begin, parse_bend, parse_def, parse_end, parse_file,
3251         parse_stabs_common, parse_stabs, write_varray, write_object,
3252         read_seek, copy_object, main, error): Similarly.
3253         * profile.c (compute_branch_probabilities): Similarly.
3254         * reg-stack.c (check_asm_stack_operands): Similarly.
3255         * reload.c (find_reloads): Similarly.
3256         * reload1.c (spill_failure, failed_reload): Similarly.
3257         * rtl-error.c (_fatal_insn_not_found): Similarly.
3258         * toplev.c (read_integral_parameter, crash_signal,
3259         decode_f_option, set_target_switch, parse_options_and_default_flags)
3260         : Similarly.
3261         * tradcif.y (parse_number, yylex): Similarly.
3262         * tradcpp.c (main, fancy_abort): Similarly.
3263         * tree.c (tree_check_failed): Similarly.
3264         * varray.c (varray_check_failed): Similarly.
3265         * xcoffout.c (xcoff_output_standard_types): Similarly.
3266 objc:
3267         * objc-act.c (get_object_ref, lookup_and_install_protocols,
3268         build_objc_string_object, objc_declare_alias, build_ivar_chain,
3269         finish_message_expr, build_protocol_expr, is_public,
3270         start_class): Similarly.
3271
3272 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3273
3274         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
3275         trailing period from diagnostics.
3276         * c-lex.c (cb_file_change): Similarly.
3277         * cppmacro.c (check_trad_stringification): Similarly.
3278         * gcc.c (do_spec_1): Similarly.
3279         * genattr.c (main): Similarly.
3280         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
3281         * gencodes.c (main): Similarly.
3282         * genconfig.c (main): Similarly.
3283         * genconstants.c (main): Similarly.
3284         * genemit.c (main): Similarly.
3285         * genextract.c (main): Similarly.
3286         * genopinit.c (main): Similarly.
3287         * genoutput.c (main): Similarly.
3288         * genpeep.c (main): Similarly.
3289         * genrecog.c (main): Similarly.
3290         * mips-tfile.c (add_file, error): Similarly.
3291         * profile.c (init_branch_prob): Similarly.
3292         * reload1.c (spill_failure): Similarly.
3293         * stmt.c (parse_output_constraint): Similarly.
3294         * varasm.c (assemble_variable): Similarly.
3295
3296 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3297
3298         * m68k.c (init_FPA_table): Provide static prototype.
3299         * mips/abi64.h (mips_function_value): Move prototype to ...
3300         * mips-protos.h (mips_function_value): ... here.
3301         * mips.c: Include halfpic.h.
3302         * output.h (rdata_section): Prototype.
3303
3304         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
3305         * m88k.c (m88k_svr3_asm_out_constructor,
3306         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
3307         !OBJECT_FORMAT_ELF.
3308         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
3309         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
3310         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
3311
3312 2001-12-01  Geoff Keating  <geoffk@redhat.com>
3313
3314         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
3315         LO_SUM addresses less than word size are not legitimate,
3316         because they lead to invalid SUBREGs.
3317         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
3318
3319 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
3320
3321         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
3322         while scanning for multiple back edges.
3323
3324 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3325
3326         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
3327         * config/rs6000/tramp.asm: Use it.
3328
3329 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
3330
3331         * gencheck.c, gengenrtl.c: Don't define xmalloc.
3332         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
3333         xmalloc.
3334
3335 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3336
3337         * pa.c (output_ascii): Cast `p' to unsigned char.
3338
3339 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
3340
3341         * config/rs6000/rs6000.c (altivec_expand_builtin): add
3342         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
3343         *_16qi,_8hi, rename existing V4SI ones to *_4si.
3344         (altivec_init_builtins): Ditto.
3345         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
3346
3347         * config/rs6000/rs6000.md: Add attribute types vecsimple,
3348         veccomplex, vecfloat, and vecperm, for altivec instructions.
3349         Modify altivec patterns to use appropriate attribute type.
3350         Modify altivec patterns to match RTL operations where appropriate
3351         (IE no unspec where we can avoid it).
3352         Add vector unit scheduling for ppc7450.
3353         Rename patterns to what they are where appropriate
3354         (altivec_vaddfp->addv4sf3, etc)
3355
3356         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
3357         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
3358
3359         * config/rs6000/sysv4.h: Add -mcpu=7450.
3360
3361         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
3362         _builtin_altivec_ld_interal function.
3363
3364 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3365
3366         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
3367         strchr, strrchr, isascii, gettimeofday.
3368         * config.in, configure: Regenerate.
3369
3370 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
3371
3372         * unroll.c (unroll_loop): Correct special exit cases.
3373
3374 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
3375
3376         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
3377         accept DFmode and DImode only.
3378
3379 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
3380
3381         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
3382         (STACK_DYNAMIC_OFFSET): Same.
3383
3384 2001-11-30  Richard Henderson  <rth@redhat.com>
3385
3386         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
3387
3388 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
3389
3390         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
3391         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
3392         the values in call_used_registers.
3393
3394 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
3395
3396         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
3397         gthr-single.
3398
3399 2001-11-30  Jason Merrill  <jason@redhat.com>
3400
3401         * dwarf2out.c (is_cxx): New fn.
3402         (add_data_member_location_attribute): Check it.
3403         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
3404
3405 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3406
3407         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
3408
3409 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
3410
3411         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
3412         MODE_VECTOR_FLOAT as allowed.
3413
3414 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
3415
3416         Purge cruft now we have build libiberty.
3417
3418         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
3419         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
3420         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
3421         USE_HOST_STRSTR): Delete variables.
3422         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
3423         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
3424         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3425         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
3426         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
3427         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
3428         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
3429         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
3430         (HOST_LIBS): Ditto.
3431         (HOST_RTL): Remove hashtab.o safe-ctype.o.
3432         (OBJS): Remove splay-tree.o.
3433         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
3434         (distclean): No need to delete splay-tree.c obstack.c
3435         hashtab.c safe-ctype.c.
3436         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
3437         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
3438         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
3439         Delete.
3440         * configure.in: Don't use them.
3441         Set and substitute @FORBUILD@.
3442         * config.in, configure: Regenerate.
3443         * doprint.c: Move to libiberty/_doprnt.c.
3444         * doc/configterms.texi: Document that libiberty is now built
3445         up to three times.  Fix typo.
3446
3447 2001-11-30  Jason Merrill  <jason@redhat.com>
3448
3449         * dwarf2out.c (add_data_member_location_attribute): Do the
3450         right thing for virtual bases.
3451         * dbxout.c (dbxout_type): For a virtual base, print the offset
3452         within the vtable.
3453
3454 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
3455
3456         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
3457
3458 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
3459
3460         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
3461         go in memory.
3462         Remove unused attribute for named.
3463
3464 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3465
3466         * genattrtab.c (attr_rtx_1): New function containing the
3467         majority of `attr_rtx'.  Move variable declarations into the
3468         scope where they are used.  Eliminate unnecessary gotos.
3469         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
3470         VA_FIXEDARG, and VA_CLOSE.
3471
3472 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
3473
3474         * config/cris/cris.c (cris_notice_update_cc): Check first
3475         destination also against overlap with cc_status.value2 and second
3476         destination against overlap with cc_status.value1.  For overlaps,
3477         clear overlapped value, don't just CC_STATUS_INIT.
3478
3479         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
3480         Fix typo in comment.
3481         (LINK_SPEC): Remove whitespace at end of line.
3482
3483 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3484
3485         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
3486
3487 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
3488
3489         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
3490         macros for the supported debugging types.
3491
3492 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3493
3494         PR other/4932
3495         * config/i386/i386.c (print_operand):  Verify that the
3496           argument to %c is a constant and not a conditional which
3497           needs to be reversed.
3498
3499 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
3500
3501         * emit-rtl.c (gen_lowpart_common): Fix conversion of
3502         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
3503         of low part of those arrays for 32bit and 64bit hosts.
3504
3505 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3506
3507         * Makefile.in (insn-output.o): Depend on insn-codes.h.
3508
3509 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3510
3511         * configure.in (target_list): Add generated-manpages.
3512         * configure: Regenerate.
3513         * Makefile.in (generated-manpages): Depend on
3514         lang.generated-manpages.
3515         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
3516
3517 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
3518
3519         * config/arm/crti.asm (_init): Add .thumb_func if compiled
3520         with -mthumb.
3521         (_fini): Add .thumb_func if compiled with -mthumb.
3522
3523 2001-11-28  Eric Christopher  <echristo@redhat.com>
3524
3525         * config/mips/mips.c (override_options): Fix thinko in mips_tune
3526         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
3527
3528 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
3529
3530         * alpha.md (tablejump): Use pic_offset_table_rtx
3531         instead of gen_rtx_REG.
3532
3533 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
3534
3535         * expr.c (store_expr): When copying a string constant into an
3536         array, reset the known alignment of the MEM for the section to
3537         be cleared to BITS_PER_UNIT.
3538
3539 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
3540
3541         * config/cris/cris.c: Remove whitespace at end of line.
3542
3543 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
3544
3545         * config.gcc (i[34567]86-*-interix3*): New case.
3546         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
3547         New files.
3548
3549 2001-11-28  Richard Henderson  <rth@redhat.com>
3550
3551         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
3552         symbolic_operand as the predicate.
3553
3554 2001-11-28  Richard Henderson  <rth@redhat.com>
3555
3556         * doloop.c (doloop_modify_runtime): Properly select induction
3557         variable; skip late entry test if biv initializer created by loop.
3558
3559 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3560
3561         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
3562         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
3563
3564         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
3565
3566         * tree.h: Add missing checks on some macros; make formatting more
3567         consistent.
3568
3569         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
3570         level; only add to pending_sizes if find it.
3571
3572         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
3573
3574         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
3575         Add casts to remove warnings.
3576
3577         * Makefile.in (OBJS): Sort alphabetically.
3578
3579         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
3580         Also minor cleanups.
3581
3582 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
3583
3584         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
3585         (FLAGS_TO_PASS): Add STAGE_PREFIX.
3586         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
3587         to STAGE_PREFIX.
3588
3589 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
3590
3591         * cse.c (true_dependence_in_rtx): New function.
3592         (invalidate): Use it.
3593
3594         * c-common.h (GOTO_FAKE_P): New macro.
3595         * tree-inline.c (GOTO_FAKE_P): Set.
3596         * c-tree.texi (GOTO_FAKE_P): Document.
3597
3598         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
3599         containing pointers.
3600         (output_addressed_constants): Check for local/external relocations.
3601         * elfos.h (SELECT_SECTION): Classify data section.
3602         * tm.texi (SELECT_SECTION): Update documentation.
3603
3604         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
3605         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
3606
3607 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3608
3609         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3610         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
3611         OBJECT_FORMAT_ROSE.
3612
3613 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
3614
3615         * config/cris/cris.c: Tweak spacing for prototypes.
3616         (LOSE_AND_RETURN): New macro.
3617         (cris_operand_lossage): New function.
3618         (cris_print_index, cris_print_base): Use cris_operand_lossage
3619         rather than fatal_insn.
3620         (cris_print_operand, cris_print_operand_address): Use
3621         LOSE_AND_RETURN rather than fatal_insn and internal_error.
3622         (cris_output_addr_const): Use LOSE_AND_RETURN and
3623         output_operand_lossage rather than fatal_insn and internal_error
3624         for valid but unexpected rtx expressions.
3625
3626         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
3627         for a SUBREG in src or dest, abort instead.
3628
3629 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3630
3631         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
3632         doc.
3633
3634 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
3635
3636         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
3637         preprocessor define.  If only DBX_DEBUGGING_INFO or only
3638         DWARF2_DEBUGGING_INFO is supported for the target, provide
3639         appropriate definitions.
3640
3641 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3642
3643         * Makefile.in: Update, and add c-objc-common.o dependencies.
3644         * c-lang.c: Remove unnecessary includes.
3645         (c_init): Move bulk of code to c_objc_common_init, and call it.
3646         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
3647         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
3648         c-objc-common.c.
3649         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
3650         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
3651         c_objc_common_init, c_missing_noreturn_ok_p): New.
3652         * toplev.c: Update comment.
3653         * doc/passes.texi: Update.
3654 objc:
3655         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3656         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3657         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
3658         (objc_init): Update to use c_objc_common_init.
3659
3660 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3661
3662         * cpphash.c (_cpp_init_hashtable): Update.
3663         * cpphash.h (struct spec_nodes): Remove n_L.
3664         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
3665
3666 2001-11-17  Richard Henderson  <rth@redhat.com>
3667
3668         * unroll.c (loop_iterations): Move last change ...
3669         * doloop.c (doloop_modify_runtime): ... here.
3670
3671 2001-11-17  Corey Minyard  <minyard@acm.org>
3672             Richard Henderson  <rth@redhat.com>
3673
3674         * unroll.c (loop_iterations): Detect one situation in which we
3675         overestimate the number of iterations.
3676
3677 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3678
3679         * gcc.c (set_input): Export.
3680         Move declaration ...
3681         gcc.h (set_input): ... here.
3682
3683 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3684
3685         * gcc.c (set_collect_gcc_options): New function, split out from
3686         main.
3687         Ignore elided switches.
3688         (do_spec): Invoke before executing command.
3689         (do_spec_1): Likewise.
3690         Fixes PR other/3968.
3691
3692 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
3693
3694         * config/cris/cris.h (INT_ASM_OP): Remove.
3695
3696 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3697
3698         * config/i386/sol2.h (WINT_TYPE): Redefine.
3699         (WINT_TYPE_SIZE): Likewise.
3700
3701 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3702
3703         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
3704         (dup2): Make static and add prototype.
3705         * m68k/plexus.h: Don't define NO_DUP2.
3706         * configure.in (AC_CHECK_FUNCS): Add dup2.
3707         * config.in, configure: Regenerate.
3708
3709         * ia64/aix.h (REG_SIZE): Don't #undef.
3710         * sparc.h (REG_SIZE): Delete.
3711         * flow.c (mark_used_regs): Don't use REG_SIZE.
3712         * regs.h (REG_SIZE): Delete.
3713
3714 2001-11-27  Andreas Schwab  <schwab@suse.de>
3715
3716         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
3717         PREFERRED_DEBUGGING_TYPE.
3718
3719 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3720
3721         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
3722         (expr.o, varasm.o): Depends on langhooks.h.
3723         * c-common.c (c_safe_from_p): Always declare.
3724         (c_expand_expr): Refine when declared.
3725         * c-lang.c (c-common.h): Now include.
3726         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
3727         (c_init): Don't set lang_safe_from_expr.
3728         * expr.c (langhooks.h): Now include.
3729         (lang_safe_from_p): No longer define.
3730         (safe_from_p): Use lang hook.
3731         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
3732         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
3733         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
3734         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
3735         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
3736         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
3737         * langhooks.h (struct lang_hooks): New fields expand_constant
3738         and safe_from_p.
3739         * output.h (output_constant): Size arg is HOST_WIDE_INT.
3740         * stmt.c (expand_decl_init): No longer need to expand constant
3741         for CONST_DECL.
3742         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
3743         * toplev.c (lang_expand_constant): Delete var.
3744         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
3745         operations on SAVE_EXPR.
3746         * varasm.c (langhooks.h): Now include.
3747         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
3748         (record_constant_1, output_addressed_constants): Likewise.
3749         (initializer_constant_valid_p, output_constant): Likewise.
3750         (output_constant_def): Process no-defer of string constant.
3751         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
3752         (output_constant): Strip more conversions.
3753         Track our size and pad for the rest.
3754         (array_size_for_constructor): Remove code for non-byte STRING_CST.
3755         (output_constructor): SIZE now HOST_WIDE_INT.
3756
3757 2001-11-27  Richard Henderson  <rth@redhat.com>
3758
3759         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
3760         in computing DIFF.
3761
3762 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
3763
3764         * cppfiles.c (read_include_file): Add comment.
3765
3766 2001-11-26  Richard Henderson  <rth@redhat.com>
3767
3768         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
3769
3770 2001-11-26  Richard Henderson  <rth@redhat.com>
3771
3772         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
3773         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
3774         commented out override.
3775
3776 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3777
3778         * cppfiles.c (stack_include_file): Don't optimize zero-length
3779         files.
3780         (read_include_file): NUL-terminate read files.
3781         * cpplex.c (handle_newline, skip_escaped_newlines,
3782         get_effective_char, skip_whitespace, parse_identifier,
3783         parse_identifier_slow, parse_number, parse_string,
3784         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
3785         NUL-terminated.
3786         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
3787         Be sure buffers are NUL terminated.
3788         * cppmacro.c (warn_of_redefinition): Kill compile warning.
3789
3790 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3791
3792         * c-common.c: Include tree-inline.h.
3793         (c_language): Move separate definitions here.
3794         (c_common_init_options, c_common_post_options): New.
3795         (c_common_lang_init): Rename c_common_init.
3796         * c-common.h (c_common_lang_init): Similarly.
3797         (c_common_init_options, c_common_post_options): New.
3798         * c-lang.c (c_post_options): Move body to c_common_post_options.
3799         (c_init_options): Use c_common_init_options.
3800         (c_init): Update.
3801         * langhooks.def: Rearrange.
3802         * langhooks.h: Rearrange, and improve comments.
3803         * toplev.c (do_compile): New function.
3804         (toplev_main): Use it.
3805         (lang_independent_f_options, parse_options_and_default_flags,
3806         process_options): Remove trailing periods.
3807         * Makefile.in: Update.
3808 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
3809         functions.
3810         (ojbc_init): Update.
3811
3812 2001-11-26  Richard Henderson  <rth@redhat.com>
3813
3814         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
3815
3816 2001-11-26  DJ Delorie  <dj@redhat.com>
3817
3818         * expr.c (store_constructor): Actually use the value computed
3819         if WORD_REGISTER_OPERATIONS.
3820
3821 2001-11-26  Richard Henderson  <rth@redhat.com>
3822
3823         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
3824         for CONSTRUCTOR.
3825
3826 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
3827
3828         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
3829         correct function on AIX.
3830
3831 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
3832
3833         * toplev.c (process_options): Don't force
3834         flag_optimize_sibling_calls to zero just because exceptions are
3835         enabled.
3836
3837 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
3838
3839         * df.h (transfer_function_sbitmap): Use PARAMS around argument
3840         list in function prototypes.
3841         (transfer_function_bitmap): Likewise.
3842
3843 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
3844
3845         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
3846         * config/i386/netbsd-elf.h: Likewise.
3847
3848 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
3849
3850         * doc/trouble.texi: Remove outdated RS/6000 comments.
3851
3852 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
3853
3854         * final.c (walk_alter_subreg): Fix return value.
3855
3856 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
3857
3858         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
3859         alter_subreg.
3860         * sparc.md (post-reload splitters): Do not call alter_subreg.
3861         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
3862
3863 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
3864
3865         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
3866
3867 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
3868
3869         * final.c: (insn_lengths): Make it an int *, so that large jump
3870         tables don't overflow.
3871
3872 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
3873
3874         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
3875         (format_types): Use it for scanf.
3876         (dollar_arguments_pointer_p): New.
3877         (init_dollar_format_checking): Store details of which arguments
3878         are pointers.
3879         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
3880         (finish_dollar_format_checking): Take extra parameter
3881         pointer_gap_ok.  Treat unused arguments differently if
3882         pointer_gap_ok and the unused arguments are pointers.
3883         (check_format_info_main): Pass extra argument to
3884         finish_dollar_format_checking.
3885         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
3886         unused arguments are present between used arguments with operand
3887         numbers.
3888
3889 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
3890
3891         * df.c: Add prototypes for hybrid_search_bitmap and
3892         hybrid_search_sbitmap.
3893         (hybrid_search_bitmap): New function.
3894         (hybrid_search_sbitmap): New function.
3895         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
3896         (iterative_dataflow_bitmap): Ditto.
3897
3898 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3899
3900         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
3901         address computations.
3902
3903 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3904
3905         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
3906         register b (low part of d).
3907
3908 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3909
3910         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
3911         passed to mcount.
3912
3913 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
3914
3915         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
3916         * config/alpha/x-vms: New file, to compile the above.
3917         * config.gcc (alpha*-dec-vms*): Add x-vms.
3918
3919 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
3920
3921         * genextract.c (main): Set ro_loc for peepholes.
3922
3923 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
3924
3925         * fix-header.c (main): Move inf_buffer termination and inf_limit
3926         calculation to after read.
3927
3928         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
3929         (__UNIX_FOPEN): Define.
3930
3931 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3932
3933         * function.c (assign_stack_temp_for_type): Clear alias set before
3934         setting new one.
3935
3936 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
3937
3938         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
3939         format.
3940         * rs6000.md (cmptf): Fix typo.
3941
3942 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
3943
3944         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
3945         * varasm.c (output_constructor): Use assemble_integer rather
3946         than ASM_OUTPUT_BYTE.
3947
3948 2001-11-23  Andreas Jaeger  <aj@suse.de>
3949
3950         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
3951         extension.
3952
3953 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
3954
3955         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
3956         default definition.
3957         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
3958         (MULTILIB_DEFAULTS): Remove previous definition.
3959
3960 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3961
3962         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
3963         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
3964
3965 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3966
3967         * cris.h: Revert thinko in last patch.
3968
3969 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3970
3971         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
3972         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
3973         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
3974         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
3975         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
3976         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
3977
3978         * predict.c, reg-stack.c: Fix spelling errors.
3979
3980 2001-10-09  Andrew Haley  <aph@redhat.com>
3981
3982         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
3983         start of stack slot.
3984
3985 2001-11-22  Graham Stott  <grahams@redhat.com>
3986
3987         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
3988         replacement jump after original jump.
3989
3990         (verify_flow_info): Remove redundent initialisation.
3991         Handle reaching end of insn list before finding a BARRIER.
3992         Only issue one missing barrier diagnostic.
3993
3994 2001-11-22  Graham Stott  <grahams@redhat.com>
3995
3996         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
3997
3998 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3999
4000         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
4001         insn actually does.
4002
4003 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
4004
4005         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
4006         Fix typo -mm32rx=> -m32rx.
4007
4008         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
4009         targets.
4010
4011         * config.gcc (xscale-coff): Add necessary header files to
4012         tm_file variable.
4013
4014 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
4015
4016         * rs6000.c (output_cbranch): Use $, not %$, in output template.
4017
4018 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4019
4020         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
4021         (lang_type_quals): Declare.
4022         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
4023         retrieve language-specific qualifiers for a type node, instead of
4024         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
4025         lang_dump_tree.
4026         * tree-dump.h: Rename from c-dump.h.
4027         * c-common.h (C_TYPE_QUALS): Removed.
4028         Move declarations for tree-dump.c interface to...
4029         * tree.h: ... here. Remove lang_dump_tree.
4030         * langhooks.h (struct lang_hooks_for_tree_dump): New.
4031         (struct lang_hooks): Add tree_dump hooks.
4032         * langhooks.c (lhd_tree_dump_dump_tree): New function.
4033         (lhd_tree_dump_type_quals): New function.
4034         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
4035         Declare.
4036         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
4037         * Makefile.in: Move tree-dump.o to language-independent back-end.
4038
4039 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4040
4041         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
4042         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
4043         * arc.h (DBX_REGISTER_NUMBER): Likewise.
4044         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
4045         * avr.h (DBX_REGISTER_NUMBER): Likewise.
4046         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
4047         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
4048         * convex.h (DBX_REGISTER_NUMBER): Likewise.
4049         * cris.h (DBX_REGISTER_NUMBER): Likewise.
4050         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
4051         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
4052         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
4053         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
4054         * i370.h (DBX_REGISTER_NUMBER): Likewise.
4055         * i860.h (DBX_REGISTER_NUMBER): Likewise.
4056         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
4057         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
4058         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
4059         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
4060         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
4061         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
4062         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
4063         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
4064         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
4065         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
4066         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
4067         * romp.h (DBX_REGISTER_NUMBER): Likewise.
4068         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
4069         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
4070         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
4071         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
4072         * v850.h (DBX_REGISTER_NUMBER): Likewise.
4073         * vax.h (DBX_REGISTER_NUMBER): Likewise.
4074         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
4075
4076         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
4077         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
4078
4079 2001-11-21  H.J. Lu <hjl@gnu.org>
4080
4081         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
4082
4083 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4084
4085         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
4086         emit_cmp_and_jump_insns.
4087
4088         * stormy16.c (xstormy16_expand_builtin_va_arg,
4089         xstormy16_expand_casesi): Likewise.
4090
4091 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4092
4093         * function.c (keep_stack_depressed): Major rework.
4094         (handle_epilogue_set, emit_equiv_load): New functions.
4095         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
4096         has return value.
4097         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
4098         * rtl.h (SET_IS_RETURN_P): New macro.
4099
4100         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
4101         and also support TREE_ADDRESSABLE.
4102         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
4103
4104 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
4105
4106         * rs6000.md (cmptf_internal1): Replace %$ with $.
4107
4108 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
4109
4110         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
4111         (read_include_file): Use STAT_SIZE_TOO_BIG.
4112
4113         * cppinit.c (INO_T_COPY): Define.
4114         (INO_T_EQ): Uppercase parameters.
4115         (append_include_chain): Use INO_T_COPY.
4116
4117 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
4118
4119         * cfg.c: Fix typos and formatting in the introductory comment.
4120
4121 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
4122
4123         * profile.c (compute_branch_probabilites):  Compute probabilities
4124         for entry/exit edges; estimate probabilities for zero counts.
4125
4126 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
4127
4128         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
4129         to emit_library_call.
4130         * function.c (expand_main_function, expand_function_start,
4131         expand_function_end): Likewise.
4132         * profile.c (output_func_start_profiler): Likewise.
4133         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
4134         second argument to emit_library_call.
4135         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
4136         as second argument to emit_library_call.
4137         * calls.c (emit_library_call): Update fn_type description.
4138
4139 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
4140
4141         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
4142         if fndecl is still DECL_INLINE and has DECL_RESULT.
4143
4144 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4145
4146         * clipper.c (clipper_movstr): Avoid uninitialized warning.
4147         * i960.c (is_mask, legitimize_address): Likewise.
4148         * m88k.c (m88k_expand_prologue): Likewise.
4149         * m88k.md: Likewise.
4150         * mcore.c (emit_new_cond_insn): Likewise.
4151         * stormy16.c (xstormy16_emit_cbranch): Likewise.
4152
4153 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
4154
4155         * config.gcc: Delete powerpcle-*-solaris2* stanza.
4156         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
4157         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
4158         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
4159         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
4160         config/rs6000/t-ppcos: Expunge all references to Solaris.
4161
4162         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
4163
4164         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
4165         output templates.
4166         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
4167         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
4168
4169 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4170
4171         * sh.md: Avoid uninitialized warnings.
4172         * vax.c (vax_rtx_cost): Likewise.
4173
4174 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
4175
4176         * rs6000.c (direct_return): Check if we are saving altivec
4177         registers.
4178         (first_altivec_reg_to_save): New.
4179         Updated stack frame layout comments.
4180         (rs6000_stack_info): Calculate altivec register save size.
4181         Save link register if we saved some altivec registers.
4182         (rs6000_stack_info): Align save size to 16 if altivec abi or
4183         abi_darwin.
4184         (rs6000_stack_info): Calculate altivec register offsets.
4185         (rs6000_stack_info): Add altivec info to save_size.
4186         (debug_stack_info): Add altivec debug info.
4187         (rs6000_emit_prologue): Save altivec registers and vrsave.
4188         (compute_vrsave_mask): New.
4189         (altivec_expand_builtin): Remove unused variables.
4190         (rs6000_parse_abi_options): Add static qualifier.
4191         (rs6000_expand_builtin): Remove unused parameters.
4192         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
4193         (altivec_init_builtins): Same.
4194         (is_altivec_return_reg): New.
4195         (vrsave_operation): New.
4196         (ALTIVEC_REG_BIT): New.
4197         (generate_set_vrsave): New.
4198
4199         * rs6000.md (get_vrsave): New.
4200         (set_vrsave): New.
4201         (*set_vrsave_internal): New.
4202
4203         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
4204         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
4205         altivec_padding_size, vrsave_mask.
4206         (TOTAL_ALTIVEC_REGS): New.
4207         (EPILOGUE_USES): Add VRSAVE_REGNO.
4208
4209 2001-11-20  Jeff Law <law@redhat.com>
4210
4211         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
4212         exit label as necessary.
4213
4214 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
4215
4216         * reload1.c (elimination_effects): Use function_invariant_p
4217         instead of CONSTANT_P when considering register equivalences.
4218
4219 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
4220
4221         * config.gcc: Add FreeBSD/PowerPC target.
4222         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4223         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4224         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4225         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4226         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4227         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
4228         freebsd-spec.h to tm_file.
4229         (rs6000-*-lynxos*): Add lynx.h to tm_file.
4230         * config/freebsd.h: Tidy up.
4231         (USING_CONFIG_FREEBSD): Define.
4232         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
4233         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
4234         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
4235         (TARGET_HAS_F_SETLKW): Define.
4236         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
4237         * config/freebsd-spec.h: New file.
4238         * config/rs6000/freebsd.h: New file.
4239         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
4240         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
4241         USING_SVR4_H to know when to turn on ELF support.
4242         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
4243         define only if not already defined.
4244         Add FreeBSD support.
4245         * config/rs6000/aix.h (TARGET_VERSION): Define.
4246         * config/rs6000/beos.h: Likewise.
4247         * config/rs6000/darwin.h: Likewise.
4248         * config/rs6000/mach.h: Likewise.
4249         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
4250         Don't include lynx.h directly.
4251
4252 2001-11-20  Graham Stott  <grahams@redhat.com>
4253
4254         * unwind-dw2-fde.c (__deregister_frame_info_bases):
4255         Fix lossage in last change return OB.
4256
4257 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
4258
4259         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
4260         Remove unneeded exit related macros.
4261
4262 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
4263
4264         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
4265
4266         * rs6000.c (rs6000_emit_move): Add TFmode case.
4267         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
4268         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
4269         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
4270         * rs6000.h: ... to here.
4271         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
4272         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
4273         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
4274
4275 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4276
4277         * emit-rtl.c (get_mem_attrs): Fix typo.
4278
4279 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
4280
4281         * c-lang.c (finish_file): Backout 2001-11-16
4282         changes, instead set DECL_DEFER_OUTPUT for static inline functions
4283         before calling c_expand_deferred_function.
4284
4285 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
4286
4287         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
4288         Don't register empty .eh_frame sections.
4289         (__deregister_frame_info_bases, __deregister_frame): Don't
4290         unregister them either.
4291
4292 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
4293
4294         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
4295         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
4296         * configure: Regenerate.
4297         * config.in: Add dummy definitions of new flags.
4298         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
4299         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
4300         * gcc.c (ASM_DEBUG_SPEC): New macro.
4301         (asm_debug): New static variable.
4302         (default_compilers): Add asm_debug when assembling from
4303         user input.
4304         (static_specs): Add asm_debug.
4305
4306 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
4307
4308         * config.gcc (*-*-freebsd*): Remove configuration block.
4309
4310 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
4311
4312         bootstrap/4422
4313         * configure.in: Setup ability to run ./stage[1234]/xgcc in
4314         fixinc *as if* it were a proper lang subdirectory.
4315         * configure: Rebuilt.
4316
4317 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
4318
4319         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
4320
4321 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4322
4323         * 1750a.md: Don't use hex format for a const_int.
4324
4325 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
4326
4327         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
4328
4329 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
4330
4331         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
4332         defined (prevents link errors when gettext isn't in the system
4333         library).
4334
4335 2001-11-19  DJ Delorie  <dj@redhat.com>
4336
4337         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
4338         (validate_const_int): New.
4339         (read_rtx): Validate constant integers.
4340         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
4341
4342 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
4343
4344         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
4345
4346 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
4347
4348         * toplev.c (DUMPFILE_FORMAT): Define default.
4349         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
4350         (close_dump_file, compile_file): Likewise.
4351         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
4352         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
4353
4354 2001-11-19  Jeff Law <law@redhat.com>
4355
4356         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
4357         a nop-jump.
4358
4359 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4360
4361         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
4362         Don't fall off the base token run.
4363
4364 2001-11-19  Jason Wilkins <fenix@io.com>
4365
4366         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
4367
4368 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4369
4370         * tree.def (VIEW_CONVERT_EXPR): New tree code.
4371         * tree.h (handled_component_p): New declaration.
4372         * alias.c (handled_component_p): Move function from here ...
4373         * expr.c (handled_component_p): ... to here and non longer static.
4374         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
4375         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
4376         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
4377         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
4378         (expand_expr, case VIEW_CONVERT_EXPR): New case.
4379         (expand_expr, cse ADDR_EXPR): No need to copy if already
4380         BIGGEST_ALIGNMENT.
4381         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
4382         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
4383         (output_constant): Handle VIEW_CONVERT_EXPR.
4384         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
4385         Add new case for VIEW_CONVERT_EXPR.
4386
4387 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4388
4389         * a29k/unix.h (ASM_FILE_START): Const-ify.
4390         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
4391         * i386/isc.h (ASM_FILE_START): Const-ify.
4392         * i386/sun386.h (ASM_FILE_START): Likewise.
4393         * m32r.md: Likewise.
4394         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
4395         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
4396         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
4397         * mn10200.md: Initialize variable.
4398
4399 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
4400
4401         * gcse.c (try_replace_reg): Copy RTX before creating note.
4402
4403         * df.h (df_ref_flags): New uenum.
4404         (DF_REF_FLAGS): New macro.
4405         (struct ref): Add field "flags".
4406         * df.c (HANDLE_SUBREG): Remove.
4407         (df_ref_create): Likewise; set flags field of ref.
4408         (df_def_record_1): Strip down read_write subreg; remove
4409         commented out code; set READ_WRITE flag.
4410         (read_modify_subreg_p): New static function.
4411         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
4412         new argument "flags".
4413         (df_insn_refs_record): Update call of df_uses_record.
4414         (df_insn_modify): Avoid #if 0 around comment.
4415         (df_dump): Dump the read/write flag.
4416
4417         * predict.c (propagate_freq): Make cyclic_probability and frequency
4418         volatile
4419
4420         * i386.c (ix86_cc_mode): Accept USE.
4421
4422         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
4423         jump is turned into simplejump.
4424
4425 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
4426
4427         * doc/fragments.texi, doc/trouble.texi: Remove links to old
4428         installation chapter.
4429         * doc/gcc.texi: Don't claim that this manual documents
4430         installation.  Mark Installation menu entry as being out of date.
4431
4432 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
4433
4434         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
4435         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
4436         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
4437
4438 2001-11-19  Jason Merrill  <jason@redhat.com>
4439
4440         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
4441         cur_token, not after.
4442
4443         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
4444         Lose ASM_OUTPUT_CONSTRUCTOR.
4445         * system.h: Poison it and INT_ASM_OP.
4446         * c-lang.c (finish_file): Don't check for it.
4447         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
4448
4449 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4450
4451         * mmix.c (mmix_cc1_ignored_option): Const-ify.
4452         (mmix_init_machine_status): Make static to match declaration.
4453         (mmix_unique_section): Const-ify.
4454         (mmix_output_quoted_string): Avoid automatic aggregate
4455         initialization.
4456         (mmix_output_register_setting): Likewise.
4457         (mmix_output_shiftvalue_op_from_str): Likewise.
4458
4459         * mmix.h (mmix_cc1_ignored_option): Const-ify.
4460         (ASM_OUTPUT_BYTE): Fix format specifier warning.
4461         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4462
4463 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4464
4465         PR c/4448
4466         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
4467         name __objc_thread_exit_status so that it matches the
4468         variable defined in objc/thr.h.
4469
4470 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4471
4472         PR bootstrap/4020
4473         * mklibgcc.in: Add missing semi-colons.
4474         * Makefile.in: Same.
4475
4476 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4477
4478         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
4479         after re-laying out decl in incomplete case.
4480         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
4481
4482 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4483
4484         * doc/install-old.texi: Move some sections out to ...
4485         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
4486         ... here.  New files.  Make into chapters rather than sections.
4487         * doc/gcc.texi: Include the new files and add menu entries for
4488         them.
4489         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
4490
4491 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4492
4493         * tree.h (TYPE_ALIGN_OK): New flag.
4494         * emit-rtl.c (set_mem_attributes): Handle it.
4495         * expr.c (emit_single_push_insn): Only set to alias set 0 if
4496         doing sibcall optimization.
4497         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
4498         when make temporary.
4499         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
4500         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
4501
4502         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
4503
4504 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4505
4506         * c-decl.c (c_decode_option): Give deprecation warning for
4507         -traditional.
4508         * doc/invoke.texi (-traditional): Note that this option is
4509         deprecated.
4510
4511 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
4512
4513         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
4514         arg to HOST_WIDE_INT, not long.
4515
4516         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
4517         (HAS_INIT_SECTION): Define.
4518         (REAL_ARITHMETIC): Don't undefine.
4519
4520 2001-11-18  Egor Duda  <deo@logos-m.ru>
4521
4522         * config/i386/cygwin.h: Strip leading '*' from name, if any.
4523
4524 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
4525
4526         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
4527         * c-common.c: Include diagnostic.h.
4528         (c_common_finish): New.
4529         * c-common.h (c_common_finish): New.
4530         * c-lang.c (LANG_HOOKS_FINISH): Override.
4531         * c-parse.in: Don't include diagnostic.h.
4532         (finish_parse): Remove.
4533         * langhooks.h: Update comments.
4534         * toplev.c (lang_dependent_init): New prototype.
4535         (finalize): New.
4536         (compile_file): Split cleanup code out to finalize.
4537         (lang_dependent_init): Stop if lang_hooks.init fails.
4538         (toplev_main): Update.
4539         * tree.h (finish_parse): Remove.
4540 objc:
4541         * objc-act.c (LANG_HOOKS_FINISH): Override.
4542
4543 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
4544
4545         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
4546         * config/alpha/vms_tramp.asm: New file.
4547         * config/alpha/vms-tramp.asm: Removed.
4548
4549 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4550
4551         * c-common.c (struct disabled_builtin, disabled_builtins,
4552         disable_builtin_function, builtin_function_disabled_p): New.
4553         (builtin_function_2): Check for disabled built-in functions.
4554         * c-common.h (disable_builtin_function): Declare.
4555         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
4556         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
4557         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
4558
4559 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4560
4561         PR target/4606
4562         * config.gcc: Remove reference to va-clipper.h.
4563
4564 2001-11-17  Stan Shebs  <shebs@apple.com>
4565
4566         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
4567         AltiVec-related bitfields.
4568
4569 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4570
4571         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
4572         (mark_eh_region, case ERT_UKNONW): New case.
4573
4574 2001-11-17  Christopher Faylor  <cgf@redhat.com>
4575             Corinna Vinschen  <vinschen@redhat.com>
4576
4577         * config/i386/cygwin.h: Search target specific include directory for
4578         w32api stuff, if appropriate.
4579
4580 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
4581
4582         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
4583
4584 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
4585
4586         * config/rs6000/rs6000.md: Change all ldvx to lvx.
4587
4588 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
4589
4590         * gensupport.c (process_rtx): Don't assume filename is the first
4591         argument of any rtl.
4592
4593 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4594
4595         * vax-protos.h (reg_was_0_p): New prototype.
4596         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
4597         * vax.c (follows_p, reg_was_0_p): New functions.
4598
4599 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4600
4601         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
4602         (casesi1): Likewise.  Define new pattern which arises by simplification
4603         when operand 1 is a constant int.  Correct pattern which arises by
4604         simplification when operand 1 is zero.
4605
4606 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
4607
4608         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
4609         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
4610         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
4611         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
4612         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
4613         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
4614         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
4615         * config/arm/aof.h: Don't include arm.h.
4616         * config/arm/aout.h: Likewise.
4617         * config/arm/coff.h: Don't include semi.h and aout.h.
4618         * config/arm/elf.h: Don't include aout.h.
4619         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
4620         (TARGET_VERSION): Undef before defining.
4621         (ARM_OS_NAME): Likewise
4622         (TARGET_DEFAULT): Likewise
4623         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
4624         * config/arm/pe.h: Don't include arm/coff.h.
4625         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
4626         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
4627         * config/arm/riscix1-1.h: Likewise.
4628         * config/arm/rix-gas.h: Don't include riscix.h.
4629         (DBX_CONTIN_LENGTH): Undef before defining.
4630         * config/arm/semi.h: Don't include aout.h.
4631         * config/arm/semiaof.h: Don't include aof.h.
4632         * config/arm/strongarm-coff.h: Don't include coff.h.
4633         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
4634         * config/arm/vxarm.h: Don't include arm/coff.h.
4635         * config/arm/xscale-coff.h: Don't include coff.h.
4636
4637 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4638
4639         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
4640         emit_cmp_insn.
4641
4642 2001-11-16  Andreas Jaeger  <aj@suse.de>
4643
4644         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
4645         to ....
4646         (fixup_fallthru_exit_predecessor): ... this.
4647         Change callers and prototype.
4648
4649 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
4650
4651         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
4652         hand; don't use gen_setcc_2.
4653         (ix86_expand_builtin): Fix pshufw.
4654         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
4655         case UNORDERED to emit the right assembler instruction.
4656         (mmx_pshufw): Lose operand 2.
4657         (cvtsi2ss): Fix representation.
4658         From Graham Stott:
4659         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
4660
4661 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
4662
4663         * doc/include/linux-and-gnu.texi: Remove.
4664         * doc/gnu.texi: New.
4665         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
4666         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
4667
4668 2001-11-16  Kazu Hirata  <kazu@hxi.com>
4669
4670         * config/a29k/a29k.c: Fix comment formatting.
4671         * config/a29k/a29k.h: Likewise.
4672         * config/arc/arc.c: Likewise.
4673         * config/arc/arc.h: Likewise.
4674         * config/vax/vax.c: Likewise.
4675         * config/vax/vax.h: Likewise.
4676         * config/we32k/we32k.c: Likewise.
4677         * config/we32k/we32k.h: Likewise.
4678
4679 2001-11-16  Jeff Law  <law@redhat.com>
4680
4681         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
4682         creating a new jump insn.
4683
4684 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4685
4686         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
4687         copy misaligned data.
4688         * varasm.c (assemble_variable): Set alignment into MEM when changed.
4689
4690 2001-11-16  Graham Stott  <grahams@redhat.com>
4691
4692         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
4693         OPALIGN type.
4694
4695 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
4696
4697         * except.c: Support for catching a list of types with a single handler
4698         (struct eh_region): Change type and filter to lists for catch regions.
4699         (mark_eh_region): Mark the filter list for GC also.
4700         (expand_start_catch): Always build a list if argument not NULL and
4701         register each type of the list through add_type_for_runtime.
4702         (duplicate_eh_region_1): Change type into type_list for catch regions.
4703         (assign_filter_values): Assign a filter to each type associated with a
4704         catch region. Assign filter for NULL types in a unique entry in the
4705         filter list.
4706         (build_post_landing_pads): Emit compare and jump for each filter of
4707         the list associated with a catch region.
4708         (reachable_next_level): When the type thrown is known, stop the search
4709         as soon as one type within a catch list matches. Also, a handler is
4710         potentially reachable only if at least one of the types it catches
4711         has not been previously caught.
4712         (collect_one_action_chain): Retrieve the filter for a NULL type list
4713         from the first filter list entry. For non NULL type lists, add an
4714         action record for every filter assigned.
4715         * except.h: Reflect changes in comment before expand_start_catch.
4716
4717 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4718
4719         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
4720         BLKmode.
4721
4722 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
4723
4724         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
4725
4726 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
4727
4728         * c-lang.c (finish_file): Don't emit static inline functions if
4729         they weren't referenced.
4730
4731 2001-11-15  Stan Shebs  <shebs@apple.com>
4732
4733         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
4734
4735 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4736
4737         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
4738         call.
4739         * config/i386/i386.md: Likewise.
4740
4741 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4742
4743         * timevar.c (rtl.h): Include so get fancy abort.
4744
4745 2001-11-15  Dale Johannesen  <dalej@apple.com>
4746
4747         * config/darwin.h (SELECT_RTX_SECTION):  Force address
4748         initializers into 'const' section
4749         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
4750         if_then_else to match result, not operands
4751
4752 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4753
4754         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
4755         * emit-rtl.c (change_address): Fix typo in default alignment.
4756         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
4757         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
4758         * rtl.h (REGNO_PTR_FRAME_P): New macro.
4759
4760         * expr.c (store_field): Pass tree instead of max size; callers changed.
4761         Change handling of alignment.
4762         Only copy to_rtx if is TARGET.
4763         (expand_expr_unaligned): Delete; callers now use expand_expr.
4764         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
4765         (expand_assignment): Change handling of alignment.
4766         Only copy to_rtx if was original.
4767         (get_inner_reference): No longer return alginment; callers changed.
4768         (expand_expr, case COMPONENT_REF): Change handling of alignment.
4769         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
4770         (compare_from_rtx): Delete ALIGN parm; all callers changed.
4771         (do_compare_rtx_and_jump): Likewise.
4772         * expr.h: Reflect above changes.
4773         * tree.h: Likewise.
4774         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
4775         to get_inner_reference.
4776         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
4777         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
4778         * optabs.c: Likewise.
4779         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
4780         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
4781         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
4782         compare_rtx_and_jump, and emit_cmp_jump_insns.
4783         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
4784         * function.c (assign_stack_temp_for_type): No longer static.
4785         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
4786         (prepare_cmp_insn): Delete declaration.
4787         * rtl.h (assign_stack_temp_for_type): Add declaration.
4788         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
4789         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
4790         * config/i386/i386.c,config/mips/mips.c: Likewise.
4791         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
4792         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
4793
4794 2001-11-15  Stan Shebs  <shebs@apple.com>
4795
4796         * config/rs6000/rs6000.h: Fix a comment typo.
4797         (RTX_COSTS): Sort processor versions better.
4798
4799 2001-11-15  Kazu Hirata  <kazu@hxi.com>
4800
4801         * config/h8300/h8300.md: Fix insn length of bit insns.
4802
4803 2001-11-15  Jason Merrill  <jason@redhat.com>
4804
4805         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
4806         DIEs if there were errors in the source.
4807
4808         * config/alpha/alpha-interix.h, config/alpha/elf.h,
4809         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
4810         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
4811         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
4812         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
4813         config/elfos.h, config/lynx.h, config/netware.h,
4814         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
4815         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
4816         uses to use ASM_LONG.
4817
4818 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
4819
4820         * gensupport.c  process_include : Change call to alloca to
4821         xmalloc.
4822
4823 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
4824
4825         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
4826         templates.
4827
4828 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4829
4830         * final.c (alter_subreg): If simplify_subreg can't do anything,
4831         handle REG ourselves and abort for others.
4832
4833 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
4834
4835         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
4836         routines.
4837
4838 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4839
4840         * fix-header.c (read_scan_file): Update.
4841
4842 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4843
4844         * toplev.c (toplev_main): Don't start timing until after
4845         command-line options are parsed.
4846
4847 2001-11-15  Andreas Schwab  <schwab@suse.de>
4848
4849         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
4850         makefile frag, not host makefile frag.
4851         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
4852         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
4853         used.
4854         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
4855         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
4856         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
4857         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
4858         * config/i386/t-dgux (STMP_FIXPROTO): Define.
4859         * config/x-interix: Don't define STMP_FIXPROTO and
4860         FIXPROTO_DEFINES.
4861         * config/t-interix: New file, define STMP_FIXPROTO.
4862         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
4863         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
4864         * config/t-svr4 (FIXPROTO_DEFINES): Define.
4865         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
4866         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
4867         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
4868         * config/m68k/t-hp3200: Renamed from x-hp3200.
4869         * config/i370/t-oe: Renamed from x-oe.
4870         * config/mips/t-iris: Renamed from x-iris.
4871         * config/pa/t-bsd: Renamed from x-pa.
4872         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
4873         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
4874         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
4875         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
4876         config/rs6000/x-cygwin: Remove files.
4877
4878         * configure.in: Check for target objdump and use that in eh_frame
4879         optimization test.
4880         * configure: Regenerated.
4881
4882 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
4883
4884         * jump.c (squeeze_notes): Return true if no real insns were found.
4885         * rtl.h (squeeze_notes): Adjust prototype.
4886         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
4887         squeeze_notes finds no real instructions, abort.
4888         (merge_blocks_move_successor_nojumps): Likewise.
4889         * loop.c (find_and_verify_loops): Likewise.
4890         * stmt.c (expand_end_case): Likewise.
4891         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
4892         find any real instructions.
4893
4894         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
4895
4896         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
4897         conditional jump, request updating life into for the block
4898         containing it.  Fix a typo which prevented life info update.
4899         Clear blocks bitmap before using it.
4900
4901 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4902
4903         * c-common.c: Include c-lex.h.
4904         (c_common_lang_init): Change prototype.  Call init_c_lex and
4905         init_pragma from here.
4906         * c-common.h (c_common_lang_init): Change prototype.
4907         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
4908         * c-lang.c (c_init): Change prototype.  Update.
4909         (c_init_options): Update.
4910         * c-lex.c (cpp_filename): Remove.
4911         (init_c_lex): Update.  Read the main file, and get the original
4912         file name.
4913         (yyparse): Finish the command line options.
4914         * c-parse.in (c_parse_init): Call init_reswords here.
4915         (init_parse): Remove.
4916         * c-tree.h (c_init_decl_processing): New.
4917         * cpphash.c (_cpp_init_hashtable): After initializing the hash
4918         table, populate it.
4919         * cppinit.c (read_original_filename, cpp_finish_options): New.
4920         (cpp_create_reader): New prototype. Defer hash table initialization.
4921         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
4922         hash table.  Get the original filename.
4923         * cpplib.h (cpp_create_reader): Update.
4924         (cpp_start_read): Remove.
4925         (cpp_read_main_file, cpp_finish_options): New.
4926         * cppmain.c (main, do_preprocessing): Update.
4927         * langhooks.h (struct langhooks): Update init prototype.
4928         * toplev.c (general_init, parse_options_and_default_flags,
4929         process_options, lang_indpendent_init, lang_dependent_init,
4930         init_asm_output): New; perform the bulk of initialization.
4931         (compile_file): Move most of initialization to above functions.
4932         (debug_hooks): Initialize statically.
4933         (set_Wunused): Relocate.
4934         (toplev_main): Move most of initialization to other init functions.
4935         Have a clear logic flow.
4936         * tree.h (init_parse, init_decl_processing): Remove.
4937 objc:
4938         * objc-act.c (objc_init): Update prototype, combine with old
4939         init_parse.
4940         (objc_init_options): Update.
4941
4942
4943 2001-11-15  Andreas Jaeger  <aj@suse.de>
4944
4945         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
4946         portability.
4947         * basic-block.h: Adjust prototype.
4948
4949 2001-11-15  Kazu Hirata  <kazu@hxi.com>
4950
4951         * config/rs6000/aix31.h: Fix comment formatting.
4952         * config/rs6000/beos.h: Likewise.
4953         * config/rs6000/darwin.h: Likewise.
4954         * config/rs6000/eabi.asm: Likewise.
4955         * config/rs6000/linux.h: Likewise.
4956         * config/rs6000/linux64.h: Likewise.
4957         * config/rs6000/lynx.h: Likewise.
4958         * config/rs6000/netbsd.h: Likewise.
4959         * config/rs6000/rs6000.c: Likewise.
4960         * config/rs6000/rs6000.h: Likewise.
4961         * config/rs6000/rs6000.md: Likewise.
4962         * config/rs6000/sol2.h: Likewise.
4963         * config/rs6000/tramp.asm: Likewise.
4964         * config/rs6000/xcoff.h: Likewise.
4965         * config/rs6000/xm-beos.h: Likewise.
4966
4967 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
4968
4969         * rtl.def (INCLUDE) : Define.
4970         * gensupport.c  (init_include_reader, process_include,
4971         save_string) :  New functions to implement an include facility
4972         in .md files.
4973         * gensupport.h : Add prototype for init_md_reader_args.
4974         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
4975         genextract.c genflags.c genopinit.c genoutput.c
4976         genpeep.c genrecog.c: Change call to init_md_reader to
4977         init_md_reader_args.
4978         * md.texi: Document (include "path") and -I directives for RTL
4979         generation tools.
4980
4981 2001-11-14  DJ Delorie  <dj@redhat.com>
4982
4983         * integrate.c (get_hard_reg_initial_reg): New.
4984         * integrate.h (get_hard_reg_initial_reg): Prototype.
4985         * local-alloc.c (block_alloc): Don't tie pseudos that
4986         represent call-saved hard regs' initial values.
4987
4988 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4989
4990         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
4991         recursion.
4992
4993 2001-11-14  Roger Sayle <roger@eyesopen.com>
4994
4995         * fold-const.c (fold): Optimize strlen comparisons against zero.
4996
4997 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
4998
4999         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
5000         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
5001         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
5002         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
5003         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
5004         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
5005         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
5006         Include various CPU headers via tm_file.  a.out based platforms now
5007         properly include sparc/aout.h.  sol2.h usage now implies including
5008         elfos.h, svr4.h, and sparc/sysv4.h.
5009         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
5010         Also define to '1'.
5011         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
5012         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
5013         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
5014         Remove.  They are a.out specific and belong in sparc/aout.h.
5015         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
5016         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5017         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
5018         sparc/sparc.h.
5019         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
5020         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
5021         Moved here from sparc/sparc.h.
5022         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
5023         defining.
5024         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
5025         * config/sparc/lynx.h:  Don't include lynx.h.
5026         (SELECT_SECTION): Do not undef.
5027         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
5028         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
5029         and sparc/sysv4.h.
5030         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
5031         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
5032         sparc/aout.h now.
5033         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
5034         Don't undef, there is no need.
5035         * config/sparc/splet.h (CPP_PREDEFINES): Define.
5036         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
5037         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
5038         Don't include sparc/sparc.h.
5039         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
5040         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
5041         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
5042         elfos.h and svr4.h.
5043         (TARGET_VERSION): Define.
5044         * config/sparc/vxsim.h (TARGET_VERSION): Define.
5045
5046 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
5047
5048         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
5049         (cfg_layout_finalize): Use it.
5050         * bb-reorder.c (HAVE_epilogue): Remove.
5051         (make_reorder_chain): Do not care special placement of
5052         last basic block.
5053
5054         * predict.c (expected_value_to_br_prob): Delete the note
5055         once transformed.
5056
5057         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
5058         measure integration time separately.
5059
5060 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5061
5062         * function.c (struct temp_slot): ALIGN now unsigned.
5063
5064 2001-11-14  Kazu Hirata  <kazu@hxi.com>
5065
5066         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
5067         * config/dsp16xx/dsp16xx.h: Likewise.
5068         * config/dsp16xx/dsp16xx.md: Likewise.
5069
5070 2001-11-14  Kazu Hirata  <kazu@hxi.com>
5071
5072         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
5073         that deals with 7-bit shifts in HImode.
5074
5075 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
5076
5077         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
5078         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
5079         (final_scan_insn): Update call of alter_subreg.
5080         (cleanup_subreg_operands): Likewise.
5081         (alter_subreg): Rewrite using simplify_subreg.
5082         (output_address, output_operand): Update call of alter_subreg.
5083         * output.h (alter_subreg): Update prototype.
5084         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
5085         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
5086         * Makefile.in (final.o): Add dependency on expr.h
5087
5088 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5089
5090         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
5091
5092 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
5093
5094         * doc/install.texi (sparc-*-linux*): Mention requirements for
5095         binutils and glibc.
5096
5097 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
5098
5099         * Makefile.in (POD2MAN): Don't include --section=1.
5100         (manext): Rename to man1ext.  All users changed.
5101         (man7ext): New.
5102         (man7dir): New.
5103         (generated-manpages): Also depend on $(docdir)/gfdl.7,
5104         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
5105         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
5106         --section=1 in calls to $(POD2MAN).
5107         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
5108         (maintainer-clean, install, uninstall): Handle the new man pages.
5109         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
5110         (installdirs): Create man7dir.
5111         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
5112         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
5113         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
5114         the SEE ALSO man page section.
5115         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
5116         and fsf-funding(7) in the SEE ALSO man page section.
5117         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
5118         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
5119         * doc/include/fdl.texi, doc/include/funding.texi,
5120         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
5121         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
5122
5123 2001-11-13  Richard Henderson  <rth@redhat.com>
5124
5125         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
5126         as appropriate for the artificial decl.
5127
5128 2001-11-13  Richard Henderson  <rth@redhat.com>
5129
5130         * loop.c (combine_movables): Turn off combination until
5131         move_movables validation bugs are fixed.
5132
5133 2001-11-13  DJ Delorie  <dj@redhat.com>
5134
5135         * config.gcc (powerpc|rs6000): Set default cpp options based
5136         on --with-cpu settings.
5137         * config/rs6000/softfloat.h: New.
5138
5139 2001-11-13  Kazu Hirata  <kazu@hxi.com>
5140
5141         * config/h8300/h8300.c (shift_alg_si): Use special code for
5142         25-bit shifts on H8/S.
5143         (get_shift_alg): Generate special code for 25-bit shifts on
5144         H8/S.
5145
5146 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
5147
5148         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
5149         (adjust_automodify_address_1): New.
5150         * expr.h (adjust_address, adjust_address_nv): Adjust.
5151         (adjust_automodify_address, adjust_automodify_address_nv): Define.
5152         (adjust_address_1): Update prototype.
5153         (adjust_automodify_address_1): Add prototype.
5154         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
5155         (store_by_pieces_2): Likewise.
5156
5157 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5158
5159         * Makefile.in (explow.o): Now depends on ggc.h.
5160         * explow.c (ggc.h): Include.
5161         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
5162
5163         * Makefile.in (expr.o): Depends on insn-attr.h.
5164         * expr.c (insn-attr.h): New include.
5165         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
5166         of MEM.
5167         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
5168         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
5169         clean up related usage in ADDR_EXPR.
5170         (expand_expr_unaligned): Likewise.
5171
5172         * emit-rtl.c (change_address): Fix typo in alias setting.
5173
5174 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5175
5176         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
5177
5178 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5179
5180         PR bootstrap/3451
5181         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
5182         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
5183
5184 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
5185
5186         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
5187         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
5188         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
5189         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
5190         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
5191         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
5192         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
5193         sparc64-*-linux*):  Include various CPU headers via tm_file.
5194         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
5195         (SELECT_SECTION): Likewise.
5196         (SELECT_RTX_SECTION): Likewise.
5197         * config/sparc/sparc_bi.h: New file.
5198         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
5199         * config/sparc/linux-aout.h: Likewise.
5200         * config/sparc/linux.h: Don't include sparc/sysv4.h.
5201         * config/sparc/linux64.h: Likewise.
5202         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
5203         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
5204         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
5205         and dbxcoff.h
5206         (ASM_OUTPUT_IDENT): Do not #undef.
5207         (SELECT_SECTION): Likewise.
5208         (SELECT_RTX_SECTION): Likewise.
5209         * config/sparc/liteelf.h: Don't include gofast.h.
5210         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
5211         * config/sparc/lynx.h: Don't include sparc/sparc.h.
5212         * config/sparc/pbd.h: Likewise.
5213         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
5214         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
5215         * config/sparc/rtemself.h: Don't include rtems.h.
5216         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
5217         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
5218         sparc_bi.h instead.
5219         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
5220         * config/sparc/sol2.h: Include sparc/sparc.h directly.
5221         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
5222         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
5223         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
5224         * config/sparc/sp86x-elf.h: Don't include gofast.h.
5225         * config/sparc/splet.h: Don't include sparc/aout.h.
5226         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
5227         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
5228         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
5229         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
5230         * config/sparc/vxsparc64.h: Don't include gofast.h.
5231         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
5232
5233 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5234
5235         * doc/standards.texi: Mention C99 TC1.
5236
5237 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5238
5239         * mips-protos.h (mips_output_conditional_branch): Const-ify.
5240         * mips.c (mips_output_conditional_branch): Likewise.
5241
5242 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5243
5244         * config/h8300/h8300.c (shift_alg_si): Use special code for
5245         15-bit logical shifts and 31-bit logical shifts.
5246         (get_shift_alg): Generate special code for 15-bit and 31-bit
5247         logical shifts.
5248
5249 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5250
5251         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
5252         doing 6-bit logical shifts on H8/S.
5253         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
5254         (get_shift_alg): Generate special code for 21-bit shifts on
5255         H8/S.
5256
5257 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5258
5259         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
5260         label.
5261
5262 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5263
5264         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
5265         if both size and offset known.
5266
5267 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
5268
5269         * config/ia64/freebsd.h: Fix misspelling.
5270
5271 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5272
5273         * doc/gcc.texi: Move several chapters out to ...
5274         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
5275         doc/include/linux-and-gnu.texi, doc/interface.texi,
5276         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
5277         ... here.  New files.
5278         * doc/gcc.texi, doc/contrib.texi: Move section headings into
5279         contrib.texi.
5280         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
5281
5282 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5283
5284         * config/alpha/alpha-interix.h: Fix comment formatting.
5285         * config/alpha/alpha.c: Likewise.
5286         * config/alpha/alpha.h: Likewise.
5287         * config/alpha/alpha32.h: Likewise.
5288         * config/alpha/freebsd.h: Likewise.
5289         * config/alpha/unicosmk.h: Likewise.
5290         * config/alpha/vms.h: Likewise.
5291
5292 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5293
5294         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5295
5296 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
5297
5298         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
5299         numbers.
5300
5301 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5302
5303         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
5304         from type.
5305         (replace_equiv_address): Call update_temp_slot_address.
5306
5307         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
5308
5309         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
5310
5311 2001-11-12  Kazu Hirata  <kazu@hxi.com>
5312
5313         * config/h8300/h8300.c (shift_alg_qi): New.
5314         (shift_alg_hi): Likewise.
5315         (shift_alg_si): Likewise.
5316         (get_shift_alg): Change the type of count to unsigned int.
5317         Use the tables.
5318
5319 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
5320
5321         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
5322         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
5323         to decide whether to defer a function.
5324         (finish_function): Adjust.
5325         (c_expand_deferred_function): New function.
5326         * c-lang.c (deferred_fns): New variable.
5327         (c_init): Initialize it, and mark it as a root.
5328         (defer_fn): New function.
5329         (finish_file): Expand all deferred functions.
5330         * c-tree.h (defer_fn): Declare.
5331         (c_expand_deferred_function): Likewise.
5332         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
5333         * objc-act.c (deferred_fns): New variable.
5334         (objc_init): Initialize it, and mark it as a root.
5335         (defer_fn): New function.
5336         (finish_file): Expand all deferred functions.
5337
5338 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5339
5340         * alpha.c (unicosmk_special_name): Prototype.
5341         (unicosmk_ssib_name): Delete unused variable.
5342         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
5343         * alpha/vms.h (PREFIX): Undef before defining.
5344         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
5345         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
5346         controlling usage.  Const-ify.
5347         (alias_number): Delete unused variable.
5348         * m32r/m32r.c (m32r_sched_init): Add missing argument.
5349         (m32r_expand_block_move): Fix uninitialized warnings.
5350         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
5351         always true' warnings.
5352         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
5353         * sh/sh.c: Include "integrate.h".
5354         (output_far_jump): Fix uninitialized warning.
5355         * final.c (shorten_branches): Avoid automatic aggregate
5356         initialization.
5357         * integrate.c (subst_constants): Likewise.
5358
5359 2001-11-11  Kazu Hirata  <kazu@hxi.com>
5360
5361         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
5362         (get_shift_alg): Remove redundant code.
5363
5364 2001-11-11  Kazu Hirata  <kazu@hxi.com>
5365
5366         * config/pa/milli64.S: Fix comment formatting.
5367         * config/pa/pa-64.h: Likewise.
5368         * config/pa/pa-linux.h: Likewise.
5369         * config/pa/pa-protos.h: Likewise.
5370         * config/pa/pa.c: Likewise.
5371         * config/pa/pa.h: Likewise.
5372         * config/pa/pa32-linux.h: Likewise.
5373         * config/pa/pa32-regs.h: Likewise.
5374         * config/pa/pa64-hpux.h: Likewise.
5375         * config/pa/pa64-regs.h: Likewise.
5376         * config/pa/som.h: Likewise.
5377
5378 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5379
5380         * doc/gcc.texi: Move several chapters out to ...
5381         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
5382         doc/service.texi, doc/standards.texi, doc/trouble.texi,
5383         doc/vms.texi: ... here.  New files.
5384         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
5385
5386 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
5387
5388         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
5389         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
5390         collect2.c, combine.c, config.in, configure, configure.in,
5391         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
5392         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
5393         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
5394         spelling errors.
5395
5396 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5397
5398         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
5399         Adjust operand number in CONST_DOUBLE.
5400
5401         * expmed.c (extract_bit_field): No longer pass in alignment.
5402         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
5403         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
5404         Likewise.
5405         * expr.c (store_constructor, store_constructor_field): Likewise.
5406         (store_field, emit_group_load, emit_group_store): Likewise.
5407         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
5408         (store_bit_field, extract_bit_field): Likewise.
5409         * calls.c, expr.c, function.c: Change calls to above functions.
5410         * ifcvt.c, stmt.c: Likewise.
5411
5412         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
5413         constant and one is on frame.
5414         If know memref offset, adjust size from decl.
5415
5416 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5417
5418         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
5419         format specifier warning.
5420         * convex.h (ASM_OUTPUT_BYTE): Likewise.
5421         * elfos.h (ALIGN_ASM_OP): Undef before defining.
5422         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
5423         warning.
5424         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5425         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5426         * i386-interix.h (gen_stdcall_suffix): Prototype.
5427         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5428         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
5429         ASM_OUTPUT_LONG_DOUBLE): Likewise.
5430         * i386/interix.c (gen_stdcall_suffix): Const-ify.
5431         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5432         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
5433         specifier warnings.
5434         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5435         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
5436         ASM_OUTPUT_LONG_DOUBLE): Likewise.
5437         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5438         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5439         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5440         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5441         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
5442         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
5443         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5444         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
5445         Likewise.
5446         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
5447         Likewise.
5448         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
5449         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5450         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
5451         Likewise.
5452         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
5453         Likewise.
5454         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
5455         Likewise.
5456         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
5457         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
5458         * m68k/news.h (PRINT_OPERAND): Likewise.
5459         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
5460         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
5461         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5462         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
5463         definition.
5464         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
5465         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
5466         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
5467         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
5468         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
5469         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
5470         PRINT_OPERAND): Likewise.
5471         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
5472         Likewise.
5473         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
5474         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
5475         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
5476         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5477         * mips.c (mips_output_external_libcall): Mark parameter with
5478         ATTRIBUTE_UNUSED.
5479         (mips_asm_file_start): Move variable into the scope where it's
5480         used.
5481         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5482         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
5483         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
5484         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5485         * ns32k.c (print_operand): Likewise.
5486         * pa.c (print_operand, output_div_insn): Likewise.
5487         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
5488         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
5489         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
5490         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
5491         specifier warnings.
5492         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5493         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5494         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
5495         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
5496         specifier warnings.
5497         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5498
5499         * sdbout.c (sdbout_end_epilogue): Mark parameter with
5500         ATTRIBUTE_UNUSED.
5501         * varasm.c (assemble_global): Likewise.
5502
5503 2001-11-11  H.J. Lu <hjl@gnu.org>
5504
5505         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
5506
5507 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
5508
5509         * final.c (*_MAX_SKIP): Use *_max_skip variables.
5510         * flags.h (align_loops_max_skip, align_jumps_max_skip,
5511         align_labels_max_skip): New global variables.
5512         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
5513         align_labels_max_skip): New global variables.
5514         (toplev_main): Set new variables.
5515         * i386.c (override_options): Set max_skip values.
5516
5517 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
5518
5519         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
5520         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
5521         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
5522         don't print an @fptr for labels either.
5523         (xstormy16_output_addr_vec): Don't print @fptr here.
5524         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
5525
5526 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
5527
5528         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
5529         an ANSI/ISO definitino.
5530         (ssa_const_prop): Likewise.
5531
5532 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
5533
5534         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
5535         altivec registers.
5536
5537 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5538
5539         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
5540         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
5541         * cppmain.c (general_init): Call hex_init.
5542         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
5543
5544         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
5545
5546         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
5547         of dgux.c:output_file_start().
5548
5549         * i386/dgux.c: Delete file.
5550
5551 2001-11-09  Richard Henderson  <rth@redhat.com>
5552
5553         * config/alpha/alpha.c (decl_in_text_section): New.
5554         (current_file_function_operand): Use it.
5555         (alpha_encode_section_info, alpha_end_function): Likewise.
5556
5557 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
5558
5559         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
5560         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
5561         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
5562         so OS specific files and use CPP_PREDEFINES for their needs.
5563         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
5564         target headers to tm_file.
5565         * config/ia64/aix.h (TARGET_VERSION): Likewise.
5566         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
5567         * config/ia64/linux.h (TARGET_VERSION): Likewise.
5568         (FUNCTION_PROFILER): Remove.
5569         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
5570         version in config/ia64/linux.h.
5571         * config/ia64/freebsd.h: New file.
5572         * config/freebsd.h: Tidy up.
5573         (_USING_CONFIG_FREEBSD): Define.
5574         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
5575         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
5576         (FBSD_STARTFILE_SPEC): Likewise.
5577         (FBSD_ENDFILE_SPEC): Likewise.
5578         (FBSD_LIB_SPEC): Likewise.
5579         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
5580         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
5581         set an ELF-improper one.
5582
5583 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5584
5585         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
5586         constant can be loaded in a single instruction to a register.  When
5587         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
5588         depdi for insertion of most significant 32-bits on 64-bit hosts.
5589         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
5590         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
5591         * pa.md: New addmove pattern for adding constant_int to HImode
5592         register and moving result to HImode register.  Remove HImode HIGH
5593         and LO_SUM patterns.
5594
5595 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5596
5597         * Makefile.in: Update.
5598         * c-decl.c (print_lang_decl, print_lang_type): Remove.
5599         (print_lang_identifier): Rename c_print_identifier.
5600         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
5601         (print_lang_statistics, lang_print_xnode): Remove.
5602         * c-parse.in (set_yydebug): Rename c_set_yydebug.
5603         * c-tree.h (c_set_yydebug, c_print_identifier): New.
5604         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
5605         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
5606         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
5607         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
5608         (LANG_HOOKS_INITIALIZER): Update.
5609         * langhooks.h (struct lang_hooks): New members.
5610         (lang_print_tree_hook): New.
5611         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
5612         * print-tree.c: Include langhooks.h.
5613         (print_node): Update.
5614         * toplev.c (decode_d_option): Update.
5615         * tree.c: Include langhooks.h.
5616         (dump_tree_statistics): Update.
5617         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
5618         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
5619 objc:
5620         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
5621         LANG_HOOKS_SET_YYDEBUG): Override.
5622         (lang_print_xnode, print_lang_statistics): Remove.
5623
5624 2001-11-09  Richard Henderson  <rth@redhat.com>
5625
5626         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
5627         on the symbol string.
5628
5629 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5630
5631         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
5632         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
5633         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
5634
5635         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
5636
5637         * tlink.c (recompile_files): Copy strings passed to `putenv'.
5638
5639 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
5640
5641         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
5642         (TYPE_READONLY): Likewise.
5643
5644         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
5645
5646         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
5647         don't pass --gdwarf2 to the assembler if the compiler will also
5648         provide debug info.
5649
5650         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
5651         Don't change INDEX.
5652
5653 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5654
5655         * alias.c (nonoverlapping_memrefs_p): New function.
5656         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
5657
5658         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
5659
5660 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
5661
5662         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
5663         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
5664         generating altivec code.
5665         (FIXED_REGISTERS): VRSAVE is fixed.
5666         (CALL_USED_REGISTERS): VRSAVE is call used.
5667
5668 2001-11-09  Jason Eckhardt  <jle@rice.edu>
5669
5670         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
5671         code the branch target as ".+16/.+12", but rather use labels.
5672
5673 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
5674
5675         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
5676         to work around limitations of certain versions of GAS.
5677
5678         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
5679         (muldi3): Update due to SUBREG_BYTE changes.
5680         (casesi): Similarly.
5681
5682 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
5683
5684         * doc/invoke.texi: Remove comment referring to -xf77-version.
5685
5686 2001-11-09  Kazu Hirata  <kazu@hxi.com>
5687
5688         * config/convex/convex.c: Fix comment formatting.
5689         * config/convex/convex.h: Likewise.
5690
5691 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
5692
5693         * Makefile.in (.po.pox): Look both in srcdir and builddir
5694         for $(PACKAGE).pot.
5695         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
5696         to the source directory.
5697
5698 2001-11-09 Ben Elliston  <bje@redhat.com>
5699            Michael Meissner  <meissner@redhat.com>
5700            Andrew MacLeod  <amacleod@redhat.com>
5701            Richard Henderson  <rth@redhat.com>
5702            Nick Clifton  <nickc@redhat.com>
5703            Catherine Moore  <clm@redhat.com>
5704
5705         * m32r.c: Add support for m32rx processor.
5706         * m32r.h: Ditto.
5707         * m32r.md: Ditto.
5708         * t-m32r: Ditto.
5709         * m32r-protos.h: Add prototypes for m32rx functions.
5710         * doc/invoke.texi: Document -m32rx option.
5711
5712 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
5713
5714         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
5715         or after reload.
5716
5717 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5718
5719         * doc/install.texi2html: Use $MAKEINFO --no-split.
5720
5721 2001-11-09  Andreas Schwab  <schwab@suse.de>
5722
5723         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
5724         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
5725         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
5726         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
5727         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
5728
5729 2001-11-09  H.J. Lu <hjl@gnu.org>
5730
5731         * config/mips/mips.c (mips_output_function_prologues): Cast
5732         `tsize' to long for output.
5733
5734 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
5735
5736         * c-lang.c (LANG_HOOKS_NAME): New.
5737         (lang_hooks): Constify.
5738         (c_init_options): Update.
5739         (lang_identify): Remove.
5740         * c-parse.in (language_string): Remove.
5741         * dbxout.c: Include langhooks.h.
5742         (dbxout_symbol_location): Update.
5743         * dwarf2out.c: Include langhooks.h.
5744         (gen_compile_unit_die): Update.
5745         * dwarfout.c: Include langhooks.h.
5746         (prototyped_attribute, output_compile_unit_die): Update.
5747         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
5748         (LANG_HOOKS_INITIALIZER): Update.
5749         * langhooks.h (struct lang_hooks): New members.  Constify.
5750         * stringpool.c: Don't include toplev.h.
5751         (set_identifier_size): Remove.
5752         * toplev.c (toplev_main): Initialize identifier size.
5753         (print_version): Update.
5754         * tree.h (language_string, init_lex, lang_identify,
5755         set_identifier_size): Remove.
5756         * Makefile.in: Update dependencies.
5757         * config/darwin.c: Include langhooks.h.
5758         (func_name_maybe_scoped): Update.
5759         * config/darwin.h (ASM_END_FILE): Update.
5760         * config/nextstep.h (ASM_END_FILE): Update.
5761         * config/nextstep21.h (ASM_END_FILE): Update.
5762         * config/i386/sun386.h (ASM_END_FILE): Update.
5763         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
5764         (rs6000_output_function_epilogue): Update.
5765 objc:
5766         * objc-act.c (LANG_HOOKS_NAME): Override.
5767         (struct lang_hooks): Constify.
5768         (objc_init_options): Update.
5769         (lang_identify): Remove.
5770
5771 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
5772
5773         * fold-const.c (lshift_double): Honor PREC.
5774         (rshift_double): Likewise.
5775
5776 2001-11-08  Kazu Hirata  <kazu@hxi.com>
5777
5778         * config/1750a/1750a.c: Fix comment formatting.
5779         * config/1750a/1750a.h: Likewise.
5780
5781 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
5782
5783         * configure.in (--enable-languages): Be more permissive about
5784         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
5785         * configure: Regenerated.
5786
5787 2001-11-08  Richard Henderson  <rth@redhat.com>
5788
5789         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
5790
5791 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
5792
5793         * config.gcc: Rename stormy16 to xstormy16.
5794         * config/stormy16/stormy-abi: Likewise.
5795         * config/stormy16/stormy16-protos.h: Likewise.
5796         * config/stormy16/stormy16.c: Likewise.
5797         * config/stormy16/stormy16.h: Likewise.
5798         * config/stormy16/stormy16.md: Likewise.
5799
5800 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
5801
5802         * tree.h (TYPE_VOLATILE): Add enable-checking code.
5803         (TYPE_READONLY): Likewise.
5804
5805 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5806
5807         * reload1.c (reload): Don't delete equiv insn if can throw.
5808
5809         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
5810         (clear_storage): Likewise, for OBJECT.
5811
5812 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
5813
5814         * pa.c (emit_move_sequence): Fix SUBREG expression to
5815         use proper byte offset when extending a constant from
5816         SImode to DImode.
5817
5818 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
5819
5820         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
5821         which cannot throw.
5822
5823 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5824
5825         * explow.c (convert_memory_address, case SUBREG): Only return
5826         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
5827
5828 2001-11-08  Richard Henderson  <rth@redhat.com>
5829
5830         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
5831         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
5832         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
5833
5834 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
5835
5836         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
5837
5838 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
5839
5840         * dwarf2out.c (debug_str_hash): New.
5841         (struct indirect_string_node): New.
5842         (struct dw_val_struct): Change type of val_str to it.
5843         (DEBUG_STR_SECTION_FLAGS): Define.
5844         (add_AT_string): Push string into hashtable, increment reference
5845         counter.
5846         (AT_string): Return string from ht_identifier.
5847         (AT_string_form): New.
5848         (free_AT): For dw_val_class_str, just decrement reference counter.
5849         (size_of_string): Remove.
5850         (size_of_die): Use AT_string_form to decide what size the string
5851         occupies in DIE.
5852         (size_of_pubnames): Use strlen instead of size_of_string.
5853         (value_format): Use AT_string_form for dw_val_class_str.
5854         (output_die): Output DW_FORM_strp strings using
5855         dw2_asm_output_offset.
5856         (indirect_string_alloc, output_indirect_string): New.
5857         (dwarf2out_finish): Emit .debug_str strings if there are any.
5858
5859 2001-11-08  Andreas Franck  <afranck@gmx.de>
5860
5861         * configure.in: Add AC_ARG_PROGRAM to support program name
5862         transformation with --program-prefix, --program-suffix and
5863         --program-transform-name.
5864         * configure: Regenerated.
5865         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
5866         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
5867         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
5868         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
5869         program_transform_name the way suggested by autoconf.
5870         (GCC_TARGET_INSTALL_NAME): Define.
5871         (install-driver): Use the transformed target alias name.
5872
5873 2001-11-08  Richard Henderson  <rth@redhat.com>
5874
5875         * config/mips/mips.c (save_restore_insns): Remove GP from the
5876         restore registers mask early instead of special casing it inside
5877         the loop.
5878
5879 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5880
5881         * cp/decl.c (shadow_warning): New function.
5882         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
5883         and an error when a block scope decl shadows a parameter.
5884
5885 2001-11-08  Richard Henderson  <rth@redhat.com>
5886
5887         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
5888         case as well.
5889
5890 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5891
5892         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
5893         to implement floating negation on processors prior to PA 2.0.
5894
5895 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
5896
5897         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
5898         (USE_LINKONCE_INDIRECT): Define.
5899         (dw2_output_indirect_constant_1): Try to output indirect constants
5900         into linkonce sections if possible.
5901         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
5902         (dw2_output_indirect_constants): Likewise.
5903
5904 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
5905
5906         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
5907
5908 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
5909
5910         * c-decl.c (pushdecl): Remove file and line.
5911         * c-typeck.c (pop_init_level): Remove size.
5912
5913 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
5914
5915         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
5916         for rs6000.
5917
5918         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
5919         (TARGET_ALTIVEC): New.
5920         (TARGET_SWITCHES): Add altivec.
5921         (FIRST_PSEUDO_REGISTER): Change to 109.
5922         (CALL_USED_REGISTERS): Same.
5923         (FIRST_ALTIVEC_REGNO): New.
5924         (LAST_ALTIVEC_REGNO): New.
5925         (ALTIVEC_REGNO_P): New.
5926         (UNITS_PER_ALTIVEC_WORD): New.
5927         (ALTIVEC_VECTOR_MODE): New.
5928         (FIXED_REGISTERS): Add altivec registers.
5929         (REG_ALLOC_ORDER): Same.
5930         (HARD_REGNO_NREGS): Adjust for altivec registers.
5931         (HARD_REGNO_MODE_OK): Same.
5932         (MODES_TIEABLE_P): Same.
5933         (REGISTER_MOVE_COST): Same.
5934         (REGNO_REG_CLASS): Same.
5935         (reg_class): Add ALTIVEC_REGS.
5936         (REG_CLASS_NAMES): Same.
5937         (REG_CLASS_CONTENTS): Same.
5938         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
5939         (ALTIVEC_ARG_RETURN): New.
5940         (FUNCTION_VALUE): Handle VECTOR_TYPE.
5941         (LIBCALL_VALUE): Handle altivec vector modes.
5942         (VECTOR_MODE_SUPPORTED_P): New.
5943         (ALTIVEC_ARG_MIN_REG): New.
5944         (ALTIVEC_ARG_MAX_REG): New.
5945         (ALTIVEC_ARG_NUM_REG): New.
5946         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
5947         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
5948         (REGISTER_NAMES): Add altivec regs.
5949         (DEBUG_REGISTER_NAMES): Same.
5950         (ADDITIONAL_REGISTER_NAMES): Same.
5951         (rs6000_builtins): New.
5952         (MD_EXPAND_BUILTIN): New.
5953         (MD_INIT_BUILTINS): New.
5954         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
5955         for AltiVec instructions.
5956         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5957         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
5958         registers.
5959         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
5960         (TARGET_SWITCHES): Add no-altivec.
5961         (DATA_ALIGNMENT): Align vectors to 128 bits.
5962         (TARGET_OPTIONS): Add abi= option.
5963         Add rs6000_abi_string extern.
5964         (LOCAL_ALIGNMENT): New.
5965         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
5966         (MASK_ALTIVEC_ABI): New.
5967         (TARGET_ALTIVEC_ABI): New.
5968         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
5969         call-saved.
5970         (STACK_BOUNDARY): Adjust for altivec.
5971         (BIGGEST_ALIGNMENT): Same.
5972         (rs6000_args): Add vregno.
5973         (USE_ALTIVEC_FOR_ARG_P): New.
5974         (FIXED_REGISTERS): Add vrsave register.
5975         (CALL_USED_REGISTERS): Same.
5976         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
5977         (VRSAVE_REGNO): New.
5978         (reg_class): Add VRSAVE_REGS.
5979         (REG_CLASS_NAMES): Same.
5980         (REG_CLASS_CONTENTS): Same.
5981         (REGNO_REG_CLASS): Same.
5982
5983         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
5984         (ABI_STACK_BOUNDARY): Same.
5985         (BIGGEST_ALIGNMENT): Same.
5986         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
5987         (ROUND_TYPE_ALIGN): Same.
5988
5989         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5990         to 64.
5991
5992         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5993         to 64.
5994
5995         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
5996         to 64.
5997
5998         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
5999         (altivec_expand_builtin): New.
6000         (altivec_init_builtins): New.
6001         (TARGET_EXPAND_BUILTIN): New.
6002         (TARGET_INIT_BUILTINS): New.
6003         (rs6000_init_builtins): New.
6004         (struct builtin_description): New.
6005         (bdesc_2arg): New.
6006         (rs6000_reg_names): Add altivec registers.
6007         (alt_reg_names): Same.
6008         (secondary_reload_class): Altivec regs can hold altivec regs and
6009         memory.
6010         (rs6000_emit_move): Force constants into memory for AltiVec moves.
6011         (print_operand): Add 'y' case for printing altivec memory
6012         operands.
6013         (rs6000_legitimize_address): Legitimize vector addresses into
6014         [REG+REG] or [REG].
6015         (altivec_expand_binop_builtin): New.
6016         New string rs6000_current_abi.
6017         (rs6000_override_options): Call rs6000_parse_abi_options.
6018         (rs6000_parse_abi_options): New.
6019         (function_arg_boundary): Vector arguments must be 16
6020         byte aligned.
6021         (function_arg_advance): Handle vector arguments.
6022         (function_arg_partial_nregs): Same.
6023         (init_cumulative_args): Same.
6024         (function_arg): Same.
6025
6026         * config/rs6000/rs6000.md (altivec_lvx): New.
6027         (type): Add altivec attribute.
6028         (movv4si): New.
6029         (*movv4si_internal): New.
6030         (movv16qi): New.
6031         (*movv16qi_internal): New.
6032         (movv8hi): New.
6033         (*movv8hi_internal1): New.
6034         (movv4sf): New.
6035         (*movv4sf_internal1): New.
6036         (altivec_stvx): New.
6037         (vaddubm): New.
6038         (vadduhm): New.
6039         (vadduwm): New.
6040         (vaddfp): New.
6041         (vaddcuw): New.
6042         (vaddubs): New.
6043         (vaddsbs): New.
6044         (vadduhs): New.
6045         (vaddshs): New.
6046         (vadduws): New.
6047         (vaddsws): New.
6048         (vand): New.
6049         (vandc): New.
6050         (vavgub): New.
6051         (vavgsb): New.
6052         (vavguh): New.
6053         (vavgsh): New.
6054         (vavguw): New.
6055         (vavgsw): New.
6056         (vcmpbfp): New.
6057         (vcmpequb): New.
6058         (vcmpequh): New.
6059         (vcmpequw): New.
6060         (vcmpeqfp): New.
6061         (vcmpgefp): New.
6062         (vcmpgtub): New.
6063         (vcmpgtsb): New.
6064         (vcmpgtuh): New.
6065         (vcmpgtsh): New.
6066         (vcmpgtuw): New.
6067         (vcmpgtsw): New.
6068         (vcmpgtfp): New.
6069         (vcmpgefp): New.
6070         (vcmpgtub): New.
6071         (vcmpgtsb): New.
6072         (vcmpgtuh): New.
6073         (vcmpgtsh): New.
6074         (vcmpgtuw): New.
6075         (vcmpgtsw): New.
6076         (vcmpgtfp): New.
6077         (vmaxub): New.
6078         (vmaxsb): New.
6079         (vmaxuh): New.
6080         (vmaxsh): New.
6081         (vmaxuw): New.
6082         (vmaxsw): New.
6083         (vmaxfp): New.
6084         (vmrghb): New.
6085         (vmrghh): New.
6086         (vmrghw): New.
6087         (vmrglb): New.
6088         (vmrglh): New.
6089         (vmrglw): New.
6090         (vminub): New.
6091         (vminsb): New.
6092         (vminuh): New.
6093         (vminsh): New.
6094         (vminuw): New.
6095         (vminsw): New.
6096         (vminfp): New.
6097         (vmuleub): New.
6098         (vmulesb): New.
6099         (vmuleuh): New.
6100         (vmulesh): New.
6101         (vmuloub): New.
6102         (vmulosb): New.
6103         (vmulouh): New.
6104         (vmulosh): New.
6105         (vnor): New.
6106         (vor): New.
6107         (vpkuhum): New.
6108         (vpkuwum): New.
6109         (vpkpx): New.
6110         (vpkuhss): New.
6111         (vpkshss): New.
6112         (vpkuwss): New.
6113         (vpkswss): New.
6114         (vpkuhus): New.
6115         (vpkshus): New.
6116         (vpkuwus): New.
6117         (vpkswus): New.
6118         (vrlb): New.
6119         (vrlh): New.
6120         (vrlw): New.
6121         (vslb): New.
6122         (vslh): New.
6123         (vslw): New.
6124         (vsl): New.
6125         (vslo): New.
6126         (vsrb): New.
6127         (vrsh): New.
6128         (vrsw): New.
6129         (vsrab): New.
6130         (vsrah): New.
6131         (vsraw): New.
6132         (vsr): New.
6133         (vsro): New.
6134         (vsububm): New.
6135         (vsubuhm): New.
6136         (vsubuwm): New.
6137         (vsubfp): New.
6138         (vsubcuw): New.
6139         (vsububs): New.
6140         (vsubsbs): New.
6141         (vsubuhs): New.
6142         (vsubshs): New.
6143         (vsubuws): New.
6144         (vsubsws): New.
6145         (vsum4ubs): New.
6146         (vsum4sbs): New.
6147         (vsum4shs): New.
6148         (vsum2sws): New.
6149         (vsumsws): New.
6150         (vxor): New.
6151
6152 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
6153
6154         * Makefile.in (df.o): Add fibheap.h to dependencies.
6155
6156         * df.h: Add prototypes for transfer functions, iterative_dataflow
6157         functions.
6158         (enum df_flow_dir): New enum.
6159         (enum df_confluence_op): New enum.
6160         (struct df): Add inverse_rts_map.
6161
6162         * df.c: Add sbitmap.h to the list of includes.
6163         (df_rd_global_compute): Removed.
6164         (df_ru_global_compute): Removed.
6165         (df_lr_global_compute): Removed.
6166         (df_rd_transfer_function): New function.
6167         (df_ru_transfer_function): New function.
6168         (df_lr_transfer_function): New function.
6169         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
6170         Use iterative_dataflow_bitmap instead of df_*_global_compute.
6171         (iterative_dataflow_sbitmap): New function.
6172         (iterative_dataflow_bitmap): New function.
6173
6174 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6175
6176         * doc/gcc.texi: Move terminology and spelling conventions to
6177         htdocs/codingconventions.html.
6178
6179 2001-11-07  Graham Stott  <grahams@redhat.com>
6180
6181         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
6182
6183 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
6184
6185         * expmed.c (expand_mult): Force operand to register before computing
6186         cost.
6187         * i386.c (x86_decompose_lea): New global vairable.
6188         * i386.h (x86_decompose_lea): Declare.
6189         (TARGET_DECOMPOSE_LEA): New macro.
6190         (RTX_COST): Handle leas properly.
6191
6192 2001-11-06  Richard Henderson  <rth@redhat.com>
6193
6194         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
6195         defined for a CONSTRUCTOR; don't check it.
6196
6197 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
6198
6199         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
6200         test for absolute pathnames.
6201
6202 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
6203
6204         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
6205         instructions up to the target pc inclusive.
6206
6207 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
6208
6209         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
6210
6211 2001-11-06  Eric Christopher  <echristo@redhat.com>
6212
6213         * config/mips/mips.md(movdf_internal2): Add constraints for float
6214         to general register move.
6215         * config/mips/elf64.h: Add default ABI.
6216
6217 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6218
6219         * alias.c:: Include langhooks.h.
6220         * emit-rtl.c: Similarly.
6221         * toplev.c: Similarly.
6222         * tree-inline.c: Similarly.
6223         * langhooks-def.h: New, the old langhooks.h.  Give the default
6224         hooks a common prefix.
6225         * langhooks.h: Contents extracted from toplev.h.
6226         * toplev.h: Move langhook stuff to langhooks.h.
6227         * langhooks.c: Give default hooks a common prefix.
6228
6229         * c-lang.c: Include langhooks-def.h.
6230         * objc/objc-act.c: Similarly.
6231         * Makefile.in: Update.
6232         * objc/Make-lang.in: Update.
6233
6234 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
6235
6236         * doc/install.texi: Document that configure options not listed in
6237         this file are unsupported.  Document --with-system-zlib.
6238
6239 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6240
6241         * rtl.h (mem_for_const_double): New declaration.
6242         * varasm.c (mem_for_const_double): New function.
6243         * config/convex/convex.md (movdf): Use it.
6244         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
6245         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
6246         * config/m68k/m68kv4.h: Likewise.
6247
6248         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
6249         of new GP reg classes.
6250
6251         * expr.c (store_field): When making temp object for unaligned
6252         component, set it to alias set 0.
6253
6254 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
6255
6256         * c-common.c (c_expand_expr_stmt): Apply default conversions to
6257         non-lvalue arrays if C99.
6258         * c-typeck.c (default_conversion): Split out code handling
6259         array-to-pointer and function-to-pointer conversions into a
6260         separate default_function_array_conversion function.
6261         (default_function_array_conversion): New function.  Keep track of
6262         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
6263         arrays unchanged outside C99 mode instead of giving an error for
6264         them.
6265         (build_component_ref): Use pedantic_non_lvalue when handling
6266         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
6267         (convert_arguments): Use default_function_array_conversion.
6268         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
6269         non-lvalues are OK.
6270         (unary_complex_lvalue): Likewise.
6271         (internal_build_compound_expr): Use
6272         default_function_array_conversion.  Apply default conversions to
6273         function in compound expression.
6274         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
6275         Use default_function_array_conversion.
6276         * doc/extend.texi: Update documentation of subscripting non-lvalue
6277         arrays.
6278         Fixes PR c/461.
6279
6280 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
6281
6282         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
6283         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
6284         corresponding to the complete set of .po and .gmo files in
6285         the source directory's po subdir, modified by LINGUAS.  Don't
6286         look at ALL_LINGUAS.
6287         * configure.in: Don't set ALL_LINGUAS.
6288         * configure: Regenerate.
6289
6290         * Makefile.in (.po.gmo): Don't move into source directory.
6291         (.po.pox): Clarify comments.
6292         (install-po): Look for .gmo files in both srcdir and objdir;
6293         don't fail if a file is totally missing.
6294         (distclean): rmdir ada subdirectory too.
6295
6296 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
6297
6298         * config/rs6000/rs6000.c (rs6000_select_section): Handle
6299         CONSTRUCTORs _correctly_.
6300
6301 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6302
6303         * c-decl.c (delete_block): Remove.
6304         * c-tree.h (delete_block): Remove.
6305
6306 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6307
6308         * cppexp.c (lex, parse_defined): Update warning about defined.
6309
6310 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
6311
6312         * config/rs6000/rs6000.c (rs6000_select_section): Handle
6313         CONSTRUCTORs too.
6314
6315 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
6316
6317         * config/arm/arm.c (arm_return_in_memory): Cope with
6318         int_size_in_bytes returning -1.
6319
6320         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
6321         DECL being NULL.
6322
6323 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
6324
6325         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
6326         remove unneeded dependencies;
6327         (cfglayout.o): New.
6328         * cfglayout.c, cfglayout.h: New files; break out from ...
6329         * bb-reorder.c: ... here; Remove unneeded includes;
6330
6331 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
6332
6333         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
6334
6335 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
6336
6337         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
6338         mode as well.  Do not explicitly create intermediate regs.
6339
6340 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6341
6342         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
6343         (common_section): Delete unused variable.
6344         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
6345         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
6346         * arm-protos.h (arm_poke_function_name, aof_add_import,
6347         aof_delete_import): Const-ify.
6348         * arm.c (legitimize_pic_address): Wrap variables in the macro
6349         controlling their usage.
6350         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
6351         (arm_poke_function_name, pic_chain, import, aof_add_import,
6352         aof_delete_import): Const-ify.
6353         * i386.c (ix86_osf_output_function_prologue): Const-ify.
6354         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
6355         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
6356         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
6357         * i860/sysv3.h: Add missing comment closure.
6358         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
6359         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
6360         to symbolic_operand.
6361
6362         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
6363         (i960-*-*): Set tmake_file.
6364         (sparc86x-*-elf*): Fix typo in header name.
6365
6366         * sched-rgn.c (schedule_insns): Delete unused variable.
6367
6368 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6369
6370         PR c/2820
6371         * c-typeck.c (lookup_field): Rework to return a chain down to
6372         the looked-up field.
6373         (build_component_ref): Use the new lookup_field to handle
6374         nested anonymous entities correctly.
6375
6376 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6377
6378         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
6379         Change parameters to gen_rtx_CONST_DOUBLE.
6380         (GEN_INT64, sparc_emit_set_const64): Likewise.
6381         * config/sparc/sparc.md (movdf split): Likewise.
6382
6383 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
6384
6385         * unroll.c (calculate_giv_inc): Use find_last_value rather
6386         than just hoping the last instruction is the right SET.
6387         [Fixes 990604-1.c on stormy16.]
6388
6389         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
6390         library at all if -T is used.
6391
6392         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
6393         some uses of uninitialized variables in error cases.
6394
6395         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
6396         look at 'temp' if we won't be using it.
6397
6398         * config/stormy16/stormy16.h (CONST_COSTS): Define.
6399         (RTX_COSTS): Define.
6400         (ADDRESS_COST): Define.
6401         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
6402
6403         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
6404
6405         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
6406         stormy16_asm_output_mi_thunk.
6407         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
6408         function.
6409         * config/stormy16/stormy16-protos.h
6410         (stormy16_asm_output_mi_thunk): New prototype.
6411
6412 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
6413
6414         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
6415         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
6416         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
6417         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
6418         sched-int.h, toplev.c, config/alpha/alpha.c,
6419         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
6420         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
6421         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
6422         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
6423         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
6424         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
6425         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
6426
6427 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6428
6429         * Makefile.in (dbxout.o): Depend on function.h.
6430         * collect2.c (is_in_list): Hide unused function.
6431         * dbxout.c: Include function.h.
6432         (source_label_number, dbxout_source_line, dbxout_source_file,
6433         dbxout_function_end, dbxout_begin_function): Wrap/move inside
6434         macros controlling usage.
6435         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
6436         * output.h (exports_section): Prototype.
6437
6438         * convex.c (convex_output_function_prologue): Fix format specifier
6439         warning.
6440         (asm_declare_function_name): Fix signed/unsigned warning.
6441         (print_operand): Fix format specifier warning.
6442         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
6443         * dsp16xx-protos.h (uns_comparison_operator,
6444         num_1600_core_shifts): Prototype.
6445         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
6446         (frame_size, frame_pointer_offset): Delete.
6447         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
6448         Make static.  Fix format specifier warnings.
6449         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
6450         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
6451         * dsp16xx.md: Add default case in switches.
6452         * fr30.h (IN_RANGE): Delete.
6453         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
6454         * mcore-protos.h (mcore_output_cmov): Const-ify.
6455         * mcore.c (mcore_output_cmov): Likewise.
6456         * mcore.h (switch_to_section): Make static and prototype.
6457         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
6458         unsigned>=0 warnings.
6459         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
6460         * rs6000-protos.h (read_only_data_section,
6461         read_only_private_data_section): Prototype.
6462         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
6463         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
6464         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
6465
6466 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6467
6468         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
6469         ATTRIBUTE_UNUSED.
6470         * final.c (final_scan_insn): Add brackets around body of if-stmt.
6471         * gcc.c (convert_filename): Add static prototype.  Const-ify.
6472         Wrap variable in macros controlling its use.
6473         * output.h (sdata_section): Add prototype.
6474
6475         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6476         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
6477         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
6478         (ASM_FILE_START): Const-ify.
6479         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
6480         specifier warning.
6481         * c4x.md: Don't use the 'U' integer suffix.
6482         * clipper.md (clipper_movstr): Delete declaration.
6483         * d30v-protos.h (d30v_move_2words): Const-ify.
6484         (debug_stack_info): Add prototype.
6485         * d30v.c: Include "integrate.h".
6486         (d30v_function_arg_boundary, d30v_function_arg,
6487         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
6488         signed/unsigned warnings.
6489         (d30v_print_operand_memory_reference, d30v_move_2words):
6490         Const-ify.
6491         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
6492         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
6493         * fr30.md: Const-ify.
6494         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6495         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
6496         (mvs_get_label_page): Hide unused static function.
6497         * i860.c (current_function_original_name): Const-ify.
6498         * i860/sysv3.h (current_function_original_name): Likewise.
6499         * i860/sysv4.h (current_function_original_name): Likewise.
6500         * i960.md: Add default case in switches.  Remove unused variable.
6501         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
6502         * m32r.md: Const-ify.
6503         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
6504         * m68hc11.c: Include "reload.h".
6505         (static_chain_reg, print_options, m68hc11_asm_file_start):
6506         Const-ify.
6507         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
6508         around & in comparison.
6509         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
6510         * mn10200.c (shift_mode): Remove trailing comma.
6511         * mn10300-protos.h (output_tst): Const-ify.
6512         * mn10300.c (output_tst): Likewise.
6513         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
6514         warnings.
6515         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
6516         * pa.c (output_ascii): Likewise.
6517         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
6518         * pdp11.md (expand_unop): Delete declarations.
6519         * pj-protos.h (pj_output_addsi3): Const-ify.
6520         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
6521         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
6522         unique_src_operand): Add prototypes.
6523         (pj_output_store_into_lval): Make definition static.
6524         (pj_function_incoming_arg): Don't use unary plus.
6525         (pj_output_addsi3): Const-ify.
6526         * romp.md (get_symref): Delete declarations.
6527         * v850-c.c (mark_current_function_as_interrupt): Don't return
6528         value from void function.
6529         * v850.c: Include "integrate.h".
6530         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
6531         * vax-protos.h (const_section): Add prototype.
6532
6533 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
6534
6535         * machmode.def: Add documentation for the seventh argument in
6536         vector modes.
6537
6538 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
6539
6540         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
6541         consistently.
6542         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
6543         <-melf>: Don't have markup for ELF acronym.
6544
6545 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
6546
6547         * config.gcc (mmix-*-*): New target.
6548         * doc/invoke.texi: Document MMIX options.
6549         * doc/contrib.texi: Add note about MMIX port to my entry.
6550         * config/mmix/t-mmix: New file.
6551         * config/mmix/mmix.h: New file.
6552         * config/mmix/mmix-protos.h: New file.
6553         * config/mmix/mmix.c: New file.
6554         * config/mmix/mmix.md: New file.
6555         * config/mmix/crti.asm: New file.
6556         * config/mmix/crtn.asm: New file.
6557
6558 2001-11-03  Kazu Hirata  <kazu@hxi.com>
6559
6560         * config/sparc/linux-aout.h: Fix comment formatting.
6561         * config/sparc/linux.h: Likewise.
6562         * config/sparc/linux64.h: Likewise.
6563         * config/sparc/lynx.h: Likewise.
6564         * config/sparc/pbd.h: Likewise.
6565         * config/sparc/sol2-sld-64.h: Likewise.
6566         * config/sparc/sol2.h: Likewise.
6567         * config/sparc/sparc.c: Likewise.
6568         * config/sparc/sparc.h: Likewise.
6569         * config/sparc/sparc.md: Likewise.
6570         * config/sparc/sunos4.h: Likewise.
6571         * config/sparc/vxsim.h: Likewise.
6572         * config/sparc/vxsparc.h: Likewise.
6573         * config/sparc/vxsparc64.h: Likewise.
6574
6575 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6576
6577         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
6578         reference to CONST_DOUBLE_MEM in comment.
6579         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
6580         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
6581         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
6582         * function.c (pop_function_context_from): Don't call
6583         restore_varasm_status.
6584         * function.h (restore_varasm_status): Delete declaration.
6585         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
6586         * rtl.c: Likewise.
6587         * rtl.def (CONST_DOUBLE): Update comment.
6588         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
6589         (CONST_DOUBLE_CHAIN): Likewise.
6590         (CONST_DOUBLE_MEM): Delete.
6591         (gen_rtx_CONST_DOUBLE): Update parameters.
6592         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
6593         Remove reference to CONST_DOUBLE_MEM.
6594         (const_alias_set): New variable.
6595         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
6596         (immed_real_const_1): Adjust tests for 0, 1, and 2.
6597         Don't set CONST_DOUBLE_MEM.
6598         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
6599         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
6600         Put constant in const_alias_set.
6601         (struct pool_constant): ALIGN now unsigned.
6602         OFFSET now HOST_WIDE_INT.
6603         Delete LABEL.
6604         (restore_varasm_status): Deleted.
6605         (mark_pool_constant): Mark desc->rtl.
6606         (force_const_mem): Rework to store rtl in hash table,
6607         not CONST_DOUBLE_MEM.
6608         Put constant in const_alias_set.
6609         (find_pool_constant): Check desc->rtl.
6610         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
6611         (init_varasm_once): Initialize const_alias_set.
6612
6613         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
6614         force_const_mem.
6615
6616         * reload.c (combine_reloads): Don't combine an output reload if there
6617         are other reloads around for part of the output.
6618
6619         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
6620         constant expression.
6621         (set_mem_decl): New function.
6622         * expr.h (set_mem_decl): New declaration.
6623         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
6624         (output_asm_operand_names): Add tab.
6625         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
6626
6627         * builtins.c (get_memory_rtx): Properly set MEM alias set and
6628         attributes.
6629
6630 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
6631
6632         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
6633         Use "invalid" instead of "illegal".  Use @r in comments in
6634         examples.
6635
6636 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6637
6638         * c-decl.c (pushdecl): Move block inside if conditional to remove
6639         possibility of a segfault.  Lookup block-level extern
6640         variables in enclosing scopes correctly.
6641
6642         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
6643
6644 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
6645
6646         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
6647         SUBREG so we avoid SUBREGing memory.
6648
6649         * expmed.c (store_bit_field): Same.
6650
6651 2001-11-02  DJ Delorie  <dj@redhat.com>
6652
6653         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
6654         using FP registers for DImode mem-mem moves is acceptable.
6655
6656 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
6657
6658         * builtins.c (apply_args_size): Handle vector arguments.
6659         (apply_result_size): Same.
6660
6661         * machmode.def: Set WIDER mode field for all vector entries.
6662
6663 2001-11-02  Graham Stott  <grahams@redhat.com>
6664
6665         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
6666
6667 2001-11-01  Eric Christopher  <echristo@redhat.com>
6668
6669         * config.gcc: Revert part of earlier patch.
6670         * config/mips/linux.h: Ditto.
6671         * df.c: Include tm_p.h to avoid warnings.
6672         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
6673         #if/#endif.
6674         * config/mips/mips.c: Define mips_abi regardless.
6675         (mips_output_function_prologues): Add long casts for .frame
6676         output.
6677         (override_options): Allow use of ABI_32.
6678
6679 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6680
6681         * config/m68hc11/m68hc11.c: Fix comment formatting.
6682         * config/m68hc11/m68hc11.h: Likewise.
6683         * config/m68hc11/m68hc11.md: Likewise.
6684
6685 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6686
6687         * c-typeck.c (default_conversion): Retain the original expression
6688         codes.
6689         * gcc.dg/Wparentheses.c: New tests.
6690
6691 2001-11-01  David S. Miller  <davem@redhat.com>
6692
6693         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
6694         64-bit Sparc description more in line with reality.
6695
6696 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
6697
6698         * Makefile.in (GCOV_OBJS): Add version.o.
6699         * gcov.c: Include "version.h" and <getopt.h>.
6700         (gcov_version_string): Remove.
6701         (print_usage): Take a parameter to determine whether this is a
6702         call from --help or an error message.  Give fuller output that
6703         follows the GNU Coding Standards for --help.
6704         (print_version): New function.
6705         (options): New.
6706         (process_args): Use getopt_long.  Support long options.  Follow
6707         GNU Coding Standards for --help and --version.
6708         * doc/gcov.texi: Document long options.
6709         Addresses part of PR other/704.
6710
6711 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6712
6713         * pa.c (output_move_double): Fix typo in double load.
6714
6715 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6716
6717         * config/h8300/h8300.c (h8300_encode_label): Compute a string
6718         before passing it to ggc_alloc_string.
6719
6720 2001-11-01  Kazu Hirata  <kazu@hxi.com>
6721
6722         * config/m68k/3b1.h: Fix comment formatting.
6723         * config/m68k/3b1g.h: Likewise.
6724         * config/m68k/a-ux.h: Likewise.
6725         * config/m68k/amix.h: Likewise.
6726         * config/m68k/apollo68.h: Likewise.
6727         * config/m68k/atari.h: Likewise.
6728         * config/m68k/aux-exit.c: Likewise.
6729         * config/m68k/ccur-GAS.h: Likewise.
6730         * config/m68k/crds.h: Likewise.
6731         * config/m68k/dpx2.h: Likewise.
6732         * config/m68k/dpx2g.h: Likewise.
6733         * config/m68k/hp310.h: Likewise.
6734         * config/m68k/hp320.h: Likewise.
6735         * config/m68k/isi.h: Likewise.
6736         * config/m68k/linux.h: Likewise.
6737         * config/m68k/lynx.h: Likewise.
6738         * config/m68k/m68k-psos.h: Likewise.
6739         * config/m68k/m68k.c: Likewise.
6740         * config/m68k/m68k.h: Likewise.
6741         * config/m68k/m68k.md: Likewise.
6742         * config/m68k/m68kelf.h: Likewise.
6743         * config/m68k/m68kv4.h: Likewise.
6744         * config/m68k/mot3300.h: Likewise.
6745         * config/m68k/news.h: Likewise.
6746         * config/m68k/next.h: Likewise.
6747         * config/m68k/pbb.h: Likewise.
6748         * config/m68k/plexus.h: Likewise.
6749         * config/m68k/sgs.h: Likewise.
6750         * config/m68k/sun3.h: Likewise.
6751         * config/m68k/tower.h: Likewise.
6752         * config/m68k/vxm68k.h: Likewise.
6753
6754 2001-10-31  DJ Delorie  <dj@redhat.com>
6755
6756         * config/mips/mips.h (mips_cache_flush_func): Prototype.
6757         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
6758         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
6759         * config/mips/mips.c (mips_cache_flush_func): New.
6760         * doc/invoke.texi: Document the new options.
6761
6762 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
6763
6764         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
6765         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
6766
6767         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
6768
6769         * config/cris/cris.c: Include output.h after tree.h but before
6770         target.h.
6771
6772 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
6773
6774         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
6775         (INTL_SUBDIRS): Just intl.
6776         (.SUFFIXES): Add .gmo .po .pox.
6777         (native): Also depend on build-@POSUB@.
6778         (intl.all, intl.install): Depend on config.h and things it includes.
6779         (po-generated): New target; depend on c-parse.c and tradcif.c.
6780         (install-normal): Also depend on install-@POSUB@.
6781         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
6782         (build-, install-, build-po, update-po, install-po,
6783         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
6784
6785         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
6786         * configure.in: Don't munge XGETTEXT.  Don't generate
6787         po/Makefile.in.
6788         * configure: Regenerate.
6789
6790         * exgettext: Delete.
6791         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
6792         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
6793
6794 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6795
6796         * config/h8300/h8300.md (two anonymous patterns): New.
6797
6798 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
6799
6800         * tree.h (tree_index): Add support for V16QI and V8HI.
6801         (V8HI_type_node): New.
6802         (V16QI_type_node): New.
6803
6804         * tree.c (build_common_tree_nodes_2): Same.
6805
6806         * c-common.c (type_for_mode): Same.
6807
6808 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6809
6810         * config/i386/att.h: Fix comment formatting.
6811         * config/i386/beos-elf.h: Likewise.
6812         * config/i386/bsd.h: Likewise.
6813         * config/i386/bsd386.h: Likewise.
6814         * config/i386/crtdll.h: Likewise.
6815         * config/i386/cygwin.asm: Likewise.
6816         * config/i386/cygwin.h: Likewise.
6817         * config/i386/djgpp.h: Likewise.
6818         * config/i386/freebsd-aout.h: Likewise.
6819         * config/i386/freebsd.h: Likewise.
6820         * config/i386/gas.h: Likewise.
6821         * config/i386/i386-interix.h: Likewise.
6822         * config/i386/i386-protos.h: Likewise.
6823         * config/i386/i386.c: Likewise.
6824         * config/i386/i386.h: Likewise.
6825         * config/i386/i386.md: Likewise.
6826         * config/i386/i386elf.h: Likewise.
6827         * config/i386/interix.c: Likewise.
6828         * config/i386/isc.h: Likewise.
6829         * config/i386/isccoff.h: Likewise.
6830         * config/i386/iscdbx.h: Likewise.
6831         * config/i386/linux.h: Likewise.
6832         * config/i386/lynx.h: Likewise.
6833         * config/i386/mingw32.h: Likewise.
6834         * config/i386/netbsd-elf.h: Likewise.
6835         * config/i386/next.h: Likewise.
6836         * config/i386/osf1elf.h: Likewise.
6837         * config/i386/osfrose.h: Likewise.
6838         * config/i386/sco5.h: Likewise.
6839         * config/i386/seq-gas.h: Likewise.
6840         * config/i386/seq-sysv3.h: Likewise.
6841         * config/i386/sequent.h: Likewise.
6842         * config/i386/sol2.h: Likewise.
6843         * config/i386/sun386.h: Likewise.
6844         * config/i386/uwin.asm: Likewise.
6845         * config/i386/uwin.h: Likewise.
6846         * config/i386/vxi386.h: Likewise.
6847         * config/i386/win32.h: Likewise.
6848         * config/i386/winnt.c: Likewise.
6849         * config/i386/xm-cygwin.h: Likewise.
6850         * config/i386/xm-mingw32.h: Likewise.
6851
6852 2001-10-31  Kazu Hirata  <kazu@hxi.com>
6853
6854         * builtins.def: Fix comment typos.
6855         * config/alpha.c: Likewise.
6856         * config/arm/arm.c: Likewise.
6857         * config/avr/avr.h: Likewise.
6858         * config/d30v/d30v.c: Likewise.
6859         * config/d30v/d30v.h: Likewise.
6860         * config/d30v/d30v.md: Likewise.
6861         * config/dsp16xx/dsp16xx.c: Likewise.
6862         * config/fr30/fr30.c: Likewise.
6863         * config/fr30/fr30.md: Likewise.
6864         * config/i386/i386.c: Likewise.
6865         * config/i860/i860.c: Likewise.
6866         * config/i960/i960.c: Likewise.
6867         * config/ia64/ia64.c: Likewise.
6868         * config/mips/mips.c: Likewise.
6869         * config/pa/pa.c: Likewise.
6870         * config/rs6000/rs6000.c: Likewise.
6871         * config/s390/s390.c: Likewise.
6872         * config/sparc/sparc.c: Likewise.
6873
6874 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6875
6876         * config/mips/elf.h: Fix comment formatting.
6877         * config/mips/elf64.h: Likewise.
6878         * config/mips/iris5.h: Likewise.
6879         * config/mips/iris5gas.h: Likewise.
6880         * config/mips/iris6.h: Likewise.
6881         * config/mips/isa3264.h: Likewise.
6882         * config/mips/linux.h: Likewise.
6883         * config/mips/mips.c: Likewise.
6884         * config/mips/mips.h: Likewise.
6885         * config/mips/mips.md: Likewise.
6886         * config/mips/mips16.S: Likewise.
6887         * config/mips/netbsd.h: Likewise.
6888         * config/mips/osfrose.h: Likewise.
6889         * config/mips/r3900.h: Likewise.
6890         * config/mips/sni-svr4.h: Likewise.
6891         * config/mips/svr4-t.h: Likewise.
6892         * config/mips/ultrix.h: Likewise.
6893
6894 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
6895
6896         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
6897         when we update head->current.
6898
6899 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
6900
6901         * tree.c (id_string_size): Remove.
6902         (dump_tree_statistics): Update.
6903         * toplev.c (compile_file): If dumping stats, dump tree stats too.
6904
6905 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
6906
6907         * sched-rgn.c (schedule_insns): Fix comment.
6908
6909 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
6910
6911         * configure.in: Correct previous change: don't assume that
6912         gas's version number _isn't_ the last thing on the line, or
6913         isn't the only number on the line, either.
6914         * configure: Regenerate.
6915
6916 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6917
6918         * cfgcleanup.c: Fix a comment typo.
6919
6920 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6921
6922         * alias.c: Fix comment formatting.
6923         * recog.c: Likewise.
6924         * config/cris/cris.c: Likewise.
6925         * config/cris/cris.h: Likewise.
6926         * config/i960/i960.c: Likewise.
6927         * config/i960/i960.h: Likewise.
6928
6929 2001-10-30  Kazu Hirata  <kazu@hxi.com>
6930
6931         * config/arm/arm.c: Fix a comment typo.
6932         * config/arm/arm.h: Likewise.
6933         * config/ia64/ia64.c: Likewise.
6934
6935 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
6936
6937         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
6938         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
6939         * rtl.h (set_unique_reg_note): Change return value.
6940         * gcse.c (try_replace_reg): Use set_unique_reg_note.
6941         * cse.c (cse_insn): Likewise.
6942         * expr.c (emit_move_insn): Likewise.
6943         * explow.c (force_reg): Likewise.
6944         * local-alloc (update_equiv_regs): Likewise.
6945         * loop.c (move_moveables, load_mems): Likewise.
6946         * reload (find_reloads): Likewise.
6947
6948 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
6949
6950         Localization fixes.
6951         * c-decl.c (parmlist_tags_warning, start_struct,
6952         check_for_loop_decls): Separate messages for struct, union and
6953         enum cases to allow for languages in which they have different
6954         genders.
6955         * c-format.c (scanf_flag_specs): Separate short and long name of
6956         the assignment suppression feature.
6957         (check_format_types): Localize "pointer" and "different types"
6958         strings.
6959         * c-lex.c (lex_number): Localize "an unsigned long int" and
6960         related strings.
6961         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
6962         warning message.
6963         * c-typeck.c (build_unary_up): Separate messages for increment and
6964         decrement cases to allow for languages in which they use different
6965         articles.  Localize the strings "increment" and "decrement" in one
6966         case.
6967
6968 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
6969
6970         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
6971         when no changes has been made.
6972
6973         * gcse.c (reg_set_bitmap): Turn into reg_set.
6974         (modify_mem_list_set, canon_modify_mem_list_set)
6975         (clear_modify_mem_tables, free_modify_mem_tables): New.
6976         (gcse_main); Use free_modify_mem_tables.
6977         (free_gcse_mem): Likewise; free the bitmaps.
6978         (alloc_gcse_main): Initialize the bitmaps.
6979         (canon_list_insert): Set canon_modify_mem_list_set.
6980         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
6981         (compute_hash_table): Use clear_modify_mem_tables.
6982         (reset_opr_set_tables): Likewise.
6983         (oprs_not_set_p): reg_set_bitmap is regset.
6984         (mark_set, mark_clobber): Likewise.
6985
6986         * df.h (DF_EQUIV_NOTES): New constant.
6987         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
6988         when asked for.
6989
6990         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
6991         (init_regions, schedule_insns): Conditionalize the checking
6992         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
6993
6994 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
6995
6996         * i386.md (movti_rex64 splitter): Fix condition.
6997
6998 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
6999
7000         * configure.in: Do not assume that gas's version number is the
7001         last thing on the first line of as --version output.
7002         * configure: Regenerate.
7003
7004         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
7005         MT_WARNING, MT_ERROR, MT_FATAL.
7006         (main): Call gcc_init_libintl.
7007         (v_message): Call gettext on msgid and "warning: "
7008         * tradcif.y: Include intl.h.
7009         (yyerror): Make parameter definition consistent with
7010         prototype.  Call gettext on msgid argument.
7011
7012 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7013
7014         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
7015         warnings.
7016
7017         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
7018
7019 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7020
7021         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
7022         before referencing it.
7023
7024 2001-10-26  DJ Delorie  <dj@redhat.com>
7025
7026         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
7027         override -G, and force -G0.
7028
7029 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
7030
7031         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
7032         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
7033         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
7034         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
7035
7036         * loop.h (struct induction): Rename ext_dependant to
7037         ext_dependent.
7038         * loop.c: Change all uses.
7039         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
7040         All callers changed.
7041         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
7042
7043 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
7044
7045         * c-parse.in (expr_no_commas, primary), c-typeck.c
7046         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
7047
7048 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
7049
7050         Undo assemble_name change in earlier patch.
7051
7052 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
7053
7054         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
7055         determining the type of the receiver, do not check that TREE_CODE
7056         of receiver is CALL_EXPR before calling receiver_is_class_object().
7057         (receiver_is_class_object): For the GNU runtime: recognize
7058         the case that the receiver is self in a class method context.
7059         Check that TREE_CODE of receiver is CALL_EXPR when checking that
7060         the receiver is a call to objc_get_class.
7061
7062 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7063
7064         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
7065
7066 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7067
7068         * Makefile.in (OBJS): Put all files in alphabetical order.
7069
7070         * dwarf2out.c (add_const_value_attribute): Fix error in last
7071         change.
7072
7073 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
7074
7075         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
7076         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
7077         fix warning.
7078         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
7079         (life_analysis): call purge_all_dead_edges after deleting noops.
7080         (delete_noop_move): Do not purge CFG.
7081         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
7082
7083 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
7084
7085         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
7086         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
7087         (ASM_GLOBALIZE_LABEL): Use assemble_name.
7088         (ASM_OUTPUT_COMMON): Likewise.
7089         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
7090         (rs6000_output_function_epilogue): Likewise.
7091         (output_mi_thunk): Fix typo.
7092         (rs6000_output_symbol_ref): Use assemble_name.
7093         (output_toc): Likewise.
7094         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
7095         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
7096         assemble_name calls STRIP_NAME_ENCODING.
7097         (ASM_OUTPUT_LABEL): Use assemble_name.
7098         (ASM_GLOBALIZE_LABEL): Likewise.
7099         (ASM_DECLARE_FUNCTION_NAME): Likewise.
7100         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
7101         (ASM_OUTPUT_LOCAL): Likewise.
7102
7103 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7104
7105         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
7106         (expand_builtin_apply, expand_builtin_return): Likewise.
7107         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
7108
7109 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
7110
7111         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
7112         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
7113         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
7114         configure, configure.in, except.c, except.h, flow.c, function.c,
7115         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
7116         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
7117         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
7118         unroll.c: Fix spelling errors.
7119
7120         * doc/extend.texi, doc/invoke.texi: Fix spelling.
7121
7122         * doc/gcc.texi: Document use of "dependent" and American spelling.
7123
7124 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
7125
7126         * expr.c (emit_group_load): Support CONCATs by storing them to memory
7127         and reloading.
7128
7129 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7130
7131         * expr.c (store_constructor_field): Only call adjust_address on MEM.
7132
7133 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
7134
7135         * genrecog.c (write_switch):  Output if before switch for
7136         DT_elt_zero_wide_safe.
7137
7138 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7139
7140         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
7141         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
7142         (FUNCTION_PROFILER): Const-ify.
7143         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
7144         (eliminate_constant_term, assemble_name, output_addr_const):
7145         Remove declarations.
7146         (ptr_half_pic_address_p, half_pic_hash): Prototype.
7147         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
7148         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
7149         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
7150         (half_pic_declare, half_pic_external): Const-ify.
7151         * toplev.c: Include "halfpic.h".
7152
7153 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
7154
7155         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
7156         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
7157         config/i386/i386.c, config/i386/i386-interix.h,
7158         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
7159         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
7160         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
7161         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
7162         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
7163         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
7164         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
7165         spelling errors.
7166
7167         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
7168         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
7169         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
7170         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
7171         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
7172         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
7173         system.h, toplev.c: Fix spelling errors.
7174
7175 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7176
7177         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
7178
7179         * dwarf2out.c (reg_number): Abort if pseudo.
7180         (reg_loc_descriptor): Return 0 if pseudo.
7181         (is_based_loc): Return 0 if pseudo.
7182         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
7183         recursive calls.
7184         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
7185         (loc_descriptor): Return 0 if can't find location and handle 0
7186         return from recursive calls.
7187         (loc_descriptor_from_tree): Likewise.
7188         Fix handling of indirect.
7189         Also return 0 for PLACEHOLDER_EXPR.
7190         Clean up COMPONENT_REF cases.
7191         (add_AT_location_descriptor): Simplify, but handle 0 return from
7192         loc_descriptor.
7193         (add_const_value_attribute): Avoid shift count warning.
7194         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
7195         Set comp_unit_die as context if not in function.
7196
7197         * config/mips/mips-protos.h: Break up long lines.
7198         Remove needless #ifdef/#endif blocks.
7199         Don't declare functions declared in file made by genpreds or recog.h.
7200         * config/mips/mips.c (mips_output_function_prologue): TSIZE
7201         is now HOST_WIDE_INT; delete unneeded casts.
7202         * config/mips/mips.h: Don't use #elif.
7203
7204         * expr.c (stor_constructor_field): Always call adjust_address.
7205         Copy TARGET before changing its alias set.
7206         (store_field): Likewise, for TO_RTX.
7207         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
7208         replacement.
7209         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
7210         (find_placeholder): Return 0 if can't find object.
7211         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
7212         returns 0.
7213
7214 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
7215
7216         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
7217
7218 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
7219
7220         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
7221         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
7222         (merge_blocks): Properly udpate life after making edge nonfallthru.
7223         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
7224
7225 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7226
7227         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
7228
7229 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7230
7231         * c-typeck.c (convert_arguments): When comparing for enumeral
7232         type equality, use TYPE_MAIN_VARIANT.
7233         * gcc.dg/Wconversion.c: New tests.
7234
7235 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7236
7237         * s390/s390.c: Fix comment typos.
7238         * s390/s390.h: Likewise.
7239         * s390/s390.md: Likewise.
7240
7241 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7242
7243         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
7244         (walk_tree): Use it for tail calls where appropriate.
7245
7246 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7247
7248         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
7249         non-local label_refs.
7250
7251 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7252
7253         * config/h8300/h8300.md (4 anonymous patterns): New.
7254
7255 2001-10-26  Kazu Hirata  <kazu@hxi.com>
7256
7257         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
7258         algorithm through the shift_info structure.
7259         (emit_a_shift): Update the use of get_shift_alg.
7260
7261 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
7262
7263         * sched-rgn.c: Remove bitset typedef.
7264         Change bitset to sbitmap in prototypes / variable types.
7265         Remove bbset_size.
7266         Remove edgeset_bits.
7267         Remove edgeset_size.
7268         s/BITSET_ADD/SET_BIT/g
7269         s/BITSET_INVERT/sbitmap_ones/g
7270         s/BITSET_INTER/sbitmap_a_and_b/g
7271         s/BITSET_UNION/sbitmap_a_or_b/g
7272         s/BITSET_DIFFER/sbitmap_difference/g
7273         s/bitset_member/TEST_BIT/g
7274         (BITSET_*): Removed.
7275         (bitset_member): Removed.
7276         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
7277         EXECUTE_IF_SET_IN_SBITMAP.
7278         (split_edges): Rewrite, use sbitmap functions instead of bitset
7279         operations.
7280         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
7281
7282 2001-10-26  Andreas Schwab  <schwab@suse.de>
7283
7284         * reload1.c (emit_input_reload_insns): Fix parens in last
7285         (undocumented) change that was supposed to change only whitespace.
7286
7287 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7288
7289         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
7290
7291         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
7292         ASM_OPERANDS.
7293
7294 2001-10-26  Andreas Jaeger  <aj@suse.de>
7295
7296         * flow.c (clear_log_links): Remove unused variable.
7297         * cfgcleanup.c (cleanup_cfg): Likewise.
7298
7299 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
7300
7301         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
7302         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
7303
7304 2001-10-26  Richard Henderson  <rth@redhat.com>
7305
7306         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
7307         rename PV_REG to R27_REG.
7308         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
7309         (REG_CLASS_FROM_LETTER): Update.
7310         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
7311         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
7312         (udivsi3, modsi3, umodsi3): Likewise.
7313         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
7314
7315 2001-10-26  Richard Henderson  <rth@redhat.com>
7316
7317         * cfg.c (clear_aux_for_blocks): Split out of ...
7318         (free_aux_for_blocks): here.
7319         (clear_aux_for_edges): Split from ...
7320         (free_aux_for_edges): here.
7321         * basic-block.h: Declare them.
7322         * lcm.c (compute_antinout_edge): Use them.
7323         (compute_laterin, compute_available, compute_nearerout): Likewise.
7324         (optimize_mode_switching): Likewise.
7325
7326 2001-10-26  Richard Henderson  <rth@redhat.com>
7327
7328         * Makefile.in (unstage*): Remove as, ld, collect-ld before
7329         moving everything back to the main build directory.
7330
7331 2001-10-26  Christopher Faylor  <cgf@redhat.com>
7332
7333         * config/i386/cygwin.h: Search target specific include directory, if
7334         appropriate.
7335
7336 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7337
7338         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
7339         of macro guards. Fix #endif comment.
7340
7341         * output.h (default_exception_section, default_eh_frame_section):
7342         Move prototypes outside of macro guard.
7343
7344         * crtstuff.c: Fix #endif comment.
7345
7346 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
7347
7348         * doc/md.texi (movMM): Clarify semantics of storing into a
7349         non-paradoxical SUBREG.
7350
7351 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
7352
7353         * langhooks.c (lang_hook_default_clear_binding_stack): New.
7354         (lang_hook_default_get_alias_set): Move next to other alias
7355         hooks.
7356         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
7357         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
7358         (LANG_HOOKS_INITIALIZER): Add it.
7359         * toplev.h (struct lang_hooks): Add clear_binding_stack.
7360         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
7361         instead of a loop calling poplevel.
7362
7363 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
7364
7365         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
7366         occurrences of #elif with #if...#endif.
7367
7368 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7369
7370         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
7371
7372 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7373
7374         * alias.c (can_address_p): No longer static.
7375         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
7376         Return 0 if all parameters are default values.
7377         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
7378         (adjust_address_1): Try harder to compute a size.
7379         * expr.c (expand_assignment, store_constructor): If can't address,
7380         set MEM_KEEP_ALIAS_SET_P.
7381         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
7382         (store_field): Likewise.
7383         (store_constructor): Simplify call to store_constructor_field.
7384         * expr.h (can_address_p): New declaration.
7385         * gensupport.c (gen_rtx_CONST_INT): New function.
7386         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
7387         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
7388         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
7389
7390         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
7391
7392 2001-10-24  Christopher Faylor  <cgf@redhat.com>
7393
7394         * config/i386/cygwin.h: Use proper path for mingw crt files when
7395         -mno-cygwin.
7396
7397 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7398
7399         * dwarf2out.c (file_info_cmp): Always return consistent results.
7400
7401 2001-10-24  Roger Sayle <roger@eyesopen.com>
7402
7403         * stmt.c (expand_end_case): Index jumptables from zero for
7404         suitably small values of minval.
7405
7406 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
7407
7408         * stor-layout.c (place_union_field): If any field was aligned with
7409         attribute aligned, set record type's TYPE_USER_ALIGN.
7410         (place_field): Likewise.
7411         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
7412         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
7413
7414 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
7415
7416         * c-common.h (struct c_common_identifier): Remove rid_code field.
7417         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
7418
7419         * c-typeck.c (constructor_designated): New local flag.
7420         (struct constructor_stack): Add "designated" field to match.
7421         (start_init): Clear it.
7422         (really_start_incremental_init, push_init_level): Push and
7423         clear it.
7424         (pop_init_level): Pop it.
7425         (set_designator): Set it.
7426
7427         (pop_init_level): Suppress "missing initializer" warnings if
7428         constructor_designated is true.
7429         (process_init_element): Suppress warning about union
7430         initialization under traditional C, if constructor_designated
7431         is true.
7432
7433 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7434
7435         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
7436         change.
7437
7438 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
7439
7440         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
7441
7442 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
7443
7444         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
7445         the node was already a set to a constant.
7446
7447 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7448
7449         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
7450         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
7451
7452 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7453
7454         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
7455         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
7456         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
7457         * s390.c (s390_final_chunkify): Don't use string concatenation.
7458         (s390_function_prologue, s390_function_epilogue): Const-ify.
7459         * s390.h (FUNCTION_PROFILER): Remove unused variable.
7460
7461 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
7462
7463         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
7464         prototypes.
7465
7466 2001-10-23  Stan Shebs  <shebs@apple.com>
7467
7468         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
7469         -traditional-cpp in first-stage compilation.
7470
7471 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7472
7473         * gensupport.c (target_flags): Add.
7474
7475 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
7476
7477         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
7478         if needed.
7479         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
7480         * except.c (expand_builtin_frob_return_addr): Likewise.
7481         (expand_builtin_eh_return): Likewise.
7482         * stmt.c (expand_computed_goto): Likewise.
7483         * explow.c (memory_address): Likewise.
7484         (allocate_dynamic_stack_space): Clean up predicate testing.
7485         (probe_stack_range): Convert SIZE to Pmode.
7486         * calls.c (rtx_for_function_call): Only call convert_memory_address
7487         if needed.
7488         Pass function call operand as ptr_mode, not Pmode.
7489         * expr.c (expand_assignment): Clean up calls to convert_memory
7490         address by only doing so when needed and making offsets Pmode.
7491         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
7492         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
7493         is in Pmode, not ptr_mode.
7494
7495 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7496
7497         * darwin-protos.h (constructor_section, destructor_section,
7498         mod_init_section, mod_term_section): Prototype.
7499         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
7500         Const-ify.
7501         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
7502         Likewise.
7503         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
7504         objc_section_init declaration.
7505         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
7506         (objc_section_init, try_section_alias): Make static.
7507         (alias_section): Make static and hide unused function.
7508         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
7509
7510 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7511
7512         * alias.c (can_address_p): Compnonents are not addressable if
7513         the containing type has alias set 0.
7514         (get_alias_set): Rework to use STRIP_NOPS.
7515         Only call front-end routine on object, type, or object with
7516         NOPs stripped, not inner values.
7517         Use language hook to call front-end routine.
7518         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
7519         (expand_builtin_apply): Call set_mem_align on MEMs we make.
7520         Don't pass alignment to emit_block_move.
7521         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
7522         (expand_builtin_memset): Likewise, but for clear_storage.
7523         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
7524         and remove C++ specific parts.
7525         * c-common.h (c_common_get_alias_set): Add declaration.
7526         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
7527         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
7528         (save_fixed_argument_area): Call set_mem_align.
7529         Remove alignment in call to emit_block_move.
7530         (emit_library_call_value_1, store_one_arg): Likewise.
7531         (target_for_arg): Remove; disabled long ago.
7532         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
7533         once and similar cleanups.
7534         (offset_address): Use proper introductory comment.
7535         * expr.c (emit_block_move): Use alignment from that of MEM args, not
7536         from explicit operand; all callers changed.
7537         (clear_storage): Likewise.
7538         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
7539         (store_field): Remove kludge on alias set used for to_rtx.
7540         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
7541         (expand_expr_unaligned): Call set_mem_attributes instead of
7542         set_mem_alias_set.
7543         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
7544         * function.c (assign_stack_temp_for_type): Set MEM alignment.
7545         (expand_function_end): Track MEM attributes of trampolines.
7546         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
7547         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
7548         attributes from original.
7549         * langhooks.c (lang_hook_default_get_alias_set): New function.
7550         (hook_get_alias_set_0): New function.
7551         * langhooks.h (hook_get_alias_set_0): New declaration.
7552         (lang_hook_default_get_alias_set): Likewise.
7553         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
7554         * reload1.c (alter_reg): Use adjust_address_nv.
7555         * rtl.c (get_mode_alignment): Moved to here.
7556         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
7557         change default if unknown from 1 to BITS_PER_UNIT.
7558         * stor-layout.c (get_mode_alignment): Remove from here.
7559         * toplev.h (struct lang_hoks): Add get_alias_set field.
7560         * tree.h (lang_get_alias_set): Delete declaration.
7561         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
7562         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
7563         (ix86_va_arg): Likewise.
7564         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7565         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7566         * config/sparc/sparc.c (sparc_va_arg): Likewise.
7567         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7568         (expand_block_move_mem): Remove dead code.
7569
7570 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7571
7572         * c-common.c (warn_div_by_zero): New.
7573         * c-common.h (warn_div_by_zero): New.
7574         * c-decl.c (c_decode_option): Take it on the command line.
7575         * c-typeck.c (build_binary_op): Warn about division by zero.
7576         * doc/invoke.texi: Document the new command line option, fix
7577         documentation of -Wmultichar.
7578         * testsuite/gcc.dg/divbyzero.c: New tests.
7579         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
7580
7581 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
7582
7583         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
7584
7585         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
7586         to avoid update_life_info call.
7587         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
7588         * cfgcleanup.c (bb_flags): New enum.
7589         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
7590         (notice_new_block, update_forwarder_flag): New functions.
7591         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
7592         (try_forward_edges): Likewise; update flags.
7593         (merge_blocks): Likewise.
7594         (outgoing_edges_match): Likewise.
7595         (try_crossjump_to_edge): Likewise.
7596         (try_optimize_cfg): Likewise; initialize and clear the flags;
7597         recompute life info if needed.
7598         (cleanup_cfg): No need to clear aux pointers.
7599
7600 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
7601
7602         * config/i386/i386.c (override_options): Default to minimum
7603         stack alignment when optimizing for code size.
7604         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
7605         change.
7606
7607         * config/i386/i386.c (override_options): Set upper limit of
7608         -mpreferred-stack-boundary to 12.
7609
7610 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
7611
7612         * recog.c (peephole2_optimize): Add default case to switch.
7613
7614 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
7615
7616         * doc/gcc.texi (Sending Patches): Remove.
7617
7618 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
7619
7620         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
7621         fields when comparing.
7622
7623 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7624
7625         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
7626         * arm.c (HOST_INT, HOST_UINT): Likewise.
7627
7628 2001-10-22  Stan Shebs  <shebs@apple.com>
7629
7630         * config/darwin-protos.h (darwin_exception_section): Declare.
7631         (darwin_eh_frame_section): Declare.
7632
7633 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
7634
7635         * i386.md (movti_rex64): Fix mode.
7636
7637 2001-10-22  Stan Shebs  <shebs@apple.com>
7638
7639         * target.h (struct gcc_target): Add asm_out.exception_section,
7640         asm_out.eh_frame_section.
7641         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
7642         (TARGET_ASM_EH_FRAME_SECTION): New.
7643         (TARGET_INITIALIZER): Update.
7644         * output.h (default_exception_section): Declare.
7645         (default_eh_frame_section): Declare.
7646         * dwarf2out.c: Include target.h.
7647         (output_call_frame_info): Call target hook for eh frames.
7648         (default_eh_frame_section): New function.
7649         * except.c: Include target.h.
7650         (output_function_exception_table): Call target hook for exception
7651         section.
7652         * varasm.c (default_exception_section): Rename from
7653         exception_section, remove EXCEPTION_SECTION macro.
7654
7655         * config/darwin.h (darwin_eh_frame_section): New function.
7656         (EXCEPTION_SECTION): Remove.
7657         (TARGET_ASM_EXCEPTION_SECTION): Define.
7658         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
7659         (nextstep_exception_section): New function.
7660         (nextstep_eh_frame_section): New function.
7661         (TARGET_ASM_EXCEPTION_SECTION): Define.
7662         (TARGET_ASM_EH_FRAME_SECTION): Define.
7663
7664         * config/pa/som.h (EXCEPTION_SECTION): Remove.
7665         (TARGET_ASM_EXCEPTION_SECTION): Define.
7666         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
7667         (EXCEPTION_SECTION): Remove.
7668         (TARGET_ASM_EXCEPTION_SECTION): Define.
7669         * config/stormy16/stormy16.h: Remove comments referencing
7670         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
7671
7672         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
7673         TARGET_ASM_EH_FRAME_SECTION.
7674
7675 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
7676
7677         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
7678         terms.
7679
7680         * c-format.c: Fix spelling typo in comment.
7681
7682         * sched-int.h: Fix typo in GCC preamble.
7683
7684 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7685
7686         PR debug/4252
7687         * doc/invoke.texi: Remove references to -fdump-translation-unit.
7688
7689 2001-10-22  Richard Henderson  <rth@redhat.com>
7690
7691         * config/i386/i386.c (ix86_expand_clear): New.
7692         * config/i386/i386-protos.h: Declare it.
7693         * config/i386/i386.md (setcc peep2s): Use it.
7694         (movsi_xor): Unexport.
7695
7696 2001-10-22  Richard Henderson  <rth@redhat.com>
7697
7698         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
7699         free_EXPR_LIST_list for LOG_LINKS.
7700
7701 2001-10-21  Robert Lipe  <robertlipe@usa.net>
7702
7703         * config/i386/i386.c (sco_asm_named_section): Delete.
7704         (sco_asm_out_constructor): Delete.
7705         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
7706         (ASM_OUTPUT_DOUBLE_INT): Likewise.
7707         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
7708         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
7709         (EXCEPTION_SECTION): Delete EH scn renaming hack.
7710
7711 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7712
7713         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
7714         and/or fold extra calls into fewer ones.
7715         * collect2.c (dump_file): Likewise.
7716         * cppexp.c (parse_number): Likewise.
7717         * cpplex.c (_cpp_lex_direct): Likewise.
7718         * final.c (output_asm_insn, asm_fprintf): Likewise.
7719         * fix-header.c (inf_scan_ident, main): Likewise.
7720         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
7721         Likewise.
7722         * fold-const.c (real_hex_to_f): Likewise.
7723         * gen-protos.c (parse_fn_proto): Likewise.
7724         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
7725         * genrecog.c (change_state, write_action): Likewise.
7726         * gensupport.c (shift_output_template): Likewise.
7727         * local-alloc.c (requires_inout): Likewise.
7728         * mips-tfile.c (IS_ASM_IDENT): Likewise.
7729         * protoize.c (is_id_char, main): Likewise.
7730         * real.c (asctoeg): Likewise.
7731         * recog.c (asm_operand_ok): Likewise.
7732         * reload.c (find_reloads): Likewise.
7733         * scan.c (scan_identget_token): Likewise.
7734         * sched-vis.c (print_value): Likewise.
7735         * stringpool.c (ggc_alloc_string): Likewise.
7736         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
7737         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
7738         * tradcpp.c (rescan): Likewise.
7739         * tree.c (clean_symbol_name): Likewise.
7740         * varasm.c (decode_reg_name): Likewise.
7741
7742         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
7743         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
7744         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
7745         * m88k.c (output_ascii): Likewise.
7746         * m88k.h (OVERRIDE_OPTIONS): Likewise.
7747         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
7748         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
7749         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
7750
7751 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7752
7753         * langhooks.c (lang_hook_default_do_nothing,
7754         lang_hook_default_decode_option): New defaults.
7755         * langhooks.h: Make hooks unconditional and non-NULL.
7756         * toplev.c (compile_file, toplev_main): Update.
7757         * toplev.h: Update comments.
7758         * objc/objc-act.c (lang_hooks): Update to new paradigm.
7759
7760 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7761
7762         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
7763
7764         * system.h (IN_RANGE): New macro.
7765
7766 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
7767
7768         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
7769         INTLDEPS variable, which does not include $LIBICONV.
7770         * Makefile.in: Use INTLDEPS in LIBDEPS.
7771         * configure: Regenerate.
7772
7773 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7774
7775         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
7776         * cpplex.c (lex_percent, lex_dot): Remove.
7777         (get_effective_char, skip_block_comment, skip_line_comment,
7778         parse_identifier_slow, parse_number, parse_string, save_comment,
7779         _cpp_lex_direct): Update to do lookback freely.
7780         (IF_NEXT_IS, BACKUP): New macros.
7781         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
7782         * cppmacro.c (paste_tokens): Update.
7783
7784 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
7785
7786         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
7787
7788 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
7789
7790         * reload1.c (reload): Check CONSTANT_P before calling
7791         LEGITIMATE_PIC_OPERAND_P.
7792         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
7793         workaround of 2001-10-13.
7794
7795 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
7796
7797         * i386.c (split_di): Handle splitting of DFmode.
7798
7799 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7800
7801         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
7802         (adjust_address_1, offset_address): Likewise.
7803
7804         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
7805         (output_asm_insn): Call it for each line output.
7806         Don't record an operand more than once.
7807
7808         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
7809         * main.c: Include config.h and system.h, but not ansidecl.h.
7810         * Makefile.in (main.o): Update accordingly.
7811
7812 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
7813
7814         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
7815
7816 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
7817
7818         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
7819         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
7820         Break out from ...
7821         (find_sub_basic_blocks): ... here;
7822         (find_many_sub_basic_blocks): New.
7823         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
7824
7825         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
7826
7827         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
7828
7829         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
7830
7831         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
7832         * flow.c (update_life_info): Measure time.
7833         * c-decl.c: Include timevar.h
7834         (c_expand_body): Measure time.
7835         * toplev.c (rest_of_compilation): Measure time of mode switching
7836         separately.
7837         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
7838
7839         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
7840         (lang_independent_options): Add asynchronous-unwind-tables
7841         (toplev_main): flag_asynchronous_unwind_tables implies
7842         flag_unwind_tables.
7843         * flags.h (flag_asynchronous_unwind_tables): Declare.
7844         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
7845         flag_asynchronous_unwind_tables.
7846         (output_call_frame_info): Likewise.
7847         * invoke.texi (-fasynchronous-unwind-tables): Document.
7848         * i386.c (optimization_options): Enable
7849         flag_asynchronous_unwind_tables.
7850
7851         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
7852         * i386.md (s* expanders): Destination is QImode.
7853
7854         * toplev.c (rest_of_compilation): Do not call clear_log_links.
7855         * rtl.h (clear_log_links): Kill.
7856         * flow.c (clear_log_links): Make static; accept blocks parameter;
7857         do no clear life info.
7858         (update_life_info): Call clear_log_links.
7859
7860         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
7861
7862 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
7863
7864         * cpplex.c (handle_newline, skip_escaped_newlines,
7865         get_effective_char, skip_block_comment, skip_line_comment,
7866         parse_identifier_slow, parse_number, parse_string,
7867         _cpp_lex_direct): Update to do more stepping back.
7868         (trigraph_ok): Similarly.  Rename trigraph_p.
7869         (SAVE_STATE, RESTORE_STATE): Remove.
7870         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
7871
7872         * cpplib.c (destringize): Rename destringize_and_run, and
7873         call run_directive directly.
7874         (_cpp_do__Pragma): Simplify.
7875
7876 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7877
7878         * pe.c (arm_pe_unique_section): Const-ify.
7879         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
7880         (switch_to_section): Add static prototype.
7881
7882         * output.h (drectve_section): Prototype.
7883
7884 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7885
7886         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
7887         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
7888         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
7889         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
7890         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
7891         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
7892         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
7893         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
7894         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
7895         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
7896         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
7897         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
7898         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
7899         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
7900         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
7901         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
7902         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
7903         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
7904         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
7905         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
7906         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
7907         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
7908         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
7909         cris-*-none, cris-*-linux*: Update ${tmfile} list.
7910         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
7911         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
7912         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
7913         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
7914         v850-*-*): Delete superflous ${cpu_type} setting.
7915         * config/linux.h: Delete svr4.h include.
7916         (SET_ASM_OP): Delete.
7917         * config/netware.h (INT_ASM_OP): Undef before define.
7918         * config/ptx4.h: Delete elfos.h include.
7919         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
7920         * config/svr4.h: Delete elfos.h include. Update commentary.
7921         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
7922         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
7923         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
7924         config/v850/v850.h: Delete svr4.h include.
7925         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
7926         config/m68k/m68kv4.h, config/m88k/sysv4.h,
7927         config/sparc/sysv4.h: Update includes.
7928         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
7929         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
7930         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
7931         config/m88k/dguxbcs.h: Delete includes.
7932         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
7933         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
7934         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
7935         it.
7936         * config/m88k/dgux.h: Delete include.
7937         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
7938         defining it.
7939         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
7940         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
7941         * config/sh/elf.h: Update include.
7942         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
7943         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
7944
7945 2001-10-19  Catherine Moore  <clm@redhat.com>
7946
7947         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
7948         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
7949         base and count fields.
7950         (stormy16_expand_builtin_va_start):  last_reg_count changed to
7951         size_of_reg_args.  Use count + size in first comparison.
7952
7953 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7954
7955         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
7956         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
7957         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
7958         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
7959         Set alignment from type if INDIRECT_REF.
7960         (adjust_address_1, offset_address): Simplify alignment compuitation.
7961         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
7962         here; done by set_mem_attributes.
7963
7964 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7965
7966         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
7967         * arm-protos.h (rdata_section, zero_init_section, common_section):
7968         Prototype.
7969         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
7970         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
7971         traditional mode stringification.
7972         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
7973         in macros controling its use.
7974         * rtlanal.c: Include tm_p.h.
7975         * varasm.c (asm_output_aligned_bss): Mark parameter with
7976         ATTRIBUTE_UNUSED.
7977         (assemble_constant_align, assemble_start_function, assemble_align,
7978         assemble_variable, assemble_trampoline_template,
7979         output_constant_def_contents): Wrap potentially empty if-stmt body
7980         in brackets.
7981
7982 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7983
7984         * a29k-protos.h (literal_section): Prototype.
7985         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
7986         * a29k.md: Ensure function pointers are prototyped.
7987         * genattrtab.c (write_eligible_delay): Mark parameter with
7988         ATTRIBUTE_UNUSED.
7989
7990 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7991
7992         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
7993         * 1750a.c (print_operand): Fix format specifier warning.
7994         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
7995         * 1750a.md: Likewise.
7996         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
7997         * genemit.c (output_add_clobbers): Mark parameter with
7998         ATTRIBUTE_UNUSED.
7999         * genrecog.c (write_subroutine): Likewise.
8000         * integrate.c (expand_inline_function): Delete unused variable.
8001         * varasm.c (remove_from_pending_weak_list): Wrap with
8002         ASM_WEAKEN_LABEL.
8003
8004 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
8005
8006         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
8007         field is different to previous argument's neg field.
8008
8009         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
8010
8011 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8012
8013         * final.c (get_decl_from_op): New function.
8014         (output_asm_insn): Call it; write "*" when item with decl is address.
8015
8016 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
8017
8018         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
8019         about 64-bit support from the 3.0_branch version.
8020
8021 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
8022
8023         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
8024         USE_INCLUDED_LIBINTL when appropriate.
8025         * configure, config.in: Regenerate.
8026         * Makefile.in (datadir): Set to @datadir@.
8027         (intl.o): Also depend on $(CONFIG_H) and system.h.
8028
8029         * intl.c: Factor out common gettext initialization sequence.
8030         (gcc_init_libintl):  New function.
8031         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
8032         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
8033         off NLS.  Add multiple include guard.  No need to #ifdef-guard
8034         an #undef.  Prototype gcc_init_libintl here.
8035
8036         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
8037         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
8038         Use gcc_init_libintl.
8039
8040 2001-10-19  Catherine Moore  <clm@redhat.com>
8041
8042         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
8043
8044         * config/stormy16/stormy16.c (stormy16_split_move):  Make
8045         sure that REG_INC notes are present for auto_inc operands.
8046
8047 2001-10-19  Andreas Jaeger  <aj@suse.de>
8048
8049         * configure: Regenerated.
8050         * configure.in: Add x86_64 to switch statements.
8051
8052 2001-10-18  Richard Henderson  <rth@redhat.com>
8053
8054         * config/alpha/alpha.md (sibcall_osf_1): Load destination
8055         address into $27 explicitly.
8056         (sibcall_value_osf_1): Likewise.
8057
8058 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8059
8060         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
8061         (offset_address): New function.
8062         (free_emit_status): Free regno_decl.
8063         (init_emit): Pass proper number of elements to xcalloc.
8064         Allocate regno_decl.
8065         (mark_emit_status): Mark regno_decl values.
8066         * expr.c (highest_pow2_factor): New function.
8067         (expand_assigment): Use it and offset_address.
8068         Properly handle ptr_mode vs. Pmode in offset calculation.
8069         (store_constructor, expand_expr_unaligned): Likewise.
8070         (expand_expr, case COMPONENT_EXPR): Likewise.
8071         * expr.h (offset_address): New decl.
8072         * function.h (struct emit_status): Add regno_decl.
8073         (REGNO_DECL): New macro.
8074         * final.c (output_asm_name): Move in file and don't conditionalize
8075         on flag_print_asm_name.
8076         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
8077         Output names of operands, if known.
8078         * function.c (assign_parms): Set REGNO_DECL.
8079         * integrate.c (integrate_decl_tree): Likewise.
8080         * stmt.c (expand_decl): Likewise.
8081         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
8082
8083 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
8084
8085         * attribs.c (handle_noinline_attribute): New function.
8086         (handle_used_attribute): Likewise.
8087         (c_common_attribute_table): Added noinline and used.
8088         * doc/extend.texi (Function Attributes): Document them.
8089         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
8090         Warn when merging inline with attribute noinline.
8091         (start_decl, start_function): Warn if inline and attribute
8092         noinline appear in the same declaration.
8093
8094 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8095
8096         * config.gcc: Update c4x and i370 for C front end-specific
8097         dependencies.
8098         * config/c4x/c4x-c.c: New.
8099         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
8100         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
8101         New declarations.
8102         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
8103         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
8104         Make extern.
8105         (c4x_init_pragma): Remove.
8106         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
8107         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
8108         c4x_pr_ignored): Move to c4x-c.c.
8109         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
8110         * config/c4x/t-c4x: Update.
8111         * config/i370/i370-c.c: New.
8112         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
8113         (i370_pr_map): Move to i370-c.c.
8114         * config/i370/t-i370: New.
8115
8116         * doc/tm.texi: Update.
8117
8118 2001-10-17  Stan Shebs  <shebs@apple.com>
8119
8120         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
8121         typo fixes throughout.
8122         (machopic_output_stub): Remove some dead code.
8123
8124 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
8125
8126         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
8127         leak.
8128
8129 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8130
8131         * Makefile.in (print-rtl.o): Depend on TREE_H.
8132         * alias.c (get_alias_set): Make two passes over objects to first
8133         see if inner object is access via restricted pointer.
8134         Defer allocating alias set for restricted pointer until here.
8135         Call find_placeholder with second arg nonzero.
8136         Minor cleanups.
8137         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
8138         set for restricted pointer types.
8139         * emit-rtl.c (set_mem_attributes): Set more attributes.
8140         (set_mem_align, change_address, adjust_address_1): New functions.
8141         (change_address_1): Now static.
8142         (adjust_address, adjust_address_nv): Deleted.
8143         (replace_equiv_address): Call change_address_1.
8144         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
8145         (find_placeholder): Get starting point from PLIST arg.
8146         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
8147         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
8148         (adjust_address, adjust_address_nv): New macros.
8149         * print-rtl.c (tree.h): New include.
8150         (print_rtx, case MEM): Print all memory attributes.
8151
8152 2001-10-17  Richard Henderson  <rth@redhat.com>
8153
8154         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
8155
8156 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8157
8158         * c-tree.texi: Eliminate duplicated word.
8159         * cpp.texi: Likewise.
8160         * install.texi: Likewise.
8161         * invoke.texi: Likewise.
8162         * tm.texi: Likewise.
8163
8164 2001-10-17  Michael Collison  <collison@isisinc.net>
8165
8166         * dsp16xx.c: Fix comment formatting to match GNU standards.
8167         (dsp16xx_output_function_prologue): Change type of 'size'
8168         parameter from 'int' to HOST_WIDE_INT.
8169         (dsp16xx_output_function_epilogue): Change type of 'size'
8170         parameter from 'int' to HOST_WIDE_INT.
8171
8172 2001-10-16  Richard Henderson  <rth@redhat.com>
8173
8174         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
8175         * configure, config.in: Rebuild.
8176
8177         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
8178         (ix86_output_addr_diff_elt): New.
8179         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
8180         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8181         (JUMP_TABLES_IN_TEXT_SECTION): New.
8182         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
8183         * config/i386/i386-protos.h: Update.
8184
8185         * config/i386/386bsd.h, config/i386/beos-elf.h,
8186         config/i386/freebsd-aout.h, config/i386/freebsd.h,
8187         config/i386/i386-interix.h, config/i386/i386elf.h,
8188         config/i386/linux.h, config/i386/netbsd-elf.h,
8189         config/i386/netbsd.h, config/i386/openbsd.h,
8190         config/i386/ptx4-i.h, config/i386/rtemself.h,
8191         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
8192         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
8193
8194 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
8195
8196         * stmt.c (expand_asm_operands): Update commentary.
8197
8198 2001-10-16  Stan Shebs  <shebs@apple.com>
8199
8200         * config/darwin.h (GCC_NAME): Remove, no longer used.
8201         (NO_MATH_LIBRARY): Ditto.
8202         (MATH_LIBRARY): Define to emptiness.
8203         (DWARF2_DEBUGGING_INFO): Define.
8204         (PREFERRED_DEBUGGING_TYPE): Define.
8205         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
8206         (EXCEPTION_SECTION): Define.
8207         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8208         * config/darwin.c (darwin_encode_section_info): Handle case of
8209         DECL_INITIAL being error_mark_node.
8210
8211 2001-10-16  Richard Henderson  <rth@redhat.com>
8212
8213         * alpha.c (current_file_function_operand): Don't fail for profiling.
8214         (direct_call_operand): New.
8215         * alpha-protos.h: Declare it.
8216         * alpha.h (EXTRA_CONSTRAINT): Use it.
8217         (PREDICATE_CODES): Add it.
8218         (ASM_OUTPUT_MI_THUNK): Remove.
8219         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
8220         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
8221
8222 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
8223
8224         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
8225         (JUMP_TABLES_IN_TEXT_SECTION): Define.
8226
8227 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
8228
8229         * cfg.c (free_edge): Break out from ....
8230         (remove_edge): ... here.
8231         (clear_edges): Use free_edge.
8232
8233         * att.h (ASM_QUAD): Add comment.
8234         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
8235
8236 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
8237
8238         * i386.c (split_ti): New function.
8239         (ix86_split_to_parts): Support TImodes.
8240         * i386.h (VALID_INT_MODE_P): Add TImode.
8241         * i386.md (movdi splitter): Fix.
8242         (movti): Support 64bit integer registers.
8243         (movti_rex64): New function and splitter.
8244
8245         * i386.c (*_cost): Add movsx/movzx cost.
8246         * i386.h (struct processor_costs): Add movsx/movzx fields.
8247         (RTX_COSTS): Handle zero/sign extend + avoid believing that
8248         64bit operations require split on 64bit machine.
8249         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
8250
8251         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
8252         (ix86_expand_move): Avoid pushes of memory if size does not match;
8253         move long constants to register.
8254         (x86_initialize_trampoline): Fix mode.
8255         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
8256         Use ASM_QUAD on 64bit.
8257         * i386.md (test pattern): Disallow impossible constants.
8258         (tablejump PIC expander): Fix emitting of sum.
8259         (movdicc_rex64): Rename to movdicc.
8260         * linux64.h (LINK_SPEC): Add missing '%'.
8261
8262 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
8263
8264         * tree-inline.c (inlinable_function_p): Leave it up to the
8265         front-end to turn -finline-functions into DECL_INLINE set for all
8266         functions.
8267
8268 2001-10-16  Stan Shebs  <shebs@apple.com>
8269
8270         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
8271
8272 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
8273
8274         * recog.c: Formatting and comment typo fixes.
8275
8276         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
8277         version in single tree build.
8278         * configure: Regenerate.
8279
8280 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
8281
8282         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
8283         MODE arguments to gen_rtx and compare operand with const0_rtx.
8284
8285 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8286
8287         * system.h: Poison old unused target macros.
8288         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
8289         * config/stormy16/stormy16.c: Update references to obsolete macros.
8290         * config/stormy16/stormy16.h: Similarly.
8291         * config/stormy16/stormy16.md: Similarly.
8292         * config/cris/cris.h: Similarly.
8293
8294 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8295
8296         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
8297         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
8298         cpp_register_pragma): Update accordingly.
8299
8300 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8301
8302         * c-pragma.h (cpp_register_pragma_space): Remove.
8303         * cpplib.h (cpp_register_pragma_space): Remove.
8304         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
8305         (cpp_register_pragma_space): Remove.
8306         (cpp_register_pragma): Simplify using lookup_pragma_entry,
8307         add sanity checks.
8308         (do_pragma): Similarly.
8309         (_cpp_init_internal_pragmas): Don't register namespaces.
8310
8311         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
8312         Don't register namespaces.
8313         * cp/lex.c (init_cp_pragma): Similarly.
8314         * doc/tm.texi: Update.
8315
8316 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8317
8318         PR c/4157
8319         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
8320
8321 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
8322
8323         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
8324         add scheduling support.
8325         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
8326         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
8327         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
8328
8329
8330 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
8331
8332         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
8333         missing CONSTANT_P test in core GCC.
8334
8335 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8336
8337         * cppmain.c (struct printer): New member source.
8338         (scan_translation_unit): Fix spacing at start of lines.
8339         (cb_line_change): Update.
8340
8341         * gcc.dg/cpp/spacing2.c: New test.
8342
8343 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
8344
8345         * config/cris/arit.c: Use __builtin_labs, not abs.
8346
8347         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
8348
8349         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
8350         misplaced sprintf and fprintf argument.
8351
8352 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
8353
8354         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
8355         * configure.in, Makefile.in: Take out obsolete check-po logic.
8356         * configure, config.in: Regenerate.
8357
8358 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
8359
8360         * objc/objc-act.c (finish_objc): Correct precondition for emitting
8361         symtab declarations.
8362
8363 2001-10-12  Stan Shebs  <shebs@apple.com>
8364
8365         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
8366         declarations of arguments and local variables.
8367
8368 2001-10-12  Christopher Faylor  <cgf@redhat.com>
8369
8370         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
8371         ENDFILE_SPEC definition.
8372
8373 2001-10-12  Kazu Hirata  <kazu@hxi.com>
8374
8375         * gthr-dce.h: Fix comment formatting.
8376         * gthr-posix.h: Likewise.
8377         * gthr-single.h: Likewise.
8378         * gthr-solaris.h: Likewise.
8379         * gthr-vxworks.h: Likewise.
8380         * gthr-win32.h: Likewise.
8381
8382 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
8383
8384         * final.c (output_asm_insn): Make sure assembly dialects are
8385         terminated, not nested.  Output `|' and `}' characters if they
8386         don't appear inside assembly dialect selection.
8387         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
8388         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
8389         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
8390         strsetsi_rex_1): Add {} braces.
8391
8392 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
8393
8394         * toplev.c (compile_file): Ignore return value from yyparse.
8395         Always pop any nested binding levels after yyparse returns.
8396
8397 2001-10-11  Richard Henderson  <rth@redhat.com>
8398
8399         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
8400
8401 2001-10-11  Richard Henderson  <rth@redhat.com>
8402
8403         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
8404         fall back to add_AT_long_long for large CONST_INT.
8405
8406 2001-10-11  Richard Henderson  <rth@redhat.com>
8407
8408         * config/i386/i386.md (setcc splitters): Add four splitters to
8409         simplify compound compares that simplify_comparison can't handle.
8410
8411 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
8412
8413         * cpplex.c (digraph_spellings, token_spellings): Make static.
8414
8415 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8416
8417         * unroll.c (loop_iterations): Fixup last patch.
8418
8419 2001-10-11  Richard Henderson  <rth@redhat.com>
8420
8421         * rtl.h (REG_VTABLE_REF): New.
8422         * rtl.c (reg_note_name): Add it.
8423         * combine.c (distribute_notes): Handle it.
8424         * final.c (final_scan_insn): Handle it.
8425         * tree.def (VTABLE_REF): New.
8426         * expr.c (expand_expr): Handle it.
8427         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
8428         * output.h: Declare them.
8429
8430 2001-10-11  Richard Henderson  <rth@redhat.com>
8431
8432         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
8433         for a DECL_INITIAL.
8434
8435 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
8436
8437         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
8438         available in 64-bit mode.
8439
8440 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
8441
8442         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
8443         cris-*-linux* cases.
8444         * config/cris/cris-protos.h: New file.
8445         * config/cris/cris.c: New file.
8446         * config/cris/cris.h: New file.
8447         * config/cris/cris.md: New file.
8448         * config/cris/linux.h: New file.
8449         * config/cris/aout.h: New file.
8450         * config/cris/arit.c: New file.
8451         * config/cris/cris_abi_symbol.c: New file.
8452         * config/cris/mulsi3.asm: New file.
8453         * config/cris/t-aout: New file.
8454         * config/cris/t-cris: New file.
8455         * config/cris/t-elfmulti: New file.
8456         * config/cris/t-linux: New file.
8457         * doc/invoke.texi: Add CRIS options.
8458         * doc/install.texi (Specific): Add blurb for CRIS.
8459
8460 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
8461
8462         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
8463         before using it.
8464         * config/float/i32.h: Likewise.
8465         * config/float-i386.h: Likewise.
8466         * config/float-i64.h: Likewise.
8467         * config/float-m68k.h: Likewise.
8468         * config/float-sh.h: Likewise.
8469         * config/float-sparc.h: Likewise.
8470
8471 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
8472
8473         * doc/contrib.texi: Add note about CRIS port to my entry.
8474
8475 2001-10-11  Kazu Hirata  <kazu@hxi.com>
8476
8477         * basic-block.h: Fix formatting.
8478         * bitmap.h: Likewise.
8479         * cpplib.h: Likewise.
8480         * c-tree.h: Likewise.
8481         * diagnostic.h: Likewise.
8482         * flags.h: Likewise.
8483         * ggc.h: Likewise.
8484         * longlong.h: Likewise.
8485         * real.h: Likewise.
8486         * reload.h: Likewise.
8487         * rtl.h: Likewise.
8488         * tree.h: Likewise.
8489
8490 2001-10-10  Richard Henderson  <rth@redhat.com>
8491
8492         * c-parse.in (asm_operand): Allow named operands.
8493         * genconfig.c (max_recog_operands): Set to 29.
8494         * local-alloc.c (requires_inout): Skip multiple digits.
8495         * recog.c (asm_operand_ok): Likewise.
8496         (preprocess_constraints): Use strtoul for matching constraints.
8497         (constrain_operands): Likewise.
8498         * regmove.c (find_matches): Likewise.
8499         * reload.c (find_reloads): Likewise.
8500         * stmt.c (parse_output_constraint): Don't reject in-out
8501         constraint on operands > 9.  Reject '[' in constraint.
8502         (expand_asm_operands): Handle named operands.  Use strtoul
8503         for matching constraints.
8504         (check_operand_nalternatives): Split out from expand_asm_operands.
8505         (check_unique_operand_names): New.
8506         (resolve_operand_names, resolve_operand_name_1): New.
8507
8508         * doc/extend.texi (Extended Asm): Document named operands.
8509         * doc/md.texi (Simple Constraints): Document matching constraints
8510         on operands > 9.
8511
8512 2001-10-10  Richard Henderson  <rth@redhat.com>
8513
8514         * combine.c (try_combine): Handle a SEQUENCE of one insn.
8515
8516         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
8517         (jcc splitters): Add two splitters to simplify compound compares
8518         that simplify_comparison can't handle.
8519
8520 2001-10-10  Richard Henderson  <rth@redhat.com>
8521
8522         * langhooks.c: Include langhooks.h.
8523         * Makefile.in (langhooks.o): Depend on it.
8524
8525 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
8526
8527         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
8528         should not be considered as a no-op.
8529         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
8530
8531 2001-10-10  Stan Shebs  <shebs@apple.com>
8532
8533         * alias.c: Remove uses of "register" specifier in declarations
8534         of arguments and local variables.
8535         * c-common.c: Ditto.
8536         * c-convert.c: Ditto.
8537         * c-decl.c: Ditto.
8538         * c-format.c: Ditto.
8539         * c-semantics.c: Ditto.
8540         * c-typeck.c: Ditto.
8541         * caller-save.c: Ditto.
8542         * calls.c: Ditto.
8543         * cfg.c: Ditto.
8544         * cfgbuild.c: Ditto.
8545         * cfgrtl.c: Ditto.
8546         * collect2.c: Ditto.
8547         * combine.c: Ditto.
8548         * convert.c: Ditto.
8549         * cppexp.c: Ditto.
8550         * cppfiles.c: Ditto.
8551         * cse.c: Ditto.
8552         * dbxout.c: Ditto.
8553         * defaults.h: Ditto.
8554         * df.c: Ditto.
8555         * dwarf2out.c: Ditto.
8556         * dwarfout.c: Ditto.
8557         * emit-rtl.c: Ditto.
8558         * explow.c: Ditto.
8559         * expmed.c: Ditto.
8560         * expr.c: Ditto.
8561         * final.c: Ditto.
8562         * fix-header.c: Ditto.
8563         * floatlib.c: Ditto.
8564         * flow.c: Ditto.
8565         * fold-const.c: Ditto.
8566         * function.c: Ditto.
8567         * gcc.c: Ditto.
8568         * gcse.c: Ditto.
8569         * gen-protos.c: Ditto.
8570         * genattrtab.c: Ditto.
8571         * gencheck.c: Ditto.
8572         * genconfig.c: Ditto.
8573         * genemit.c: Ditto.
8574         * genextract.c: Ditto.
8575         * genflags.c: Ditto.
8576         * gengenrtl.c: Ditto.
8577         * genoutput.c: Ditto.
8578         * genpeep.c: Ditto.
8579         * genrecog.c: Ditto.
8580         * gensupport.c: Ditto.
8581         * global.c: Ditto.
8582         * gmon.c: Ditto.
8583         * graph.c: Ditto.
8584         * haifa-sched.c: Ditto.
8585         * hard-reg-set.h: Ditto.
8586         * hash.c: Ditto.
8587         * integrate.c: Ditto.
8588         * jump.c: Ditto.
8589         * lists.c: Ditto.
8590         * local-alloc.c: Ditto.
8591         * loop.c: Ditto.
8592         * mips-tdump.c: Ditto.
8593         * mips-tfile.c: Ditto.
8594         * optabs.c: Ditto.
8595         * prefix.c: Ditto.
8596         * print-rtl.c: Ditto.
8597         * read-rtl.c: Ditto.
8598         * real.c: Ditto.
8599         * recog.c: Ditto.
8600         * reg-stack.c: Ditto.
8601         * regclass.c: Ditto.
8602         * regmove.c: Ditto.
8603         * reload.c: Ditto.
8604         * reload1.c: Ditto.
8605         * reorg.c: Ditto.
8606         * resource.c: Ditto.
8607         * rtl.c: Ditto.
8608         * rtlanal.c: Ditto.
8609         * scan.c: Ditto.
8610         * sched-deps.c: Ditto.
8611         * sched-rgn.c: Ditto.
8612         * sdbout.c: Ditto.
8613         * simplify-rtx.c: Ditto.
8614         * stmt.c: Ditto.
8615         * stor-layout.c: Ditto.
8616         * toplev.c: Ditto.
8617         * tradcif.y: Ditto.
8618         * tradcpp.c: Ditto.
8619         * tree.c: Ditto.
8620         * unroll.c: Ditto.
8621         * varasm.c: Ditto.
8622         * xcoffout.c: Ditto.
8623
8624 2001-10-10  Richard Henderson  <rth@redhat.com>
8625
8626         * rtl.h (can_reverse_comparison_p): Remove.
8627
8628 2001-10-10  Christopher Faylor <cgf@redhat.com>
8629
8630         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
8631         used.
8632
8633 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8634
8635         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
8636         (Thanks to Chris Faylor for suggesting macro name).
8637         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
8638         WIN32 defines.
8639         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
8640         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
8641         (MATH_LIBRARY): Undef before definition.
8642         (OUTPUT_QUOTED_STRING): Likewise.
8643         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
8644
8645 2001-10-10  Richard Henderson  <rth@redhat.com>
8646
8647         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
8648         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
8649         a tristate comparison value.
8650         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
8651
8652 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8653
8654         PR c++/4512
8655         * unroll.c (loop_iterations): Ignore insns generated by loop
8656         unrolling.
8657
8658         * config.gcc (mips*-*-gnu*): Delete support.
8659         * config/mips/gnu.h: Remove.
8660
8661 2001-10-10  Kazu Hirata  <kazu@hxi.com>
8662
8663         * calls.c: Fix formatting.
8664         * c-decl.c: Likewise.
8665         * cfgcleanup.c: Likewise.
8666         * combine.c: Likewise.
8667         * cppfiles.c: Likewise.
8668         * cpplib.c: Likewise.
8669         * cppmacro.c: Likewise.
8670         * crtstuff.c: Likewise.
8671         * cse.c: Likewise.
8672         * dwarf2out.c: Likewise.
8673         * expmed.c: Likewise.
8674         * expr.c: Likewise.
8675         * fold-const.c: Likewise.
8676         * function.c: Likewise.
8677         * gcse.c: Likewise.
8678         * genattrtab.c: Likewise.
8679         * ggc-page.c: Likewise.
8680         * integrate.c: Likewise.
8681         * libgcc2.c: Likewise.
8682         * loop.c: Likewise.
8683         * optabs.c: Likewise.
8684         * profile.c: Likewise.
8685         * protoize.c: Likewise.
8686         * real.c: Likewise.
8687         * recog.c: Likewise.
8688         * reload1.c: Likewise.
8689         * reload.c: Likewise.
8690         * reorg.c: Likewise.
8691         * resource.c: Likewise.
8692         * sched-rgn.c: Likewise.
8693         * sdbout.c: Likewise.
8694         * stmt.c: Likewise.
8695         * toplev.c: Likewise.
8696         * varasm.c: Likewise.
8697
8698 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
8699
8700         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
8701         * Makefile.in (langhooks.o): Add dependencies.
8702
8703 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
8704
8705         * rs6000.c (rs6000_emit_load_toc_table): Don't
8706         strdup the toc label.
8707         (create_TOC_reference): Likewise.
8708
8709 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8710
8711         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
8712         version default.
8713
8714 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
8715
8716         * config/i386/i386.c (ix86_attribute_table): Correct
8717         min_len, max_len fields for dllimport, dllexport and shared.
8718
8719 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
8720
8721         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
8722         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
8723         Consistently use "nonzero" instead of "non-zero".
8724
8725 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8726
8727         * acconfig.h: Fix comment formatting.
8728         * c-dump.h: Likewise.
8729         * c-tree.h: Likewise.
8730         * conditions.h: Likewise.
8731         * expr.h: Likewise.
8732         * function.h: Likewise.
8733         * gthr.h: Likewise.
8734         * hwint.h: Likewise.
8735         * integrate.h: Likewise.
8736         * intl.h: Likewise.
8737         * loop.h: Likewise.
8738         * optabs.h: Likewise.
8739
8740 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8741
8742         * c-common.h: Fix comment formatting.
8743         * c-dump.c: Likewise.
8744         * cfg.c: Likewise.
8745         * diagnostic.h: Likewise.
8746         * except.c: Likewise.
8747         * gcc.h: Likewise.
8748         * gcov-io.h: Likewise.
8749         * genattrtab.c: Likewise.
8750         * output.h: Likewise.
8751         * predict.h: Likewise.
8752         * reload1.c: Likewise.
8753         * reload.h: Likewise.
8754         * resource.h: Likewise.
8755         * scan.h: Likewise.
8756         * system.h: Likewise.
8757         * tree.h: Likewise.
8758         * tree-inline.c: Likewise.
8759         * tsystem.h: Likewise.
8760         * varasm.c: Likewise.
8761         * xcoffout.h: Likewise.
8762
8763 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
8764
8765         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
8766
8767 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
8768
8769         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
8770         config/i386/i386elf.h, config/i386/netbsd-elf.h,
8771         config/i386/netware.h, config/mcore/gfloat.h,
8772         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
8773         config/netware.h, gccbug.in: Update FSF address.
8774
8775 2001-10-09  Kazu Hirata  <kazu@hxi.com>
8776
8777         * c-common.c: Fix comment typos.
8778         * cfgrtl.c: Likewise.
8779         * collect2.c: Likewise.
8780         * cpplex.c: Likewise.
8781         * doloop.c: Likewise.
8782         * dwarf2out.c: Likewise.
8783         * dwarfout.c: Likewise.
8784         * expr.c: Likewise.
8785         * fold-const.c: Likewise.
8786         * gcc.c: Likewise.
8787         * gcov.c: Likewise.
8788         * gcse.c: Likewise.
8789         * global.c: Likewise.
8790         * ifcvt.c: Likewise.
8791         * loop.c: Likewise.
8792         * optabs.c: Likewise.
8793         * protoize.c: Likewise.
8794         * regclass.c: Likewise.
8795         * reorg.c: Likewise.
8796         * rtl.h: Likewise.
8797         * stmt.c: Likewise.
8798         * tree.h: Likewise.
8799         * doc/cpp.texi: Likewise.
8800         * doc/c-tree.texi: Likewise.
8801         * doc/extend.texi: Likewise.
8802         * doc/invoke.texi: Likewise.
8803         * doc/objc.texi: Likewise.
8804         * doc/tm.texi: Likewise.
8805
8806 2001-10-08  Richard Henderson  <rth@redhat.com>
8807
8808         * varasm.c (set_named_section_flags): Initialize "declared".
8809
8810 2001-10-08  Robert Lipe  <robertlipe@usa.net>
8811
8812         * varasm.c (struct in_named_entry): Add declared.
8813         (named_section_first_declaration): New function.
8814         (default_elf_asm_named_section): Use it.
8815         * output.h (named_section_first_declaration): New.
8816
8817 2001-10-08  Richard Henderson  <rth@redhat.com>
8818
8819         * i386.md (movsi_xor): Export.
8820         (setcc peep2): Use it when available; add an alternative to
8821         match zero_extendhisi2_and.
8822
8823 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8824
8825         * romp-protos.h (romp_initialize_trampoline): New function.
8826         * romp.c (romp_initialize_trampoline): Likewise.
8827         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
8828         romp_initialize_trampoline.
8829
8830 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8831
8832         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
8833         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8834         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8835         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
8836
8837 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8838
8839         * unroll.c (loop_iterations): Extend check for multiple back edges.
8840
8841 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
8842
8843         * langhooks.h: New file.
8844         * Makefile.in (OBJS): Added langhooks.o.
8845         (c-lang.o): Depend on langhooks.h.
8846         (c-common.o): Don't depend on tree-inline.h.
8847         (tree-inline.o): Depend on toplev.h.
8848         (langhooks.o): New rule.
8849         * c-common.c: Don't include tree-inline.h.
8850         (c_mark_lang_decl): Mark argument c as unused.
8851         (c_common_lang_init): Don't initialize hooks here.
8852         * c-lang.c: Include langhooks.h, then override some macros.
8853         (lang_hooks): Initialize with macros in langhooks.h.
8854         (c_init): Don't initialize hooks here.
8855         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
8856         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
8857         * tree-inline.c: Include toplev.h.  Don't define hook variables.
8858         * tree-inline.h: Don't define hook types nor declare hook
8859         variables.  Move macros to...
8860         * langhooks.c: ... new file, as functions.  Adjust all callers.
8861
8862 2001-10-08  Jeffrey A Law  <law@cygnus.com>
8863
8864         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
8865         purge_mem_unchanging_flag on all instructions, not just on those
8866         before NOTE_INSN_FUNCTION_BEG.
8867
8868 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8869
8870         * cppmacro.c (_cpp_create_definition): Leave comments off.
8871
8872         * doc/cpp.texi: Update.
8873
8874 2001-10-08  DJ Delorie  <dj@redhat.com>
8875
8876         * c-decl.c (grokfield): Make sure the only unnamed fields
8877         we're allowing are either structs or unions.
8878         * doc/extend.texi: Add documentation for the unnamed field
8879         extension.
8880
8881 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
8882
8883         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
8884         * configure.in: Use it.
8885         * configure: Regenerated.
8886         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
8887         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
8888
8889 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8890
8891         * cppfiles.c (open_file): Don't mark zero-length files
8892         never-reread here.  Don't output diagnostics here either.
8893         (stack_include_file): Mark them never-reread here.
8894         (_cpp_read_file): Update.
8895
8896 2001-10-08  Richard Henderson  <rth@redhat.com>
8897
8898         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8899
8900 2001-10-08  Richard Henderson  <rth@redhat.com>
8901
8902         * expr.c (store_expr): When converting a CONST_INT for storage
8903         in a SUBREG, convert it to both SUBREG modes before stripping
8904         the SUBREG.
8905
8906 2001-10-08  Richard Henderson  <rth@redhat.com>
8907
8908         * varasm.c (restore_varasm_status): New.
8909         * function.h: Declare it.
8910         * function.c (pop_function_context_from): Call it.
8911
8912 2001-10-08  Richard Henderson  <rth@redhat.com>
8913
8914         * c-common.h (struct c_lang_decl): Add declared_inline.
8915         * c-tree.h (DECL_DECLARED_INLINE_P): New.
8916         * c-lang.c (c_disregard_inline_limits): Use it.
8917         * c-decl.c (duplicate_decls): Likewise.
8918         (pushdecl, redeclaration_error_message): Likewise.
8919         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
8920         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
8921         Set DECL_INLINE if -finline-functions.
8922         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
8923
8924 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8925
8926         * cppmacro.c (funlike_invocation_p): Move some logic to caller
8927         in enter_macro_context.  Create a padding token in its own context
8928         if necessary when the search for '(' fails.
8929         (enter_macro_context): Update.
8930
8931 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
8932
8933         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
8934         genmultilib, toplev.c: Fix spelling errors of "separate" as
8935         "seperate", and corresponding spelling errors of related words.
8936
8937 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8938
8939         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
8940         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
8941         Likewise.
8942         * c-dump.c (dump_option_value_info): Likewise.
8943         * c-format.c (format_length_info, format_char_info,
8944         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
8945         * collect2.c (names): Likewise.
8946         * cppdefault.h (default_include): Likewise.
8947         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
8948         * flow.c (life_analysis): Likewise.
8949         * gcc.c (dir_separator_str, modify_target, option_map,
8950         target_option_translations, spec_list_1, extra_specs_1,
8951         init_spec): Likewise.
8952         * gcov.c (gcov_version_string): Likewise.
8953         * genattr.c (write_units): Likewise.
8954         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
8955         * gengenrtl.c (rtx_definition, defs): Likewise.
8956         * genrecog.c (pred_table): Likewise.
8957         * global.c (global_alloc): Likewise.
8958         * lcm.c (optimize_mode_switching): Likewise.
8959         * local-alloc.c (find_free_reg): Likewise.
8960         * params.h (param_info): Likewise.
8961         * predict.c (predictor_info): Likewise.
8962         * protoize.c (unexpansion_struct): Likewise.
8963         * real.c (bmask): Likewise.
8964         * recog.h (insn_operand_data, insn_data): Likewise.
8965         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
8966         * stmt.c (expand_nl_goto_receiver): Likewise.
8967         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
8968         target_switches, target_options): Likewise.
8969         * tradcif.y (token, tokentab2, yylex): Likewise.
8970         * tree.h (attribute_spec): Likewise.
8971
8972         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
8973         Likewise.
8974         * arc.c (arc_output_function_epilogue): Likewise.
8975         * arm.c (processors, all_cores, all_architectures,
8976         arm_override_options, isr_attribute_arg, isr_attribute_args,
8977         arm_isr_value): Likewise.
8978         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
8979         Likewise.
8980         * c4x.c (c4x_int_reglist): Likewise.
8981         * d30v.c (override_options): Likewise.
8982         * h8300.c (shift_insn): Likewise.
8983         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
8984         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
8985         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
8986         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
8987         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
8988         * i386.h (processor_costs, ix86_cost): Likewise.
8989         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
8990         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
8991         * m68k.c (codes_68881, codes_FPA): Likewise.
8992         * m88k.c (mode_from_align, max_from_align, all_from_align,
8993         best_from_align, m_options): Likewise.
8994         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
8995         * mcore.c (mode_from_align): Likewise.
8996         * mips/elf64.h (UNIQUE_SECTION): Likewise.
8997         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
8998         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
8999         * mips.h (mips_regno_to_class): Likewise.
9000         * ns32k.c (scales): Likewise.
9001         * pa.c (import_string, magic_milli): Likewise.
9002         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
9003         * sparc.c (leaf_reg_remap, sparc_override_options,
9004         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
9005         Likewise.
9006         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
9007
9008 2001-10-07  Dale Johannesen  <dalej@apple.com>
9009
9010         * reload1.c (reload_reg_free_p): Teach register interference
9011         checking that multiple output reloads are emitted in
9012         reverse order.
9013         reload1.c (reload_reg_reaches_end_p):  Ditto.
9014         reload1.c (reloads_conflict):  Ditto.
9015
9016 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9017
9018         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
9019         NULL_TREE inside @code.
9020
9021 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9022
9023         * doc/gcc.texi: Document consistent style of "32-bit",
9024         "Objective-C", and "@code{NULL}".
9025
9026 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
9027
9028         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
9029         (cpp_token_len, cpp_spell_token, cpp_output_token,
9030         _cpp_equiv_tokens): Handle it.
9031         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
9032         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
9033         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
9034         error messages.
9035
9036 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9037
9038         * gcc.c (default_compilers): Remove .ada.
9039
9040 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9041
9042         * doc/cppinternals.texi: Update.
9043
9044 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
9045
9046         * gcc.c (main): Set this_file_error if the appropriate
9047         compiler for a language has not been installed.
9048
9049 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
9050
9051         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
9052
9053 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
9054
9055         * gccbug.in (CATEGORIES): Add ada.
9056
9057 2001-10-05  Catherine Moore  <clm@redhat.com>
9058
9059         * config/stormy16/stormy-abi:  Document abi changes.
9060         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
9061         (ICALL_REGS): New register class.
9062         (NUM_ARGUMENT_REGISTERS): Now 6.
9063         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
9064         in registers.
9065         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
9066         * config/stormy16.md (call_internal, call_value_internal,
9067         indirect_jump): Use new 'z' constraint.
9068
9069 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9070
9071         * doc/cppinternals.texi: Update.
9072
9073 2001-10-05  Richard Henderson  <rth@redhat.com>
9074
9075         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
9076         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
9077         the gas section-name-as-label feature.
9078
9079 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9080
9081         * doc/cppinternals.texi: Update.
9082
9083 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9084
9085         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
9086         to ensure valid SImode constants.
9087
9088 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
9089
9090         * Makefile.in (c-decl.o): Depend on tree-inline.h.
9091         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
9092         * c-decl.c: Include tree-inline.h.
9093         (c_expand_body): Call optimize_inline_calls. Determine whether
9094         a function is inlinable upfront, and only clear
9095         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
9096         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
9097         (c_disregard_inline_limits): New function.
9098         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
9099         (c_post_options): Enable tree inlining if inlining is enabled.
9100         Don't inline trees when instrumenting functions.
9101         (c_init): Initialize lang_disregard_inline_limits and
9102         lang_cannot_inline_tree_fn.
9103         * tree-inline.c (initialize_inlined_parameters): Handle calls
9104         with fewer arguments than declared parameters, and fewer
9105         parameters than passed arguments.  Don't assume value is a
9106         DECL.
9107         (declare_return_variable): Convert return value back to the
9108         original type, if it was promoted.
9109         (tree_inlinable_function_p): New function.
9110         (inlinable_function_p): Don't look at DECL_INLINE if we're
9111         inlining all functions.  Make it work with a NULL id.
9112         Re-check DECL_UNINLINABLE after language-specific checks.
9113         * tree-inline.h (tree_inlinable_function_p): Declare it.
9114         * integrate.c (save_for_inline): Don't bother to prepare argvec
9115         when not inlining.
9116         * cse.c (check_for_label_ref): Don't check deleted labels.
9117
9118         * Makefile.in (tree-inline.o): Depend on newly-included headers.
9119         * tree-inline.c: Include headers needed for the functions moved in.
9120         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
9121         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
9122         (copy_body, initialize_inlined_parameters): Likewise.
9123         (declare_return_variable, inlinable_function_p): Likewise.
9124         (expand_call_inline, expand_calls_inline): Likewise.
9125         (optimize_inline_calls, clone_body): Likewise.
9126         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
9127         (copy_tree_r, remap_save_expr): Likewise.
9128
9129 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
9130
9131         * Makefile.in (OBJS): Added tree-inline.o.
9132         (c-common.o): Depend on tree-inline.h.
9133         (tree-inline.o): New target.
9134         * c-common.c: Include tree-inline.h.
9135         (c_mark_lang_decl): Don't mark saved_tree.
9136         (c_common_lang_init): Set lang_anon_aggr_type_p.
9137         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
9138         (struct c_lang_decl): Moved saved_tree to tree_decl.
9139         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
9140         * integrate.h (function_attribute_inlinable_p): Declare it.
9141         * integrate.c (function_attribute_inlinable_p): Export it.
9142         * tree-inline.c: New file.  Define variables declared in...
9143         * tree-inline.h: New file.  Declare functions to be moved to
9144         tree-inline.c.  Define macros and declare types and hooks for
9145         language-specific tree inlining.
9146         (flag_inline_trees): Moved definition from cp/decl2.c.
9147         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
9148         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
9149         (struct tree_decl): Moved saved_tree from c_lang_decl and
9150         inlined_fns from C++'s lang_decl.
9151
9152 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
9153
9154         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
9155         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
9156
9157 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9158
9159         * doc/cppinternals.texi: Update.
9160
9161 2001-10-04  Eric Christopher  <echristo@redhat.com>
9162
9163         * config/mips/mips.c (init_cumulative_args): Remember to set
9164         cum->prototype.
9165         * config.gcc: Redo linux configuration. Add target_cpu_default
9166         of soft-float to all mipsisa32 combinations and tx39.
9167         * config/mips/linux.h: Remove include of mips.h.
9168
9169 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
9170
9171         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
9172         HOST_LDFLAGS and HOST_CPPFLAGS.
9173
9174 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
9175
9176         * c-parse.in (objc_inherit_code, objc_pq_context,
9177         objc_public_flag): Make static.
9178         (objc_interface_context, objc_implementation_context,
9179         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
9180         global tree array in objc/objc-act.[ch].
9181         (methoddef): Remove unnecessary code.
9182
9183         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
9184         Hoist struct definitions to objc-act.h.
9185         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
9186         cat_count): Place declaration in objc-act.h.
9187         (objc_tree_index): Move enumeration to objc-act.h.
9188         (objc_global_trees): Place declaration and macro accessors in
9189         objc-act.h.
9190         (implementation_context): Remove duplicate; use
9191         objc_implementation_context instead:
9192         (method_context): Remove duplicate; use objc_method_context
9193         instead.
9194         (objc_ellipsis_node, objc_method_prototype_template,
9195         implemented_classes, function_type): Move global vars to
9196         objc_global_trees.
9197         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
9198         (build_message_expr): Move actual construction of ObjC message
9199         send nodes to finish_message_expr.
9200         (finish_message_expr): New routine, contains code formerly in
9201         build_message_expr.
9202         * objc/objc-act.h (finish_message_expr): New prototype.
9203         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
9204         declarations; these vars are now part of objc_global_trees.
9205         (objc_tree_index, objc_global_trees): Move definitions from
9206         objc-act.c.
9207         * objc/objc-tree.def: Update copyright info.
9208
9209 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
9210
9211         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
9212         op is NULL.
9213         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
9214         only if TARGET_ARCH64.
9215
9216 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
9217
9218         * doc/extend.texi: Fix some problems with previous checkin.
9219         * doc/invoke.texi: Likewise.
9220
9221 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9222
9223         * cpphash.h: Update comments.
9224         (cpp_context): Update.
9225         (spec_nodes): Remove n__Pragma.
9226         * cppinit.c (cpp_create_reader): Update.
9227         (builtin_array): Add _Pragma.
9228         * cpplib.h: Update comments.
9229         (NODE_DISABLED, BT_PRAGMA): New.
9230         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
9231         * cppmacro.c (struct cpp_macro): Remove disabled.
9232         (builtin_macro): Return int, handle _Pragma, push the new token
9233         on the context stack.
9234         (funlike_invocation_p): Unconstify, update.
9235         (enter_macro_context): Handle builtins here.
9236         (replace_args, push_token_context, push_ptoken_context):
9237         Update for prototype changes.
9238         (_cpp_pop_context): Update.
9239         (cpp_get_token): Don't handle buitins, nor _Pragma here.
9240         (cpp_sys_macro_p): Update.
9241         (_cpp_free_definition): Clear disabled flag.
9242         (_cpp_create_definition): Upate.
9243         * cppmain.c: Update comments.
9244
9245 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
9246                                 Andreas Jaeger <aj@suse.de>,
9247                                 Jan Hubicka    <jh@suse.cz>
9248
9249         * doc/invoke.texi (i386 Options): Document x86-64 options.
9250         (i386 and x86-64 Options): Rename i386 options section.
9251
9252         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
9253         (TARGET_SWITCHES): Add -munwind-info.
9254         (MASK_NO_UNWIND_INFO): New.
9255         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
9256         biarch compilation.
9257         (ASM_OUTPUT_DOUBLE_INT): New.
9258
9259         * config/i386/linux64.h: New spec file for Linux x86-64 support.
9260         * config.gcc: Fix tm_file settings for x86-64.
9261         * config/i386/x86-64.h: New file with OS independent x86-64
9262         definitions.
9263         * config/i386/biarch64.h: New file used to configure compiler
9264         to biarch/64bit compilation.
9265
9266         * config/i386/i386.c: (override_options): Set flags default
9267         for 64bit compilation.
9268
9269 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
9270
9271         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
9272         (ix86_expand_int_movcc): Optimize DImode conditional moves with
9273         constants on x86_64.
9274         (ix86_attr_length_immediate_default): Support MODE_DI.
9275         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
9276         condition.
9277         (indirect_jump, tablejump): Turn into expander.
9278
9279 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9280
9281         * c-common.c (c_format_attribute_table): Make format and
9282         format_arg attributes apply to function types rather than to
9283         decls.
9284         (is_valid_printf_arglist): Construct an attribute list and pass
9285         that to check_function_format rather than a name.
9286         * c-common.h (check_function_format): Adjust prototype.
9287         * c-decl.c (duplicate_decls): Preserve attributes from type of
9288         built-in decl when allowing for harmless conflict in types.
9289         * c-format.c (record_function_format,
9290         record_international_format, function_format_list,
9291         international_format_info, international_format_list): Remove.
9292         (function_format_info): Remove next, name and assembler_name.
9293         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
9294         (decode_format_attr): New.
9295         (handle_format_attribute): Handle receiving a type rather than a
9296         decl.  Call decode_format_attr.  Store format information in a
9297         function_format_info.
9298         (handle_format_arg_attribute): Correct comment.  Handle receiving
9299         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
9300         arg_num.
9301         (check_format_info_recurse, check_format_info_main): Take argument
9302         numbers as unsigned HOST_WIDE_INT.
9303         (check_function_format): Take a list of attributes from the
9304         function type rather than a name or assembler name.  Check for
9305         format attributes in that list and the attributes on the type of
9306         the current function rather than looking through
9307         function_format_list.
9308         (check_format_info): Use unsigned HOST_WIDE_INT for argument
9309         numbers.
9310         (check_format_info_recurse): Take format_arg attributes from the
9311         type of the function calls rather than using
9312         international_format_list.  Allow for multiple format_arg
9313         attributes.
9314         * c-typeck.c (build_function_call): Pass type attributes to
9315         check_function_format rather than name or assembler name.  Don't
9316         require there to be a name or assembler name to check formats.
9317
9318 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9319
9320         * attribs.c (decl_attributes): Possibly call
9321         insert_default_attributes to insert default attributes on
9322         functions in a lazy manner.
9323         * builtin-attrs.def: New file; define the default format and
9324         format_arg attributes.
9325         * c-common.c (c_format_attribute_table): Move to earlier in the
9326         file.
9327         (c_common_nodes_and_builtins): Initialize format_attribute_table.
9328         (enum built_in_attribute, built_in_attributes,
9329         c_attrs_initialized, c_init_attributes,
9330         c_common_insert_default_attributes): New.
9331         (c_common_lang_init): Don't initialize format_attribute_table.  Do
9332         call c_init_attributes.
9333         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
9334         * c-common.h (init_function_format_info): Don't declare.
9335         (c_common_insert_default_attributes): Declare.
9336         * c-decl.c (implicitly_declare, builtin_function): Call
9337         decl_attributes.
9338         (init_decl_processing): Don't call init_function_format_info.
9339         (insert_default_attributes): New.
9340         * c-format.c (handle_format_attribute,
9341         handle_format_arg_attribute): Be quiet about inappropriate
9342         declaration when applying default attributes.
9343         (init_function_format_info): Remove.
9344         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
9345         (insert_default_attributes): Declare.
9346
9347 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9348
9349         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
9350
9351 2001-10-01  Jim Wilson  <wilson@redhat.com>
9352
9353         * sched-deps.c (add_dependence): When elide conditional dependence,
9354         check that insn doesn't modify cond2.
9355
9356 2001-10-01  Dale Johannesen  <dalej@apple.com>
9357
9358         * config/rs6000/rs6000.h (enum processor_type): Add support
9359         for 7400 (G4) and 7450.
9360         (RTX_COSTS): Ditto.
9361         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
9362         (rs6000_issue_rate): Ditto.
9363         (rs6000_adjust_cost): Fix cycle counts for compares.
9364         (debug_stack_info):  Fix an obvious typo.
9365         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
9366         * doc/invoke.texi: Document.
9367         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
9368         for Darwin.
9369         (PROCESSOR_DEFAULT): Ditto.
9370
9371 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
9372
9373         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
9374         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
9375         later recursive make invocation.
9376
9377 2001-10-01  Hans Boehm  <boehm@acm.org>
9378
9379         * optabs.c (emit_libcall_block): When using non-call exceptions,
9380         don't add REG_LIBCALL reg notes to trapping calls.
9381
9382 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
9383
9384         * flow.c (propagate_block_delete_libcall): Remove unused first arg
9385         (propagate_one_insn):  Update for above change
9386
9387 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
9388
9389         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
9390         _Unwind_GetTextRelBase): Argument is unused.
9391
9392 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9393
9394         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
9395         Loop through NOPs, placeholders, and components.
9396         Don't go through NOPs if change mode.
9397         (record_alias_subset): Do nothing if SUBSET and SET are the same.
9398         * emit-rtl.c (set_mem_alias_set): Enable check.
9399         * expr.c (find_placeholder): New function.
9400         (expand_expr, case PLACEHOLDER_EXPR): Use it.
9401         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
9402         to modify it and avoid unneeded copies.
9403         * expr.h (expand_expr): Always define.
9404         (find_placeholder): New declaration.
9405
9406 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9407
9408         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
9409         operand 2 is the stack pointer.
9410         ("addr-peephole"): Fix address computation peephole when operand 2
9411         is the stack pointer.
9412
9413 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9414
9415         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
9416         (ix86_setup_incoming_varargs): Likewise.
9417
9418 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
9419
9420         * stor-layout.c (layout_type): Don't complain about too-large
9421         array here.
9422
9423 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9424
9425         * function.c (keep_stack_depressed): Don't use delete_insn.
9426
9427         * expr.h (set_mem_alias_set): Move decl to here.
9428         * rtl.h (mem_attrs): New typedef and struct.
9429         (union rtunion_def): Add field for mem_attrs.
9430         (X0MEMATTR, MEM_ATTRS): New macros.
9431         (MEM_ALIAS_SET): Use MEM_ATTRS.
9432         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
9433         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
9434         (set_mem_alias_set): Delete decl from here.
9435
9436         * alias.c (set_mem_alias_set): Delete from here.
9437         * emit-rtl.c (mem_attrs_htab): New variable.
9438         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
9439         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
9440         (mem_attrs_mark, get_mem_attrs): Likewise.
9441         (gen_rtx_MEM): Clear MEM_ATTRS.
9442         (set_mem_attributes): Move to here.
9443         (set_mem_alias_set): Likewise, and call get_mem_attrs.
9444         (init_emit_once): const_int_htab now deletable htab.
9445         Initialize mem_attrs_htab.
9446         * explow.c (set_mem_attributes): Delete from here.
9447         * function.c (put_var_into_stack): Clear MEM_ATTRS.
9448         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
9449         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
9450         * reload1.c (reload): Rework changing REG to MEM.
9451
9452 2001-09-30  H.J. Lu <hjl@gnu.org>
9453
9454         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
9455         * config.in: Rebuild.
9456
9457 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9458
9459         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
9460         ("tsthi_1"): Avoid allocation in register y.
9461         ("*movqi_68hc12"): Reorganize and fix constraints.
9462         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
9463         ("addqi3"): Likewise.
9464         ("addhi3"): Fix constraints.
9465         ("*logicalhi3_zexthi"): Disparage soft registers.
9466
9467 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9468
9469         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
9470         to tmp reg.
9471
9472 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9473
9474         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
9475         that we use setjmp/longjmp exceptions.
9476
9477 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
9478
9479         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
9480         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
9481         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
9482         _cpp_pool_alloc, _cpp_next_chunk): Remove.
9483         (_cpp_extend_buff, BUFF_ROOM): Update.
9484         (_cpp_append_extend_buff): New.
9485         (struct cpp_reader): Remove macro_pool, add a_buff.
9486         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
9487         macro_pool.
9488         (cpp_destroy): Free a_buff instead of macro_pool.
9489         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
9490         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
9491         _cpp_pool_alloc, ): Remove.
9492         (parse_number, parse_string): Update use of _cpp_extend_buff.
9493         (_cpp_extend_buff): Update.
9494         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
9495         * cpplib.c (glue_header_name, parse_answer):
9496         Update use of _cpp_extend_buff.
9497         (cpp_register_pragma, cpp_register_pragma_space): Use
9498         _cpp_aligned_alloc.
9499         (do_assert, do_unassert): Check for EOL, update.
9500         * cppmacro.c (stringify_arg, collect_args): Update to use
9501         _cpp_extend_buff and _cpp_append_extend_buff.
9502         (save_parameter, parse_params, alloc_expansion_token,
9503         _cpp_create_definition): Rework memory management.
9504
9505 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
9506
9507         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
9508         update md_exec_prefix.
9509         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
9510         to string constant.
9511
9512 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
9513
9514         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
9515         (SELECT_CC_MODE): Use s390_select_ccmode.
9516         * config/s390/s390-protos.h (s390_select_ccmode): Add.
9517         * config/s390/s390.c (s390_select_ccmode): New.
9518         (s390_match_ccmode): Add CCLmode.
9519         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
9520         (output_branch_condition, output_inverse_branch_condition): Removed.
9521         (print_operand): Use s390_branch_condition_mnemonic.
9522         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
9523         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
9524         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
9525
9526         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
9527         when converting conditional branches to far branches.
9528         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
9529         cmpint_di): Use CCSmode instead of CCUmode.
9530
9531         * config/s390/s390.c (legitimate_la_operand_p): New.
9532         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
9533         * config/s390/s390.md (movsi): Convert load address patterns to
9534         arithmetic operations when necessary.
9535         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
9536         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
9537         (*do_la_reg_0): Don't use before reload.
9538
9539         * config/s390/s390.c (legitimize_address): Make more efficient
9540         use of two-register addressing mode.
9541
9542         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
9543         with -mno-backchain in some corner cases.
9544
9545         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
9546
9547 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
9548
9549         * reload.c (find_reloads): Mark new USE insns with QImode.
9550         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
9551         find_reloads_subreg_address): Likewise.
9552         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
9553         encountered.
9554         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
9555         CLOBBERs.
9556         (reload): Make sure there are no USEs with mode other than
9557         VOIDmode.  At the end, remove those marked with QImode.
9558
9559 2001-09-29  Per Bothner  <per@bothner.com>
9560
9561         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
9562         * Makefile.in (includedir):  Rename to local_includedir.
9563         (includedir):  Define as $(prefix)/include.
9564         * config.in (PREFIX_INCLUDE_DIR):  New variable.
9565         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
9566
9567 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
9568
9569         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
9570         storehps builtins.
9571         * doc/extend.texi (Vector Extensions): New node.
9572         * doc/invoke.texi (Machine Dependent Options): Add documentation for
9573         i386 -mmmx, -msse, -m3dnow.
9574
9575 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9576
9577         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
9578
9579 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
9580
9581         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
9582
9583         * doc/invoke.texi (Optimize Options): Delete spurious @table.
9584
9585 2001-09-28  Richard Henderson  <rth@redhat.com>
9586
9587         * varasm.c (assemble_integer): Bound alignment check by
9588         BIGGEST_ALIGNMENT.
9589
9590         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
9591
9592 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9593
9594         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
9595
9596 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
9597
9598         Mostly from Graham Stott  <grahams@redhat.com>
9599         * c-common.c (type_for_mode): Add support for V2SFmode.
9600         * tree.c (build_common_tree_nodes_2): Likewise.
9601         * tree.h (enum tree_index, global_trees): Likewise.
9602         * config/i386/i386.c (x86_3dnow_a): New variable.
9603         (override_options): Support 3Dnow extensions.
9604         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
9605         Athlon's version of 3Dnow.
9606         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
9607         (ix86_expand_builtin): Handle them.
9608         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
9609         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
9610         TARGET_3DNOW_A): New macros.
9611         (TARGET_SWITCHES): Add 3Dnow switches.
9612         (VALID_MMX_REG_MODE_3DNOW): New macro.
9613         (VECTOR_MODE_SUPPORTED_P): Use it.
9614         (enum ix86_builtins): Add entries for 3Dnow builtins.
9615         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
9616         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
9617         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
9618         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
9619         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
9620         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
9621         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
9622         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
9623         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
9624         sfence_insn, prefetch): Make these available if TARGET_SSE or
9625         TARGET_3DNOW_A.
9626
9627 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
9628
9629         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
9630         ix86_va_start, ix86_build_va_list): Declare.
9631         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
9632         ix86_va_start, ix86_build_va_list): New global functions.
9633         * i386.md (sse_prologue_save_insn): New insn.
9634         (sse_prologue_save): New expander.
9635         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
9636         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
9637
9638 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9639
9640         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
9641         Use size_t everywhere, make definitions consistent with
9642         prototypes.
9643
9644 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
9645
9646         * gcse.c (replace_store_insn): Use delete_insn.
9647         * loop.c (move_movables): Likewise; avoid delete_insn
9648         from clobbering notes moved elsewhere.
9649         (check_dbra_loop): Use delete_insn.
9650         * ssa.c (convert_from_ssa): Likewise.
9651         * cse.c (cse_insn): Use delete_insn.
9652
9653 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9654
9655         * cpphash.h (struct cpp_buff): Make unsigned.
9656         (_cpp_get_buff): Take length of size_t.
9657         (_cpp_unaligned_alloc): New.
9658         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
9659         (struct cpp_reader): Remove ident_pool.  Add u_buff.
9660         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
9661         (cpp_destroy): Destroy u_buff, not ident_pool.
9662         * cpplex.c (parse_number, parse_string, save_comment,
9663         cpp_token_as_text): Update to use the unaligned buffer.
9664         (new_buff): Make unsigned.
9665         (_cpp_unaligned_alloc): New.
9666         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
9667         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
9668         Similarly.
9669         (collect_args): Make unsigned.
9670
9671 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
9672
9673         * cpplex.c (cpp_output_token): Use a putc loop for
9674         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
9675
9676         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
9677         * configure, config.in: Regenerate.
9678         * system.h: Replace fwrite and fprintf with their unlocked
9679         variants if available.
9680
9681 2001-09-27  Richard Henderson  <rth@redhat.com>
9682
9683         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
9684         in favour of .eh_frame.
9685
9686 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
9687
9688         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
9689         to macros.
9690         (LIBCALL_VALUE): Likewise.
9691
9692 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9693
9694         * cpphash.h: Update comment.
9695         * cpplex.c: Update comments.
9696         (_cpp_can_paste): Remove.
9697         * cpplib.h (_cpp_can_paste): Remove.
9698         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
9699         lexer rather than _cpp_can_paste.
9700
9701 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
9702
9703         * doc/cppinternals.texi: Update.
9704
9705 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9706
9707         * cpphash.h (struct cpp_pool): Remove locks and locked.
9708         (struct cpp_context): Add member buff.
9709         (struct cpp_reader): Remove member argument_pool.
9710         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
9711         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
9712         * cpplex.c (chunk_suitable): Remove pool argument.
9713         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
9714         (new_buff, _cpp_extend_buff): Update.
9715         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
9716         which buffer is returned.
9717         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
9718         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
9719         * cppmacro.c (lock_pools, unlock_pools): Remove.
9720         (push_ptoken_context): Take a _cpp_buff.
9721         (enter_macro_context): Pool locking removed.
9722         (replace_args): Use a _cpp_buff for the replacement list with
9723         arguments replaced.
9724         (push_token_context): Clear buff.
9725         (expand_arg): Use _cpp_pop_context.
9726         (_cpp_pop_context): Free a context's buffer, if any.
9727
9728 2001-09-26  DJ Delorie  <dj@redhat.com>
9729
9730         * c-typeck.c (digest_init): Check for sizeless arrays.
9731
9732 2001-09-26  Richard Henderson  <rth@redhat.com>
9733
9734         * optabs.c (init_one_libfunc): Create a dummy function type
9735         instead of using error_mark_node.
9736
9737 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9738
9739         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
9740         _cpp_extend_buff, _cpp_free_buff): New.
9741         (struct cpp_reader): New member free_buffs.
9742         * cppinit.c (cpp_destroy): Free buffers.
9743         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
9744         _cpp_extend_buff, _cpp_free_buff): New.
9745         * cpplib.h (struct cpp_options): Remove unused member.
9746         * cppmacro.c (collect_args): New.  Combines the old parse_arg
9747         and parse_args.  Use _cpp_buff for memory allocation.
9748         (funlike_invocation_p, replace_args): Update.
9749
9750 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9751
9752         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
9753
9754 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
9755
9756         * except.c (sjlj_mark_call_sites): Change address inside sequence.
9757
9758 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
9759
9760         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
9761         glibc.
9762
9763 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
9764             Jim Wilson  <wilson@redhat.com>
9765
9766         * doc/install.texi (Specific, ia64-*-linux): Document.
9767
9768 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
9769
9770         * Makefile.in (cfgrtl.o): Add.
9771         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
9772         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
9773         free_aux_for_edge): Declare.
9774         * cfg.c
9775         (HAVE_return): Undefine.
9776         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
9777         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
9778         free_aux_for_edge): New global functions.
9779         (first_delete_block): New static variable.
9780         (init_flow): Clear first_delete_block.
9781         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
9782          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
9783          try_redirect_by_replacing_jump, last_loop_beg_note,
9784          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
9785          delete_insn, delete_insn_chain, create_basic_block_structure,
9786          create_basic_block, flow_delete_block, compute_bb_for_insn,
9787          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
9788          set_block_for_new_insns, split_block, merge_blocks_nomove,
9789          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
9790          redirect_edge_and_branch, force_nonfallthru_and_redirect,
9791          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
9792          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
9793          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
9794          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
9795          purge_all_dead_edges): Move to ....
9796         * cfgrtl.c: New file; .... Here.
9797
9798         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
9799         (reroder_basic_block): Use alloc_aux_for_blocks.
9800         * predict.c (estimate_bb_frequencies): Likewise; use
9801         alloc_aux_for_edges.
9802         * profile.c (compute_branch_probabilities): Likewise.
9803         (branch_prob): Likewise.
9804         * reg-stack.c (reg_to_stack): Likewise.
9805
9806         * emit-rtl.c (emit_insns_after): Never return NULL.
9807
9808         * basic-block.h (set_block_for_new_insns): Delete.
9809         * cfgrtl.c (set_block_for_new_insns): Delete.
9810
9811         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
9812         calls when crossjumping.
9813
9814         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
9815         * unroll.c (copy_loop_body): Use delete_insn.
9816
9817         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
9818         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
9819         keep_stack_depressed): Likewise.
9820         * gcse.c (cprop_cc0_jump): Likewise.
9821         * local-alloc.c (update_equiv_regs): Likewise.
9822         * loop.c (scan_loop, loop_delete_insns): Likewise.
9823         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
9824         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
9825         delete_output_reload, delete_address_reloads_1,
9826         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
9827         Likewise.
9828         * sibcall.c (replace_call_placeholder): Likewise.
9829         * cse.c (cse_insn): Likewise.
9830
9831 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
9832
9833         From Graham Stott  <grahams@redhat.com>
9834         (def_builtin): Only define builtins appropriate for target_flags.  All
9835         callers changed.
9836         (builtin_decsription): Add new field mask which is used to determine
9837         when to define the builtin via the macro def_builtin.
9838
9839         (bdesc_comi): Initialise new mask fields.
9840         (bdesc_2srg): Likewise.
9841         (bdesc_1arg): Likewise.
9842
9843         * config/i386/i386.c (ix86_init_builtins): Correct return type
9844         building v4hi_ftype_v4hi_int_int tree node.
9845         (ix86_expand_sse_comi): Fix typo swapping operands.
9846         Don't swap comparision condition, it is already swapped.
9847         (ix86_expand_sse_compare): Before swapping operands
9848         move operand 1 into new rtx and not the target rtx.
9849         Don't swap comparison condition, it is already swapped.
9850         Always check whether we need to create a new TARGET.
9851
9852         * config/i386/i386.md: (sse_comi) Fix typos.
9853         (sse_ucomi): Likewise.
9854         (cvtss2si): Fix operand 0 contraint.
9855         (cvttss2si): Likewise.
9856         (sse_unpckhps): Fix mode for operand 2.
9857         (sse_unpcklps): Likewise.
9858
9859 2001-09-25  Graham Stott  <grahams@redhat.com>
9860
9861         * sibcall.c (skip_copy_to_return_value): Tighten return value
9862         copy check.
9863
9864 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
9865
9866         * rs6000.c (lwa_operand): Address must be word aligned.
9867
9868 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9869
9870         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
9871         number has been set.
9872         (type_hash_mark): Mark type itself.
9873
9874 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9875
9876         * c-lex.c (cb_def_pragma): Update.
9877         (c_lex): Update, and skip padding.
9878         * cppexp.c (lex, parse_defined): Update, remove unused variable.
9879         * cpphash.h (struct toklist): Delete.
9880         (union utoken): New.
9881         (struct cpp_context): Update.
9882         (struct cpp_reader): New members eof, avoid_paste.
9883         (_cpp_temp_token): New.
9884         * cppinit.c (cpp_create_reader): Update.
9885         * cpplex.c (_cpp_temp_token): New.
9886         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
9887         (cpp_output_token): Don't print leading whitespace.
9888         (cpp_output_line): Update.
9889         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
9890         do_include_common, do_line, do_ident, do_pragma,
9891         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
9892         parse_assertion): Update.
9893         (get_token_no_padding): New.
9894         * cpplib.h (CPP_PADDING): New.
9895         (AVOID_LPASTE): Delete.
9896         (struct cpp_token): New union member source.
9897         (cpp_get_token): Update.
9898         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
9899         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
9900         replace_args, quote_string, stringify_arg, parse_arg, next_context,
9901         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
9902         _cpp_backup_tokens, _cpp_create_definition): Update.
9903         (push_arg_context): Delete.
9904         (padding_token, push_token_context, push_ptoken_context): New.
9905         (make_string_token, make_number_token): Update, rename.
9906         (cpp_get_token): Update to handle tokens as pointers to const,
9907         and insert padding appropriately.
9908         * cppmain.c (struct printer): New member prev.
9909         (check_multiline_token): Constify.
9910         (do_preprocessing, cb_line_change): Update.
9911         (scan_translation_unit): Update to handle spacing.
9912         * scan-decls.c (get_a_token): New.
9913         (skip_to_closing_brace, scan_decls): Update.
9914         * fix-header.c (read_scan_file): Update.
9915
9916         * doc/cpp.texi: Update.
9917
9918 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9919
9920         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
9921         leak by passing malloc'ed pointer to reconcat, not concat.
9922
9923 2001-09-24  DJ Delorie  <dj@redhat.com>
9924
9925         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
9926
9927 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
9928
9929         * flow.c (delete_dead_jumptables): Delete jumptable if the only
9930         reference is from the literal pool.
9931
9932 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
9933
9934         * doc/install.texi (Final install): Request additional information
9935         in mail about successful builds.
9936
9937 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9938
9939         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
9940         initial value of return pointer register instead of value in frame-20.
9941         Revise comments.
9942
9943 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9944
9945         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
9946         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
9947         the libcall if there isn't a referenced identifier for the symbol.
9948
9949 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9950
9951         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
9952         non 64-bit machines.  Use these as a plabel for the trampoline.
9953         (TRAMPOLINE_SIZE): Adjust size for new words.
9954         (INITIALIZE_TRAMPOLINE): Initialize new words.
9955         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
9956         pointer to the plabel in the trampoline.
9957
9958 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9959
9960         * pa.c (function_arg): Pass floating arguments in both general and
9961         floating registers in indirect (dynamic) calls when generating code
9962         for the 32 bit ABI and the HP assembler.
9963
9964 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9965
9966         * doc/install.texi: Markup fixes.
9967         Use Solaris 2, SunOS 4 as appropriate.
9968         (Specific, *-*-solaris2*): Explain this.
9969         Unconditionally warn against /usr/ucb tools.
9970         Remove Sun as warning, obsolete.
9971         Move X11 header bug workaround here, update patches.
9972         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
9973         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
9974
9975 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
9976
9977         * errors.h (warning, error, fatal, internal_error): Don't mark
9978         with ATTRIBUTE_PRINTF_n.
9979         * toplev.h (internal_error, fatal_io_error, warning, error,
9980         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
9981         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
9982         Likewise.
9983
9984 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9985
9986         * function.c (pop_function_context_from): var_refs_queue
9987         and temp slots now in GC memory.
9988         (mark_function_status, free_after_compilation): Likewise;
9989         also struct function now in GC memory.
9990         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
9991         (combine_temp_slots): Likewise.
9992         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
9993         (prepare_function_start): Use GC memory for struct function.
9994         (mark_temp_slot): Deleted.
9995         (gcc_mark_struct_function): struct function now in GC memory.
9996
9997         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
9998         code for division, not modulus.
9999
10000         * rtl.def (MEM): Remove obsolete part of comment.
10001
10002 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
10003
10004         * c-format.c (init_function_format_info): Check __builtin_printf
10005         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
10006         in gnu89 mode.
10007
10008 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10009
10010         * c-common.c (format_attribute_table): Remove decl.
10011         * tree.h (format_attribute_table, lang_attribute_table): New decls.
10012         (lang_attribute_common): Likewise.
10013
10014         * function.c (fix_lexical_address): Use set_mem_alias_set.
10015         (expand_function_start): Likewise.
10016         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
10017
10018         * varasm.c (output_constant): Fix unused variable warning.
10019
10020         * attribs.c: New file, from c-common.c.
10021         (attribute_tables): Now four elements.
10022         (format_attribute_table, lang_attribute_common): New variables.
10023         (init_attributes): Reflect above changes.
10024         (handle_mode_attribute): Delete check for wider than uintmax.
10025         * c-common.c: Delete parts moved to attribs.c.
10026         (enum attrs): Deleted; unused.
10027         (c_format_attribute_table): New variable.
10028         (c_common_lang_init): Initialize format_attribute_table with it.
10029         * c-common.h (decl_attributes): Remove decl.
10030         * tree.h (decl_attribute): Move it to here.
10031         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
10032         (attribs.o): New rule.
10033
10034 2001-09-22  Andreas Jaeger  <aj@suse.de>
10035
10036         * builtins.c (c_getstr): Remove unused variable.
10037
10038 2001-09-21  Richard Henderson  <rth@redhat.com>
10039
10040         * reload1.c (reload): Use delete_insn instead of splatting
10041         NOTE_INSN_DELETED.
10042
10043 2001-09-21  Richard Henderson  <rth@redhat.com>
10044
10045         * reload.c (push_secondary_reload): Don't check for "=" in output
10046         constraint after ""->ALL_REGS check.
10047
10048 2001-09-21  Richard Henderson  <rth@redhat.com>
10049
10050         * predict.c (expected_value_to_br_prob): Use pc_set.
10051
10052         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
10053         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
10054
10055 2001-09-21  Richard Henderson  <rth@redhat.com>
10056
10057         * rtl.h (LCT_RETURNS_TWICE): New.
10058         * calls.c (emit_call_1): Set current_function_calls_setjmp for
10059         ECF_RETURNS_TWICE.
10060         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
10061         to ECF_RETURNS_TWICE.
10062         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
10063         call to setjmp.
10064
10065         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
10066
10067         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
10068         (JMP_BUF_SIZE): New.
10069
10070 2001-09-21  Richard Henderson  <rth@redhat.com>
10071
10072         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
10073         to R8_REGS.
10074
10075 2001-09-21  Richard Henderson  <rth@redhat.com>
10076
10077         * tree.def (FDESC_EXPR): New.
10078         * expr.c (expand_expr): Handle it.
10079         * varasm.c (initializer_constant_valid_p): Likewise.
10080         (output_constant): Likewise.
10081         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
10082         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
10083         (ASM_OUTPUT_FDESC): New.
10084         * doc/tm.texi: Document the new macros.
10085
10086 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
10087
10088         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
10089         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
10090         once merging is complete.
10091
10092 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10093
10094         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
10095
10096 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
10097
10098         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
10099         that would be invalid after a merge.
10100
10101 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
10102
10103         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
10104         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
10105         remove some labels.
10106         (flow_delete_insn): This one.
10107         (delete_insn_chain): Rename from ...; do not care labels.
10108         (flow_delete_insn_chain): ... this one.
10109         (flow_delete_block): Remove the insns one BB has been expunged.
10110         (merge_blocks_nomove): Likewise.
10111         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
10112         updating BB boundaries.
10113         (tidy_fallthru_edge): Likewise.
10114         (commit_one_edge_insertion): Likewise.
10115         * cfgbuild.c (find_basic_block): Likewise.
10116         (find_basic_blocks_1): Likewise.
10117         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
10118         (try_crossjump_to_edge): Likewise.
10119         (try_optimize_cfg): Likewise.
10120         * cse.c (delete_trivially_dead_insns): Likewise.
10121         * df.c (df_insn_delete): Likewise.
10122         * doloop.c (doloop_modify): Use delete_related_insns.
10123         * emit-rtl.c (try_split): Likewise.
10124         (remove_insn): Update BB boundaries.
10125         * expect.c (connect_post_landing_pads): Use delete_related_insns.
10126         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
10127         updating BB boundaries.
10128         (propagate_block_delete_insn): Likewise.
10129         (propagate_block_delete_libcall): Likewise.
10130         * function.c (delete_handlers): Use delete_related_insns.
10131         (thread_prologue_and_epilogue_insns): Likewise.
10132         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
10133         * genpeep.c (gen_peephole): Use delete_related_insns.
10134         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
10135         BB boundaries.
10136         (find_cond_trap): Likewise.
10137         * integrate.c (save_for_inline): Use delete_related_insns.
10138         (copy_insn_list): Likewise.
10139         * jump.c (pruge_linie_number_notes): Likewise.
10140         (duplicate_loop_exit_test): Likewise.
10141         (delete_computation): Likewise.
10142         (delete_related_insn): Rename from ...; use delete_insn
10143         (delete_insn): ... this one.
10144         (redirect_jump): Use delete_related_insns.
10145         * loop.c (scan_loop): Likewise.
10146         (move_movables): Likewise.
10147         (find_and_verify_loops): Likewise.
10148         (check_dbra_loop): Likewise.
10149         * recog.c (peephole2_optimize): Likewise.
10150         * reg-stack.c (delete_insn_for_stacker): Remove.
10151         (move_for_stack_reg): Use delete_insn.
10152         * regmove.c (combine_stack_adjustments_for_block): Likewise.
10153         * reload1.c (delete_address_reloads): Use delete_related_insns.
10154         (fixup_abnormal_edges): Use delete_insn.
10155         * recog.c (emit_delay_sequence): Use delete_related_insns.
10156         (delete_from-delay_slot): Likewise.
10157         (delete_scheduled_jump): likewise.
10158         (optimize_skip): Likewise.
10159         (try_merge_delay_insns): Likewise.
10160         (full_simple_delay_slots): Likewise.
10161         (fill_slots_from_thread): Likewise.
10162         (relax_delay_slots): Likewise.
10163         (make_return_insns): Likewise.
10164         (dbr_schedule): Likewise.
10165         * rtl.h (delete_insn): Rename to delete_related_insns.
10166         (delete_insn, delete_insn_chain): New prototypes.
10167         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
10168         by df_insn_delete already.
10169         * ssa-dce.c (delete_insn_bb): Use delete_insn.
10170         * ssa.c (convert_from_ssa): Use delete_related_insns.
10171         * unroll.c (unroll_loop): Likewise.
10172         (calculate_giv_inc): Likewise.
10173         (copy_loop_body): Likewise.
10174
10175         * i386-protos.h (ix86_libcall_value, ix86_function_value,
10176         ix86_function_arg_regno_p, ix86_function_arg_boundary,
10177         ix86_return_in_memory, ix86_function_value): Declare.
10178         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
10179         new static valurables.
10180         (x86_64_reg_class): New enum
10181         (x86_64_reg_class_name): New array.
10182         (classify_argument, examine_argument, construct_container,
10183          merge_classes): New static functions.
10184         (optimization_options): Enable flag_omit_frame_pointer and disable
10185         flag_pcc_struct_return on 64bit.
10186         (ix86_libcall_value, ix86_function_value,
10187         ix86_function_arg_regno_p, ix86_function_arg_boundary,
10188         ix86_return_in_memory, ix86_function_value): New global functions.
10189         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
10190         (function_arg_advance): Handle x86_64 passing conventions.
10191         (function_arg): Likewise.
10192         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
10193         (RETURN_IN_MEMORY): Move offline.
10194         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
10195         (FUNCTION_VALUE_REGNO_P): New macro.
10196         (FUNCTION_ARG_REGNO_P): Move offline.
10197         (struct ix86_args): Add maybe_vaarg.
10198         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
10199         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
10200
10201 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
10202
10203         * s390.md: Changed attributes for scheduling.
10204         * s390.c: (s390_adjust_cost, s390_adjust_priority)
10205         Changed scheduling
10206
10207 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10208
10209         Table-driven attributes.
10210         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
10211         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
10212         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
10213         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
10214         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
10215         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
10216         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
10217         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
10218         * tree.h (struct tree_decl): Change machine_attributes to
10219         attributes.
10220         * doc/c-tree.texi: Document that all attributes are now attached
10221         to decls and types.
10222         * c-common.c (add_attribute, attrtab, attrtab_idx,
10223         default_valid_lang_attribute, valid_lang_attribute): Remove.
10224         (attribute_tables, attributes_initialized,
10225         c_common_attribute_table, default_lang_attribute_table): New
10226         variables.
10227         (handle_packed_attribute, handle_nocommon_attribute,
10228         handle_common_attribute, handle_noreturn_attribute,
10229         handle_unused_attribute, handle_const_attribute,
10230         handle_transparent_union_attribute, handle_constructor_attribute,
10231         handle_destructor_attribute, handle_mode_attribute,
10232         handle_section_attribute, handle_aligned_attribute,
10233         handle_weak_attribute, handle_alias_attribute,
10234         handle_no_instrument_function_attribute,
10235         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
10236         handle_no_limit_stack_attribute, handle_pure_attribute): New
10237         functions.
10238         (init_attributes, decl_attributes): Rewrite to implement
10239         table-driven attributes.
10240         * c-common.h (enum attribute_flags): Move to tree.h.
10241         * c-format.c (decl_handle_format_attribute,
10242         decl_handle_format_arg_attribute): Rename to
10243         handle_format_attribute and handle_format_arg_attribute.  Update
10244         for table-driven attributes.
10245         * c-common.h (decl_handle_format_attribute,
10246         decl_handle_format_arg_attribute): Remove prototypes.
10247         (handle_format_attribute, handle_format_arg_attribute): Add
10248         prototypes.
10249         * c-decl.c (grokdeclarator): Handle attributes nested inside
10250         declarators.
10251         * c-parse.in (setattrs, maybe_setattrs): Remove.
10252         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
10253         Update to handle nested attributes properly.
10254         (maybe_resetattrs, after_type_declarator,
10255         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
10256         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
10257         properly.
10258         (make_pointer_declarator): Update to handle nested attributes
10259         properly.
10260         * doc/extend.texi: Update documentation of limits of attributes
10261         syntax.  Warn about problems with attribute semantics in C++.
10262         * target.h (struct target): Remove valid_decl_attribute and
10263         valid_type_attribute.  Add attribute_table and
10264         function_attribute_inlinable_p.
10265         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
10266         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
10267         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
10268         Add.
10269         (TARGET_INITIALIZER): Update.
10270         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
10271         definition.
10272         (function_attribute_inlinable_p): New function.  Check for the
10273         presence of any machine attributes before using
10274         targetm.function_attribute_inlinable_p.
10275         (function_cannot_inline_p): Update.
10276         * Makefile.in (integrate.o): Update dependencies.
10277         * doc/tm.texi: Update documentation of target attributes and
10278         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
10279         * tree.c (default_valid_attribute_p, valid_machine_attribute):
10280         Remove.
10281         (default_target_attribute_table,
10282         default_function_attribute_inlinable_p): New.
10283         (lookup_attribute): Update comment to clarify handling of multiple
10284         attributes with the same name.
10285         (merge_attributes, attribute_list_contained): Allow multiple
10286         attributes with the same name but different arguments to appear in
10287         the same attribute list.
10288         * tree.h (default_valid_attribute_p): Remove prototype.
10289         (struct attribute_spec): New.
10290         (default_target_attribute_table): Declare.
10291         (enum attribute_flags): Move from c-common.h.  Add
10292         ATTR_FLAG_TYPE_IN_PLACE.
10293         (default_function_attribute_inlinable_p): Declare.
10294         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
10295         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10296         (TARGET_ATTRIBUTE_TABLE): Define.
10297         (vms_attribute_table): New.
10298         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
10299         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10300         (TARGET_ATTRIBUTE_TABLE): Define.
10301         (arc_attribute_table, arc_handle_interrupt_attribute): New.
10302         * config/arm/arm.c (arm_valid_type_attribute_p,
10303         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
10304         Remove.
10305         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
10306         define.
10307         (TARGET_ATTRIBUTE_TABLE): Define.
10308         (arm_attribute_table, arm_handle_fndecl_attribute,
10309         arm_handle_isr_attribute): New.
10310         * config/avr/avr.c (avr_valid_type_attribute,
10311         avr_valid_decl_attribute): Remove.
10312         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
10313         define.
10314         (TARGET_ATTRIBUTE_TABLE): Define.
10315         (avr_attribute_table, avr_handle_progmem_attribute,
10316         avr_handle_fndecl_attribute): New.
10317         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
10318         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10319         (TARGET_ATTRIBUTE_TABLE): Define.
10320         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
10321         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
10322         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10323         (TARGET_ATTRIBUTE_TABLE): Define.
10324         (h8300_attribute_table, h8300_handle_fndecl_attribute,
10325         h8300_handle_eightbit_data_attribute,
10326         h8300_handle_tiny_data_attribute): New.
10327         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
10328         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
10329         Remove prototypes.
10330         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
10331         declarations.
10332         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
10333         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
10334         define.
10335         (TARGET_ATTRIBUTE_TABLE): Define.
10336         (ix86_attribute_table, ix86_handle_cdecl_attribute,
10337         ix86_handle_regparm_attribute): New.
10338         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
10339         i386_pe_valid_type_attribute_p): Remove.
10340         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
10341         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
10342         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10343         (TARGET_ATTRIBUTE_TABLE): Define.
10344         (ia64_attribute_table): New.
10345         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
10346         interrupt_ident2, model_ident1, model_ident2): Remove.
10347         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10348         (TARGET_ATTRIBUTE_TABLE): Define.
10349         (init_idents): Update.
10350         (m32r_attribute_table, m32r_handle_model_attribute): New.
10351         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
10352         Remove.
10353         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10354         (TARGET_ATTRIBUTE_TABLE): Define.
10355         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
10356         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
10357         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10358         (TARGET_ATTRIBUTE_TABLE): Define.
10359         (mcore_attribute_table, mcore_handle_naked_attribute): New.
10360         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
10361         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10362         (TARGET_ATTRIBUTE_TABLE): Define.
10363         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
10364         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
10365         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
10366         (TARGET_ATTRIBUTE_TABLE): Define.
10367         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
10368         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
10369         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10370         (TARGET_ATTRIBUTE_TABLE): Define.
10371         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
10372         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
10373         New.
10374         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
10375         Remove.
10376         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
10377         (TARGET_ATTRIBUTE_TABLE): Define.
10378         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
10379         New.
10380         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
10381         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
10382         (TARGET_ATTRIBUTE_TABLE): Define.
10383         (v850_attribute_table, v850_handle_interrupt_attribute,
10384         v850_handle_data_area_attribute): New.
10385         * config/v850/v850-c.c (mark_current_function_as_interrupt):
10386         Return void.  Call decl_attributes instead of
10387         valid_machine_attribute.
10388
10389 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
10390
10391         * sh-protos.h (sh_pr_n_sets): Declare.
10392         * sh.c (calc_live_regs): If the initial value for PR has been copied,
10393         look at the copy to determine if PR needs to be saved.
10394         sh_pr_n_sets: New function.
10395         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
10396         (ALLOCATE_INITIAL_VALUE): Define.
10397
10398         * sh.c (initial_elimination_offset):
10399         Fix RETURN_ADDRESS_POINTER_REGNUM case.
10400
10401 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
10402
10403         * integrate.c (allocate_initial_values): New function.
10404         * integrate.h (allocate_initial_values): Declare.
10405         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
10406         here...
10407         * reload1.c (reload): And initialization of reg_equiv_memory_loc
10408         from here...
10409         * toplev.c (rest_of_compilation): To here.
10410         Call allocate_initial_values.
10411         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
10412
10413 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10414
10415         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
10416
10417 2001-09-20  DJ Delorie  <dj@redhat.com>
10418
10419         * c-typeck.c (really_start_incremental_init): Discriminate
10420         between zero-length arrays and flexible arrays.
10421         (push_init_level): Detect zero-length arrays and handle them
10422         like fixed-sized arrays.
10423         * expr.c (store_constructor): Handle zero-length arrays and
10424         flexible arrays correctly.
10425         * doc/extend.texi: Update zero-length array notes.
10426
10427 2001-09-20  Jim Wilson  <wilson@redhat.com>
10428
10429         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
10430         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
10431         for issue port conflicts.
10432         (cycle_end_fill_slots): TYPE_L instructions take two slots.
10433
10434 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
10435
10436         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
10437         on ia64.
10438
10439 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10440
10441         * fold-const.c (hashtab.h): Include.
10442         (int_const_binop): Remove FORSIZE arg and compute from type; all
10443         callers changed.
10444         Call size_int_type_wide for all single-word constants.
10445         (size_htab_hash, size_htab_eq): New functions.
10446         (size_int_type_wide): Rework to use hash table.
10447         * ggc-common.c (hashtab.h): Include.
10448         (struct d_htab_root): New struct.
10449         (d_htab_roots): New variable.
10450         (ggc_add_deletable_htab, ggc_htab_delete): New functions
10451         (ggc_mark_roots): Handle deletable htabs.
10452         * ggc-page.c (ggc_marked_p): New function.
10453         * ggc-simple.c (ggc_marked_p): Likewise.
10454         * ggc.h: Reformatting throughout.
10455         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
10456         * tree.c (init_obstacks): Make type_hash_table a deletable root.
10457         (type_hash_add): Allocate struct type_hash from GC memory.
10458         (mark_hash_entry, mark_type_hash): Deleted.
10459         (type_hash_marked_p, type_hash_mark): New functions.
10460         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
10461
10462 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
10463
10464         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
10465         than SImode.
10466
10467 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10468
10469         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
10470         array-too-large test for signed sizetype.
10471
10472 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
10473
10474         * i386.md (indirect_jump): Allow Pmode operand.
10475         (tablejump): LIkewise; perform expansion to 64bit mode.
10476         * i386.c (symbolic_operand): Allow 64bit PIC references.
10477         (pic_symbolic_operand): Likewise.
10478         (ix86_find_base_term): Strip the 64bit PIC references.
10479         (legitimate_pic_address_disp_p): Handle 64bit PIC.
10480         (legitimize_pic_address): Likewise.
10481         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
10482         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
10483
10484 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
10485
10486         * stringpool.c (get_identifier_with_length): New function.
10487         * tree.h (get_identifier_with_length): New prototype.
10488
10489 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
10490             David Edelsohn  <edelsohn@gnu.org>
10491
10492         Revert:
10493         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
10494         already sign-extended.
10495
10496         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
10497         * config/rs6000/rs6000.c (logical_operand): Always compare op as
10498         HOST_WIDE_INT.
10499         (rs6000_emit_set_long_const): Avoid unnecessary shift.
10500         (output_profile_hook): Declare label_name const.
10501         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
10502         to match constraints.
10503
10504 2001-09-19  Stan Shebs  <shebs@apple.com>
10505
10506         * alias.c: Fix typos in comments.
10507         * sched-rgn.c (init_ready_list): Ditto.
10508         * unwind-dw2.c (uw_frame_state_for): Ditto.
10509         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
10510         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
10511         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
10512
10513 2001-09-19  Richard Henderson  <rth@redhat.com>
10514
10515         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
10516         to the exit block.
10517         * Makefile.in (cfg.o): Depend on TM_P_H.
10518
10519 2001-09-19  Richard Henderson  <rth@redhat.com>
10520
10521         * config/alpha/alpha.c (local_symbol_p): Split out from ...
10522         (local_symbolic_operand): ... here.
10523         (small_symbolic_operand): Check mode.
10524         (global_symbolic_operand): New.
10525         (input_operand): Reject symbolics if explicit relocs.
10526         (call_operand): Tidy.
10527         (alpha_legitimize_address): Use movdi_er_high_g.
10528         (alpha_expand_mov): Likewise.
10529         * config/alpha/alpha-protos.h: Update.
10530         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10531         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
10532         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
10533         (UNSPECV_LDGP2): Remove.
10534         (all call patterns): Use 's' not 'i' for symbolic constraint.
10535         (call_osf call_value_osf): Use call_operand.
10536         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
10537         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
10538         (prologue_ldgp_1_er): Remove.
10539         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
10540         (builtin_setjmp_receiver_er patterns): Use them.
10541         (exception_receiver_er): Likewise.
10542
10543 2001-09-19  Richard Henderson  <rth@redhat.com>
10544
10545         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
10546
10547         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
10548         and NON_LOCAL_GOTO notes.
10549         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
10550         copy over CALL_INSN_FUNCTION_USAGE.
10551
10552 2001-09-18  Catherine Moore  <clm@redhat.com>
10553
10554         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
10555         Define as 0.
10556
10557 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
10558
10559         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
10560         new-style tm_file specification.  Specify correct tm_p_file,
10561         md_file, and out_file for s390x.
10562
10563         * config/s390/linux.h, linux64.h:  Don't include other target
10564         macro header files.  Now handled via tm_file.
10565
10566         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
10567         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
10568         are defined before use.
10569
10570 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
10571
10572         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
10573         code generation only for Gnu assembler.
10574
10575 2001-09-18  Catherine Moore  <clm@redhat.com>
10576
10577         * config/stormy16 (LIB_SPEC): Remove -lnosys.
10578
10579 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
10580
10581         * config/mips/mips.c (mips_frame_set): New.
10582         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
10583         a parallel frame-related expression with a set for each register.
10584
10585 2001-09-18  Philip Blundell  <philb@gnu.org>
10586
10587         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
10588         header files.
10589
10590 2001-09-17  Dale Johannesen  <dalej@apple.com>
10591
10592         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
10593         * config/rs6000/aix.h (FIXED_R2): Define.
10594         * config/rs6000/darwin.h (FIXED_R2): Define.
10595         * config/rs6000/sysv4.h (FIXED_R2): Define.
10596
10597 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
10598
10599         * except.c (dw2_build_landing_pads): New local
10600         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
10601         barrier after clobbers.  Fixes c++/4012.
10602
10603 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10604
10605         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
10606
10607 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
10608
10609         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
10610         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
10611
10612 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10613
10614         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
10615         alloca/strcpy.
10616
10617 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10618
10619         * cpphash.h (_cpp_lex_direct): New.
10620         * cpplex.c (_cpp_lex_token): Update.
10621         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
10622         and increment that pointer.
10623         * cppmacro.c (alloc_expansion_token): New.
10624         (lex_expansion_token): Lex macro expansion directly into
10625         macro storage.
10626
10627 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
10628
10629         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
10630
10631 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
10632
10633         * basic-block.h (free_bb_for_insn): Declare.
10634         * bb-reorder.c (label_for_bb): Use block_label.
10635         (emit_jump_to_block_after): Remove.
10636         (insert_intra_1): Do not update block_for_insn.
10637         (insert_inter_bb_scope_notes): Likewise; update bb->end
10638         * cfg.c (free_bb_for_insn): New.
10639         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
10640         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
10641         (commit_one_edge_insertion): Likewise.
10642         (commit_one_edge_insertion): Do not update BB boundary.
10643         (commit_edge_insertions): Do not call compute_bb_for_insn.
10644         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
10645         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
10646         (merge_blocks_move_successor_nojumps): Likewise.
10647         (try_crossjump_to_edge): Do not update block_for_insn.
10648         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
10649         * df.c (df_pattern_emit_later): Do not update BB boundary.
10650         (df_jump_pattern_emit_after): Likewise.
10651         (df_insn_move_before): Use emit_insn_before.
10652         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
10653          properly.
10654         (add_insn_after, add_insn_before, emit_insns_after): Update BB
10655         boundaries and basic_block_for_insn.
10656         (reorder_insns_nobb): Rename from reorder_insns.
10657         (reorder_insns): New.
10658         (emit_block_insn_before, emit_block_insn_after): Kill.
10659         * flow.c (check_function_return_warnings): Do not call
10660         compute_bb_for_insn; Do not free basic_block_for_insn.
10661         (attempt_auto_inc): Do not update basic_block_for_insn.
10662         * function.c (emit_return_into_block): Likewise;
10663         do not update BB boundaries.
10664         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
10665         (insert_insn_end_bb): Use emit_insn_before; Likewise.
10666         (pre_insert_copy_insn): Likewise.
10667         (update_ld_motion_notes): Likewise.
10668         (insert_insn_start_bb): Likewise.
10669         (replace_store_insn): Likewise.
10670         * ifcvt.c (noce_process_if_block): Likewise.
10671         (if_convert): Do not call compute_bb_for_insn.
10672         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
10673         Use emit_insn_before and emit_insn_after.
10674         * recog.c (split_all_insns): Do not update BB boundaries;
10675         Do not call compute_bb_for_insn.
10676         (peephole2_optimize): Do not update BB boundaries.
10677         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
10678         emit_insn_before.
10679         (emit_swap_insn): Likewise.
10680         (convert_regs_1): Likewise.
10681         * reload1.c (reload): Call compute_bb_for_insn.
10682         * rtl.h (reorder_insns_nobb): Declare.
10683         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
10684         * toplev.c (rest_of_compilation): Call free_bb_for_insn
10685         at places CFG is invalidated; do not call compute_bb_for_insn.
10686
10687         * cfg.c (expunge_block): Invalidate BB structure.
10688
10689         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
10690         array.
10691
10692         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
10693
10694 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10695
10696         * cpphash.h (_cpp_lex_token): Update prototype.
10697         * cpplex.c (_cpp_lex_token): New prototype.
10698         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
10699         lex_macro_node, read_flag, do_pragma_poison): Update.
10700         * cppmacro.c (cpp_get_token, parse_params,
10701         lex_expansion_token): Update.
10702
10703 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
10704
10705         * cppmain.c (scan_translation_unit): Don't worry about
10706         putting a space after hashes.
10707         * cpplib.c (directive_diagnostics): New.
10708         (_cpp_handle_directive): Update to use directive_diagnostics.
10709         (run_directive): Don't toggle prevent_expansion.
10710         (do_line): Backup in case of the line extension.
10711         * cpplib.h (cpp_lexer_pos): Remove.
10712         * cppmacro.c (_cpp_create_definition): Precede a leading #
10713         with whitespace.
10714
10715 2001-09-15  Richard Henderson  <rth@redhat.com>
10716
10717         * c-typeck.c (comptypes): Handle zero-length arrays properly.
10718
10719 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10720
10721         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
10722
10723 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10724
10725         PR preprocessor/3571
10726         * tradcpp.c (handle_directive): Skip non-vertical space.
10727
10728 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10729
10730         * cppmain.c (setup_callbacks): Set line callback only
10731         if outputting preprocessed source.
10732
10733 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10734
10735         * collect2.c (main): Const-ification.
10736         * gcc.c (translate_options, process_command): Use xstrdup in
10737         lieu of xmalloc/strcpy.
10738         (main): Use concat in lieu of xmalloc/strcpy/strcat.
10739
10740 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10741
10742         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
10743         example.
10744
10745 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10746
10747         * scan-decls.c (scan_decls): Fix typo.
10748
10749 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
10750
10751         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
10752         Split mlstring_pos into mls_line and mls_col.
10753         * cppinit.c (cpp_create_reader): Initialize line to 1.
10754         (cpp_destroy): Free tokenruns.
10755         (push_include): Don't update lexer_pos.
10756         * cpplex.c (unterminated, parse_string): Update.
10757         (lex_token): Don't update lexer_pos, update.
10758         * cpplib.c (if_stack): Save line instead of line + col.
10759         (start_directive, _cpp_do__Pragma, do_else, do_elif,
10760         push_conditional, _cpp_pop_buffer): Update.
10761         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
10762         (_cpp_create_definition): Update.
10763
10764 2001-09-15  Eric Christopher  <echristo@redhat.com>
10765
10766         * config/mips/abi64.h: Add support for MEABI.
10767
10768 2001-09-15  Eric Christopher  <echristo@redhat.com>
10769
10770         * config/mips/mips.md: Add unspec #2.
10771         (reload_indi): Use.
10772         (reload_outdi): Ditto.
10773         (reload_outsi): Ditto.
10774         (HILO_delay): New.
10775
10776 2001-09-15  Eric Christopher  <echristo@redhat.com>
10777             Jason Eckhardt  <jle@redhat.com>
10778
10779         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
10780         * config/mips/isa32-linux.h: New file.
10781         * config/mips/isa3264.h: Ditto.
10782         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
10783         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
10784         (output_block_mode): Support MEABI.
10785         (function_arg): Ditto. Fix floating point arg passing.
10786         (mips_va_start): Ditto.
10787         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
10788         processors.
10789         (mips_asm_file_start): Add new section to pass abi to gdb.
10790         (function_arg_pass_by_reference): Support MEABI.
10791         (mips_parse_cpu): Support mips32 and mips64 processors.
10792         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
10793         TARGET_MIPS5KC.  Support isa32 and isa64.
10794         (processor_type): Add r4kc, r5kc, r20kc.
10795         (GENERATE_MULT3_SI): New.
10796         (GENERATE_MULT3_DI): Ditto.
10797         (GENERATE_MULT3): Remove.
10798         (ISA_HAS_64BIT_REGS): Add isa == 64.
10799         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
10800         (ISA_HAS_MADD_MSUB): New.
10801         (ISA_HAS_CLZ_CLO): Ditto.
10802         (ISA_HAS_DCLZ_DCLO): Ditto.
10803         (ABI_GAS_ASM_SPEC): New.
10804         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
10805         (ASM_SPEC): Ditto.
10806         (LINK_SPEC): Ditto.
10807         (SUBTARGET_CC1_SPEC): Ditto.
10808         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10809         (PAD_VARARGS_DOWN): Support MEABI.
10810         (HARD_REGNO_NREGS): Move to mips.c.
10811         (ASM_OUTPUT_IDENT): Add #undef.
10812         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
10813         (mulsi3): Use GENERATE_MULT3_SI.
10814         (mulsi3_mult3): Ditto.  Support mips32, mips64.
10815         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
10816         (mul_sub_si): New pattern.
10817         (unnamed splitters): New.
10818         (muldi3): Use GENERATE_MULT3_DI.
10819         (muldi3_internal2): Ditto.
10820         (movdicc): Support mips32.
10821         * config/mips/t-isa3264: New file.
10822
10823 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
10824
10825         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
10826         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
10827         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
10828
10829         * reorg.c (fill_slots_from_thread): After call to
10830         steal_delay_list_from_target, update own_thread as new_thread may
10831         have branched.
10832
10833 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
10834
10835         * cpperror.c (print_location): Take line and column, for
10836         default positioning use the previously lexed token.
10837         (_cpp_begin_message): Take line and column.
10838         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10839         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10840         * cpphash.h (_cpp_begin_message): Update prototype.
10841         * cppinit.c (push_include): Don't set output line.
10842         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
10843         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
10844         (do_pragma): Kludge for front ends.  Don't expand macros at all.
10845         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
10846         (struct cpp_token): Remove output_line.
10847         (struct cpp_callbacks): New member line_change.
10848         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
10849         cpp_get_token): Preserve BOL flag.
10850         (cpp_get_line): Remove.
10851         (_cpp_backup_tokens): Remove useless abort().
10852         * cppmain.c (cb_line_change): New.
10853         (scan_translation_unit): Don't worry about starting new lines here.
10854         * scan-decls.c (scan_decls): Update.
10855         * c-lex.c (c_lex, init_c_lex): Update.
10856         (cb_line_change, src_lineno): New.
10857
10858 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
10859
10860         * tree.c (append_random_chars): Generate the random
10861         characters in a reproducable fashion.
10862
10863 2001-09-14  Richard Henderson  <rth@redhat.com>
10864
10865         * config/i386/i386.c (internal_label_prefix): New.
10866         (internal_label_prefix_len): New.
10867         (override_options): Set them.
10868         (local_symbolic_operand): New.
10869         (legitimate_pic_address_disp_p): Use it.
10870         (legitimize_pic_address): Likewise.
10871
10872 2001-09-14  Marc Espie <espie@openbsd.org>
10873
10874         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
10875         correctly.
10876
10877 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
10878
10879         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
10880         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
10881
10882 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
10883
10884         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
10885         invocation of SUBREG_REGNO_OFFSET.
10886
10887         * haifa-sched.c: Fix typo in FSF copyright statement.
10888         * sched-deps.c: Fix typo in FSF copyright statement.
10889         * sched-ebb.c: Fix typo in FSF copyright statement.
10890         * sched-rgn.c: Fix typo in FSF copyright statement.
10891         * sched-vis.c: Fix typo in FSF copyright statement.
10892
10893         * config.gcc: Move inclusion of arm elf specific header files
10894         from the files themselves into the tm_file variable.  Make
10895         sure that elfos.h is included before target specific elf
10896         headers.
10897         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
10898         already defined.
10899         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
10900         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
10901         ASM_OUTPUT_CASE_LABEL): Protect definition.
10902         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
10903         not already defined.
10904         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
10905         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
10906         Remove duplicate definition.
10907         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
10908         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
10909         (RDATA_SECTION_FUNCTION): Remove redundant definition.
10910         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
10911         Remove inclusion of arm/elf.h.
10912         * config/arm/unknown-elf.h: as for conix-elf.h.
10913         (STARTFILE_SPEC): Include crti.o and crtn.o.
10914         * config/arm/linux-elf.h: as for conix-elf.h.
10915         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
10916         * config/arm/strongarm-elf.h: Remove inclusion of
10917         unknown-elf.h.
10918         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
10919         * config/arm/unknown-elf-oabi.h: Remove inclusion of
10920         unknown-elf.h and elf.h.
10921         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
10922         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
10923         ASM_WEAKEN_LABEL): Remove redundant definition.
10924         * config/arm/elf.h: Test for inclusion of elfos.h
10925         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
10926         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
10927         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
10928         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
10929         redundant definition.
10930         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
10931         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
10932         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
10933         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
10934         Add rules to build crti.o and crtn.o
10935         * crti.asm: New file.
10936         * crtn.asm: New file.
10937
10938 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
10939
10940         * c-parse.in (_yylex): Use _cpp_backup_tokens.
10941         * cpphash.h (struct tokenrun): Add prev.
10942         (struct lexer_state): Remove bol.
10943         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
10944         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
10945         : Remove.
10946         * cppinit.c (cpp_create_reader): Don't set bol.
10947         (cpp_destroy): Don't free lookaheads.
10948         * cpplex.c (lex_directive): Remove.
10949         (next_tokenrun): Update.
10950         (_cpp_lex_token): Clean up logic.
10951         (lex_token): Update to return a pointer to lexed token, since it
10952         can move to the start of the buffer.  Simpify newline handling.
10953         * cpplib.c (SEEN_EOL): Update.
10954         (skip_rest_of_line): Remove lookahead stuff.
10955         (end_directive): Line numbers are already incremented.  Revert
10956         to start of lexed token buffer if we can.
10957         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
10958         parse_answer): Use _cpp_backup_tokens.
10959         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
10960         instead.  Don't check for EOL.
10961         (do_include_common, do_line, do_pragma_system_header): Use
10962         skip_rest_of_line.
10963         * cpplib.h (BOL, _cpp_backup_tokens): New.
10964         * cppmacro.c (save_lookahead_token, take_lookahead_token,
10965         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
10966         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
10967         (builtin_macro): Don't use cpp_get_line.
10968         (cpp_get_line): Short term kludge.
10969         (parse_arg): Handle directives in arguments here.  Back up when
10970         appropriate.  Store EOF at end of argument list.
10971         (funlike_invocation_p): Use _cpp_backup_tokens.
10972         (push_arg_context): Account for EOF at end of list.
10973         (cpp_get_token): Remove lookahead stuff.  Update.
10974
10975 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10976
10977         * c-parse.in (yyerror): Const-ification and/or static-ization.
10978         * c-typeck.c (push_member_name): Likewise.
10979         * collect2.c (main): Likewise.
10980         * dbxout.c (dbxout_parms): Likewise.
10981         * diagnostic.c (format_with_decl): Likewise.
10982         * dwarf2out.c (output_ranges): Likewise.
10983         * dwarfout.c (fundamental_type_code): Likewise.
10984         * except.c (dw2_output_call_site_table): Likewise.
10985         * gcc.c (do_spec_1): Likewise.
10986         * genopinit.c (optabs): Likewise.
10987         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
10988         gen_declaration_1, handle_impent): Likewise.
10989         * protoize.c (default_include, in_system_include_dir, abspath):
10990         Likewise.
10991         * sched-vis.c (visualize_stall_cycles): Likewise.
10992         * sdbout.c (plain_type_1, sdbout_end_function,
10993         sdbout_end_epilogue): Likewise.
10994         * varasm.c (decode_reg_name): Likewise.
10995
10996         * 1750a.c (mod_regno_adjust): Likewise.
10997         * alpha.c (alpha_write_one_linkage,
10998         unicosmk_output_default_externs): Likewise.
10999         * arm.c (arm_condition_codes): Likewise.
11000         * arm.h (arm_condition_codes): Likewise.
11001         * avr.c (output_movsisf, encode_section_info): Likewise.
11002         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
11003         Likewise.
11004         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
11005         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
11006         * m88k.c (output_function_profiler): Likewise.
11007         * mips.c (mips_output_conditional_branch): Likewise.
11008         * ns32k.c (ns32k_out_reg_names): Likewise.
11009         * ns32k.h (ns32k_out_reg_names): Likewise.
11010         * pj.c (pj_output_rval): Likewise.
11011         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
11012         * sparc.c (sparc_flat_function_prologue,
11013         sparc_flat_function_epilogue): Likewise.
11014
11015 2001-09-13  Markus Werle <numerical.simulation@web.de>
11016             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11017
11018         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
11019         Aachen University of Technology".
11020
11021 2001-09-13  Andreas Schwab  <schwab@suse.de>
11022
11023         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
11024         C99.
11025
11026 2001-09-13  Richard Henderson  <rth@redhat.com>
11027
11028         * config/alpha/alpha.c (small_symbolic_operand): New.
11029         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
11030         (some_operand, input_operand): Don't handle HIGH.
11031         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
11032         (alpha_expand_mov): Likewise.
11033         (print_operand) [H]: Just print HIGH symbol.
11034         (print_operand_address): Handle small data.
11035         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
11036         (TARGET_SWITCHES): Add -msmall-data/large-data.
11037         (PIC_OFFSET_TABLE_REGNUM): New.
11038         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
11039         (PREDICATE_COES): Update.
11040         * config/alpha/alpha.md (adddi_er_high): New.
11041         (adddi_er_low): Handle small data.
11042         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
11043         prefer .sdata to .rodata.
11044         (SELECT_RTX_SECTION): Likewise.
11045
11046 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
11047
11048         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
11049         defining __size_t and leaving size_t undefined.
11050
11051 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
11052
11053         * basic-block.h (expunge_block): Declare.
11054         * cfg.c (expunge_block): Remove static declaration.
11055
11056 2001-09-12  Richard Henderson  <rth@redhat.com>
11057
11058         * integrate.c (copy_insn_list): Copy label name from
11059         NOTE_INSN_DELETED_LABEL.
11060
11061 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11062
11063         * c-common.c (c_tree_code_name): Const-ification.
11064         * c-decl.c (c_decode_option): Likewise.
11065         * c-typeck.c (warn_for_assignment): Likewise.
11066         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
11067         Likewise.
11068         * cppinit.c (output_deps): Likewise.
11069         * dependence.c (dependence_string, direction_string): Likewise.
11070         * dwarf2out.c (output_ranges): Likewise.
11071         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
11072         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
11073         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
11074         standard_startfile_prefix, standard_startfile_prefix_1,
11075         standard_startfile_prefix_2, tooldir_base_prefix,
11076         standard_bindir_prefix, find_a_file): Likewise.
11077         * genattrtab.c (make_length_attrs): Likewise.
11078         * gencheck.c (tree_codes): Likewise.
11079         * genemit.c (gen_split): Likewise.
11080         * genrecog.c (special_mode_pred_table): Likewise.
11081         * graph.c (graph_ext): Likewise.
11082         * protoize (default_include): Likewise.
11083         * reload.c (reload_when_needed_name): Likewise.
11084         * sched-vis.c (visualize_stall_cycles): Likewise.
11085         * tlink.c (recompile_files): Likewise.
11086         * toplev.c (decode_g_option): Likewise.
11087         * tradcpp.c (output_deps): Likewise.
11088         * varasm.c (decode_reg_name): Likewise.
11089
11090         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
11091         Const-ification.
11092         * arm.md: Likewise.
11093         * avr.c (avr_regnames, encode_section_info): Likewise.
11094         * c4x.c (float_reg_names): Likewise.
11095         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
11096         * elfos.h (const_section): Likewise.
11097         * i386.c (ix86_comp_type_attributes): Likewise.
11098         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
11099         * ia64/aix.h (UNIQUE_SECTION): Likewise.
11100         * ia64.c (type_names): Likewise.
11101         * m68hc11.c (reg_class_names): Likewise.
11102         * m88k.c (m_options): Likewise.
11103         * mips.c (mips_output_conditional_branch, mips_unique_section):
11104         Likewise.
11105         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11106         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
11107         ultra_code_names): Likewise.
11108         * sparc.h (OVERRIDE_OPTIONS): Likewise.
11109
11110 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
11111
11112         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
11113         Use --fatal-warnings option for gas.
11114         * configure: Rebuilt.
11115
11116 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11117
11118         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
11119
11120 2001-09-11  Jim Wilson  <wilson@redhat.com>
11121
11122         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
11123
11124 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11125
11126         * builtins.c (c_strlen): Treat an offset too large for a
11127         HOST_WIDE_INT as out of range.
11128
11129 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
11130
11131         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
11132         (EDGE_CRITICAL_P): New predicate.
11133         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
11134         handling.
11135         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
11136         (dump_edge_info): Remove "crit".
11137         * cfganal.c (mark_critical_edges): Kill.
11138         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
11139         * cfgcleanup.c (cleanup_cfg): Likewise.
11140         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
11141         (find_spanning_tree): Likewise.
11142         * reg-stack.c (convert_regs_1): Likewise.
11143         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
11144
11145         * basic-block.h (create_basic_block_structure): New.
11146         (create_basic_block): Update prototype.
11147         (force_nonfallthru): New.
11148         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
11149         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
11150         handle updating of block_for_insn, creating of empty BBs and BBs at
11151         the end of INSN chain.
11152         (create_basic_block): New function.
11153         (split_block): Use create_basic_block.
11154         (force_nonfallthru_and_redirect): Break out from ...; cleanup
11155         (redirect_edge_and_branch_force): ... here.
11156         (force_nonfallthru): New.
11157         (split_edge): Rewrite to use force_nonfallthru and create_block.
11158         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
11159         (find_basic_blocks): Free basic_block_for_insn.
11160         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
11161
11162         * cfg.c: Fix formating.
11163         * cfgcleanup.c: Fix formating.
11164         (merge_blocks, tail_recursion_label_p): Return bool.
11165         (merge_blocks_move_predecessor_nojumps,
11166          merge_blocks_move_successor_nojumps): Return void.
11167
11168 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
11169
11170         * configure.in: Check whether assembler supports section merging.
11171         * config.in: Rebuilt.
11172         * configure: Rebuilt.
11173         * varasm.c (variable_section, output_constant_pool): Pass alignment
11174         to SELECT_SECTION and SELECT_RTX_SECTION.
11175         (mergeable_string_section): New.
11176         (mergeable_constant_section): New.
11177         (default_elf_asm_named_section): Output SECTION_MERGE and
11178         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
11179         * output.h (mergeable_string_section): New.
11180         (mergeable_constant_section): New.
11181         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
11182         * toplev.c (flag_merge_constants): New.
11183         (f_options): Add -fmerge-constants and -fmerge-all-constants
11184         options.
11185         (toplev_main): Default to -fno-merge-constants if not optimizing.
11186         * flags.h (flag_merge_constants): Add extern.
11187         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
11188         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
11189         argument.
11190         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
11191         Define if assembler has working .subsection -1 support.
11192         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
11193         Put constant into special SHF_MERGE sections if the linker should
11194         attempt to merge duplicates.
11195         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
11196         macro argument.
11197         Put constant into special SHF_MERGE sections if the linker should
11198         attempt to merge duplicates.
11199         * config/alpha/elf.h: Likewise.
11200         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
11201         has working .subsection -1 support.
11202         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
11203         SELECT_SECTION.
11204         * config/svr3.h: Likewise.
11205         * config/darwin.h: Likewise.
11206         * config/arm/aof.h: Likewise.
11207         * config/arm/linux-elf.h: Likewise.
11208         * config/avr/avr.h: Likewise.
11209         * config/c4x/c4x.h: Likewise.
11210         * config/d30v/d30v.h: Likewise.
11211         * config/i386/dgux.h: Likewise.
11212         * config/i386/osfrose.h: Likewise.
11213         * config/i386/sco5.h: Likewise.
11214         * config/i386/svr3gas.h: Likewise.
11215         * config/ia64/aix.h: Likewise.
11216         * config/m32r/m32r.h: Likewise.
11217         * config/m68k/m68k.h: Likewise.
11218         * config/m88k/dgux.h: Likewise.
11219         * config/m88k/m88k.h: Likewise.
11220         * config/mcore/mcore-pe.h: Likewise.
11221         * config/mips/mips.h: Likewise.
11222         * config/pa/pa.h: Likewise.
11223         * config/pa/pa-linux.h: Likewise.
11224         * config/romp/romp.h: Likewise.
11225         * config/rs6000/sysv4.h: Likewise.
11226         * config/rs6000/xcoff.h: Likewise.
11227         * config/s390/linux.h: Likewise.
11228         * config/sparc/sparc.h: Likewise.
11229         * config/sparc/sysv4.h: Likewise.
11230         * config/stormy16/stormy16.h: Likewise.
11231         * config/v850/v850.h: Likewise.
11232         * config/vax/vms.h: Likewise.
11233         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
11234         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
11235         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
11236         default_elf_asm_named_section for SHF_MERGE sections.
11237
11238 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11239
11240         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
11241         is OK.
11242
11243 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
11244
11245         * c-common.c (split_specs_attrs): Allow for empty attributes with
11246         empty TREE_PURPOSE.  Fixes PR c/4294.
11247
11248 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
11249
11250         * basic-block.h (cached_make_edge, make_single_succ): New.
11251         (make_edge): Remove first parameter.
11252         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
11253         * cfg.c (cached_make_edge): Rename from make_edge; return newly
11254         created edge; use obstack allocation.
11255         (make_edge, make_single_succ_edge): New.
11256         (first_removed_edge): New static variable.
11257         (init_flow): Initialize first_removed_edge and n_edges.
11258         (clear_edges): Use remove_edge.
11259         (flow_delete_block): Likewise.
11260         (remove_edge): Add removed edges to the removed edges list.
11261         (split_block, redirect_edge_and_branch_force, split_edge):
11262         Use make_edge.
11263         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
11264         (add_noreturn_fake_exit_edges): Likewise.
11265         (connect_infinite_loops_to_exit): Liekwise.
11266         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
11267         Use cached_make_edge.
11268         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
11269         * profile.c (branch_prob): Update make_edge call.
11270         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11271
11272 2001-09-11  Richard Henderson  <rth@redhat.com>
11273
11274         * config/alpha/alpha.c: Tidy formatting.
11275         (local_symbolic_operand): Verify mode.
11276         (alpha_sa_mask): Ignore unicos for eh_return.
11277         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
11278         * config/alpha/alpha.md (umk divsi patterns): Remove.
11279         (extendsfdf2): Remove unicos check.
11280         (tablejump): Merge vms and unicos code; always use direct set
11281         plus label_ref use.
11282
11283 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11284
11285         * config.gcc (alpha*-*-unicosmk*): New target.
11286
11287         * config/alpha/alpha-protos.h (symbolic_operand,
11288         unicosmk_add_call_info_word, unicosmk_add_extern,
11289         unicosmk_defer_case_vector, unicosmk_unique_section,
11290         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
11291         unicosmk_asm_file_start, unicosmk_asm_file_end,
11292         unicosmk_output_common): Declare.
11293
11294         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
11295         direct_return, function_arg, alpha_va_start, alpha_va_arg,
11296         alpha_does_function_need_gp, alpha_end_function): Support Cray
11297         Unicos/Mk.
11298         (alpha_init_machine_status, alpha_mark_machine_status,
11299         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
11300         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
11301         unicosmk_asm_named_section, unicosmk_insert_attributes,
11302         unicosmk_section_type_flags, symbolic_operand,
11303         unicosmk_output_module_name, unicosmk_output_default_externs,
11304         unicosmk_output_dex, unicosmk_output_externs,
11305         unicosmk_output_addr_vec, unicosmk_ssib_name,
11306         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
11307         unicosmk_asm_file_end, unicosmk_output_common,
11308         unicosmk_section_type_flags, unicosmk_unique_section,
11309         unicosmk_add_call_info_word, unicosmk_text_section,
11310         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
11311         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
11312         unicosmk_dex_count, unicosmk_special_name): New.
11313         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
11314         TARGET_ABI_UNICOSMK.
11315         (get_aligned_mem, alpha_expand_unaligned_load,
11316         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
11317         alpha_expand_unaligned_store_words): Support big-endian mode.
11318         (print_operand): Likewise. New format specifier 't'. Use
11319         TARGET_AS_SLASH_BEFORE_SUFFIX.
11320         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
11321         (alpha_pv_save_size): Update with above change.
11322         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
11323         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
11324         Unicos/Mk.
11325
11326         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
11327         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
11328         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
11329         (EXTRA_CONSTRAINT): New constraint 'U'.
11330         (PREDICATE_CODES): Add symbolic_operand.
11331
11332         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
11333         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
11334         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
11335         (integer division and modulus patterns): Split in default and
11336         Unicos/Mk versions.
11337         (*divmodsi_internal, *divmoddi_internal): Disable for
11338         TARGET_ABI_UNICOSMK.
11339         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
11340         little-endian and big-endian versions.
11341         (ext, ins, msk): Likewise.
11342         (extv, extzv, insv): Support big-endian mode.
11343         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
11344         (call_umk, call_value_umk, *call_umk, tablejump_umk,
11345         *tablejump_umk_internal, *call_value_umk): New.
11346         (*movdi_nofix): Add pattern for loading an address into a register on
11347         TARGET_ABI_UNICOSMK.
11348         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
11349         (umk_mismatch_args, arg_home_umk): New.
11350         (various insns): Don't use mov, fmov, nop, fnop and unop.
11351         (realign): Support TARGET_ABI_UNICOSMK.
11352
11353         * config/alpha/unicosmk.h: New file.
11354         * config/alpha/t-unicosmk: New file.
11355
11356         * fixinc/inclhack.def (unicosmk_restrict): New.
11357         * fixinc/fixincl.x: Regenerate.
11358
11359         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
11360         (wchar_t): Check for and define __WCHAR_T__.
11361
11362 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
11363
11364         * combine.c (simplify_shift_const): Treat shifts by the mode
11365         size as undefined.
11366
11367 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11368
11369         * cpphash.h (struct tokenrun): New.
11370         (struct cpp_context): New member bol.
11371         (struct cpp_reader): New members.
11372         (_cpp_init_tokenrun): New.
11373         * cppinit.c (cpp_create_reader): Set up the token runs.
11374         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
11375         (lex_token): New internalised version of _cpp_lex_token.  Don't
11376         handle directives or the multiple include optimization here any
11377         more.  Simply lex a token.
11378         * cpplib.c (run_directive): Clear bol.
11379         (_cpp_pop_buffer): Set bol.
11380         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
11381         arguments.
11382
11383 2001-09-11  Michael Meissner  <meissner@redhat.com>
11384
11385         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
11386         give an error if the user uses -mfp32.
11387         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
11388         default options.
11389         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
11390         floating point register size.
11391         (EXTRA_SPECS): Add CPP_FPR_SPEC.
11392
11393         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
11394         HOST_WIDE_INT_PRINT_DEC to properly print the result of
11395         int_size_in_bytes.
11396         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
11397         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
11398
11399 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
11400
11401         * dbxout.c (dbxout_parms): Fix typo in comment.
11402         * unroll.c (loop_find_equiv_value): Ditto.
11403         * toplev.c (rest_of_compilation): Ditto.
11404         * loop.c (scan_loop): Ditto.
11405         * dwarf2out.c (struct dw_fde_struct): Ditto.
11406
11407 2001-09-10  Zack Weinberg  <zackw@panix.com>
11408
11409         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
11410         copying identifier when we're just going to throw it away.
11411         (parse_identifier_slow): New routine to handle abnormal cases.
11412         (_cpp_lex_token): Update call site.
11413
11414         * hashtable.c (ht_lookup): Don't assume that the string we've
11415         been given is NUL-terminated.
11416         * system.h: #define __builtin_expect(a, b) to (a) if not
11417         GCC >=3.0.
11418
11419 2001-09-10  Michael Meissner  <meissner@redhat.com>
11420
11421         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
11422         binutils, gdb.
11423
11424 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
11425
11426         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
11427
11428 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11429
11430         * builtins.c (c_getstr): Correct thinko in last change and further
11431         cleanup.
11432
11433 2001-09-10  Tim Freeman <tim@fungibole.com>
11434
11435         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
11436         into varray's and register them as roots with the garbage
11437         collector so they are not collected too soon.
11438
11439 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
11440
11441         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
11442         New.
11443         * basic-block.h (flow_obstack, label_value_list,
11444         tail_recursion_label_list): Declare
11445         (tidy_fallthru_edges): Declare.
11446         (expunge_block, last_loop_beg_note): Delete.
11447         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
11448         * cfg.c: New file
11449         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
11450         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
11451         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
11452         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
11453         expunge_block, flow_delete_block, compute_bb_for_insn,
11454         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
11455         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
11456         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
11457         try_redirect_by_replacing_jump, last_loop_beg_note,
11458         redirect_edge_and_branch, redirect_edge_and_branch_force,
11459         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
11460         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
11461         commit_edge_insertions, dump_flow_info, debug_flow_info,
11462         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
11463         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
11464         Move here from flow.c
11465         * cfganal.c: New file.
11466         (forwarder_block_p, can_fallthru, mark_critical_edges,
11467          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
11468          find_unreachable_blocks, create_edge_list, free_edge_list,
11469          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
11470          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
11471          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
11472          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
11473          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
11474          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
11475         Move here from flow.c
11476         * cfgbuild.c: New file
11477         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
11478          make_edges, find_basic_blocks_1, find_basic_blocks,
11479          find_sub_basic_blocks): Move here from flow.c
11480         * cfgcleanup.c: New file.
11481         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
11482          merge_blocks_move_predecessor_nojumps,
11483          merge_blocks_move_successor_nojumps, merge_blocks,
11484          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
11485          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
11486         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
11487         if succeeded.
11488         * cfgloop.c: New file
11489         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
11490          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
11491          flow_loop_exit_edges_find, flow_loop_nodes_find,
11492          flow_loop_pre_header_scan, flow_loop_pre_header_find,
11493          flow_loop_tree_node_add, flow_loops_tree_build,
11494          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
11495          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
11496         Move here from flow.c
11497         * flow.c: Remove everything moved elsewhere
11498         * output.h (cleanup_cfg): Return bool.
11499
11500         * bb-reorder.c (reorder_block_def): Remove 'index'.
11501         (insert_intra_1): Add argument BB, set block for new note.
11502         (make_reorder_chain): Do not depdent on BB indexes.
11503         (make_reorder_chain_1): Do not use BB indexes.
11504         (label_for_bb): Likewise; set BB for new insn.
11505         (emit_jump_to_block_after): Likewise.
11506         (fixup_reorder_chain): Sanity check that all basic blocks
11507         are chained; verify newly created insn chain; remove
11508         undocnitional jump simplifying; Do not use BB indexes;
11509         properly initialize count and frequency information;
11510         dump reordered sequence.
11511         (insert_intra_bb_scope_notes): update call of insert_intra_1.
11512         (insert_inter_bb_scope_notes): Set block for new insn.
11513         (reorder_basic_blocks): Dump flow info before reoredering.
11514
11515 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11516
11517         * alias.c (clear_reg_alias_info): Use K&R format definition.
11518         Avoid unsigned warning.
11519         * builtins.c: Use "unsigned int", not "unsigned".
11520         (target_char_cast): Use host_integerp and tree_low_cst.
11521         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
11522         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
11523         (c_getstr): Likewise.
11524         (std_expand_builtin_va_arg): Use int_size_in_bytes.
11525         (builtin_memcpy_read_str): Avoid unsigned warning.
11526         (expand_builtin_memcpy): Alignments are unsigned.
11527         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
11528         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
11529         * predict.c (expensive_function_p): LIMIT now unsigned.
11530         * resource.c (mark_target_live_regs): Make some vars unsigned.
11531         * sdbout.c: Use "unsigned int", not "unsigned".
11532         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
11533         (sdbout_source_line): Likewise.
11534         (sdbout_record_type_name): Remove "const" for NAME declaration.
11535         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
11536
11537 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
11538
11539         * calls.c (store_one_arg): Expand comment.
11540
11541 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11542
11543         * calls.c (store_one_arg): Make sure that the entire argument is
11544         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
11545
11546 2001-09-09  Richard Henderson  <rth@redhat.com>
11547
11548         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
11549
11550 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
11551
11552         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
11553
11554 2001-09-09  Richard Henderson  <rth@redhat.com>
11555
11556         * config/alpha/alpha.c (alpha_next_sequence_number): New.
11557         (alpha_this_literal_sequence_number): New.
11558         (alpha_this_gpdisp_sequence_number): New.
11559         (some_operand, input_operand): Add HIGH.
11560         (local_symbolic_operand): New.
11561         (alpha_encode_section_info): New.
11562         (alpha_legitimate_address_p): Allow LO_SUM.
11563         (alpha_legitimize_address): Generate HIGH+LO_SUM.
11564         (alpha_expand_mov): Likewise.
11565         (secondary_reload_class): Check memory_operand not general_operand
11566         for FP_REGS test.
11567         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
11568         (alpha_expand_unaligned_store): Likewise.
11569         (alpha_expand_unaligned_load_words): Likewise.
11570         (alpha_expand_unaligned_store_words): Likewise.
11571         (alpha_expand_block_clear): Likewise.
11572         (print_operand): Handle %#, %*, %H.
11573         (print_operand_address): Handle LO_SUM.
11574         (find_lo_sum): New.
11575         (alpha_does_function_need_gp): Use it.
11576         (alpha_expand_block_move): Fix signed compare warnings.
11577         (alpha_sa_mask, alpha_align_insns): Likewise.
11578         * config/alpha/alpha-protos.h: Update.
11579         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
11580         (MASK_EXPLICIT_RELOCS): New.
11581         (TARGET_SWITCHES): Add -mexplicit-relocs.
11582         (EXTRA_CONSTRAINT): Add 'T'.
11583         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
11584         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
11585         (ENCODE_SECTION_INFO): Out line.
11586         (REDO_SECTION_INFO_P): New.
11587         (STRIP_NAME_ENCODING): New.
11588         (ASM_OUTPUT_LABELREF): New.
11589         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
11590         (PREDICATE_CODES): Update.
11591         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
11592         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
11593         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
11594         builtin_setjmp_receiver_er, exception_receiver_1_er,
11595         call_value_osf_1_er): New patterns.
11596         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
11597         (movqi, movhi, movsi): Add explicit $31 base register to lda.
11598         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
11599         (FINAL_PRESCAN_INSN): New.
11600
11601 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
11602
11603         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
11604
11605 2001-09-08  Andreas Jaeger  <aj@suse.de>
11606
11607         * i386.h (TARGET_SWITCHES): Fix description.
11608
11609 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
11610
11611         * rs6000.c (num_insns_constant): Compute number of instructions
11612         more accurately.
11613
11614         * doc/install.texi: Explain AIX exception handling work-around.
11615         Update URL for AIX fixes.
11616
11617 2001-09-07  Jim Wilson  <wilson@redhat.com>
11618
11619         * alias.c (clear_reg_alias_info): New.
11620         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
11621         * rtl.h (clear_reg_alias_info): Declare.
11622
11623 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11624
11625         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
11626         available.
11627         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
11628         (m16m,edivm,emulm): Change declaration to match definition.
11629
11630 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
11631
11632         * reload.c (push_reload): Check for subreg_lowpart_p instead of
11633         SUBREG_BYTE being 0 when determining if the inner part of a subreg
11634         can be reloaded.
11635
11636 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11637
11638         * c-common.c (signed_or_unsigned_type): Handle machine mode types
11639         which have no corresponding C type.
11640         * fold_const.c (target_isinf,target_isnan,target_negative): Update
11641         the representation of 64-bit doubles to work with 64-bit ints.
11642
11643 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
11644
11645         * config/mips/mips.c (override_options): Do not override ISA when ABI
11646         specified if MIPS_CPU_STRING_DEFAULT was specified.
11647
11648 2001-09-07  Richard Henderson  <rth@redhat.com>
11649
11650         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
11651         (express_from_1): Wrap lines.
11652         * rtlanal.c (commutative_operand_precedence): Rename from
11653         operand_preference; export.
11654         * rtl.h: Declare it.
11655         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
11656         (simplify_binary_operation): Invoke simplify_plus_minus on
11657         (CONST (PLUS ...)) as well.
11658         (struct simplify_plus_minus_op_data): New.
11659         (simplify_plus_minus_op_data_cmp): New.
11660         (simplify_plus_minus): Use them.  Avoid infinite recursion with
11661         simplify_binary_operation wrt CONST.
11662
11663 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
11664
11665         * h8300-protos.h (general_operand_dst_push): Remove.
11666         * h8300.c (general_operand_dst_push): Likewise.
11667         * h8300.h (OK_FOR_T): Likewise.
11668         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
11669         * h8300.md (pushqi_h8300): New.
11670         (pushqi_h8300hs): Likewise.
11671         (pushqi): Likewise.
11672         (pushhi_h8300): Likewise.
11673         (pushhi_h8300hs): Likewise.
11674         (pushhi): Likewise.
11675
11676 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11677
11678         * genattrtab.c (attr_printf): First arg is unsigned.
11679         Clean up formatting of callers.
11680
11681 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
11682
11683         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
11684         registers.
11685
11686 2001-09-07  Andreas Jaeger  <aj@suse.de>
11687
11688         * i386.h (TARGET_SWITCHES): Fix descriptions.
11689
11690 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11691
11692         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
11693
11694 2001-09-06  Ira Ruben  <ira@apple.com>
11695
11696         Remove OP_IDENTIFIER.
11697         * tree.def (OP_IDENTIFIER): Remove.
11698         * tree.c (tree_node_kind enum): Remove op_id_kind.
11699         (tree_node_kind_names): Remove "op_identifiers".
11700         (make_node): Remove OP_IDENTIFIER test.
11701         (build_op_identifier): Removed because it isn't being used.
11702         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
11703         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
11704
11705 2001-09-06  Richard Henderson  <rth@redhat.com>
11706
11707         * simplify-rtx.c (simplify_binary_operation): Revert last change.
11708
11709 2001-09-06  Richard Henderson  <rth@redhat.com>
11710
11711         * simplify-rtx.c (simplify_binary_operation): Simplify contents
11712         of CONST.
11713
11714 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11715
11716         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
11717         number used for CR register.
11718
11719 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
11720                           Joern Rennecke (amylaar@cygnus.com)
11721
11722         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
11723         * h8300.c (initial_offset): Handle offset between RP and FP.
11724         (h8300_return_addr_rtx): New function.
11725         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
11726         return register.
11727         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
11728         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11729         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
11730         (CAN_ELIMINATE, REGISTER_NAMES):
11731         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
11732
11733 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
11734
11735         Remove TYPE_NONCOPIED_PARTS.
11736         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
11737         (struct tree_type): Remove noncopied_parts.
11738         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
11739         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
11740         (fixed_type_p): Remove.
11741         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
11742         (expand_expr, MODIFY_EXPR): Likewise.
11743         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
11744         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
11745
11746 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
11747
11748         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
11749         compiler warnings.
11750         (mask64_operand): Likewise.
11751         (includes_rldic_lshift_p): Likewise.
11752         (includes_rldicr_lshift_p): Likewise.
11753
11754 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
11755
11756         * objc/objc-act.c (build_message_expr): If a class method cannot
11757         be found, do not issue a warning if a corresponding instance
11758         method exists in the root class.
11759
11760 2001-09-05  Richard Henderson  <rth@redhat.com>
11761
11762         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
11763
11764 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
11765
11766         * function.c (ggc_mark_struct_function): Mark f->outer.
11767         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
11768         * integrate.c (output_inline_function): ... not here.
11769
11770 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
11771
11772         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
11773
11774         * i386.c (size_cost): New static variable.
11775         (override_function): Use size_cost when -Os is specified.
11776
11777         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
11778         properly;  Use current_function_calls_eh_return.
11779         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
11780         use leave to avoid dependency chain.
11781
11782         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
11783         get BB loop_depth instead of computing it from LOOP notes.
11784
11785         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
11786
11787 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11788
11789         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11790         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11791         UNALIGNED_DOUBLE_INT_ASM_OP): Define
11792
11793 2001-09-05  Jeffrey A Law  (law@cygnus.com)
11794             Jason Merrill (jason@redhat.com)
11795
11796         * stor-layout.c (layout_type): Complain if an array's size can
11797         not be represented in a size_t.
11798
11799         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
11800
11801 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
11802
11803         * gcc.c: (process_command) Add parentheses around assignment
11804         used as truth value.
11805
11806 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
11807
11808         * config/mips/mips.c (save_restore_insns): Don't mark any register
11809         save slots as unchanging if current_function_calls_eh_return.
11810
11811 2001-09-05  Richard Henderson  <rth@redhat.com>
11812
11813         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
11814         * config/alpha/alpha-protos.h: Declare it.
11815         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
11816         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
11817         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
11818         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
11819         (REG_OK_FOR_BASE_P): Select one of the above.
11820
11821 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
11822
11823         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
11824         (crti.o): Prefix name of object file with $(T).
11825         (crtn.o): Likewise.
11826
11827 2001-09-05  David S. Miller  <davem@redhat.com>
11828
11829         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
11830         * config/sparc/linux64.h: Likewise.
11831
11832 2001-09-05  Andreas Jaeger  <aj@suse.de>
11833
11834         * doc/invoke.texi (i386 Options): -mwide-multiply is not
11835         available anymore, remove the documentation.
11836         (i386 Options): Fix typo, cleanup index entries.
11837
11838         * prefix.c (concat): Remove, we can use the version from liberty.
11839
11840 2001-09-05  Richard Henderson  <rth@redhat.com>
11841
11842         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
11843         New functions split out of md file expanders.
11844         * config/alpha/alpha-protos.h: Declare them.
11845         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
11846
11847 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11848
11849         * cppmacro.c (funlike_invocation_p): No need to restore context.
11850
11851 2001-09-04  Richard Henderson  <rth@redhat.com>
11852
11853         * reload.c (push_reload): Export.
11854         * reload.h (push_reload): Declare it.
11855
11856         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
11857         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
11858         * config/alpha/alpha.c (alpha_legitimize_address): New.
11859         (alpha_legitimize_reload_address): Likewise.
11860         * config/alpha/alpha-protos.h: Declare them.
11861
11862 2001-09-04  Stan Shebs  <shebs@apple.com>
11863
11864         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
11865         * config/darwin.c (machopic_stub_name): Account for internally
11866         generated lib calls such as memcpy.
11867
11868 2001-09-04  Richard Henderson  <rth@redhat.com>
11869
11870         * unwind.h (_UA_END_OF_STACK): New flag.
11871         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
11872
11873 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
11874
11875         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
11876
11877 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
11878
11879         * config/mips/mips.c (save_restore_insns): Change base_offset to
11880         fp_offset in second call to mips_emit_frame_related_store.
11881
11882 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
11883
11884         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
11885         sometimes be represented as a NOTE of type
11886         NOTE_INSN_DELETED_LABEL.
11887         (Insns): Document NOTE_INSN_DELETED_LABEL.
11888
11889 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
11890
11891         * c-common.h (tree_dump_index): Add more comments.
11892         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
11893         (dump_option_value_info): New struct.
11894         (dump_options): New array.
11895         (dump_switch_p): Parse switch options symbolically.
11896         * doc/invoke.texi (-fdump-ast): Rename to ...
11897         (-fdump-tree): ... here. Document that options are symbolic, and
11898         not all are applicable.
11899
11900 2001-09-04  David S. Miller  <davem@redhat.com>
11901
11902         * config/sparc/sparc.md (define_splits): Kill constraints.
11903
11904         Cleanup redundant and unused insn attributes.
11905         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
11906         binary, and move.  Mark ialu as default.
11907         (commented out define_function_unit "alu"): Kill.
11908         (define_attr "use_clobbered"): Kill.
11909         (whole file): Kill address insn type references.  Replace
11910         all unary/binary/move references with ialu.
11911         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
11912         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
11913         TYPE_IALU.
11914
11915         Simplify length insn attribute and make more judicious use
11916         of insn attribute defaulting.
11917         * config/sparc/sparc.md (all insns with length > one): Mark as
11918         insn type multi if real instructions, else use default if
11919         it is a forced splitter.
11920         (all insns with length == one): Use default insn length.
11921         (all insns of type ialu): Use default insn type.
11922
11923         Fix erroneous insn attribute settings.
11924         (addx): Set insn type to misc.
11925         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
11926         const_umulsidi3_sp64): Set insn type to imul.
11927
11928         Track SFmode vs DFmode insns according to UltraSPARC
11929         scheduling rules.
11930         * config/sparc/sparc.md ("fptype"): New attribute, default
11931         to "single".
11932         (all DFmode single insns): Mark as fptype "double".
11933
11934 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
11935
11936         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
11937
11938 2001-09-03  Richard Henderson  <rth@redhat.com>
11939
11940         * function.h (struct function): Add arg_pointer_save_area_init.
11941         * function.c (expand_function_end): Init arg_pointer_save_area.
11942         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
11943         when called from a nested function.
11944
11945 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
11946
11947         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
11948         is enabled.
11949
11950 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11951
11952         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
11953
11954 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
11955
11956         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
11957         (emit_push_insn): Use specified padding direction when
11958         STACK_PUSH_CODE is POST_INC.
11959
11960         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
11961
11962 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11963
11964         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
11965
11966 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
11967
11968         * cppinit.c (cpp_start_read): Free the imacros list as we
11969         traverse it.  Don't free the chains before returning.
11970         (_cpp_push_next_buffer): Only try pushing buffers if we've
11971         completed -imacros handling.
11972
11973 2001-08-31  Eric Christopher  <echristo@redhat.com>
11974
11975         * gcc.c (handle_braces): Add explaination for abort.
11976
11977 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
11978
11979         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
11980         move adjustment of bitpos instead.
11981
11982 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
11983
11984         * function.c: Remove all_functions.  Make outer_function_chain
11985         static.
11986         (init_function_start): Don't add new function structure to
11987         all_functions.
11988         (find_function_data, push_function_context_to,
11989         pop_function_context_from, put_var_into_stack,
11990         trampoline_address): Update for changed structure element names.
11991         (push_function_context_to): Disentangle.
11992         (free_after_compilation): Also free F.
11993         (expand_dummy_function_end): Don't free cfun here.
11994         (put_var_into_stack): Comment why we can't use find_function_data here.
11995         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
11996         (mark_function_chain): Split into maybe_mark_struct_function and
11997         ggc_mark_struct_function.  Export the latter.
11998         (init_function_once): Mark from cfun and outer_function_chain;
11999         not all_functions.
12000
12001         * function.h (struct function): Kill next_global.  Rename next
12002         to outer.  All users updated to match.
12003         (all_functions, outer_function_chain): Don't declare.
12004
12005         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
12006         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
12007         don't touch f->inlinable, after calling rest_of_compilation.
12008
12009         * tree.h: Forward-declare struct function.  Prototype
12010         ggc_mark_struct_function.
12011
12012 2001-08-31  Kazu Hirata  <kazu@hxi.com>
12013
12014         * config/h8300/h8300.md (*andorhi3): Fix typos.
12015
12016 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12017
12018         * calls.c (emit_library_call_value): Don't use a fixed
12019         argument after VA_CLOSE, i.e. out of scope in traditional C.
12020
12021         * emit-rtl.c (gen_rtvec): Likewise.
12022
12023 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12024
12025         * Makefile.in (c-pragma.o): Depend on output.h.
12026         (reorg.o): Depend on except.h.
12027
12028         * c-pragma.c: Include output.h.
12029
12030         * reorg.c: Include except.h.
12031
12032         * unwind-dw2.c: Call __builtin_alloca, not alloca.
12033
12034 2001-08-31  Richard Henderson  <rth@redhat.com>
12035
12036         * sched-deps.c (add_dependence): Don't elide dependency if the
12037         conditional used by insn is modified in elem.
12038
12039 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
12040
12041         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
12042
12043 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
12044
12045         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
12046         dump_switch_p.
12047
12048 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
12049
12050         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
12051         function.
12052         (stormy16_asm_out_constructor): New function.
12053         (TARGET_ASM_CONSTRUCTOR): Define.
12054         (TARGET_ASM_DESTRUCTOR): Define.
12055
12056 2001-08-31  Andreas Jaeger  <aj@suse.de>
12057
12058         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
12059         * loop.c (add_label_notes): Likewise.
12060         * reload.c (find_reloads): Likewise.
12061         * config/sh/sh.c (machine_dependent_reorg): Likewise.
12062
12063 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
12064
12065         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
12066         code here.  Take _Unwind_{W,Sw}ord*.
12067         (read_encoded_value_with_base): Use them.
12068         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
12069         words.
12070         (extract_cie_info): Simplify read_?leb128 handling.
12071         (execute_stack_op, execute_cfa_program): Likewise.
12072         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
12073
12074 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
12075
12076         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
12077         the frame pointer to pop the stack if convenient.
12078
12079         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
12080         Don't use post-increment before combine.
12081         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
12082         a call-saved register.
12083
12084 2001-08-31  Andreas Jaeger  <aj@suse.de>
12085
12086         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
12087         code was correct.
12088
12089 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
12090
12091         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
12092         not DIV/MOD, of course.
12093
12094 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
12095
12096         * rtl.def: Undo my patch commited 2001-08-27.
12097
12098         * genattrtab.c: Ditto.
12099
12100         * rtl.h: Ditto.
12101
12102         * sched-int.h: Ditto.
12103
12104         * target-def.h: Ditto.
12105
12106         * target.h: Ditto.
12107
12108         * haifa-sched.c: Ditto.
12109
12110         * sched-rgn.c: Ditto.
12111
12112         * sched-vis.c: Ditto.
12113
12114         * Makefile.in: Ditto.
12115
12116         * doc/md.texi: Ditto.
12117
12118         * doc/tm.texi: Ditto.
12119
12120         * doc/contrib.texi: Ditto.
12121
12122         * doc/gcc.texi: Ditto.
12123
12124         * genattrtab.h: Remove it.
12125
12126         * genautomata.c: Remove it.
12127
12128         * genattr.c: Undo my patch and Richard Henderson's patch commited
12129         2001-08-27.
12130
12131 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
12132
12133         * config.gcc (h8300-*-elf*): New case.
12134         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
12135         (SUBTARGET_CPP_SPEC): Define.
12136         (EXTRA_SPECS): Define.
12137         (SUBTARGET_EXTRA_SPECS): Define.
12138         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
12139         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
12140
12141 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
12142
12143         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
12144         (LIB2FUNCS_EXTRA): Define.
12145         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
12146         config/h8300/fixunssfsi.c: New file.
12147
12148 2001-08-30  Kazu Hirata  <kazu@hxi.com>
12149
12150         * config/h8300/h8300.md (zero_extendqihi2): Changes to
12151         define_expand to accommodate target-specific attributes.
12152         (anonymous zero_extendqihi2 patterns): New.
12153
12154 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
12155
12156         * h8300.md (*andorhi3): New pattern.
12157
12158 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
12159
12160         * h8300.c (dosize): Fix test for "sub".
12161
12162 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
12163
12164         * c-typeck.c (pointer_diff): Try to eliminate common term before
12165         doing conversions.
12166
12167 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
12168
12169         * config/arm/arm.c (arm_compute_initial_elimination_offset):
12170         Account for the saves of the FP registers.
12171
12172         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
12173         (TEXT_SECTION_ASM_OP): Define.
12174         (INIT_SECTION_ASM_OP): Define.
12175         (FINI_SECTION_ASM_OP): Define.
12176         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
12177         (RDATA_SECTION_FUNCITON): Provide prototype.
12178
12179 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
12180
12181         * reload1.c (move2add_note_store): Correct typo checking for
12182         argument pushes.
12183
12184 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
12185
12186         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
12187         note should not be considered outside the libcall block.
12188
12189 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12190
12191         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
12192
12193 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12194
12195         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
12196
12197 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12198
12199         * config/h8300/h8300-protos.h: Add a prototype for
12200         emit_logical_op.
12201         * config/h8300/h8300.c (emit_logical_op): New.
12202         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
12203         (andsi3): Likewise.
12204         (iorhi3): Likewise.
12205         (iorsi3): Likewise.
12206         (xorhi3): Likewise.
12207         (xorsi3): Likewise.
12208
12209 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12210
12211         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
12212         comparison with rtx INTVAL.
12213         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
12214         expression.
12215         * pa.h (FUNCTION_ARG_SIZE): Likewise.
12216
12217 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12218
12219         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
12220         comment typos.
12221
12222 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12223
12224         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
12225         (reg n) to (mem (pre_dec (reg n))
12226         (anonymous movsi pattern): Likewise.
12227
12228 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12229
12230         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
12231
12232 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12233
12234         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
12235         several special constants.
12236
12237 2001-08-29  Kazu Hirata  <kazu@hxi.com>
12238
12239         * config/h8300/lib1funcs.asm: Fix comment typos.
12240
12241 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12242
12243         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
12244         Fix format specifier warnings.
12245
12246         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
12247         inet_makeaddr, semctl): Prototype.
12248
12249         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
12250         (save_restore_insns): Use base_offset, not gp_offset.
12251
12252         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
12253         (ASM_OUTPUT_BYTE): Fix format specifier warning.
12254
12255 2001-08-29  Richard Henderson  <rth@redhat.com>
12256
12257         * bb-reorder.c (function_tail_eff_head): New.
12258         (record_effective_endpoints): Set it.
12259         (fixup_reorder_chain): Use it.
12260
12261 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12262
12263         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
12264
12265 2001-08-28  Dale Johannesen  <dalej@apple.com>
12266
12267         * config/darwin.c (machopic_function_base_name): Add const
12268         qualifier to a string.
12269         (darwin_encode_section_info): Ditto.
12270
12271 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12272
12273         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
12274         function definition.
12275
12276 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
12277
12278         * df.h (struct df): Add rts_order variable.
12279
12280         * df.c (df_visit_next_rts): New function.
12281         (df_visit_next): Renamed to df_visit_next_rc
12282         (df_analyse_1): Allocate/compute/free rts_order as well.
12283         (df_rd_global_compute): Use df_visit_next_rc instead of
12284         df_visit_next.
12285         (df_ru_global_compute): Use df_visit_next_rts instead of
12286         df_visit_next.
12287
12288         * flow.c (flow_reverse_top_sort_order_compute): New function.
12289
12290         * basic-block.h: Add prototype.
12291
12292 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
12293
12294         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
12295         blocks, the BB_REACHABLE is now set, rather than aux being
12296         non-NULL. Update the test to reflect this.
12297
12298 2001-08-28  Eric Christopher  <echristo@redhat.com>
12299
12300         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
12301         config/mips/crti.asm: Ditto.
12302
12303 2001-08-28  Eric Christopher <echristo@redhat.com>
12304             Richard Henderson <rth@redhat.com>
12305
12306         * c-pragma.h (add_weak): Move prototype from here...
12307         * output.h (add_weak): ... to here.
12308         * varasm.c (add_weak): Fix typo.
12309         * config/mips/crti.asm: New file.
12310         * config/mips/crtn.asm: Ditto.
12311         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
12312         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
12313         (INVOKE__main): Ditto.
12314         (INIT_SECTION_ASM_OP): New.
12315         (FINI_SECTION_ASM_OP): Ditto.
12316         (STARTFILE_SPEC): Add crti.
12317         (ENDFILE_SPEC): Add crtn.
12318         * config/mips/elf64.h: Same.
12319         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
12320         Remove.
12321         * config/mips/vxworks.h: Ditto.
12322         * config/mips/t-elf: Support crti and crtn.
12323
12324 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12325
12326         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
12327         INSN_LIST.
12328
12329 2001-08-28  Richard Henderson  <rth@redhat.com>
12330
12331         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
12332         (one_cmplbi2 splitter): Remove redundant test.
12333
12334 2001-08-28  Dale Johannesen  <dalej@apple.com>
12335
12336         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
12337
12338 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
12339
12340         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
12341
12342 2001-08-28  Stan Shebs  <shebs@apple.com>
12343
12344         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
12345         (UNALIGNED_SHORT_ASM_OP): Define.
12346         (UNALIGNED_INT_ASM_OP): Define.
12347
12348 2001-08-28  Will Cohen  <wcohen@redhat.com>
12349
12350         * config/rs6000/rs6000.md (store_multiple): Correct RTL
12351         generation for first set.
12352
12353 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
12354
12355         * flow.c (redirect_edge_succ_nodup): Return new edge.
12356         (try_simplify_condjump): Use new edge.
12357         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
12358
12359         * cse.c (cse_basic_block): Skip note instructions.
12360
12361 2001-08-27  Richard Henderson  <rth@redhat.com>
12362
12363         * combine.c (combine_simplify_rtx): Don't reverse condition
12364         if there is no reverse for the condition.
12365         (simplify_comparison): Don't simplify subregs from INT to FP.
12366
12367         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
12368         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
12369         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
12370         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
12371         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
12372         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
12373
12374 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
12375
12376         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
12377         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
12378         (pushqi1): New.
12379         (adddi_dilshr32, adddi_dishl32): Only data register can be
12380         source for mem destination.
12381
12382         * expmed.c (store_bit_field): Ignore adjustment to bitpos
12383         and use bitnum to decide about register move.
12384
12385 2001-08-27  Richard Henderson  <rth@redhat.com>
12386
12387         * genattr.c (main): Emit state_t even when not doing scheduling.
12388
12389 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
12390             Richard Henderson  <rth@redhat.com>
12391
12392         * gcse.c (reg_first_set, reg_last_set): Replace with ...
12393         (reg_avail_info, current_bb): ... these.
12394         (oprs_unchanged_p, record_last_reg_set_info): Use them.
12395         (compute_hash_table): Likewise.
12396
12397 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
12398
12399         * flow.c (verify_flow_info): Use checksums to verify edges.
12400
12401 2001-08-27  Richard Henderson  <rth@redhat.com>
12402
12403         * genautomata.c (expand_automata): Always create a description.
12404
12405 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
12406
12407         * optabs.c (expand_binop): Correctly handle the carry in multiword
12408         add/subtract operations.
12409
12410 2001-08-27  Fred Fish  <fnf@be.com>
12411
12412         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
12413         __SIZE_TYPE__.
12414
12415 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
12416
12417         * reload.c (find_reloads_toplev): Back out this change:
12418
12419         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
12420
12421         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
12422         mem if the address is a mode_dependent_address_p.
12423
12424 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
12425
12426         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
12427         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
12428         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
12429         RTL constructions.
12430
12431         * genattr.c (main): New variable num_insn_reservations.  Increase
12432         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
12433         pipeline hazard recognizer interface.
12434
12435         * genattrtab.h: New file.
12436
12437         * genattrtab.c: Include genattrtab.h.
12438         (attr_printf, check_attr_test, make_internal_attr,
12439         make_numeric_value): Move protypes into genattrtab.h.  Define them
12440         as external.
12441         (num_dfa_decls): New global variable.
12442         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
12443         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
12444         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
12445         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
12446
12447         * genautomata.c: New file.
12448
12449         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
12450
12451         * sched-int.h: (curr_state): Add the external definition for
12452         automaton pipeline interface.
12453         (haifa_insn_data): Add comments for members blockage and units.
12454
12455         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12456         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12457         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12458         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12459         TARGET_SCHED_DFA_POST_CYCLE_INSN,
12460         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12461         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
12462         macros.
12463         (TARGET_SCHED): Use the new macros.
12464
12465         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
12466         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
12467         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
12468         dfa_bubble): New members in gcc_target.sched.
12469
12470         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
12471         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
12472         (insn_queue): Redefine it as pointer to array.
12473         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
12474         INSN_QUEUE_SIZE.
12475         (max_insn_queue_index_macro_value): New variable.
12476         (curr_state, dfa_state_size, ready_try): New varaibles for
12477         automaton interface.
12478         (ready_element, ready_remove, max_issue): New function prototypes
12479         for automaton interface.
12480         (choose_ready): New function prototype.
12481         (insn_unit, blockage_range): Add comments.
12482         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
12483         FUNCTION_UNITS_SIZE == 0.
12484         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
12485         actual_hazard, potential_hazard): Add comments.
12486         (insn_cost): Use cost -1 as undefined value.  Remove
12487         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
12488         pipeline interface.
12489         (ready_element, ready_remove): New functions for automaton
12490         interface.
12491         (schedule_insn): Add new code for automaton pipeline interface.
12492         (queue_to_ready): Add new code for automaton pipeline interface.
12493         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
12494         (debug_ready_list): Print newline when the queue is empty.
12495         (max_issue): New function for automaton pipeline interface.
12496         (choose_ready): New function.
12497         (schedule_block): Add new code for automaton pipeline interface.
12498         Print ready list before scheduling each insn.
12499         (sched_init): Add new code for automaton pipeline interface.
12500         Initiate insn cost by -1.
12501         (sched_finish): Free the current automaton state and finalize
12502         automaton pipeline interface.
12503
12504         * sched-rgn.c: Include target.h.
12505         (init_ready_list, new_ready, debug_dependencies): Add new code for
12506         automaton pipeline interface.
12507
12508         * sched-vis.c: Include target.h.
12509         (get_visual_tbl_length): Add code for automaton interface.
12510         (target_units, print_block_visualization):  Add comments.
12511
12512         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
12513         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
12514         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
12515         (getruntime.o, genautomata.o): New entries.
12516         (genattrtab.o): Add new dependency file genattrtab.h.
12517         (genattrtab): Add new dependencies.  Link it with `libm.a'.
12518         (getruntime.o, hashtab.o): New entries for canadian cross.
12519
12520         * doc/md.texi: Description of automaton based model.
12521
12522         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
12523         Add comments.
12524         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
12525         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
12526         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
12527         TARGET_SCHED_DFA_POST_CYCLE_INSN,
12528         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
12529         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
12530         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
12531         hook descriptions.
12532         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
12533         MAX_DFA_ISSUE_RATE): New macro descriptions.
12534
12535         * doc/contrib.texi: Add dfa based scheduler contribution.
12536
12537         * doc/gcc.texi: Add more information about genattrtab.
12538
12539 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
12540
12541         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
12542         an RTL basic block.
12543
12544 2001-08-27  Richard Henderson  <rth@redhat.com>
12545
12546         * function.c (expand_function_end): Don't init arg_pointer_save_area.
12547         (get_arg_pointer_save_area): New.  Create an init it here.
12548         (fix_lexical_addr): Use it.
12549         * function.h: Declare it.
12550         * builtins.c (expand_builtin_setjmp_receiver): Use it.
12551         * stmt.c (expand_nl_goto_receiver): Use it.
12552
12553 2001-08-27  Richard Henderson  <rth@redhat.com>
12554
12555         * final.c (final_scan_insn): Don't enter APP_ON mode for
12556         empty asm strings.
12557
12558         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
12559         alignment for assemble_integer for DW_EH_PE_aligned.
12560         * except.c (output_function_exception_table): Likewise.
12561
12562 2001-08-26  Andreas Jaeger  <aj@suse.de>
12563
12564         * c-tree.h: Add prototyp for c_sizeof_nowarn.
12565
12566 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
12567
12568         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
12569
12570 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
12571
12572         * config/rs6000/rs6000.c (mask_operand): Rewrite without
12573         bit-shifting loop.
12574         (mask64_operand): Likewise.
12575         (rldic_operand): Delete.
12576         (includes_lshift64_p): Delete.
12577         (includes_rldic_lshift_p): New function.
12578         (includes_rldicr_lshift_p): New function.
12579         (print_operand): Don't call rldic_operand in case 'W'.
12580         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
12581         (includes_lshift64_p): Remove.
12582         (includes_rldic_lshift_p): Declare.
12583         (includes_rldicr_lshift_p): Declare.
12584         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
12585         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
12586         Replace match_operand rldic_operand predicate with
12587         const_int_operand.  Replace includes_lshift64_p condition with
12588         includes_rldic_lshift_p.
12589         <ashldi3_internal 64 bit rldicr patterns>: New.
12590
12591 2001-08-27  Andreas Jaeger  <aj@suse.de>
12592
12593         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
12594         * errors.c: Likewise.
12595         * final.c: Likewise.
12596         * dwarf2asm.c: Likewise.
12597         * doprint.c (checkit): Likewise.
12598         * diagnostic.c: Likewise.
12599         * collect2.c: Likewise.
12600         * calls.c: Likewise.
12601         * c-semantics.c (build_stmt): Likewise.
12602         * c-format.c (status_warning): Likewise.
12603         * c-errors.c (pedwarn_c99): Likewise.
12604         * builtins.c (validate_arglist): Likewise.
12605         * config/pj/pj.c (pj_printf): Likewise.
12606         * fix-header.c: Likewise.
12607         * gcc.c: Likewise.
12608         * gcov.c (fnotice): Likewise.
12609         * gensupport.c (message_with_line): Likewise.
12610         * mips-tfile.c: Likewise.
12611         * protoize.c (notice): Likewise.
12612         * read-rtl.c (fatal_with_file_and_line): Likewise.
12613         * rtl-error.c: Likewise.
12614         * tradcpp.c: Likewise.
12615         * tree.c: Likewise.
12616         * cp/tree.c (build_min_nt): Likewise.
12617         (build_min): Likewise.
12618         * cp/lex.c: Likewise.
12619         * cp/errfn.c: Likewise.
12620         * cp/rtti.c (create_pseudo_type_info): Likewise.
12621
12622 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
12623
12624         * df.c (df_uses_record): Return after recording all uses
12625         in ASM_OPERANDS.
12626
12627 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
12628
12629         * df.c (df_insn_modify): Realloc the INSN table here, if
12630         necessary, here, too.
12631
12632 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
12633
12634         * config/mips/mips.c (mips_function_value): Handle complex return
12635         values.
12636
12637 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
12638
12639         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
12640         unshared.
12641         * reload.c (make_memloc): Copy result if it is still
12642         reg_equiv_memory_loc[regno] on return.
12643         (subst_reloads) [ENABLE_CHECKING]: Check that none of
12644         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
12645         reg_equiv_mem are modified by the substitutions.
12646
12647 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12648
12649         * predict.c (expensive_function_p): New.
12650         * rtl.h (expensive_function_p): Declare.
12651         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
12652         (use_fast_prologue_epilogue): New static variable.
12653         (expand_prologue): Set it; emit short prologues if unset.
12654         (expand_epilogue): Likewise.
12655
12656 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
12657
12658         * config.gcc: Add stormy16-*-elf case.
12659         * config/stormy16/stormy-abi: New file.
12660         * config/stormy16/stormy16-lib2.c: New file.
12661         * config/stormy16/stormy16-protos.h: New file.
12662         * config/stormy16/stormy16.c: New file.
12663         * config/stormy16/stormy16.h: New file.
12664         * config/stormy16/stormy16.md: New file.
12665         * config/stormy16/t-stormy16: New file.
12666
12667 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
12668
12669         * i386.h (no-accumulate-outgoing-args): Use proper mask.
12670
12671 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
12672
12673         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
12674         descriptor members are pointer size, not constant 4.
12675         * config/rs6000/rs6000.md (define_splits): Remove more unused
12676         constraints.
12677
12678 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12679
12680         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
12681
12682 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
12683
12684         * cp/rtti.c (VPARAMS): Fix parameter.
12685
12686 2001-08-24  Zack Weinberg  <zackw@panix.com>
12687
12688         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
12689         to zero.
12690         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
12691         to switch.
12692         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
12693         in if controlling use of insv.
12694         (extract_bit_field): Likewise, for extv and extzv.
12695
12696 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
12697
12698         * i386.md (movcc peep2): Fix load of 0.
12699
12700 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12701
12702         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
12703         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
12704
12705 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
12706
12707         * c-pragma.h: Move weak_syms and weak_decls...
12708         * varasm.c: ...here.  Now static.
12709         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
12710         depend on HANDLE_PRAGMA_WEAK.
12711
12712         * c-common.c (c_alignof, c_alignof_expr): Move here...
12713         * c-typeck.c: ...from here.
12714         * c-tree.h, c-common.h: Adjust.
12715
12716 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
12717
12718         * config/ia64/ia64.c (rws_update): If !pred, set write_count
12719         instead of incrementing it.
12720
12721         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
12722         asm ready, don't try to move them all into the same array element.
12723
12724 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12725
12726         * function.c (thread_prologue_and_epilogue_insns): Avoid
12727         fallthru flag on edge to exit.
12728
12729         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
12730
12731         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
12732         dead edges.
12733
12734 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
12735
12736         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
12737         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
12738         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
12739         Remove prototype.
12740
12741 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
12742
12743         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
12744         replace "GNU CC" with "GCC".
12745
12746 2001-08-23  Richard Henderson  <rth@redhat.com>
12747
12748         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
12749         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
12750         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
12751         Need GR between FR and not GR_AND_FR.
12752         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
12753         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
12754         AR regs before GR regs.
12755         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
12756         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
12757         (REGISTER_MOVE_COST): Update.
12758         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
12759
12760 2001-08-23  Richard Henderson  <rth@redhat.com>
12761
12762         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
12763         a register class.
12764
12765 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
12766
12767         * reload1.c (emit_reload_insns): Don't look for notes
12768         on a NULL store_insn.
12769
12770 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12771
12772         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
12773         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
12774         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
12775         format specifier warnings.
12776         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
12777
12778 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
12779
12780         * config/i386/i386-protos.h: Correct declaration of
12781         i386_pe_asm_named_section.
12782
12783 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12784
12785         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
12786         variable i.
12787         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
12788
12789 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12790
12791         * cpperror.c (print_location): Don't show _Pragma.
12792         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
12793         and file change callback generation here.
12794         (stack_include_file): Update use of cpp_push_buffer.
12795         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
12796         (struct cpp_buffer): Remove type, pfile members.
12797         * cppinit.c (cpp_handle_option): Use free_chain.
12798         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
12799         (skip_escaped_newlines, get_effective_char, lex_percent): Take
12800         a cpp_reader rather than a cpp_buffer.
12801         (skip_escaped_newlines, get_effective_char, skip_block_comment,
12802         skip_line_comment, parse_string, lex_percent, lex_dot,
12803         _cpp_lex_token): Update accordingly.
12804         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
12805         generation here.
12806         (cpp_push_buffer): Update prototype.
12807         (run_directive): Update use of cpp_push_buffer.
12808         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
12809         handle_assertion): Update use of run_directive.
12810         * cpplib.h (enum cpp_buffer_type): Remove.
12811         (cpp_push_buffer): Update prototype.
12812         * fix-header.c (read_scan_file): Update.
12813
12814 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12815
12816         * gcc.c (struct prefix_list): Change prefix to const char *.
12817
12818 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
12819
12820         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
12821
12822 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
12823
12824         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
12825         from a new MEM.
12826
12827         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
12828         a squeezable note.
12829         * rtl.h: Adjust.
12830         * ifcvt.c (dead_or_predicable): Adjust.
12831         * loop.c (find_and_verify_loops): Adjust.
12832         * stmt.c (expand_end_case): Adjust.
12833         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
12834         head and end insn pointers in the basic block, not just local copies.
12835         (merge_blocks_move_predecessor_nojumps): Likewise.
12836
12837 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
12838
12839         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
12840         bitmap.h, builtin-types.def, builtins.c, builtins.def,
12841         c-aux-info.c, c-common.c, c-common.def, c-common.h,
12842         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
12843         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
12844         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
12845         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
12846         conditions.h, config.gcc, configure.frag, configure.in,
12847         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
12848         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
12849         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
12850         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
12851         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
12852         emit-rtl.c, errors.c, errors.h, except.c, except.h,
12853         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
12854         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
12855         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
12856         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
12857         gencheck.c, gencodes.c, genconfig.c, genemit.c,
12858         genextract.c, genflags.c, gengenrtl.c, genmultilib,
12859         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
12860         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
12861         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
12862         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
12863         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
12864         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
12865         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
12866         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
12867         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
12868         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
12869         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
12870         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
12871         params.h, predict.c, predict.def, predict.h, prefix.c,
12872         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
12873         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
12874         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
12875         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
12876         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
12877         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
12878         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
12879         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
12880         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
12881         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
12882         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
12883         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
12884         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
12885         xcoffout.h: replace "GNU CC" with "GCC".
12886
12887 2001-08-21  Richard Henderson  <rth@redhat.com>
12888
12889         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
12890         (final_scan_insn): Consider jump tables data even if we have no
12891         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
12892         ADDR_VEC_ALIGN.
12893         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
12894         (ASM_OUTPUT_CASE_END): Remove.
12895         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
12896         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
12897         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
12898
12899 2001-08-21  Richard Henderson  <rth@redhat.com>
12900
12901         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
12902         at barrier insns.  Emit stop bits before barriers.
12903
12904         * flow.c (flow_find_cross_jump): Don't consider unconditional
12905         return insns for commoning.
12906
12907         * final.c (compute_alignments): Fix typo.
12908
12909         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
12910         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
12911         (store_bit_field): Use mode_for_extraction more places.
12912         (extract_bit_field): Likewise.
12913
12914 2001-08-21  Zack Weinberg  <zackw@panix.com>
12915
12916         * caller-save.c: Don't include insn-codes.h.
12917         (reg_save_code, reg_restore_code): Make arrays of int.
12918         All uses updated to match.
12919         (insert_save, insert_restore): No need to initialize "code"
12920         variable upon declaration.
12921         * Makefile.in: update dependencies; fix typo in clean rule.
12922
12923 2001-08-21  Richard Henderson  <rth@redhat.com>
12924
12925         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
12926         (merge_if_block): Handle fallout from same.
12927
12928 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12929
12930         * builtins.c (type_to_class): Fix typo in last change.
12931
12932 2001-08-21  Richard Henderson  <rth@redhat.com>
12933
12934         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
12935         ia64_asm_output_label.
12936
12937         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
12938         copy of gp while the real gp register contains garbage.
12939
12940 2001-08-21  Zack Weinberg  <zackw@panix.com>
12941
12942         * expmed.c (mode_for_extraction): New function.
12943         (store_bit_field, extract_bit_field): Use it.
12944         * expr.h: Prototype it and provide an enum for its first argument.
12945
12946         * combine.c, function.c, recog.c: Don't include insn-codes.h.
12947         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
12948         and digging through the insn_data tables.
12949         * Makefile.in: Update dependencies.
12950
12951 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12952
12953         * cppfiles.c (stack_include_file): line-map.c now handles include
12954         depth.
12955         (handle_missing_handler): Similarly.
12956         (_cpp_execute_include): Similarly.
12957         (_cpp_pop_file_buffer): Similarly.
12958         * cpphash.h (struct cpp_reader): Remove system_include_depth,
12959         buffer_stack_depth and include_depth.
12960         * cpplib.c (do_include_common): line-map.c now handles include depth.
12961         (cpp_push_buffer): Similarly.
12962         (_cpp_pop_buffer): Similarly.
12963         * cppmacro.c (builtin_macro): Update.
12964         * line-map.c (init_line_maps): Set depth.
12965         (add_line_map): Increment "used" earlier.  Update and use the
12966         include depth.
12967         (trace_include): Use the include depth.
12968         * line-map.h (struct line_maps): New member depth.
12969
12970 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12971
12972         * cppfiles.c (stack_include_file): Don't handle -H here.
12973         * cppinit.c (cpp_start_read): Set include tracing after
12974         cpp_post_options and after stacking the main file.
12975         * line-map.c (trace_include): New.
12976         (init_line_maps, add_line_map): Update.
12977         * line-map.h (struct line_maps): New member trace_includes.
12978
12979 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12980
12981         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
12982         * cppfiles.c (stack_include_file): Only stack a file if there
12983         is something to do.  Return a boolean indicating whether a
12984         buffer was stacked or not.
12985         (_cpp_execute_include): Similarly.
12986         (_cpp_read_file): Similarly.
12987         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
12988
12989 2001-08-21  Sam Steingold  <sds@gnu.org>
12990
12991         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
12992         (RECACHE): keep obufp_before_macroname up to date
12993
12994 2001-08-21  Zack Weinberg  <zackw@panix.com>
12995
12996         * stmt.c: Don't include insn-codes.h.
12997         (expand_end_case): Machine specific logic moved to expr.c.
12998         No need to worry about __builtin_classify_type.
12999         (check_for_full_enumeration_handling, emit_case_nodes):
13000         Kill #if 0 blocks.
13001
13002         * builtins.o (expand_builtin_classify_type): Split up so code
13003         can be shared with fold_builtin_classify_type.
13004         (type_to_class, fold_builtin_classify_type): New functions.
13005         (fold_builtins): Handle __builtin_classify_type.
13006
13007         * expr.c (do_tablejump): Now static.
13008         (case_values_threshold, try_casesi, try_tablejump): New;
13009         code mostly from stmt.c (expand_end_case).
13010         (expr.h): Update prototypes.
13011
13012         * Makefile.in (stmt.o): Update dependencies.
13013
13014 2001-08-21  Will Cohen  <wcohen@redhat.com>
13015
13016         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
13017         declaration of variable i.
13018         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
13019         declaration of variable i.
13020
13021 2001-08-21  Richard Henderson  <rth@redhat.com>
13022
13023         * crtstuff.c: Fix thinko last change.  Move list tails to start
13024         of CRT_END section.  Tidy ifdefs.
13025         (__EH_FRAME_BEGIN__): Always static for ELF.
13026         (__do_global_ctors_1): Rename from __frame_dummy.
13027         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
13028         name change; don't hide __EH_FRAME_BEGIN__.
13029
13030 2001-08-21  Richard Henderson  <rth@redhat.com>
13031
13032         * gdbinit.in: Move break on exit after break on fancy_abort.
13033
13034         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
13035         sized types.
13036
13037 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13038
13039         * cpphash.h (_cpp_push_next_buffer): New.
13040         * cppinit.c (do_includes): Remove.
13041         (push_include, free_chain, _cpp_push_next_buffer): New.
13042         (cpp_start_read): Use them to rework command line option handling.
13043         (cpp_handle_option): Combine handling of -include and -imacros.
13044         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
13045         appropriate.  Always insert missing \n at EOF.
13046         * cpplib.c (start_directive): Get the directive position right.
13047         * cppmain.c (cb_file_change): Always print the first line, unless
13048         preprocessed.
13049
13050 2001-08-20  Andreas Jaeger  <aj@suse.de>
13051
13052         * profile.c (compute_branch_probabilities): Remove extra new-line
13053         in error message.
13054         * flow.c (verify_flow_info): Likewise.
13055
13056 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
13057
13058         * basic-block.h (basic_block): Add new field 'flags'.
13059         (BB_REACHABLE): Define.
13060         (expunge_block): Declare.
13061         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
13062         (EXIT_BLOCK_PTR): Ditto.
13063         (expunge_block): Remove static declaration.
13064         (cleanup_cfg): Clear bb->aux on every basic block.
13065         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
13066         computing reachability.
13067         (delete_unreachable_blocks): Delete block b if b->flags has
13068         BB_REACHABLE unset.
13069
13070 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
13071
13072         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
13073
13074 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13075
13076         * sparc.c (sparc_variable_issue): Fix typo in last change.
13077
13078 2001-08-20  Richard Henderson  <rth@redhat.com>
13079
13080         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
13081
13082 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13083
13084         * pa.h (RETURN_IN_MEMORY): Improve comment.
13085
13086 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
13087
13088         * doc/invoke.texi (Profiling options): Clarify the interactions
13089         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
13090
13091 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
13092
13093         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
13094         command.
13095
13096 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
13097
13098         * gcc.c (make_relative_prefix): Allocate a sufficiently large
13099         buffer.
13100
13101 2001-08-20  Richard Henderson  <rth@redhat.com>
13102
13103         * final.c (end_final): Fix typo last change.
13104
13105 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13106
13107         * cppinit.c (init_standard_includes): The returned buffer
13108         is already malloc-ed.
13109         * gcc.c (add_prefix): Similarly.
13110         * prefix.c (translate_name): Update to support clear buffer
13111         ownership rules.
13112         (update_path): Similarly.  Be sure to free any newly allocated
13113         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
13114         (tr): New function.
13115         * prefix.h (update_path): Update prototype and document.
13116         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
13117         up and update to new buffer ownership rules.
13118         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
13119
13120 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
13121
13122         * final.c (compute_alignments): New function.
13123         (init_insn_lengths): Do not care label_align.
13124         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
13125         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
13126         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
13127         (shorted_branches): Realloc label_align array; do
13128         not call init_insn_lengths; Do not care about loop alignments.
13129         * output.h (compute_alignments): Declare.
13130         * toplev.c (rest_of_compilation): Call compute_alignments.
13131         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
13132
13133         * predict.c (block_info_def): Add npredecesors, remove nvisited;
13134         change visited to tovisit.
13135         (propagate_freq): Use faster traversing algorithm.
13136         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
13137         to tovisit; reverse meaning.
13138
13139         * predict.c (struct block_info_def): Remove nvisited.
13140         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
13141         (estimate_bb_frequencies): Call mark_dfs_back_edges.
13142
13143 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
13144
13145         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
13146         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
13147         (TARGET_FUSED_MADD): New.
13148         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
13149         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
13150         the multiply-add instructions.
13151
13152 2001-08-19  Richard Henderson  <rth@redhat.com>
13153
13154         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
13155         is aligned to pointer size.
13156
13157 2001-08-19  Richard Henderson  <rth@redhat.com>
13158
13159         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
13160         display markers during final schedule.
13161
13162 2001-08-19  Richard Henderson  <rth@redhat.com>
13163
13164         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
13165
13166 2001-08-19  Richard Henderson  <rth@redhat.com>
13167
13168         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
13169         in the same string.
13170         (ASM_NAME_TO_STRING): Remove.
13171         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
13172         in the same string.  Remove support for expressions.
13173
13174 2001-08-19  Richard Henderson  <rth@redhat.com>
13175
13176         * config/i386/i386.md (tablejump): Make an expander; handle
13177         pic relative addressing here.
13178         (tablejump_1): Rename from tablejump_pic.
13179         (casesi): Remove.
13180
13181 2001-08-19  Richard Henderson  <rth@redhat.com>
13182
13183         * regclass.c (fix_register): Fix typo.
13184
13185 2001-08-18  Richard Henderson  <rth@redhat.com>
13186
13187         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
13188         (struct _Unwind_Context): Expand br_loc to hold it.
13189         (uw_frame_state_for): Handle leaf functions better.
13190         (uw_update_reg_address): Update for br_loc change.
13191
13192 2001-08-18  Richard Henderson  <rth@redhat.com>
13193
13194         * crtstuff.c: Move list heads before code that uses them.
13195         (__JCR_LIST__): Remove initial null.
13196         (frame_dummy, __frame_dummy): Do java registration here ...
13197         (__do_global_ctors_aux): ... not here.
13198
13199         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
13200         (__do_global_dtors_aux): Update to match.
13201         (__JCR_LIST__, __do_jv_register_classes): New.
13202         (.init): Call it.
13203         * config/ia64/crtend.asm (__JCR_END__): New.
13204         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
13205         instead of an indirect LTOFF22 reloc.
13206
13207 2001-08-18  Richard Henderson  <rth@redhat.com>
13208
13209         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
13210         * regclass.c (init_reg_sets_1): Fix typo.
13211         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
13212         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
13213         (ia64_compute_frame_size): Make ar.unat live when in use.
13214         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
13215         for ar.pfs; remove ar.unat handling.
13216         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
13217         call-saved.
13218         (PREDICATE_CODES): Add ar_pfs_reg_operand.
13219         * config/ia64/ia64-protos.h: Update decls.
13220         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
13221         (sibcall_pic): Likewise.
13222
13223 2001-08-18  Richard Henderson  <rth@redhat.com>
13224
13225         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
13226         pred_rel_mutex when searching for insn_group_barrier.
13227         * config/ia64/ia64.md (cycle_display): Combine the expander
13228         and insn patterns.
13229
13230         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
13231         bit before asm as needed.
13232
13233 2001-08-18  Richard Henderson  <rth@redhat.com>
13234
13235         * timevar.def (TV_MACH_DEP): New.
13236         * toplev.c (rest_of_compilation): Use it.
13237         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
13238
13239 2001-08-18  Zack Weinberg  <zackw@panix.com>
13240
13241         * unwind-dw2.c (execute_stack_op): Add default aborts to
13242         the inner switches to prevent warnings.
13243
13244 2001-08-18  Richard Henderson  <rth@redhat.com>
13245
13246         * timevar.h (struct timevar_time_def): Change element type to float.
13247         (ticks_to_msec, clocks_to_msec): Likewise.
13248         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
13249         (get_time): Likewise.
13250         (timevar_print): Adjust zero check and printing to match.
13251
13252 2001-08-18  Zack Weinberg  <zackw@panix.com>
13253
13254         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
13255         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
13256         Eliminate overfull or underfull hboxes.
13257
13258 2001-08-18  Zack Weinberg  <zackw@panix.com>
13259
13260         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
13261
13262 2001-08-18  Zack Weinberg  <zackw@panix.com>
13263
13264         * haifa-sched.c: Convert to target hooks.  Macros replaced
13265         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
13266         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
13267         MD_SCHED_FINISH, and HAVE_cycle_display.
13268         * target-def.h (TARGET_SCHED_ADJUST_COST,
13269         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
13270         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
13271         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
13272         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
13273         New hook #defines to be overridden.
13274         (TARGET_SCHED): Bring them all together.
13275         (TARGET_INITIALIZER): Update.
13276         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
13277         instead of 'struct rtx_def *' throughout.
13278         (struct sched): New set of hooks for the scheduler.
13279         * Makefile.in (haifa-sched.o): Depend on target.h.
13280         * doc/tm.texi: Document the new scheduler hooks, together in
13281         their own section, instead of scattered around.
13282         Fix a bunch of underfull/overfull hboxes.
13283
13284         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
13285         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
13286         sparc.h: Don't define any of the old scheduler macros.
13287
13288         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
13289         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
13290         sparc.c: Create hook functions from code extracted from
13291         corresponding target header, or make existing hooks static, as
13292         appropriate.  Set the appropriate entries in targetm.
13293
13294         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
13295         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
13296         rs6000-protos.h, s390-protos.h, sparc-protos.h:
13297         Remove prototypes for functions which are now static.
13298
13299         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
13300         related gunk; the Haifa scheduler is now the only choice.
13301
13302 2001-08-18  Zack Weinberg  <zackw@panix.com>
13303
13304         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
13305         * genopinit.c: Put floating point divide insns in sdiv_optab.
13306         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
13307         * config/gofast.h, config/c4x/c4x.h,
13308         config/ia64/hpux_longdouble.h, config/mips/mips.h,
13309         config/pa/long_double.h, config/rs6000/sysv4.h,
13310         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
13311         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
13312         (init_optabs): Use init_optabv for overflow-trapping optabs.
13313         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
13314         cmp_optab RTX codes so have_insn_for can find them.
13315
13316         * optabs.c (expand_simple_binop, expand_simple_unop,
13317         have_insn_for, gen_sub3_insn): New interfaces.
13318         * expr.h: Prototype new functions.
13319         (enum optab_methods): Move here from optabs.h.
13320
13321         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
13322         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
13323         Use new functions instead of working directly with optabs.
13324         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
13325         unroll.c: Don't include optabs.h.
13326         * caller-save.c, combine.c, function.c, stmt.c: Just include
13327         insn-codes.h, not optabs.h.
13328         * Makefile.in: Update dependencies.
13329
13330         * combine.c (make_compound_operation, simplify_comparison):
13331         Fix typos testing for this or that instruction.
13332
13333 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13334
13335         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
13336         generating libgcc.a.
13337
13338 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13339
13340         * except.c (TYPE_HASH): Delete.
13341
13342         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
13343         HOST_WIDE_INT.
13344
13345         * tree.c (TYPE_HASH): Delete.
13346
13347         * tree.h (TYPE_HASH): Define.
13348
13349 2001-08-18  Graham Stott  <grahams@redhat.com>
13350
13351         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
13352         define_split.
13353         (adddi3_internal_2+2): Likewise.
13354         (eh_set_lr_di+1): Likewise.
13355
13356 2001-08-17  Richard Henderson  <rth@redhat.com>
13357
13358         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
13359         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
13360         * dwarf2asm.c: ... here.
13361         * dwarfout.c: Remove them.
13362
13363         * varasm.c (assemble_integer): Add align parameter.
13364         (assemble_real, output_constant, output_constructor): Likewise.
13365         * output.h: Update decls.
13366         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
13367         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
13368         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
13369         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
13370         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
13371         Update all callers.
13372
13373         * final.c (end_final): Abort profile block generation if we
13374         haven't layed it out properly.
13375         * output.h (assemble_eh_integer): Remove stale decl.
13376         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
13377         (min_align): New.
13378         (assemble_integer): Handle unaligned data.
13379         (assemble_real): Abort on unaligned data.
13380         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
13381         anything useful.
13382         (default_dtor_section_asm_out_destructor): Use assemble_align.
13383         (default_named_section_asm_out_constructor): Likewise.
13384         (default_ctor_section_asm_out_constructor): Likewise.
13385         * config/darwin.c (machopic_asm_out_constructor): Likewise.
13386         (machopic_asm_out_destructor): Likewise.
13387         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
13388         (nextstep_asm_out_destructor): Likewise.
13389         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
13390         (vms_asm_out_destructor): Likewise.
13391
13392 2001-08-17  Richard Henderson  <rth@redhat.com>
13393
13394         * config/mips/iris6.h (TARGET_IRIX6): New.
13395         (current_section_name, current_section_flags): New.
13396         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
13397         (MAX_OFILE_ALIGNMENT): New.
13398         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
13399         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
13400         (copy_file_data): Split out from
13401         (mips_asm_file_end): ... here.
13402         (mips_asm_file_start): Remove extra .section directive.  Use
13403         tmpfile instead of mips_make_temp_file.
13404         (mips_unique_section): Use const char * as needed for warnings.
13405         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
13406         re-add align parameter.
13407         (iris6_asm_named_section): New.
13408         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
13409         (iris6_asm_output_align, iris6_section_align_1): New.
13410         (iris6_asm_file_start, iris6_asm_file_end): New.
13411         * config/mips/mips-protos.h: Update decls.
13412
13413 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
13414
13415         * doc/install.texi (Install GCC): Add links to build status pages.
13416         (Specific): Ditto.
13417         (Final install): Ditto; request updates for specific info
13418
13419 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13420
13421         * cpperror.c (print_location):  Don't take a file name; use the
13422         line map instead.
13423         (_cpp_begin_message): Similarly.
13424         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
13425         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
13426         (cpp_pedwarn_with_file_and_line): Remove.
13427         * cppfiles.c (stack_include_file): Update; set filename to stdin
13428         here when appropriate.
13429         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
13430         (_cpp_begin_message): Don't take a file name.
13431         * cppinit.c: Add comment.
13432         * cpplex.c: Fix end-of-directive indicator.
13433         * cpplib.c: Don't include intl.h.
13434         (run_directive, do_diagnostic): Update.
13435         (do_line): Update to not use nominal_fname.
13436         (cpp_push_buffer): Don't take a filename.
13437         * cpplib.h (struct ht): Remove.
13438         (cpp_push_buffer): Don't take a filename.
13439         (cpp_pedwarn_with_file_and_line): Remove.
13440         * cppmacro.c (struct cpp_macro): Remove file.
13441         (builtin_macro): Update.
13442         (_cpp_create_definition): Update.
13443         * cppmain.c: Correct comment.
13444         * fix-header.c (read_scan_file): Update.
13445
13446 2001-08-17  Kazu Hirata  <kazu@hxi.com>
13447
13448         * sbitmap.c: Fix comment formatting.
13449         * sched-deps.c: Likewise.
13450         * sibcall.c: Likewise.
13451         * simplify-rtx.c: Likewise.
13452         * ssa.c: Likewise.
13453         * ssa-ccp.c: Likewise.
13454         * stor-layout.c: Likewise.
13455         * timevar.c: Likewise.
13456         * toplev.c: Likewise.
13457         * unwind-dw2.c: Likewise.
13458         * unwind-dw2-fde.c: Likewise.
13459         * varasm.c: Likewise.
13460
13461 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13462
13463         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
13464         or larger than an integer in memory.
13465
13466 2001-08-17  Zack Weinberg  <zackw@panix.com>
13467
13468         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
13469         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
13470         * rtl.h: Don't forward-declare union tree_node here.  Don't
13471         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
13472         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
13473         and tree respectively.
13474         * tree.h: Don't forward-declare struct rtx_def here.  Don't
13475         typedef tree here.  Change all uses of struct rtx_def *,
13476         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
13477         and tree respectively.
13478
13479 2001-08-17  Richard Henderson  <rth@redhat.com>
13480
13481         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
13482         config/mips/openbsd.h: Fix typos last change.
13483
13484 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13485
13486         * doc/invoke.texi (Optimize Options): The default for
13487         -finline-limit is 600.
13488
13489 2001-08-17  Richard Henderson  <rth@redhat.com>
13490
13491         * varasm.c (text_section): Allow TEXT_SECTION to override the
13492         printing of TEXT_SECTION_ASM_OP.
13493         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
13494         (DATA_SECTION, BSS_SECTION): Remove.
13495         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
13496         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
13497         Rename from s/_NAME//.
13498         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
13499         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
13500         (TEXT_SECTION): ... here.  New.
13501         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
13502         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
13503         * config/mips/openbsd.h: Likewise.
13504         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
13505         (mips_asm_file_end): Likewise test.
13506         (mips_output_function_epilogue): Likewise.  Switch back to data
13507         section after emitting the function.
13508
13509         * doc/tm.texi (Sections): Document TEXT_SECTION.
13510
13511 2001-08-17  Richard Henderson  <rth@redhat.com>
13512
13513         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
13514         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
13515
13516 2001-08-17  Richard Henderson  <rth@redhat.com>
13517
13518         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
13519         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
13520         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
13521         Add aligned attribute.
13522
13523 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
13524
13525         * config/sh/sh.md: Add modes to unspecs in first insn to match
13526         those in the second.
13527
13528         * Makefile.in: Fix collect2 copy for Cygwin.
13529
13530 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13531
13532         Install the proper patch.
13533         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
13534         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
13535         (expand_function_start): Likewise.
13536         * stmt.c (expand_decl): Likewise.
13537         * varasm.c (make_decl_rtx): Likewise.
13538
13539 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13540
13541         * final.c: Undo my previous accidental checkin.
13542         * output.h: Likewise.
13543         * tm.texi: Likewise.
13544
13545 2001-08-16  Richard Henderson  <rth@redhat.com>
13546
13547         * varasm.c (named_section_flags): Remove align parameter.
13548         * varasm.c, dwarf2out.c: Update all callers.
13549         * output.h: Update prototypes.
13550
13551         * target.h (target.asm_out.named_section): Remove align parameter.
13552         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
13553         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
13554         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
13555         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
13556         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
13557
13558         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
13559         (get_named_section_flags, set_named_section_flags): New.
13560         (named_section_flags): Use them.
13561         (named_section): Do decl vs section flags check here...
13562         (default_section_type_flags): ... not here.
13563         (init_varasm_once): Create in_named_htab.
13564         (resolve_unique_section): Mark reloc unused.
13565
13566 2001-08-16  Richard Henderson  <rth@redhat.com>
13567
13568         * varasm.c (force_const_mem): Keep pool alignment in bits.
13569         (output_constant_pool): Use assemble_align.
13570
13571 2001-08-16  Zack Weinberg  <zackw@panix.com>
13572
13573         * doc/tm.texi: Remove extra @table command.
13574
13575 2001-08-16  Zack Weinberg  <zackw@panix.com>
13576
13577         * final.c (shorten_branches): Clear the end of the label_align
13578         array only if we made it larger.  Break up messy expressions
13579         for clarity.
13580
13581         * diagnostic.c (internal_error): Check for error recursion
13582         before doing ICE suppression.
13583
13584         * timevar.c: Timing variables now count in milliseconds.
13585         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
13586         (get_time): Not here.
13587         (timevar_print): Don't print any timer whose user, cpu, and
13588         wall times are all zero as displayed.
13589         * timevar.h: Update comment aboout units.  Make timevar
13590         counters unsigned.
13591
13592 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
13593
13594         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
13595         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
13596         (expand_function_start): Likewise.
13597         * stmt.c (expand_decl): Likewise.
13598         * varasm.c (make_decl_rtx): Likewise.
13599
13600 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
13601
13602         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
13603         (finalize_record_size): Don't set TYPE_USER_ALIGN.
13604
13605 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
13606
13607         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
13608         variables.
13609
13610 2001-08-16  Andreas Jaeger  <aj@suse.de>
13611
13612         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
13613         prototype.
13614
13615 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
13616
13617         * rtl.h (only_sets_cc0_p): New prototype.
13618         * jump.c (sets_cc0_p): Handle INSN.
13619         (only_sets_cc0_p): New function.
13620         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
13621         (tidy_fallthru_edge): Likewise.
13622         * integrate.c (copy_insn_list): Likewise.
13623         * unroll.c (unroll_loop): Likewise.
13624         (copy_loop_body): Likewise.
13625
13626 2001-08-15  Jason Eckhardt  <jle@redhat.com>
13627
13628         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
13629
13630 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13631
13632         * predict.c (struct block_info_def): Remove nvisited.
13633         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
13634         (estimate_bb_frequencies): Call mark_dfs_back_edges.
13635
13636         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
13637         (ix86_adjust_cost): Teach scheduler that latency to load operand can
13638         be masked.
13639
13640 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
13641
13642         * predict.def: Update hitrates.
13643
13644 2001-08-15  Richard Henderson  <rth@redhat.com>
13645
13646         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
13647
13648 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
13649
13650         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
13651         note from its associated jump.
13652
13653 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
13654
13655         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
13656         also on 64-bit s390x targets.
13657
13658 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
13659
13660         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
13661         function.
13662         (arm_expand_prologue): Handled nested functions which take a
13663         variable argument list.
13664         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
13665         macro with an invocation of
13666         arm_compute_initial_elimination_offset.
13667         * config/arm/arm-protos.h: Prototype
13668         arm_compute_initial_elimination_offset.
13669
13670 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13671
13672         * doc/install.texi (Specific, avr): Fix markup.
13673         (Specific, c4x): Ditto.
13674
13675 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
13676
13677         * predict.c (dump_prediction): Change `bool' parameter to `int'.
13678
13679 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
13680
13681         * Makefile.in (OBJS): Add rtl-error.o
13682         (rtl-error.o): New rule.
13683         (diagnostic.o): Adjust dependency.
13684         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
13685         error_for_asm, _fatal_insn, _fatal_insn_not_found,
13686         warning_for_asm): Move to...
13687         rtl-error.c: ...here.  New file.
13688
13689 2001-08-14  Richard Henderson  <rth@redhat.com>
13690
13691         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
13692         if USING_SJLJ_EXCEPTIONS.
13693
13694 2001-08-14  Steve Ellcey <sje@cup.hp.com>
13695
13696         * tlink.c (scan_linker_output): Check string for unsatisfied in
13697         addition to undefined and unresolved.
13698
13699 2001-08-14  Graham Stott  <grahams@redhat.com>
13700
13701         * libgcc2.c (*): Replace EH_FRAME_SECTION with
13702         EH_FRAME_SECTION_NAME.
13703
13704 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
13705
13706         * genattrtab.c (simplify_test_exp_in_temp): New function.
13707         (simplify_test_exp): Avoid explicit use of temporary obstack.
13708         (simplify_cond, insert_right_side, evaluate_eq_attr,
13709         simplify_and_tree, simplify_or_tree, eliminate_known_true):
13710         Use simplify_test_exp_in_temp.
13711         (optimize_attrs): Iterate until expression stabilizes.
13712
13713 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
13714
13715         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
13716         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
13717
13718 2001-08-13  Richard Henderson  <rth@redhat.com>
13719
13720         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
13721         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
13722         * config/arm/conix-elf.h: Likewise.
13723
13724 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
13725
13726         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
13727         in gcc.c.
13728         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13729
13730         * gcse.c (hash_scan_set): Expressions that are set as part of
13731         jump instructions are not available.
13732
13733 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
13734
13735         * config/s390/s390.c (print_operand, s390_function_prologue,
13736         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
13737
13738 2001-08-13  Richard Henderson  <rth@redhat.com>
13739
13740         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
13741         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
13742         * doc/tm.texi (Exception Region Output): Document it.
13743
13744 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
13745
13746         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
13747         DWARF2 instead of stabs by default.
13748
13749 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
13750
13751         * config/rs6000/rs6000.c: Include optabs.h.
13752
13753 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
13754
13755         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
13756         save/restore routines.
13757         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
13758
13759 2001-08-13  Andreas Jaeger  <aj@suse.de>
13760
13761         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
13762         the english is correct.
13763
13764 2001-08-13  Zack Weinberg  <zackw@panix.com>
13765
13766         * expr.h: Split out optab- and libfunc-related code to...
13767         * optabs.h, libfuncs.h: ... these new headers.
13768
13769         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
13770         (OPTABS_H): New.
13771         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
13772         dependencies.
13773         * mkconfig.sh: Don't include insn-codes.h from config.h.
13774
13775         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
13776         enum insn_code is available.  Move reload_in_optab and
13777         reload_out_optab array declarations to optabs.h.
13778         * regmove.c (gen_add3_insn): Move to optabs.c, export from
13779         there, prototype in expr.h.
13780         * gencodes.c: Cleanup: zap global variables, don't use
13781         printf where puts will do, don't bother defining MAX_INSN_CODE
13782         which nothing uses, let CODE_FOR_nothing get its value implicitly.
13783
13784         * genemit.c, genopinit.c: Include optabs.h in generated file.
13785         * genoutput.c: Include insn-codes.h in generated file.
13786         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
13787         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
13788         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
13789         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
13790         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
13791         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
13792         Include optabs.h.
13793         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
13794         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
13795         config/m88k/m88k.c, config/sparc/sparc.c:
13796         Include libfuncs.h.
13797         * reload.c: Include expr.h and optabs.h before reload.h.
13798         * config/alpha/alpha.c: Include tree.h before reload.h.
13799         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
13800         and reload.h in that order.
13801         * config/sparc/sparc.c: Include debug.h.
13802         * recog.c: Include insn-codes.h.
13803
13804 2001-08-13  Andreas Jaeger  <aj@suse.de>
13805
13806         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
13807         s390*linux.
13808
13809 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
13810
13811         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
13812         * gcc.c (init_spec): Fix typo in comment.
13813         * varasm.c (data_section): Fix typo in comment.
13814
13815 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
13816
13817         * predict.c (dump_prediction): New argument "USED".
13818         (combine_predictions_for_insn): Determine the used heuristics,
13819         output the case no heuristic applied.
13820         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
13821
13822 2001-08-13  Andreas Jaeger  <aj@suse.de>
13823
13824         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
13825         register %rip.
13826
13827 2001-08-13  Kazu Hirata  <kazu@hxi.com>
13828
13829         * jump.c: Fix formatting.
13830
13831 2001-08-13  Kazu Hirata  <kazu@hxi.com>
13832
13833         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
13834         length.
13835
13836 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
13837
13838         * loop.c (check_dbra_loop): Use condjump_label to compute
13839         jump_label.
13840
13841         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
13842         to better document the files they're in.
13843
13844 2001-08-12  Zack Weinberg  <zackw@panix.com>
13845
13846         * recog.h (struct insn_operand_data): Shrink 'mode' field
13847         to 16 bits.
13848
13849 2001-08-12  Kazu Hirata  <kazu@hxi.com>
13850
13851         * gcc.c: Fix comment formatting.
13852         * gccspec.c: Likewise.
13853         * gcov.c: Likewise.
13854         * gcse.c: Likewise.
13855         * genemit.c: Likewise.
13856         * gengenrtl.c: Likewise.
13857         * genrecog.c: Likewise.
13858         * gensupport.c: Likewise.
13859         * ggc-page.c: Likewise.
13860         * global.c: Likewise.
13861         * graph.c: Likewise.
13862         * ifcvt.c: Likewise.
13863         * integrate.c: Likewise.
13864         * lcm.c: Likewise.
13865         * libgcc2.c: Likewise.
13866         * loop.c: Likewise.
13867         * mbchar.c: Likewise.
13868         * optabs.c: Likewise.
13869         * predict.c: Likewise.
13870         * prefix.c: Likewise.
13871         * profile.c: Likewise.
13872         * protoize.c: Likewise.
13873         * real.c: Likewise.
13874         * recog.c: Likewise.
13875         * regclass.c: Likewise.
13876         * regmove.c: Likewise.
13877         * reg-stack.c: Likewise.
13878         * reload1.c: Likewise.
13879         * resource.c: Likewise.
13880         * rtlanal.c: Likewise.
13881         * rtl.c: Likewise.
13882
13883 2001-08-12  Kazu Hirata  <kazu@hxi.com>
13884
13885         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
13886         a tree representing a constant is passed to the macro.
13887
13888 2001-08-12  Richard Henderson  <rth@redhat.com>
13889
13890         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
13891         (rs6000_elf_asm_out_destructor): New.
13892         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
13893         (DTORS_SECTION_ASM_OP): Remove.
13894         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
13895         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
13896
13897 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
13898
13899         Revert:
13900         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13901         * gcc.c (set_collect_gcc_options): New function, split out from
13902         main.
13903         Ignore elided switches.
13904         (do_spec_1): Invoke before executing command.
13905         (set_input): Export.
13906         Move declaration ...
13907         * gcc.h (set_input): ... here.
13908         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13909         file.
13910
13911 2001-08-12  Richard Henderson  <rth@redhat.com>
13912
13913         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
13914         thinko wrt TARGET_RELOCATABLE.
13915
13916 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13917
13918         * fix-header.c (cb_file_change): Update prototype.
13919
13920 2001-08-11  Zack Weinberg  <zackw@panix.com>
13921
13922         * toplev.c (set_float_handler): Make static.
13923         * toplev.h: Don't prototype set_float_handler.
13924
13925         * simplify-rtx.c: Don't include setjmp.h.
13926         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
13927         New functions.
13928         (simplify_unary_operation, simplify_binary_operation): Use them,
13929         via do_float_handler.
13930
13931         * fold-const.c: Don't include setjmp.h.
13932         (exact_real_inverse_1): New function.
13933         (exact_real_inverse): Use it, via do_float_handler.
13934
13935         * varasm.c: Don't include setjmp.h.
13936         (assemble_real_1): New function.
13937         (assemble_real): Use it, via do_float_handler.
13938         Call internal_error if we get a trap here.
13939
13940         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
13941         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
13942
13943 2001-08-11  Zack Weinberg  <zackw@panix.com>
13944
13945         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
13946         STACK_BOUNDARY if not already defined.
13947
13948         * calls.c, function.c, reload1.c, explow.c: Don't default
13949         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
13950         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
13951
13952         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
13953         to run-time test.
13954
13955         * doc/tm.texi: Document that STACK_BOUNDARY is required;
13956         clarify difference between it and PREFERRED_STACK_BOUNDARY.
13957
13958 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13959
13960         * cppmacro.c (enter_macro_context): Push macro expansions even
13961         if empty.
13962
13963 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13964
13965         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
13966         (rs6000_elf_section_type_flags): Actually return a value.
13967
13968 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
13969
13970         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
13971         Clean up code: add missing comments and prototypes, fix warnings,
13972         remove obsolete code, fix spacing to conform to coding style.
13973
13974 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
13975
13976         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
13977         and TARGET_ASM_CLOSE_PAREN.
13978         (regclass_map): CC register belongs to class NO_REGS.
13979         (legitimize_pic_address): Don't generate unnecessary moves
13980         (to avoid confusing loop optimization).
13981         (check_and_change_labels): Replace jump_long by indirect_jump.
13982         (s390_final_chunkify): Don't start a new literal pool on section
13983         switch in 64-bit code.
13984         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
13985
13986         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
13987         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
13988         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
13989         modes correctly.
13990         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
13991         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
13992         (CONST_COSTS): Fixed incorrect costs.
13993
13994         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
13995         Use emit_jump instead of emit_jump_insn (gen_jump).
13996         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
13997         (to avoid confusing flow analysis).
13998         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
13999         (casesi, casesi_jump): New.
14000         (jump_long): Removed.  Functionality merged into indirect_jump.
14001         (indirect_jump): Accept address_operand, not just register_operand.
14002         (cjump_long, icjump_long): Use same logic as indirect_jump.
14003         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
14004         Fixed broken setjmp/longjmp handling.
14005         (do_builtin_setjmp_setup): Removed.
14006
14007         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
14008         broken GNU as versions that don't accept .quad with large
14009         negative values.  Use hexadecimal output instead.
14010         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
14011         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
14012         FUNCTION_EPILOGUE): Removed.  Now in targetm.
14013
14014         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
14015
14016         * config/s390/fixdfdi.h: Add missing copyright statement.
14017         Fix type conflicts on 64-bit.  Add missing SFmode routines.
14018
14019         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
14020         email address.
14021
14022 2001-08-11  Richard Henderson  <rth@redhat.com>
14023
14024         * rtl.h (REG_EH_RETHROW): Remove.
14025         * rtl.c (reg_note_name): Update.
14026         * combine.c (distribute_notes): Don't check for it.
14027
14028 2001-08-11  Richard Henderson  <rth@redhat.com>
14029
14030         * combine.c (distribute_notes): Place REG_SETJMP.
14031
14032 2001-08-11  Richard Henderson  <rth@redhat.com>
14033
14034         * doc/extend.texi (Arrays and pointers implementation): Discourage
14035         relying on sign-extension of pointers.
14036
14037 2001-08-11  H.J. Lu <hjl@gnu.org>
14038
14039         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
14040         in_dtors.
14041         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
14042         RDATA_SECTION_ASM_OP.
14043
14044 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14045
14046         * doc/install.texi (Specific, c4x): Fix cross-reference to the
14047         main manual to work both for info and HTML versions.
14048
14049 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14050             Matt Kraai <kraai@alumni.carnegiemellon.edu>
14051
14052         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
14053         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
14054         (struct cpp_pool): New member first.
14055         * cppinit.c (append_include_chain): Plug memory leaks.
14056         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
14057         Allocate pragma structures from the (aligned) macro pool to
14058         avoid leaking memory.
14059         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
14060         so we don't leak memory.
14061         * hashtable.c (ht_destroy): New.
14062         * hashtable.h (ht_destroy): New.
14063
14064 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14065             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14066
14067         * c-lex.c (map): Make const.
14068         (cb_file_change): Update for callback passing a line map.
14069         Don't assume we have a previous map.  Remove sanity check
14070         about popping too many files.
14071         * cpperror.c (print_location): Make map const.
14072         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
14073         (cpp_make_system_header): Similarly.
14074         (search_from): Similarly.
14075         (_cpp_execute_include): Don't remember where we came from.
14076         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
14077         (struct cpp_reader): Make map const.
14078         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
14079         * cpplib.c (do_line): Update; line maps now hold sysp.
14080         (cpp_push_buffer): Similarly.
14081         (_cpp_do_file_change): Similarly; callback with map instead.
14082         (cpp_get_line_maps): Constify return value.
14083         (_cpp_pop_buffer): Update.
14084         * cpplib.h (struct cpp_file_change): Remove.
14085         (struct cpp_callbacks): Update.
14086         (cpp_get_line_maps): Constify return value.
14087         * cppmacro.c (_cpp_create_definition): Update.
14088         * cppmain.c (struct printer): Constify map.
14089         (maybe_print_line): Similarly.
14090         (print_line): Similarly.  Deduce flags 1 and 2 here.
14091         (cb_file_change): Update.
14092         * line-map.c (free_line_maps): Warn regardless.
14093         (add_line_map): Return pointer to const.  When passed NULL to_file
14094         with LC_LEAVE, use the obvious values for the return point so the
14095         caller doesn't have to figure them out.
14096         (lookup_line): Return pointer to const.
14097         (print_containing_files): Take pointer to const.
14098         * line-map.h (struct line_map): New members reason, sysp.
14099         (add_line_map): Return pointer to const.
14100         (lookup_line): Similarly.
14101         (print_containing_files): Take pointer to const.
14102
14103 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
14104             Richard Henderson  <rth@redhat.com>
14105
14106         * regmove.c (regmove_optimize): Avoid setting a register twice in
14107         a parallel set.
14108
14109 2001-08-10  Richard Henderson  <rth@redhat.com>
14110
14111         * doc/extend.texi (Arrays and pointers implementation): Document
14112         behavior of pointer/integer conversion.
14113
14114 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
14115
14116         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
14117
14118 2001-08-10  Richard Henderson  <rth@redhat.com>
14119
14120         * doc/extend.texi (C Implementation): New chapter.
14121         * doc/gcc.texi (Top): Link it in.
14122
14123 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
14124
14125         * doc/install.texi (Specific): Fix CVS merge botch.
14126
14127 2001-08-10  Richard Henderson  <rth@redhat.com>
14128
14129         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
14130         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
14131
14132 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
14133
14134         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
14135         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
14136         this macro is now required.
14137
14138         * cselib.c (cselib_process_insn), flow.c (propagate_block),
14139         loop.c (find_and_verify_loops), reload.c (reload): Check
14140         for rtx code of CALL_INSN, not CALL, when deciding if we
14141         need to check for REG_SETJMP note.
14142
14143         * gcse.c (compute_hash_table, compute_store_table): Update
14144         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
14145         logic.
14146
14147         * config/avr/avr.c: Fix typo.
14148         * config/convex/convex.c (expand_movstr): Use adjust_address.
14149         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
14150         variable.
14151         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
14152         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
14153         Fix typo.
14154         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
14155         Do define STACK_BOUNDARY.
14156         * config/i370/i370.c: Include expr.h.
14157         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
14158         config/pa/som.h, config/v850/v850.h: Take in_ctors and
14159         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
14160         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
14161         * config/m88k/m88k.c: Include c-tree.h after expr.h.
14162         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
14163         * config/romp/romp.c: Include expr.h after tree.h.
14164         Include toplev.h.
14165         (output_fpop): Use xmalloc, not oballoc.
14166         * config/we32k/we32k.c: Include expr.h.
14167
14168 2001-08-10  Kazu Hirata  <kazu@hxi.com>
14169
14170         * config/h8300/h8300.h: Fix formatting.
14171
14172 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
14173
14174         * c-common.h (RETURN_NULLIFIED_P): Lose.
14175         * c-semantics.c (genrtl_return_stmt): Don't check it.
14176
14177 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14178
14179         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
14180         (mips_annotate_frame_insn): New function.
14181         (mips_emit_frame_related_store): New function.
14182         (save_restore_insns): Don't mark instructions that set up the base
14183         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
14184         the store instructions instead.
14185         (mips_expand_prologue): If the stack size is moved into a temporary
14186         register, do not mark that move as frame-related.  Add a
14187         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
14188
14189 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14190
14191         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
14192         stack slot as unchanging if current_function_calls_eh_return.
14193
14194 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
14195
14196         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
14197         access the second half of the TFmode scratch operand.
14198
14199 2001-08-10  Anthony Green  <green@redhat.com>
14200
14201         * java/class.c (emit_register_classes): Conditionalize code on
14202         JCR_SECTION_NAME.
14203
14204 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14205
14206         * doc/install.texi (Specific, avr): Fix cross-reference to the
14207         main manual to work both for info and HTML versions.
14208
14209 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14210
14211         * stmt.c (expand_null_return_1): Remove code to generate simple returns
14212         and "use_goto" argument.
14213         (expand_null_return, expand_value_return): Update all callers.
14214         * function.c (expand_function_end): Remove code to generate simple
14215         return.
14216         * config/vax/vax.md (epilogue): New expander for function return.
14217         * doc/md.texi (epilogue): Remove "if defined".
14218
14219 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
14220
14221         * Makefile.in: Partially revert my previous change:
14222         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
14223         of the hashtab.o and safe-ctype.o rules.
14224
14225 2001-08-09  Richard Henderson  <rth@redhat.com>
14226
14227         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
14228         (USE_COLLECT2): Remove duplicate definition.
14229         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
14230         (use_collect2): Remove dead code.
14231         * configure.in (use_collect2): Remove will_use_collect2 and
14232         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
14233         * configure: Rebuild.
14234
14235         * target.h (targetm.asm_out.constructor): New.
14236         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
14237         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
14238         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
14239         * varasm.c (in_ctors, in_dtors): New.
14240         (assemble_constructor, assemble_destructor): Remove.
14241         (default_stabs_asm_out_destructor): New.
14242         (default_named_section_asm_out_destructor): New.
14243         (dtors_section, default_dtor_section_asm_out_destructor): New.
14244         (default_stabs_asm_out_constructor): New.
14245         (default_named_section_asm_out_constructor): New.
14246         (ctors_section, default_ctor_section_asm_out_constructor): New.
14247         * output.h: Update declarations.
14248         * c-decl.c (c_expand_body): Use target hooks instead of
14249         assemble_constructor and assemble_destructor.
14250         * profile.c (output_func_start_profiler): Likewise.
14251         * objc/objc-act.c (finish_objc): Likewise.
14252         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
14253         for the constructor.
14254         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
14255
14256         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
14257         (DTORS_SECTION_ASM_OP): Likewise.
14258         (__CTOR_LIST__): Use attribute section when possible.
14259         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
14260
14261         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
14262         ASM_OUTPUT_CONSTRUCTOR.
14263
14264         * config/darwin.c (machopic_asm_out_constructor): New.
14265         (machopic_asm_out_destructor): New.
14266         * config/darwin-protos.h: Update declarations.
14267         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14268         (ASM_OUTPUT_DESTRUCTOR): Remove.
14269         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14270         * config/nextstep.c (nextstep_asm_out_constructor): New.
14271         (nextstep_asm_out_destructor): New.
14272         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14273         (ASM_OUTPUT_DESTRUCTOR): Remove.
14274         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14275         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
14276         ASM_OUTPUT_*STRUCTOR.
14277         * config/i386/aix386ng.h: Likewise.
14278
14279         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
14280         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
14281         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
14282         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14283         * config/lynx.h: Likewise.
14284         * config/netware.h: Likewise.
14285         * config/psos.h: Likewise.
14286         * config/alpha/alpha-interix.h: Likewise.
14287         * config/alpha/elf.h: Likewise.
14288         * config/arc/arc.h: Likewise.
14289         * config/arm/aof.h: Likewise.
14290         * config/arm/coff.h: Likewise.
14291         * config/arm/elf.h: Likewise.
14292         * config/c4x/c4x.h: Likewise.
14293         * config/h8300/h8300.h: Likewise.
14294         * config/i386/cygwin.h: Likewise.
14295         * config/i386/djgpp.h: Likewise.
14296         * config/i386/i386-coff.h: Likewise.
14297         * config/i386/i386-interix.h: Likewise.
14298         * config/i386/sco5.h: Likewise.
14299         * config/i386/vsta.h: Likewise.
14300         * config/i386/win32.h: Likewise.
14301         * config/i960/i960-coff.h: Likewise.
14302         * config/ia64/sysv4.h: Likewise.
14303         * config/m68hc11/m68hc11.h: Likewise.
14304         * config/m68k/coff.h: Likewise.
14305         * config/m68k/mot3300.h: Likewise.
14306         * config/m88k/m88k.h: Likewise.
14307         * config/mcore/mcore-pe.h: Likewise.
14308         * config/mcore/mcore.h: Likewise.
14309         * config/mips/elf.h: Likewise.
14310         * config/mips/elf64.h: Likewise.
14311         * config/mips/iris6.h: Likewise.
14312         * config/pa/pa64-hpux.h: Likewise.
14313         * config/rs6000/sysv4.h: Likewise.
14314         * config/sh/sh.h: Likewise.
14315         * config/sparc/litecoff.h: Likewise.
14316
14317         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
14318         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
14319         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14320         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14321         (ASM_OUTPUT_DESTRUCTOR): Remove.
14322         * config/a29k/a29k.c: Move include of tree.h.
14323         * config/a29k/udi.h: Delete file.
14324         * config/alpha/alpha.c (vms_asm_out_constructor): New.
14325         (vms_asm_out_destructor): New.
14326         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
14327         (EXTRA_SECTION_FUNCTIONS): Likewise.
14328         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14329         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14330         * config/c4x/c4x.c: Move include of tree.h.
14331         * config/clipper/clipper.c (clix_asm_out_constructor): New.
14332         (clix_asm_out_destructor): New.
14333         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14334         (ASM_OUTPUT_DESTRUCTOR): Remove.
14335         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14336         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14337         (TARGET_ASM_CONSTRUCTOR): New.
14338         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
14339         (sco_asm_out_constructor): New.
14340         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
14341         * config/i386/svr3gas.h: Remove stack grows up code.
14342         Remove code duplicated from i386/sysv3.h.
14343         (TARGET_ASM_CONSTRUCTOR): New.
14344         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
14345         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
14346         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14347         (TARGET_ASM_CONSTRUCTOR): New.
14348         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
14349         (m68hc11_asm_out_destructor): New.
14350         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
14351         (TARGET_ASM_DESTRUCTOR): New.
14352         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
14353         * config/m68k/dpx2.h: Properly undef all the bits inherited from
14354         config/svr3.h pertaining to section manipulation.
14355         * config/m68k/dpx2g.h: Remove #if 0 code.
14356         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
14357         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
14358         (ASM_OUTPUT_CONSTRUCTOR): Remove.
14359         (TARGET_ASM_CONSTRUCTOR): New.
14360         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
14361         (m88k_svr3_asm_out_constructor): New.
14362         (m88k_svr3_asm_out_destructor): New.
14363         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14364         (ASM_OUTPUT_DESTRUCTOR): Remove.
14365         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14366         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
14367         * config/rs6000/aix.h: Likewise.
14368         * config/mips/rtems64.h: Don't undef removed constructor related bits.
14369         * config/mips/vxworks.h: Likewise.
14370         * config/rs6000/lynx.h: Likewise.
14371         * config/sh/elf.h: Likewise.
14372         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
14373         (DTORS_SECTION_ASM_OP): New.
14374         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14375         (ASM_OUTPUT_DESTRUCTOR): Remove.
14376         * config/sparc/sol2-sld-64.h: Likewise.
14377         * config/vax/vax.c (vms_asm_out_constructor): New.
14378         (vms_asm_out_destructor): New.
14379         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
14380         (ASM_OUTPUT_DESTRUCTOR): Remove.
14381         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
14382
14383         * doc/tm.texi (@node Initialization): Update.
14384
14385 2001-08-09  Richard Henderson  <rth@redhat.com>
14386
14387         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
14388         (__do_global_dtors_aux): Use gp-relative static data to avoid
14389         one dynamic relocation.
14390         (__do_frame_setup): Register Java classes.
14391         * config/alpha/crtend.asm (__JCR_END__): New.
14392
14393 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
14394
14395         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
14396         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
14397         (GEN, STAGESTUFF): Add new files.
14398         (insn-constants.h, s-constants, tm-preds.h, s-preds,
14399         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
14400         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
14401         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
14402         as well as insn-codes.h and insn-flags.h in config.h; and no
14403         extra headers in tconfig.h and hconfig.h.
14404
14405         * gencodes.c: Eliminate code to generate predicate declarations
14406         or #defines for md-file constants.
14407         * genconstants.c, genpreds.c: New files.
14408
14409         * i386.md: Re-order guard expressions such that TARGET_64BIT
14410         comes first, when this permits better optimization.  Add
14411         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
14412         why this is desirable.
14413
14414 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
14415
14416         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
14417         (find_fde_for_dso): Remove.
14418         (_Unwind_IteratePhdrCallback): New.
14419         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
14420         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
14421
14422 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14423
14424         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
14425         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
14426
14427 2001-08-09  Graham Stott  <grahams@redhat.com>
14428
14429         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
14430         (vis_no_unit): Use it.
14431         (visualize_no_unit): Add the insn only if room exists.
14432
14433 2001-08-09  Graham Stott  <grahams@redhat.com>
14434
14435         * predict.c (estimate_probability): Replace magic numbers with
14436         appropriate enumeration.
14437
14438 2001-08-09  Graham Stott  <grahams@redhat.com>
14439
14440         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
14441         parameter.
14442         (EXTRACT_FLAGS): Likewise.
14443
14444 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
14445
14446         * config/mips/mips.c    (mips_legitimate_address_p): Check for
14447         CONST_INT in last patch.
14448
14449 2001-08-08  Anthony Green  <green@redhat.com>
14450
14451         * java/class.c (emit_register_classes): Use assemble_jcr if
14452         possible.  Keep the original mechanism as a fallback.
14453         * defaults.h (JCR_SECTION_NAME): Define if we have named section
14454         and weak symbol support.
14455         * crtstuff.c (__JCR_LIST__): Define.
14456         (__JCR_END__): Define.
14457         (_Jv_RegiserClasses): Define weak symbol if possible.
14458         (__do_global_ctors_aux): Register classes for ELF targets with
14459         weak symbol support.
14460
14461 2001-08-08  Kazu Hirata  <kazu@hxi.com>
14462
14463         * dbxout.c: Fix comment formatting.
14464         * dependence.c: Likewise.
14465         * df.c: Likewise.
14466         * diagnostic.c: Likewise.
14467         * dominance.c: Likewise.
14468         * doprint.c: Likewise.
14469         * dwarf2out.c: Likewise.
14470         * dwarfout.c: Likewise.
14471         * emit-rtl.c: Likewise.
14472         * except.c: Likewise.
14473         * explow.c: Likewise.
14474         * expmed.c: Likewise.
14475         * expr.c: Likewise.
14476         * flow.c: Likewise.
14477         * fold-const.c: Likewise.
14478         * function.c: Likewise.
14479
14480 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14481
14482         * global.c (retry_global_alloc): Avoid shadowing allocno.
14483
14484 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
14485
14486         * except.c (remove_fixup_regions): Fix typo.
14487
14488 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
14489
14490         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
14491         unsigned HOST_WIDE_INT to avoid warning.
14492         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
14493         * flow.c (set_block_for_new_insns): Likewise.
14494
14495 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
14496
14497         * sibcall.c (return_value_pseudo): New static variable.
14498         (skip_copy_to_return_value): Handle return_value_pseudo.
14499         (call_ends_block_p): Ensure that return_value_pseudo is set.
14500         (optimize_sibling_and_tail_recursive_call): Discover the
14501         load of pseudo return value in alternate exit block.
14502
14503 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
14504
14505         * calls.c (ECF_ALWAYS_RETURN): New constant.
14506         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
14507         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
14508         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
14509         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
14510         * rtl.c (reg_note_name): New name.
14511         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
14512
14513 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
14514
14515         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
14516
14517 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
14518
14519         * alias.c (get_alias_set): Return a previously calculated
14520         alias set for a VAR_DECL.
14521         * function.c (gen_mem_addressof): Calculate the alias set before
14522         touching the RTL.
14523
14524 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
14525
14526         * predict.def: Set hitrates according our experimental run.
14527
14528 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
14529
14530         * i386.h (HARD_REGNO_RENAME_OK): New macro.
14531
14532 2001-08-08  H.J. Lu <hjl@gnu.org>
14533
14534         * config/mips/mips.c (mips_unique_section): New. Copied from
14535         config/mips/elf.h.
14536
14537         * config/mips/mips-protos.h (mips_unique_section): New
14538         prototype.
14539
14540         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
14541
14542         * config/mips/little.h: New. Generic little endian mips
14543         targets. Only mips*-*-linux* is converted to use it so far.
14544
14545         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
14546         (WCHAR_TYPE): Defined
14547         (WCHAR_TYPE_SIZE): Likewise.
14548         (INIT_SUBTARGET_OPTABS): Likewise.
14549         (BSS_SECTION_ASM_OP): Likewise.
14550         (SBSS_SECTION_ASM_OP): Likewise.
14551         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14552         (ASM_DECLARE_OBJECT_NAME): Likewise.
14553         (UNIQUE_SECTION): Likewise.
14554         (EXTRA_SECTIONS): Likewise.
14555         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
14556         (ASM_OUTPUT_DESTRUCTOR): Likewise.
14557         (ASM_OUTPUT_DEF): Likewise.
14558         (HANDLE_SYSV_PRAGMA): Removed.
14559         (NO_IMPLICIT_EXTERN_C): Likewise.
14560         (TARGET_MEM_FUNCTIONS): Likewise.
14561         (STARTFILE_SPEC): Likewise.
14562         (ENDFILE_SPEC): Likewise.
14563         (LIB_SPEC): Likewise.
14564         (INVOKE__main): Likewise.
14565         (CTOR_LIST_BEGIN): Likewise.
14566         (CTOR_LIST_END): Likewise.
14567         (DTOR_LIST_BEGIN): Likewise.
14568         (DTOR_LIST_END): Likewise.
14569         (SET_ASM_OP): Likewise.
14570         (ASM_OUTPUT_SOURCE_LINE): Likewise.
14571         (ASM_OUTPUT_DEF): Likewise.
14572         (ASM_OUTPUT_IDENT): Likewise.
14573
14574         * config/mips/mips.h (ASM_SPEC): Undefine before define.
14575         (CPLUSPLUS_CPP_SPEC): Likewise.
14576         (ASM_APP_ON) Redefine only if not defined.
14577         (ASM_APP_OFF): Likewise.
14578         (ASM_OUTPUT_SOURCE_LINE): Likewise.
14579         (ASM_OUTPUT_IDENT): Likewise.
14580
14581         * config.gcc: Update tm_file for Linux/mips.
14582
14583 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
14584
14585         * cselib.c (cselib_record_sets): If insn is predicated, turn
14586         sources into IF_THEN_ELSEs.
14587
14588         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
14589         Turn into define_insn_and_split.
14590
14591         * sched-deps.c: Include "cselib.h".
14592         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
14593         Use cselib to turn memory addresses into VALUEs.
14594         (sched_analyze): Call cselib_init/cselib_finish if necessary.
14595         * sched-int.h (struct sched_info): New member USE_CSELIB.
14596         * sched-ebb.c (ebb_sched_info): Initialize it.
14597         * sched-rgn.c (rgn_sched_info): Likewise.
14598         * Makefile.in (sched-deps.o): Update dependencies.
14599
14600         * cselib.h (cselib_subst_to_values): Declare.
14601         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
14602         that have no value and autoincs to be handled by generating a new
14603         dummy value.
14604
14605 2001-08-08  Graham Stott  <grahams@redhat.com>
14606
14607         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
14608         within fixed length SEQUENCE.
14609
14610 2001-08-08  Graham Stott  <grahams@redhat.com>
14611
14612         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
14613         (diagnostic_prefixing_rule): Likewise.
14614         (diagnostic_line_cutoff): Likewise.
14615         (diagnostic_kind_count): Likewise.
14616
14617 2001-08-08  Graham Stott  <grahams@redhat.com>
14618
14619         * alias.c (find_base_decl): Delete redundent assignment.
14620
14621 2001-08-08  Graham Stott  <grahams@redhat.com>
14622
14623         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
14624         (abs): Uppercase and paranthesize macro parameter.
14625         (MEM_DEPENDENCY): Add whitespace.
14626
14627 2001-08-08  Graham Stott  <grahams@redhat.com>
14628
14629         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
14630         failure check for CONST_INT
14631
14632 2001-08-08  Graham Stott  <grahams@redhat.com>
14633
14634         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
14635         (libcall_dead_p): Likewise.
14636
14637         (mark_used_regs): Constify fmt.
14638         (find_use_as_address): Likewise.
14639
14640 2001-08-08  Graham Stott  <grahams@redhat.com>
14641
14642         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
14643          parameter.
14644
14645 2001-08-08  Graham Stott  <grahams@redhat.com>
14646
14647         * combine.c (combine_simplify_rtx): Update comment and
14648         remove erroneous test.
14649
14650 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14651
14652         * cppinit.c (cpp_finish): Pop the final buffer without comment.
14653         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
14654         take care to avoid multiple no-newline at EOF warnings in that
14655         case.
14656
14657 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
14658
14659         * calls.c (expand_call): Do not emit INSN_SETJMP note.
14660         (emit_library_call_value_1): Likewise.
14661         (emit_call_1): Emit REG_SETJMP note.
14662         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
14663         of INSN_SETJMP
14664         * cselib.c (cselib_process_insn): Likewise.
14665         * flow.c (propagate_block): Likewise.
14666         * loop.c (find_and_verify_loops): Likewise.
14667         * reload.c (find_equiv_regs): Likewise.
14668         * reload1.c (reload): Likewise.
14669         * resource.c (mark_referenced_resources,
14670         mark_set_resources): Likewise.
14671         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
14672         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
14673         * haifa-sched.c (unlink_other_notes): Likewise.
14674         (reemit_notes): Likewise.
14675         * sched-ebb.c (sched_ebb): Likewise.
14676         * sched-rgc.c (sched_region): Likewise.
14677         * rtl.c (note_insn_name): Likewise.
14678         (reg_note_name): Add REG_SETJMP
14679         * rtl.h (reg_note): Add REG_SETJMP.
14680         (insn_note): Remove NOTE_INSN_SETJMP.
14681
14682         * profile.c (branch_prob): Add fake edges for setjmp.
14683
14684 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
14685
14686         * config.gcc: Quote target_cpu_default2 correctly for
14687         powerpc*-*-* targets.
14688
14689 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14690
14691         * cpplib.h, line-map.h: Update comments.
14692         * cppmain.c (printer_init): Move inline.
14693         (maybe_print_line, print_line): Take a map pointer.
14694         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
14695         (cb_file_change): Don't use prior value of print.map.
14696
14697 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
14698
14699         * doc/install.texi: Document fine-grained multilib configuration.
14700
14701 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
14702
14703         * rtlanal.c (find_first_parameter_load): Call note_stores
14704         only on the instructions.
14705
14706 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14707
14708         * alias.c (nonlocal_mentioned_p):
14709         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
14710         * calls.c (emit_call_1): Likewise.
14711         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
14712         * cselib.c (cselib_process_insn): Likewise.
14713         * df.c (df_insns_modify): Likewise.
14714         * flow.c (need_fake_edge_p): Likewise.
14715         (propagate_one_insn): Likewise.
14716         * haifa-sched.c (reemit_notes): Likewise.
14717         * integrate.c (copy_insn_list): Likewise.
14718         * jump.c (delete_prior_computation): Likewise.
14719         * local-alloc.c (validate_equiv_mem): Likewise.
14720         * loop.c (scan_loop): Likewise.
14721         * predict.c (estimate_probability): Likewise.
14722         * reload.c (reload): Likewise.
14723         * sched-deps (sched_analyze): Likewise.
14724         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
14725         * gcse.c (compute_hash_table): Likewise.
14726         (mark_call): Likewise.
14727         (store_killed_in_insn): Likewise.
14728
14729 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
14730
14731         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
14732
14733 2001-08-06  Richard Henderson  <rth@redhat.com>
14734
14735         * varasm.c (assemble_gc_entry): Remove.
14736         * output.h: Likewise.
14737
14738 2001-08-06  Richard Henderson  <rth@redhat.com>
14739
14740         * varasm.c (assemble_constructor): Take a symbol_ref and a
14741         priority instead of a bare string.  Move priority handling
14742         here from cp/decl2.c.
14743         * output.h: Update decls.
14744
14745         * c-decl.c (c_expand_body): Update calls to assemble_constructor
14746         and assemble_destructor.
14747         * profile.c (output_func_start_profiler): Likewise.
14748         * objc/objc-act.c (finish_objc): Likewise.
14749         (build_module_descriptor): Return the symbol not the symbol name.
14750
14751 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
14752
14753         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
14754         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
14755         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
14756         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
14757         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
14758         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
14759
14760 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14761
14762         * cpperror.c (print_containing_files): Moved to line-map.c.
14763         (print_location): line-map.c handles re-listing or otherwise.
14764         * cpphash.h (struct lexer_state): Remove next_bol.
14765         (struct cpp_buffer): Remove include_stack_listed.
14766         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
14767         Remove faked buffer handling.
14768         (_cpp_do_file_change): Tweak.
14769         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
14770         * cppmain.c (struct printer): Remove filename.
14771         (print_line, cb_file_change): Update accordingly.
14772         * line-map.c: Include intl.h.
14773         (init_line_maps): Initialize last_listed.
14774         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
14775         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
14776         (print_containing_files): New.
14777         * line-map.h (struct line_maps): New member last_listed.
14778         (print_containing_files, INCLUDED_FROM): New.
14779         * Makefile.in: Update.
14780         * po/POTFILES.in: Add line-map.c.
14781
14782 2001-08-06  Richard Henderson  <rth@redhat.com>
14783
14784         * except.c (convert_from_eh_region_ranges_1): Never mark
14785         USE or CLOBBER insns as throwing.
14786
14787         * expr.c (store_constructor): Don't clobber memory targets.
14788
14789 2001-08-06  Andreas Jaeger  <aj@suse.de>
14790
14791         * profile.c (branch_prob): Remove unused variable insn.
14792
14793         * Makefile.in (local-alloc.o): Add dependency on except.h.
14794
14795         * local-alloc.c: Include except.h for can_throw_internal prototype.
14796
14797 2001-08-06  Richard Henderson  <rth@redhat.com>
14798
14799         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
14800         * function.c (expand_main_function): Implement it.
14801         * doc/tm.texi: Document it.
14802
14803 2001-08-06  Stan Shebs  <shebs@apple.com>
14804
14805         * doc/install.texi: Document powerpc-*-darwin* details.
14806
14807 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
14808
14809         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
14810         (ASM_CPU_SPEC): Move back to rs6000.h
14811         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
14812
14813         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
14814
14815         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
14816         readded.
14817
14818         * config/rs6000/linux64.h: Ditto.
14819
14820         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
14821         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
14822         nothing.
14823
14824         Remove accidently readded definitions of FUNCTION_PROLOGUE,
14825         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
14826
14827         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
14828         to rs6000.h
14829
14830 2001-08-05  Richard Henderson  <rth@redhat.com>
14831
14832         * local-alloc.c (update_equiv_regs): Do not move insns that
14833         can throw.
14834
14835 2001-08-05  Jan Hubicka  <jh@suse.cz>
14836
14837         * Makefile.in (reload1.o): Add dedendancy on except.h
14838         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
14839         prototypes.
14840         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
14841         indicating wehther edges has been cleaned up.
14842         * reload1.c: Inlucde except.h
14843         (fixup_abnormal_edges): Accept deleted insns.
14844         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
14845         after combine.
14846
14847 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14848
14849         * cpplib.c (do_line): Correct line number after pop_buffer.
14850
14851 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14852
14853         PR preprocessor/3824
14854         * line-map.c: Update comments.
14855         * line-map.h: Update comments.
14856         * tradcif.y: Don't consider large numbers unsigned.
14857
14858 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14859
14860         PR preprocessor/3081
14861         * c-lex.c (map): New.
14862         (cb_file_change): Update map and use it.
14863         (cb_def_pragma, cb_define, cb_undef): Use map and line.
14864         (c_lex): Update to use map.
14865         * cpperror.c (print_location): Move to using logical line numbers.
14866         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
14867         (cpp_make_system_header): Similarly.
14868         (_cpp_execute_include): Stop line numbering hacks.  Store the
14869         line we will return to.
14870         * cpphash.h (CPP_BUF_LINE): Remove.
14871         (struct cpp_buffer): Remove lineno and pseudo_newlines.
14872         Add map and return_to_line.
14873         (_cpp_do_file_change): Update.
14874         * cppinit.c (cpp_start_read): Update line kludge.
14875         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
14876         (trigraph_ok): Use logical line numbers for diagnostics.
14877         (skip_block_comment): Likewise.
14878         (skip_whitespace): Likewise.
14879         (skip_line_comment): Use pfile->line instead.
14880         (_cpp_lex_token): Update to use logical line numbering exclusively.
14881         Handle BOL locally.  Accept new lines in directives, but keep
14882         pfile->line decremented.  Diagnostics use logical lines.  Update
14883         directive handling.
14884         * cpplib.c (SEEN_EOL): New.
14885         (skip_rest_of_line, check_eol): Use it.
14886         (end_directive): Increase line number when accepting the newline
14887         at the end of a directive.
14888         (run_directive): Simplify.
14889         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
14890         (_cpp_do_file_change): Update to take buffer line number as an
14891         argument, and store the current map in the cpp_reader.  Remove
14892         line number kludges.
14893         (_cpp_do__Pragma): Restore output position after a _Pragma.
14894         (cpp_push_buffer): Don't set output line or lineno.
14895         (_cpp_pop_buffer): Transfer more info from a faked buffer.
14896         Remove line kludge.  Set output_line.
14897         * cppmacro.c (builtin_macro): Update handling of __LINE__.
14898         (parse_arg): Use logical lines.
14899         (save_lookahead_token): Save EOFs too now.
14900         * cppmain.c (struct printer): Fix comments.
14901         (printer_init): Simplify, let caller do errors.
14902         (scan_translation_unit, check_multiline_token, dump_macro): Update.
14903         (maybe_print_line): Simplify.
14904         (print_line): Don't print a linemarker if -P.
14905         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
14906         (cb_file_change): Simplify.
14907         * line-map.h (LAST_SOURCE_LINE): Fix.
14908         (CURRENT_LINE_MAP): New.
14909
14910 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
14911
14912         * doloop.c (doloop_modify_runtime): Properly compute number of
14913         iterations if loop was unrolled.
14914
14915         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
14916         if their CSELIB_VAL_PTRs are.
14917
14918         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
14919         (setup_spill_pointers): Initialize it.
14920         (spill_restore_mem): Set it.
14921         (do_spill, do_restore): Use it to add REG_INC note.
14922         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
14923
14924         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
14925         asms if other insns are available.
14926
14927         * config/ia64/ia64.c (condop_operator): New predicate.
14928         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
14929         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
14930         patterns.
14931
14932         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
14933         temporary register than directly using a MEM.
14934
14935 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
14936
14937         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
14938         parameter in last change.
14939
14940 2001-08-04  Zack Weinberg  <zackw@panix.com>
14941
14942         * sparc.md: Don't use #if inside C test expression.
14943
14944 2001-08-04  Richard Henderson  <rth@redhat.com>
14945
14946         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
14947
14948 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14949
14950         * cpphash.h (struct cpp_reader): New member directive_line.
14951         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
14952         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
14953         do_pragma): Pass line to callbacks.
14954         (start_directive): Record line of directive.
14955         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
14956         cb_include): Similarly.
14957         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
14958         Similarly.
14959
14960 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
14961
14962         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
14963         comment.
14964
14965 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14966
14967         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
14968
14969         * reload1.c (fixup_abnormal_edges): New static function.
14970         (reload): Use it.
14971
14972         * flow.c (need_fake_edge_p): New function.
14973         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
14974         avoid call insn to be very last insn in the insn stream.
14975
14976         * profile.c (branch_prob): Call flow_call_edges_add instead of
14977         doing that by hand; cleanup cfg to re-merge basic blocks once
14978         we are done.
14979
14980 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14981
14982         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
14983         are also on line-map.h.
14984         * cppfiles.c (stack_include_file): Update.
14985         * cpphash.h (struct cpp_buffer): New member return_at_eof.
14986         (_cpp_pop_buffer): New.
14987         * cppinit.c (cpp_destroy, cpp_finish): Update.
14988         (do_includes): Mark each buffer to return at EOF.
14989         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
14990         return as requested.
14991         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
14992         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
14993         * cpplib.h (cpp_pop_buffer): Remove.
14994         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
14995         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
14996         buffers.
14997         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
14998         to pop buffers.
14999         (do_preprocessing): Update.
15000         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
15001         * c-parse.in (_yylex): Similarly.
15002         * scan-decls.c (scan_decls): Similarly.
15003         * line-map.h: Update comments.
15004
15005         * objc/Make-lang.in (objc-act.o): Update dependencies.
15006
15007 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15008
15009         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
15010         and soft register for operand 0.
15011         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
15012
15013 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15014
15015         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
15016         register for operand 0.
15017         ("bitcmpqi_z_used"): Allow memory for operand 0.
15018         (split "bitcmpqi"): New split to handle address reg as operand 1.
15019
15020 2001-08-04  Andreas Jaeger  <aj@suse.de>
15021
15022         * gcse.c: Revert Daniel's last patch.
15023
15024 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
15025
15026         * sparc-protos.h: Add prototypes for fp_zero_operand and
15027         reg_or_0_operand.
15028         * sh-protos.h: Add prototype for fpul_operand.
15029
15030 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
15031
15032         * doc/extend.texi (Other Builtins): Fix typo in last change.
15033
15034 2001-08-03  Richard Henderson  <rth@redhat.com>
15035
15036         * target.h (gcc_target): Add asm_out.named_section,
15037         section_type_flags, have_named_sections.
15038         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
15039         (TARGET_HAVE_NAMED_SECTIONS): New.
15040         (TARGET_SECTION_TYPE_FLAGS): New.
15041
15042         * Makefile.in (toplev.o): Depend on TARGET_H.
15043         (varasm.o, dbxout.o): Likewise.
15044         * c-common.c (decl_attributes): Check targetm.have_named_sections
15045         instead of ifdef ASM_OUTPUT_SECTION_NAME.
15046         * dbxout.c (dbxout_function_decl): Likewise.
15047         (dbxout_function_end): Likewise.
15048         * toplev.c (compile_file): Likewise.
15049         * varasm.c (exception_section): Likewise.
15050         * cp/decl2.c (finish_objects): Likewise.
15051
15052         * defaults.h (EH_FRAME_SECTION): Remove.
15053         (EH_FRAME_SECTION_ASM_OP): Remove.
15054         (EH_FRAME_SECTION_NAME): New.
15055         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
15056         (UNIQUE_SECTION_P): Remove.
15057         * dwarf2out.c (SECTION_FORMAT): Remove.
15058         (ASM_OUTPUT_SECTION): Remove.
15059         (output_call_frame_info): Use named_section_flags.
15060         (output_comp_unit, dwarf2out_start_source_file): Likewise.
15061         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
15062         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
15063         * varasm.c (in_eh_frame, eh_frame_section): Remove.
15064         (named_section_flags): New.
15065         (named_section): Use it and targetm.section_type_flags.
15066         (resolve_unique_section): New.
15067         (assemble_start_function): Use it.
15068         (asm_emit_uninitialised, assemble_variable): Likewise.
15069         (default_section_type_flags): New.
15070         (default_no_named_section, default_elf_asm_named_section): New.
15071         (default_coff_asm_named_section, default_pe_asm_named_section): New.
15072         * output.h: Update varasm.c decls.
15073         (SECTION_*): New flags.
15074
15075         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
15076         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
15077
15078         * config/elfos.h (UNIQUE_SECTION_P): Remove.
15079         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
15080         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
15081         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
15082         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
15083         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
15084         * config/mips/elf.h, config/mips/elf64.h: Likewise.
15085         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
15086         * config/pa/pa64-hpux.h,
15087
15088         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
15089         (TARGET_ASM_NAMED_SECTION): New.
15090         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
15091         * config/alpha/vms.h, config/arm/coff.h: Likewise.
15092         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
15093         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
15094         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
15095         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
15096         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
15097         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
15098         * config/i386/sco5.h, config/i386/win32.h: Likewise.
15099         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
15100         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
15101         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
15102         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
15103         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
15104         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
15105         * config/sparc/sysv4.h: Likewise.
15106
15107         * config/nextstep.h: Error until named sections implemented.
15108
15109         * config/a29k/a29k.c (a29k_asm_named_section): New.
15110         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
15111         (vms_section_type_flags, vms_asm_named_section): New.
15112         * config/arm/arm.c (arm_elf_asm_named_section): New.
15113         * config/avr/avr.c (asm_output_section_name): Remove.
15114         * config/avr/avr-protos.h: Update.
15115         * config/c4x/c4x.c (c4x_asm_named_section): New.
15116         * config/h8300/h8300.c (h8300_asm_named_section): New.
15117         * config/i386/i386.c (sco_asm_named_section): New.
15118         * config/i386/winnt.c (SECTION_PE_SHARED): New.
15119         (i386_pe_section_type_flags): New.
15120         (i386_pe_asm_named_section): New.
15121         * config/i386/i386-protos.h: Update.
15122         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
15123         * config/mcore/mcore.c (mcore_asm_named_section): New.
15124         * config/mips/mips.c (iris6_asm_named_section): New.
15125         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
15126         instead of UNIQUE_SECTION_P.
15127         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
15128         (xcoff_asm_named_section): New.
15129         * config/sh/sh.c (sh_asm_named_section): New.
15130         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
15131
15132         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
15133         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
15134         (EH_FRAME_SECTION_NAME): New.
15135         (EXCEPTION_SECTION): New.
15136         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
15137         (DEBUG_*_SECTION): Remove.
15138         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
15139         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
15140         (EH_FRAME_SECTION_ASM_OP): Remove.
15141
15142         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
15143         (ASM_OUTPUT_SECTION_NAME): Remove.
15144         (TARGET_ASM_NAMED_SECTION): New.
15145         (TARGET_HAVE_NAMED_SECTIONS): New.
15146         (TARGET_SECTION_TYPE_FLAGS): New.
15147         (EH_FRAME_SECTION_ASM_OP): Remove.
15148         (EH_FRAME_SECTION_NAME): New.
15149
15150 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
15151
15152         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
15153         for complex expressions when cfun == 0.
15154         * doc/extend.texi: Document that __builtin_constant_p can be
15155         used in data initializers as well as functions.
15156
15157 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
15158
15159         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
15160         variable I locally, instead of expecting a declaration in the
15161         calling context.
15162
15163 2001-08-03  Richard Henderson  <rth@redhat.com>
15164
15165         * except.c (collect_one_action_chain): Add an explicit cleanup
15166         action if regions surrounding a catch were encoded entirely
15167         within the call-site entry.
15168
15169 2001-08-03  Richard Henderson  <rth@redhat.com>
15170
15171         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
15172         don't take REGNO of a non-register.
15173
15174 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15175
15176         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
15177         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
15178         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
15179         (__gthread_mutex_init_function): New function for mutex initialization.
15180
15181 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15182
15183         * Makefile.in: Revert screwed up commit.
15184
15185 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15186
15187         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
15188         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
15189         merged by linker script to get a final _exit().
15190         (__do_global_dtors): New for destructor handling in specific exit
15191         section.
15192         (__do_global_ctors): New for constructors in specific install section.
15193         (__map_data_section): Map data sections before running constructors.
15194         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
15195         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
15196         (DTORS_SECTION_ASM_OP): Likewise.
15197         (CTORS_SECTION_FUNCTION): Define to force a reference to
15198         __do_global_ctors.
15199         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
15200
15201 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15202
15203         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
15204
15205         * Makefile.in: Add df.h to gcse.c dependencies.
15206
15207 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15208
15209         * varasm.c (output_constant_def_contents): Use for the length of a
15210         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
15211         depending on which is larger.
15212
15213 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
15214
15215         * gcse.c: Include df.h for use as a dataflow analyzer.
15216         Remove regvec.
15217         Declaration of reg_set_info: gone.
15218         New df_analyzer variable used by store motion.
15219         (reg_set_info): Deleted.
15220         (mark_mem_regs): New function, analyze regs used by a mem.
15221         (store_ops_ok): Use dataflow analyzer results to determine if
15222         necessary regs are changed in the block.
15223         (find_moveable_store): Remove check for symbol ref, we can handle
15224         much more complex expressions now.
15225         (compute_store_table): Remove most of the code, it's unnecessary
15226         now that the dataflow analyzer records the info for us.
15227         (store_killed_after): Add parameter to say whether to do the
15228         store_ops_okay test, used to speed up testing when we already know
15229         the answer, and just want to know if the store itself was killed.
15230         (build_store_vector): Largely rewritten to calculate the various
15231         vectors properly, and somewhat optimized.
15232         (store_motion): Init the df_analyzer, get REG_DEF chains.
15233         Also handle trapping expressions (since mems almost always trap)
15234         (simple_mem): Redefine what a simple mem is.
15235
15236 2001-08-03  DJ Delorie  <dj@redhat.com>
15237
15238         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
15239         set from a constant part of the condition.
15240
15241 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
15242
15243         * mkdeps.c (deps_add_default_target): Make local variable
15244         ``start'' a const char pointer.
15245         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
15246
15247 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15248
15249         * doc/install.texi (Configuration): Fix markup.
15250         (Specific, i?86-*-udk): Likewise.
15251         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
15252         --with-gnu-ld.
15253         Document --enable-threads and --enable-libgcj status.
15254         (Specific, mips-sgi-irix*): Canonicalize triples.
15255         (Specific, mips-sgi-irix5): Warn about problems with this config.
15256         Mention required GNU as patch.
15257         Native assembler problems are fixed.
15258         (Specific, mips-sgi-irix6): Update O32 ABI support status.
15259         Document --enable-threads and --enable-libgcj status.
15260
15261 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15262
15263         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
15264         of mkinstalldirs.
15265
15266 2001-08-03  Richard Henderson  <rth@redhat.com>
15267
15268         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
15269         constant data.
15270
15271 2001-08-03  Richard Henderson  <rth@redhat.com>
15272
15273         * rtlanal.c (find_first_parameter_load): Stop if we
15274         reach a CODE_LABEL at BOUNDARY.
15275
15276 2001-08-03  Richard Henderson  <rth@redhat.com>
15277
15278         * config/alpha/alpha.md (force_movdi): New insn.
15279         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
15280         Tweek FRP marking of VMS prologue insns.
15281         * config/alpha/vms.h (EPILOGUE_USES): New.
15282
15283 2001-08-02  Richard Henderson  <rth@redhat.com>
15284
15285         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
15286
15287 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
15288
15289         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
15290         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
15291         config/convex/convex.h, config/d30v/d30v.c,
15292         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15293         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
15294         config/mips/mips.h, config/mn10200/mn10200.h,
15295         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
15296         config/v850/v850.h, config/vax/openbsd.h,
15297         config/vax/openbsd1.h, config/vax/ultrix.h,
15298         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
15299         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
15300         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
15301         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
15302         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
15303         in comments and documentation.
15304
15305 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15306
15307         * line-map.c: New.
15308         * line-map.h: New.
15309         * Makefile.in (line-map.o): New.
15310         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
15311         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
15312         * cpperror.c (print_containing_files): Similarly.
15313         (print_location): Update.  Don't output a space before _Pragma.
15314         * cppfiles.c (stack_include_file): Set to line 1 immediately.
15315         (stack_include_filee, cpp_make_system_header): Update.
15316         (_cpp_execute_include): Get logical line number right for calling
15317         as-yet-unterminated #include.
15318         * cpphash.h (struct cpp_reader): Add line_maps.
15319         (_cpp_do_file_change): Update.
15320         * cppinit.c (cpp_create_reader): Initialize line maps.
15321         (cpp_destroy): Destroy line maps.
15322         (cpp_start_read): Get logical line number right.
15323         * cpplex.c (parse_string): Only warn once for multi-line strings.
15324         Use boolean variable for null warning.
15325         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
15326         already.
15327         (do_include_common): End the directive early.
15328         (do_line): Don't warn about out-of-range lines in preprocessed
15329         source.  Update.  Remove unused variables.
15330         (_cpp_do_file_change): Update for new line mapping.
15331         (pragma_cb): New typedef.
15332         (cpp_register_pragma): Stop looking ahead before calling the
15333         handler.  Clean up.
15334         (do_pragma_system_header): End directive early.
15335         (cpp_get_line_maps): New.
15336         (cpp_pop_buffer): Fudge logical line.  Update.
15337         * cpplib.h: Include line-map.h
15338         (enum cpp_fc_reason): Remove.
15339         (struct cpp_file_change): Update.
15340         (cpp_get_line_maps): New.
15341         * cppmain.c (struct_printer): New member map.
15342         (cb_file_change): Update for new mappings.
15343         * fix-header.c (cb_file_change): Similarly.
15344
15345 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15346
15347         * Makefile.in (libgcc.mk): Define mkinstalldirs.
15348         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
15349
15350 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
15351
15352         * config/vax/vax.c: include expr.h.
15353
15354 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
15355
15356         * Makefile.in ($(srcdir)/configure): Only rebuild in
15357         maintainer mode.
15358         ($(srcdir)/config.in): Only define in maintainer mode.
15359         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
15360
15361 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
15362
15363         * doc/install.texi (Install GCC: Binaries): Update Bull info.
15364
15365 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15366
15367         * gcc.c (set_collect_gcc_options): New function, split out from
15368         main.
15369         Ignore elided switches.
15370         (do_spec_1): Invoke before executing command.
15371         (set_input): Export.
15372         Move declaration ...
15373         * gcc.h (set_input): ... here.
15374         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
15375         file.
15376
15377 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
15378
15379         Kill -fhonor-std.
15380         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
15381         interaction.
15382         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
15383
15384 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
15385
15386         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
15387         for the unnamed instructions it expands to.
15388
15389 2001-08-02  Richard Henderson  <rth@redhat.com>
15390
15391         * regclass.c (call_really_used_regs): Conditionally define.
15392         (init_reg_sets_1): Don't use it if not defined.
15393         (fix_register): Similarly, don't set it.
15394
15395 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15396
15397         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
15398         Correct comment that had been missed in the previous change.
15399
15400 2001-08-01  Stan Shebs  <shebs@apple.com>
15401
15402         * config/darwin.c (machopic_stub_name): Try matching by name.
15403         (update_stubs): New function.
15404         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
15405         unconditionally.
15406
15407 2001-08-01  Richard Henderson  <rth@redhat.com>
15408
15409         * except.c (output_function_exception_table): Use assemble_align.
15410         * varasm.c (assemble_eh_label): Remove.
15411         (assemble_eh_align, assemble_eh_integer): Remove.
15412
15413 2001-08-01  Robert Lipe  <robertl@caldera.com>
15414
15415         * dwarfout.c: Remove reference to README.DWARF.
15416
15417 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
15418
15419         * regclass.c (call_really_used_regs): New array for registers which
15420         are actually used by a call.
15421         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
15422         new array.
15423         (fix_register): Set call_really_used too.
15424         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
15425         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
15426
15427 2001-08-01  Richard Henderson  <rth@redhat.com>
15428
15429         * read-rtl.c (read_name): Consider \r whitespace.
15430
15431 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
15432
15433         * config.gcc: Recognize powerpc-*-netbsd*.
15434
15435         * doc/install.texi (Host/target specific installation notes for
15436         GCC): Mention powerpc-*-netbsd*.
15437
15438         * config/rs6000/netbsd.h: New file.
15439         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
15440         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
15441         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
15442         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
15443         (TARGET_VERSION): Redefine.
15444
15445         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
15446         mcall-netbsd as a match for mcall-sysv.
15447         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
15448         (ncrti.S, ncrtn.S): New targets.
15449         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
15450
15451         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
15452         "netbsd' as a V4 ABI.
15453         (ASM_SPEC): Check for -mcall-netbsd.
15454         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
15455         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
15456         (LIB_SPEC, ENDFILE_SPEC): Ditto.
15457         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
15458         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
15459         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
15460         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
15461
15462         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
15463         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
15464
15465 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
15466
15467         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
15468         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
15469         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
15470         including "unwind-pe.h".
15471
15472 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
15473
15474         * rs6000.md (define_splits): Kill unused constraints.
15475
15476 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
15477                               Jan Hubicka  <jh@suse.cz>
15478
15479         * function.c (thread_prologue_and_epilogue_insns): Kill code
15480         dealing with non-existent CFG.
15481
15482 2001-08-01  Kazu Hirata  <kazu@hxi.com>
15483
15484         * alias.c: Fix comment formatting.
15485         * bitmap.c: Likewise.
15486         * builtins.c: Likewise.
15487         * calls.c: Likewise.
15488         * c-common.c: Likewise.
15489         * c-decl.c: Likewise.
15490         * c-dump.c: Likewise.
15491         * c-lex.c: Likewise.
15492         * collect2.c: Likewise.
15493         * combine.c: Likewise.
15494         * conflict.c: Likewise.
15495         * cppfiles.c: Likewise.
15496         * cppinit.c: Likewise.
15497         * cpplex.c: Likewise.
15498         * cpplib.c: Likewise.
15499         * cppmacro.c: Likewise.
15500         * cppspec.c: Likewise.
15501         * c-pragma.c: Likewise.
15502         * crtstuff.c: Likewise.
15503         * cse.c: Likewise.
15504         * cselib.c: Likewise.
15505         * c-semantics.c: Likewise.
15506         * c-typeck.c: Likewise.
15507
15508 2001-08-01  H.J. Lu <hjl@gnu.org>
15509
15510         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
15511
15512 2001-08-01  H.J. Lu <hjl@gnu.org>
15513
15514         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
15515
15516 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
15517
15518         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
15519         contextualizing Objective-C class name lookup by the lexer.
15520         (typespec_reserved_nonattr): Disable ObjC class name lookup after
15521         seeing a TYPESPEC.
15522         (protocoldef): Add support for forward @protocol declarations.
15523         (yylexname): Suppress ObjC class name lookup in certain contexts;
15524         re-enable after lookup is complete.
15525         (_yylex): Re-enable ObjC class name lookup when certain
15526         punctuation marks are seen.
15527
15528         * objc/objc-act.c (check_protocol_recursively): New function used
15529         for finding circular dependencies in protocols.
15530         (objc_declare_protocols): New function for handling forward
15531         @protocol declarations.
15532         (receiver_is_class_object): Detect the case when 'self' is used
15533         inside of a class method.
15534         (build_message_expr): Issue a warning if class method is desired
15535         but instance method is found instead.
15536         (conforms_to_protocol): Streamline.
15537         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
15538         protocol Foo, even if 'Bar foo' does not.
15539         (check_protocols): Streamline.
15540         (start_protocol): Add checks for circular and duplicate protocol
15541         definitions.
15542         (encode_aggregate_within): For typedefs of structs, encode the
15543         underlying struct.
15544         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
15545         (objc_declare_protocols): New prototype.
15546
15547 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15548
15549         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
15550         * cpplex.c (handle_newline): Update prototype.  Maintain logical
15551         line number.
15552         (skip_escaped_newlines, skip_block_comment, parse_string):
15553         Update accordingly.
15554         (_cpp_lex_token): Update, and store token position within the token.
15555         * cpplib.h (struct cpp_token): Add line and column entries.
15556         * cppmacro.c (replace_args): Position stringified tokens correctly.
15557
15558 2001-08-01  Andreas Jaeger  <aj@suse.de>
15559
15560         * basic-block.h: Add prototype for last_loop_beg_note.
15561
15562 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
15563
15564         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
15565         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
15566         comment.
15567         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
15568         while handling WITH_CLEANUP_EXPR node. Use second operand calling
15569         expand_decl_cleanup.
15570         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
15571         the first RTX.
15572         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
15573         operand while calling simple_cst_equal.
15574         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
15575         operand is the cleanup expression, the third is the RTL_EXPR.
15576         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
15577
15578 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
15579
15580         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
15581
15582 2001-07-31  matthew green  <mrg@eterna.com.au>
15583
15584         * config.gcc (i386-*-netbsdelf): New description.
15585         * config/i386/netbsd-elf.h: New file.
15586
15587 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
15588
15589         * loop.c (check_dbra_loop): Use single_set to compute
15590         jump_label.
15591
15592 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
15593
15594         PowerPC reorg and support for powerpc64-*-linux*.
15595
15596         Also fixes emitting of constants on 32 bit and 64 bit
15597         platforms.
15598
15599         * config.gcc: powerpc64-*-linux* is a new target.
15600         Things that needed aix.h now also include xcoff.h
15601
15602         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
15603         xcoff.h.
15604         Move AIX specific stuff into aix.h.
15605         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
15606         with more than just XCOFF now.
15607         (SET_ASM_OP): Remove, now defined where needed.
15608         (FUNCTION_PROLOGUE): New macro definition.
15609         (FUNCTION_EPILOGUE): New macro definition.
15610         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
15611
15612         * config/rs6000/xcoff.h: New file.
15613
15614         * config/rs6000/linux64.h: New file.
15615
15616         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
15617
15618 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
15619
15620         * rs6000.c (print_operand_address): Handle ELF syntax.
15621         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
15622         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
15623         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
15624
15625 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
15626
15627         * rs6000.c (rs6000_override_options): Only disable
15628         flag_function_sections for XCOFF.
15629         (exact_log2_cint_operand): New predicate.
15630         (reg_or_{add,sub}_cint64_operand): New predicates.
15631         (add_operand): Compare CONST_INT with fewer function calls.
15632         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
15633         (print_operand, case 'p'): Ensure positive operand.
15634         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
15635         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
15636         (PREDICATE_CODES): Add new predicates.
15637         * rs6000.md (addsi3): Split 32-bit constants more correctly.
15638         (divsi3, modsi3): Ensure positive power-of-2.
15639         (adddi3): Use new predicate.  Split 32-bit constants more
15640         correctly.  Re-arrange splitter to handle any constant.
15641         (subdi3): Use new predicate.
15642         (divdi3, moddi3): Ensure positive power-of-2.
15643         (movdi): Use rs6000_emit_set_const.
15644         (load_toc_v4_pic_di): Delete.
15645
15646 2001-07-31  Graham Stott <grahams@redhat.com>
15647
15648         * function.c (pad_below): Revert 2001-07-26 patch.
15649
15650 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
15651
15652         * reg-stack (convert_regs_1): Fix best edge condition.
15653
15654 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
15655
15656         * jump.c (duplicate_loop_exit_test): Better test for jumps
15657         entering the loop; create loop pre_header.
15658
15659 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
15660
15661         * doc/install.texi: Add s390 and s390x as new targets.
15662         * doc/invoke.texi: Add documentation of S/390 and zSeries
15663         target options.
15664         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
15665
15666 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
15667
15668         * config/m68k/m68k.md: Replace all general_operand with
15669         nonimmediate_operand for all destinations.
15670         * config/m68k/m68k.c (not_sp_operand): Likewise.
15671
15672 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
15673
15674         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
15675
15676 2001-07-30  Richard Henderson  <rth@redhat.com>
15677
15678         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
15679         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
15680
15681 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
15682
15683         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
15684         Add missing doc strings
15685         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
15686         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
15687
15688 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
15689
15690         * i386.c (ix86_output_main_function_alignment_hack): New function.
15691         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
15692
15693         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
15694         edges by EDGE_DFS_BACK flag.
15695         (dump_edge_info): Add dfs_back flag.
15696         * basic-block.h (EDGE_DFS_BACK): New constant.
15697         (mark_dfs_back_edges): Declare.
15698         * alias.c (loop_p): Remove.
15699         (mark_constant_function): Use mark_dfs_back_edges.
15700
15701         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
15702         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
15703         (compensate_edge): Break out from ...
15704         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
15705         (convert_regs_2): Set block_done once block is really done;
15706         Do updating of the predecessors counts.
15707
15708         * toplev.c (rest_of_compilation): Recompute block_for_insn
15709         before post-reload cfg_cleanup.
15710         * function.c (thread_prologue_epilogue_insns):
15711         Call set_block_for_new_insns when emitting prologue directly.
15712
15713 2001-07-30  Andreas Jaeger  <aj@suse.de>
15714
15715         * jump.c: Add prototype for mark_modified_reg.
15716
15717         * cse.c (set_live_p): Add unused attribute.
15718
15719         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
15720         overflow.
15721         (scan_for_source_files): Use long for count to avoid overflow.
15722         (output_data): Likewise.
15723         (output_data): Don't use string concatatenation to silence gcc
15724         -traditional.
15725
15726         * predict.c: Fix typos and grammar.
15727
15728         * gcse.c (insert_insn_end_bb): Remove unused variables.
15729
15730 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
15731
15732         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
15733         (attempt_auto_inc): LIkewise.
15734         (mark_used_reg): Likewise.
15735         (try_pre_increment_1): Likewise.
15736         * regclass.c (regclass): Likewise.
15737         * global.c (allocno_compare): Update comment; change scaling factor.
15738         * local-alloc.c (QTY_CMP_PRI): Likewise.
15739         * regs.h (REG_FREQ_FROM_BB): New.
15740         (REG_FREQ_MAX): Likewise.
15741
15742 2001-07-30  H.J. Lu <hjl@gnu.org>
15743
15744         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
15745         -D_GNU_SOURCE.
15746
15747 2001-07-30  H.J. Lu  (hjl@gnu.org)
15748
15749         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
15750         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
15751         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
15752
15753 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
15754
15755         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
15756         as -mthumb-interwork when -mcpu=arm7 is specified.
15757
15758 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
15759
15760         * predict.def (noreturn, loop branch, loop exit): Mark as first
15761         match heuristics.
15762
15763 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
15764
15765         * combine.c (try_combine): Avoid barrier after noop jumps.
15766
15767 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15768
15769         * cpphash.h (struct cpp_reader): Remove import_warning.
15770         * cpplib.c (skip_rest_of_line): Don't bother turning off
15771         macro expansion.
15772         (parse_include): Move include handling to...
15773         (do_include_common): ... here.  Move import warning from...
15774         (do_import): ... here.
15775         (do_pragma_poison): Don't do a callback for poison identifiers.
15776         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
15777         * cppmain.c (setup_callbacks): Similarly.
15778
15779 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
15780
15781         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
15782         handle multiple sets.
15783         * except.c (sjlj_mark_call_sites): .... here.
15784         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
15785
15786 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
15787
15788         Suggested by Richard Henderson and Richard Kenner:
15789         * combine.c (recog_for_combine): Use the fake recog
15790         only if instruction does not match.
15791         * rtl.h (NOOP_MOVE_INSN_CODE): New.
15792         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
15793
15794         * combine.c (try_combine): Discover noop jump as direct jump.
15795
15796 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
15797
15798         * df.c (df_rd_global_compute): Add successors to worklist, not
15799         current item.
15800         (df_ru_global_compute): Ditto.
15801
15802 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
15803
15804         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
15805         increment REG_N_SETS.
15806
15807 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
15808
15809         * sbitmap.h: New prototype for sbitmap_a_xor_b.
15810
15811         * sbitmap.c (sbitmap_a_xor_b): New function.
15812         ifdef the basic block stuff on IN_GCC.
15813
15814 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15815
15816         * cppexp.c (parse_defined): Always record the macro name.
15817         (lex): Don't worry about identifiers, or special-case
15818         CPP_NOT here.
15819         (_cpp_parse_expr): Figure out at the end of the routine
15820         whether we saw a valid !defined() expression.
15821         * cppfiles.c (stack_include_file): Update for mi_valid.
15822         (_cpp_pop_file_buffer): Similarly.
15823         * cpplex.c (_cpp_lex_token): Similarly.
15824         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
15825         mi_if_not_defined, mi_lexed): Remove.
15826         (mi_valid): New.
15827         * cpplib.c (do_if): Simplify.
15828         (do_endif, push_conditional, _cpp_handle_directive): Update
15829         for renaming of mi_state to mi_valid.
15830 doc:
15831         * cpp.texi: Add index entries for digraphs, and add comment
15832         that C++ refers to them as alternative tokens.
15833
15834 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
15835
15836         * basic-block.h (CLEANUP_PRE_LOOP): New.
15837         * except.c (finish_eh_generation): Update call of cleanup_cfg.
15838         * sibcall.c (optimize_sibling_calls): Likewise.
15839         * toplev.c (rest_of_compilation): Likewise.
15840         * flow.c (try_forward_edges): Take argument MODE;
15841         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
15842         (try_optimize_cfg): Update call of try_forward_edges.
15843
15844 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
15845                                 Jan Hubicka  <jh@suse.cz>
15846
15847         * (validate_replace_rtx_1): Fix simplification of MINUS.
15848
15849 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
15850
15851         PR preprocessor/3669
15852         * cppinit.c (init_dependency_output): Turn off dump requests
15853         if sending dependencies to stdout.
15854
15855 2001-07-28  Richard Henderson  <rth@redhat.com>
15856
15857         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
15858         not optimizing.
15859
15860 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
15861
15862         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
15863
15864 2001-07-28  Kazu Hirata  <kazu@hxi.com>
15865
15866         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
15867         is VAR_DECL first to prevent an ICE.
15868
15869 2001-07-28  Richard Henderson  <rth@redhat.com>
15870
15871         * varasm.c (immed_real_const_1): Don't elide special cases for
15872         nested functions.
15873         (clear_const_double_mem): Clear const_tiny_rtx too.
15874
15875 2001-07-28  Richard Henderson  <rth@redhat.com>
15876
15877         * dwarf2out.c (dw_val_class_offset): New.
15878         (struct dw_ranges_struct, dw_ranges_ref): New.
15879         (ranges_table, ranges_table_allocated): New.
15880         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
15881         (add_AT_offset, add_ranges, output_ranges): New.
15882         (print_die, output_die): Handle dw_val_class_offset.
15883         (attr_checksum, size_of_die, value_format): Likewise.
15884         (gen_lexical_block_die): Handle non-contiguous blocks.
15885         (gen_block_die): Likewise.
15886         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
15887         if needed.  Dump the ranges table.
15888         * final.c (final_start_function): Remove unnecessary notes and
15889         rebuild the block tree before numbering the blocks.
15890         * function.c (reorder_blocks_0): Walk the existing block tree
15891         to unmark all blocks.
15892         (reorder_blocks_1): Create block fragments when duplicate block
15893         notes are seen.
15894         (reorder_fix_fragments): New.
15895         (reorder_blocks): Call it.
15896         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
15897
15898 2001-07-28  Richard Henderson  <rth@redhat.com>
15899
15900         * emit-rtl.c (adjust_address): Make a copy of the memory address.
15901
15902 2001-07-28  Richard Henderson  <rth@redhat.com>
15903
15904         * flow.c (add_to_mem_set_list): New function.
15905         (init_propagate_block_info): Use it.
15906         (mark_set_1): Likewise.
15907         (insn_dead_p): Canonicalize memory address for dead store
15908         comparison.  Allow wider mode stores to kill narrower mode stores.
15909         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
15910         (invalidate_mems_from_set): Don't handle MEMs.
15911
15912 2001-07-28  Kazu Hirata  <kazu@hxi.com>
15913
15914         * config/h8300/h8300.h: Fix formatting.
15915
15916 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
15917
15918         * basic-block.h (EDGE_FREQUENCY): New macro.
15919         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
15920         for new BB/edges.
15921         * flow.c (find_sub_basic_blocks): Likewise.
15922         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
15923         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
15924
15925         * predict.c (DEF_PREDICTOR): New argument FLAGS.
15926         (HITRATE): New macro.
15927         (PRED_FLAG_FIRST_MATCH): New constant.
15928         (predictor_info): New field flgags.
15929         (combine_predictions_for_insn): Use DS theory to combine
15930         probabilities; set the edge probabilities when finished.
15931         (estimate_probability): Avoid duplicated matches
15932         of LOOP_BRANCH heuristics for nested loops; update comment.
15933         * predict.def: Add flags for each prediction, set probabilities
15934         according to B&L paper.
15935         * predict.h (DEF_PREDICTOR): New argument FLAGS.
15936
15937         * profile.c (compute_branch_probabilities):  Cleanup way the edge
15938         probabilities are computed and REG_BR_PROB notes are dropped; if
15939         values does not match, emit error.
15940         (init_branch_prob): Do error instead of warning when profile driven
15941         feedback is missing or corrupt.
15942
15943 2001-07-27  DJ Delorie  <dj@redhat.com>
15944
15945         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
15946         against a constant, try to adjust the compare to have the desired
15947         constant in it so that min/max optimizations happen more often.
15948
15949 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15950
15951         * flow.c (last_loop_beg_note): New function.
15952         (redirect_edge_and_branch): Use it.
15953         (split_edge): Likewise.
15954
15955         * alias.c (loop_p): Avoid uninitialized memory access.
15956
15957         * flow.c (try_forward_edges): Avoid accessing freed memory.
15958
15959         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
15960         variable access.
15961
15962 2001-07-26  Andrew Haley  <aph@redhat.com>
15963         Joern Rennecke <amylaar@redhat.com>
15964
15965         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
15966         (SUBTARGET_CPP_ENDIAN_SPEC): New.
15967         (SUBTARGET_CPP_SPEC): New.
15968         (CPP_SPEC): Remove.
15969         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
15970         (SUBTARGET_CPP_PTR_SPEC): New.
15971         (CPP_DEFAULT_CPU_SPEC): New.
15972         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
15973         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
15974         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
15975         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
15976         (SUBTARGET_CPP_SPEC): Define as an empty string.
15977
15978 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15979
15980         * doc/install.texi (Configuration): Properly link the host
15981         specific instructions also when generating HTML.
15982
15983 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
15984
15985         * flow.c (redirect_edge_and_branch_force): Test
15986         target->global_live_at_start.
15987
15988 2001-07-26  Richard Henderson  <rth@redhat.com>
15989
15990         * simplify-rtx.c (avoid_constant_pool_reference): Export.
15991         * rtl.h (avoid_constant_pool_reference): Declare it.
15992         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
15993         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
15994
15995 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
15996
15997         * rtl.h (cleanup_barriers): Declare.
15998         * jump.c (cleanup_barriers): New function.
15999         * toplev.c (rest_of_compilation): Call cleanup_barriers
16000         before loop optimizer and after bb_reorder.
16001
16002         * flow.c (back_edge_of_syntactic_loop_p): New.
16003         (split_edge): Use it.
16004
16005 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16006
16007         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
16008
16009 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
16010
16011         * cse.c (cse_process_notes): Replace any registers if the address
16012         remains valid.
16013
16014 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
16015
16016         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
16017         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
16018         (propagate_block): Update prototype.
16019         * flow.c (update_life_info): Simplify the CFG and
16020         recalculate the global regs which are alive when
16021         removing dead code during a global update.
16022         (propagate_block): Return non-zero if an INSN is
16023         deleted.
16024
16025 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16026
16027         * Makefile.in (LIBICONV): Define.
16028
16029 2001-07-26  Catherine Moore  <clm@redhat.com>
16030
16031         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
16032         of conditional to avoid tree checking errors.
16033
16034 2001-07-26  Kazu Hirata  <kazu@hxi.com>
16035
16036         * regmove.c (regmove_optimize): Don't replace a reg with
16037         another reg of a different mode.
16038
16039 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
16040
16041         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
16042         limit length of dependency flush list.
16043         * params.h (MAX_PENDING_LIST_LENGTH): Define.
16044         * sched-int.h  (struct deps): Add pending_flush_length field.
16045         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
16046         has 1 element in it.
16047         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
16048         (sched_analyze): After a jump, if the pending memory flush list is too
16049         large, flush the pending lists.
16050         (init_deps): Initialize pending_flush_length to 0.
16051         * doc/invoke.texi (max_pending_list_length): Document parameter.
16052
16053 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
16054
16055         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
16056         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
16057         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
16058
16059 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
16060
16061         * cpphash.h (struct_lexer_state): Delete was_skipping.
16062         Move skipping here from struct cpp_reader.
16063         * cpplex.c (parse_identifier): Update.
16064         (_cpp_lex_token): Don't skip tokens in a directive.
16065         * cpplib.c (struct if_stack): Update.
16066         (start_directive, end_directive): Don't change skipping state.
16067         (_cpp_handle_directive): Update.
16068         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
16069         (do_else, do_endif): Update; only check for excess tokens if not
16070         in a skipped conditional block.
16071         (push_conditional): Update for new struct if_stack.
16072
16073 2001-07-26  Graham Stott  <grahams@redhat.com>
16074
16075         * function.c (locate_and_pad_parm): Also pad initial offset
16076         so that the total argument size also includes the padding.
16077
16078 2001-07-26  Graham Stott <grahams@redhat.com>
16079
16080         * gensupport.c (alter_output_for_insn): Correct enable checking failure
16081         change XSTR to XTMPL.
16082
16083         (process_one_cond_exec): Likewise
16084
16085 2001-07-25  Richard Henderson  <rth@redhat.com>
16086
16087         * varasm.c (assemble_variable): Create DECL_RTL before setting
16088         TREE_ASM_WRITTEN.
16089
16090 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
16091
16092         * predict.c (estimate_probability): Avoid duplicated predictions.
16093
16094         * loop.c (find_and_verify_loops): Grok multiple barriers.
16095
16096 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16097
16098         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
16099
16100         * dbxout.c: Consistently use putc instead of fputc.
16101         (print_wide_int): New function; call instead of direct fprintf.
16102         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
16103         (dbxout_type_fields, dbxout_type_method_1): Likewise.
16104         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
16105         (print_int_cst_octal): Likewise.
16106         (print_octal): Show we wrote characters.
16107         (dbxout_type): Set have_used_extensions in more places.
16108
16109 2001-07-25  Catherine Moore  <clm@redhat.com>
16110
16111         * config/v850/v850.c (v850_va_arg):  Use addr
16112         instead of valist to build incr.
16113
16114 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
16115
16116         * flow.c (delete_dead_jumptables): New function.
16117         (life_analyzis): Call it.
16118         * bb-reorder.c (skip_insns_after_block): Handle contradictory
16119         sequences.
16120
16121 2001-07-25  Richard Henderson  <rth@redhat.com>
16122
16123         * except.c (reachable_handlers): Handle a region being removed
16124         out from under a RESX.
16125
16126 2001-07-25  Richard Henderson  <rth@redhat.com>
16127
16128         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
16129         swap GE/GT if it is an fp comparison.
16130
16131 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
16132
16133         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
16134         operands.
16135
16136 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
16137
16138         * ssa.c (rename_insn_1): Do not wrap an assignment to a
16139         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
16140         glitch.
16141
16142         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
16143         throw an exception.
16144         (visit_expression): When attempting to simplify an expression,
16145         retrieve any modes for arguments before they are simplified
16146         to constants.
16147
16148 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
16149             Janis Johnson  <janis@us.ibm.com>
16150
16151         * stmt.c (expand_goto): A nonlocal goto can be a call too.
16152         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
16153         pointer parameters to match documented usage of nonlocal_goto.
16154         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
16155         parameters to their correct order.
16156         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
16157         parameters to their correct order.
16158
16159 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
16160
16161         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
16162
16163 2001-07-25  Jan Hubicka  <jh@suse.cz>
16164             Richard Henderson  <rth@redhat.com>
16165
16166         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
16167         the sequence.
16168         (make_edges): New argument update_p; populate the edge cache if set.
16169         (find_basic_blocks): Update make_edges invocation.
16170
16171 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16172
16173         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
16174
16175 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16176
16177         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
16178         -Acpu and -Amachine.h.
16179         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
16180         Corrected header to say ELF not a.out.
16181         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
16182         when given -msoft-float.
16183
16184 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16185
16186         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
16187         extra multilib parts like arm-elf.
16188         (i960-*-coff*, i960-*-rtems): Should not use collect2.
16189         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
16190         crtfini.o as extra multilib parts.
16191
16192 2001-07-24  Joel Sherrill <joel@OARcorp.com>
16193
16194         * configure.in: Add rtems as a supported thread model.
16195         * gthr-rtems.h: Add missing entry point __gthread_active_p.
16196         * configure: Rebuilt.
16197
16198 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
16199
16200         * stor-layout.c (get_mode_alignment): make it work when
16201         BITS_PER_UNIT is not a power of two.
16202         * builtins.c (get_pointer_alignment): Likewise.
16203
16204 2001-07-24  Richard Henderson  <rth@redhat.com>
16205
16206         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
16207         the retrieved constant into the expected mode.
16208
16209 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
16210
16211         * flow.c (try_simplify_condjump): Avoid duplicated edges.
16212         (verify_flow_info): Check for duplicated edges; clarify
16213         error reporting.
16214
16215         * flow.c (block_label): Update basic_block_for_insn.
16216         (commit_edge_insertions): Call compute_bb_for_insn.
16217
16218         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
16219         returns too.
16220
16221         * flow.c (redirect_edge_and_branch,
16222         try_optimize_cfg): Use redirect_edge_succ_nodup
16223         (redirect_edge_succ_nodup): New.
16224         * basic_block.h (redirect_edge_succ_nodup): Declare.
16225
16226         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
16227         after gcse.
16228
16229 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
16230
16231         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
16232         (try_crossjump_to_edge): Update commetns.
16233         (try_crossjump_bb): Likewise.
16234
16235 2001-07-24  Richard Henderson  <rth@redhat.com>
16236
16237         * combine.c (distribute_notes): Move set of need_refresh
16238         for noop_move_p down to catch all cases.
16239
16240 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
16241
16242         * recog.c (split_all_insns_noflow): New.
16243         * rtl.h (split_all_insns_noflow): Declare.
16244         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
16245         * m68hc11.c (m68hc11_reorg): Likewise.
16246         * sh.c (machine_dependent_reorg): Likewise.
16247         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
16248         call.
16249
16250 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
16251
16252         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
16253         (ashlsi3_n splitter): Likewise.
16254         (lshrsi3_n splitter): Likewise.
16255
16256         (GOTaddr2picreg): Make const SImode.
16257         (sym_label2reg): Likewise.
16258         (symGOT2reg): Likewise.
16259         (symGOTOFF2reg) Likewise.
16260
16261         (casesi_worker_0): Make unspec SImode.
16262
16263 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
16264
16265         * config/sh/sh.c (barrier_align): Check that an operand really is
16266         an insn before extracting its INSN_CODE.
16267
16268 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
16269
16270         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
16271         dangling else.
16272
16273         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
16274         for SImode to prevent overflow.
16275
16276 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16277
16278         * config/mips/irix6-libc-compat.c: New file.
16279         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
16280         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
16281         passing workaround.
16282
16283 2001-07-24  lars brinkhoff  <lars@nocrew.org>
16284
16285         * rtl.texi (REG_POINTER): Document.
16286         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
16287         QFmode, HFmode, TQFmode, QCmode, and HCmode.
16288
16289 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
16290
16291         * flow.c (delete_noop_moves): Do not confuse libcall regions.
16292
16293 2001-07-23  Richard Henderson  <rth@redhat.com>
16294
16295         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
16296
16297 2001-07-23  Kazu Hirata  <kazu@hxi.com>
16298
16299         * config/h8300/h8300-protos.h: Add a prototype for
16300         general_operand_dst_push.
16301         * config/h8300/h8300.c (general_operand_dst_push): New.
16302         * config/h8300/h8300.h (OK_FOR_T): New.
16303         (EXTRA_CONSTRAINT): Use it.
16304         * config/h8300/h8300.md (movqi_push): Remove and integrate into
16305         the existing movqi pattern.
16306         (movhi_push): Likewise.
16307
16308         * reload.c: Fix comment typos.
16309
16310 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
16311
16312         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
16313
16314 2001-07-23  H.J. Lu  (hjl@gnu.org)
16315
16316         * doc/extend.texi: Update __builtin_return_address and
16317         __builtin_frame_address.
16318
16319 2001-07-23  Richard Henderson  <rth@redhat.com>
16320
16321         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
16322         before CSE.
16323         * config/i386/i386.md: New setcc+movzbl peephole2.
16324
16325 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
16326
16327         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
16328         * objc/objc-act.c: Include debug.h.
16329         (synth_module_prologue): Save and restore debug hooks too.
16330
16331 2001-07-23  lars brinkhoff  <lars@nocrew.org>
16332
16333         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
16334         and C4X_FLOAT_FORMAT.
16335         (BOOL_TYPE_SIZE): Document.
16336
16337 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
16338
16339         * unroll.c (loop_iterations): Fix miscalculation of initial
16340         giv offset.
16341
16342 2001-07-13  Andrew Haley  <aph@redhat.com>
16343
16344         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
16345         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
16346         * config/sh/sh.c (sh_can_redirect_branch): New function.
16347         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
16348         * reorg.c (steal_delay_list_from_target): Use
16349         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
16350
16351 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
16352
16353         * flow.c (try_simplify_condjump): Unlink insn chain on
16354         fallthru edge; use can_fallthru.
16355
16356 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
16357
16358         * basic-block.h (find_sub_basic_block): Declare.
16359         * flow.c (make_edges): New arguments MIN and MAX;
16360         (find_sub_basic_blocks): Revamp to use make_edges
16361         and purge_dead_edges.
16362         (find_basic_blocks): Update call of find_sub_basic_block.
16363
16364         * recog.c (split_all_insns): Always expect CFG to be consistent;
16365         call find_sub_basic_blocks in case something has changed.
16366         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
16367         has been built.
16368
16369         * basic-block.h (delete_noop_moves): Declare.
16370         * combine.c (combine_instructions): Call it.
16371         (recog_for_combine): Tolerate noop moves
16372         (distribute_notes): Force refresh when register dies at noop move.
16373         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
16374         too.
16375         (life_analysis): Update delete_noop_moves call.
16376         (set_noop_p): Move too ...
16377         * rtlanal.c (noop_move_p): ... here.
16378         * rtl.h (noop_move_p): Declare.
16379
16380         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
16381         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
16382         after combine.
16383         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
16384         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
16385
16386 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
16387
16388         * reload.c (push_reload): Fix typo in comment.
16389         (find_reloads_address): Ditto.
16390         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
16391
16392 2001-07-22  Richard Henderson  <rth@redhat.com>
16393
16394         * flow.c: Grammar check and clarify a lot of comments.
16395         (try_simplify_condjump): Rename variables to be clearer.
16396         (try_forward_edges): Skip complex and fallthru edges.
16397         Rearrange tests to avoid duplicate checks.
16398         (flow_find_cross_jump): Likewise.
16399         (outgoing_edges_match): Allow match if neither branch has
16400         probability data.  Loosen probability match to 5%.
16401         (try_crossjump_to_edge): Hoist repeated indirection into
16402         local variables.
16403         (try_crossjump_bb): Don't check complex edges.  Eliminate
16404         redundant crossjump tests.
16405         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
16406         checks before more expensive checks.
16407
16408 2001-07-22  Richard Henderson  <rth@redhat.com>
16409
16410         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
16411         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
16412         arguments.
16413
16414 2001-07-22  Richard Henderson  <rth@redhat.com>
16415
16416         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
16417         (const_sint32_operand): Likewise.
16418         * m68k.md (anon mulsi pattern): Use const_int_operand not
16419         const_sint32_operand.
16420         (umulsi3_highpart): Zero extend a constant input.
16421         (smulsi3_highpart): Don't bother checking SImode constant.
16422         (const_umulsi3_highpart): Give op3 DImode.
16423         (const_smulsi3_highpart): Likewise.
16424
16425 2001-07-22  Richard Henderson  <rth@redhat.com>
16426
16427         * flow.c (split_block): Make sure bb_note is included in the
16428         new block when splitting before a label.
16429
16430 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
16431
16432         * basic-block.h (redirect_edge_and_branch_force,
16433         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
16434         * flow.c (redirect_edge_and_branch_force,
16435         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
16436         (redirect_edge_and_branch_force): Fix copying of lifeness information.
16437         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
16438         * ifcvt.c (dead_or_predictable): Take BB as an new destination
16439         instead of label; update CFG after transformation.
16440         (find_if_case_1): Update call, use redirect_edge_and_branch_force
16441         for finishing the transformation; handle even case where ELSE
16442         does not follow THEN.
16443         (find_if_case_2): Update call of dead_or_predictable; simplify
16444         CFG update.
16445
16446         * emit-rtl.c (split_branch_probability): New global variable.
16447         (try_split): Take care to set split_branch_probability and
16448         create REG_BR_PROB note for new jump insns.
16449         * md.texi (define_split): Document new feature.
16450
16451         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
16452
16453 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16454
16455         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
16456         (asm_out_file): Remove redundant declaration.
16457         (assemble_asm): Remove old #if 0 block.
16458         (assemble_variable): Remove end of function; debug output is
16459         now handled with global_decl.  Remove old #if 0 block.  Update.
16460         Remove saved_in_section and associated no-op code.
16461         * Makefile.in (varasm.o): Correct dependencies.
16462
16463 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
16464
16465         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
16466         the definition in defaults.h.
16467
16468 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
16469
16470         * jump.c: Update comments.
16471         (delete_barrier_successors, delete_unreferenced_labels,
16472         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
16473         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
16474         jump_optimize, jump_optimize_minimal): Kill.
16475         (rebuild_jump_labels): Move code from jump_optimize_1.
16476         (purge_line_number_notes): Likewise.
16477         (copy_loop_headers): Likewise.
16478         * reg-stack.c: Update comment.
16479         * stmt.c: Likewise.
16480         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
16481         JUMP_AFTER_REGSCAN): Kill.
16482         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
16483         purge_line_number_notes and copy_loop_headers.
16484
16485 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
16486            Richard Henderson  <rth@redhat.com>
16487
16488         * dbxout.c (dbxout_global_decl): New.
16489         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
16490         * sdbout.c (sdbout_finish): New.
16491         (sdbout_debug_hooks): Use it, add comments.
16492         (sdbout_global_decl): Defer initialised public vars to
16493         sdbout_finish.
16494         * varasm.c (assemble_variable): Don't output debug information
16495         for file-scope variables.
16496
16497 2001-07-22  Richard Henderson  <rth@redhat.com>
16498
16499         * config/alpha/alpha.c (get_trap_mode_suffix): New.
16500         (get_round_mode_suffix): New.
16501         (print_operand): Use them for [/].  Remove support for [&'`()+].
16502         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
16503         * config/alpha/alpha.md (attr round_suffix): New.
16504         (attr trap_suffix): New.
16505         (all insns): Set them appropriately.  Use %/ instead of the
16506         myriad punctuators.
16507
16508 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
16509
16510         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
16511
16512 2001-07-22  Richard Henderson  <rth@redhat.com>
16513
16514         * regrename.c (regrename_optimize): Compute nregs for each
16515         potential target register.
16516
16517 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
16518            Richard Henderson  <rth@redhat.com>
16519
16520         * dbxout.c (dbxout_global_decl): New.
16521         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
16522         * sdbout.c (sdbout_finish): New.
16523         (sdbout_debug_hooks): Use it, add comments.
16524         (sdbout_global_decl): Defer initialised public vars to
16525         sdbout_finish.
16526         * varasm.c (assemble_variable): Don't output debug information
16527         for file-scope variables.
16528
16529 2001-07-21  H.J. Lu  (hjl@gnu.org)
16530
16531         * config/mips/mips.c (mips_cpu): Moved into ...
16532         (override_options): Here.
16533
16534         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
16535         mips_tune.
16536         (mips_cpu): Removed.
16537
16538 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16539
16540         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
16541         ("iorqi3"): Likewise.
16542         ("xorqi3"): Likewise.
16543         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
16544         ("*subhi3_sp): Likewise.
16545         ("*subhi3"): Likewise.
16546         ("extendhisi2"): Accept D, X and Y as source operand to avoid
16547         reload problems.
16548
16549 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
16550
16551         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
16552         * config/freebsd.h: Likewise.
16553         * config/linux.h: Likewise.
16554         * config/openbsd.h: Likewise.
16555         * config/alpha/linux-elf.h: Likewise.
16556         * config/arm/linux-elf.h: Likewise.
16557         * config/d30v/d30v.h: Likewise.
16558         * config/fr30/fr30.h: Likewise.
16559         * config/ia64/aix.h: Likewise.
16560         * config/ia64/ia64.h: Likewise.
16561         * config/mips/linux.h: Likewise.
16562         * config/pj/pj.h: Likewise.
16563         * config/rs6000/linux.h: Likewise.
16564         * config/sparc/linux.h: Likewise.
16565         * config/sparc/linux64.h: Likewise.
16566
16567 2001-07-20  Bruce Korb  <bkorb@gnu.org>
16568
16569         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
16570         because getc() and char* may disagree on signedness.
16571
16572 2001-07-20  Richard Henderson  <rth@redhat.com>
16573
16574         * doc/rtl.texi (REG_DEAD): Update for current semantics.
16575
16576         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
16577         insns to delete in the presence of cc0 in a jump insn.
16578
16579 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
16580                                 Jan Hubicka  <jh@suse.cz>
16581
16582         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
16583         of doing the change by hand.
16584
16585 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
16586
16587         * rtlanal.c (set_noop_p): Return true for noop jumps.
16588
16589         * expr.c (emit_single_push_insn): Add call to push expander.
16590         * expr.h (optab_index): Add OTI_push
16591         (push_optab): New constant.
16592         * genopinit.c (optabs): Add push_optab.
16593         * optabs.c (init_optab): Init push optab.
16594         * md.texi (push??1): Document
16595
16596 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16597
16598         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
16599         expand to emit the pattern; put a REG_INC note for push/pop
16600         instructions.
16601         ("movdf", "movdf_internal"): Likewise.
16602         ("movsi", "movsi_internal"): Likewise.
16603         ("movsf", "movsf_internal"): Likewise.
16604         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
16605
16606 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16607
16608         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
16609         gen_highpart.
16610
16611 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
16612
16613         * params.def: Change default max inline insns to 100.
16614
16615 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
16616
16617         * combine.c (combine_simplify_rtx): Generate a new shift operation
16618         when simplifying the first operand of a (neg (ashift)) expression.
16619
16620 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
16621
16622         * regclass.c (N_REG_INTS): Use only 32 bits per element.
16623
16624 2001-07-20  Kelley Cook  <kelley.cook@home.com>
16625
16626         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
16627         information.   Move rest into ...
16628         (*-*-solaris): ... here.  Eliminate redundant information and
16629         reword necessary packages section.  Delete 4.x assembler bug info.
16630         (sparc-sun-*): Merge into ...
16631         (sparc-sun-sunos*): here.
16632
16633 2001-07-20  Catherine Moore  <clm@redhat.com>
16634
16635         * config/v850/v850.md (casesi): Generate LABEL_REF
16636         with Pmode.
16637
16638 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
16639
16640         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
16641         * i386.c (ix86_zero_extend_to_Pmode): Make global.
16642         * i386.md (strclrsi expander): Use it.
16643
16644 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
16645
16646         * integrate.c (copy_insn_list): handle
16647         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
16648         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
16649         identically as to CODE_LABEL.
16650
16651         * fold-const (fold): Convert A/B/C to A/(B*C) and
16652         A/(B/C) to (A/B)*C
16653
16654         * except.c (connect_post_landing_pads): Delete the RESX insns.
16655
16656 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
16657
16658         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
16659
16660         * config/mips/mips.md (nmadd/nmsub): Use macro.
16661
16662 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
16663
16664         * cppinit.c (remove_dup_dir): Make static.
16665         (remove_dup_dirs): Make static. Only warn about preempting a
16666         system directory with a non-system directory.
16667
16668 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
16669
16670         * ifcvt.c (noce_try_store_flag_constants): Correct order
16671         of parameters to trunc_int_for_mode.
16672
16673 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
16674
16675         * reorg.c (fill_simple_delay_slots): If an instruction might throw
16676         an exception that will be caught within this function, do not fill
16677         its delay slot with any subsequent instruction.
16678
16679 2001-07-19  Steve Ellcey <sje@cup.hp.com>
16680
16681         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
16682         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
16683         pointer extension instruction.
16684         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
16685         * simplify-rtx.c (simplify_unary_operation) Likewise.
16686         * explow.c (convert_memory_address) Check value of
16687         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
16688         less than zero.
16689         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
16690         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
16691         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
16692         Add Multilib Support.
16693         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
16694         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
16695         Add Multilib Support.
16696         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
16697         support.
16698         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
16699         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
16700         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
16701
16702 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
16703
16704         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
16705         old and new operands in `<', `3' and `b'.
16706
16707 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16708
16709         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
16710         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
16711         (toplev.o): Don't depend on xcoffout.h.
16712         * c-decl.c: Include debug.h
16713         (duplicate_decls): Use debug hook.
16714         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
16715         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16716         (dbxout_types): Remove.
16717         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
16718         * debug.c (do_nothing_debug_hooks): Update.
16719         (debug_true_tree, debug_nothing_rtx): New.
16720         * debug.h (struct rtx_def): New.
16721         (struct gcc_debug_hooks): New hooks ignore_block,
16722         outlining_inline_function and label.
16723         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
16724         dwarf2out_frame_finish): New.
16725         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
16726         Make static, update prototype.
16727         (dwarf2_debug_hooks): Update.
16728         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
16729         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
16730         * dwarfout.c (dwarf_debug_hooks): Update.
16731         * emit-rtl.c: Include debug.h.
16732         (remove_unnecessary_notes): Use debug hook.
16733         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
16734         (final_scan_insn): Use debug hook.
16735         * integrate.c (output_inline_function): Use debug hook.
16736         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
16737         (sdb_debug_hooks): Update.
16738         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
16739         * toplev.c: Don't include xcoffout.h.
16740         (note_outlining_of_inline_function, debug_ignore_block): Remove.
16741         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
16742         Remove.
16743         * tree.h (dwarf2out_do_frame): Remove.
16744
16745 2001-07-19  Catherine Moore  <clm@cygnus.com>
16746
16747         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
16748
16749 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
16750
16751         * reload1.c (eliminate_regs_in_insn): When updating a set
16752         to the frame pointer to the hardware frame pointer, perform
16753         the update always not just when REPLACE is set.
16754
16755         * reload1.c (choose_reload_regs): Don't inherit a reload
16756         that crosses multiple registers if registers past the first
16757         don't fit in the desired class.
16758
16759         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
16760         when negating constants.
16761
16762 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
16763
16764         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
16765         * doc/tree.texi: Ditto.
16766
16767 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
16768             Jakub Jelinek  <jakub@redhat.com>
16769
16770         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
16771         (extract_cie_info): Handle "eh" augmentation properly,
16772         remember eh_ptr.
16773         (struct frame_state, __frame_state_for): New.
16774
16775 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16776
16777         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
16778         HANDLE_SYSV_PRAGMA): Define.
16779         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
16780         previous args.
16781         (copy_object): Caller changed.
16782
16783 2001-07-19  Andreas Schwab  <schwab@suse.de>
16784
16785         * configure.in (assembler dwarf2 debug_line support): Define nop
16786         insn for m68k.
16787         * configure: Regenerated.
16788
16789 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16790
16791         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
16792         dwarfout.h.
16793         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
16794         to conditionally compiled block.
16795         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16796         * dbxout.h (dbxout_function): Remove.
16797         * debug.c (do_nothing_debug_hooks): Update.
16798         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
16799         global_decl, deferred_inline_function.
16800         * dwarf2out.c (dwarf2_debug_hooks): Update.
16801         (dwarf2out_global_decl): New.
16802         * dwarfout.c: Don't include dwarfout.h.
16803         (dwarfout_global_decl, dwarfout_function_decl,
16804         dwarfout_deferred_inline_function): New.
16805         (dwarf_debug_hooks): Update.
16806         * dwarfout.h: Remove.
16807         * final.c: Don't include dwarfout.h.
16808         * sdbout.c (sdbout_global_decl): New.
16809         (sdbout_debug_hooks): Update.
16810         * toplev.c: Don't include dwarfout.h.
16811         (check_global_declarations, rest_of_compilation): Use new debug hooks.
16812         (note_deferral_of_defined_inline_function): Remove.
16813         * toplev.h (note_deferral_of_defined_inline_function): Remove.
16814         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
16815         * ch/lex.c: Don't include dwarfout.h.
16816         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
16817         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
16818         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
16819         * cp/optimize.c: Include debug.h.
16820         (maybe_clone_body): Use debug hook.
16821         * cp/semantics.c: Include debug.h.
16822         (expand_body): Use debug hook.
16823         * po/POTFILES.in: Remove dwarfout.h.
16824
16825 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16826
16827         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
16828         * c-parse.in (yyerror, _yylex): Similarly.
16829         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
16830         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
16831         Update comments.
16832         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
16833         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
16834
16835 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
16836
16837         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
16838         in-class declaration at -g1.  Fixes c++/2814.
16839
16840 2001-07-18  Richard Henderson  <rth@redhat.com>
16841
16842         * doc/md.texi (reload_in/out): Document restrictions in predicates
16843         and constraints for these patterns.  Document empty string matching
16844         ALL_REGS.
16845
16846 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16847
16848         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
16849
16850 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
16851
16852         * cse.c: Undo my previous patch.
16853
16854 2001-07-18  Tom Tromey  <tromey@redhat.com>
16855
16856         For PR java/2812:
16857         * configure: Rebuilt.
16858         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
16859         instead.
16860         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
16861
16862 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
16863                                 Jan Hubicka  <jh@suse.cz>
16864
16865         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
16866         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
16867         * jump.c (mark_jump_label): Do not forward branches.
16868
16869 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
16870
16871         * cse.c (delete_trivially_dead_insns): Delete the libcall block
16872         when return value is unused.
16873
16874 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
16875
16876         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
16877
16878 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
16879
16880         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
16881         on error.  We can't blindly return the result of
16882         pthread_mutex_trylock because it returns a positive number on
16883         error, while we must return -1 on error.
16884         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
16885         fixes.
16886         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
16887
16888 2001-07-18  Andreas Jaeger  <aj@suse.de>
16889
16890         * integrate.c (output_inline_function): Correct type of debug_hooks.
16891
16892 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
16893
16894         * combine.c (combine_simplify_rtx): DIV can be treated
16895         associatively for floats if unsafe math optimisations are enabled.
16896
16897 2001-07-17  Richard Henderson  <rth@redhat.com>
16898
16899         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
16900
16901 2001-07-17  Richard Henderson  <rth@redhat.com>
16902
16903         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
16904         don't force the function address into a register.
16905         (expand_call, emit_library_call_value_1): Update callers.
16906         * builtins.c (expand_builtin_apply): Likewise.
16907         * expr.h (prepare_call_address): Update decl.
16908
16909 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
16910
16911         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
16912         config directory.
16913         * config/i386/chorus.h: Move up.
16914         * config/sparc/chorus.h: Likewise.
16915         * config/rs6000/chorus.h: Likewise.
16916         * config/chorus.h: Moved here.
16917
16918 2001-07-17  Andreas Schwab  <schwab@suse.de>
16919
16920         * configure.in  (assembler eh_frame optimization): Handle big
16921         endian.
16922         * configure: Regenerated.
16923
16924 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
16925
16926         * expr.c (epxand_expr): Convert divisions into multiplications by
16927         reciprocals if -ffast-math.
16928
16929 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
16930
16931         * dbxout.c (dbxout_really_begin_function): Rename to
16932         dbxout_begin_function.
16933         (dbx_debug_hooks, xcoff_debug_hooks): Update.
16934         (dbxout_begin_function): Remove.
16935         (dbxout_function): Update.
16936         (dbxout_source_line): Update prototype.
16937         * dbxout.h (dbxout_begin_function): Remove.
16938         * debug.c (do_nothing_debug_hooks): Update.
16939         (debug_nothing_tree): Update.
16940         (debug_nothing_charstar_rtx): Remove.
16941         * debug.h (union tree_node): Declare.
16942         (struct rtx_def): Remove.
16943         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
16944         begin_function.  Change source_line prototype.
16945         (debug_nothing_tree): New.
16946         (debug_nothing_charstar_rtx): Delete.
16947         (dwarf2out_begin_prologue): Moved from ...
16948         * tree.h: ... here.
16949         * dwarf2out.c (dwarf2_debug_hooks): Update.
16950         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
16951         debug info, call dwarf2out_source_line.
16952         (dwarf2out_souce_line): Update prototype.
16953         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
16954         Change prototype, make static.
16955         (dwarfout_source_line): Update prototype.
16956         (dwarf_debug_hooks): Update.
16957         * dwarfout.h (dwarfout_begin_function): Remove.
16958         * final.c (final_start_function, final_scan_insn): Use appropriate
16959         debug hooks, update to use notice_source_line.
16960         (output_source_line): Rename notice_source_line.  Don't call the
16961         source_line debug hook.
16962         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
16963         make static, update prototype.
16964         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
16965         prototype.
16966         (sdbout_end_prologue): New.
16967         (sdbout_source_line): Update prototype.
16968         (sdbout_debug_hooks): Update.
16969         (sdbout_symbol): Remove unused var.
16970         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
16971         Delete.
16972         * varasm.c: Include debug.h.
16973         (assemble_start_function): Use begin_function debug_hook.
16974         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
16975         update with prototype.
16976         (xcoffout_source_line): Update prototype.
16977         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
16978         update prototype.
16979         (xcoffout_source_line): Update prototype.
16980
16981 2001-07-17  Richard Henderson  <rth@redhat.com>
16982
16983         * c-typeck.c (build_binary_op): Do not shorten unsigned
16984         right shift after sign extension.
16985
16986 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
16987
16988         * combine.c (combine_simplify_rtx): Attempt to simplify
16989         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
16990
16991         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
16992         (simplify_binary_operation, simplify_unary_operation,
16993          simplify_relational_operation): Use it.
16994
16995         * combine.c (combine_simplify_rtx): Don't do associative law
16996         on divisions; allow associative law on floats.
16997
16998 2001-07-17  H.J. Lu <hjl@gnu.org>
16999             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17000
17001         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
17002         ASM_OUTPUT_WEAK_ALIAS are defined.
17003         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
17004         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
17005         Moved ...
17006         * config/mips/iris5.h: ... here.
17007         (HANDLE_SYSV_PRAGMA): Defined as 1.
17008         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
17009         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
17010         symbol.
17011
17012 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
17013
17014         * c-parse.in (all_prefix_attributes): New variable.
17015         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
17016         (maybe_resetattrs): New production.
17017         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
17018         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
17019         notype_initdcl, nested_function, notype_nested_function,
17020         component_decl, components, components_notype,
17021         component_declarator, component_notype_declarator,
17022         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
17023         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
17024         after a comma being applied to more than one declarator.
17025         * doc/extend.texi (Attribute Syntax): Update.  Remove
17026         documentation of bugs that are no longer present.
17027
17028 2001-07-13  Eric Christopher  <echristo@redhat.com>
17029
17030         * config/mips/mips.h: Change TUNE_MIPS* options to use
17031         mips_tune.
17032         (EXTRA_SPECS): Add cc1_cpu_spec.
17033         * config/mips/mips.md (muldf3): Fix typo.
17034
17035 2001-07-16  Richard Henderson  <rth@redhat.com>
17036
17037         * config/m68k/m68k.c: Include expr.h and reload.h.
17038         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
17039         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
17040
17041 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
17042             Richard Henderson  <rth@redhat.com>
17043
17044         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
17045         (insn_live_p): Fix fall off end of function.
17046         (dead_libcall_p): Remove COUNTS argument; update callers.
17047         (delete_trivially_dead_insns): Remove unused variables.
17048
17049 2001-07-17  Andreas Jaeger  <aj@suse.de>
17050
17051         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
17052         x86-64 pic support.
17053
17054         * lcm.c (optimize_mode_switching): Avoid warning for unused
17055         variable if !NORMAL_MODE.
17056
17057         * flow.c (try_crossjump_to_edge): Remove unused variable.
17058
17059 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17060
17061         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
17062         atexit declaration in stdlib.h.
17063
17064 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
17065
17066         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
17067
17068 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
17069
17070         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
17071         * except.c (finish_eh_generation): Update call of cleanup_cfg;
17072         do rebuild_jump_labels instead of jump_optimize
17073         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
17074         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
17075         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
17076
17077         * flow.c: Include timevar.h
17078         (find_basic_block): Push/pop timevar;
17079         (cleanup_cfg): Likewise.
17080         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
17081         * Makefile: Add dependencies on timevar.h
17082
17083         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
17084         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
17085
17086         * rtl.h (delete_trivially_dead_insns): Add new parameter.
17087         * toplev.c (rest_of_compilation): Update calls.
17088         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
17089         (delete_trivially_dead_insns): ... here; accept new argument
17090         preserve_basic_blocks; preserve basic blocks if set.
17091
17092         * reg-stack.c (stack_regs_mentioned): Return 0 if
17093         stack_regs_mentioned_data is not initialized.
17094         (reg_to_stack): Make stack_regs_mentioned survive after the
17095         reg-stack is completted; do not call cleanup_cfg.
17096         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
17097         make cleanup_cfg after bb-reorder to output to debug file.
17098
17099 2001-07-16  Richard Henderson  <rth@redhat.com>
17100
17101         * regclass.c (init_reg_sets): Use only 32 bits per initializer
17102         from int_reg_class_contents.
17103
17104 2001-07-16  Richard Henderson  <rth@redhat.com>
17105
17106         * hard-reg-set.h (regs_invalidated_by_call): Declare.
17107         * regclass.c (regs_invalidated_by_call): Move from cse.c.
17108         (init_reg_sets_1): Move initialization from cse_main.
17109         * cse.c (regs_invalidated_by_call): Move to regclass.c.
17110         (cse_main): Move its initialization also.
17111         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
17112         * flow.c (propagate_one_insn): Likewise.
17113         * gcse.c (compute_hash_table): Likewise.
17114         (compute_kill_rd, compute_store_table): Likewise.
17115         * sched-deps.c (sched_analyze_1): Likewise.
17116
17117 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
17118
17119         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
17120         gen_rtx_SET.
17121
17122 2001-07-16  Steve Ellcey <sje@cup.hp.com>
17123
17124         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
17125         in if statement so we don't access undefined memory.
17126
17127 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
17128
17129         * gcse.c: Update comment at top.
17130         Update comment on mem handling.
17131         mem_last_set, mem_first_set, mem_set_in_block: gone.
17132         Declaration of reg_set_info: gone.
17133         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
17134         pointless with load_killed_in_block_p (they are *more*
17135         conservative then it, not less, and less accurate).
17136         (oprs_not_set_p): Ditto.
17137         (alloc_gcse_mem): Don't allocate mem_set_in_block
17138         (free_gcse_mem): Don't free it, either.
17139         (record_last_mem_set_info): Update comment in front, remove
17140         mem_*set_* stuff. Note the reason we don't handle stores directly
17141         here.
17142         (compute_hash_table): Update comments to reflect reality. Remove
17143         mem_*set_* references.
17144         (reset_opr_set_tables): Remove mem_*set_* references.
17145         (mark_call): Ditto.
17146         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
17147         (mark_clobber): Ditto (on both parts, we double set here too).
17148         (expr_killed_p): Remove mem_set_in_block test.
17149         (compute_transp): Remove mem_set_in_block test.
17150
17151         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
17152         of edge, and removal of phi alternative to dump file.
17153         (ssa_ccp_substitute_constants): Add note about register now being
17154         constant, and which uses were replaced in what insns to dump file.
17155
17156 2001-07-16  Andreas Jaeger  <aj@suse.de>
17157
17158         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
17159         variables of type HOST_WIDEST_INT.
17160
17161         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
17162         (__bb_exit_func): Correct type of count_max to avoid overflow.
17163         (num_digits): Handle long long argument.
17164
17165         * combine.c (gen_lowpart_for_combine): Remove unused variable.
17166
17167 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
17168
17169         * output.h (sdb_begin_function_line): Restore as an extern
17170         variable.
17171         * sdbout.c (sdb_begin_function_line): Make extern.
17172
17173 2001-07-15  Richard Henderson  <rth@redhat.com>
17174
17175         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
17176         * genrecog.c (maybe_both_true_mode): New.
17177         (maybe_both_true_2): Use it.
17178         (write_switch): Don't put Pmode in a switch.
17179         * rtl.c (mode arrays): Don't explicitly size them.
17180
17181 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
17182
17183         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
17184         handling; move unconditional splitting before mode switching.
17185
17186         * i386.md (type): Add fistp type.
17187         (i387, length_attr, scheduling definitions): Handle this type.
17188         (fix_trunc?f?i2): Revamp to use mode switching.
17189         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
17190         * i386.h (fp_cw_mode): New enum
17191         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
17192         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
17193
17194 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17195
17196         * Makefile.in (integrate.o): Add debug.h.
17197         * integrate.c (debug.h): Add.
17198         (output_inline_function): Save, reset, and restore debug_hooks.
17199
17200 2001-07-15  Richard Henderson  <rth@redhat.com>
17201
17202         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
17203         instead of COMPARE for the EQUIV expression.
17204
17205 2001-07-15  Richard Henderson  <rth@redhat.com>
17206
17207         * flow.c (redirect_edge_and_branch_force): Initialize
17208         global_live_at_start and global_live_at_end.
17209         (allocate_bb_life_data): Export.
17210         * basic-block.h (allocate_bb_life_data): Declare.
17211         * toplev.c (rest_of_compilation): Call it.
17212
17213 2001-07-15  Richard Henderson  <rth@redhat.com>
17214
17215         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
17216         (alpha_tablejump_best_label): New.
17217         * config/alpha/alpha-protos.h: Declare them.
17218         * config/alpha/alpha.md: Use braced strings for code blocks.
17219         (tablejump_osf): Break out add with r29.
17220         (tablejump_osf_internal): Remove.
17221         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
17222         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
17223
17224 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
17225
17226         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
17227         of the movable.
17228
17229         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
17230
17231         * i386-protos.h (ix86_split_fp_branch): Update prototype.
17232         (ix86_fp_jump_nontrivial_p): New.
17233         * i386.md (fp_jcc_?): Update call of split_fp_branch;
17234         use ix86_fp_jump_nontrivial_p.
17235         * i386.c (ix86_fp_jump_nontrivial_p): New.
17236         (ix86_split_fp_branch): Accept code instead of rtx.
17237         (ix86_expand_compare): Expand comparison early in case
17238         doing so is resonably cheap.
17239
17240 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
17241
17242         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
17243         not 'machine'.
17244         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
17245         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
17246
17247 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
17248
17249         * dbxout.c (dbxout_source_line): Make static, update prototype.
17250         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
17251         (dbxout_init, dbxout_finish, dbxout_source_line,
17252         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
17253         * dbxout.h (dbxout_source_line): Delete.
17254         * debug.c (debug_nothing_file, debug_nothing_file_int,
17255         debug_nothing_file_charstar_rtx): New.
17256         (do_nothing_debug_hooks): Update.
17257         (debug_nothing_void, debug_nothing_charstar_rtx,
17258         dwarf2out_end_epilogue): New.
17259         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
17260         * debug.h (struct rtx_def): Declare.
17261         (gcc_debug_hooks): New hooks source_line, end_epilogue
17262         and end_function.
17263         (debug_nothing_void, debug_nothing_charstar_rtx,
17264         dwarf2out_end_epilogue): New.
17265         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
17266         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
17267         (dwarf2_debug_hooks): Update.
17268         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
17269         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
17270         * dwarf2out.h (dwarf2out_source_line): Remove.
17271         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
17272         Make static, update prototype.
17273         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
17274         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
17275         (dwarf_debug_hooks): Update.
17276         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
17277         dwarfout_end_function): Remove.
17278         * final.c (profile_function): Use debug hooks for ending functions
17279         and epilogues.
17280         (output_source_line, final_end_function): Update prototype,
17281         use debug hooks.
17282         (final_start_function, final_scan_insn): Update.
17283         * output.h (sdb_begin_function_line): Remove.
17284         (final_end_function): Update prototype.
17285         * sdbout.c (sdb_begin_function_line): Make static.
17286         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
17287         (sdbout_source_line): New.
17288         (sdbout_end_epilogue, sdbout_end_function): Make static, update
17289         prototypes.
17290         (sdb_debug_hooks): Update.
17291         (sdbout_init, sdbout_source_line,
17292         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
17293         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
17294         * toplev.c (compile_file, rest_of_compilation): Update.
17295         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
17296         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
17297         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
17298         Update for prototype changes.
17299         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
17300         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
17301
17302 2001-07-15  Richard Henderson  <rth@redhat.com>
17303
17304         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
17305         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
17306         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
17307         * config/alpha/alpha.c: Likewise.
17308         * config/alpha/alpha.md: Likewise.
17309         * config/alpha/alpha32.h: Likewise.
17310         * config/alpha/vms.h: Likewise.
17311         (OPEN_VMS): Remove.
17312
17313 2001-07-14  Richard Henderson  <rth@redhat.com>
17314
17315         * config/alpha/alpha.md: Use define_constants for unspec values.
17316         Substitute throughout.
17317
17318 2001-07-14  Tim Josling  <tej@melbpc.org.au>
17319
17320         * tree.def (EXPON_EXPR) remove. Never supported anyway.
17321
17322 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17323
17324         * pa.md: Remove unused constraints from define_split's.
17325
17326 2001-04-14  Richard Henderson  <rth@redhat.com>
17327
17328         * ifcvt.c (find_cond_trap): Test for exit block.
17329
17330 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
17331
17332         Re-install recently reverted patch.
17333         * emit-rtl.c (try_split): Update mark_jump_label call.
17334         * flow.c (find_sub_basic_blocks): Likewise.
17335         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
17336         jump_back_p): Kill.
17337         (mark_all_labels): Kill second parameter.
17338         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
17339         (rebuild_jump_labels, jump_optimize_minimal): Update call
17340         of jump_optimize_1.
17341         (jump_optimize_1): Kill crossjumping code.
17342         (mark_jump_label): Kill cross_jump parameter.
17343         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
17344         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
17345         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
17346          splitting.
17347         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
17348         DFI_bpro.
17349         (dump_file_info): Likewise.
17350         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
17351         reorganize passes to do reg-stack first, bb-reorder second.
17352         * invoke.texi (-d letters doc): Remove the jump2 pass.
17353
17354 2001-07-14  Richard Henderson  <rth@redhat.com>
17355
17356         * ifcvt.c (find_cond_trap): New.
17357         (find_if_header): Call it.
17358         (merge_if_block): Relax existing jump sanity check.
17359         * jump.c (jump_optimize_1): Remove conditional trap handling.
17360
17361 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
17362
17363         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
17364         millicode.
17365         (insn_refs_are_delayed): Correct comment.
17366         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
17367         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
17368         instead of r31.  Make associated insn !TARGET_64BIT, and
17369         provide an additional 64-bit insn that clobbers r2.
17370         (divsi3): Likewise.
17371         (udivsi3): Likewise.
17372         (modsi3): Likewise.
17373         (umodsi3): Likewise.
17374
17375 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
17376
17377         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
17378
17379         * flow.c (redirect_edge_and_branch_force, split_edge,
17380         try_crossjump_to_edge): Use set_block_for_new_insns.
17381         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
17382
17383 2001-07-13  H.J. Lu  (hjl@gnu.org)
17384
17385         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
17386         the correct patch.
17387
17388 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
17389
17390         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
17391
17392 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
17393
17394         * c-common.c (decl_attributes): Take a pointer to the node to
17395         which attributes are to be attached, and a flags argument.
17396         * c-common.h (enum attribute_flags): New.
17397         (decl_attributes): Update prototype.
17398         * c-decl.c (start_decl, push_parm_decl, finish_struct,
17399         finish_enum, start_function): Update calls to decl_attributes.
17400         * c-parse.in (component_declarator, component_notype_declarator,
17401         label): Update calls to decl_attributes.
17402
17403 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
17404
17405         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
17406         * config/avr/avr.c (legitimate_address_p): Return value changed
17407         from letter to register classes. For better debugging.
17408
17409 2001-07-13  Kazu Hirata  <kazu@hxi.com>
17410
17411         * jump.c (reversed_comparison_code_parts): Fix comment typos.
17412
17413 2001-07-13  H.J. Lu  (hjl@gnu.org)
17414
17415         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
17416
17417 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
17418
17419         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
17420         correctly for shared configurations.
17421         * config/t-libgcc-pic:  New.
17422         * config/{i386,m68k,sparc}/t-openbsd:  New.
17423         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
17424         Support -shared.  Support debugging libraries with -g.
17425         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
17426         frame information does not emit pointer diffs.
17427         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
17428         emit pointer diffs.
17429
17430 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
17431
17432         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
17433
17434 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
17435
17436         * combine.c (try_combine): Ensure const_int pow2 is positive.
17437
17438 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
17439
17440         * config.gcc: Add configuration for s/390.
17441         * config/s390/s390.c: New. Subroutines for code generation.
17442         * config/s390/s390.h: New. Definitions for s/390.
17443         * config/s390/s390-protos.h: New. Prototypes.
17444         * config/s390/linux.h: New. Definitions for linux for s/390.
17445         * config/s390/linux64.h: New. Definitions for linux for zSeries.
17446         * config/s390/t-linux: New. Makefile fragment.
17447         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
17448         * config/s390/fixdfdi.h: New. Fix L_fix*di.
17449
17450 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
17451
17452         * emit-rtl.c (try_split): Update mark_jump_label call.
17453         * flow.c (find_sub_basic_blocks): Likewise.
17454         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
17455         jump_back_p): Kill.
17456         (mark_all_labels): Kill second parameter.
17457         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
17458         (rebuild_jump_labels, jump_optimize_minimal): Update call
17459         of jump_optimize_1.
17460         (jump_optimize_1): Kill crossjumping code.
17461         (mark_jump_label): Kill cross_jump parameter.
17462         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
17463         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
17464         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
17465          splitting.
17466         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
17467         DFI_bpro.
17468         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
17469         reorganize passes to do reg-stack first, bb-reorder second.
17470         * invoke.texi (-d letters doc): Remove the jump2 pass.
17471
17472 2001-07-12  Steve Ellcey <sje@cup.hp.com>
17473
17474         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
17475
17476 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
17477
17478         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
17479         basic blocks.
17480         (verify_flow_info): Make diagnostics prettier.
17481
17482 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
17483
17484         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
17485
17486         * flow.c (outgoing_edges_match): Return early if condition reversal
17487         failed.
17488
17489 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
17490
17491         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
17492         (mips_move_2words): When splitting a move into two instructions,
17493         prefix the second address operand with '%D'.
17494
17495 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
17496
17497         * Makefile.in (final.o): Depend on debug.h.
17498         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
17499         (dbx_debug_hooks): Add new hooks.
17500         (xcoff_debug_hooks): New.
17501         * debug.c (debug_nothing_file_int_int): New.
17502         (do_nothing_debug_hooks): Update.
17503         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
17504         (debug_nothing_file_int_int): New.
17505         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
17506         static, update prototype.
17507         (dwarf2_debug_hooks): Update.
17508         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
17509         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
17510         static, update prototype.
17511         (dwarf_debug_hooks): Update.
17512         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
17513         * final.c: Include debug.h.
17514         (final_scan_insn): Use debug hooks when beginning and ending blocks.
17515         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
17516         static, update prototype.
17517         (sdb_debug_hooks): Update.
17518         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
17519         * toplev.c: Distinguish between xcoff and dbx.
17520
17521         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
17522         Call all debug hooks, not just dwarf ones.
17523
17524 2001-07-11  Timothy Wall  <twall@redhat.com>
17525
17526         * config.gcc: Add configuration for AIX5/IA64.
17527         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
17528         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
17529         support prefix/suffix code.
17530         * config/ia64/t-aix: New.  Makefile fragment.
17531         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
17532
17533 2001-07-11  Kazu Hirata  <kazu@hxi.com>
17534
17535         * recog.c (validate_change): Fix a comment typo.
17536
17537 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
17538
17539         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
17540         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
17541         hooks directly.
17542         * dbxout.c (dbx_debug_hooks): Add new hooks.
17543         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
17544         make static.
17545         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
17546         make static.
17547         * dbxout.h (dbxout_start_new_source_file,
17548         dbxout_resume_previous_source_file): Delete.
17549         * debug.c (do_nothing_debug_hooks): Add new hooks.
17550         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
17551         (debug_nothing_int_charstar, debug_nothing_int): New.
17552         * debug.h (gcc_debug_hooks): New hooks define, undef,
17553         start_source_file and end_source_file.
17554         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
17555         (debug_nothing_int_charstar, debug_nothing_int): New.
17556         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
17557         the conditionally compiled section.
17558         (dwarf2out_start_source_file, dwarf2out_end_source_file,
17559         dwarf2out_define, dwarf2out_undef): Make static.
17560         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
17561         dwarf2out_define, dwarf2out_undef): Remove.
17562         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
17563         (dwarfout_start_source_file, dwarfout_end_source_file,
17564         dwarfout_define, dwarfout_undef): Make static.
17565         (dwarfout_start_source_file_check,
17566         dwarfout_end_source_file_check): New.
17567         (dwarfout_define, dwarfout_finish): Update.
17568         * dwarfout.h (dwarfout_start_new_source_file,
17569         dwarfout_resume_previous_source_file, dwarfout_define,
17570         dwarfout_undef): Remove.
17571         * sdbout.c (sdb_debug_hooks): Add new hooks.
17572         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
17573         make static.
17574         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
17575         make static, take an arg.
17576         * sdbout.h (sdbout_start_new_source_file,
17577         sdbout_resume_previous_source_file): Delete.
17578         * toplev.c (debug_start_source_file, debug_end_source_file,
17579         debug_define, debug_undef): Delete.
17580         * toplev.h (debug_start_source_file, debug_end_source_file,
17581         debug_define, debug_undef): Delete.
17582
17583         * java/jcf-parse.c: Include debug.h.
17584         (parse_class_file): Update to use debug hooks directly.
17585         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
17586
17587 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17588
17589         * alias.c (set_mem_alias_set): New function.
17590         * rtl.h (set_mem_alias_set): Declare it.
17591         * builtins.c (expand_builtin_return_addr): Call it instead of
17592         using MEM_ALIAS_SET accessor.
17593         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
17594         (get_memory_rtx, expand_builtin_va_arg): Likewise.
17595         (expand_builtin_va_copy):Likewise.
17596         * caller-save.c (setup_save_areas): Likewise.
17597         * calls.c (compute_argument_addresses): Likewise.
17598         * explow.c (set_mem_attributes): Likewise.
17599         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
17600         (expand_assignment, store_constructor_field, store_field): Likewise.
17601         (expand_expr_unaligned): Likewise.
17602         * function.c (assign_stack_temp_for_type): Likewise.
17603         (put_reg_into_stack, gen_mem_addressof): Likewise.
17604         * ifcvt.c (noce_try_cmove_arith): Likewise.
17605         * reload1.c (reload, alter_reg): Likewise.
17606         * config/alpha/alpha.c (get_aligned_mem): Likewise.
17607         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
17608         (alpha_expand_unaligned_store): Likewise
17609         (alpha_expand_unaligned_load_words): Likewise.
17610         (alpha_expand_unaligned_store_words): Likewise.
17611         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
17612         (alpha_expand_epilogue): Likewise.
17613         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
17614         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
17615         * config/i386/i386.c (legitimize_pic_address): Likewise.
17616         * config/i960/i960.c (setup_incoming_varargs): Likewise.
17617         * config/ia64/ia64.c (spill_restore_mem): Likewise.
17618         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
17619         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
17620         * config/mips/mips.c (mips_va_arg): Likewise.
17621         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
17622         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
17623         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
17624         (setup_incoming_varargs, rs6000_va_arg): Likewise.
17625         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
17626         (rs6000_emit_epilogue): Likewise.
17627         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
17628         * config/sparc/sparc.c (sparc_va_arg): Likewise.
17629         * config/v850/v850.c (v850_va_arg): Likewise.
17630
17631 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
17632
17633         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
17634         when fallthru edge is present.
17635         (mege_blocks): Handle case where creation of jump insn
17636         is required.
17637
17638         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
17639         CLEANUP_POST_REGSTACK): New constants.
17640         * except.c (finish_eh_generation): Update call of cleanup_cfg,
17641         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
17642         * output.h (cleanup_cfg): Update prototype.
17643         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
17644         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
17645         cleanup_cfg call; kill missleading comment.
17646         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
17647         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
17648         parameter; control optimizations performed using it.
17649         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
17650         try_crossjump_bb): New functions.
17651
17652 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17653
17654         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
17655         extern.
17656         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
17657         pa_output_function_prologue.
17658         * pa-protos.h (pa_output_function_prologue): New prototype.
17659
17660 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17661
17662         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
17663         and low to get correct sign extension in low+high test.
17664
17665 2001-07-11  Janis Johnson <janis@us.ibm.com>
17666
17667         * gcov.c (arcdata): Use gcov_type to fix branch percentage
17668         for large hit count.
17669
17670         * profile.c (branch_prob): Fix .bbg info for computed gotos
17671         and C++ EH code.
17672
17673 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
17674
17675         * stmt.c (parse_output_constraint): New function, split out
17676         from ...
17677         (expand_asm_operands): ... here.  Use parse_output_constraint.
17678         * tree.h (parse_output_constraint): Declare it.
17679
17680 2001-07-11  Richard Henderson  <rth@redhat.com>
17681
17682         * bitmap.c: Comment some functions; fiddle whitespace.
17683         (bitmap_free): Don't export.
17684         (bitmap_element_allocate): Use memset.
17685         * bitmap.h (bitmap_free): Don't declare.
17686
17687 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
17688
17689         * gcse.c, lcm.c, sched-deps.c:
17690         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
17691
17692         * flow.c (flow_loops_find): Free dom if we found no loops, since
17693         we aren't going to save it.
17694
17695         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
17696         done.
17697
17698 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
17699
17700         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
17701
17702 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17703
17704         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
17705         #ifndef DWARF2_DEBUGGING_INFO.
17706
17707 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17708
17709         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
17710
17711 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17712
17713         * config/mips/mips.c (gen_int_relational): Tell the caller not to
17714         reverse a branch if a NE comparison is implemented with GTU.
17715
17716 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
17717             H.J. Lu  <hjl@gnu.org>
17718
17719         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
17720         constant addresses.
17721         (call_internal2): Likewise.
17722         (call_value_internal1): Likewise.
17723         (call_value_internal2): Likewise.
17724         (call_value_multiple_internal1): Likewise.
17725         (call_value_multiple_internal2): Likewise.
17726
17727 2001-07-10  Kazu Hirata  <kazu@hxi.com>
17728
17729         * calls.c (emit_library_call_value_1): Fix a comment typo.
17730         * dwarf2out.c (mem_loc_descriptor): Likewise.
17731         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
17732
17733 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
17734
17735         * simplify-rtx.c (simplify_subreg): Fix typo in comment
17736
17737 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17738
17739         * recog.c (offsettable_address_p): Handle LO_SUM case.
17740         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
17741         instead of plus_constant.
17742
17743 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17744
17745         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
17746         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
17747
17748 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17749
17750         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
17751         adjust_address_nv instead of plus_constant.
17752
17753 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
17754
17755         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
17756         dwarf2out.o): Depend on debug.h, wrap long lines.
17757         * dbxout.c: Include debug.h.
17758         (dbx_debug_hooks): New.
17759         (dbxout_init): Make static, take just 2 args.
17760         (dbxout_finish): Make static.
17761         * dbxout.h (dbxout_init, dbxout_finish): Delete.
17762         * debug.c: New file.
17763         * debug.h: New file.
17764         * dwarf2out.c: Include debug.h.
17765         (dwarf2_debug_hooks): New.
17766         (dwarf2out_init): Make static.
17767         (dwarf2out_finish): Make static, take 2 args.
17768         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
17769         * dwarfout.c: Include debug.h.
17770         (dwarf_debug_hooks): New.
17771         (dwarfout_init): Make static.
17772         (dwarfout_finish): Make static, take 2 args.
17773         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
17774         * sdbout.c: Include debug.h.
17775         (sdb_debug_hooks): New.
17776         (sdbout_init): Make static, take 2 args.
17777         * sdbout.h (sdbout_init): Delete.
17778         * toplev.c: Include debug.h.
17779         (debug_hooks): New.
17780         (compile_file): Set deubg_hooks based on command line options.
17781         Use the hooks unconditionally rather than conditional compilation.
17782
17783 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
17784
17785         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
17786         first_insn_after_basic_block_note instead.
17787
17788         * df.c (df_bb_refs_unlink): #if 0 out for now.
17789
17790 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
17791
17792         * ssa.h: Add prototype for ssa_const_prop
17793         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
17794         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
17795         (ssa_fast_dce): Remove unused variable
17796
17797 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17798
17799         * diagnostic.c (finish_diagnostic): Rename to
17800         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
17801         calls thourghout.
17802
17803 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
17804
17805         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
17806         .loc support.
17807
17808         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
17809         (dump_file): Only pad the demangled name with spaces if the
17810         mangled name was padded with spaces.
17811
17812 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
17813
17814         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
17815         edge detection.
17816
17817 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17818
17819         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
17820         extraction if no direct load if either EXPAND_CONST_ADDRESS or
17821         EXPAND_INITIALIZER.
17822
17823         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
17824         whether can put offset inside LO_SUM to check mode alignment, not size.
17825
17826 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17827
17828         * doc/tm.texi (Misc): Fix thinko.
17829
17830 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
17831
17832         * regmove.c (replace_in_call_usage): Fix warnings.
17833         * sched-deps.c (add_dependence): Fix warnings.
17834         * simplify-rtx.c (simplify_subreg): Likewise.
17835         Return NULL_RTX instead of NULL.
17836
17837         * reg-stack.c (emit_swap_insn): Eliminate warnings.
17838         (subst_asm_stack_regs): Likewise.
17839
17840         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
17841         warnings.
17842
17843         * dwarf2out.c (output_call_frame_info): Declare i as int.
17844         (build_abbrev_table): Declare n_alloc as int.
17845         (dwarf2out_finish): Initialize die.
17846         * except.c: Declare sjlj_funcdef_number as unsigned.
17847         (connect_post_landing_pads): Declare j as unsigned.
17848         (convert_to_eh_region_ranges): Initialize call_site.
17849         (output_function_exception_table): Initialize tt_format_size.
17850         * expr.c (move_by_pieces_1): Initialize to1.
17851         (store_constructor): Initialize minelt and maxelt.
17852         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
17853         * function.c (instantiate_decls): Avoid signed/unsigned warning.
17854
17855         * c-decl.c (combine_parm_decls): Unused, remove.
17856         * c-tree.h: Remove prototype for combine_parm_decls.
17857
17858         * reload.c (push_reload): Fix warning.
17859         (regno_clobbered_p): Likewise.
17860         * reload1.c (replace_pseudos_in_call_usage): Likewise.
17861         (reload_combine): Likewise.
17862
17863         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
17864         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
17865         warnings.
17866         * bitmap.c (bitmap_operation): Change user.
17867         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
17868
17869 2001-07-10  Eric Christopher  <echristo@redhat.com>
17870
17871         * config/mips/mips.c (override_options): Fix typo.
17872
17873 2001-07-09  Stan Shebs  <shebs@apple.com>
17874
17875         * target.h (struct gcc_target): New fields init_builtins and
17876         expand_builtin.
17877         * target-def.h (TARGET_INIT_BUILTINS): New macro.
17878         (TARGET_EXPAND_BUILTIN): New macro.
17879         (TARGET_INITIALIZER): Add them.
17880         * builtins.c: Include target.h.
17881         (expand_builtin): Use targetm.expand_builtin.
17882         (default_init_builtins): New function.
17883         (default_expand_builtin): New function.
17884         * expr.h (default_init_builtins): Declare.
17885         (default_expand_builtin): Declare.
17886         * c-common.c (c_common_nodes_and_builtins): Use
17887         targetm.init_builtins.
17888         * defaults.h (MD_INIT_BUILTINS): Remove.
17889         * Makefile.in (builtins.o): Depend on target.h.
17890
17891         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
17892         (TARGET_EXPAND_BUILTIN): Define.
17893         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
17894         (MD_EXPAND_BUILTIN): Remove.
17895
17896         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
17897         (TARGET_EXPAND_BUILTIN): Define.
17898         (c4x_init_builtins): Make endlink arg a local.
17899         (c4x_print_operand): Fix typos in adjust_address usages.
17900         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
17901         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
17902         (MD_EXPAND_BUILTIN): Remove.
17903
17904         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
17905         (TARGET_EXPAND_BUILTIN): Define.
17906         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
17907         (ix86_init_builtins): Call new function only if TARGET_MMX.
17908         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
17909         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
17910         (MD_EXPAND_BUILTIN): Remove.
17911
17912         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
17913         (TARGET_EXPAND_BUILTIN): Define.
17914         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
17915         (MD_EXPAND_BUILTIN): Remove.
17916
17917         * doc/tm.texi: Document these changes.
17918
17919 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
17920
17921         * basic-block.h (tree_node): Forward declare if needed.
17922         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
17923         (BLOCK_HEAD_TREE): Define.
17924         (BLOCK_END_TREE): Define.
17925         (struct loops): Rename field 'tree' to 'tree_root'.
17926         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
17927         'end_tree'.
17928         (flow_loops_tree_build): Rename reference to field 'tree' to
17929         'tree_root'.
17930         (flow_loops_level_compute): Ditto.
17931         * predict.c (estimate_bb_frequencies): Ditto.
17932         * tree.h (struct tree_common): Add field 'aux'.
17933
17934 2001-07-09  Stan Shebs  <shebs@apple.com>
17935
17936         * config/darwin.c (darwin_encode_section_info): Don't mark any
17937         DECL_EXTERNAL node as defined.
17938
17939 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17940
17941         * pa.c (pa_init_machine_status, pa_mark_machine_status,
17942         pa_free_machine_status, hppa_init_pic_save): Delete.
17943         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
17944         (hppa_profile_hook): Use hppa_pic_save_rtx.
17945         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
17946         hppa_init_pic_save): Delete.
17947         (hppa_pic_save_rtx): Declare.
17948         * pa.md (call, call_value, sibcall, sibcall_value,
17949         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
17950
17951 2001-07-09  Kazu Hirata  <kazu@hxi.com>
17952
17953         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
17954         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
17955
17956 2001-07-09  Andreas Jaeger  <aj@suse.de>
17957
17958         * output.h: Add declaration of final_forward_branch_p.
17959
17960         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
17961
17962         * varray.c: Include errors.h for internal_error and trim_filename
17963         declarations.
17964
17965         * Makefile.in (varray.o): Add errors.h.
17966
17967 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
17968
17969         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
17970         * optabs.c (have_add2_insn): Check whether the add insn chosen
17971         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
17972         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
17973
17974 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
17975
17976         * Makefile.in (OBJS): Add ssa-ccp.o
17977         (ssa-ccp.o): Add dependencies.
17978         * toplev.c (DFI_ssa_ccp): New dump file enum.
17979         (dump_file): Add entry for dumping after SSA CCP.
17980         (flag_ssa_ccp): New flag variable.
17981         (f_options): Add -fssa-ccp.
17982         (rest_of_compilation): Run SSA CCP if requested.
17983         * timevar.def (TV_SSA_CCP): New timevar.
17984         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
17985         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
17986         Fix minor typo in SSA DCE documentation.
17987         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
17988         Add documentation for new dump option.  Renumber dump files
17989         appropriately.
17990
17991 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
17992
17993         * emit-rtl.c (gen_highpart_mode): New.
17994         * rtl.h (gen_highpart_mode): Declare.
17995         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
17996         operand can be VOIDmode constant.
17997
17998 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
17999
18000         * flow.c (redirect_edge_and_branch_force): New.
18001         (can_fallthru): Ensure that basic blocks are succeeding.
18002         (try_optimize_cfg): Do not delete basic block if it is the last one.
18003
18004         * flow.c (try_redirect_by_replacing_jump): Do not remove
18005         jumps with side effects, unlink chain on fallthru edge;
18006         set block for new jump instruction; avoid basic block to
18007         over by line number note.
18008
18009         * flow.c (try_simplify_condjump): Verify that the condjump
18010         is not always falling through.
18011
18012         Re-install patch:
18013         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
18014
18015         * flow.c (forwarder_block_p): Fix for fallthru blocks.
18016         (try_redirect_by_replacing_jump): Update properly the count
18017         and frequency information.
18018
18019 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18020
18021         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
18022         address that is a LO_SUM specially.
18023         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
18024
18025         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
18026
18027         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
18028         (operand_subword): Use them.
18029         (change_address_1): Renamed from change_address; new arg VALIDATE.
18030         * expr.h: Reflect above changes; change_address now macro.
18031         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
18032         making MEM.
18033         * cselib.c (add_mem_for_addr): Likewise.
18034         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
18035         * regmove.c (try_apply_stack_adjustment): Likewise.
18036         * reload.c (push_reload, make_memloc): Likewise.
18037         * reload1.c (eliminate_regs): Likewise.
18038         * simplify-rtx.c (simplify_replace_rtx): Likewise.
18039         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
18040         adjust_addess.
18041         * combine.c (make_extraction, simplify_shift_const): Likewise.
18042         (gen_lowpart_for_combine): Likewise.
18043         * cse.c (gen_lowpart_if_possible): Likewise.
18044         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
18045         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
18046         * optabs.c (gen_move_insn): Likewise.
18047         * reload1.c (alter_reg): Likewise.
18048         * simplify-rtx.c (simplify_subreg): Likewise.
18049         * stmt.c (expand_anon_union_decl): Likewise.
18050         * recog.c (validate_replace_rtx_1): Likewise.
18051         (expr.h): Include.
18052         * Makefile.in (recog.o): Add $(EXPR_H).
18053         * explow.c (stabilize): Call replace_equiv_address.
18054         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18055         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
18056
18057 2001-07-03  Andrew Haley  <aph@redhat.com>
18058
18059         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
18060         the mode of the memory location.
18061
18062 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
18063
18064         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
18065
18066 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
18067
18068         * final.c (output_addr_const): Use target opening and
18069         closing parentheses.
18070         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
18071         defaults, add to TARGET_ASM_OUT.
18072         * target.h (struct gcc_target): Add open_paren and close_paren.
18073         * doc/md.texi: Update.
18074         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
18075         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
18076         TARGET_ASM_CLOSE_PAREN.
18077         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
18078         Override.
18079         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
18080         Override.
18081         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
18082         * config/a29k/a29k.h: Similarly.
18083         * config/alpha/alpha.h: Similarly.
18084         * config/arc/arc.h: Similarly.
18085         * config/arm/aof.h: Similarly.
18086         * config/arm/aout.h: Similarly.
18087         * config/avr/avr.h: Similarly.
18088         * config/c4x/c4x.h: Similarly.
18089         * config/clipper/clipper.h: Similarly.
18090         * config/convex/convex.h: Similarly.
18091         * config/d30v/d30v.h: Similarly.
18092         * config/dsp16xx/dsp16xx.h: Similarly.
18093         * config/elxsi/elxsi.h: Similarly.
18094         * config/fr30/fr30.h: Similarly.
18095         * config/h8300/h8300.h: Similarly.
18096         * config/i370/i370.h: Similarly.
18097         * config/i386/i386.h: Similarly.
18098         * config/i860/i860.h: Similarly.
18099         * config/i960/i960.h: Similarly.
18100         * config/ia64/ia64.h: Similarly.
18101         * config/m32r/m32r.h: Similarly.
18102         * config/m68hc11/m68hc11.h: Similarly.
18103         * config/m68k/m68k.h: Similarly.
18104         * config/m88k/m88k.h: Similarly.
18105         * config/mcore/mcore.h: Similarly.
18106         * config/mips/mips.h: Similarly.
18107         * config/mn10200/mn10200.h: Similarly.
18108         * config/mn10300/mn10300.h: Similarly.
18109         * config/ns32k/ns32k.h: Similarly.
18110         * config/pa/pa.h: Similarly.
18111         * config/pdp11/pdp11.h: Similarly.
18112         * config/pj/pj.h: Similarly.
18113         * config/romp/romp.h: Similarly.
18114         * config/rs6000/rs6000.h: Similarly.
18115         * config/sh/sh.h: Similarly.
18116         * config/sparc/sparc.h: Similarly.
18117         * config/v850/v850.h: Similarly.
18118         * config/vax/vax.h: Similarly.
18119         * config/we32k/we32k.h: Similarly.
18120
18121 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
18122
18123         * doc/c-tree.texi: Document representation of attributes.
18124
18125 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18126
18127         * doc/tm.texi: Update some places for the rename of target to
18128         targetm.  Fix typo.
18129
18130 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18131
18132         * target.h (struct gcc_target): Add insert_attributes.
18133         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
18134         (TARGET_INITIALIZER): Update.
18135         * tree.c, tree.h (default_insert_attributes): New function.
18136         Update comments on other default functions to refer to targetm,
18137         not target.
18138         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
18139         TARGET_INSERT_ATTRIBUTES.
18140         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
18141         * c-common.c (decl_attributes): Use targetm.insert_attributes.
18142         Don't use PRAGMA_INSERT_ATTRIBUTES.
18143         * Makefile.in (c-common.o): Depend on $(TARGET_H).
18144         * c-decl.c (start_decl, start_function): Don't call
18145         SET_DEFAULT_DECL_ATTRIBUTES.
18146         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
18147         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
18148         declare.
18149         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
18150         (c4x_check_attribute): Avoid modifying attribute list itself.
18151         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
18152         Make static.
18153         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
18154         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
18155         declare.
18156         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
18157         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
18158         Make static.
18159         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
18160         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
18161         declare.
18162         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
18163         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
18164         Adjust parameters.  Make static.
18165
18166 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
18167
18168         * c-common.c (decl_attributes): Only take a single attributes
18169         parameter.
18170         * c-common.h (decl_attributes): Update prototype.
18171         * c-decl.c (start_decl, start_function): Only take a single
18172         attributes parameter.  Update calls to decl_attributes.
18173         (finish_struct, finish_enum): Update calls to decl_attributes.
18174         (push_parm_decl): Expect unified list of attributes.  Update call
18175         to decl_attributes.
18176         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
18177         notype_nested_function, component_declarator,
18178         component_notype_declarator, label): Update calls to
18179         decl_attributes.
18180         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
18181         lists that are passed to push_parm_decl.
18182         * c-tree.h (start_function, start_decl): Update prototypes.
18183         * config/sh/sh-protos.h, config/sh/sh.c
18184         (sh_pragma_insert_attributes): Only take a single attributes
18185         parameter.
18186         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
18187         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
18188         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
18189         build_module_descriptor, generate_static_references,
18190         generate_strings, build_selector_translation_table,
18191         generate_descriptor_table, generate_protocols,
18192         generate_ivars_list, generate_dispatch_table,
18193         generate_protocol_list, generate_category,
18194         generate_shared_structures, really_start_method, add_objc_decls,
18195         generate_classref_translation_entry): Update calls to start_decl
18196         and start_function.
18197         (build_tmp_function_decl, start_method_def): Unify attribute lists
18198         that are passed to push_parm_decl.
18199
18200 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
18201
18202         * final.c (no_asm_to_stream): New.
18203         (final_scan_insn): Use target structures for prologue ends
18204         and epilogue starts.
18205         * output.h (no_asm_to_stream): New.
18206         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
18207         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
18208         (TARGET_ASM_OUT): Update.
18209         * target.h (struct gcc_target): New members function_end_prologue
18210         and function_begin_epilogue.
18211         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
18212         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
18213         * config/alpha/alpha.c (output_end_prologue): Rename to
18214         alpha_output_function_end_prologue.  Use in target struct
18215         and make static.
18216         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
18217         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
18218         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
18219         ia64_output_function_end_prologue.  Use in target struct
18220         and make static.
18221         (ia64_function_prologue, ia64_funciton_epilogue): Rename
18222         mistyped prototypes.
18223         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
18224         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
18225         Delete.
18226         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
18227         an use in target struct, make static.
18228         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
18229         Delete.
18230
18231 2001-07-08  Richard Henderson  <rth@redhat.com>
18232
18233         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
18234
18235 2001-07-08  Richard Henderson  <rth@redhat.com>
18236
18237         * config/i386/i386.md: Remove constraints strings from define_split
18238         and define_peephole2 patterns.
18239         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
18240         (eh_return): Use them.
18241
18242 2001-07-08  Richard Henderson  <rth@redhat.com>
18243
18244         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
18245         Document MD_FALLBACK_FRAME_STATE_FOR.
18246
18247 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18248
18249         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
18250         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
18251         elimination.
18252         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
18253
18254 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
18255
18256         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
18257         of the label inside NAME as opposed to just the end of NAME.
18258
18259 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
18260
18261         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
18262         * config/alpha/alpha.c (alpha_init_machine_status,
18263         alpha_mark_machine_status, alpha_free_machine_status): Delete.
18264         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
18265         (vms_valid_decl_attribute_p): Make static, conditionally compile.
18266         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
18267
18268 2001-07-06  Stan Shebs  <shebs@apple.com>
18269
18270         * target.h (targetm): Rename global from "target", so as not to
18271         conflict with local variables.
18272         * c-decl.c: Ditto.
18273         * c-typeck.c: Ditto.
18274         * final.c: Ditto.
18275         * tree.c: Ditto.
18276         * cp/decl.c: Ditto.
18277         * cp/decl2.c: Ditto.
18278         * cp/typeck.c: Ditto.
18279         * 1750a/1750a.c: Ditto.
18280         * a29k/a29k.c: Ditto.
18281         * arc/arc.c: Ditto.
18282         * arm/arm.c: Ditto.
18283         * avr/avr.c: Ditto.
18284         * clipper/clipper.c: Ditto.
18285         * convex/convex.c: Ditto.
18286         * d30v/d30v.c: Ditto.
18287         * dsp16xx/dsp16xx.c: Ditto.
18288         * elxsi/elxsi.c: Ditto.
18289         * fr30/fr30.c: Ditto.
18290         * h8300/h8300.c: Ditto.
18291         * i370/i370.c: Ditto.
18292         * i386/i386.c: Ditto.
18293         * i860/i860.c: Ditto.
18294         * i960/i960.c: Ditto.
18295         * ia64/ia64.c: Ditto.
18296         * m32r/m32r.c: Ditto.
18297         * m68hc11/m68hc11.c: Ditto.
18298         * m68k/m68k.c: Ditto.
18299         * m88k/m88k.c: Ditto.
18300         * mips/mips.c: Ditto.
18301         * ns32k/ns32k.c: Ditto.
18302         * pa/pa.c: Ditto.
18303         * pdp11/pdp11.c: Ditto.
18304         * romp/romp.c: Ditto.
18305         * rs6000/rs6000.c: Ditto.
18306         * sh/sh.c: Ditto.
18307         * sparc/sparc.c: Ditto.
18308         * vax/vax.c: Ditto.
18309         * we32k/we32k.c: Ditto.
18310         * doc/tm.texi: Update the manual to match.
18311
18312 2001-07-06  Richard Henderson  <rth@redhat.com>
18313
18314         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
18315         DWARF2_UNWIND_INFO not just whether it is defined.
18316
18317 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
18318
18319         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
18320         call to simplify_binary_operation returns a new pattern.
18321
18322 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
18323
18324         * glimits.h (__SHRT_MAX__): New.
18325         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
18326         (SHRT_MAX): Define in terms of __SHRT_MAX__.
18327
18328 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
18329
18330         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
18331         avoid warnings.
18332
18333 2001-07-06  Richard Henderson  <rth@redhat.com>
18334
18335         * bitmap.c (bitmap_release_memory): Move adjacent to the
18336         allocation functions.
18337         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
18338         the implementation.  Binary search for the set bit.
18339         (bitmap_union_of_diff): Allocate the temporary on the stack
18340         instead of using xmalloc.
18341
18342 2001-07-06  Richard Henderson  <rth@redhat.com>
18343
18344         * genrecog.c (validate_pattern): Warn for constraints in
18345         define_{expand,split,peephole2}.  Remove strict_low_part
18346         before looking up match_dup.
18347
18348 2001-07-06  DJ Delorie  <dj@redhat.com>
18349
18350         * doc/gcc.texi (Makefile): Rename to be a more general purpose
18351         chapter about various build hints and history.  Add section
18352         talking about the various types of native and cross builds.
18353
18354 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
18355
18356         * Makefile.in (final.o): Depend on target.h.
18357         * final.c: Include target.h.
18358         (default_function_pro_epilogue): New.
18359         (final_start_function): Use target structure for function prologues.
18360         (final_end_function): Use target structure for function epilogues.
18361         * fold-const.c (real_hex_to_f): Constify s and p.
18362         * output.h (default_function_pro_epilogue): New.
18363         * real.h (real_hex_to_f): Update prototype.
18364         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
18365         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
18366         (TARGET_INITIALIZER): Update.
18367         * target.h (gcc_target): Add struct asm_out.
18368         * doc/tm.texi: Update.
18369
18370 config:
18371         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
18372         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
18373         in cpu/cpu.c, or rename old functions consistently.  Take
18374         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
18375         redundant macros and prototypes.  Make new functions static.
18376
18377         * 1750a/1750a.c: Similarly.
18378         * 1750a/1750a.h: Similarly.
18379         * a29k/a29k-protos.h: Similarly.
18380         * a29k/a29k.c: Similarly.
18381         * a29k/a29k.h: Similarly.
18382         * arc/arc-protos.h: Similarly.
18383         * arc/arc.c: Similarly.
18384         * arc/arc.h: Similarly.
18385         * arm/arm-protos.h: Similarly.
18386         * arm/arm.c: Similarly.
18387         * arm/arm.h: Similarly.
18388         * avr/avr-protos.h: Similarly.
18389         * avr/avr.c: Similarly.
18390         * avr/avr.h: Similarly.
18391         * clipper/clipper-protos.h: Similarly.
18392         * clipper/clipper.c: Similarly.
18393         * clipper/clipper.h: Similarly.
18394         * convex/convex.c: Similarly.
18395         * convex/convex.h: Similarly.
18396         * d30v/d30v-protos.h: Similarly.
18397         * d30v/d30v.c: Similarly.
18398         * d30v/d30v.h: Similarly.
18399         * d30v/d30v.md: Similarly.
18400         * dsp16xx/dsp16xx-protos.h: Similarly.
18401         * dsp16xx/dsp16xx.c: Similarly.
18402         * dsp16xx/dsp16xx.h: Similarly.
18403         * elxsi/elxsi.c: Similarly.
18404         * elxsi/elxsi.h: Similarly.
18405         * fr30/fr30.c: Similarly.
18406         * fr30/fr30.md: Similarly.
18407         * h8300/h8300-protos.h: Similarly.
18408         * h8300/h8300.c: Similarly.
18409         * h8300/h8300.h: Similarly.
18410         * i370/i370-protos.h: Similarly.
18411         * i370/i370.c: Similarly.
18412         * i370/i370.h: Similarly.
18413         * i386/i386.c: Similarly.
18414         * i386/osf1elf.h: Similarly.
18415         * i386/osfrose.h: Similarly.
18416         * i860/i860-protos.h: Similarly.
18417         * i860/i860.c: Similarly.
18418         * i860/i860.h: Similarly.
18419         * i960/i960-protos.h: Similarly.
18420         * i960/i960.c: Similarly.
18421         * i960/i960.h: Similarly.
18422         * ia64/ia64-protos.h: Similarly.
18423         * ia64/ia64.c: Similarly.
18424         * ia64/ia64.h: Similarly.
18425         * m32r/m32r-protos.h: Similarly.
18426         * m32r/m32r.c: Similarly.
18427         * m32r/m32r.h: Similarly.
18428         * m68hc11/m68hc11-protos.h: Similarly.
18429         * m68hc11/m68hc11.c: Similarly.
18430         * m68hc11/m68hc11.h: Similarly.
18431         * m68k/crds.h: Similarly.
18432         * m68k/dpx2.h: Similarly.
18433         * m68k/m68k-protos.h: Similarly.
18434         * m68k/m68k.c: Similarly.
18435         * m68k/m68k.h: Similarly.
18436         * m68k/news.h: Similarly.
18437         * m88k/m88k-protos.h: Similarly.
18438         * m88k/m88k.c: Similarly.
18439         * m88k/m88k.h: Similarly.
18440         * mips/mips-protos.h: Similarly.
18441         * mips/mips.c: Similarly.
18442         * mips/mips.h: Similarly.
18443         * ns32k/merlin.h: Similarly.
18444         * ns32k/ns32k.c: Similarly.
18445         * ns32k/ns32k.h: Similarly.
18446         * ns32k/tek6000.h: Similarly.
18447         * pa/pa-protos.h: Similarly.
18448         * pa/pa.c: Similarly.
18449         * pa/pa.h: Similarly.
18450         * pdp11/2bsd.h: Similarly.
18451         * pdp11/pdp11-protos.h: Similarly.
18452         * pdp11/pdp11.c: Similarly.
18453         * pdp11/pdp11.h: Similarly.
18454         * romp/romp-protos.h: Similarly.
18455         * romp/romp.c: Similarly.
18456         * romp/romp.h: Similarly.
18457         * rs6000/rs6000-protos.h: Similarly.
18458         * rs6000/rs6000.c: Similarly.
18459         * rs6000/rs6000.h: Similarly.
18460         * rs6000/sysv4.h: Similarly.
18461         * sh/sh-protos.h: Similarly.
18462         * sh/sh.c: Similarly.
18463         * sh/sh.h: Similarly.
18464         * sparc/sparc-protos.h: Similarly.
18465         * sparc/sparc.c: Similarly.
18466         * sparc/sparc.h: Similarly.
18467         * vax/vax.c: Similarly.
18468         * vax/vax.h: Similarly.
18469         * vax/vms.h: Similarly.
18470         * we32k/we32k.c: Similarly.
18471         * we32k/we32k.h: Similarly.
18472
18473 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
18474
18475         * basic-block.h (first_insn_after_basic_block_note): Declare.
18476         * flow.c (first_insn_after_basic_block_note): Define.  Moved
18477         from...
18478         * ssa.c (first_insn_after_basic_block_note): Remove.
18479         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
18480         necessary.
18481         (ssa_eliminate_dead_code): Properly update the CFG and PHI
18482         nodes when we find a dead conditional branch.  Insert BARRIERs
18483         after any blocks with no successors, but which do not have
18484         any BARRIERs.
18485
18486 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
18487
18488         * varray.c (varray_check_failed): Use internal_error.
18489
18490 2001-07-05  Andrew Haley  <aph@redhat.com>
18491
18492         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
18493         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
18494         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
18495
18496 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
18497
18498         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
18499         reference if the target constant is also a SYMBOL_REF.
18500
18501 2001-07-05  Eric Christopher  <echristo@redhat.com>
18502
18503         * config/mips/mips.h (MASK_MIPS3900): Remove.
18504         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
18505         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
18506         (TARGET_MIPS3900): Change to use mips_arch.
18507         (TARGET_MIPS4000): New.
18508         (TARGET_MIPS4100): New.
18509         (TARGET_MIPS4300): New.
18510         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
18511         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
18512         for -mipsX.
18513         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
18514         (ISA_HAS_BRANCHLIKELY): To here.
18515         (CC1_CPU_SPEC):  New.
18516         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
18517         (mips_arch_string): Declare.
18518         (mips_arch): Declare.
18519         (TARGET_OPTIONS): Add -march and -mtune.
18520
18521         * config/mips/mips.c (mips_arch_string): New.
18522         (mips_arch): New.
18523         (override_options): Handle -march for codegen and -mtune
18524         for scheduling. Use mips_arch. Move tx39 target default here.
18525         (mips_parse_cpu): Move error message to override_options.
18526
18527         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
18528
18529         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
18530
18531         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
18532         (MIPS Options): Ditto.  Change mcpu entry to historical text.
18533
18534 2001-07-05  H.J. Lu  (hjl@gnu.org)
18535
18536         * config/mips/mips.c (mips_parse_cpu): New function to parse
18537         -march=*/-mcpu=*.
18538
18539 2001-07-05  Jim Wilson  <wilson@redhat.com>
18540
18541         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
18542         * config/ia64/t-ia64: Likewise.
18543         (LIB1ASMFUNCS): Update comment.
18544
18545 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
18546
18547         * doc/install.texi (Install GCC: Binaries): Fix typo.
18548
18549 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18550
18551         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
18552         reference using the stack pointer, adjust it since we push Y
18553         temporarily.
18554         ("*ashrsi3"): Likewise.
18555         ("*lshrsi3"): Likewise.
18556
18557 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18558
18559         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
18560         when -fomit-frame-pointer is used.
18561
18562 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
18563
18564         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
18565         (try_redirect_by_replacing_jump): Reverse updating properly the
18566         count and frequency information.  Reverse removing cc0 setter.
18567         (forwarder_block_p): Reverse fixing for fallthru blocks.
18568
18569 2001-07-05  DJ Delorie  <dj@redhat.com>
18570
18571         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
18572         (translate_options): If the above is defined, use it to map
18573         given options to new options.
18574         * doc/tm.texi: Document it.
18575
18576 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
18577             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18578
18579         * doc/invoke.texi (Optimize Options): Document that -fgcse may
18580         cause programs using computed gotos to run more slowly.
18581
18582 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18583
18584         * doc/install.texi (Specific): Markup, spelling and typo fixes.
18585         Fixed sorting.
18586         Consistently require binutils 2.11.2, not prereleases.
18587         (Specific, decstation-*): Canonicalize as mips-dec-*.
18588         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
18589         always necessary.
18590         (Specific, m68k-altos): Removed reference to README.altos, deleted.
18591         (Specific, mips-*): Reword MIPS C compiler requirements.
18592         (Specific, powerpc*-*-*): New, mention --with-cpu once.
18593         (Specific, sunv5): Removed, obsolete.
18594
18595 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
18596
18597         * dwarf2out.c (output_loc_list): Use an all ones mask for
18598         .text asm output and don't rely on long long
18599         literals. Reformat some long lines.
18600
18601 2001-07-05  Andreas Jaeger  <aj@suse.de>
18602
18603         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
18604         section.
18605
18606 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18607
18608         * dwarf2out.c (dwarf2out_define): Update comment.
18609         (dwarf2out_undef): Ditto.
18610         (dwarf2out_start_source_file): Ditto.
18611         (dwarf2out_end_source_file): Ditto.
18612         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
18613         since we never call the start/end debug hook for the primary file.
18614
18615 2001-07-04  Kazu Hirata  <kazu@hxi.com>
18616
18617         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
18618         from shll.
18619
18620 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
18621
18622         * cppinit.c (remove_dup_dirs): Inform if a system include
18623         directory is being reordered.
18624         * doc/invoke.texi (Directory Options): GCC warns if you hide a
18625         system include.
18626         * doc/cpp.texi (Search Paths): Likewise.
18627         * doc/gcc.texi (Interoperation): Remove information about
18628         -I/usr/include.
18629
18630 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
18631
18632         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
18633         (VARRAY_TOP_CHAR_PTR): Likewise.
18634
18635 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18636
18637         * gcc.c (process_command): Don't assign elements of a const char*.
18638
18639 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18640
18641         * emit-rtl.c (change_address): Don't abort if invalid address while
18642         reload is in progress.
18643
18644 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18645
18646         * c-lex.c (cb_file_change): Pass line number to
18647         debug_start_source_file.
18648         (cb_undefine): Pass correct line number to debug_undef.
18649
18650         * toplev.c (debug_start_source_file): Add line number to
18651         parameters. Pass it along to dwarf2out_start_source_file.
18652         (decode_g_option): Stop resetting debug level back to normal when
18653         we change debug formats, unless the current level is
18654         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
18655         3).
18656
18657         * toplev.h (debug_start_source_file): Add line number to
18658         parameters.
18659
18660         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
18661         parameters.
18662
18663         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
18664         parameters.
18665         Output debug_macinfo data for starting file if requested.
18666         (dwarf2out_end_source_file): Output debug_macinfo data for ending
18667         file if requested.
18668         (dwarf2out_define): Output debug_macinfo data for defining a macro
18669         if requested.
18670         (dwarf2out_undef): Output debug_macinfo data for undefining a
18671         macro if requested.
18672         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
18673         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
18674         (macinfo_section_label): New. DWARF2 macro info section label.
18675         (dwarf2out_init): If we want macro info, output the start label
18676         for the section.
18677         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
18678         attribute to the compilation unit die pointing to the macro info.
18679
18680 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
18681
18682         * dwarf2out.c (new_loc_list): Move to inside #ifdef
18683         DWARF2_DEBUGGING_INFO.
18684         (add_loc_descr_to_loc_list): Ditto.
18685         (output_loc_list): Ditto.
18686         Also, fix thinko in curr not being initialized.
18687         (gen_internal_sym): Ditto.
18688
18689 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18690
18691         * emit-rtl.c (replace_equiv_address): New function.
18692         * expr.h (replace_equiv_address): New declaration.
18693         * explow.c (validize_mem): Call it instead of change_address and
18694         also call if -fforce-addr and address is constant.
18695         * expr.c: Replace more calls to change_address with adjust_address
18696         and/or replace_equiv_address or to validize_mem.
18697         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
18698         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
18699         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
18700         * config/i370/i370.md, config/i860/i860.md: Likewise.
18701         * config/i960/i960.md, config/mips/mips.c: Likewise.
18702         * config/mips/mips.md, config/pa/pa.md: Likewise.
18703         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
18704         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
18705
18706 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18707
18708         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
18709
18710         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
18711         function.
18712
18713 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
18714
18715         * doc/include: New directory.
18716         * doc/fdl.texi: Move to doc/include/fdl.texi.
18717         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
18718         * doc/include/funding.texi, doc/include/gpl.texi: New files.
18719         * doc/gcc.texi: Use funding.texi and gpl.texi.
18720         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
18721         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
18722         Update dependencies and use -I $(docdir)/include.
18723
18724 2001-07-04  Anthony Green  <green@redhat.com>
18725
18726         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
18727
18728 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18729
18730         * doc/install.texi (sparc64-*-*): Remove garbage.
18731
18732 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
18733
18734         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
18735         Fix typo in last change to use adjust_address.
18736
18737 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18738
18739         * doc/install.texi (Specific): Update information for *-*-solaris*.
18740
18741 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18742
18743         * explow.c (plus_constant_wide): Reinitialize Y for restart.
18744
18745 2001-07-03  Stan Shebs  <shebs@apple.com>
18746
18747         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
18748         case for flag_no_mach_text_sections.
18749         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
18750         * config/darwin.c (flag_no_mach_text_sections): Remove.
18751         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
18752
18753 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18754
18755         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
18756         and avoid checking for constant as first operand.
18757         * recog.c (find_constant_term_loc): No longer static.
18758         (adj_offettable_operand): Delete.
18759         * rtl.h (adj_offsettable_operand): Delete declaration.
18760         (find_constant_term): Add declaration.
18761         * caller-save.c: Replace calls to adj_offsettable_operand with calls
18762         to adjust_address.
18763         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
18764         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
18765         * config/i386/i386.c, config/i386/i386.md: Likewise.
18766         * config/i860/i860.c, config/i960/i960.c: Likewise.
18767         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
18768         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
18769         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
18770         * config/mips/mips.c, config/mips/mips.md: Likewise.
18771         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
18772         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
18773         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
18774         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
18775         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
18776         * config/ns32k/ns32k.md: Likewise.
18777
18778 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
18779
18780         * rtl.c (copy_rtx): Handle 'T' format letter.
18781         * gensupport.c (collect_insn_data): Likewise.
18782         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
18783
18784 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
18785
18786         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
18787         -B option.  Use 'dir' not 'foo' as example directory name.
18788
18789 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18790
18791         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18792         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
18793
18794 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
18795
18796         * doc/cppinternals.texi: Improve formatting and logical markup.
18797
18798 2001-07-03  Andreas Jaeger  <aj@suse.de>
18799
18800         * Makefile.in (insn-recog.o): Add dependency on reload.h.
18801
18802         * genrecog.c (write_header): Include reload.h for prototypes in
18803         insn-recog.c.
18804
18805 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18806
18807 config:
18808         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
18809         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
18810         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
18811         i386_pe_valid_type_attribute_p): Add.
18812         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
18813         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
18814
18815 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18816
18817         * explow.c (plus_constant_wide, case LO_SUM): New case.
18818         (plus_constant_for_output_wide): Delete.
18819         * rtl.h (plus_constant_for_output): Delete.
18820         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
18821         instead of plus_constant_for_output.
18822         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
18823         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
18824         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
18825         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
18826         * config/sparc/sparc.md: Likewise.
18827         Convert some change_address calls to adjust_address.
18828
18829 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
18830
18831         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
18832         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
18833         documentation of -std and -Wwrite-strings.
18834
18835 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
18836
18837         * cse.c (canon_hash): Don't register registers in very small
18838         register classes, as extending their lifetime might cause
18839         reload to fail.
18840
18841 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
18842
18843         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
18844
18845         * flow.c (forwarder_block_p): Fix for fallthru blocks.
18846         (try_redirect_by_replacing_jump): Update properly the count
18847         and frequency information.
18848
18849 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
18850
18851         * toplev.c (dump_file_index): Move SSA dumps just after first
18852         jump dump.
18853         (dump_file): Corresponding changes.
18854         (rest_of_compilation): Move SSA path to just after the first
18855         jump pass.
18856         * doc/gcc.texi (Passes): Update due to movement of SSA path.
18857         * doc/invoke.texi: Update dump file #s as they were completely
18858         out of date with reality.
18859
18860 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
18861
18862         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
18863
18864         * expr.c (emit_move_insn_1): Deal with non-default
18865         STACK_PUSH_CODE.
18866
18867         * expr.c (emit_single_push_insn): Fix warning.
18868
18869 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
18870
18871         * expr.c (emit_move_insn_1): Avoid modifying
18872         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
18873
18874 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18875
18876         * emit-rtl.c (adjust_address): New function.
18877         * expr.h (adjust_address): Add declaration.
18878         * builtins.c: Replace some calls to change_address with calls to it
18879         or to validize_mem.
18880         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
18881         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
18882         * config/arm/arm.c, config/convex/convex.c: Likewise.
18883         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
18884         * config/i386/i386.c, config/i386/i386.md: Likewise.
18885         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
18886         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
18887         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
18888         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
18889         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
18890
18891 2001-07-02  Jim Wilson  <wilson@redhat.com>
18892
18893         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
18894
18895 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
18896
18897         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
18898         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
18899
18900 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
18901
18902         * cppinit.c (lang_defaults): New table.
18903         (set_lang): Just read from lang_defaults into the live options
18904         structure.
18905
18906 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
18907
18908         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
18909         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
18910         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
18911
18912 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18913
18914         * doc/install.texi: Various spelling and markup fixes.
18915         (Installing GCC): Component specific installation instructions are
18916         gone.
18917         Fix reference.
18918         Warn about removing old install dir in the presence of shared libs.
18919         (Configuration): Invoke with options target to match configure
18920         --help.
18921         Consistently refer to gas, gld pathnames.
18922         Invert --enable-multilib documentation.
18923         Remove references to old compiler versions.
18924
18925 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18926
18927         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
18928
18929 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18930
18931         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
18932         section.
18933         (Specific, mips*-sgi-irix5): Note IDO download.
18934         Reworded MIPS C hints.
18935         Use GNU as instead of GAS.
18936         Markup fixes.
18937         Removed SGI Freeware reference, IRIX 6 only.
18938         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
18939         Note N64 library requirement/workaround.
18940         Update O32 hints.
18941         Complete list of structure passing bug victims.
18942
18943 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18944
18945         * doc/install.texi: Remove CVS Id.
18946
18947 2001-07-02  Andreas Jaeger  <aj@suse.de>
18948
18949         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
18950         (find_inherently_necessary): Remove unused variable.
18951
18952 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
18953
18954         * c-common.h (TDI_inlined): New ast dump phase.
18955         (dump_flag_name): New function.
18956         * c-dump.c (dump_files): Add inlined phase.
18957         (dump_flag_name): Define.
18958         * doc/invoke.texi (-fdump-ast-inlined): Document.
18959
18960 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18961
18962         * stor-layout.c (layout_decl): Revert change to handling of alignment
18963         in packed types.
18964
18965 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18966
18967         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
18968         for FIELD_DECL.
18969
18970 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
18971
18972         * doc/tm.texi (FUNCTION_ARG): Document that the last call
18973         is special.
18974
18975 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
18976
18977         * tlink.c (recompile_files): Remove COMPILER_PATH and
18978         LIBRARY_PATH from the environment.
18979
18980 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
18981
18982         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
18983         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
18984         enumerators.
18985         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
18986
18987         * c-parse.in (OBJC_STRING): Kill.
18988         (objc_string): Decompose to [objc_string] '@' STRING.
18989         (reswords): Take the leading '@' off all the Objective C keywords.
18990         (objc_rid_sans_at): Kill.
18991         (init_reswords): Don't initialize it.
18992         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
18993         (_yylex): Kill reconsider label.  Look ahead one token after
18994         an '@'; if we get an identifier, check whether it's an
18995         Objective C @-keyword.  If so, return the keyword.  Otherwise,
18996         put back the token and return the '@' as a terminal.
18997
18998         * cpplib.c (lex_macro_node): Remove unnecessary check for
18999         leading '@' on identifier.  Clarify control flow and commentary.
19000
19001 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19002
19003         * cse.c (new_label_ref): Variable deleted.
19004         (insert): Remove set of new_label_ref.
19005         (check_for_label_ref): New function.
19006         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
19007
19008 See ChangeLog.5 for earlier changes.