OSDN Git Service

In gcc/:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-12-02  Geoff Keating  <geoffk@redhat.com>
2
3         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
4         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
5         rather than simplify_subreg.  Check for volatile-ness.  Check that
6         we're not splitting one slow operation into two slow operations.
7
8 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
9
10         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
11         before shifting.
12
13 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14
15         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
16         capital from diagnostics.
17         * c-lex.c (cb_file_change): Similarly.
18         * c-parse.in : Similarly.
19         * cfgrtl.c (verify_flow_info): Similarly.
20         * collect2.c: Similarly.
21         * cppfiles.c (find_include_file): Similarly.
22         * cppinit.c (cpp_handle_option): Similarly.
23         * cpplex.c (cpp_spell_token): Similarly.
24         * cppmain.c (do_preprocessing): Similarly.
25         * gcc.c (translate_options, process_command, do_spec1,
26         main, pfatal_execute): Similarly.
27         * genattr.c (main): Similarly.
28         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
29         write_test_expr, main): Similarly.
30         * gencodes.c (main): Similarly.
31         * genconfig.c (main): Similarly.
32         * genconstants.c (main): Similarly.
33         * genemit.c (main): Similarly.
34         * genextract.c (main): Similarly.
35         * genflags.c (main): Similarly.
36         * genopinit.c (main): Similarly.
37         * genoutput.c (process_template, main): Similarly.
38         * genpeep.c (main): Similarly.
39         * genrecog.c (main): Similarly.
40         * gensupport.c (is_predicable, identify_predicable_attribute,
41         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
42         * ggc-page.c (alloc_anon): Similarly.
43         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
44         parse_begin, parse_bend, parse_def, parse_end, parse_file,
45         parse_stabs_common, parse_stabs, write_varray, write_object,
46         read_seek, copy_object, main, error): Similarly.
47         * profile.c (compute_branch_probabilities): Similarly.
48         * reg-stack.c (check_asm_stack_operands): Similarly.
49         * reload.c (find_reloads): Similarly.
50         * reload1.c (spill_failure, failed_reload): Similarly.
51         * rtl-error.c (_fatal_insn_not_found): Similarly.
52         * toplev.c (read_integral_parameter, crash_signal,
53         decode_f_option, set_target_switch, parse_options_and_default_flags)
54         : Similarly.
55         * tradcif.y (parse_number, yylex): Similarly.
56         * tradcpp.c (main, fancy_abort): Similarly.
57         * tree.c (tree_check_failed): Similarly.
58         * varray.c (varray_check_failed): Similarly.
59         * xcoffout.c (xcoff_output_standard_types): Similarly.
60 objc:
61         * objc-act.c (get_object_ref, lookup_and_install_protocols,
62         build_objc_string_object, objc_declare_alias, build_ivar_chain,
63         finish_message_expr, build_protocol_expr, is_public,
64         start_class): Similarly.
65
66 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
67
68         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
69         trailing period from diagnostics.
70         * c-lex.c (cb_file_change): Similarly.
71         * cppmacro.c (check_trad_stringification): Similarly.
72         * gcc.c (do_spec_1): Similarly.
73         * genattr.c (main): Similarly.
74         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
75         * gencodes.c (main): Similarly.
76         * genconfig.c (main): Similarly.
77         * genconstants.c (main): Similarly.
78         * genemit.c (main): Similarly.
79         * genextract.c (main): Similarly.
80         * genopinit.c (main): Similarly.
81         * genoutput.c (main): Similarly.
82         * genpeep.c (main): Similarly.
83         * genrecog.c (main): Similarly.
84         * mips-tfile.c (add_file, error): Similarly.
85         * profile.c (init_branch_prob): Similarly.
86         * reload1.c (spill_failure): Similarly.
87         * stmt.c (parse_output_constraint): Similarly.
88         * varasm.c (assemble_variable): Similarly.
89
90 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
91
92         * m68k.c (init_FPA_table): Provide static prototype.
93         * mips/abi64.h (mips_function_value): Move prototype to ...
94         * mips-protos.h (mips_function_value): ... here.
95         * mips.c: Include halfpic.h.
96         * output.h (rdata_section): Prototype.
97
98         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
99         * m88k.c (m88k_svr3_asm_out_constructor,
100         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
101         !OBJECT_FORMAT_ELF.
102         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
103         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
104         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
105
106 2001-12-01  Geoff Keating  <geoffk@redhat.com>
107
108         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
109         LO_SUM addresses less than word size are not legitimate,
110         because they lead to invalid SUBREGs.
111         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
112
113 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
114
115         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
116         while scanning for multiple back edges.
117
118 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
119
120         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
121         * config/rs6000/tramp.asm: Use it.
122
123 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
124
125         * gencheck.c, gengenrtl.c: Don't define xmalloc.
126         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
127         xmalloc.
128
129 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
130
131         * pa.c (output_ascii): Cast `p' to unsigned char.
132
133 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
134
135         * config/rs6000/rs6000.c (altivec_expand_builtin): add 
136         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf, 
137         *_16qi,_8hi, rename existing V4SI ones to *_4si.
138         (altivec_init_builtins): Ditto.
139         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
140         
141         * config/rs6000/rs6000.md: Add attribute types vecsimple,
142         veccomplex, vecfloat, and vecperm, for altivec instructions.  
143         Modify altivec patterns to use approriate attribute type.
144         Modify altivec patterns to match RTL operations where approriate
145         (IE no unspec where we can avoid it).
146         Add vector unit scheduling for ppc7450.
147         Rename patterns to what they are where approriate 
148         (altivec_vaddfp->addv4sf3, etc)
149
150         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
151         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
152
153         * config/rs6000/sysv4.h: Add -mcpu=7450.
154
155         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed 
156         _builtin_altivec_ld_interal function.
157
158 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
159
160         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
161         strchr, strrchr, isascii, gettimeofday.
162         * config.in, configure: Regenerate.
163
164 2001-11-30  Zoltan Hidvegi <hzoli@hzoli.2y.net>
165
166         * unroll.c (unroll_loop): Correct special exit cases.
167
168 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
169
170         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
171         accept DFmode and DImode only.
172
173 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
174
175         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
176         (STACK_DYNAMIC_OFFSET): Same.
177
178 2001-11-30  Richard Henderson  <rth@redhat.com>
179
180         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
181
182 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
183
184         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
185         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
186         the values in call_used_registers.
187
188 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
189
190         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
191         gthr-single.
192
193 2001-11-30  Jason Merrill  <jason@redhat.com>
194
195         * dwarf2out.c (is_cxx): New fn.
196         (add_data_member_location_attribute): Check it.
197         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
198
199 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
200
201         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
202
203 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
204
205         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
206         MODE_VECTOR_FLOAT as allowed.
207
208 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
209
210         Purge cruft now we have build libiberty.
211
212         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
213         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
214         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
215         USE_HOST_STRSTR): Delete variables.
216         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
217         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
218         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
219         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
220         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
221         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
222         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
223         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
224         (HOST_LIBS): Ditto.
225         (HOST_RTL): Remove hashtab.o safe-ctype.o.
226         (OBJS): Remove splay-tree.o.
227         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
228         (distclean): No need to delete splay-tree.c obstack.c
229         hashtab.c safe-ctype.c.
230         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
231         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
232         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
233         Delete.
234         * configure.in: Don't use them.
235         Set and substitute @FORBUILD@.
236         * config.in, configure: Regenerate.
237         * doprint.c: Move to libiberty/_doprnt.c.
238         * doc/configterms.texi: Document that libiberty is now built
239         up to three times.  Fix typo.
240
241 2001-11-30  Jason Merrill  <jason@redhat.com>
242
243         * dwarf2out.c (add_data_member_location_attribute): Do the
244         right thing for virtual bases.
245         * dbxout.c (dbxout_type): For a virtual base, print the offset
246         within the vtable.
247
248 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
249
250         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
251
252 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
253
254         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
255         go in memory.
256         Remove unused attribute for named.
257
258 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
259
260         * genattrtab.c (attr_rtx_1): New function containing the
261         majority of `attr_rtx'.  Move variable declarations into the
262         scope where they are used.  Eliminate unnecessary gotos.
263         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
264         VA_FIXEDARG, and VA_CLOSE.
265
266 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
267
268         * config/cris/cris.c (cris_notice_update_cc): Check first
269         destination also against overlap with cc_status.value2 and second
270         destination against overlap with cc_status.value1.  For overlaps,
271         clear overlapped value, don't just CC_STATUS_INIT.
272
273         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
274         Fix typo in comment.
275         (LINK_SPEC): Remove whitespace at end of line.
276
277 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
278
279         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
280
281 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
282
283         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
284         macros for the supported debugging types.
285
286 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
287
288         PR other/4932
289         * config/i386/i386.c (print_operand):  Verify that the
290           argument to %c is a constant and not a conditional which
291           needs to be reversed.
292
293 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
294
295         * emit-rtl.c (gen_lowpart_common): Fix conversion of
296         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
297         of low part of those arrays for 32bit and 64bit hosts.
298
299 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
300
301         * Makefile.in (insn-output.o): Depend on insn-codes.h.
302
303 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
304
305         * configure.in (target_list): Add generated-manpages.
306         * configure: Regenerate.
307         * Makefile.in (generated-manpages): Depend on
308         lang.generated-manpages.
309         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
310
311 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
312
313         * config/arm/crti.asm (_init): Add .thumb_func if compiled
314         with -mthumb.
315         (_fini): Add .thumb_func if compiled with -mthumb.
316
317 2001-11-28  Eric Christopher  <echristo@redhat.com>
318
319         * config/mips/mips.c (override_options): Fix thinko in mips_tune
320         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
321
322 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
323
324         * alpha.md (tablejump): Use pic_offset_table_rtx
325         instead of gen_rtx_REG.
326
327 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
328
329         * expr.c (store_expr): When copying a string constant into an
330         array, reset the known alignment of the MEM for the section to
331         be cleared to BITS_PER_UNIT.
332
333 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
334
335         * config/cris/cris.c: Remove whitespace at end of line.
336
337 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
338
339         * config.gcc (i[34567]86-*-interix3*): New case.
340         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
341         New files.
342
343 2001-11-28  Richard Henderson  <rth@redhat.com>
344
345         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
346         symbolic_operand as the predicate.
347
348 2001-11-28  Richard Henderson  <rth@redhat.com>
349
350         * doloop.c (doloop_modify_runtime): Properly select induction
351         variable; skip late entry test if biv initializer created by loop.
352
353 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
354
355         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
356         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
357
358         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
359
360         * tree.h: Add missing checks on some macros; make formatting more
361         consistent.
362
363         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
364         level; only add to pending_sizes if find it.
365
366         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
367
368         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
369         Add casts to remove warnings.
370
371         * Makefile.in (OBJS): Sort alphabetically.
372
373         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
374         Also minor cleanups.
375
376 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
377
378         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
379         (FLAGS_TO_PASS): Add STAGE_PREFIX.
380         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
381         to STAGE_PREFIX.
382
383 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
384
385         * cse.c (true_dependence_in_rtx): New function.
386         (invalidate): Use it.
387
388         * c-common.h (GOTO_FAKE_P): New macro.
389         * tree-inline.c (GOTO_FAKE_P): Set.
390         * c-tree.texi (GOTO_FAKE_P): Document.
391
392         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
393         containing pointers.
394         (output_addressed_constants): Check for local/external relocations.
395         * elfos.h (SELECT_SECTION): Classify data section.
396         * tm.texi (SELECT_SECTION): Update documentation.
397
398         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
399         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
400
401 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
402
403         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
404         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
405         OBJECT_FORMAT_ROSE.
406
407 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
408
409         * config/cris/cris.c: Tweak spacing for prototypes.
410         (LOSE_AND_RETURN): New macro.
411         (cris_operand_lossage): New function.
412         (cris_print_index, cris_print_base): Use cris_operand_lossage
413         rather than fatal_insn.
414         (cris_print_operand, cris_print_operand_address): Use
415         LOSE_AND_RETURN rather than fatal_insn and internal_error.
416         (cris_output_addr_const): Use LOSE_AND_RETURN and
417         output_operand_lossage rather than fatal_insn and internal_error
418         for valid but unexpected rtx expressions.
419
420         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
421         for a SUBREG in src or dest, abort instead.
422
423 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
424
425         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
426         doc.
427
428 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
429
430         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
431         preprocessor define.  If only DBX_DEBUGGING_INFO or only
432         DWARF2_DEBUGGING_INFO is supported for the target, provide
433         appropriate definitions.
434
435 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
436
437         * Makefile.in: Update, and add c-objc-common.o dependencies.
438         * c-lang.c: Remove unnecessary includes.
439         (c_init): Move bulk of code to c_objc_common_init, and call it.
440         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
441         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
442         c-objc-common.c.
443         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
444         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
445         c_objc_common_init, c_missing_noreturn_ok_p): New.
446         * toplev.c: Update comment.
447         * doc/passes.texi: Update.
448 objc:
449         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
450         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
451         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
452         (objc_init): Update to use c_objc_common_init.
453
454 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
455
456         * cpphash.c (_cpp_init_hashtable): Update.
457         * cpphash.h (struct spec_nodes): Remove n_L.
458         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
459
460 2001-11-17  Richard Henderson  <rth@redhat.com>
461
462         * unroll.c (loop_iterations): Move last change ...
463         * doloop.c (doloop_modify_runtime): ... here.
464
465 2001-11-17  Corey Minyard  <minyard@acm.org>
466             Richard Henderson  <rth@redhat.com>
467
468         * unroll.c (loop_iterations): Detect one situation in which we
469         overestimate the number of iterations.
470
471 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
472
473         * gcc.c (set_input): Export.
474         Move declaration ...
475         gcc.h (set_input): ... here.
476
477 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
478
479         * gcc.c (set_collect_gcc_options): New function, split out from
480         main.
481         Ignore elided switches.
482         (do_spec): Invoke before executing command.
483         (do_spec_1): Likewise.
484         Fixes PR other/3968.
485
486 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
487
488         * config/cris/cris.h (INT_ASM_OP): Remove.
489
490 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
491
492         * config/i386/sol2.h (WINT_TYPE): Redefine.
493         (WINT_TYPE_SIZE): Likewise.
494
495 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
496
497         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
498         (dup2): Make static and add prototype.
499         * m68k/plexus.h: Don't define NO_DUP2.
500         * configure.in (AC_CHECK_FUNCS): Add dup2.
501         * config.in, configure: Regenerate.
502
503         * ia64/aix.h (REG_SIZE): Don't #undef.
504         * sparc.h (REG_SIZE): Delete.
505         * flow.c (mark_used_regs): Don't use REG_SIZE.
506         * regs.h (REG_SIZE): Delete.
507
508 2001-11-27  Andreas Schwab  <schwab@suse.de>
509
510         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
511         PREFERRED_DEBUGGING_TYPE.
512
513 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
514
515         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
516         (expr.o, varasm.o): Depends on langhooks.h.
517         * c-common.c (c_safe_from_p): Always declare.
518         (c_expand_expr): Refine when declared.
519         * c-lang.c (c-common.h): Now include.
520         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
521         (c_init): Don't set lang_safe_from_expr.
522         * expr.c (langhooks.h): Now include.
523         (lang_safe_from_p): No longer define.
524         (safe_from_p): Use lang hook.
525         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
526         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
527         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
528         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
529         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
530         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
531         * langhooks.h (struct lang_hooks): New fields expand_constant
532         and safe_from_p.
533         * output.h (output_constant): Size arg is HOST_WIDE_INT.
534         * stmt.c (expand_decl_init): No longer need to expand constant
535         for CONST_DECL.
536         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
537         * toplev.c (lang_expand_constant): Delete var.
538         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
539         operations on SAVE_EXPR.
540         * varasm.c (langhooks.h): Now include.
541         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
542         (record_constant_1, output_addressed_constants): Likewise.
543         (initializer_constant_valid_p, output_constant): Likewise.
544         (output_constant_def): Process no-defer of string constant.
545         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
546         (output_constant): Strip more conversions.
547         Track our size and pad for the rest.
548         (array_size_for_constructor): Remove code for non-byte STRING_CST.
549         (output_constructor): SIZE now HOST_WIDE_INT.
550
551 2001-11-27  Richard Henderson  <rth@redhat.com>
552
553         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
554         in computing DIFF.
555
556 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
557
558         * cppfiles.c (read_include_file): Add comment.
559
560 2001-11-26  Richard Henderson  <rth@redhat.com>
561
562         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
563
564 2001-11-26  Richard Henderson  <rth@redhat.com>
565
566         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
567         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
568         commented out override.
569
570 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
571
572         * cppfiles.c (stack_include_file): Don't optimize zero-length
573         files.
574         (read_include_file): NUL-terminate read files.
575         * cpplex.c (handle_newline, skip_escaped_newlines,
576         get_effective_char, skip_whitespace, parse_identifier,
577         parse_identifier_slow, parse_number, parse_string,
578         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
579         NUL-terminated.
580         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
581         Be sure buffers are NUL terminated.
582         * cppmacro.c (warn_of_redefinition): Kill compile warning.
583
584 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
585
586         * c-common.c: Include tree-inline.h.
587         (c_language): Move separate definitions here.
588         (c_common_init_options, c_common_post_options): New.
589         (c_common_lang_init): Rename c_common_init.
590         * c-common.h (c_common_lang_init): Similarly.
591         (c_common_init_options, c_common_post_options): New.
592         * c-lang.c (c_post_options): Move body to c_common_post_options.
593         (c_init_options): Use c_common_init_options.
594         (c_init): Update.
595         * langhooks.def: Rearrange.
596         * langhooks.h: Rearrange, and improve comments.
597         * toplev.c (do_compile): New function.
598         (toplev_main): Use it.
599         (lang_independent_f_options, parse_options_and_default_flags,
600         process_options): Remove trailing periods.
601         * Makefile.in: Update.
602 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
603         functions.
604         (ojbc_init): Update.
605
606 2001-11-26  Richard Henderson  <rth@redhat.com>
607
608         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
609
610 2001-11-26  DJ Delorie  <dj@redhat.com>
611
612         * expr.c (store_constructor): Actually use the value computed
613         if WORD_REGISTER_OPERATIONS.
614
615 2001-11-26  Richard Henderson  <rth@redhat.com>
616
617         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
618         for CONSTRUCTOR.
619
620 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
621
622         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
623         correct function on AIX.
624
625 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
626
627         * toplev.c (process_options): Don't force
628         flag_optimize_sibling_calls to zero just because exceptions are
629         enabled.
630
631 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
632
633         * df.h (transfer_function_sbitmap): Use PARAMS around argument
634         list in function prototypes.
635         (transfer_function_bitmap): Likewise.
636
637 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
638
639         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
640         * config/i386/netbsd-elf.h: Likewise.
641
642 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
643
644         * doc/trouble.texi: Remove outdated RS/6000 comments.
645
646 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
647
648         * final.c (walk_alter_subreg): Fix return value.
649
650 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
651
652         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
653         alter_subreg.
654         * sparc.md (post-reload splitters): Do not call alter_subreg.
655         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
656
657 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
658
659         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
660
661 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
662
663         * final.c: (insn_lengths): Make it an int *, so that large jump
664         tables don't overflow.
665
666 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
667
668         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
669         (format_types): Use it for scanf.
670         (dollar_arguments_pointer_p): New.
671         (init_dollar_format_checking): Store details of which arguments
672         are pointers.
673         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
674         (finish_dollar_format_checking): Take extra parameter
675         pointer_gap_ok.  Treat unused arguments differently if
676         pointer_gap_ok and the unused arguments are pointers.
677         (check_format_info_main): Pass extra argument to
678         finish_dollar_format_checking.
679         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
680         unused arguments are present between used arguments with operand
681         numbers.
682
683 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
684
685         * df.c: Add prototypes for hybrid_search_bitmap and
686         hybrid_search_sbitmap.
687         (hybrid_search_bitmap): New function.
688         (hybrid_search_sbitmap): New function.
689         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
690         (iterative_dataflow_bitmap): Ditto.
691
692 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
693
694         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
695         address computations.
696
697 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
698
699         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
700         register b (low part of d).
701
702 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
703
704         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
705         passed to mcount.
706
707 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
708
709         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
710         * config/alpha/x-vms: New file, to compile the above.
711         * config.gcc (alpha*-dec-vms*): Add x-vms.
712
713 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
714
715         * genextract.c (main): Set ro_loc for peepholes.
716
717 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
718
719         * fix-header.c (main): Move inf_buffer termination and inf_limit
720         calculation to after read.
721
722         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
723         (__UNIX_FOPEN): Define.
724
725 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
726
727         * function.c (assign_stack_temp_for_type): Clear alias set before
728         setting new one.
729
730 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
731
732         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
733         format.
734         * rs6000.md (cmptf): Fix typo.
735
736 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
737
738         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
739         * varasm.c (output_constructor): Use assemble_integer rather
740         than ASM_OUTPUT_BYTE.
741
742 2001-11-23  Andreas Jaeger  <aj@suse.de>
743
744         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
745         extension.
746
747 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
748
749         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
750         default definition.
751         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
752         (MULTILIB_DEFAULTS): Remove previous definition.
753
754 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
755
756         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
757         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
758
759 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
760
761         * cris.h: Revert thinko in last patch.
762
763 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
764
765         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
766         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
767         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
768         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
769         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
770         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
771
772         * predict.c, reg-stack.c: Fix spelling errors.
773
774 2001-10-09  Andrew Haley  <aph@redhat.com>
775
776         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
777         start of stack slot.
778
779 2001-11-22  Graham Stott  <grahams@redhat.com>
780
781         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
782         replacement jump after original jump.
783
784         (verify_flow_info): Remove redundent initialisation.
785         Handle reaching end of insn list before finding a BARRIER.
786         Only issue one missing barrier diagnostic.
787
788 2001-11-22  Graham Stott  <grahams@redhat.com>
789
790         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
791
792 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
793
794         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
795         insn actually does.
796
797 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
798
799         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
800         Fix typo -mm32rx=> -m32rx.
801
802         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
803         targets.
804
805         * config.gcc (xscale-coff): Add necessary header files to
806         tm_file variable.
807
808 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
809
810         * rs6000.c (output_cbranch): Use $, not %$, in output template.
811
812 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
813
814         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
815         (lang_type_quals): Declare.
816         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
817         retrieve language-specific qualifiers for a type node, instead of
818         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
819         lang_dump_tree.
820         * tree-dump.h: Rename from c-dump.h.
821         * c-common.h (C_TYPE_QUALS): Removed.
822         Move declarations for tree-dump.c interface to...
823         * tree.h: ... here. Remove lang_dump_tree.
824         * langhooks.h (struct lang_hooks_for_tree_dump): New.
825         (struct lang_hooks): Add tree_dump hooks.
826         * langhooks.c (lhd_tree_dump_dump_tree): New function.
827         (lhd_tree_dump_type_quals): New function.
828         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
829         Declare.
830         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
831         * Makefile.in: Move tree-dump.o to language-independent back-end.
832
833 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
834
835         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
836         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
837         * arc.h (DBX_REGISTER_NUMBER): Likewise.
838         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
839         * avr.h (DBX_REGISTER_NUMBER): Likewise.
840         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
841         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
842         * convex.h (DBX_REGISTER_NUMBER): Likewise.
843         * cris.h (DBX_REGISTER_NUMBER): Likewise.
844         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
845         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
846         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
847         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
848         * i370.h (DBX_REGISTER_NUMBER): Likewise.
849         * i860.h (DBX_REGISTER_NUMBER): Likewise.
850         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
851         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
852         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
853         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
854         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
855         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
856         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
857         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
858         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
859         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
860         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
861         * romp.h (DBX_REGISTER_NUMBER): Likewise.
862         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
863         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
864         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
865         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
866         * v850.h (DBX_REGISTER_NUMBER): Likewise.
867         * vax.h (DBX_REGISTER_NUMBER): Likewise.
868         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
869
870         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
871         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
872
873 2001-11-21  H.J. Lu <hjl@gnu.org>
874
875         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
876
877 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
878
879         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
880         emit_cmp_and_jump_insns.
881
882         * stormy16.c (xstormy16_expand_builtin_va_arg,
883         xstormy16_expand_casesi): Likewise.
884
885 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
886
887         * function.c (keep_stack_depressed): Major rework.
888         (handle_epilogue_set, emit_equiv_load): New functions.
889         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
890         has return value.
891         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
892         * rtl.h (SET_IS_RETURN_P): New macro.
893
894         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
895         and also support TREE_ADDRESSABLE.
896         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
897
898 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
899
900         * rs6000.md (cmptf_internal1): Replace %$ with $.
901
902 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
903
904         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
905         (read_include_file): Use STAT_SIZE_TOO_BIG.
906
907         * cppinit.c (INO_T_COPY): Define.
908         (INO_T_EQ): Uppercase parameters.
909         (append_include_chain): Use INO_T_COPY.
910
911 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
912
913         * cfg.c: Fix typos and formatting in the introductory comment.
914
915 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
916
917         * profile.c (compute_branch_probabilites):  Compute probabilities
918         for entry/exit edges; estimate probabilities for zero counts.
919
920 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
921
922         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
923         to emit_library_call.
924         * function.c (expand_main_function, expand_function_start,
925         expand_function_end): Likewise.
926         * profile.c (output_func_start_profiler): Likewise.
927         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
928         second argument to emit_library_call.
929         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
930         as second argument to emit_library_call.
931         * calls.c (emit_library_call): Update fn_type description.
932
933 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
934
935         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
936         if fndecl is still DECL_INLINE and has DECL_RESULT.
937
938 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
939
940         * clipper.c (clipper_movstr): Avoid uninitialized warning.
941         * i960.c (is_mask, legitimize_address): Likewise.
942         * m88k.c (m88k_expand_prologue): Likewise.
943         * m88k.md: Likewise.
944         * mcore.c (emit_new_cond_insn): Likewise.
945         * stormy16.c (xstormy16_emit_cbranch): Likewise.
946
947 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
948
949         * config.gcc: Delete powerpcle-*-solaris2* stanza.
950         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
951         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
952         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
953         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
954         config/rs6000/t-ppcos: Expunge all references to Solaris.
955
956         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
957
958         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
959         output templates.
960         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
961         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
962
963 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
964
965         * sh.md: Avoid uninitialized warnings.
966         * vax.c (vax_rtx_cost): Likewise.
967
968 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
969
970         * rs6000.c (direct_return): Check if we are saving altivec
971         registers.
972         (first_altivec_reg_to_save): New.
973         Updated stack frame layout comments.
974         (rs6000_stack_info): Calculate altivec register save size.
975         Save link register if we saved some altivec registers.
976         (rs6000_stack_info): Align save size to 16 if altivec abi or
977         abi_darwin.
978         (rs6000_stack_info): Calculate altivec register offsets.
979         (rs6000_stack_info): Add altivec info to save_size.
980         (debug_stack_info): Add altivec debug info.
981         (rs6000_emit_prologue): Save altivec registers and vrsave.
982         (compute_vrsave_mask): New.
983         (altivec_expand_builtin): Remove unused variables.
984         (rs6000_parse_abi_options): Add static qualifier.
985         (rs6000_expand_builtin): Remove unused parameters.
986         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
987         (altivec_init_builtins): Same.
988         (is_altivec_return_reg): New.
989         (vrsave_operation): New.
990         (ALTIVEC_REG_BIT): New.
991         (generate_set_vrsave): New.
992
993         * rs6000.md (get_vrsave): New.
994         (set_vrsave): New.
995         (*set_vrsave_internal): New.
996
997         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
998         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
999         altivec_padding_size, vrsave_mask.
1000         (TOTAL_ALTIVEC_REGS): New.
1001         (EPILOGUE_USES): Add VRSAVE_REGNO.
1002
1003 2001-11-20  Jeff Law <law@redhat.com>
1004
1005         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
1006         exit label as necessary.
1007
1008 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
1009
1010         * reload1.c (elimination_effects): Use function_invariant_p
1011         instead of CONSTANT_P when considering register equivalences.
1012
1013 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
1014
1015         * config.gcc: Add FreeBSD/PowerPC target.
1016         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
1017         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
1018         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
1019         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
1020         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
1021         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
1022         freebsd-spec.h to tm_file.
1023         (rs6000-*-lynxos*): Add lynx.h to tm_file.
1024         * config/freebsd.h: Tidy up.
1025         (USING_CONFIG_FREEBSD): Define.
1026         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
1027         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
1028         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
1029         (TARGET_HAS_F_SETLKW): Define.
1030         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
1031         * config/freebsd-spec.h: New file.
1032         * config/rs6000/freebsd.h: New file.
1033         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
1034         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
1035         USING_SVR4_H to know when to turn on ELF support.
1036         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
1037         define only if not already defined.
1038         Add FreeBSD support.
1039         * config/rs6000/aix.h (TARGET_VERSION): Define.
1040         * config/rs6000/beos.h: Likewise.
1041         * config/rs6000/darwin.h: Likewise.
1042         * config/rs6000/mach.h: Likewise.
1043         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
1044         Don't include lynx.h directly.
1045
1046 2001-11-20  Graham Stott  <grahams@redhat.com>
1047
1048         * unwind-dw2-fde.c (__deregister_frame_info_bases):
1049         Fix lossage in last change return OB.
1050
1051 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
1052
1053         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
1054         Remove unneeded exit related macros.
1055
1056 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
1057
1058         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
1059
1060         * rs6000.c (rs6000_emit_move): Add TFmode case.
1061         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
1062         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1063         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
1064         * rs6000.h: ... to here.
1065         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
1066         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
1067         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
1068
1069 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1070
1071         * emit-rtl.c (get_mem_attrs): Fix typo.
1072
1073 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1074
1075         * c-lang.c (finish_file): Backout 2001-11-16
1076         changes, instead set DECL_DEFER_OUTPUT for static inline functions
1077         before calling c_expand_deferred_function.
1078
1079 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1080
1081         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
1082         Don't register empty .eh_frame sections.
1083         (__deregister_frame_info_bases, __deregister_frame): Don't
1084         unregister them either.
1085
1086 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1087
1088         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
1089         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
1090         * configure: Regenerate.
1091         * config.in: Add dummy definitions of new flags.
1092         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
1093         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
1094         * gcc.c (ASM_DEBUG_SPEC): New macro.
1095         (asm_debug): New static variable.
1096         (default_compilers): Add asm_debug when assembling from
1097         user input.
1098         (static_specs): Add asm_debug.
1099
1100 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
1101
1102         * config.gcc (*-*-freebsd*): Remove configuration block.
1103
1104 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1105
1106         bootstrap/4422
1107         * configure.in: Setup ability to run ./stage[1234]/xgcc in
1108         fixinc *as if* it were a proper lang subdirectory.
1109         * configure: Rebuilt.
1110
1111 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1112
1113         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
1114
1115 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1116
1117         * 1750a.md: Don't use hex format for a const_int.
1118
1119 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1120
1121         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
1122
1123 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
1124
1125         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
1126         defined (prevents link errors when gettext isn't in the system
1127         library).
1128
1129 2001-11-19  DJ Delorie  <dj@redhat.com>
1130
1131         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
1132         (validate_const_int): New.
1133         (read_rtx): Validate constant integers.
1134         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
1135
1136 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
1137
1138         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
1139
1140 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1141
1142         * toplev.c (DUMPFILE_FORMAT): Define default.
1143         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
1144         (close_dump_file, compile_file): Likewise.
1145         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
1146         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
1147
1148 2001-11-19  Jeff Law <law@redhat.com>
1149
1150         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
1151         a nop-jump.
1152
1153 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1154
1155         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
1156         Don't fall off the base token run.
1157
1158 2001-11-19  Jason Wilkins <fenix@io.com>
1159
1160         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
1161
1162 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1163
1164         * tree.def (VIEW_CONVERT_EXPR): New tree code.
1165         * tree.h (handled_component_p): New declaration.
1166         * alias.c (handled_component_p): Move function from here ...
1167         * expr.c (handled_component_p): ... to here and non longer static.
1168         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
1169         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
1170         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
1171         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
1172         (expand_expr, case VIEW_CONVERT_EXPR): New case.
1173         (expand_expr, cse ADDR_EXPR): No need to copy if already
1174         BIGGEST_ALIGNMENT.
1175         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
1176         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
1177         (output_constant): Handle VIEW_CONVERT_EXPR.
1178         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
1179         Add new case for VIEW_CONVERT_EXPR.
1180
1181 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1182
1183         * a29k/unix.h (ASM_FILE_START): Const-ify.
1184         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
1185         * i386/isc.h (ASM_FILE_START): Const-ify.
1186         * i386/sun386.h (ASM_FILE_START): Likewise.
1187         * m32r.md: Likewise.
1188         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
1189         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
1190         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
1191         * mn10200.md: Initialize variable.
1192
1193 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
1194
1195         * gcse.c (try_replace_reg): Copy RTX before creating note.
1196
1197         * df.h (df_ref_flags): New uenum.
1198         (DF_REF_FLAGS): New macro.
1199         (struct ref): Add field "flags".
1200         * df.c (HANDLE_SUBREG): Remove.
1201         (df_ref_create): Likewise; set flags field of ref.
1202         (df_def_record_1): Strip down read_write subreg; remove
1203         commented out code; set READ_WRITE flag.
1204         (read_modify_subreg_p): New static function.
1205         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
1206         new argument "flags".
1207         (df_insn_refs_record): Update call of df_uses_record.
1208         (df_insn_modify): Avoid #if 0 around comment.
1209         (df_dump): Dump the read/write flag.
1210
1211         * predict.c (propagate_freq): Make cyclic_probability and frequency
1212         volatile
1213
1214         * i386.c (ix86_cc_mode): Accept USE.
1215
1216         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
1217         jump is turned into simplejump.
1218
1219 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
1220
1221         * doc/fragments.texi, doc/trouble.texi: Remove links to old
1222         installation chapter.
1223         * doc/gcc.texi: Don't claim that this manual documents
1224         installation.  Mark Installation menu entry as being out of date.
1225
1226 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
1227
1228         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
1229         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
1230         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
1231
1232 2001-11-19  Jason Merrill  <jason@redhat.com>
1233
1234         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
1235         cur_token, not after.
1236
1237         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
1238         Lose ASM_OUTPUT_CONSTRUCTOR.
1239         * system.h: Poison it and INT_ASM_OP.
1240         * c-lang.c (finish_file): Don't check for it.
1241         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
1242
1243 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1244
1245         * mmix.c (mmix_cc1_ignored_option): Const-ify.
1246         (mmix_init_machine_status): Make static to match declaration.
1247         (mmix_unique_section): Const-ify.
1248         (mmix_output_quoted_string): Avoid automatic aggregate
1249         initialization.
1250         (mmix_output_register_setting): Likewise.
1251         (mmix_output_shiftvalue_op_from_str): Likewise.
1252
1253         * mmix.h (mmix_cc1_ignored_option): Const-ify.
1254         (ASM_OUTPUT_BYTE): Fix format specifier warning.
1255         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1256
1257 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1258
1259         PR c/4448
1260         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
1261         name __objc_thread_exit_status so that it matches the
1262         variable defined in objc/thr.h.
1263
1264 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1265
1266         PR bootstrap/4020
1267         * mklibgcc.in: Add missing semi-colons.
1268         * Makefile.in: Same.
1269
1270 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1271
1272         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
1273         after re-laying out decl in incomplete case.
1274         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
1275
1276 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1277
1278         * doc/install-old.texi: Move some sections out to ...
1279         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
1280         ... here.  New files.  Make into chapters rather than sections.
1281         * doc/gcc.texi: Include the new files and add menu entries for
1282         them.
1283         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1284
1285 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1286
1287         * tree.h (TYPE_ALIGN_OK): New flag.
1288         * emit-rtl.c (set_mem_attributes): Handle it.
1289         * expr.c (emit_single_push_insn): Only set to alias set 0 if
1290         doing sibcall optimization.
1291         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
1292         when make temporary.
1293         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
1294         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
1295
1296         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
1297
1298 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1299
1300         * c-decl.c (c_decode_option): Give deprecation warning for
1301         -traditional.
1302         * doc/invoke.texi (-traditional): Note that this option is
1303         deprecated.
1304
1305 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
1306
1307         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
1308         arg to HOST_WIDE_INT, not long.
1309
1310         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
1311         (HAS_INIT_SECTION): Define.
1312         (REAL_ARITHMETIC): Don't undefine.
1313
1314 2001-11-18  Egor Duda  <deo@logos-m.ru>
1315
1316         * config/i386/cygwin.h: Strip leading '*' from name, if any.
1317
1318 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1319
1320         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
1321         * c-common.c: Include diagnostic.h.
1322         (c_common_finish): New.
1323         * c-common.h (c_common_finish): New.
1324         * c-lang.c (LANG_HOOKS_FINISH): Override.
1325         * c-parse.in: Don't include diagnostic.h.
1326         (finish_parse): Remove.
1327         * langhooks.h: Update comments.
1328         * toplev.c (lang_dependent_init): New prototype.
1329         (finalize): New.
1330         (compile_file): Split cleanup code out to finalize.
1331         (lang_dependent_init): Stop if lang_hooks.init fails.
1332         (toplev_main): Update.
1333         * tree.h (finish_parse): Remove.
1334 objc:
1335         * objc-act.c (LANG_HOOKS_FINISH): Override.
1336
1337 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1338
1339         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
1340         * config/alpha/vms_tramp.asm: New file.
1341         * config/alpha/vms-tramp.asm: Removed.
1342
1343 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1344
1345         * c-common.c (struct disabled_builtin, disabled_builtins,
1346         disable_builtin_function, builtin_function_disabled_p): New.
1347         (builtin_function_2): Check for disabled built-in functions.
1348         * c-common.h (disable_builtin_function): Declare.
1349         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
1350         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
1351         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
1352
1353 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1354
1355         PR target/4606
1356         * config.gcc: Remove reference to va-clipper.h.
1357
1358 2001-11-17  Stan Shebs  <shebs@apple.com>
1359
1360         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1361         AltiVec-related bitfields.
1362
1363 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1364
1365         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1366         (mark_eh_region, case ERT_UKNONW): New case.
1367
1368 2001-11-17  Christopher Faylor  <cgf@redhat.com>
1369             Corinna Vinschen  <vinschen@redhat.com>
1370
1371         * config/i386/cygwin.h: Search target specific include directory for
1372         w32api stuff, if appropriate.
1373
1374 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
1375
1376         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1377
1378 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
1379
1380         * config/rs6000/rs6000.md: Change all ldvx to lvx.
1381
1382 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
1383
1384         * gensupport.c (process_rtx): Don't assume filename is the first
1385         argument of any rtl.
1386
1387 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1388
1389         * vax-protos.h (reg_was_0_p): New prototype.
1390         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1391         * vax.c (follows_p, reg_was_0_p): New functions.
1392
1393 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1394
1395         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1396         (casesi1): Likewise.  Define new pattern which arises by simplification
1397         when operand 1 is a constant int.  Correct pattern which arises by
1398         simplification when operand 1 is zero.
1399
1400 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
1401
1402         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1403         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1404         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1405         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1406         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1407         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1408         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1409         * config/arm/aof.h: Don't include arm.h.
1410         * config/arm/aout.h: Likewise.
1411         * config/arm/coff.h: Don't include semi.h and aout.h.
1412         * config/arm/elf.h: Don't include aout.h.
1413         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1414         (TARGET_VERSION): Undef before defining.
1415         (ARM_OS_NAME): Likewise
1416         (TARGET_DEFAULT): Likewise
1417         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1418         * config/arm/pe.h: Don't include arm/coff.h.
1419         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1420         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1421         * config/arm/riscix1-1.h: Likewise.
1422         * config/arm/rix-gas.h: Don't include riscix.h.
1423         (DBX_CONTIN_LENGTH): Undef before defining.
1424         * config/arm/semi.h: Don't include aout.h.
1425         * config/arm/semiaof.h: Don't include aof.h.
1426         * config/arm/strongarm-coff.h: Don't include coff.h.
1427         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1428         * config/arm/vxarm.h: Don't include arm/coff.h.
1429         * config/arm/xscale-coff.h: Don't include coff.h.
1430
1431 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1432
1433         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1434         emit_cmp_insn.
1435
1436 2001-11-16  Andreas Jaeger  <aj@suse.de>
1437
1438         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1439         to ....
1440         (fixup_fallthru_exit_predecessor): ... this.
1441         Change callers and prototype.
1442
1443 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
1444
1445         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1446         hand; don't use gen_setcc_2.
1447         (ix86_expand_builtin): Fix pshufw.
1448         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1449         case UNORDERED to emit the right assembler instruction.
1450         (mmx_pshufw): Lose operand 2.
1451         (cvtsi2ss): Fix representation.
1452         From Graham Stott:
1453         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1454
1455 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1456
1457         * doc/include/linux-and-gnu.texi: Remove.
1458         * doc/gnu.texi: New.
1459         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1460         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1461
1462 2001-11-16  Kazu Hirata  <kazu@hxi.com>
1463
1464         * config/a29k/a29k.c: Fix comment formatting.
1465         * config/a29k/a29k.h: Likewise.
1466         * config/arc/arc.c: Likewise.
1467         * config/arc/arc.h: Likewise.
1468         * config/vax/vax.c: Likewise.
1469         * config/vax/vax.h: Likewise.
1470         * config/we32k/we32k.c: Likewise.
1471         * config/we32k/we32k.h: Likewise.
1472
1473 2001-11-16  Jeff Law  <law@redhat.com>
1474
1475         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1476         creating a new jump insn.
1477
1478 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1479
1480         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1481         copy misaligned data.
1482         * varasm.c (assemble_variable): Set alignment into MEM when changed.
1483
1484 2001-11-16  Graham Stott  <grahams@redhat.com>
1485
1486         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1487         OPALIGN type.
1488
1489 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
1490
1491         * except.c: Support for catching a list of types with a single handler
1492         (struct eh_region): Change type and filter to lists for catch regions.
1493         (mark_eh_region): Mark the filter list for GC also.
1494         (expand_start_catch): Always build a list if argument not NULL and
1495         register each type of the list through add_type_for_runtime.
1496         (duplicate_eh_region_1): Change type into type_list for catch regions.
1497         (assign_filter_values): Assign a filter to each type associated with a
1498         catch region. Assign filter for NULL types in a unique entry in the
1499         filter list.
1500         (build_post_landing_pads): Emit compare and jump for each filter of
1501         the list associated with a catch region.
1502         (reachable_next_level): When the type thrown is known, stop the search
1503         as soon as one type within a catch list matches. Also, a handler is
1504         potentially reachable only if at least one of the types it catches
1505         has not been previously caught.
1506         (collect_one_action_chain): Retrieve the filter for a NULL type list
1507         from the first filter list entry. For non NULL type lists, add an
1508         action record for every filter assigned.
1509         * except.h: Reflect changes in comment before expand_start_catch.
1510
1511 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1512
1513         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1514         BLKmode.
1515
1516 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
1517
1518         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1519
1520 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
1521
1522         * c-lang.c (finish_file): Don't emit static inline functions if
1523         they weren't referenced.
1524
1525 2001-11-15  Stan Shebs  <shebs@apple.com>
1526
1527         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1528
1529 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1530
1531         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1532         call.
1533         * config/i386/i386.md: Likewise.
1534
1535 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1536
1537         * timevar.c (rtl.h): Include so get fancy abort.
1538
1539 2001-11-15  Dale Johannesen  <dalej@apple.com>
1540
1541         * config/darwin.h (SELECT_RTX_SECTION):  Force address
1542         initializers into 'const' section
1543         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
1544         if_then_else to match result, not operands
1545
1546 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1547
1548         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1549         * emit-rtl.c (change_address): Fix typo in default alignment.
1550         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1551         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1552         * rtl.h (REGNO_PTR_FRAME_P): New macro.
1553
1554         * expr.c (store_field): Pass tree instead of max size; callers changed.
1555         Change handling of alignment.
1556         Only copy to_rtx if is TARGET.
1557         (expand_expr_unaligned): Delete; callers now use expand_expr.
1558         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1559         (expand_assignment): Change handling of alignment.
1560         Only copy to_rtx if was original.
1561         (get_inner_reference): No longer return alginment; callers changed.
1562         (expand_expr, case COMPONENT_REF): Change handling of alignment.
1563         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1564         (compare_from_rtx): Delete ALIGN parm; all callers changed.
1565         (do_compare_rtx_and_jump): Likewise.
1566         * expr.h: Reflect above changes.
1567         * tree.h: Likewise.
1568         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1569         to get_inner_reference.
1570         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1571         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1572         * optabs.c: Likewise.
1573         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
1574         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1575         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1576         compare_rtx_and_jump, and emit_cmp_jump_insns.
1577         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1578         * function.c (assign_stack_temp_for_type): No longer static.
1579         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1580         (prepare_cmp_insn): Delete declaration.
1581         * rtl.h (assign_stack_temp_for_type): Add declaration.
1582         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1583         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1584         * config/i386/i386.c,config/mips/mips.c: Likewise.
1585         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1586         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1587
1588 2001-11-15  Stan Shebs  <shebs@apple.com>
1589
1590         * config/rs6000/rs6000.h: Fix a comment typo.
1591         (RTX_COSTS): Sort processor versions better.
1592
1593 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1594
1595         * config/h8300/h8300.md: Fix insn length of bit insns.
1596
1597 2001-11-15  Jason Merrill  <jason@redhat.com>
1598
1599         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1600         DIEs if there were errors in the source.
1601
1602         * config/alpha/alpha-interix.h, config/alpha/elf.h,
1603         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1604         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1605         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1606         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1607         config/elfos.h, config/lynx.h, config/netware.h,
1608         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1609         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1610         uses to use ASM_LONG.
1611
1612 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
1613
1614         * gensupport.c  process_include : Change call to alloca to
1615         xmalloc.
1616
1617 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1618
1619         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1620         templates.
1621
1622 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1623
1624         * final.c (alter_subreg): If simplify_subreg can't do anything,
1625         handle REG ourselves and abort for others.
1626
1627 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
1628
1629         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1630         routines.
1631
1632 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1633
1634         * fix-header.c (read_scan_file): Update.
1635
1636 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1637
1638         * toplev.c (toplev_main): Don't start timing until after
1639         command-line options are parsed.
1640
1641 2001-11-15  Andreas Schwab  <schwab@suse.de>
1642
1643         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1644         makefile frag, not host makefile frag.
1645         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1646         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1647         used.
1648         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1649         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1650         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1651         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1652         * config/i386/t-dgux (STMP_FIXPROTO): Define.
1653         * config/x-interix: Don't define STMP_FIXPROTO and
1654         FIXPROTO_DEFINES.
1655         * config/t-interix: New file, define STMP_FIXPROTO.
1656         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1657         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1658         * config/t-svr4 (FIXPROTO_DEFINES): Define.
1659         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1660         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1661         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1662         * config/m68k/t-hp3200: Renamed from x-hp3200.
1663         * config/i370/t-oe: Renamed from x-oe.
1664         * config/mips/t-iris: Renamed from x-iris.
1665         * config/pa/t-bsd: Renamed from x-pa.
1666         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1667         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1668         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1669         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1670         config/rs6000/x-cygwin: Remove files.
1671
1672         * configure.in: Check for target objdump and use that in eh_frame
1673         optimization test.
1674         * configure: Regenerated.
1675
1676 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
1677
1678         * jump.c (squeeze_notes): Return true if no real insns were found.
1679         * rtl.h (squeeze_notes): Adjust prototype.
1680         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1681         squeeze_notes finds no real instructions, abort.
1682         (merge_blocks_move_successor_nojumps): Likewise.
1683         * loop.c (find_and_verify_loops): Likewise.
1684         * stmt.c (expand_end_case): Likewise.
1685         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1686         find any real instructions.
1687
1688         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1689
1690         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1691         conditional jump, request updating life into for the block
1692         containing it.  Fix a typo which prevented life info update.
1693         Clear blocks bitmap before using it.
1694
1695 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1696
1697         * c-common.c: Include c-lex.h.
1698         (c_common_lang_init): Change prototype.  Call init_c_lex and
1699         init_pragma from here.
1700         * c-common.h (c_common_lang_init): Change prototype.
1701         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
1702         * c-lang.c (c_init): Change prototype.  Update.
1703         (c_init_options): Update.
1704         * c-lex.c (cpp_filename): Remove.
1705         (init_c_lex): Update.  Read the main file, and get the original
1706         file name.
1707         (yyparse): Finish the command line options.
1708         * c-parse.in (c_parse_init): Call init_reswords here.
1709         (init_parse): Remove.
1710         * c-tree.h (c_init_decl_processing): New.
1711         * cpphash.c (_cpp_init_hashtable): After initializing the hash
1712         table, populate it.
1713         * cppinit.c (read_original_filename, cpp_finish_options): New.
1714         (cpp_create_reader): New prototype. Defer hash table initialization.
1715         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
1716         hash table.  Get the original filename.
1717         * cpplib.h (cpp_create_reader): Update.
1718         (cpp_start_read): Remove.
1719         (cpp_read_main_file, cpp_finish_options): New.
1720         * cppmain.c (main, do_preprocessing): Update.
1721         * langhooks.h (struct langhooks): Update init prototype.
1722         * toplev.c (general_init, parse_options_and_default_flags,
1723         process_options, lang_indpendent_init, lang_dependent_init,
1724         init_asm_output): New; perform the bulk of initialization.
1725         (compile_file): Move most of initialization to above functions.
1726         (debug_hooks): Initialize statically.
1727         (set_Wunused): Relocate.
1728         (toplev_main): Move most of initialization to other init functions.
1729         Have a clear logic flow.
1730         * tree.h (init_parse, init_decl_processing): Remove.
1731 objc:
1732         * objc-act.c (objc_init): Update prototype, combine with old
1733         init_parse.
1734         (objc_init_options): Update.
1735
1736
1737 2001-11-15  Andreas Jaeger  <aj@suse.de>
1738
1739         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1740         portability.
1741         * basic-block.h: Adjust prototype.
1742
1743 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1744
1745         * config/rs6000/aix31.h: Fix comment formatting.
1746         * config/rs6000/beos.h: Likewise.
1747         * config/rs6000/darwin.h: Likewise.
1748         * config/rs6000/eabi.asm: Likewise.
1749         * config/rs6000/linux.h: Likewise.
1750         * config/rs6000/linux64.h: Likewise.
1751         * config/rs6000/lynx.h: Likewise.
1752         * config/rs6000/netbsd.h: Likewise.
1753         * config/rs6000/rs6000.c: Likewise.
1754         * config/rs6000/rs6000.h: Likewise.
1755         * config/rs6000/rs6000.md: Likewise.
1756         * config/rs6000/sol2.h: Likewise.
1757         * config/rs6000/tramp.asm: Likewise.
1758         * config/rs6000/xcoff.h: Likewise.
1759         * config/rs6000/xm-beos.h: Likewise.
1760
1761 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
1762
1763         * rtl.def (INCLUDE) : Define.
1764         * gensupport.c  (init_include_reader, process_include,
1765         save_string) :  New functions to implement an include facility
1766         in .md files.
1767         * gensupport.h : Add prototype for init_md_reader_args.
1768         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1769         genextract.c genflags.c genopinit.c genoutput.c
1770         genpeep.c genrecog.c: Change call to init_md_reader to
1771         init_md_reader_args.
1772         * md.texi: Document (include "path") and -I directives for RTL
1773         generation tools.
1774
1775 2001-11-14  DJ Delorie  <dj@redhat.com>
1776
1777         * integrate.c (get_hard_reg_initial_reg): New.
1778         * integrate.h (get_hard_reg_initial_reg): Prototype.
1779         * local-alloc.c (block_alloc): Don't tie pseudos that
1780         represent call-saved hard regs' initial values.
1781
1782 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1783
1784         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1785         recursion.
1786
1787 2001-11-14  Roger Sayle <roger@eyesopen.com>
1788
1789         * fold-const.c (fold): Optimize strlen comparisons against zero.
1790
1791 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
1792
1793         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1794         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1795         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1796         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1797         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1798         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1799         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1800         Include various CPU headers via tm_file.  a.out based platforms now
1801         properly include sparc/aout.h.  sol2.h usage now implies including
1802         elfos.h, svr4.h, and sparc/sysv4.h.
1803         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1804         Also define to '1'.
1805         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1806         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1807         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1808         Remove.  They are a.out specific and belong in sparc/aout.h.
1809         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1810         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1811         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
1812         sparc/sparc.h.
1813         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1814         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
1815         Moved here from sparc/sparc.h.
1816         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
1817         defining.
1818         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
1819         * config/sparc/lynx.h:  Don't include lynx.h.
1820         (SELECT_SECTION): Do not undef.
1821         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
1822         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
1823         and sparc/sysv4.h.
1824         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
1825         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
1826         sparc/aout.h now.
1827         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1828         Don't undef, there is no need.
1829         * config/sparc/splet.h (CPP_PREDEFINES): Define.
1830         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
1831         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
1832         Don't include sparc/sparc.h.
1833         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
1834         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1835         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
1836         elfos.h and svr4.h.
1837         (TARGET_VERSION): Define.
1838         * config/sparc/vxsim.h (TARGET_VERSION): Define.
1839
1840 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
1841
1842         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
1843         (cfg_layout_finalize): Use it.
1844         * bb-reorder.c (HAVE_epilogue): Remove.
1845         (make_reorder_chain): Do not care special placement of
1846         last basic block.
1847
1848         * predict.c (expected_value_to_br_prob): Delete the note
1849         once transformed.
1850
1851         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
1852         measure integration time separately.
1853
1854 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1855
1856         * function.c (struct temp_slot): ALIGN now unsigned.
1857
1858 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1859
1860         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
1861         * config/dsp16xx/dsp16xx.h: Likewise.
1862         * config/dsp16xx/dsp16xx.md: Likewise.
1863
1864 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1865
1866         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
1867         that deals with 7-bit shifts in HImode.
1868
1869 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
1870
1871         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
1872         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
1873         (final_scan_insn): Update call of alter_subreg.
1874         (cleanup_subreg_operands): Likewise.
1875         (alter_subreg): Rewrite using simplify_subreg.
1876         (output_address, output_operand): Update call of alter_subreg.
1877         * output.h (alter_subreg): Update prototype.
1878         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
1879         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
1880         * Makefile.in (final.o): Add dependency on expr.h
1881
1882 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1883
1884         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
1885
1886 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
1887
1888         * doc/install.texi (sparc-*-linux*): Mention requirements for
1889         binutils and glibc.
1890
1891 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
1892
1893         * Makefile.in (POD2MAN): Don't include --section=1.
1894         (manext): Rename to man1ext.  All users changed.
1895         (man7ext): New.
1896         (man7dir): New.
1897         (generated-manpages): Also depend on $(docdir)/gfdl.7,
1898         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1899         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1900         --section=1 in calls to $(POD2MAN).
1901         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1902         (maintainer-clean, install, uninstall): Handle the new man pages.
1903         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1904         (installdirs): Create man7dir.
1905         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
1906         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
1907         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
1908         the SEE ALSO man page section.
1909         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
1910         and fsf-funding(7) in the SEE ALSO man page section.
1911         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
1912         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1913         * doc/include/fdl.texi, doc/include/funding.texi,
1914         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1915         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1916
1917 2001-11-13  Richard Henderson  <rth@redhat.com>
1918
1919         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1920         as appropriate for the artificial decl.
1921
1922 2001-11-13  Richard Henderson  <rth@redhat.com>
1923
1924         * loop.c (combine_movables): Turn off combination until
1925         move_movables validation bugs are fixed.
1926
1927 2001-11-13  DJ Delorie  <dj@redhat.com>
1928
1929         * config.gcc (powerpc|rs6000): Set default cpp options based
1930         on --with-cpu settings.
1931         * config/rs6000/softfloat.h: New.
1932
1933 2001-11-13  Kazu Hirata  <kazu@hxi.com>
1934
1935         * config/h8300/h8300.c (shift_alg_si): Use special code for
1936         25-bit shifts on H8/S.
1937         (get_shift_alg): Generate special code for 25-bit shifts on
1938         H8/S.
1939
1940 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
1941
1942         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1943         (adjust_automodify_address_1): New.
1944         * expr.h (adjust_address, adjust_address_nv): Adjust.
1945         (adjust_automodify_address, adjust_automodify_address_nv): Define.
1946         (adjust_address_1): Update prototype.
1947         (adjust_automodify_address_1): Add prototype.
1948         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1949         (store_by_pieces_2): Likewise.
1950
1951 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1952
1953         * Makefile.in (explow.o): Now depends on ggc.h.
1954         * explow.c (ggc.h): Include.
1955         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1956
1957         * Makefile.in (expr.o): Depends on insn-attr.h.
1958         * expr.c (insn-attr.h): New include.
1959         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1960         of MEM.
1961         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1962         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1963         clean up related usage in ADDR_EXPR.
1964         (expand_expr_unaligned): Likewise.
1965
1966         * emit-rtl.c (change_address): Fix typo in alias setting.
1967
1968 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1969
1970         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1971
1972 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1973
1974         PR bootstrap/3451
1975         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1976         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1977
1978 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1979
1980         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1981         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1982         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1983         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1984         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1985         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1986         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1987         sparc64-*-linux*):  Include various CPU headers via tm_file.
1988         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1989         (SELECT_SECTION): Likewise.
1990         (SELECT_RTX_SECTION): Likewise.
1991         * config/sparc/sparc_bi.h: New file.
1992         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1993         * config/sparc/linux-aout.h: Likewise.
1994         * config/sparc/linux.h: Don't include sparc/sysv4.h.
1995         * config/sparc/linux64.h: Likewise.
1996         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1997         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
1998         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1999         and dbxcoff.h
2000         (ASM_OUTPUT_IDENT): Do not #undef.
2001         (SELECT_SECTION): Likewise.
2002         (SELECT_RTX_SECTION): Likewise.
2003         * config/sparc/liteelf.h: Don't include gofast.h.
2004         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
2005         * config/sparc/lynx.h: Don't include sparc/sparc.h.
2006         * config/sparc/pbd.h: Likewise.
2007         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
2008         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
2009         * config/sparc/rtemself.h: Don't include rtems.h.
2010         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
2011         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
2012         sparc_bi.h instead.
2013         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
2014         * config/sparc/sol2.h: Include sparc/sparc.h directly.
2015         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
2016         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
2017         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
2018         * config/sparc/sp86x-elf.h: Don't include gofast.h.
2019         * config/sparc/splet.h: Don't include sparc/aout.h.
2020         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
2021         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
2022         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
2023         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
2024         * config/sparc/vxsparc64.h: Don't include gofast.h.
2025         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
2026
2027 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2028
2029         * doc/standards.texi: Mention C99 TC1.
2030
2031 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2032
2033         * mips-protos.h (mips_output_conditional_branch): Const-ify.
2034         * mips.c (mips_output_conditional_branch): Likewise.
2035
2036 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2037
2038         * config/h8300/h8300.c (shift_alg_si): Use special code for
2039         15-bit logical shifts and 31-bit logical shifts.
2040         (get_shift_alg): Generate special code for 15-bit and 31-bit
2041         logical shifts.
2042
2043 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2044
2045         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
2046         doing 6-bit logical shifts on H8/S.
2047         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
2048         (get_shift_alg): Generate special code for 21-bit shifts on
2049         H8/S.
2050
2051 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2052
2053         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
2054         label.
2055
2056 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2057
2058         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
2059         if both size and offset known.
2060
2061 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
2062
2063         * config/ia64/freebsd.h: Fix misspelling.
2064
2065 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2066
2067         * doc/gcc.texi: Move several chapters out to ...
2068         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
2069         doc/include/linux-and-gnu.texi, doc/interface.texi,
2070         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
2071         ... here.  New files.
2072         * doc/gcc.texi, doc/contrib.texi: Move section headings into
2073         contrib.texi.
2074         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2075
2076 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2077
2078         * config/alpha/alpha-interix.h: Fix comment formatting.
2079         * config/alpha/alpha.c: Likewise.
2080         * config/alpha/alpha.h: Likewise.
2081         * config/alpha/alpha32.h: Likewise.
2082         * config/alpha/freebsd.h: Likewise.
2083         * config/alpha/unicosmk.h: Likewise.
2084         * config/alpha/vms.h: Likewise.
2085
2086 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2087
2088         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
2089
2090 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
2091
2092         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
2093         numbers.
2094
2095 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2096
2097         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
2098         from type.
2099         (replace_equiv_address): Call update_temp_slot_address.
2100
2101         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
2102
2103         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
2104
2105 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2106
2107         * config/h8300/h8300.c (shift_alg_qi): New.
2108         (shift_alg_hi): Likewise.
2109         (shift_alg_si): Likewise.
2110         (get_shift_alg): Change the type of count to unsigned int.
2111         Use the tables.
2112
2113 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
2114
2115         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
2116         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
2117         to decide whether to defer a function.
2118         (finish_function): Adjust.
2119         (c_expand_deferred_function): New function.
2120         * c-lang.c (deferred_fns): New variable.
2121         (c_init): Initialize it, and mark it as a root.
2122         (defer_fn): New function.
2123         (finish_file): Expand all deferred functions.
2124         * c-tree.h (defer_fn): Declare.
2125         (c_expand_deferred_function): Likewise.
2126         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
2127         * objc-act.c (deferred_fns): New variable.
2128         (objc_init): Initialize it, and mark it as a root.
2129         (defer_fn): New function.
2130         (finish_file): Expand all deferred functions.
2131
2132 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2133
2134         * alpha.c (unicosmk_special_name): Prototype.
2135         (unicosmk_ssib_name): Delete unused variable.
2136         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
2137         * alpha/vms.h (PREFIX): Undef before defining.
2138         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
2139         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
2140         controlling usage.  Const-ify.
2141         (alias_number): Delete unused variable.
2142         * m32r/m32r.c (m32r_sched_init): Add missing argument.
2143         (m32r_expand_block_move): Fix uninitialized warnings.
2144         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
2145         always true' warnings.
2146         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
2147         * sh/sh.c: Include "integrate.h".
2148         (output_far_jump): Fix uninitialized warning.
2149         * final.c (shorten_branches): Avoid automatic aggregate
2150         initialization.
2151         * integrate.c (subst_constants): Likewise.
2152
2153 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2154
2155         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
2156         (get_shift_alg): Remove redundant code.
2157
2158 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2159
2160         * config/pa/milli64.S: Fix comment formatting.
2161         * config/pa/pa-64.h: Likewise.
2162         * config/pa/pa-linux.h: Likewise.
2163         * config/pa/pa-protos.h: Likewise.
2164         * config/pa/pa.c: Likewise.
2165         * config/pa/pa.h: Likewise.
2166         * config/pa/pa32-linux.h: Likewise.
2167         * config/pa/pa32-regs.h: Likewise.
2168         * config/pa/pa64-hpux.h: Likewise.
2169         * config/pa/pa64-regs.h: Likewise.
2170         * config/pa/som.h: Likewise.
2171
2172 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2173
2174         * doc/gcc.texi: Move several chapters out to ...
2175         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
2176         doc/service.texi, doc/standards.texi, doc/trouble.texi,
2177         doc/vms.texi: ... here.  New files.
2178         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2179
2180 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2181
2182         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
2183         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
2184         collect2.c, combine.c, config.in, configure, configure.in,
2185         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
2186         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
2187         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
2188         spelling errors.
2189
2190 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2191
2192         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
2193         Adjust operand number in CONST_DOUBLE.
2194
2195         * expmed.c (extract_bit_field): No longer pass in alignment.
2196         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2197         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
2198         Likewise.
2199         * expr.c (store_constructor, store_constructor_field): Likewise.
2200         (store_field, emit_group_load, emit_group_store): Likewise.
2201         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
2202         (store_bit_field, extract_bit_field): Likewise.
2203         * calls.c, expr.c, function.c: Change calls to above functions.
2204         * ifcvt.c, stmt.c: Likewise.
2205
2206         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
2207         constant and one is on frame.
2208         If know memref offset, adjust size from decl.
2209
2210 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2211
2212         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
2213         format specifier warning.
2214         * convex.h (ASM_OUTPUT_BYTE): Likewise.
2215         * elfos.h (ALIGN_ASM_OP): Undef before defining.
2216         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2217         warning.
2218         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2219         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2220         * i386-interix.h (gen_stdcall_suffix): Prototype.
2221         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2222         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2223         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2224         * i386/interix.c (gen_stdcall_suffix): Const-ify.
2225         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2226         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
2227         specifier warnings.
2228         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2229         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2230         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2231         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2232         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2233         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2234         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2235         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
2236         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
2237         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2238         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2239         Likewise.
2240         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2241         Likewise.
2242         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
2243         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2244         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
2245         Likewise.
2246         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
2247         Likewise.
2248         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2249         Likewise.
2250         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
2251         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2252         * m68k/news.h (PRINT_OPERAND): Likewise.
2253         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
2254         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2255         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2256         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
2257         definition.
2258         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2259         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
2260         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
2261         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2262         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
2263         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
2264         PRINT_OPERAND): Likewise.
2265         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2266         Likewise.
2267         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2268         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2269         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2270         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2271         * mips.c (mips_output_external_libcall): Mark parameter with
2272         ATTRIBUTE_UNUSED.
2273         (mips_asm_file_start): Move variable into the scope where it's
2274         used.
2275         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2276         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2277         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
2278         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2279         * ns32k.c (print_operand): Likewise.
2280         * pa.c (print_operand, output_div_insn): Likewise.
2281         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
2282         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
2283         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
2284         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2285         specifier warnings.
2286         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2287         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2288         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
2289         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2290         specifier warnings.
2291         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2292
2293         * sdbout.c (sdbout_end_epilogue): Mark parameter with
2294         ATTRIBUTE_UNUSED.
2295         * varasm.c (assemble_global): Likewise.
2296
2297 2001-11-11  H.J. Lu <hjl@gnu.org>
2298
2299         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
2300
2301 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2302
2303         * final.c (*_MAX_SKIP): Use *_max_skip variables.
2304         * flags.h (align_loops_max_skip, align_jumps_max_skip,
2305         align_labels_max_skip): New global variables.
2306         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
2307         align_labels_max_skip): New global variables.
2308         (toplev_main): Set new variables.
2309         * i386.c (override_options): Set max_skip values.
2310
2311 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
2312
2313         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
2314         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
2315         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
2316         don't print an @fptr for labels either.
2317         (xstormy16_output_addr_vec): Don't print @fptr here.
2318         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
2319
2320 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
2321
2322         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
2323         an ANSI/ISO definitino.
2324         (ssa_const_prop): Likewise.
2325
2326 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
2327
2328         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
2329         altivec registers.
2330
2331 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2332
2333         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
2334         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
2335         * cppmain.c (general_init): Call hex_init.
2336         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
2337
2338         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
2339
2340         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
2341         of dgux.c:output_file_start().
2342
2343         * i386/dgux.c: Delete file.
2344
2345 2001-11-09  Richard Henderson  <rth@redhat.com>
2346
2347         * config/alpha/alpha.c (decl_in_text_section): New.
2348         (current_file_function_operand): Use it.
2349         (alpha_encode_section_info, alpha_end_function): Likewise.
2350
2351 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
2352
2353         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
2354         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
2355         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
2356         so OS specific files and use CPP_PREDEFINES for their needs.
2357         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
2358         target headers to tm_file.
2359         * config/ia64/aix.h (TARGET_VERSION): Likewise.
2360         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2361         * config/ia64/linux.h (TARGET_VERSION): Likewise.
2362         (FUNCTION_PROFILER): Remove.
2363         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2364         version in config/ia64/linux.h.
2365         * config/ia64/freebsd.h: New file.
2366         * config/freebsd.h: Tidy up.
2367         (_USING_CONFIG_FREEBSD): Define.
2368         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2369         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2370         (FBSD_STARTFILE_SPEC): Likewise.
2371         (FBSD_ENDFILE_SPEC): Likewise.
2372         (FBSD_LIB_SPEC): Likewise.
2373         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2374         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2375         set an ELF-improper one.
2376
2377 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2378
2379         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2380         constant can be loaded in a single instruction to a register.  When
2381         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
2382         depdi for insertion of most significant 32-bits on 64-bit hosts.
2383         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2384         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2385         * pa.md: New addmove pattern for adding constant_int to HImode
2386         register and moving result to HImode register.  Remove HImode HIGH
2387         and LO_SUM patterns.
2388
2389 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2390
2391         * Makefile.in: Update.
2392         * c-decl.c (print_lang_decl, print_lang_type): Remove.
2393         (print_lang_identifier): Rename c_print_identifier.
2394         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2395         (print_lang_statistics, lang_print_xnode): Remove.
2396         * c-parse.in (set_yydebug): Rename c_set_yydebug.
2397         * c-tree.h (c_set_yydebug, c_print_identifier): New.
2398         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2399         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2400         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2401         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2402         (LANG_HOOKS_INITIALIZER): Update.
2403         * langhooks.h (struct lang_hooks): New members.
2404         (lang_print_tree_hook): New.
2405         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2406         * print-tree.c: Include langhooks.h.
2407         (print_node): Update.
2408         * toplev.c (decode_d_option): Update.
2409         * tree.c: Include langhooks.h.
2410         (dump_tree_statistics): Update.
2411         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2412         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2413 objc:
2414         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2415         LANG_HOOKS_SET_YYDEBUG): Override.
2416         (lang_print_xnode, print_lang_statistics): Remove.
2417
2418 2001-11-09  Richard Henderson  <rth@redhat.com>
2419
2420         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2421         on the symbol string.
2422
2423 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2424
2425         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2426         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2427         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2428
2429         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2430
2431         * tlink.c (recompile_files): Copy strings passed to `putenv'.
2432
2433 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
2434
2435         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2436         (TYPE_READONLY): Likewise.
2437
2438         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2439
2440         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2441         don't pass --gdwarf2 to the assembler if the compiler will also
2442         provide debug info.
2443
2444         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2445         Don't change INDEX.
2446
2447 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2448
2449         * alias.c (nonoverlapping_memrefs_p): New function.
2450         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2451
2452         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2453
2454 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
2455
2456         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2457         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2458         generating altivec code.
2459         (FIXED_REGISTERS): VRSAVE is fixed.
2460         (CALL_USED_REGISTERS): VRSAVE is call used.
2461
2462 2001-11-09  Jason Eckhardt  <jle@rice.edu>
2463
2464         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2465         code the branch target as ".+16/.+12", but rather use labels.
2466
2467 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
2468
2469         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2470         to work around limitations of certain versions of GAS.
2471
2472         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2473         (muldi3): Update due to SUBREG_BYTE changes.
2474         (casesi): Similarly.
2475
2476 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
2477
2478         * doc/invoke.texi: Remove comment referring to -xf77-version.
2479
2480 2001-11-09  Kazu Hirata  <kazu@hxi.com>
2481
2482         * config/convex/convex.c: Fix comment formatting.
2483         * config/convex/convex.h: Likewise.
2484
2485 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
2486
2487         * Makefile.in (.po.pox): Look both in srcdir and builddir
2488         for $(PACKAGE).pot.
2489         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2490         to the source directory.
2491
2492 2001-11-09 Ben Elliston  <bje@redhat.com>
2493            Michael Meissner  <meissner@redhat.com>
2494            Andrew MacLeod  <amacleod@redhat.com>
2495            Richard Henderson  <rth@redhat.com>
2496            Nick Clifton  <nickc@redhat.com>
2497            Catherine Moore  <clm@redhat.com>
2498
2499         * m32r.c: Add support for m32rx processor.
2500         * m32r.h: Ditto.
2501         * m32r.md: Ditto.
2502         * t-m32r: Ditto.
2503         * m32r-protos.h: Add prototypes for m32rx functions.
2504         * doc/invoke.texi: Document -m32rx option.
2505
2506 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2507
2508         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2509         or after reload.
2510
2511 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2512
2513         * doc/install.texi2html: Use $MAKEINFO --no-split.
2514
2515 2001-11-09  Andreas Schwab  <schwab@suse.de>
2516
2517         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2518         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2519         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2520         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2521         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2522
2523 2001-11-09  H.J. Lu <hjl@gnu.org>
2524
2525         * config/mips/mips.c (mips_output_function_prologues): Cast
2526         `tsize' to long for output.
2527
2528 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2529
2530         * c-lang.c (LANG_HOOKS_NAME): New.
2531         (lang_hooks): Constify.
2532         (c_init_options): Update.
2533         (lang_identify): Remove.
2534         * c-parse.in (language_string): Remove.
2535         * dbxout.c: Include langhooks.h.
2536         (dbxout_symbol_location): Update.
2537         * dwarf2out.c: Include langhooks.h.
2538         (gen_compile_unit_die): Update.
2539         * dwarfout.c: Include langhooks.h.
2540         (prototyped_attribute, output_compile_unit_die): Update.
2541         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2542         (LANG_HOOKS_INITIALIZER): Update.
2543         * langhooks.h (struct lang_hooks): New members.  Constify.
2544         * stringpool.c: Don't include toplev.h.
2545         (set_identifier_size): Remove.
2546         * toplev.c (toplev_main): Initialize identifier size.
2547         (print_version): Update.
2548         * tree.h (language_string, init_lex, lang_identify,
2549         set_identifier_size): Remove.
2550         * Makefile.in: Update dependencies.
2551         * config/darwin.c: Include langhooks.h.
2552         (func_name_maybe_scoped): Update.
2553         * config/darwin.h (ASM_END_FILE): Update.
2554         * config/nextstep.h (ASM_END_FILE): Update.
2555         * config/nextstep21.h (ASM_END_FILE): Update.
2556         * config/i386/sun386.h (ASM_END_FILE): Update.
2557         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2558         (rs6000_output_function_epilogue): Update.
2559 objc:
2560         * objc-act.c (LANG_HOOKS_NAME): Override.
2561         (struct lang_hooks): Constify.
2562         (objc_init_options): Update.
2563         (lang_identify): Remove.
2564
2565 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
2566
2567         * fold-const.c (lshift_double): Honor PREC.
2568         (rshift_double): Likewise.
2569
2570 2001-11-08  Kazu Hirata  <kazu@hxi.com>
2571
2572         * config/1750a/1750a.c: Fix comment formatting.
2573         * config/1750a/1750a.h: Likewise.
2574
2575 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
2576
2577         * configure.in (--enable-languages): Be more permissive about
2578         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
2579         * configure: Regenerated.
2580
2581 2001-11-08  Richard Henderson  <rth@redhat.com>
2582
2583         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2584
2585 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
2586
2587         * config.gcc: Rename stormy16 to xstormy16.
2588         * config/stormy16/stormy-abi: Likewise.
2589         * config/stormy16/stormy16-protos.h: Likewise.
2590         * config/stormy16/stormy16.c: Likewise.
2591         * config/stormy16/stormy16.h: Likewise.
2592         * config/stormy16/stormy16.md: Likewise.
2593
2594 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
2595
2596         * tree.h (TYPE_VOLATILE): Add enable-checking code.
2597         (TYPE_READONLY): Likewise.
2598
2599 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2600
2601         * reload1.c (reload): Don't delete equiv insn if can throw.
2602
2603         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2604         (clear_storage): Likewise, for OBJECT.
2605
2606 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
2607
2608         * pa.c (emit_move_sequence): Fix SUBREG expression to
2609         use proper byte offset when extending a constant from
2610         SImode to DImode.
2611
2612 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2613
2614         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2615         which cannot throw.
2616
2617 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2618
2619         * explow.c (convert_memory_address, case SUBREG): Only return
2620         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2621
2622 2001-11-08  Richard Henderson  <rth@redhat.com>
2623
2624         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2625         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2626         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2627
2628 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
2629
2630         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2631
2632 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2633
2634         * dwarf2out.c (debug_str_hash): New.
2635         (struct indirect_string_node): New.
2636         (struct dw_val_struct): Change type of val_str to it.
2637         (DEBUG_STR_SECTION_FLAGS): Define.
2638         (add_AT_string): Push string into hashtable, increment reference
2639         counter.
2640         (AT_string): Return string from ht_identifier.
2641         (AT_string_form): New.
2642         (free_AT): For dw_val_class_str, just decrement reference counter.
2643         (size_of_string): Remove.
2644         (size_of_die): Use AT_string_form to decide what size the string
2645         occupies in DIE.
2646         (size_of_pubnames): Use strlen instead of size_of_string.
2647         (value_format): Use AT_string_form for dw_val_class_str.
2648         (output_die): Output DW_FORM_strp strings using
2649         dw2_asm_output_offset.
2650         (indirect_string_alloc, output_indirect_string): New.
2651         (dwarf2out_finish): Emit .debug_str strings if there are any.
2652
2653 2001-11-08  Andreas Franck  <afranck@gmx.de>
2654
2655         * configure.in: Add AC_ARG_PROGRAM to support program name
2656         transformation with --program-prefix, --program-suffix and
2657         --program-transform-name.
2658         * configure: Regenerated.
2659         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2660         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2661         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2662         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2663         program_transform_name the way suggested by autoconf.
2664         (GCC_TARGET_INSTALL_NAME): Define.
2665         (install-driver): Use the transformed target alias name.
2666
2667 2001-11-08  Richard Henderson  <rth@redhat.com>
2668
2669         * config/mips/mips.c (save_restore_insns): Remove GP from the
2670         restore registers mask early instead of special casing it inside
2671         the loop.
2672
2673 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2674
2675         * cp/decl.c (shadow_warning): New function.
2676         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
2677         and an error when a block scope decl shadows a parameter.
2678
2679 2001-11-08  Richard Henderson  <rth@redhat.com>
2680
2681         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2682         case as well.
2683
2684 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2685
2686         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2687         to implement floating negation on processors prior to PA 2.0.
2688
2689 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2690
2691         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2692         (USE_LINKONCE_INDIRECT): Define.
2693         (dw2_output_indirect_constant_1): Try to output indirect constants
2694         into linkonce sections if possible.
2695         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
2696         (dw2_output_indirect_constants): Likewise.
2697
2698 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2699
2700         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2701
2702 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2703
2704         * c-decl.c (pushdecl): Remove file and line.
2705         * c-typeck.c (pop_init_level): Remove size.
2706
2707 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2708
2709         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2710         for rs6000.
2711
2712         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2713         (TARGET_ALTIVEC): New.
2714         (TARGET_SWITCHES): Add altivec.
2715         (FIRST_PSEUDO_REGISTER): Change to 109.
2716         (CALL_USED_REGISTERS): Same.
2717         (FIRST_ALTIVEC_REGNO): New.
2718         (LAST_ALTIVEC_REGNO): New.
2719         (ALTIVEC_REGNO_P): New.
2720         (UNITS_PER_ALTIVEC_WORD): New.
2721         (ALTIVEC_VECTOR_MODE): New.
2722         (FIXED_REGISTERS): Add altivec registers.
2723         (REG_ALLOC_ORDER): Same.
2724         (HARD_REGNO_NREGS): Adjust for altivec registers.
2725         (HARD_REGNO_MODE_OK): Same.
2726         (MODES_TIEABLE_P): Same.
2727         (REGISTER_MOVE_COST): Same.
2728         (REGNO_REG_CLASS): Same.
2729         (reg_class): Add ALTIVEC_REGS.
2730         (REG_CLASS_NAMES): Same.
2731         (REG_CLASS_CONTENTS): Same.
2732         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2733         (ALTIVEC_ARG_RETURN): New.
2734         (FUNCTION_VALUE): Handle VECTOR_TYPE.
2735         (LIBCALL_VALUE): Handle altivec vector modes.
2736         (VECTOR_MODE_SUPPORTED_P): New.
2737         (ALTIVEC_ARG_MIN_REG): New.
2738         (ALTIVEC_ARG_MAX_REG): New.
2739         (ALTIVEC_ARG_NUM_REG): New.
2740         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2741         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2742         (REGISTER_NAMES): Add altivec regs.
2743         (DEBUG_REGISTER_NAMES): Same.
2744         (ADDITIONAL_REGISTER_NAMES): Same.
2745         (rs6000_builtins): New.
2746         (MD_EXPAND_BUILTIN): New.
2747         (MD_INIT_BUILTINS): New.
2748         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2749         for AltiVec instructions.
2750         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2751         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2752         registers.
2753         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2754         (TARGET_SWITCHES): Add no-altivec.
2755         (DATA_ALIGNMENT): Align vectors to 128 bits.
2756         (TARGET_OPTIONS): Add abi= option.
2757         Add rs6000_abi_string extern.
2758         (LOCAL_ALIGNMENT): New.
2759         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2760         (MASK_ALTIVEC_ABI): New.
2761         (TARGET_ALTIVEC_ABI): New.
2762         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2763         call-saved.
2764         (STACK_BOUNDARY): Adjust for altivec.
2765         (BIGGEST_ALIGNMENT): Same.
2766         (rs6000_args): Add vregno.
2767         (USE_ALTIVEC_FOR_ARG_P): New.
2768         (FIXED_REGISTERS): Add vrsave register.
2769         (CALL_USED_REGISTERS): Same.
2770         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2771         (VRSAVE_REGNO): New.
2772         (reg_class): Add VRSAVE_REGS.
2773         (REG_CLASS_NAMES): Same.
2774         (REG_CLASS_CONTENTS): Same.
2775         (REGNO_REG_CLASS): Same.
2776
2777         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2778         (ABI_STACK_BOUNDARY): Same.
2779         (BIGGEST_ALIGNMENT): Same.
2780         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
2781         (ROUND_TYPE_ALIGN): Same.
2782
2783         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2784         to 64.
2785
2786         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2787         to 64.
2788
2789         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2790         to 64.
2791
2792         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2793         (altivec_expand_builtin): New.
2794         (altivec_init_builtins): New.
2795         (TARGET_EXPAND_BUILTIN): New.
2796         (TARGET_INIT_BUILTINS): New.
2797         (rs6000_init_builtins): New.
2798         (struct builtin_description): New.
2799         (bdesc_2arg): New.
2800         (rs6000_reg_names): Add altivec registers.
2801         (alt_reg_names): Same.
2802         (secondary_reload_class): Altivec regs can hold altivec regs and
2803         memory.
2804         (rs6000_emit_move): Force constants into memory for AltiVec moves.
2805         (print_operand): Add 'y' case for printing altivec memory
2806         operands.
2807         (rs6000_legitimize_address): Legitimize vector addresses into
2808         [REG+REG] or [REG].
2809         (altivec_expand_binop_builtin): New.
2810         New string rs6000_current_abi.
2811         (rs6000_override_options): Call rs6000_parse_abi_options.
2812         (rs6000_parse_abi_options): New.
2813         (function_arg_boundary): Vector arguments must be 16
2814         byte aligned.
2815         (function_arg_advance): Handle vector arguments.
2816         (function_arg_partial_nregs): Same.
2817         (init_cumulative_args): Same.
2818         (function_arg): Same.
2819
2820         * config/rs6000/rs6000.md (altivec_lvx): New.
2821         (type): Add altivec attribute.
2822         (movv4si): New.
2823         (*movv4si_internal): New.
2824         (movv16qi): New.
2825         (*movv16qi_internal): New.
2826         (movv8hi): New.
2827         (*movv8hi_internal1): New.
2828         (movv4sf): New.
2829         (*movv4sf_internal1): New.
2830         (altivec_stvx): New.
2831         (vaddubm): New.
2832         (vadduhm): New.
2833         (vadduwm): New.
2834         (vaddfp): New.
2835         (vaddcuw): New.
2836         (vaddubs): New.
2837         (vaddsbs): New.
2838         (vadduhs): New.
2839         (vaddshs): New.
2840         (vadduws): New.
2841         (vaddsws): New.
2842         (vand): New.
2843         (vandc): New.
2844         (vavgub): New.
2845         (vavgsb): New.
2846         (vavguh): New.
2847         (vavgsh): New.
2848         (vavguw): New.
2849         (vavgsw): New.
2850         (vcmpbfp): New.
2851         (vcmpequb): New.
2852         (vcmpequh): New.
2853         (vcmpequw): New.
2854         (vcmpeqfp): New.
2855         (vcmpgefp): New.
2856         (vcmpgtub): New.
2857         (vcmpgtsb): New.
2858         (vcmpgtuh): New.
2859         (vcmpgtsh): New.
2860         (vcmpgtuw): New.
2861         (vcmpgtsw): New.
2862         (vcmpgtfp): New.
2863         (vcmpgefp): New.
2864         (vcmpgtub): New.
2865         (vcmpgtsb): New.
2866         (vcmpgtuh): New.
2867         (vcmpgtsh): New.
2868         (vcmpgtuw): New.
2869         (vcmpgtsw): New.
2870         (vcmpgtfp): New.
2871         (vmaxub): New.
2872         (vmaxsb): New.
2873         (vmaxuh): New.
2874         (vmaxsh): New.
2875         (vmaxuw): New.
2876         (vmaxsw): New.
2877         (vmaxfp): New.
2878         (vmrghb): New.
2879         (vmrghh): New.
2880         (vmrghw): New.
2881         (vmrglb): New.
2882         (vmrglh): New.
2883         (vmrglw): New.
2884         (vminub): New.
2885         (vminsb): New.
2886         (vminuh): New.
2887         (vminsh): New.
2888         (vminuw): New.
2889         (vminsw): New.
2890         (vminfp): New.
2891         (vmuleub): New.
2892         (vmulesb): New.
2893         (vmuleuh): New.
2894         (vmulesh): New.
2895         (vmuloub): New.
2896         (vmulosb): New.
2897         (vmulouh): New.
2898         (vmulosh): New.
2899         (vnor): New.
2900         (vor): New.
2901         (vpkuhum): New.
2902         (vpkuwum): New.
2903         (vpkpx): New.
2904         (vpkuhss): New.
2905         (vpkshss): New.
2906         (vpkuwss): New.
2907         (vpkswss): New.
2908         (vpkuhus): New.
2909         (vpkshus): New.
2910         (vpkuwus): New.
2911         (vpkswus): New.
2912         (vrlb): New.
2913         (vrlh): New.
2914         (vrlw): New.
2915         (vslb): New.
2916         (vslh): New.
2917         (vslw): New.
2918         (vsl): New.
2919         (vslo): New.
2920         (vsrb): New.
2921         (vrsh): New.
2922         (vrsw): New.
2923         (vsrab): New.
2924         (vsrah): New.
2925         (vsraw): New.
2926         (vsr): New.
2927         (vsro): New.
2928         (vsububm): New.
2929         (vsubuhm): New.
2930         (vsubuwm): New.
2931         (vsubfp): New.
2932         (vsubcuw): New.
2933         (vsububs): New.
2934         (vsubsbs): New.
2935         (vsubuhs): New.
2936         (vsubshs): New.
2937         (vsubuws): New.
2938         (vsubsws): New.
2939         (vsum4ubs): New.
2940         (vsum4sbs): New.
2941         (vsum4shs): New.
2942         (vsum2sws): New.
2943         (vsumsws): New.
2944         (vxor): New.
2945
2946 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
2947
2948         * Makefile.in (df.o): Add fibheap.h to dependencies.
2949
2950         * df.h: Add prototypes for transfer functions, iterative_dataflow
2951         functions.
2952         (enum df_flow_dir): New enum.
2953         (enum df_confluence_op): New enum.
2954         (struct df): Add inverse_rts_map.
2955
2956         * df.c: Add sbitmap.h to the list of includes.
2957         (df_rd_global_compute): Removed.
2958         (df_ru_global_compute): Removed.
2959         (df_lr_global_compute): Removed.
2960         (df_rd_transfer_function): New function.
2961         (df_ru_transfer_function): New function.
2962         (df_lr_transfer_function): New function.
2963         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2964         Use iterative_dataflow_bitmap instead of df_*_global_compute.
2965         (iterative_dataflow_sbitmap): New function.
2966         (iterative_dataflow_bitmap): New function.
2967
2968 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2969
2970         * doc/gcc.texi: Move terminology and spelling conventions to
2971         htdocs/codingconventions.html.
2972
2973 2001-11-07  Graham Stott  <grahams@redhat.com>
2974
2975         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2976
2977 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
2978
2979         * expmed.c (expand_mult): Force operand to register before computing
2980         cost.
2981         * i386.c (x86_decompose_lea): New global vairable.
2982         * i386.h (x86_decompose_lea): Declare.
2983         (TARGET_DECOMPOSE_LEA): New macro.
2984         (RTX_COST): Handle leas properly.
2985
2986 2001-11-06  Richard Henderson  <rth@redhat.com>
2987
2988         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2989         defined for a CONSTRUCTOR; don't check it.
2990
2991 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
2992
2993         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2994         test for absolute pathnames.
2995
2996 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
2997
2998         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2999         instructions up to the target pc inclusive.
3000
3001 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
3002
3003         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
3004
3005 2001-11-06  Eric Christopher  <echristo@redhat.com>
3006
3007         * config/mips/mips.md(movdf_internal2): Add constraints for float
3008         to general register move.
3009         * config/mips/elf64.h: Add default ABI.
3010
3011 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3012
3013         * alias.c:: Include langhooks.h.
3014         * emit-rtl.c: Similarly.
3015         * toplev.c: Similarly.
3016         * tree-inline.c: Similarly.
3017         * langhooks-def.h: New, the old langhooks.h.  Give the default
3018         hooks a common prefix.
3019         * langhooks.h: Contents extracted from toplev.h.
3020         * toplev.h: Move langhook stuff to langhooks.h.
3021         * langhooks.c: Give default hooks a common prefix.
3022
3023         * c-lang.c: Include langhooks-def.h.
3024         * objc/objc-act.c: Similarly.
3025         * Makefile.in: Update.
3026         * objc/Make-lang.in: Update.
3027
3028 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3029
3030         * doc/install.texi: Document that configure options not listed in
3031         this file are unsupported.  Document --with-system-zlib.
3032
3033 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3034
3035         * rtl.h (mem_for_const_double): New declaration.
3036         * varasm.c (mem_for_const_double): New function.
3037         * config/convex/convex.md (movdf): Use it.
3038         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
3039         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
3040         * config/m68k/m68kv4.h: Likewise.
3041
3042         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
3043         of new GP reg classes.
3044
3045         * expr.c (store_field): When making temp object for unaligned
3046         component, set it to alias set 0.
3047
3048 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3049
3050         * c-common.c (c_expand_expr_stmt): Apply default conversions to
3051         non-lvalue arrays if C99.
3052         * c-typeck.c (default_conversion): Split out code handling
3053         array-to-pointer and function-to-pointer conversions into a
3054         separate default_function_array_conversion function.
3055         (default_function_array_conversion): New function.  Keep track of
3056         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
3057         arrays unchanged outside C99 mode instead of giving an error for
3058         them.
3059         (build_component_ref): Use pedantic_non_lvalue when handling
3060         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
3061         (convert_arguments): Use default_function_array_conversion.
3062         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
3063         non-lvalues are OK.
3064         (unary_complex_lvalue): Likewise.
3065         (internal_build_compound_expr): Use
3066         default_function_array_conversion.  Apply default conversions to
3067         function in compound expression.
3068         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
3069         Use default_function_array_conversion.
3070         * doc/extend.texi: Update documentation of subscripting non-lvalue
3071         arrays.
3072         Fixes PR c/461.
3073
3074 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
3075
3076         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
3077         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
3078         corresponding to the complete set of .po and .gmo files in
3079         the source directory's po subdir, modified by LINGUAS.  Don't
3080         look at ALL_LINGUAS.
3081         * configure.in: Don't set ALL_LINGUAS.
3082         * configure: Regenerate.
3083
3084         * Makefile.in (.po.gmo): Don't move into source directory.
3085         (.po.pox): Clarify comments.
3086         (install-po): Look for .gmo files in both srcdir and objdir;
3087         don't fail if a file is totally missing.
3088         (distclean): rmdir ada subdirectory too.
3089
3090 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3091
3092         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3093         CONSTRUCTORs _correctly_.
3094
3095 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3096
3097         * c-decl.c (delete_block): Remove.
3098         * c-tree.h (delete_block): Remove.
3099
3100 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3101
3102         * cppexp.c (lex, parse_defined): Update warning about defined.
3103
3104 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3105
3106         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3107         CONSTRUCTORs too.
3108
3109 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
3110
3111         * config/arm/arm.c (arm_return_in_memory): Cope with
3112         int_size_in_bytes returning -1.
3113
3114         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
3115         DECL being NULL.
3116
3117 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
3118
3119         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
3120         remove unneeded dependencies;
3121         (cfglayout.o): New.
3122         * cfglayout.c, cfglayout.h: New files; break out from ...
3123         * bb-reorder.c: ... here; Remove unneeded includes;
3124
3125 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
3126
3127         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
3128
3129 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
3130
3131         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
3132         mode as well.  Do not explicitly create intermediate regs.
3133
3134 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3135
3136         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
3137         (common_section): Delete unused variable.
3138         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
3139         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3140         * arm-protos.h (arm_poke_function_name, aof_add_import,
3141         aof_delete_import): Const-ify.
3142         * arm.c (legitimize_pic_address): Wrap variables in the macro
3143         controlling their usage.
3144         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
3145         (arm_poke_function_name, pic_chain, import, aof_add_import,
3146         aof_delete_import): Const-ify.
3147         * i386.c (ix86_osf_output_function_prologue): Const-ify.
3148         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3149         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
3150         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
3151         * i860/sysv3.h: Add missing comment closure.
3152         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
3153         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
3154         to symbolic_operand.
3155
3156         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
3157         (i960-*-*): Set tmake_file.
3158         (sparc86x-*-elf*): Fix typo in header name.
3159
3160         * sched-rgn.c (schedule_insns): Delete unused variable.
3161
3162 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3163
3164         PR c/2820
3165         * c-typeck.c (lookup_field): Rework to return a chain down to
3166         the looked-up field.
3167         (build_component_ref): Use the new lookup_field to handle
3168         nested anonymous entities correctly.
3169
3170 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3171
3172         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
3173         Change parameters to gen_rtx_CONST_DOUBLE.
3174         (GEN_INT64, sparc_emit_set_const64): Likewise.
3175         * config/sparc/sparc.md (movdf split): Likewise.
3176
3177 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
3178
3179         * unroll.c (calculate_giv_inc): Use find_last_value rather
3180         than just hoping the last instruction is the right SET.
3181         [Fixes 990604-1.c on stormy16.]
3182
3183         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
3184         library at all if -T is used.
3185
3186         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
3187         some uses of uninitialized variables in error cases.
3188
3189         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
3190         look at 'temp' if we won't be using it.
3191
3192         * config/stormy16/stormy16.h (CONST_COSTS): Define.
3193         (RTX_COSTS): Define.
3194         (ADDRESS_COST): Define.
3195         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
3196
3197         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
3198
3199         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
3200         stormy16_asm_output_mi_thunk.
3201         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
3202         function.
3203         * config/stormy16/stormy16-protos.h
3204         (stormy16_asm_output_mi_thunk): New prototype.
3205
3206 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3207
3208         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
3209         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
3210         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
3211         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
3212         sched-int.h, toplev.c, config/alpha/alpha.c,
3213         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
3214         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
3215         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
3216         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
3217         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
3218         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
3219         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
3220
3221 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3222
3223         * Makefile.in (dbxout.o): Depend on function.h.
3224         * collect2.c (is_in_list): Hide unused function.
3225         * dbxout.c: Include function.h.
3226         (source_label_number, dbxout_source_line, dbxout_source_file,
3227         dbxout_function_end, dbxout_begin_function): Wrap/move inside
3228         macros controlling usage.
3229         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
3230         * output.h (exports_section): Prototype.
3231
3232         * convex.c (convex_output_function_prologue): Fix format specifier
3233         warning.
3234         (asm_declare_function_name): Fix signed/unsigned warning.
3235         (print_operand): Fix format specifier warning.
3236         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
3237         * dsp16xx-protos.h (uns_comparison_operator,
3238         num_1600_core_shifts): Prototype.
3239         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
3240         (frame_size, frame_pointer_offset): Delete.
3241         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
3242         Make static.  Fix format specifier warnings.
3243         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
3244         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
3245         * dsp16xx.md: Add default case in switches.
3246         * fr30.h (IN_RANGE): Delete.
3247         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3248         * mcore-protos.h (mcore_output_cmov): Const-ify.
3249         * mcore.c (mcore_output_cmov): Likewise.
3250         * mcore.h (switch_to_section): Make static and prototype.
3251         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
3252         unsigned>=0 warnings.
3253         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
3254         * rs6000-protos.h (read_only_data_section,
3255         read_only_private_data_section): Prototype.
3256         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3257         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
3258         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
3259
3260 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3261
3262         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
3263         ATTRIBUTE_UNUSED.
3264         * final.c (final_scan_insn): Add brackets around body of if-stmt.
3265         * gcc.c (convert_filename): Add static prototype.  Const-ify.
3266         Wrap variable in macros controlling its use.
3267         * output.h (sdata_section): Add prototype.
3268
3269         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3270         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
3271         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
3272         (ASM_FILE_START): Const-ify.
3273         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
3274         specifier warning.
3275         * c4x.md: Don't use the 'U' integer suffix.
3276         * clipper.md (clipper_movstr): Delete declaration.
3277         * d30v-protos.h (d30v_move_2words): Const-ify.
3278         (debug_stack_info): Add prototype.
3279         * d30v.c: Include "integrate.h".
3280         (d30v_function_arg_boundary, d30v_function_arg,
3281         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
3282         signed/unsigned warnings.
3283         (d30v_print_operand_memory_reference, d30v_move_2words):
3284         Const-ify.
3285         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
3286         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
3287         * fr30.md: Const-ify.
3288         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3289         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
3290         (mvs_get_label_page): Hide unused static function.
3291         * i860.c (current_function_original_name): Const-ify.
3292         * i860/sysv3.h (current_function_original_name): Likewise.
3293         * i860/sysv4.h (current_function_original_name): Likewise.
3294         * i960.md: Add default case in switches.  Remove unused variable.
3295         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
3296         * m32r.md: Const-ify.
3297         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
3298         * m68hc11.c: Include "reload.h".
3299         (static_chain_reg, print_options, m68hc11_asm_file_start):
3300         Const-ify.
3301         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
3302         around & in comparison.
3303         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3304         * mn10200.c (shift_mode): Remove trailing comma.
3305         * mn10300-protos.h (output_tst): Const-ify.
3306         * mn10300.c (output_tst): Likewise.
3307         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
3308         warnings.
3309         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
3310         * pa.c (output_ascii): Likewise.
3311         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3312         * pdp11.md (expand_unop): Delete declarations.
3313         * pj-protos.h (pj_output_addsi3): Const-ify.
3314         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
3315         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
3316         unique_src_operand): Add prototypes.
3317         (pj_output_store_into_lval): Make definition static.
3318         (pj_function_incoming_arg): Don't use unary plus.
3319         (pj_output_addsi3): Const-ify.
3320         * romp.md (get_symref): Delete declarations.
3321         * v850-c.c (mark_current_function_as_interrupt): Don't return
3322         value from void function.
3323         * v850.c: Include "integrate.h".
3324         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
3325         * vax-protos.h (const_section): Add prototype.
3326
3327 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
3328
3329         * machmode.def: Add documentation for the seventh argument in
3330         vector modes.
3331
3332 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
3333
3334         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
3335         consistently.
3336         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
3337         <-melf>: Don't have markup for ELF acronym.
3338
3339 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
3340
3341         * config.gcc (mmix-*-*): New target.
3342         * doc/invoke.texi: Document MMIX options.
3343         * doc/contrib.texi: Add note about MMIX port to my entry.
3344         * config/mmix/t-mmix: New file.
3345         * config/mmix/mmix.h: New file.
3346         * config/mmix/mmix-protos.h: New file.
3347         * config/mmix/mmix.c: New file.
3348         * config/mmix/mmix.md: New file.
3349         * config/mmix/crti.asm: New file.
3350         * config/mmix/crtn.asm: New file.
3351
3352 2001-11-03  Kazu Hirata  <kazu@hxi.com>
3353
3354         * config/sparc/linux-aout.h: Fix comment formatting.
3355         * config/sparc/linux.h: Likewise.
3356         * config/sparc/linux64.h: Likewise.
3357         * config/sparc/lynx.h: Likewise.
3358         * config/sparc/pbd.h: Likewise.
3359         * config/sparc/sol2-sld-64.h: Likewise.
3360         * config/sparc/sol2.h: Likewise.
3361         * config/sparc/sparc.c: Likewise.
3362         * config/sparc/sparc.h: Likewise.
3363         * config/sparc/sparc.md: Likewise.
3364         * config/sparc/sunos4.h: Likewise.
3365         * config/sparc/vxsim.h: Likewise.
3366         * config/sparc/vxsparc.h: Likewise.
3367         * config/sparc/vxsparc64.h: Likewise.
3368
3369 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3370
3371         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3372         reference to CONST_DOUBLE_MEM in comment.
3373         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3374         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3375         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3376         * function.c (pop_function_context_from): Don't call
3377         restore_varasm_status.
3378         * function.h (restore_varasm_status): Delete declaration.
3379         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3380         * rtl.c: Likewise.
3381         * rtl.def (CONST_DOUBLE): Update comment.
3382         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3383         (CONST_DOUBLE_CHAIN): Likewise.
3384         (CONST_DOUBLE_MEM): Delete.
3385         (gen_rtx_CONST_DOUBLE): Update parameters.
3386         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3387         Remove reference to CONST_DOUBLE_MEM.
3388         (const_alias_set): New variable.
3389         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3390         (immed_real_const_1): Adjust tests for 0, 1, and 2.
3391         Don't set CONST_DOUBLE_MEM.
3392         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3393         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3394         Put constant in const_alias_set.
3395         (struct pool_constant): ALIGN now unsigned.
3396         OFFSET now HOST_WIDE_INT.
3397         Delete LABEL.
3398         (restore_varasm_status): Deleted.
3399         (mark_pool_constant): Mark desc->rtl.
3400         (force_const_mem): Rework to store rtl in hash table,
3401         not CONST_DOUBLE_MEM.
3402         Put constant in const_alias_set.
3403         (find_pool_constant): Check desc->rtl.
3404         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3405         (init_varasm_once): Initialize const_alias_set.
3406
3407         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3408         force_const_mem.
3409
3410         * reload.c (combine_reloads): Don't combine an output reload if there
3411         are other reloads around for part of the output.
3412
3413         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3414         constant expression.
3415         (set_mem_decl): New function.
3416         * expr.h (set_mem_decl): New declaration.
3417         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3418         (output_asm_operand_names): Add tab.
3419         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3420
3421         * builtins.c (get_memory_rtx): Properly set MEM alias set and
3422         attributes.
3423
3424 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3425
3426         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3427         Use "invalid" instead of "illegal".  Use @r in comments in
3428         examples.
3429
3430 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3431
3432         * c-decl.c (pushdecl): Move block inside if conditional to remove
3433         possibility of a segfault.  Lookup block-level extern
3434         variables in enclosing scopes correctly.
3435
3436         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3437
3438 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3439
3440         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3441         SUBREG so we avoid SUBREGing memory.
3442
3443         * expmed.c (store_bit_field): Same.
3444
3445 2001-11-02  DJ Delorie  <dj@redhat.com>
3446
3447         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3448         using FP registers for DImode mem-mem moves is acceptable.
3449
3450 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3451
3452         * builtins.c (apply_args_size): Handle vector arguments.
3453         (apply_result_size): Same.
3454
3455         * machmode.def: Set WIDER mode field for all vector entries.
3456
3457 2001-11-02  Graham Stott  <grahams@redhat.com>
3458
3459         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
3460
3461 2001-11-01  Eric Christopher  <echristo@redhat.com>
3462
3463         * config.gcc: Revert part of earlier patch.
3464         * config/mips/linux.h: Ditto.
3465         * df.c: Include tm_p.h to avoid warnings.
3466         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
3467         #if/#endif.
3468         * config/mips/mips.c: Define mips_abi regardless.
3469         (mips_output_function_prologues): Add long casts for .frame
3470         output.
3471         (override_options): Allow use of ABI_32.
3472
3473 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3474
3475         * config/m68hc11/m68hc11.c: Fix comment formatting.
3476         * config/m68hc11/m68hc11.h: Likewise.
3477         * config/m68hc11/m68hc11.md: Likewise.
3478
3479 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3480
3481         * c-typeck.c (default_conversion): Retain the original expression
3482         codes.
3483         * gcc.dg/Wparentheses.c: New tests.
3484
3485 2001-11-01  David S. Miller  <davem@redhat.com>
3486
3487         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3488         64-bit Sparc description more in line with reality.
3489
3490 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
3491
3492         * Makefile.in (GCOV_OBJS): Add version.o.
3493         * gcov.c: Include "version.h" and <getopt.h>.
3494         (gcov_version_string): Remove.
3495         (print_usage): Take a parameter to determine whether this is a
3496         call from --help or an error message.  Give fuller output that
3497         follows the GNU Coding Standards for --help.
3498         (print_version): New function.
3499         (options): New.
3500         (process_args): Use getopt_long.  Support long options.  Follow
3501         GNU Coding Standards for --help and --version.
3502         * doc/gcov.texi: Document long options.
3503         Addresses part of PR other/704.
3504
3505 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3506
3507         * pa.c (output_move_double): Fix typo in double load.
3508
3509 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3510
3511         * config/h8300/h8300.c (h8300_encode_label): Compute a string
3512         before passing it to ggc_alloc_string.
3513
3514 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3515
3516         * config/m68k/3b1.h: Fix comment formatting.
3517         * config/m68k/3b1g.h: Likewise.
3518         * config/m68k/a-ux.h: Likewise.
3519         * config/m68k/amix.h: Likewise.
3520         * config/m68k/apollo68.h: Likewise.
3521         * config/m68k/atari.h: Likewise.
3522         * config/m68k/aux-exit.c: Likewise.
3523         * config/m68k/ccur-GAS.h: Likewise.
3524         * config/m68k/crds.h: Likewise.
3525         * config/m68k/dpx2.h: Likewise.
3526         * config/m68k/dpx2g.h: Likewise.
3527         * config/m68k/hp310.h: Likewise.
3528         * config/m68k/hp320.h: Likewise.
3529         * config/m68k/isi.h: Likewise.
3530         * config/m68k/linux.h: Likewise.
3531         * config/m68k/lynx.h: Likewise.
3532         * config/m68k/m68k-psos.h: Likewise.
3533         * config/m68k/m68k.c: Likewise.
3534         * config/m68k/m68k.h: Likewise.
3535         * config/m68k/m68k.md: Likewise.
3536         * config/m68k/m68kelf.h: Likewise.
3537         * config/m68k/m68kv4.h: Likewise.
3538         * config/m68k/mot3300.h: Likewise.
3539         * config/m68k/news.h: Likewise.
3540         * config/m68k/next.h: Likewise.
3541         * config/m68k/pbb.h: Likewise.
3542         * config/m68k/plexus.h: Likewise.
3543         * config/m68k/sgs.h: Likewise.
3544         * config/m68k/sun3.h: Likewise.
3545         * config/m68k/tower.h: Likewise.
3546         * config/m68k/vxm68k.h: Likewise.
3547
3548 2001-10-31  DJ Delorie  <dj@redhat.com>
3549
3550         * config/mips/mips.h (mips_cache_flush_func): Prototype.
3551         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3552         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3553         * config/mips/mips.c (mips_cache_flush_func): New.
3554         * doc/invoke.texi: Document the new options.
3555
3556 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
3557
3558         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3559         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3560
3561         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3562
3563         * config/cris/cris.c: Include output.h after tree.h but before
3564         target.h.
3565
3566 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
3567
3568         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3569         (INTL_SUBDIRS): Just intl.
3570         (.SUFFIXES): Add .gmo .po .pox.
3571         (native): Also depend on build-@POSUB@.
3572         (intl.all, intl.install): Depend on config.h and things it includes.
3573         (po-generated): New target; depend on c-parse.c and tradcif.c.
3574         (install-normal): Also depend on install-@POSUB@.
3575         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3576         (build-, install-, build-po, update-po, install-po,
3577         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3578
3579         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3580         * configure.in: Don't munge XGETTEXT.  Don't generate
3581         po/Makefile.in.
3582         * configure: Regenerate.
3583
3584         * exgettext: Delete.
3585         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3586         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3587
3588 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3589
3590         * config/h8300/h8300.md (two anonymous patterns): New.
3591
3592 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
3593
3594         * tree.h (tree_index): Add support for V16QI and V8HI.
3595         (V8HI_type_node): New.
3596         (V16QI_type_node): New.
3597
3598         * tree.c (build_common_tree_nodes_2): Same.
3599
3600         * c-common.c (type_for_mode): Same.
3601
3602 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3603
3604         * config/i386/att.h: Fix comment formatting.
3605         * config/i386/beos-elf.h: Likewise.
3606         * config/i386/bsd.h: Likewise.
3607         * config/i386/bsd386.h: Likewise.
3608         * config/i386/crtdll.h: Likewise.
3609         * config/i386/cygwin.asm: Likewise.
3610         * config/i386/cygwin.h: Likewise.
3611         * config/i386/djgpp.h: Likewise.
3612         * config/i386/freebsd-aout.h: Likewise.
3613         * config/i386/freebsd.h: Likewise.
3614         * config/i386/gas.h: Likewise.
3615         * config/i386/i386-interix.h: Likewise.
3616         * config/i386/i386-protos.h: Likewise.
3617         * config/i386/i386.c: Likewise.
3618         * config/i386/i386.h: Likewise.
3619         * config/i386/i386.md: Likewise.
3620         * config/i386/i386elf.h: Likewise.
3621         * config/i386/interix.c: Likewise.
3622         * config/i386/isc.h: Likewise.
3623         * config/i386/isccoff.h: Likewise.
3624         * config/i386/iscdbx.h: Likewise.
3625         * config/i386/linux.h: Likewise.
3626         * config/i386/lynx.h: Likewise.
3627         * config/i386/mingw32.h: Likewise.
3628         * config/i386/netbsd-elf.h: Likewise.
3629         * config/i386/next.h: Likewise.
3630         * config/i386/osf1elf.h: Likewise.
3631         * config/i386/osfrose.h: Likewise.
3632         * config/i386/sco5.h: Likewise.
3633         * config/i386/seq-gas.h: Likewise.
3634         * config/i386/seq-sysv3.h: Likewise.
3635         * config/i386/sequent.h: Likewise.
3636         * config/i386/sol2.h: Likewise.
3637         * config/i386/sun386.h: Likewise.
3638         * config/i386/uwin.asm: Likewise.
3639         * config/i386/uwin.h: Likewise.
3640         * config/i386/vxi386.h: Likewise.
3641         * config/i386/win32.h: Likewise.
3642         * config/i386/winnt.c: Likewise.
3643         * config/i386/xm-cygwin.h: Likewise.
3644         * config/i386/xm-mingw32.h: Likewise.
3645
3646 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3647
3648         * builtins.def: Fix comment typos.
3649         * config/alpha.c: Likewise.
3650         * config/arm/arm.c: Likewise.
3651         * config/avr/avr.h: Likewise.
3652         * config/d30v/d30v.c: Likewise.
3653         * config/d30v/d30v.h: Likewise.
3654         * config/d30v/d30v.md: Likewise.
3655         * config/dsp16xx/dsp16xx.c: Likewise.
3656         * config/fr30/fr30.c: Likewise.
3657         * config/fr30/fr30.md: Likewise.
3658         * config/i386/i386.c: Likewise.
3659         * config/i860/i860.c: Likewise.
3660         * config/i960/i960.c: Likewise.
3661         * config/ia64/ia64.c: Likewise.
3662         * config/mips/mips.c: Likewise.
3663         * config/pa/pa.c: Likewise.
3664         * config/rs6000/rs6000.c: Likewise.
3665         * config/s390/s390.c: Likewise.
3666         * config/sparc/sparc.c: Likewise.
3667
3668 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3669
3670         * config/mips/elf.h: Fix comment formatting.
3671         * config/mips/elf64.h: Likewise.
3672         * config/mips/iris5.h: Likewise.
3673         * config/mips/iris5gas.h: Likewise.
3674         * config/mips/iris6.h: Likewise.
3675         * config/mips/isa3264.h: Likewise.
3676         * config/mips/linux.h: Likewise.
3677         * config/mips/mips.c: Likewise.
3678         * config/mips/mips.h: Likewise.
3679         * config/mips/mips.md: Likewise.
3680         * config/mips/mips16.S: Likewise.
3681         * config/mips/netbsd.h: Likewise.
3682         * config/mips/osfrose.h: Likewise.
3683         * config/mips/r3900.h: Likewise.
3684         * config/mips/sni-svr4.h: Likewise.
3685         * config/mips/svr4-t.h: Likewise.
3686         * config/mips/ultrix.h: Likewise.
3687
3688 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
3689
3690         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3691         when we update head->current.
3692
3693 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3694
3695         * tree.c (id_string_size): Remove.
3696         (dump_tree_statistics): Update.
3697         * toplev.c (compile_file): If dumping stats, dump tree stats too.
3698
3699 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
3700
3701         * sched-rgn.c (schedule_insns): Fix comment.
3702
3703 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
3704
3705         * configure.in: Correct previous change: don't assume that
3706         gas's version number _isn't_ the last thing on the line, or
3707         isn't the only number on the line, either.
3708         * configure: Regenerate.
3709
3710 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3711
3712         * cfgcleanup.c: Fix a comment typo.
3713
3714 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3715
3716         * alias.c: Fix comment formatting.
3717         * recog.c: Likewise.
3718         * config/cris/cris.c: Likewise.
3719         * config/cris/cris.h: Likewise.
3720         * config/i960/i960.c: Likewise.
3721         * config/i960/i960.h: Likewise.
3722
3723 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3724
3725         * config/arm/arm.c: Fix a comment typo.
3726         * config/arm/arm.h: Likewise.
3727         * config/ia64/ia64.c: Likewise.
3728
3729 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
3730
3731         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3732         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
3733         * rtl.h (set_unique_reg_note): Change return value.
3734         * gcse.c (try_replace_reg): Use set_unique_reg_note.
3735         * cse.c (cse_insn): Likewise.
3736         * expr.c (emit_move_insn): Likewise.
3737         * explow.c (force_reg): Likewise.
3738         * local-alloc (update_equiv_regs): Likewise.
3739         * loop.c (move_moveables, load_mems): Likewise.
3740         * reload (find_reloads): Likewise.
3741
3742 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
3743
3744         Localization fixes.
3745         * c-decl.c (parmlist_tags_warning, start_struct,
3746         check_for_loop_decls): Separate messages for struct, union and
3747         enum cases to allow for languages in which they have different
3748         genders.
3749         * c-format.c (scanf_flag_specs): Separate short and long name of
3750         the assignment suppression feature.
3751         (check_format_types): Localize "pointer" and "different types"
3752         strings.
3753         * c-lex.c (lex_number): Localize "an unsigned long int" and
3754         related strings.
3755         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3756         warning message.
3757         * c-typeck.c (build_unary_up): Separate messages for increment and
3758         decrement cases to allow for languages in which they use different
3759         articles.  Localize the strings "increment" and "decrement" in one
3760         case.
3761
3762 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
3763
3764         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
3765         when no changes has been made.
3766
3767         * gcse.c (reg_set_bitmap): Turn into reg_set.
3768         (modify_mem_list_set, canon_modify_mem_list_set)
3769         (clear_modify_mem_tables, free_modify_mem_tables): New.
3770         (gcse_main); Use free_modify_mem_tables.
3771         (free_gcse_mem): Likewise; free the bitmaps.
3772         (alloc_gcse_main): Initialize the bitmaps.
3773         (canon_list_insert): Set canon_modify_mem_list_set.
3774         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3775         (compute_hash_table): Use clear_modify_mem_tables.
3776         (reset_opr_set_tables): Likewise.
3777         (oprs_not_set_p): reg_set_bitmap is regset.
3778         (mark_set, mark_clobber): Likewise.
3779
3780         * df.h (DF_EQUIV_NOTES): New constant.
3781         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3782         when asked for.
3783
3784         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3785         (init_regions, schedule_insns): Conditionalize the checking
3786         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3787
3788 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
3789
3790         * i386.md (movti_rex64 splitter): Fix condition.
3791
3792 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
3793
3794         * configure.in: Do not assume that gas's version number is the
3795         last thing on the first line of as --version output.
3796         * configure: Regenerate.
3797
3798         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
3799         MT_WARNING, MT_ERROR, MT_FATAL.
3800         (main): Call gcc_init_libintl.
3801         (v_message): Call gettext on msgid and "warning: "
3802         * tradcif.y: Include intl.h.
3803         (yyerror): Make parameter definition consistent with
3804         prototype.  Call gettext on msgid argument.
3805
3806 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3807
3808         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3809         warnings.
3810
3811         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3812
3813 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3814
3815         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
3816         before referencing it.
3817
3818 2001-10-26  DJ Delorie  <dj@redhat.com>
3819
3820         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
3821         override -G, and force -G0.
3822
3823 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3824
3825         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
3826         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
3827         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
3828         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
3829
3830         * loop.h (struct induction): Rename ext_dependant to
3831         ext_dependent.
3832         * loop.c: Change all uses.
3833         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
3834         All callers changed.
3835         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
3836
3837 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3838
3839         * c-parse.in (expr_no_commas, primary), c-typeck.c
3840         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
3841
3842 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
3843
3844         Undo assemble_name change in earlier patch.
3845
3846 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3847
3848         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
3849         determining the type of the receiver, do not check that TREE_CODE
3850         of receiver is CALL_EXPR before calling receiver_is_class_object().
3851         (receiver_is_class_object): For the GNU runtime: recognize
3852         the case that the receiver is self in a class method context.
3853         Check that TREE_CODE of receiver is CALL_EXPR when checking that
3854         the receiver is a call to objc_get_class.
3855
3856 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3857
3858         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
3859
3860 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3861
3862         * Makefile.in (OBJS): Put all files in alphabetical order.
3863
3864         * dwarf2out.c (add_const_value_attribute): Fix error in last
3865         change.
3866
3867 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
3868
3869         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
3870         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
3871         fix warning.
3872         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
3873         (life_analysis): call purge_all_dead_edges after deleting noops.
3874         (delete_noop_move): Do not purge CFG.
3875         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
3876
3877 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
3878
3879         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
3880         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
3881         (ASM_GLOBALIZE_LABEL): Use assemble_name.
3882         (ASM_OUTPUT_COMMON): Likewise.
3883         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
3884         (rs6000_output_function_epilogue): Likewise.
3885         (output_mi_thunk): Fix typo.
3886         (rs6000_output_symbol_ref): Use assemble_name.
3887         (output_toc): Likewise.
3888         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
3889         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
3890         assemble_name calls STRIP_NAME_ENCODING.
3891         (ASM_OUTPUT_LABEL): Use assemble_name.
3892         (ASM_GLOBALIZE_LABEL): Likewise.
3893         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3894         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
3895         (ASM_OUTPUT_LOCAL): Likewise.
3896
3897 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3898
3899         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3900         (expand_builtin_apply, expand_builtin_return): Likewise.
3901         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3902
3903 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3904
3905         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3906         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3907         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3908         configure, configure.in, except.c, except.h, flow.c, function.c,
3909         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3910         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3911         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3912         unroll.c: Fix spelling errors.
3913
3914         * doc/extend.texi, doc/invoke.texi: Fix spelling.
3915
3916         * doc/gcc.texi: Document use of "dependent" and American spelling.
3917
3918 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
3919
3920         * expr.c (emit_group_load): Support CONCATs by storing them to memory
3921         and reloading.
3922
3923 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3924
3925         * expr.c (store_constructor_field): Only call adjust_address on MEM.
3926
3927 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
3928
3929         * genrecog.c (write_switch):  Output if before switch for
3930         DT_elt_zero_wide_safe.
3931
3932 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3933
3934         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3935         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3936         (FUNCTION_PROFILER): Const-ify.
3937         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3938         (eliminate_constant_term, assemble_name, output_addr_const):
3939         Remove declarations.
3940         (ptr_half_pic_address_p, half_pic_hash): Prototype.
3941         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3942         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3943         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3944         (half_pic_declare, half_pic_external): Const-ify.
3945         * toplev.c: Include "halfpic.h".
3946
3947 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3948
3949         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3950         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3951         config/i386/i386.c, config/i386/i386-interix.h,
3952         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3953         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3954         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3955         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3956         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3957         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3958         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3959         spelling errors.
3960
3961         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3962         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3963         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3964         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3965         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3966         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3967         system.h, toplev.c: Fix spelling errors.
3968
3969 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3970
3971         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3972
3973         * dwarf2out.c (reg_number): Abort if pseudo.
3974         (reg_loc_descriptor): Return 0 if pseudo.
3975         (is_based_loc): Return 0 if pseudo.
3976         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3977         recursive calls.
3978         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3979         (loc_descriptor): Return 0 if can't find location and handle 0
3980         return from recursive calls.
3981         (loc_descriptor_from_tree): Likewise.
3982         Fix handling of indirect.
3983         Also return 0 for PLACEHOLDER_EXPR.
3984         Clean up COMPONENT_REF cases.
3985         (add_AT_location_descriptor): Simplify, but handle 0 return from
3986         loc_descriptor.
3987         (add_const_value_attribute): Avoid shift count warning.
3988         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3989         Set comp_unit_die as context if not in function.
3990
3991         * config/mips/mips-protos.h: Break up long lines.
3992         Remove needless #ifdef/#endif blocks.
3993         Don't declare functions declared in file made by genpreds or recog.h.
3994         * config/mips/mips.c (mips_output_function_prologue): TSIZE
3995         is now HOST_WIDE_INT; delete unneeded casts.
3996         * config/mips/mips.h: Don't use #elif.
3997
3998         * expr.c (stor_constructor_field): Always call adjust_address.
3999         Copy TARGET before changing its alias set.
4000         (store_field): Likewise, for TO_RTX.
4001         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
4002         replacement.
4003         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
4004         (find_placeholder): Return 0 if can't find object.
4005         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
4006         returns 0.
4007
4008 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4009
4010         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
4011
4012 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
4013
4014         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
4015         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
4016         (merge_blocks): Properly udpate life after making edge nonfallthru.
4017         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
4018
4019 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4020
4021         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
4022
4023 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4024
4025         * c-typeck.c (convert_arguments): When comparing for enumeral
4026         type equality, use TYPE_MAIN_VARIANT.
4027         * gcc.dg/Wconversion.c: New tests.
4028
4029 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4030
4031         * s390/s390.c: Fix comment typos.
4032         * s390/s390.h: Likewise.
4033         * s390/s390.md: Likewise.
4034
4035 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4036
4037         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
4038         (walk_tree): Use it for tail calls where appropriate.
4039
4040 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4041
4042         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
4043         non-local label_refs.
4044
4045 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4046
4047         * config/h8300/h8300.md (4 anonymous patterns): New.
4048
4049 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4050
4051         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
4052         algorithm through the shift_info structure.
4053         (emit_a_shift): Update the use of get_shift_alg.
4054
4055 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
4056
4057         * sched-rgn.c: Remove bitset typedef.
4058         Change bitset to sbitmap in prototypes / variable types.
4059         Remove bbset_size.
4060         Remove edgeset_bits.
4061         Remove edgeset_size.
4062         s/BITSET_ADD/SET_BIT/g
4063         s/BITSET_INVERT/sbitmap_ones/g
4064         s/BITSET_INTER/sbitmap_a_and_b/g
4065         s/BITSET_UNION/sbitmap_a_or_b/g
4066         s/BITSET_DIFFER/sbitmap_difference/g
4067         s/bitset_member/TEST_BIT/g
4068         (BITSET_*): Removed.
4069         (bitset_member): Removed.
4070         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
4071         EXECUTE_IF_SET_IN_SBITMAP.
4072         (split_edges): Rewrite, use sbitmap functions instead of bitset
4073         operations.
4074         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
4075
4076 2001-10-26  Andreas Schwab  <schwab@suse.de>
4077
4078         * reload1.c (emit_input_reload_insns): Fix parens in last
4079         (undocumented) change that was supposed to change only whitespace.
4080
4081 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4082
4083         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
4084
4085         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
4086         ASM_OPERANDS.
4087
4088 2001-10-26  Andreas Jaeger  <aj@suse.de>
4089
4090         * flow.c (clear_log_links): Remove unused variable.
4091         * cfgcleanup.c (cleanup_cfg): Likewise.
4092
4093 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4094
4095         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
4096         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
4097
4098 2001-10-26  Richard Henderson  <rth@redhat.com>
4099
4100         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
4101         rename PV_REG to R27_REG.
4102         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
4103         (REG_CLASS_FROM_LETTER): Update.
4104         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
4105         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
4106         (udivsi3, modsi3, umodsi3): Likewise.
4107         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
4108
4109 2001-10-26  Richard Henderson  <rth@redhat.com>
4110
4111         * cfg.c (clear_aux_for_blocks): Split out of ...
4112         (free_aux_for_blocks): here.
4113         (clear_aux_for_edges): Split from ...
4114         (free_aux_for_edges): here.
4115         * basic-block.h: Declare them.
4116         * lcm.c (compute_antinout_edge): Use them.
4117         (compute_laterin, compute_available, compute_nearerout): Likewise.
4118         (optimize_mode_switching): Likewise.
4119
4120 2001-10-26  Richard Henderson  <rth@redhat.com>
4121
4122         * Makefile.in (unstage*): Remove as, ld, collect-ld before
4123         moving everything back to the main build directory.
4124
4125 2001-10-26  Christopher Faylor  <cgf@redhat.com>
4126
4127         * config/i386/cygwin.h: Search target specific include directory, if
4128         appropriate.
4129
4130 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4131
4132         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
4133         of macro guards. Fix #endif comment.
4134
4135         * output.h (default_exception_section, default_eh_frame_section):
4136         Move prototypes outside of macro guard.
4137
4138         * crtstuff.c: Fix #endif comment.
4139
4140 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
4141
4142         * doc/md.texi (movMM): Clarify semantics of storing into a
4143         non-paradoxical SUBREG.
4144
4145 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
4146
4147         * langhooks.c (lang_hook_default_clear_binding_stack): New.
4148         (lang_hook_default_get_alias_set): Move next to other alias
4149         hooks.
4150         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
4151         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
4152         (LANG_HOOKS_INITIALIZER): Add it.
4153         * toplev.h (struct lang_hooks): Add clear_binding_stack.
4154         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
4155         instead of a loop calling poplevel.
4156
4157 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
4158
4159         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
4160         occurrences of #elif with #if...#endif.
4161
4162 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4163
4164         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
4165
4166 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4167
4168         * alias.c (can_address_p): No longer static.
4169         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
4170         Return 0 if all parameters are default values.
4171         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
4172         (adjust_address_1): Try harder to compute a size.
4173         * expr.c (expand_assignment, store_constructor): If can't address,
4174         set MEM_KEEP_ALIAS_SET_P.
4175         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
4176         (store_field): Likewise.
4177         (store_constructor): Simplify call to store_constructor_field.
4178         * expr.h (can_address_p): New declaration.
4179         * gensupport.c (gen_rtx_CONST_INT): New function.
4180         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
4181         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
4182         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
4183
4184         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
4185
4186 2001-10-24  Christopher Faylor  <cgf@redhat.com>
4187
4188         * config/i386/cygwin.h: Use proper path for mingw crt files when
4189         -mno-cygwin.
4190
4191 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4192
4193         * dwarf2out.c (file_info_cmp): Always return consistent results.
4194
4195 2001-10-24  Roger Sayle <roger@eyesopen.com>
4196
4197         * stmt.c (expand_end_case): Index jumptables from zero for
4198         suitably small values of minval.
4199
4200 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4201
4202         * stor-layout.c (place_union_field): If any field was aligned with
4203         attribute aligned, set record type's TYPE_USER_ALIGN.
4204         (place_field): Likewise.
4205         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
4206         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
4207
4208 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
4209
4210         * c-common.h (struct c_common_identifier): Remove rid_code field.
4211         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
4212
4213         * c-typeck.c (constructor_designated): New local flag.
4214         (struct constructor_stack): Add "designated" field to match.
4215         (start_init): Clear it.
4216         (really_start_incremental_init, push_init_level): Push and
4217         clear it.
4218         (pop_init_level): Pop it.
4219         (set_designator): Set it.
4220
4221         (pop_init_level): Suppress "missing initializer" warnings if
4222         constructor_designated is true.
4223         (process_init_element): Suppress warning about union
4224         initialization under traditional C, if constructor_designated
4225         is true.
4226
4227 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4228
4229         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
4230         change.
4231
4232 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
4233
4234         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
4235
4236 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
4237
4238         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
4239         the node was already a set to a constant.
4240
4241 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4242
4243         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
4244         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
4245
4246 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4247
4248         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
4249         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
4250         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4251         * s390.c (s390_final_chunkify): Don't use string concatenation.
4252         (s390_function_prologue, s390_function_epilogue): Const-ify.
4253         * s390.h (FUNCTION_PROFILER): Remove unused variable.
4254
4255 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4256
4257         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
4258         prototypes.
4259
4260 2001-10-23  Stan Shebs  <shebs@apple.com>
4261
4262         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
4263         -traditional-cpp in first-stage compilation.
4264
4265 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4266
4267         * gensupport.c (target_flags): Add.
4268
4269 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
4270
4271         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
4272         if needed.
4273         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
4274         * except.c (expand_builtin_frob_return_addr): Likewise.
4275         (expand_builtin_eh_return): Likewise.
4276         * stmt.c (expand_computed_goto): Likewise.
4277         * explow.c (memory_address): Likewise.
4278         (allocate_dynamic_stack_space): Clean up predicate testing.
4279         (probe_stack_range): Convert SIZE to Pmode.
4280         * calls.c (rtx_for_function_call): Only call convert_memory_address
4281         if needed.
4282         Pass function call operand as ptr_mode, not Pmode.
4283         * expr.c (expand_assignment): Clean up calls to convert_memory
4284         address by only doing so when needed and making offsets Pmode.
4285         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
4286         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
4287         is in Pmode, not ptr_mode.
4288
4289 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4290
4291         * darwin-protos.h (constructor_section, destructor_section,
4292         mod_init_section, mod_term_section): Prototype.
4293         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
4294         Const-ify.
4295         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
4296         Likewise.
4297         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
4298         objc_section_init declaration.
4299         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
4300         (objc_section_init, try_section_alias): Make static.
4301         (alias_section): Make static and hide unused function.
4302         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4303
4304 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4305
4306         * alias.c (can_address_p): Compnonents are not addressable if
4307         the containing type has alias set 0.
4308         (get_alias_set): Rework to use STRIP_NOPS.
4309         Only call front-end routine on object, type, or object with
4310         NOPs stripped, not inner values.
4311         Use language hook to call front-end routine.
4312         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
4313         (expand_builtin_apply): Call set_mem_align on MEMs we make.
4314         Don't pass alignment to emit_block_move.
4315         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4316         (expand_builtin_memset): Likewise, but for clear_storage.
4317         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
4318         and remove C++ specific parts.
4319         * c-common.h (c_common_get_alias_set): Add declaration.
4320         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
4321         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
4322         (save_fixed_argument_area): Call set_mem_align.
4323         Remove alignment in call to emit_block_move.
4324         (emit_library_call_value_1, store_one_arg): Likewise.
4325         (target_for_arg): Remove; disabled long ago.
4326         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
4327         once and similar cleanups.
4328         (offset_address): Use proper introductory comment.
4329         * expr.c (emit_block_move): Use alignment from that of MEM args, not
4330         from explicit operand; all callers changed.
4331         (clear_storage): Likewise.
4332         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
4333         (store_field): Remove kludge on alias set used for to_rtx.
4334         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
4335         (expand_expr_unaligned): Call set_mem_attributes instead of
4336         set_mem_alias_set.
4337         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
4338         * function.c (assign_stack_temp_for_type): Set MEM alignment.
4339         (expand_function_end): Track MEM attributes of trampolines.
4340         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
4341         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
4342         attributes from original.
4343         * langhooks.c (lang_hook_default_get_alias_set): New function.
4344         (hook_get_alias_set_0): New function.
4345         * langhooks.h (hook_get_alias_set_0): New declaration.
4346         (lang_hook_default_get_alias_set): Likewise.
4347         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
4348         * reload1.c (alter_reg): Use adjust_address_nv.
4349         * rtl.c (get_mode_alignment): Moved to here.
4350         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
4351         change default if unknown from 1 to BITS_PER_UNIT.
4352         * stor-layout.c (get_mode_alignment): Remove from here.
4353         * toplev.h (struct lang_hoks): Add get_alias_set field.
4354         * tree.h (lang_get_alias_set): Delete declaration.
4355         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
4356         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4357         (ix86_va_arg): Likewise.
4358         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4359         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4360         * config/sparc/sparc.c (sparc_va_arg): Likewise.
4361         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4362         (expand_block_move_mem): Remove dead code.
4363
4364 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4365
4366         * c-common.c (warn_div_by_zero): New.
4367         * c-common.h (warn_div_by_zero): New.
4368         * c-decl.c (c_decode_option): Take it on the command line.
4369         * c-typeck.c (build_binary_op): Warn about division by zero.
4370         * doc/invoke.texi: Document the new command line option, fix
4371         documentation of -Wmultichar.
4372         * testsuite/gcc.dg/divbyzero.c: New tests.
4373         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4374
4375 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4376
4377         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4378
4379         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4380         to avoid update_life_info call.
4381         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4382         * cfgcleanup.c (bb_flags): New enum.
4383         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4384         (notice_new_block, update_forwarder_flag): New functions.
4385         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4386         (try_forward_edges): Likewise; update flags.
4387         (merge_blocks): Likewise.
4388         (outgoing_edges_match): Likewise.
4389         (try_crossjump_to_edge): Likewise.
4390         (try_optimize_cfg): Likewise; initialize and clear the flags;
4391         recompute life info if needed.
4392         (cleanup_cfg): No need to clear aux pointers.
4393
4394 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
4395
4396         * config/i386/i386.c (override_options): Default to minimum
4397         stack alignment when optimizing for code size.
4398         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4399         change.
4400
4401         * config/i386/i386.c (override_options): Set upper limit of
4402         -mpreferred-stack-boundary to 12.
4403
4404 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
4405
4406         * recog.c (peephole2_optimize): Add default case to switch.
4407
4408 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4409
4410         * doc/gcc.texi (Sending Patches): Remove.
4411
4412 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
4413
4414         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4415         fields when comparing.
4416
4417 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4418
4419         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
4420         * arm.c (HOST_INT, HOST_UINT): Likewise.
4421
4422 2001-10-22  Stan Shebs  <shebs@apple.com>
4423
4424         * config/darwin-protos.h (darwin_exception_section): Declare.
4425         (darwin_eh_frame_section): Declare.
4426
4427 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
4428
4429         * i386.md (movti_rex64): Fix mode.
4430
4431 2001-10-22  Stan Shebs  <shebs@apple.com>
4432
4433         * target.h (struct gcc_target): Add asm_out.exception_section,
4434         asm_out.eh_frame_section.
4435         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4436         (TARGET_ASM_EH_FRAME_SECTION): New.
4437         (TARGET_INITIALIZER): Update.
4438         * output.h (default_exception_section): Declare.
4439         (default_eh_frame_section): Declare.
4440         * dwarf2out.c: Include target.h.
4441         (output_call_frame_info): Call target hook for eh frames.
4442         (default_eh_frame_section): New function.
4443         * except.c: Include target.h.
4444         (output_function_exception_table): Call target hook for exception
4445         section.
4446         * varasm.c (default_exception_section): Rename from
4447         exception_section, remove EXCEPTION_SECTION macro.
4448
4449         * config/darwin.h (darwin_eh_frame_section): New function.
4450         (EXCEPTION_SECTION): Remove.
4451         (TARGET_ASM_EXCEPTION_SECTION): Define.
4452         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4453         (nextstep_exception_section): New function.
4454         (nextstep_eh_frame_section): New function.
4455         (TARGET_ASM_EXCEPTION_SECTION): Define.
4456         (TARGET_ASM_EH_FRAME_SECTION): Define.
4457
4458         * config/pa/som.h (EXCEPTION_SECTION): Remove.
4459         (TARGET_ASM_EXCEPTION_SECTION): Define.
4460         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4461         (EXCEPTION_SECTION): Remove.
4462         (TARGET_ASM_EXCEPTION_SECTION): Define.
4463         * config/stormy16/stormy16.h: Remove comments referencing
4464         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4465
4466         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4467         TARGET_ASM_EH_FRAME_SECTION.
4468
4469 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
4470
4471         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4472         terms.
4473
4474         * c-format.c: Fix spelling typo in comment.
4475
4476         * sched-int.h: Fix typo in GCC preamble.
4477
4478 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4479
4480         PR debug/4252
4481         * doc/invoke.texi: Remove references to -fdump-translation-unit.
4482
4483 2001-10-22  Richard Henderson  <rth@redhat.com>
4484
4485         * config/i386/i386.c (ix86_expand_clear): New.
4486         * config/i386/i386-protos.h: Declare it.
4487         * config/i386/i386.md (setcc peep2s): Use it.
4488         (movsi_xor): Unexport.
4489
4490 2001-10-22  Richard Henderson  <rth@redhat.com>
4491
4492         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4493         free_EXPR_LIST_list for LOG_LINKS.
4494
4495 2001-10-21  Robert Lipe  <robertlipe@usa.net>
4496
4497         * config/i386/i386.c (sco_asm_named_section): Delete.
4498         (sco_asm_out_constructor): Delete.
4499         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4500         (ASM_OUTPUT_DOUBLE_INT): Likewise.
4501         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
4502         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4503         (EXCEPTION_SECTION): Delete EH scn renaming hack.
4504
4505 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4506
4507         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4508         and/or fold extra calls into fewer ones.
4509         * collect2.c (dump_file): Likewise.
4510         * cppexp.c (parse_number): Likewise.
4511         * cpplex.c (_cpp_lex_direct): Likewise.
4512         * final.c (output_asm_insn, asm_fprintf): Likewise.
4513         * fix-header.c (inf_scan_ident, main): Likewise.
4514         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4515         Likewise.
4516         * fold-const.c (real_hex_to_f): Likewise.
4517         * gen-protos.c (parse_fn_proto): Likewise.
4518         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4519         * genrecog.c (change_state, write_action): Likewise.
4520         * gensupport.c (shift_output_template): Likewise.
4521         * local-alloc.c (requires_inout): Likewise.
4522         * mips-tfile.c (IS_ASM_IDENT): Likewise.
4523         * protoize.c (is_id_char, main): Likewise.
4524         * real.c (asctoeg): Likewise.
4525         * recog.c (asm_operand_ok): Likewise.
4526         * reload.c (find_reloads): Likewise.
4527         * scan.c (scan_identget_token): Likewise.
4528         * sched-vis.c (print_value): Likewise.
4529         * stringpool.c (ggc_alloc_string): Likewise.
4530         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4531         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4532         * tradcpp.c (rescan): Likewise.
4533         * tree.c (clean_symbol_name): Likewise.
4534         * varasm.c (decode_reg_name): Likewise.
4535
4536         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4537         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4538         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4539         * m88k.c (output_ascii): Likewise.
4540         * m88k.h (OVERRIDE_OPTIONS): Likewise.
4541         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4542         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4543         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4544
4545 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4546
4547         * langhooks.c (lang_hook_default_do_nothing,
4548         lang_hook_default_decode_option): New defaults.
4549         * langhooks.h: Make hooks unconditional and non-NULL.
4550         * toplev.c (compile_file, toplev_main): Update.
4551         * toplev.h: Update comments.
4552         * objc/objc-act.c (lang_hooks): Update to new paradigm.
4553
4554 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4555
4556         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4557
4558         * system.h (IN_RANGE): New macro.
4559
4560 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
4561
4562         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4563         INTLDEPS variable, which does not include $LIBICONV.
4564         * Makefile.in: Use INTLDEPS in LIBDEPS.
4565         * configure: Regenerate.
4566
4567 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4568
4569         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4570         * cpplex.c (lex_percent, lex_dot): Remove.
4571         (get_effective_char, skip_block_comment, skip_line_comment,
4572         parse_identifier_slow, parse_number, parse_string, save_comment,
4573         _cpp_lex_direct): Update to do lookback freely.
4574         (IF_NEXT_IS, BACKUP): New macros.
4575         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4576         * cppmacro.c (paste_tokens): Update.
4577
4578 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
4579
4580         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4581
4582 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
4583
4584         * reload1.c (reload): Check CONSTANT_P before calling
4585         LEGITIMATE_PIC_OPERAND_P.
4586         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4587         workaround of 2001-10-13.
4588
4589 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
4590
4591         * i386.c (split_di): Handle splitting of DFmode.
4592
4593 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4594
4595         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4596         (adjust_address_1, offset_address): Likewise.
4597
4598         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4599         (output_asm_insn): Call it for each line output.
4600         Don't record an operand more than once.
4601
4602         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4603         * main.c: Include config.h and system.h, but not ansidecl.h.
4604         * Makefile.in (main.o): Update accordingly.
4605
4606 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4607
4608         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4609
4610 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4611
4612         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4613         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4614         Break out from ...
4615         (find_sub_basic_blocks): ... here;
4616         (find_many_sub_basic_blocks): New.
4617         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4618
4619         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4620
4621         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4622
4623         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4624
4625         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4626         * flow.c (update_life_info): Measure time.
4627         * c-decl.c: Include timevar.h
4628         (c_expand_body): Measure time.
4629         * toplev.c (rest_of_compilation): Measure time of mode switching
4630         separately.
4631         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4632
4633         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4634         (lang_independent_options): Add asynchronous-unwind-tables
4635         (toplev_main): flag_asynchronous_unwind_tables implies
4636         flag_unwind_tables.
4637         * flags.h (flag_asynchronous_unwind_tables): Declare.
4638         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4639         flag_asynchronous_unwind_tables.
4640         (output_call_frame_info): Likewise.
4641         * invoke.texi (-fasynchronous-unwind-tables): Document.
4642         * i386.c (optimization_options): Enable
4643         flag_asynchronous_unwind_tables.
4644
4645         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
4646         * i386.md (s* expanders): Destination is QImode.
4647
4648         * toplev.c (rest_of_compilation): Do not call clear_log_links.
4649         * rtl.h (clear_log_links): Kill.
4650         * flow.c (clear_log_links): Make static; accept blocks parameter;
4651         do no clear life info.
4652         (update_life_info): Call clear_log_links.
4653
4654         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4655
4656 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4657
4658         * cpplex.c (handle_newline, skip_escaped_newlines,
4659         get_effective_char, skip_block_comment, skip_line_comment,
4660         parse_identifier_slow, parse_number, parse_string,
4661         _cpp_lex_direct): Update to do more stepping back.
4662         (trigraph_ok): Similarly.  Rename trigraph_p.
4663         (SAVE_STATE, RESTORE_STATE): Remove.
4664         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
4665
4666         * cpplib.c (destringize): Rename destringize_and_run, and
4667         call run_directive directly.
4668         (_cpp_do__Pragma): Simplify.
4669
4670 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4671
4672         * pe.c (arm_pe_unique_section): Const-ify.
4673         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4674         (switch_to_section): Add static prototype.
4675
4676         * output.h (drectve_section): Prototype.
4677
4678 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4679
4680         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4681         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4682         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4683         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4684         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4685         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4686         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4687         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4688         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4689         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4690         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4691         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4692         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4693         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4694         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4695         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4696         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4697         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4698         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4699         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4700         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4701         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4702         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4703         cris-*-none, cris-*-linux*: Update ${tmfile} list.
4704         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4705         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4706         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4707         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4708         v850-*-*): Delete superflous ${cpu_type} setting.
4709         * config/linux.h: Delete svr4.h include.
4710         (SET_ASM_OP): Delete.
4711         * config/netware.h (INT_ASM_OP): Undef before define.
4712         * config/ptx4.h: Delete elfos.h include.
4713         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4714         * config/svr4.h: Delete elfos.h include. Update commentary.
4715         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4716         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4717         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4718         config/v850/v850.h: Delete svr4.h include.
4719         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4720         config/m68k/m68kv4.h, config/m88k/sysv4.h,
4721         config/sparc/sysv4.h: Update includes.
4722         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4723         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4724         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4725         config/m88k/dguxbcs.h: Delete includes.
4726         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4727         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4728         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4729         it.
4730         * config/m88k/dgux.h: Delete include.
4731         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
4732         defining it.
4733         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4734         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4735         * config/sh/elf.h: Update include.
4736         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4737         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4738
4739 2001-10-19  Catherine Moore  <clm@redhat.com>
4740
4741         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
4742         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
4743         base and count fields.
4744         (stormy16_expand_builtin_va_start):  last_reg_count changed to
4745         size_of_reg_args.  Use count + size in first comparison.
4746
4747 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4748
4749         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4750         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4751         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4752         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4753         Set alignment from type if INDIRECT_REF.
4754         (adjust_address_1, offset_address): Simplify alignment compuitation.
4755         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4756         here; done by set_mem_attributes.
4757
4758 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4759
4760         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4761         * arm-protos.h (rdata_section, zero_init_section, common_section):
4762         Prototype.
4763         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4764         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4765         traditional mode stringification.
4766         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4767         in macros controling its use.
4768         * rtlanal.c: Include tm_p.h.
4769         * varasm.c (asm_output_aligned_bss): Mark parameter with
4770         ATTRIBUTE_UNUSED.
4771         (assemble_constant_align, assemble_start_function, assemble_align,
4772         assemble_variable, assemble_trampoline_template,
4773         output_constant_def_contents): Wrap potentially empty if-stmt body
4774         in brackets.
4775
4776 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4777
4778         * a29k-protos.h (literal_section): Prototype.
4779         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4780         * a29k.md: Ensure function pointers are prototyped.
4781         * genattrtab.c (write_eligible_delay): Mark parameter with
4782         ATTRIBUTE_UNUSED.
4783
4784 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4785
4786         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4787         * 1750a.c (print_operand): Fix format specifier warning.
4788         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4789         * 1750a.md: Likewise.
4790         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4791         * genemit.c (output_add_clobbers): Mark parameter with
4792         ATTRIBUTE_UNUSED.
4793         * genrecog.c (write_subroutine): Likewise.
4794         * integrate.c (expand_inline_function): Delete unused variable.
4795         * varasm.c (remove_from_pending_weak_list): Wrap with
4796         ASM_WEAKEN_LABEL.
4797
4798 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4799
4800         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4801         field is different to previous argument's neg field.
4802
4803         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4804
4805 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4806
4807         * final.c (get_decl_from_op): New function.
4808         (output_asm_insn): Call it; write "*" when item with decl is address.
4809
4810 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
4811
4812         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4813         about 64-bit support from the 3.0_branch version.
4814
4815 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
4816
4817         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
4818         USE_INCLUDED_LIBINTL when appropriate.
4819         * configure, config.in: Regenerate.
4820         * Makefile.in (datadir): Set to @datadir@.
4821         (intl.o): Also depend on $(CONFIG_H) and system.h.
4822
4823         * intl.c: Factor out common gettext initialization sequence.
4824         (gcc_init_libintl):  New function.
4825         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
4826         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
4827         off NLS.  Add multiple include guard.  No need to #ifdef-guard
4828         an #undef.  Prototype gcc_init_libintl here.
4829
4830         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
4831         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
4832         Use gcc_init_libintl.
4833
4834 2001-10-19  Catherine Moore  <clm@redhat.com>
4835
4836         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
4837
4838         * config/stormy16/stormy16.c (stormy16_split_move):  Make
4839         sure that REG_INC notes are present for auto_inc operands.
4840
4841 2001-10-19  Andreas Jaeger  <aj@suse.de>
4842
4843         * configure: Regenerated.
4844         * configure.in: Add x86_64 to switch statements.
4845
4846 2001-10-18  Richard Henderson  <rth@redhat.com>
4847
4848         * config/alpha/alpha.md (sibcall_osf_1): Load destination
4849         address into $27 explicitly.
4850         (sibcall_value_osf_1): Likewise.
4851
4852 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4853
4854         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
4855         (offset_address): New function.
4856         (free_emit_status): Free regno_decl.
4857         (init_emit): Pass proper number of elements to xcalloc.
4858         Allocate regno_decl.
4859         (mark_emit_status): Mark regno_decl values.
4860         * expr.c (highest_pow2_factor): New function.
4861         (expand_assigment): Use it and offset_address.
4862         Properly handle ptr_mode vs. Pmode in offset calculation.
4863         (store_constructor, expand_expr_unaligned): Likewise.
4864         (expand_expr, case COMPONENT_EXPR): Likewise.
4865         * expr.h (offset_address): New decl.
4866         * function.h (struct emit_status): Add regno_decl.
4867         (REGNO_DECL): New macro.
4868         * final.c (output_asm_name): Move in file and don't conditionalize
4869         on flag_print_asm_name.
4870         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
4871         Output names of operands, if known.
4872         * function.c (assign_parms): Set REGNO_DECL.
4873         * integrate.c (integrate_decl_tree): Likewise.
4874         * stmt.c (expand_decl): Likewise.
4875         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
4876
4877 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
4878
4879         * attribs.c (handle_noinline_attribute): New function.
4880         (handle_used_attribute): Likewise.
4881         (c_common_attribute_table): Added noinline and used.
4882         * doc/extend.texi (Function Attributes): Document them.
4883         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
4884         Warn when merging inline with attribute noinline.
4885         (start_decl, start_function): Warn if inline and attribute
4886         noinline appear in the same declaration.
4887
4888 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4889
4890         * config.gcc: Update c4x and i370 for C front end-specific
4891         dependencies.
4892         * config/c4x/c4x-c.c: New.
4893         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
4894         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4895         New declarations.
4896         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4897         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4898         Make extern.
4899         (c4x_init_pragma): Remove.
4900         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4901         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4902         c4x_pr_ignored): Move to c4x-c.c.
4903         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4904         * config/c4x/t-c4x: Update.
4905         * config/i370/i370-c.c: New.
4906         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4907         (i370_pr_map): Move to i370-c.c.
4908         * config/i370/t-i370: New.
4909
4910         * doc/tm.texi: Update.
4911
4912 2001-10-17  Stan Shebs  <shebs@apple.com>
4913
4914         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4915         typo fixes throughout.
4916         (machopic_output_stub): Remove some dead code.
4917
4918 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
4919
4920         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4921         leak.
4922
4923 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4924
4925         * Makefile.in (print-rtl.o): Depend on TREE_H.
4926         * alias.c (get_alias_set): Make two passes over objects to first
4927         see if inner object is access via restricted pointer.
4928         Defer allocating alias set for restricted pointer until here.
4929         Call find_placeholder with second arg nonzero.
4930         Minor cleanups.
4931         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4932         set for restricted pointer types.
4933         * emit-rtl.c (set_mem_attributes): Set more attributes.
4934         (set_mem_align, change_address, adjust_address_1): New functions.
4935         (change_address_1): Now static.
4936         (adjust_address, adjust_address_nv): Deleted.
4937         (replace_equiv_address): Call change_address_1.
4938         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4939         (find_placeholder): Get starting point from PLIST arg.
4940         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4941         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4942         (adjust_address, adjust_address_nv): New macros.
4943         * print-rtl.c (tree.h): New include.
4944         (print_rtx, case MEM): Print all memory attributes.
4945
4946 2001-10-17  Richard Henderson  <rth@redhat.com>
4947
4948         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4949
4950 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4951
4952         * c-tree.texi: Eliminate duplicated word.
4953         * cpp.texi: Likewise.
4954         * install.texi: Likewise.
4955         * invoke.texi: Likewise.
4956         * tm.texi: Likewise.
4957
4958 2001-10-17  Michael Collison  <collison@isisinc.net>
4959
4960         * dsp16xx.c: Fix comment formatting to match GNU standards.
4961         (dsp16xx_output_function_prologue): Change type of 'size'
4962         parameter from 'int' to HOST_WIDE_INT.
4963         (dsp16xx_output_function_epilogue): Change type of 'size'
4964         parameter from 'int' to HOST_WIDE_INT.
4965
4966 2001-10-16  Richard Henderson  <rth@redhat.com>
4967
4968         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4969         * configure, config.in: Rebuild.
4970
4971         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4972         (ix86_output_addr_diff_elt): New.
4973         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4974         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4975         (JUMP_TABLES_IN_TEXT_SECTION): New.
4976         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4977         * config/i386/i386-protos.h: Update.
4978
4979         * config/i386/386bsd.h, config/i386/beos-elf.h,
4980         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4981         config/i386/i386-interix.h, config/i386/i386elf.h,
4982         config/i386/linux.h, config/i386/netbsd-elf.h,
4983         config/i386/netbsd.h, config/i386/openbsd.h,
4984         config/i386/ptx4-i.h, config/i386/rtemself.h,
4985         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4986         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4987
4988 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
4989
4990         * stmt.c (expand_asm_operands): Update commentary.
4991
4992 2001-10-16  Stan Shebs  <shebs@apple.com>
4993
4994         * config/darwin.h (GCC_NAME): Remove, no longer used.
4995         (NO_MATH_LIBRARY): Ditto.
4996         (MATH_LIBRARY): Define to emptiness.
4997         (DWARF2_DEBUGGING_INFO): Define.
4998         (PREFERRED_DEBUGGING_TYPE): Define.
4999         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
5000         (EXCEPTION_SECTION): Define.
5001         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5002         * config/darwin.c (darwin_encode_section_info): Handle case of
5003         DECL_INITIAL being error_mark_node.
5004
5005 2001-10-16  Richard Henderson  <rth@redhat.com>
5006
5007         * alpha.c (current_file_function_operand): Don't fail for profiling.
5008         (direct_call_operand): New.
5009         * alpha-protos.h: Declare it.
5010         * alpha.h (EXTRA_CONSTRAINT): Use it.
5011         (PREDICATE_CODES): Add it.
5012         (ASM_OUTPUT_MI_THUNK): Remove.
5013         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
5014         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
5015
5016 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
5017
5018         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
5019         (JUMP_TABLES_IN_TEXT_SECTION): Define.
5020
5021 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5022
5023         * cfg.c (free_edge): Break out from ....
5024         (remove_edge): ... here.
5025         (clear_edges): Use free_edge.
5026
5027         * att.h (ASM_QUAD): Add comment.
5028         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
5029
5030 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
5031
5032         * i386.c (split_ti): New function.
5033         (ix86_split_to_parts): Support TImodes.
5034         * i386.h (VALID_INT_MODE_P): Add TImode.
5035         * i386.md (movdi splitter): Fix.
5036         (movti): Support 64bit integer registers.
5037         (movti_rex64): New function and splitter.
5038
5039         * i386.c (*_cost): Add movsx/movzx cost.
5040         * i386.h (struct processor_costs): Add movsx/movzx fields.
5041         (RTX_COSTS): Handle zero/sign extend + avoid believing that
5042         64bit operations require split on 64bit machine.
5043         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
5044
5045         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
5046         (ix86_expand_move): Avoid pushes of memory if size does not match;
5047         move long constants to register.
5048         (x86_initialize_trampoline): Fix mode.
5049         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
5050         Use ASM_QUAD on 64bit.
5051         * i386.md (test pattern): Disallow impossible constants.
5052         (tablejump PIC expander): Fix emitting of sum.
5053         (movdicc_rex64): Rename to movdicc.
5054         * linux64.h (LINK_SPEC): Add missing '%'.
5055
5056 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
5057
5058         * tree-inline.c (inlinable_function_p): Leave it up to the
5059         front-end to turn -finline-functions into DECL_INLINE set for all
5060         functions.
5061
5062 2001-10-16  Stan Shebs  <shebs@apple.com>
5063
5064         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
5065
5066 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
5067
5068         * recog.c: Formatting and comment typo fixes.
5069
5070         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
5071         version in single tree build.
5072         * configure: Regenerate.
5073
5074 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
5075
5076         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
5077         MODE arguments to gen_rtx and compare operand with const0_rtx.
5078
5079 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5080
5081         * system.h: Poison old unused target macros.
5082         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
5083         * config/stormy16/stormy16.c: Update references to obsolete macros.
5084         * config/stormy16/stormy16.h: Similarly.
5085         * config/stormy16/stormy16.md: Similarly.
5086         * config/cris/cris.h: Similarly.
5087
5088 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5089
5090         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
5091         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
5092         cpp_register_pragma): Update accordingly.
5093
5094 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5095
5096         * c-pragma.h (cpp_register_pragma_space): Remove.
5097         * cpplib.h (cpp_register_pragma_space): Remove.
5098         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
5099         (cpp_register_pragma_space): Remove.
5100         (cpp_register_pragma): Simplify using lookup_pragma_entry,
5101         add sanity checks.
5102         (do_pragma): Similarly.
5103         (_cpp_init_internal_pragmas): Don't register namespaces.
5104
5105         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
5106         Don't register namespaces.
5107         * cp/lex.c (init_cp_pragma): Similarly.
5108         * doc/tm.texi: Update.
5109
5110 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5111
5112         PR c/4157
5113         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
5114
5115 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
5116
5117         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
5118         add scheduling support.
5119         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
5120         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
5121         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
5122
5123
5124 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
5125
5126         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
5127         missing CONSTANT_P test in core GCC.
5128
5129 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5130
5131         * cppmain.c (struct printer): New member source.
5132         (scan_translation_unit): Fix spacing at start of lines.
5133         (cb_line_change): Update.
5134
5135         * gcc.dg/cpp/spacing2.c: New test.
5136
5137 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
5138
5139         * config/cris/arit.c: Use __builtin_labs, not abs.
5140
5141         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
5142
5143         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
5144         misplaced sprintf and fprintf argument.
5145
5146 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
5147
5148         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
5149         * configure.in, Makefile.in: Take out obsolete check-po logic.
5150         * configure, config.in: Regenerate.
5151
5152 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
5153
5154         * objc/objc-act.c (finish_objc): Correct precondition for emitting
5155         symtab declarations.
5156
5157 2001-10-12  Stan Shebs  <shebs@apple.com>
5158
5159         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
5160         declarations of arguments and local variables.
5161
5162 2001-10-12  Christopher Faylor  <cgf@redhat.com>
5163
5164         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
5165         ENDFILE_SPEC definition.
5166
5167 2001-10-12  Kazu Hirata  <kazu@hxi.com>
5168
5169         * gthr-dce.h: Fix comment formatting.
5170         * gthr-posix.h: Likewise.
5171         * gthr-single.h: Likewise.
5172         * gthr-solaris.h: Likewise.
5173         * gthr-vxworks.h: Likewise.
5174         * gthr-win32.h: Likewise.
5175
5176 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
5177
5178         * final.c (output_asm_insn): Make sure assembly dialects are
5179         terminated, not nested.  Output `|' and `}' characters if they
5180         don't appear inside assembly dialect selection.
5181         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
5182         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
5183         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
5184         strsetsi_rex_1): Add {} braces.
5185
5186 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5187
5188         * toplev.c (compile_file): Ignore return value from yyparse.
5189         Always pop any nested binding levels after yyparse returns.
5190
5191 2001-10-11  Richard Henderson  <rth@redhat.com>
5192
5193         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
5194
5195 2001-10-11  Richard Henderson  <rth@redhat.com>
5196
5197         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
5198         fall back to add_AT_long_long for large CONST_INT.
5199
5200 2001-10-11  Richard Henderson  <rth@redhat.com>
5201
5202         * config/i386/i386.md (setcc splitters): Add four splitters to
5203         simplify compound compares that simplify_comparison can't handle.
5204
5205 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5206
5207         * cpplex.c (digraph_spellings, token_spellings): Make static.
5208
5209 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5210
5211         * unroll.c (loop_iterations): Fixup last patch.
5212
5213 2001-10-11  Richard Henderson  <rth@redhat.com>
5214
5215         * rtl.h (REG_VTABLE_REF): New.
5216         * rtl.c (reg_note_name): Add it.
5217         * combine.c (distribute_notes): Handle it.
5218         * final.c (final_scan_insn): Handle it.
5219         * tree.def (VTABLE_REF): New.
5220         * expr.c (expand_expr): Handle it.
5221         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
5222         * output.h: Declare them.
5223
5224 2001-10-11  Richard Henderson  <rth@redhat.com>
5225
5226         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
5227         for a DECL_INITIAL.
5228
5229 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
5230
5231         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
5232         available in 64-bit mode.
5233
5234 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5235
5236         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
5237         cris-*-linux* cases.
5238         * config/cris/cris-protos.h: New file.
5239         * config/cris/cris.c: New file.
5240         * config/cris/cris.h: New file.
5241         * config/cris/cris.md: New file.
5242         * config/cris/linux.h: New file.
5243         * config/cris/aout.h: New file.
5244         * config/cris/arit.c: New file.
5245         * config/cris/cris_abi_symbol.c: New file.
5246         * config/cris/mulsi3.asm: New file.
5247         * config/cris/t-aout: New file.
5248         * config/cris/t-cris: New file.
5249         * config/cris/t-elfmulti: New file.
5250         * config/cris/t-linux: New file.
5251         * doc/invoke.texi: Add CRIS options.
5252         * doc/install.texi (Specific): Add blurb for CRIS.
5253
5254 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
5255
5256         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
5257         before using it.
5258         * config/float/i32.h: Likewise.
5259         * config/float-i386.h: Likewise.
5260         * config/float-i64.h: Likewise.
5261         * config/float-m68k.h: Likewise.
5262         * config/float-sh.h: Likewise.
5263         * config/float-sparc.h: Likewise.
5264
5265 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5266
5267         * doc/contrib.texi: Add note about CRIS port to my entry.
5268
5269 2001-10-11  Kazu Hirata  <kazu@hxi.com>
5270
5271         * basic-block.h: Fix formatting.
5272         * bitmap.h: Likewise.
5273         * cpplib.h: Likewise.
5274         * c-tree.h: Likewise.
5275         * diagnostic.h: Likewise.
5276         * flags.h: Likewise.
5277         * ggc.h: Likewise.
5278         * longlong.h: Likewise.
5279         * real.h: Likewise.
5280         * reload.h: Likewise.
5281         * rtl.h: Likewise.
5282         * tree.h: Likewise.
5283
5284 2001-10-10  Richard Henderson  <rth@redhat.com>
5285
5286         * c-parse.in (asm_operand): Allow named operands.
5287         * genconfig.c (max_recog_operands): Set to 29.
5288         * local-alloc.c (requires_inout): Skip multiple digits.
5289         * recog.c (asm_operand_ok): Likewise.
5290         (preprocess_constraints): Use strtoul for matching constraints.
5291         (constrain_operands): Likewise.
5292         * regmove.c (find_matches): Likewise.
5293         * reload.c (find_reloads): Likewise.
5294         * stmt.c (parse_output_constraint): Don't reject in-out
5295         constraint on operands > 9.  Reject '[' in constraint.
5296         (expand_asm_operands): Handle named operands.  Use strtoul
5297         for matching constraints.
5298         (check_operand_nalternatives): Split out from expand_asm_operands.
5299         (check_unique_operand_names): New.
5300         (resolve_operand_names, resolve_operand_name_1): New.
5301
5302         * doc/extend.texi (Extended Asm): Document named operands.
5303         * doc/md.texi (Simple Constraints): Document matching constraints
5304         on operands > 9.
5305
5306 2001-10-10  Richard Henderson  <rth@redhat.com>
5307
5308         * combine.c (try_combine): Handle a SEQUENCE of one insn.
5309
5310         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
5311         (jcc splitters): Add two splitters to simplify compound compares
5312         that simplify_comparison can't handle.
5313
5314 2001-10-10  Richard Henderson  <rth@redhat.com>
5315
5316         * langhooks.c: Include langhooks.h.
5317         * Makefile.in (langhooks.o): Depend on it.
5318
5319 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
5320
5321         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
5322         should not be considered as a no-op.
5323         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
5324
5325 2001-10-10  Stan Shebs  <shebs@apple.com>
5326
5327         * alias.c: Remove uses of "register" specifier in declarations
5328         of arguments and local variables.
5329         * c-common.c: Ditto.
5330         * c-convert.c: Ditto.
5331         * c-decl.c: Ditto.
5332         * c-format.c: Ditto.
5333         * c-semantics.c: Ditto.
5334         * c-typeck.c: Ditto.
5335         * caller-save.c: Ditto.
5336         * calls.c: Ditto.
5337         * cfg.c: Ditto.
5338         * cfgbuild.c: Ditto.
5339         * cfgrtl.c: Ditto.
5340         * collect2.c: Ditto.
5341         * combine.c: Ditto.
5342         * convert.c: Ditto.
5343         * cppexp.c: Ditto.
5344         * cppfiles.c: Ditto.
5345         * cse.c: Ditto.
5346         * dbxout.c: Ditto.
5347         * defaults.h: Ditto.
5348         * df.c: Ditto.
5349         * dwarf2out.c: Ditto.
5350         * dwarfout.c: Ditto.
5351         * emit-rtl.c: Ditto.
5352         * explow.c: Ditto.
5353         * expmed.c: Ditto.
5354         * expr.c: Ditto.
5355         * final.c: Ditto.
5356         * fix-header.c: Ditto.
5357         * floatlib.c: Ditto.
5358         * flow.c: Ditto.
5359         * fold-const.c: Ditto.
5360         * function.c: Ditto.
5361         * gcc.c: Ditto.
5362         * gcse.c: Ditto.
5363         * gen-protos.c: Ditto.
5364         * genattrtab.c: Ditto.
5365         * gencheck.c: Ditto.
5366         * genconfig.c: Ditto.
5367         * genemit.c: Ditto.
5368         * genextract.c: Ditto.
5369         * genflags.c: Ditto.
5370         * gengenrtl.c: Ditto.
5371         * genoutput.c: Ditto.
5372         * genpeep.c: Ditto.
5373         * genrecog.c: Ditto.
5374         * gensupport.c: Ditto.
5375         * global.c: Ditto.
5376         * gmon.c: Ditto.
5377         * graph.c: Ditto.
5378         * haifa-sched.c: Ditto.
5379         * hard-reg-set.h: Ditto.
5380         * hash.c: Ditto.
5381         * integrate.c: Ditto.
5382         * jump.c: Ditto.
5383         * lists.c: Ditto.
5384         * local-alloc.c: Ditto.
5385         * loop.c: Ditto.
5386         * mips-tdump.c: Ditto.
5387         * mips-tfile.c: Ditto.
5388         * optabs.c: Ditto.
5389         * prefix.c: Ditto.
5390         * print-rtl.c: Ditto.
5391         * read-rtl.c: Ditto.
5392         * real.c: Ditto.
5393         * recog.c: Ditto.
5394         * reg-stack.c: Ditto.
5395         * regclass.c: Ditto.
5396         * regmove.c: Ditto.
5397         * reload.c: Ditto.
5398         * reload1.c: Ditto.
5399         * reorg.c: Ditto.
5400         * resource.c: Ditto.
5401         * rtl.c: Ditto.
5402         * rtlanal.c: Ditto.
5403         * scan.c: Ditto.
5404         * sched-deps.c: Ditto.
5405         * sched-rgn.c: Ditto.
5406         * sdbout.c: Ditto.
5407         * simplify-rtx.c: Ditto.
5408         * stmt.c: Ditto.
5409         * stor-layout.c: Ditto.
5410         * toplev.c: Ditto.
5411         * tradcif.y: Ditto.
5412         * tradcpp.c: Ditto.
5413         * tree.c: Ditto.
5414         * unroll.c: Ditto.
5415         * varasm.c: Ditto.
5416         * xcoffout.c: Ditto.
5417
5418 2001-10-10  Richard Henderson  <rth@redhat.com>
5419
5420         * rtl.h (can_reverse_comparison_p): Remove.
5421
5422 2001-10-10  Christopher Faylor <cgf@redhat.com>
5423
5424         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5425         used.
5426
5427 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5428
5429         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5430         (Thanks to Chris Faylor for suggesting macro name).
5431         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5432         WIN32 defines.
5433         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5434         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5435         (MATH_LIBRARY): Undef before definition.
5436         (OUTPUT_QUOTED_STRING): Likewise.
5437         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5438
5439 2001-10-10  Richard Henderson  <rth@redhat.com>
5440
5441         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5442         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
5443         a tristate comparison value.
5444         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5445
5446 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5447
5448         PR c++/4512
5449         * unroll.c (loop_iterations): Ignore insns generated by loop
5450         unrolling.
5451
5452         * config.gcc (mips*-*-gnu*): Delete support.
5453         * config/mips/gnu.h: Remove.
5454
5455 2001-10-10  Kazu Hirata  <kazu@hxi.com>
5456
5457         * calls.c: Fix formatting.
5458         * c-decl.c: Likewise.
5459         * cfgcleanup.c: Likewise.
5460         * combine.c: Likewise.
5461         * cppfiles.c: Likewise.
5462         * cpplib.c: Likewise.
5463         * cppmacro.c: Likewise.
5464         * crtstuff.c: Likewise.
5465         * cse.c: Likewise.
5466         * dwarf2out.c: Likewise.
5467         * expmed.c: Likewise.
5468         * expr.c: Likewise.
5469         * fold-const.c: Likewise.
5470         * function.c: Likewise.
5471         * gcse.c: Likewise.
5472         * genattrtab.c: Likewise.
5473         * ggc-page.c: Likewise.
5474         * integrate.c: Likewise.
5475         * libgcc2.c: Likewise.
5476         * loop.c: Likewise.
5477         * optabs.c: Likewise.
5478         * profile.c: Likewise.
5479         * protoize.c: Likewise.
5480         * real.c: Likewise.
5481         * recog.c: Likewise.
5482         * reload1.c: Likewise.
5483         * reload.c: Likewise.
5484         * reorg.c: Likewise.
5485         * resource.c: Likewise.
5486         * sched-rgn.c: Likewise.
5487         * sdbout.c: Likewise.
5488         * stmt.c: Likewise.
5489         * toplev.c: Likewise.
5490         * varasm.c: Likewise.
5491
5492 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
5493
5494         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5495         * Makefile.in (langhooks.o): Add dependencies.
5496
5497 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
5498
5499         * rs6000.c (rs6000_emit_load_toc_table): Don't
5500         strdup the toc label.
5501         (create_TOC_reference): Likewise.
5502
5503 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5504
5505         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5506         version default.
5507
5508 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5509
5510         * config/i386/i386.c (ix86_attribute_table): Correct
5511         min_len, max_len fields for dllimport, dllexport and shared.
5512
5513 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5514
5515         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5516         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5517         Consistently use "nonzero" instead of "non-zero".
5518
5519 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5520
5521         * acconfig.h: Fix comment formatting.
5522         * c-dump.h: Likewise.
5523         * c-tree.h: Likewise.
5524         * conditions.h: Likewise.
5525         * expr.h: Likewise.
5526         * function.h: Likewise.
5527         * gthr.h: Likewise.
5528         * hwint.h: Likewise.
5529         * integrate.h: Likewise.
5530         * intl.h: Likewise.
5531         * loop.h: Likewise.
5532         * optabs.h: Likewise.
5533
5534 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5535
5536         * c-common.h: Fix comment formatting.
5537         * c-dump.c: Likewise.
5538         * cfg.c: Likewise.
5539         * diagnostic.h: Likewise.
5540         * except.c: Likewise.
5541         * gcc.h: Likewise.
5542         * gcov-io.h: Likewise.
5543         * genattrtab.c: Likewise.
5544         * output.h: Likewise.
5545         * predict.h: Likewise.
5546         * reload1.c: Likewise.
5547         * reload.h: Likewise.
5548         * resource.h: Likewise.
5549         * scan.h: Likewise.
5550         * system.h: Likewise.
5551         * tree.h: Likewise.
5552         * tree-inline.c: Likewise.
5553         * tsystem.h: Likewise.
5554         * varasm.c: Likewise.
5555         * xcoffout.h: Likewise.
5556
5557 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5558
5559         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5560
5561 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5562
5563         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5564         config/i386/i386elf.h, config/i386/netbsd-elf.h,
5565         config/i386/netware.h, config/mcore/gfloat.h,
5566         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5567         config/netware.h, gccbug.in: Update FSF address.
5568
5569 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5570
5571         * c-common.c: Fix comment typos.
5572         * cfgrtl.c: Likewise.
5573         * collect2.c: Likewise.
5574         * cpplex.c: Likewise.
5575         * doloop.c: Likewise.
5576         * dwarf2out.c: Likewise.
5577         * dwarfout.c: Likewise.
5578         * expr.c: Likewise.
5579         * fold-const.c: Likewise.
5580         * gcc.c: Likewise.
5581         * gcov.c: Likewise.
5582         * gcse.c: Likewise.
5583         * global.c: Likewise.
5584         * ifcvt.c: Likewise.
5585         * loop.c: Likewise.
5586         * optabs.c: Likewise.
5587         * protoize.c: Likewise.
5588         * regclass.c: Likewise.
5589         * reorg.c: Likewise.
5590         * rtl.h: Likewise.
5591         * stmt.c: Likewise.
5592         * tree.h: Likewise.
5593         * doc/cpp.texi: Likewise.
5594         * doc/c-tree.texi: Likewise.
5595         * doc/extend.texi: Likewise.
5596         * doc/invoke.texi: Likewise.
5597         * doc/objc.texi: Likewise.
5598         * doc/tm.texi: Likewise.
5599
5600 2001-10-08  Richard Henderson  <rth@redhat.com>
5601
5602         * varasm.c (set_named_section_flags): Initialize "declared".
5603
5604 2001-10-08  Robert Lipe  <robertlipe@usa.net>
5605
5606         * varasm.c (struct in_named_entry): Add declared.
5607         (named_section_first_declaration): New function.
5608         (default_elf_asm_named_section): Use it.
5609         * output.h (named_section_first_declaration): New.
5610
5611 2001-10-08  Richard Henderson  <rth@redhat.com>
5612
5613         * i386.md (movsi_xor): Export.
5614         (setcc peep2): Use it when available; add an alternative to
5615         match zero_extendhisi2_and.
5616
5617 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5618
5619         * romp-protos.h (romp_initialize_trampoline): New function.
5620         * romp.c (romp_initialize_trampoline): Likewise.
5621         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5622         romp_initialize_trampoline.
5623
5624 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5625
5626         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5627         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5628         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5629         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5630
5631 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5632
5633         * unroll.c (loop_iterations): Extend check for multiple back edges.
5634
5635 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
5636
5637         * langhooks.h: New file.
5638         * Makefile.in (OBJS): Added langhooks.o.
5639         (c-lang.o): Depend on langhooks.h.
5640         (c-common.o): Don't depend on tree-inline.h.
5641         (tree-inline.o): Depend on toplev.h.
5642         (langhooks.o): New rule.
5643         * c-common.c: Don't include tree-inline.h.
5644         (c_mark_lang_decl): Mark argument c as unused.
5645         (c_common_lang_init): Don't initialize hooks here.
5646         * c-lang.c: Include langhooks.h, then override some macros.
5647         (lang_hooks): Initialize with macros in langhooks.h.
5648         (c_init): Don't initialize hooks here.
5649         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5650         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
5651         * tree-inline.c: Include toplev.h.  Don't define hook variables.
5652         * tree-inline.h: Don't define hook types nor declare hook
5653         variables.  Move macros to...
5654         * langhooks.c: ... new file, as functions.  Adjust all callers.
5655
5656 2001-10-08  Jeffrey A Law  <law@cygnus.com>
5657
5658         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5659         purge_mem_unchanging_flag on all instructions, not just on those
5660         before NOTE_INSN_FUNCTION_BEG.
5661
5662 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5663
5664         * cppmacro.c (_cpp_create_definition): Leave comments off.
5665
5666         * doc/cpp.texi: Update.
5667
5668 2001-10-08  DJ Delorie  <dj@redhat.com>
5669
5670         * c-decl.c (grokfield): Make sure the only unnamed fields
5671         we're allowing are either structs or unions.
5672         * doc/extend.texi: Add documentation for the unnamed field
5673         extension.
5674
5675 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
5676
5677         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5678         * configure.in: Use it.
5679         * configure: Regenerated.
5680         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5681         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5682
5683 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5684
5685         * cppfiles.c (open_file): Don't mark zero-length files
5686         never-reread here.  Don't output diagnostics here either.
5687         (stack_include_file): Mark them never-reread here.
5688         (_cpp_read_file): Update.
5689
5690 2001-10-08  Richard Henderson  <rth@redhat.com>
5691
5692         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5693
5694 2001-10-08  Richard Henderson  <rth@redhat.com>
5695
5696         * expr.c (store_expr): When converting a CONST_INT for storage
5697         in a SUBREG, convert it to both SUBREG modes before stripping
5698         the SUBREG.
5699
5700 2001-10-08  Richard Henderson  <rth@redhat.com>
5701
5702         * varasm.c (restore_varasm_status): New.
5703         * function.h: Declare it.
5704         * function.c (pop_function_context_from): Call it.
5705
5706 2001-10-08  Richard Henderson  <rth@redhat.com>
5707
5708         * c-common.h (struct c_lang_decl): Add declared_inline.
5709         * c-tree.h (DECL_DECLARED_INLINE_P): New.
5710         * c-lang.c (c_disregard_inline_limits): Use it.
5711         * c-decl.c (duplicate_decls): Likewise.
5712         (pushdecl, redeclaration_error_message): Likewise.
5713         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5714         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
5715         Set DECL_INLINE if -finline-functions.
5716         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5717
5718 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5719
5720         * cppmacro.c (funlike_invocation_p): Move some logic to caller
5721         in enter_macro_context.  Create a padding token in its own context
5722         if necessary when the search for '(' fails.
5723         (enter_macro_context): Update.
5724
5725 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5726
5727         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5728         genmultilib, toplev.c: Fix spelling errors of "separate" as
5729         "seperate", and corresponding spelling errors of related words.
5730
5731 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5732
5733         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5734         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5735         Likewise.
5736         * c-dump.c (dump_option_value_info): Likewise.
5737         * c-format.c (format_length_info, format_char_info,
5738         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5739         * collect2.c (names): Likewise.
5740         * cppdefault.h (default_include): Likewise.
5741         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5742         * flow.c (life_analysis): Likewise.
5743         * gcc.c (dir_separator_str, modify_target, option_map,
5744         target_option_translations, spec_list_1, extra_specs_1,
5745         init_spec): Likewise.
5746         * gcov.c (gcov_version_string): Likewise.
5747         * genattr.c (write_units): Likewise.
5748         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5749         * gengenrtl.c (rtx_definition, defs): Likewise.
5750         * genrecog.c (pred_table): Likewise.
5751         * global.c (global_alloc): Likewise.
5752         * lcm.c (optimize_mode_switching): Likewise.
5753         * local-alloc.c (find_free_reg): Likewise.
5754         * params.h (param_info): Likewise.
5755         * predict.c (predictor_info): Likewise.
5756         * protoize.c (unexpansion_struct): Likewise.
5757         * real.c (bmask): Likewise.
5758         * recog.h (insn_operand_data, insn_data): Likewise.
5759         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5760         * stmt.c (expand_nl_goto_receiver): Likewise.
5761         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5762         target_switches, target_options): Likewise.
5763         * tradcif.y (token, tokentab2, yylex): Likewise.
5764         * tree.h (attribute_spec): Likewise.
5765
5766         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5767         Likewise.
5768         * arc.c (arc_output_function_epilogue): Likewise.
5769         * arm.c (processors, all_cores, all_architectures,
5770         arm_override_options, isr_attribute_arg, isr_attribute_args,
5771         arm_isr_value): Likewise.
5772         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5773         Likewise.
5774         * c4x.c (c4x_int_reglist): Likewise.
5775         * d30v.c (override_options): Likewise.
5776         * h8300.c (shift_insn): Likewise.
5777         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5778         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5779         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5780         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5781         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5782         * i386.h (processor_costs, ix86_cost): Likewise.
5783         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5784         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5785         * m68k.c (codes_68881, codes_FPA): Likewise.
5786         * m88k.c (mode_from_align, max_from_align, all_from_align,
5787         best_from_align, m_options): Likewise.
5788         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5789         * mcore.c (mode_from_align): Likewise.
5790         * mips/elf64.h (UNIQUE_SECTION): Likewise.
5791         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5792         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5793         * mips.h (mips_regno_to_class): Likewise.
5794         * ns32k.c (scales): Likewise.
5795         * pa.c (import_string, magic_milli): Likewise.
5796         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5797         * sparc.c (leaf_reg_remap, sparc_override_options,
5798         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5799         Likewise.
5800         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5801
5802 2001-10-07  Dale Johannesen  <dalej@apple.com>
5803
5804         * reload1.c (reload_reg_free_p): Teach register interference
5805         checking that multiple output reloads are emitted in
5806         reverse order.
5807         reload1.c (reload_reg_reaches_end_p):  Ditto.
5808         reload1.c (reloads_conflict):  Ditto.
5809
5810 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5811
5812         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5813         NULL_TREE inside @code.
5814
5815 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5816
5817         * doc/gcc.texi: Document consistent style of "32-bit",
5818         "Objective-C", and "@code{NULL}".
5819
5820 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5821
5822         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
5823         (cpp_token_len, cpp_spell_token, cpp_output_token,
5824         _cpp_equiv_tokens): Handle it.
5825         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
5826         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
5827         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
5828         error messages.
5829
5830 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5831
5832         * gcc.c (default_compilers): Remove .ada.
5833
5834 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5835
5836         * doc/cppinternals.texi: Update.
5837
5838 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5839
5840         * gcc.c (main): Set this_file_error if the appropriate
5841         compiler for a language has not been installed.
5842
5843 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5844
5845         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
5846
5847 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5848
5849         * gccbug.in (CATEGORIES): Add ada.
5850
5851 2001-10-05  Catherine Moore  <clm@redhat.com>
5852
5853         * config/stormy16/stormy-abi:  Document abi changes.
5854         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
5855         (ICALL_REGS): New register class.
5856         (NUM_ARGUMENT_REGISTERS): Now 6.
5857         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
5858         in registers.
5859         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
5860         * config/stormy16.md (call_internal, call_value_internal,
5861         indirect_jump): Use new 'z' constraint.
5862
5863 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5864
5865         * doc/cppinternals.texi: Update.
5866
5867 2001-10-05  Richard Henderson  <rth@redhat.com>
5868
5869         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
5870         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
5871         the gas section-name-as-label feature.
5872
5873 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5874
5875         * doc/cppinternals.texi: Update.
5876
5877 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5878
5879         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
5880         to ensure valid SImode constants.
5881
5882 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
5883
5884         * Makefile.in (c-decl.o): Depend on tree-inline.h.
5885         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
5886         * c-decl.c: Include tree-inline.h.
5887         (c_expand_body): Call optimize_inline_calls. Determine whether
5888         a function is inlinable upfront, and only clear
5889         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
5890         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
5891         (c_disregard_inline_limits): New function.
5892         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
5893         (c_post_options): Enable tree inlining if inlining is enabled.
5894         Don't inline trees when instrumenting functions.
5895         (c_init): Initialize lang_disregard_inline_limits and
5896         lang_cannot_inline_tree_fn.
5897         * tree-inline.c (initialize_inlined_parameters): Handle calls
5898         with fewer arguments than declared parameters, and fewer
5899         parameters than passed arguments.  Don't assume value is a
5900         DECL.
5901         (declare_return_variable): Convert return value back to the
5902         original type, if it was promoted.
5903         (tree_inlinable_function_p): New function.
5904         (inlinable_function_p): Don't look at DECL_INLINE if we're
5905         inlining all functions.  Make it work with a NULL id.
5906         Re-check DECL_UNINLINABLE after language-specific checks.
5907         * tree-inline.h (tree_inlinable_function_p): Declare it.
5908         * integrate.c (save_for_inline): Don't bother to prepare argvec
5909         when not inlining.
5910         * cse.c (check_for_label_ref): Don't check deleted labels.
5911
5912         * Makefile.in (tree-inline.o): Depend on newly-included headers.
5913         * tree-inline.c: Include headers needed for the functions moved in.
5914         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5915         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5916         (copy_body, initialize_inlined_parameters): Likewise.
5917         (declare_return_variable, inlinable_function_p): Likewise.
5918         (expand_call_inline, expand_calls_inline): Likewise.
5919         (optimize_inline_calls, clone_body): Likewise.
5920         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5921         (copy_tree_r, remap_save_expr): Likewise.
5922
5923 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
5924
5925         * Makefile.in (OBJS): Added tree-inline.o.
5926         (c-common.o): Depend on tree-inline.h.
5927         (tree-inline.o): New target.
5928         * c-common.c: Include tree-inline.h.
5929         (c_mark_lang_decl): Don't mark saved_tree.
5930         (c_common_lang_init): Set lang_anon_aggr_type_p.
5931         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5932         (struct c_lang_decl): Moved saved_tree to tree_decl.
5933         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5934         * integrate.h (function_attribute_inlinable_p): Declare it.
5935         * integrate.c (function_attribute_inlinable_p): Export it.
5936         * tree-inline.c: New file.  Define variables declared in...
5937         * tree-inline.h: New file.  Declare functions to be moved to
5938         tree-inline.c.  Define macros and declare types and hooks for
5939         language-specific tree inlining.
5940         (flag_inline_trees): Moved definition from cp/decl2.c.
5941         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5942         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5943         (struct tree_decl): Moved saved_tree from c_lang_decl and
5944         inlined_fns from C++'s lang_decl.
5945
5946 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
5947
5948         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5949         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5950
5951 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5952
5953         * doc/cppinternals.texi: Update.
5954
5955 2001-10-04  Eric Christopher  <echristo@redhat.com>
5956
5957         * config/mips/mips.c (init_cumulative_args): Remember to set
5958         cum->prototype.
5959         * config.gcc: Redo linux configuration. Add target_cpu_default
5960         of soft-float to all mipsisa32 combinations and tx39.
5961         * config/mips/linux.h: Remove include of mips.h.
5962
5963 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
5964
5965         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5966         HOST_LDFLAGS and HOST_CPPFLAGS.
5967
5968 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
5969
5970         * c-parse.in (objc_inherit_code, objc_pq_context,
5971         objc_public_flag): Make static.
5972         (objc_interface_context, objc_implementation_context,
5973         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5974         global tree array in objc/objc-act.[ch].
5975         (methoddef): Remove unnecessary code.
5976
5977         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5978         Hoist struct definitions to objc-act.h.
5979         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5980         cat_count): Place declaration in objc-act.h.
5981         (objc_tree_index): Move enumeration to objc-act.h.
5982         (objc_global_trees): Place declaration and macro accessors in
5983         objc-act.h.
5984         (implementation_context): Remove duplicate; use
5985         objc_implementation_context instead:
5986         (method_context): Remove duplicate; use objc_method_context
5987         instead.
5988         (objc_ellipsis_node, objc_method_prototype_template,
5989         implemented_classes, function_type): Move global vars to
5990         objc_global_trees.
5991         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5992         (build_message_expr): Move actual construction of ObjC message
5993         send nodes to finish_message_expr.
5994         (finish_message_expr): New routine, contains code formerly in
5995         build_message_expr.
5996         * objc/objc-act.h (finish_message_expr): New prototype.
5997         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5998         declarations; these vars are now part of objc_global_trees.
5999         (objc_tree_index, objc_global_trees): Move definitions from
6000         objc-act.c.
6001         * objc/objc-tree.def: Update copyright info.
6002
6003 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
6004
6005         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
6006         op is NULL.
6007         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
6008         only if TARGET_ARCH64.
6009
6010 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
6011
6012         * doc/extend.texi: Fix some problems with previous checkin.
6013         * doc/invoke.texi: Likewise.
6014
6015 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6016
6017         * cpphash.h: Update comments.
6018         (cpp_context): Update.
6019         (spec_nodes): Remove n__Pragma.
6020         * cppinit.c (cpp_create_reader): Update.
6021         (builtin_array): Add _Pragma.
6022         * cpplib.h: Update comments.
6023         (NODE_DISABLED, BT_PRAGMA): New.
6024         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
6025         * cppmacro.c (struct cpp_macro): Remove disabled.
6026         (builtin_macro): Return int, handle _Pragma, push the new token
6027         on the context stack.
6028         (funlike_invocation_p): Unconstify, update.
6029         (enter_macro_context): Handle builtins here.
6030         (replace_args, push_token_context, push_ptoken_context):
6031         Update for prototype changes.
6032         (_cpp_pop_context): Update.
6033         (cpp_get_token): Don't handle buitins, nor _Pragma here.
6034         (cpp_sys_macro_p): Update.
6035         (_cpp_free_definition): Clear disabled flag.
6036         (_cpp_create_definition): Upate.
6037         * cppmain.c: Update comments.
6038
6039 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
6040                                 Andreas Jaeger <aj@suse.de>,
6041                                 Jan Hubicka    <jh@suse.cz>
6042
6043         * doc/invoke.texi (i386 Options): Document x86-64 options.
6044         (i386 and x86-64 Options): Rename i386 options section.
6045
6046         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
6047         (TARGET_SWITCHES): Add -munwind-info.
6048         (MASK_NO_UNWIND_INFO): New.
6049         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
6050         biarch compilation.
6051         (ASM_OUTPUT_DOUBLE_INT): New.
6052
6053         * config/i386/linux64.h: New spec file for Linux x86-64 support.
6054         * config.gcc: Fix tm_file settings for x86-64.
6055         * config/i386/x86-64.h: New file with OS independent x86-64
6056         definitions.
6057         * config/i386/biarch64.h: New file used to configure compiler
6058         to biarch/64bit compilation.
6059
6060         * config/i386/i386.c: (override_options): Set flags default
6061         for 64bit compilation.
6062
6063 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
6064
6065         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
6066         (ix86_expand_int_movcc): Optimize DImode conditional moves with
6067         constants on x86_64.
6068         (ix86_attr_length_immediate_default): Support MODE_DI.
6069         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
6070         condition.
6071         (indirect_jump, tablejump): Turn into expander.
6072
6073 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6074
6075         * c-common.c (c_format_attribute_table): Make format and
6076         format_arg attributes apply to function types rather than to
6077         decls.
6078         (is_valid_printf_arglist): Construct an attribute list and pass
6079         that to check_function_format rather than a name.
6080         * c-common.h (check_function_format): Adjust prototype.
6081         * c-decl.c (duplicate_decls): Preserve attributes from type of
6082         built-in decl when allowing for harmless conflict in types.
6083         * c-format.c (record_function_format,
6084         record_international_format, function_format_list,
6085         international_format_info, international_format_list): Remove.
6086         (function_format_info): Remove next, name and assembler_name.
6087         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
6088         (decode_format_attr): New.
6089         (handle_format_attribute): Handle receiving a type rather than a
6090         decl.  Call decode_format_attr.  Store format information in a
6091         function_format_info.
6092         (handle_format_arg_attribute): Correct comment.  Handle receiving
6093         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
6094         arg_num.
6095         (check_format_info_recurse, check_format_info_main): Take argument
6096         numbers as unsigned HOST_WIDE_INT.
6097         (check_function_format): Take a list of attributes from the
6098         function type rather than a name or assembler name.  Check for
6099         format attributes in that list and the attributes on the type of
6100         the current function rather than looking through
6101         function_format_list.
6102         (check_format_info): Use unsigned HOST_WIDE_INT for argument
6103         numbers.
6104         (check_format_info_recurse): Take format_arg attributes from the
6105         type of the function calls rather than using
6106         international_format_list.  Allow for multiple format_arg
6107         attributes.
6108         * c-typeck.c (build_function_call): Pass type attributes to
6109         check_function_format rather than name or assembler name.  Don't
6110         require there to be a name or assembler name to check formats.
6111
6112 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6113
6114         * attribs.c (decl_attributes): Possibly call
6115         insert_default_attributes to insert default attributes on
6116         functions in a lazy manner.
6117         * builtin-attrs.def: New file; define the default format and
6118         format_arg attributes.
6119         * c-common.c (c_format_attribute_table): Move to earlier in the
6120         file.
6121         (c_common_nodes_and_builtins): Initialize format_attribute_table.
6122         (enum built_in_attribute, built_in_attributes,
6123         c_attrs_initialized, c_init_attributes,
6124         c_common_insert_default_attributes): New.
6125         (c_common_lang_init): Don't initialize format_attribute_table.  Do
6126         call c_init_attributes.
6127         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
6128         * c-common.h (init_function_format_info): Don't declare.
6129         (c_common_insert_default_attributes): Declare.
6130         * c-decl.c (implicitly_declare, builtin_function): Call
6131         decl_attributes.
6132         (init_decl_processing): Don't call init_function_format_info.
6133         (insert_default_attributes): New.
6134         * c-format.c (handle_format_attribute,
6135         handle_format_arg_attribute): Be quiet about inappropriate
6136         declaration when applying default attributes.
6137         (init_function_format_info): Remove.
6138         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
6139         (insert_default_attributes): Declare.
6140
6141 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6142
6143         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
6144
6145 2001-10-01  Jim Wilson  <wilson@redhat.com>
6146
6147         * sched-deps.c (add_dependence): When elide conditional dependence,
6148         check that insn doesn't modify cond2.
6149
6150 2001-10-01  Dale Johannesen  <dalej@apple.com>
6151
6152         * config/rs6000/rs6000.h (enum processor_type): Add support
6153         for 7400 (G4) and 7450.
6154         (RTX_COSTS): Ditto.
6155         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
6156         (rs6000_issue_rate): Ditto.
6157         (rs6000_adjust_cost): Fix cycle counts for compares.
6158         (debug_stack_info):  Fix an obvious typo.
6159         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
6160         * doc/invoke.texi: Document.
6161         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
6162         for Darwin.
6163         (PROCESSOR_DEFAULT): Ditto.
6164
6165 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
6166
6167         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
6168         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
6169         later recursive make invocation.
6170
6171 2001-10-01  Hans Boehm  <boehm@acm.org>
6172
6173         * optabs.c (emit_libcall_block): When using non-call exceptions,
6174         don't add REG_LIBCALL reg notes to trapping calls.
6175
6176 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6177
6178         * flow.c (propagate_block_delete_libcall): Remove unused first arg
6179         (propagate_one_insn):  Update for above change
6180
6181 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6182
6183         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
6184         _Unwind_GetTextRelBase): Argument is unused.
6185
6186 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6187
6188         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
6189         Loop through NOPs, placeholders, and components.
6190         Don't go through NOPs if change mode.
6191         (record_alias_subset): Do nothing if SUBSET and SET are the same.
6192         * emit-rtl.c (set_mem_alias_set): Enable check.
6193         * expr.c (find_placeholder): New function.
6194         (expand_expr, case PLACEHOLDER_EXPR): Use it.
6195         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
6196         to modify it and avoid unneeded copies.
6197         * expr.h (expand_expr): Always define.
6198         (find_placeholder): New declaration.
6199
6200 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6201
6202         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
6203         operand 2 is the stack pointer.
6204         ("addr-peephole"): Fix address computation peephole when operand 2
6205         is the stack pointer.
6206
6207 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6208
6209         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
6210         (ix86_setup_incoming_varargs): Likewise.
6211
6212 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
6213
6214         * stor-layout.c (layout_type): Don't complain about too-large
6215         array here.
6216
6217 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6218
6219         * function.c (keep_stack_depressed): Don't use delete_insn.
6220
6221         * expr.h (set_mem_alias_set): Move decl to here.
6222         * rtl.h (mem_attrs): New typedef and struct.
6223         (union rtunion_def): Add field for mem_attrs.
6224         (X0MEMATTR, MEM_ATTRS): New macros.
6225         (MEM_ALIAS_SET): Use MEM_ATTRS.
6226         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
6227         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
6228         (set_mem_alias_set): Delete decl from here.
6229
6230         * alias.c (set_mem_alias_set): Delete from here.
6231         * emit-rtl.c (mem_attrs_htab): New variable.
6232         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
6233         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
6234         (mem_attrs_mark, get_mem_attrs): Likewise.
6235         (gen_rtx_MEM): Clear MEM_ATTRS.
6236         (set_mem_attributes): Move to here.
6237         (set_mem_alias_set): Likewise, and call get_mem_attrs.
6238         (init_emit_once): const_int_htab now deletable htab.
6239         Initialize mem_attrs_htab.
6240         * explow.c (set_mem_attributes): Delete from here.
6241         * function.c (put_var_into_stack): Clear MEM_ATTRS.
6242         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
6243         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
6244         * reload1.c (reload): Rework changing REG to MEM.
6245
6246 2001-09-30  H.J. Lu <hjl@gnu.org>
6247
6248         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
6249         * config.in: Rebuild.
6250
6251 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6252
6253         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
6254         ("tsthi_1"): Avoid allocation in register y.
6255         ("*movqi_68hc12"): Reorganize and fix constraints.
6256         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
6257         ("addqi3"): Likewise.
6258         ("addhi3"): Fix constraints.
6259         ("*logicalhi3_zexthi"): Disparage soft registers.
6260
6261 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6262
6263         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
6264         to tmp reg.
6265
6266 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6267
6268         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
6269         that we use setjmp/longjmp exceptions.
6270
6271 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
6272
6273         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
6274         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
6275         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6276         _cpp_pool_alloc, _cpp_next_chunk): Remove.
6277         (_cpp_extend_buff, BUFF_ROOM): Update.
6278         (_cpp_append_extend_buff): New.
6279         (struct cpp_reader): Remove macro_pool, add a_buff.
6280         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
6281         macro_pool.
6282         (cpp_destroy): Free a_buff instead of macro_pool.
6283         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
6284         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6285         _cpp_pool_alloc, ): Remove.
6286         (parse_number, parse_string): Update use of _cpp_extend_buff.
6287         (_cpp_extend_buff): Update.
6288         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
6289         * cpplib.c (glue_header_name, parse_answer):
6290         Update use of _cpp_extend_buff.
6291         (cpp_register_pragma, cpp_register_pragma_space): Use
6292         _cpp_aligned_alloc.
6293         (do_assert, do_unassert): Check for EOL, update.
6294         * cppmacro.c (stringify_arg, collect_args): Update to use
6295         _cpp_extend_buff and _cpp_append_extend_buff.
6296         (save_parameter, parse_params, alloc_expansion_token,
6297         _cpp_create_definition): Rework memory management.
6298
6299 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
6300
6301         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
6302         update md_exec_prefix.
6303         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
6304         to string constant.
6305
6306 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6307
6308         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
6309         (SELECT_CC_MODE): Use s390_select_ccmode.
6310         * config/s390/s390-protos.h (s390_select_ccmode): Add.
6311         * config/s390/s390.c (s390_select_ccmode): New.
6312         (s390_match_ccmode): Add CCLmode.
6313         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
6314         (output_branch_condition, output_inverse_branch_condition): Removed.
6315         (print_operand): Use s390_branch_condition_mnemonic.
6316         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
6317         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
6318         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
6319
6320         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
6321         when converting conditional branches to far branches.
6322         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
6323         cmpint_di): Use CCSmode instead of CCUmode.
6324
6325         * config/s390/s390.c (legitimate_la_operand_p): New.
6326         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
6327         * config/s390/s390.md (movsi): Convert load address patterns to
6328         arithmetic operations when necessary.
6329         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
6330         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
6331         (*do_la_reg_0): Don't use before reload.
6332
6333         * config/s390/s390.c (legitimize_address): Make more efficient
6334         use of two-register addressing mode.
6335
6336         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
6337         with -mno-backchain in some corner cases.
6338
6339         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
6340
6341 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
6342
6343         * reload.c (find_reloads): Mark new USE insns with QImode.
6344         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
6345         find_reloads_subreg_address): Likewise.
6346         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
6347         encountered.
6348         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
6349         CLOBBERs.
6350         (reload): Make sure there are no USEs with mode other than
6351         VOIDmode.  At the end, remove those marked with QImode.
6352
6353 2001-09-29  Per Bothner  <per@bothner.com>
6354
6355         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
6356         * Makefile.in (includedir):  Rename to local_includedir.
6357         (includedir):  Define as $(prefix)/include.
6358         * config.in (PREFIX_INCLUDE_DIR):  New variable.
6359         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
6360
6361 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
6362
6363         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6364         storehps builtins.
6365         * doc/extend.texi (Vector Extensions): New node.
6366         * doc/invoke.texi (Machine Dependent Options): Add documentation for
6367         i386 -mmmx, -msse, -m3dnow.
6368
6369 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
6370
6371         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6372
6373 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
6374
6375         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6376
6377         * doc/invoke.texi (Optimize Options): Delete spurious @table.
6378
6379 2001-09-28  Richard Henderson  <rth@redhat.com>
6380
6381         * varasm.c (assemble_integer): Bound alignment check by
6382         BIGGEST_ALIGNMENT.
6383
6384         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6385
6386 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6387
6388         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6389
6390 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6391
6392         Mostly from Graham Stott  <grahams@redhat.com>
6393         * c-common.c (type_for_mode): Add support for V2SFmode.
6394         * tree.c (build_common_tree_nodes_2): Likewise.
6395         * tree.h (enum tree_index, global_trees): Likewise.
6396         * config/i386/i386.c (x86_3dnow_a): New variable.
6397         (override_options): Support 3Dnow extensions.
6398         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6399         Athlon's version of 3Dnow.
6400         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6401         (ix86_expand_builtin): Handle them.
6402         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6403         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6404         TARGET_3DNOW_A): New macros.
6405         (TARGET_SWITCHES): Add 3Dnow switches.
6406         (VALID_MMX_REG_MODE_3DNOW): New macro.
6407         (VECTOR_MODE_SUPPORTED_P): Use it.
6408         (enum ix86_builtins): Add entries for 3Dnow builtins.
6409         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6410         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6411         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6412         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6413         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6414         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6415         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6416         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6417         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6418         sfence_insn, prefetch): Make these available if TARGET_SSE or
6419         TARGET_3DNOW_A.
6420
6421 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
6422
6423         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6424         ix86_va_start, ix86_build_va_list): Declare.
6425         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6426         ix86_va_start, ix86_build_va_list): New global functions.
6427         * i386.md (sse_prologue_save_insn): New insn.
6428         (sse_prologue_save): New expander.
6429         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6430         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6431
6432 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6433
6434         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6435         Use size_t everywhere, make definitions consistent with
6436         prototypes.
6437
6438 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
6439
6440         * gcse.c (replace_store_insn): Use delete_insn.
6441         * loop.c (move_movables): Likewise; avoid delete_insn
6442         from clobbering notes moved elsewhere.
6443         (check_dbra_loop): Use delete_insn.
6444         * ssa.c (convert_from_ssa): Likewise.
6445         * cse.c (cse_insn): Use delete_insn.
6446
6447 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6448
6449         * cpphash.h (struct cpp_buff): Make unsigned.
6450         (_cpp_get_buff): Take length of size_t.
6451         (_cpp_unaligned_alloc): New.
6452         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6453         (struct cpp_reader): Remove ident_pool.  Add u_buff.
6454         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6455         (cpp_destroy): Destroy u_buff, not ident_pool.
6456         * cpplex.c (parse_number, parse_string, save_comment,
6457         cpp_token_as_text): Update to use the unaligned buffer.
6458         (new_buff): Make unsigned.
6459         (_cpp_unaligned_alloc): New.
6460         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6461         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6462         Similarly.
6463         (collect_args): Make unsigned.
6464
6465 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
6466
6467         * cpplex.c (cpp_output_token): Use a putc loop for
6468         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6469
6470         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6471         * configure, config.in: Regenerate.
6472         * system.h: Replace fwrite and fprintf with their unlocked
6473         variants if available.
6474
6475 2001-09-27  Richard Henderson  <rth@redhat.com>
6476
6477         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6478         in favour of .eh_frame.
6479
6480 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
6481
6482         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6483         to macros.
6484         (LIBCALL_VALUE): Likewise.
6485
6486 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6487
6488         * cpphash.h: Update comment.
6489         * cpplex.c: Update comments.
6490         (_cpp_can_paste): Remove.
6491         * cpplib.h (_cpp_can_paste): Remove.
6492         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6493         lexer rather than _cpp_can_paste.
6494
6495 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6496
6497         * doc/cppinternals.texi: Update.
6498
6499 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6500
6501         * cpphash.h (struct cpp_pool): Remove locks and locked.
6502         (struct cpp_context): Add member buff.
6503         (struct cpp_reader): Remove member argument_pool.
6504         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6505         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6506         * cpplex.c (chunk_suitable): Remove pool argument.
6507         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6508         (new_buff, _cpp_extend_buff): Update.
6509         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
6510         which buffer is returned.
6511         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6512         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6513         * cppmacro.c (lock_pools, unlock_pools): Remove.
6514         (push_ptoken_context): Take a _cpp_buff.
6515         (enter_macro_context): Pool locking removed.
6516         (replace_args): Use a _cpp_buff for the replacement list with
6517         arguments replaced.
6518         (push_token_context): Clear buff.
6519         (expand_arg): Use _cpp_pop_context.
6520         (_cpp_pop_context): Free a context's buffer, if any.
6521
6522 2001-09-26  DJ Delorie  <dj@redhat.com>
6523
6524         * c-typeck.c (digest_init): Check for sizeless arrays.
6525
6526 2001-09-26  Richard Henderson  <rth@redhat.com>
6527
6528         * optabs.c (init_one_libfunc): Create a dummy function type
6529         instead of using error_mark_node.
6530
6531 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6532
6533         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6534         _cpp_extend_buff, _cpp_free_buff): New.
6535         (struct cpp_reader): New member free_buffs.
6536         * cppinit.c (cpp_destroy): Free buffers.
6537         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6538         _cpp_extend_buff, _cpp_free_buff): New.
6539         * cpplib.h (struct cpp_options): Remove unused member.
6540         * cppmacro.c (collect_args): New.  Combines the old parse_arg
6541         and parse_args.  Use _cpp_buff for memory allocation.
6542         (funlike_invocation_p, replace_args): Update.
6543
6544 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
6545
6546         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6547
6548 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
6549
6550         * except.c (sjlj_mark_call_sites): Change address inside sequence.
6551
6552 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
6553
6554         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6555         glibc.
6556
6557 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
6558             Jim Wilson  <wilson@redhat.com>
6559
6560         * doc/install.texi (Specific, ia64-*-linux): Document.
6561
6562 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
6563
6564         * Makefile.in (cfgrtl.o): Add.
6565         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6566         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6567         free_aux_for_edge): Declare.
6568         * cfg.c
6569         (HAVE_return): Undefine.
6570         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6571         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6572         free_aux_for_edge): New global functions.
6573         (first_delete_block): New static variable.
6574         (init_flow): Clear first_delete_block.
6575         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6576          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6577          try_redirect_by_replacing_jump, last_loop_beg_note,
6578          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6579          delete_insn, delete_insn_chain, create_basic_block_structure,
6580          create_basic_block, flow_delete_block, compute_bb_for_insn,
6581          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6582          set_block_for_new_insns, split_block, merge_blocks_nomove,
6583          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6584          redirect_edge_and_branch, force_nonfallthru_and_redirect,
6585          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6586          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6587          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6588          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6589          purge_all_dead_edges): Move to ....
6590         * cfgrtl.c: New file; .... Here.
6591
6592         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6593         (reroder_basic_block): Use alloc_aux_for_blocks.
6594         * predict.c (estimate_bb_frequencies): Likewise; use
6595         alloc_aux_for_edges.
6596         * profile.c (compute_branch_probabilities): Likewise.
6597         (branch_prob): Likewise.
6598         * reg-stack.c (reg_to_stack): Likewise.
6599
6600         * emit-rtl.c (emit_insns_after): Never return NULL.
6601
6602         * basic-block.h (set_block_for_new_insns): Delete.
6603         * cfgrtl.c (set_block_for_new_insns): Delete.
6604
6605         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6606         calls when crossjumping.
6607
6608         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6609         * unroll.c (copy_loop_body): Use delete_insn.
6610
6611         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6612         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6613         keep_stack_depressed): Likewise.
6614         * gcse.c (cprop_cc0_jump): Likewise.
6615         * local-alloc.c (update_equiv_regs): Likewise.
6616         * loop.c (scan_loop, loop_delete_insns): Likewise.
6617         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6618         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6619         delete_output_reload, delete_address_reloads_1,
6620         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6621         Likewise.
6622         * sibcall.c (replace_call_placeholder): Likewise.
6623         * cse.c (cse_insn): Likewise.
6624
6625 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6626
6627         From Graham Stott  <grahams@redhat.com>
6628         (def_builtin): Only define builtins appropriate for target_flags.  All
6629         callers changed.
6630         (builtin_decsription): Add new field mask which is used to determine
6631         when to define the builtin via the macro def_builtin.
6632
6633         (bdesc_comi): Initialise new mask fields.
6634         (bdesc_2srg): Likewise.
6635         (bdesc_1arg): Likewise.
6636
6637         * config/i386/i386.c (ix86_init_builtins): Correct return type
6638         building v4hi_ftype_v4hi_int_int tree node.
6639         (ix86_expand_sse_comi): Fix typo swapping operands.
6640         Don't swap comparision condition, it is already swapped.
6641         (ix86_expand_sse_compare): Before swapping operands
6642         move operand 1 into new rtx and not the target rtx.
6643         Don't swap comparison condition, it is already swapped.
6644         Always check whether we need to create a new TARGET.
6645
6646         * config/i386/i386.md: (sse_comi) Fix typos.
6647         (sse_ucomi): Likewise.
6648         (cvtss2si): Fix operand 0 contraint.
6649         (cvttss2si): Likewise.
6650         (sse_unpckhps): Fix mode for operand 2.
6651         (sse_unpcklps): Likewise.
6652
6653 2001-09-25  Graham Stott  <grahams@redhat.com>
6654
6655         * sibcall.c (skip_copy_to_return_value): Tighten return value
6656         copy check.
6657
6658 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
6659
6660         * rs6000.c (lwa_operand): Address must be word aligned.
6661
6662 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6663
6664         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6665         number has been set.
6666         (type_hash_mark): Mark type itself.
6667
6668 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6669
6670         * c-lex.c (cb_def_pragma): Update.
6671         (c_lex): Update, and skip padding.
6672         * cppexp.c (lex, parse_defined): Update, remove unused variable.
6673         * cpphash.h (struct toklist): Delete.
6674         (union utoken): New.
6675         (struct cpp_context): Update.
6676         (struct cpp_reader): New members eof, avoid_paste.
6677         (_cpp_temp_token): New.
6678         * cppinit.c (cpp_create_reader): Update.
6679         * cpplex.c (_cpp_temp_token): New.
6680         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6681         (cpp_output_token): Don't print leading whitespace.
6682         (cpp_output_line): Update.
6683         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6684         do_include_common, do_line, do_ident, do_pragma,
6685         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6686         parse_assertion): Update.
6687         (get_token_no_padding): New.
6688         * cpplib.h (CPP_PADDING): New.
6689         (AVOID_LPASTE): Delete.
6690         (struct cpp_token): New union member source.
6691         (cpp_get_token): Update.
6692         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6693         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6694         replace_args, quote_string, stringify_arg, parse_arg, next_context,
6695         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6696         _cpp_backup_tokens, _cpp_create_definition): Update.
6697         (push_arg_context): Delete.
6698         (padding_token, push_token_context, push_ptoken_context): New.
6699         (make_string_token, make_number_token): Update, rename.
6700         (cpp_get_token): Update to handle tokens as pointers to const,
6701         and insert padding appropriately.
6702         * cppmain.c (struct printer): New member prev.
6703         (check_multiline_token): Constify.
6704         (do_preprocessing, cb_line_change): Update.
6705         (scan_translation_unit): Update to handle spacing.
6706         * scan-decls.c (get_a_token): New.
6707         (skip_to_closing_brace, scan_decls): Update.
6708         * fix-header.c (read_scan_file): Update.
6709
6710         * doc/cpp.texi: Update.
6711
6712 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6713
6714         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
6715         leak by passing malloc'ed pointer to reconcat, not concat.
6716
6717 2001-09-24  DJ Delorie  <dj@redhat.com>
6718
6719         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6720
6721 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
6722
6723         * flow.c (delete_dead_jumptables): Delete jumptable if the only
6724         reference is from the literal pool.
6725
6726 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
6727
6728         * doc/install.texi (Final install): Request additional information
6729         in mail about successful builds.
6730
6731 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6732
6733         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
6734         initial value of return pointer register instead of value in frame-20.
6735         Revise comments.
6736
6737 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6738
6739         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6740         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6741         the libcall if there isn't a referenced identifier for the symbol.
6742
6743 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6744
6745         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6746         non 64-bit machines.  Use these as a plabel for the trampoline.
6747         (TRAMPOLINE_SIZE): Adjust size for new words.
6748         (INITIALIZE_TRAMPOLINE): Initialize new words.
6749         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
6750         pointer to the plabel in the trampoline.
6751
6752 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6753
6754         * pa.c (function_arg): Pass floating arguments in both general and
6755         floating registers in indirect (dynamic) calls when generating code
6756         for the 32 bit ABI and the HP assembler.
6757
6758 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6759
6760         * doc/install.texi: Markup fixes.
6761         Use Solaris 2, SunOS 4 as appropriate.
6762         (Specific, *-*-solaris2*): Explain this.
6763         Unconditionally warn against /usr/ucb tools.
6764         Remove Sun as warning, obsolete.
6765         Move X11 header bug workaround here, update patches.
6766         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6767         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6768
6769 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
6770
6771         * errors.h (warning, error, fatal, internal_error): Don't mark
6772         with ATTRIBUTE_PRINTF_n.
6773         * toplev.h (internal_error, fatal_io_error, warning, error,
6774         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6775         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6776         Likewise.
6777
6778 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6779
6780         * function.c (pop_function_context_from): var_refs_queue
6781         and temp slots now in GC memory.
6782         (mark_function_status, free_after_compilation): Likewise;
6783         also struct function now in GC memory.
6784         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6785         (combine_temp_slots): Likewise.
6786         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6787         (prepare_function_start): Use GC memory for struct function.
6788         (mark_temp_slot): Deleted.
6789         (gcc_mark_struct_function): struct function now in GC memory.
6790
6791         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6792         code for division, not modulus.
6793
6794         * rtl.def (MEM): Remove obsolete part of comment.
6795
6796 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
6797
6798         * c-format.c (init_function_format_info): Check __builtin_printf
6799         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
6800         in gnu89 mode.
6801
6802 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6803
6804         * c-common.c (format_attribute_table): Remove decl.
6805         * tree.h (format_attribute_table, lang_attribute_table): New decls.
6806         (lang_attribute_common): Likewise.
6807
6808         * function.c (fix_lexical_address): Use set_mem_alias_set.
6809         (expand_function_start): Likewise.
6810         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6811
6812         * varasm.c (output_constant): Fix unused variable warning.
6813
6814         * attribs.c: New file, from c-common.c.
6815         (attribute_tables): Now four elements.
6816         (format_attribute_table, lang_attribute_common): New variables.
6817         (init_attributes): Reflect above changes.
6818         (handle_mode_attribute): Delete check for wider than uintmax.
6819         * c-common.c: Delete parts moved to attribs.c.
6820         (enum attrs): Deleted; unused.
6821         (c_format_attribute_table): New variable.
6822         (c_common_lang_init): Initialize format_attribute_table with it.
6823         * c-common.h (decl_attributes): Remove decl.
6824         * tree.h (decl_attribute): Move it to here.
6825         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
6826         (attribs.o): New rule.
6827
6828 2001-09-22  Andreas Jaeger  <aj@suse.de>
6829
6830         * builtins.c (c_getstr): Remove unused variable.
6831
6832 2001-09-21  Richard Henderson  <rth@redhat.com>
6833
6834         * reload1.c (reload): Use delete_insn instead of splatting
6835         NOTE_INSN_DELETED.
6836
6837 2001-09-21  Richard Henderson  <rth@redhat.com>
6838
6839         * reload.c (push_secondary_reload): Don't check for "=" in output
6840         constraint after ""->ALL_REGS check.
6841
6842 2001-09-21  Richard Henderson  <rth@redhat.com>
6843
6844         * predict.c (expected_value_to_br_prob): Use pc_set.
6845
6846         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
6847         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
6848
6849 2001-09-21  Richard Henderson  <rth@redhat.com>
6850
6851         * rtl.h (LCT_RETURNS_TWICE): New.
6852         * calls.c (emit_call_1): Set current_function_calls_setjmp for
6853         ECF_RETURNS_TWICE.
6854         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
6855         to ECF_RETURNS_TWICE.
6856         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
6857         call to setjmp.
6858
6859         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
6860
6861         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
6862         (JMP_BUF_SIZE): New.
6863
6864 2001-09-21  Richard Henderson  <rth@redhat.com>
6865
6866         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
6867         to R8_REGS.
6868
6869 2001-09-21  Richard Henderson  <rth@redhat.com>
6870
6871         * tree.def (FDESC_EXPR): New.
6872         * expr.c (expand_expr): Handle it.
6873         * varasm.c (initializer_constant_valid_p): Likewise.
6874         (output_constant): Likewise.
6875         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6876         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6877         (ASM_OUTPUT_FDESC): New.
6878         * doc/tm.texi: Document the new macros.
6879
6880 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6881
6882         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
6883         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
6884         once merging is complete.
6885
6886 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6887
6888         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
6889
6890 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6891
6892         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
6893         that would be invalid after a merge.
6894
6895 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
6896
6897         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6898         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6899         remove some labels.
6900         (flow_delete_insn): This one.
6901         (delete_insn_chain): Rename from ...; do not care labels.
6902         (flow_delete_insn_chain): ... this one.
6903         (flow_delete_block): Remove the insns one BB has been expunged.
6904         (merge_blocks_nomove): Likewise.
6905         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6906         updating BB boundaries.
6907         (tidy_fallthru_edge): Likewise.
6908         (commit_one_edge_insertion): Likewise.
6909         * cfgbuild.c (find_basic_block): Likewise.
6910         (find_basic_blocks_1): Likewise.
6911         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6912         (try_crossjump_to_edge): Likewise.
6913         (try_optimize_cfg): Likewise.
6914         * cse.c (delete_trivially_dead_insns): Likewise.
6915         * df.c (df_insn_delete): Likewise.
6916         * doloop.c (doloop_modify): Use delete_related_insns.
6917         * emit-rtl.c (try_split): Likewise.
6918         (remove_insn): Update BB boundaries.
6919         * expect.c (connect_post_landing_pads): Use delete_related_insns.
6920         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6921         updating BB boundaries.
6922         (propagate_block_delete_insn): Likewise.
6923         (propagate_block_delete_libcall): Likewise.
6924         * function.c (delete_handlers): Use delete_related_insns.
6925         (thread_prologue_and_epilogue_insns): Likewise.
6926         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6927         * genpeep.c (gen_peephole): Use delete_related_insns.
6928         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6929         BB boundaries.
6930         (find_cond_trap): Likewise.
6931         * integrate.c (save_for_inline): Use delete_related_insns.
6932         (copy_insn_list): Likewise.
6933         * jump.c (pruge_linie_number_notes): Likewise.
6934         (duplicate_loop_exit_test): Likewise.
6935         (delete_computation): Likewise.
6936         (delete_related_insn): Rename from ...; use delete_insn
6937         (delete_insn): ... this one.
6938         (redirect_jump): Use delete_related_insns.
6939         * loop.c (scan_loop): Likewise.
6940         (move_movables): Likewise.
6941         (find_and_verify_loops): Likewise.
6942         (check_dbra_loop): Likewise.
6943         * recog.c (peephole2_optimize): Likewise.
6944         * reg-stack.c (delete_insn_for_stacker): Remove.
6945         (move_for_stack_reg): Use delete_insn.
6946         * regmove.c (combine_stack_adjustments_for_block): Likewise.
6947         * reload1.c (delete_address_reloads): Use delete_related_insns.
6948         (fixup_abnormal_edges): Use delete_insn.
6949         * recog.c (emit_delay_sequence): Use delete_related_insns.
6950         (delete_from-delay_slot): Likewise.
6951         (delete_scheduled_jump): likewise.
6952         (optimize_skip): Likewise.
6953         (try_merge_delay_insns): Likewise.
6954         (full_simple_delay_slots): Likewise.
6955         (fill_slots_from_thread): Likewise.
6956         (relax_delay_slots): Likewise.
6957         (make_return_insns): Likewise.
6958         (dbr_schedule): Likewise.
6959         * rtl.h (delete_insn): Rename to delete_related_insns.
6960         (delete_insn, delete_insn_chain): New prototypes.
6961         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
6962         by df_insn_delete already.
6963         * ssa-dce.c (delete_insn_bb): Use delete_insn.
6964         * ssa.c (convert_from_ssa): Use delete_related_insns.
6965         * unroll.c (unroll_loop): Likewise.
6966         (calculate_giv_inc): Likewise.
6967         (copy_loop_body): Likewise.
6968
6969         * i386-protos.h (ix86_libcall_value, ix86_function_value,
6970         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6971         ix86_return_in_memory, ix86_function_value): Declare.
6972         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6973         new static valurables.
6974         (x86_64_reg_class): New enum
6975         (x86_64_reg_class_name): New array.
6976         (classify_argument, examine_argument, construct_container,
6977          merge_classes): New static functions.
6978         (optimization_options): Enable flag_omit_frame_pointer and disable
6979         flag_pcc_struct_return on 64bit.
6980         (ix86_libcall_value, ix86_function_value,
6981         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6982         ix86_return_in_memory, ix86_function_value): New global functions.
6983         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6984         (function_arg_advance): Handle x86_64 passing conventions.
6985         (function_arg): Likewise.
6986         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6987         (RETURN_IN_MEMORY): Move offline.
6988         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6989         (FUNCTION_VALUE_REGNO_P): New macro.
6990         (FUNCTION_ARG_REGNO_P): Move offline.
6991         (struct ix86_args): Add maybe_vaarg.
6992         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6993         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6994
6995 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
6996
6997         * s390.md: Changed attributes for scheduling.
6998         * s390.c: (s390_adjust_cost, s390_adjust_priority)
6999         Changed scheduling
7000
7001 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7002
7003         Table-driven attributes.
7004         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
7005         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
7006         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
7007         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
7008         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
7009         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
7010         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
7011         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
7012         * tree.h (struct tree_decl): Change machine_attributes to
7013         attributes.
7014         * doc/c-tree.texi: Document that all attributes are now attached
7015         to decls and types.
7016         * c-common.c (add_attribute, attrtab, attrtab_idx,
7017         default_valid_lang_attribute, valid_lang_attribute): Remove.
7018         (attribute_tables, attributes_initialized,
7019         c_common_attribute_table, default_lang_attribute_table): New
7020         variables.
7021         (handle_packed_attribute, handle_nocommon_attribute,
7022         handle_common_attribute, handle_noreturn_attribute,
7023         handle_unused_attribute, handle_const_attribute,
7024         handle_transparent_union_attribute, handle_constructor_attribute,
7025         handle_destructor_attribute, handle_mode_attribute,
7026         handle_section_attribute, handle_aligned_attribute,
7027         handle_weak_attribute, handle_alias_attribute,
7028         handle_no_instrument_function_attribute,
7029         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
7030         handle_no_limit_stack_attribute, handle_pure_attribute): New
7031         functions.
7032         (init_attributes, decl_attributes): Rewrite to implement
7033         table-driven attributes.
7034         * c-common.h (enum attribute_flags): Move to tree.h.
7035         * c-format.c (decl_handle_format_attribute,
7036         decl_handle_format_arg_attribute): Rename to
7037         handle_format_attribute and handle_format_arg_attribute.  Update
7038         for table-driven attributes.
7039         * c-common.h (decl_handle_format_attribute,
7040         decl_handle_format_arg_attribute): Remove prototypes.
7041         (handle_format_attribute, handle_format_arg_attribute): Add
7042         prototypes.
7043         * c-decl.c (grokdeclarator): Handle attributes nested inside
7044         declarators.
7045         * c-parse.in (setattrs, maybe_setattrs): Remove.
7046         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
7047         Update to handle nested attributes properly.
7048         (maybe_resetattrs, after_type_declarator,
7049         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
7050         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
7051         properly.
7052         (make_pointer_declarator): Update to handle nested attributes
7053         properly.
7054         * doc/extend.texi: Update documentation of limits of attributes
7055         syntax.  Warn about problems with attribute semantics in C++.
7056         * target.h (struct target): Remove valid_decl_attribute and
7057         valid_type_attribute.  Add attribute_table and
7058         function_attribute_inlinable_p.
7059         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
7060         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
7061         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
7062         Add.
7063         (TARGET_INITIALIZER): Update.
7064         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
7065         definition.
7066         (function_attribute_inlinable_p): New function.  Check for the
7067         presence of any machine attributes before using
7068         targetm.function_attribute_inlinable_p.
7069         (function_cannot_inline_p): Update.
7070         * Makefile.in (integrate.o): Update dependencies.
7071         * doc/tm.texi: Update documentation of target attributes and
7072         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
7073         * tree.c (default_valid_attribute_p, valid_machine_attribute):
7074         Remove.
7075         (default_target_attribute_table,
7076         default_function_attribute_inlinable_p): New.
7077         (lookup_attribute): Update comment to clarify handling of multiple
7078         attributes with the same name.
7079         (merge_attributes, attribute_list_contained): Allow multiple
7080         attributes with the same name but different arguments to appear in
7081         the same attribute list.
7082         * tree.h (default_valid_attribute_p): Remove prototype.
7083         (struct attribute_spec): New.
7084         (default_target_attribute_table): Declare.
7085         (enum attribute_flags): Move from c-common.h.  Add
7086         ATTR_FLAG_TYPE_IN_PLACE.
7087         (default_function_attribute_inlinable_p): Declare.
7088         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
7089         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7090         (TARGET_ATTRIBUTE_TABLE): Define.
7091         (vms_attribute_table): New.
7092         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
7093         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7094         (TARGET_ATTRIBUTE_TABLE): Define.
7095         (arc_attribute_table, arc_handle_interrupt_attribute): New.
7096         * config/arm/arm.c (arm_valid_type_attribute_p,
7097         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
7098         Remove.
7099         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7100         define.
7101         (TARGET_ATTRIBUTE_TABLE): Define.
7102         (arm_attribute_table, arm_handle_fndecl_attribute,
7103         arm_handle_isr_attribute): New.
7104         * config/avr/avr.c (avr_valid_type_attribute,
7105         avr_valid_decl_attribute): Remove.
7106         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
7107         define.
7108         (TARGET_ATTRIBUTE_TABLE): Define.
7109         (avr_attribute_table, avr_handle_progmem_attribute,
7110         avr_handle_fndecl_attribute): New.
7111         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
7112         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7113         (TARGET_ATTRIBUTE_TABLE): Define.
7114         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
7115         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
7116         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7117         (TARGET_ATTRIBUTE_TABLE): Define.
7118         (h8300_attribute_table, h8300_handle_fndecl_attribute,
7119         h8300_handle_eightbit_data_attribute,
7120         h8300_handle_tiny_data_attribute): New.
7121         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
7122         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
7123         Remove prototypes.
7124         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
7125         declarations.
7126         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
7127         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7128         define.
7129         (TARGET_ATTRIBUTE_TABLE): Define.
7130         (ix86_attribute_table, ix86_handle_cdecl_attribute,
7131         ix86_handle_regparm_attribute): New.
7132         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
7133         i386_pe_valid_type_attribute_p): Remove.
7134         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
7135         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
7136         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7137         (TARGET_ATTRIBUTE_TABLE): Define.
7138         (ia64_attribute_table): New.
7139         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
7140         interrupt_ident2, model_ident1, model_ident2): Remove.
7141         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7142         (TARGET_ATTRIBUTE_TABLE): Define.
7143         (init_idents): Update.
7144         (m32r_attribute_table, m32r_handle_model_attribute): New.
7145         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
7146         Remove.
7147         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7148         (TARGET_ATTRIBUTE_TABLE): Define.
7149         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
7150         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
7151         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7152         (TARGET_ATTRIBUTE_TABLE): Define.
7153         (mcore_attribute_table, mcore_handle_naked_attribute): New.
7154         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
7155         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7156         (TARGET_ATTRIBUTE_TABLE): Define.
7157         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
7158         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
7159         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7160         (TARGET_ATTRIBUTE_TABLE): Define.
7161         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
7162         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
7163         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7164         (TARGET_ATTRIBUTE_TABLE): Define.
7165         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
7166         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7167         New.
7168         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
7169         Remove.
7170         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
7171         (TARGET_ATTRIBUTE_TABLE): Define.
7172         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
7173         New.
7174         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
7175         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7176         (TARGET_ATTRIBUTE_TABLE): Define.
7177         (v850_attribute_table, v850_handle_interrupt_attribute,
7178         v850_handle_data_area_attribute): New.
7179         * config/v850/v850-c.c (mark_current_function_as_interrupt):
7180         Return void.  Call decl_attributes instead of
7181         valid_machine_attribute.
7182
7183 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
7184
7185         * sh-protos.h (sh_pr_n_sets): Declare.
7186         * sh.c (calc_live_regs): If the initial value for PR has been copied,
7187         look at the copy to determine if PR needs to be saved.
7188         sh_pr_n_sets: New function.
7189         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
7190         (ALLOCATE_INITIAL_VALUE): Define.
7191
7192         * sh.c (initial_elimination_offset):
7193         Fix RETURN_ADDRESS_POINTER_REGNUM case.
7194
7195 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
7196
7197         * integrate.c (allocate_initial_values): New function.
7198         * integrate.h (allocate_initial_values): Declare.
7199         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
7200         here...
7201         * reload1.c (reload): And initialization of reg_equiv_memory_loc
7202         from here...
7203         * toplev.c (rest_of_compilation): To here.
7204         Call allocate_initial_values.
7205         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
7206
7207 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7208
7209         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
7210
7211 2001-09-20  DJ Delorie  <dj@redhat.com>
7212
7213         * c-typeck.c (really_start_incremental_init): Discriminate
7214         between zero-length arrays and flexible arrays.
7215         (push_init_level): Detect zero-length arrays and handle them
7216         like fixed-sized arrays.
7217         * expr.c (store_constructor): Handle zero-length arrays and
7218         flexible arrays correctly.
7219         * doc/extend.texi: Update zero-length array notes.
7220
7221 2001-09-20  Jim Wilson  <wilson@redhat.com>
7222
7223         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
7224         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
7225         for issue port conflicts.
7226         (cycle_end_fill_slots): TYPE_L instructions take two slots.
7227
7228 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
7229
7230         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
7231         on ia64.
7232
7233 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7234
7235         * fold-const.c (hashtab.h): Include.
7236         (int_const_binop): Remove FORSIZE arg and compute from type; all
7237         callers changed.
7238         Call size_int_type_wide for all single-word constants.
7239         (size_htab_hash, size_htab_eq): New functions.
7240         (size_int_type_wide): Rework to use hash table.
7241         * ggc-common.c (hashtab.h): Include.
7242         (struct d_htab_root): New struct.
7243         (d_htab_roots): New variable.
7244         (ggc_add_deletable_htab, ggc_htab_delete): New functions
7245         (ggc_mark_roots): Handle deletable htabs.
7246         * ggc-page.c (ggc_marked_p): New function.
7247         * ggc-simple.c (ggc_marked_p): Likewise.
7248         * ggc.h: Reformatting throughout.
7249         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
7250         * tree.c (init_obstacks): Make type_hash_table a deletable root.
7251         (type_hash_add): Allocate struct type_hash from GC memory.
7252         (mark_hash_entry, mark_type_hash): Deleted.
7253         (type_hash_marked_p, type_hash_mark): New functions.
7254         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
7255
7256 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
7257
7258         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
7259         than SImode.
7260
7261 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7262
7263         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
7264         array-too-large test for signed sizetype.
7265
7266 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7267
7268         * i386.md (indirect_jump): Allow Pmode operand.
7269         (tablejump): LIkewise; perform expansion to 64bit mode.
7270         * i386.c (symbolic_operand): Allow 64bit PIC references.
7271         (pic_symbolic_operand): Likewise.
7272         (ix86_find_base_term): Strip the 64bit PIC references.
7273         (legitimate_pic_address_disp_p): Handle 64bit PIC.
7274         (legitimize_pic_address): Likewise.
7275         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
7276         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
7277
7278 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
7279
7280         * stringpool.c (get_identifier_with_length): New function.
7281         * tree.h (get_identifier_with_length): New prototype.
7282
7283 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
7284             David Edelsohn  <edelsohn@gnu.org>
7285
7286         Revert:
7287         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
7288         already sign-extended.
7289
7290         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
7291         * config/rs6000/rs6000.c (logical_operand): Always compare op as
7292         HOST_WIDE_INT.
7293         (rs6000_emit_set_long_const): Avoid unnecessary shift.
7294         (output_profile_hook): Declare label_name const.
7295         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
7296         to match constraints.
7297
7298 2001-09-19  Stan Shebs  <shebs@apple.com>
7299
7300         * alias.c: Fix typos in comments.
7301         * sched-rgn.c (init_ready_list): Ditto.
7302         * unwind-dw2.c (uw_frame_state_for): Ditto.
7303         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
7304         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
7305         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
7306
7307 2001-09-19  Richard Henderson  <rth@redhat.com>
7308
7309         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
7310         to the exit block.
7311         * Makefile.in (cfg.o): Depend on TM_P_H.
7312
7313 2001-09-19  Richard Henderson  <rth@redhat.com>
7314
7315         * config/alpha/alpha.c (local_symbol_p): Split out from ...
7316         (local_symbolic_operand): ... here.
7317         (small_symbolic_operand): Check mode.
7318         (global_symbolic_operand): New.
7319         (input_operand): Reject symbolics if explicit relocs.
7320         (call_operand): Tidy.
7321         (alpha_legitimize_address): Use movdi_er_high_g.
7322         (alpha_expand_mov): Likewise.
7323         * config/alpha/alpha-protos.h: Update.
7324         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7325         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
7326         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
7327         (UNSPECV_LDGP2): Remove.
7328         (all call patterns): Use 's' not 'i' for symbolic constraint.
7329         (call_osf call_value_osf): Use call_operand.
7330         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
7331         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
7332         (prologue_ldgp_1_er): Remove.
7333         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
7334         (builtin_setjmp_receiver_er patterns): Use them.
7335         (exception_receiver_er): Likewise.
7336
7337 2001-09-19  Richard Henderson  <rth@redhat.com>
7338
7339         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
7340
7341         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
7342         and NON_LOCAL_GOTO notes.
7343         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
7344         copy over CALL_INSN_FUNCTION_USAGE.
7345
7346 2001-09-18  Catherine Moore  <clm@redhat.com>
7347
7348         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
7349         Define as 0.
7350
7351 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
7352
7353         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
7354         new-style tm_file specification.  Specify correct tm_p_file,
7355         md_file, and out_file for s390x.
7356
7357         * config/s390/linux.h, linux64.h:  Don't include other target
7358         macro header files.  Now handled via tm_file.
7359
7360         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7361         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7362         are defined before use.
7363
7364 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
7365
7366         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7367         code generation only for Gnu assembler.
7368
7369 2001-09-18  Catherine Moore  <clm@redhat.com>
7370
7371         * config/stormy16 (LIB_SPEC): Remove -lnosys.
7372
7373 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
7374
7375         * config/mips/mips.c (mips_frame_set): New.
7376         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7377         a parallel frame-related expression with a set for each register.
7378
7379 2001-09-18  Philip Blundell  <philb@gnu.org>
7380
7381         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7382         header files.
7383
7384 2001-09-17  Dale Johannesen  <dalej@apple.com>
7385
7386         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7387         * config/rs6000/aix.h (FIXED_R2): Define.
7388         * config/rs6000/darwin.h (FIXED_R2): Define.
7389         * config/rs6000/sysv4.h (FIXED_R2): Define.
7390
7391 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
7392
7393         * except.c (dw2_build_landing_pads): New local
7394         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
7395         barrier after clobbers.  Fixes c++/4012.
7396
7397 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7398
7399         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7400
7401 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7402
7403         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7404         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7405
7406 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7407
7408         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7409         alloca/strcpy.
7410
7411 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7412
7413         * cpphash.h (_cpp_lex_direct): New.
7414         * cpplex.c (_cpp_lex_token): Update.
7415         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7416         and increment that pointer.
7417         * cppmacro.c (alloc_expansion_token): New.
7418         (lex_expansion_token): Lex macro expansion directly into
7419         macro storage.
7420
7421 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
7422
7423         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7424
7425 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
7426
7427         * basic-block.h (free_bb_for_insn): Declare.
7428         * bb-reorder.c (label_for_bb): Use block_label.
7429         (emit_jump_to_block_after): Remove.
7430         (insert_intra_1): Do not update block_for_insn.
7431         (insert_inter_bb_scope_notes): Likewise; update bb->end
7432         * cfg.c (free_bb_for_insn): New.
7433         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7434         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7435         (commit_one_edge_insertion): Likewise.
7436         (commit_one_edge_insertion): Do not update BB boundary.
7437         (commit_edge_insertions): Do not call compute_bb_for_insn.
7438         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7439         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7440         (merge_blocks_move_successor_nojumps): Likewise.
7441         (try_crossjump_to_edge): Do not update block_for_insn.
7442         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7443         * df.c (df_pattern_emit_later): Do not update BB boundary.
7444         (df_jump_pattern_emit_after): Likewise.
7445         (df_insn_move_before): Use emit_insn_before.
7446         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7447          properly.
7448         (add_insn_after, add_insn_before, emit_insns_after): Update BB
7449         boundaries and basic_block_for_insn.
7450         (reorder_insns_nobb): Rename from reorder_insns.
7451         (reorder_insns): New.
7452         (emit_block_insn_before, emit_block_insn_after): Kill.
7453         * flow.c (check_function_return_warnings): Do not call
7454         compute_bb_for_insn; Do not free basic_block_for_insn.
7455         (attempt_auto_inc): Do not update basic_block_for_insn.
7456         * function.c (emit_return_into_block): Likewise;
7457         do not update BB boundaries.
7458         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7459         (insert_insn_end_bb): Use emit_insn_before; Likewise.
7460         (pre_insert_copy_insn): Likewise.
7461         (update_ld_motion_notes): Likewise.
7462         (insert_insn_start_bb): Likewise.
7463         (replace_store_insn): Likewise.
7464         * ifcvt.c (noce_process_if_block): Likewise.
7465         (if_convert): Do not call compute_bb_for_insn.
7466         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7467         Use emit_insn_before and emit_insn_after.
7468         * recog.c (split_all_insns): Do not update BB boundaries;
7469         Do not call compute_bb_for_insn.
7470         (peephole2_optimize): Do not update BB boundaries.
7471         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7472         emit_insn_before.
7473         (emit_swap_insn): Likewise.
7474         (convert_regs_1): Likewise.
7475         * reload1.c (reload): Call compute_bb_for_insn.
7476         * rtl.h (reorder_insns_nobb): Declare.
7477         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7478         * toplev.c (rest_of_compilation): Call free_bb_for_insn
7479         at places CFG is invalidated; do not call compute_bb_for_insn.
7480
7481         * cfg.c (expunge_block): Invalidate BB structure.
7482
7483         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7484         array.
7485
7486         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7487
7488 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7489
7490         * cpphash.h (_cpp_lex_token): Update prototype.
7491         * cpplex.c (_cpp_lex_token): New prototype.
7492         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7493         lex_macro_node, read_flag, do_pragma_poison): Update.
7494         * cppmacro.c (cpp_get_token, parse_params,
7495         lex_expansion_token): Update.
7496
7497 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7498
7499         * cppmain.c (scan_translation_unit): Don't worry about
7500         putting a space after hashes.
7501         * cpplib.c (directive_diagnostics): New.
7502         (_cpp_handle_directive): Update to use directive_diagnostics.
7503         (run_directive): Don't toggle prevent_expansion.
7504         (do_line): Backup in case of the line extension.
7505         * cpplib.h (cpp_lexer_pos): Remove.
7506         * cppmacro.c (_cpp_create_definition): Precede a leading #
7507         with whitespace.
7508
7509 2001-09-15  Richard Henderson  <rth@redhat.com>
7510
7511         * c-typeck.c (comptypes): Handle zero-length arrays properly.
7512
7513 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7514
7515         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7516
7517 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7518
7519         PR preprocessor/3571
7520         * tradcpp.c (handle_directive): Skip non-vertical space.
7521
7522 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7523
7524         * cppmain.c (setup_callbacks): Set line callback only
7525         if outputting preprocessed source.
7526
7527 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7528
7529         * collect2.c (main): Const-ification.
7530         * gcc.c (translate_options, process_command): Use xstrdup in
7531         lieu of xmalloc/strcpy.
7532         (main): Use concat in lieu of xmalloc/strcpy/strcat.
7533
7534 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7535
7536         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7537         example.
7538
7539 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7540
7541         * scan-decls.c (scan_decls): Fix typo.
7542
7543 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7544
7545         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7546         Split mlstring_pos into mls_line and mls_col.
7547         * cppinit.c (cpp_create_reader): Initialize line to 1.
7548         (cpp_destroy): Free tokenruns.
7549         (push_include): Don't update lexer_pos.
7550         * cpplex.c (unterminated, parse_string): Update.
7551         (lex_token): Don't update lexer_pos, update.
7552         * cpplib.c (if_stack): Save line instead of line + col.
7553         (start_directive, _cpp_do__Pragma, do_else, do_elif,
7554         push_conditional, _cpp_pop_buffer): Update.
7555         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7556         (_cpp_create_definition): Update.
7557
7558 2001-09-15  Eric Christopher  <echristo@redhat.com>
7559
7560         * config/mips/abi64.h: Add support for MEABI.
7561
7562 2001-09-15  Eric Christopher  <echristo@redhat.com>
7563
7564         * config/mips/mips.md: Add unspec #2.
7565         (reload_indi): Use.
7566         (reload_outdi): Ditto.
7567         (reload_outsi): Ditto.
7568         (HILO_delay): New.
7569
7570 2001-09-15  Eric Christopher  <echristo@redhat.com>
7571             Jason Eckhardt  <jle@redhat.com>
7572
7573         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7574         * config/mips/isa32-linux.h: New file.
7575         * config/mips/isa3264.h: Ditto.
7576         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7577         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7578         (output_block_mode): Support MEABI.
7579         (function_arg): Ditto. Fix floating point arg passing.
7580         (mips_va_start): Ditto.
7581         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7582         processors.
7583         (mips_asm_file_start): Add new section to pass abi to gdb.
7584         (function_arg_pass_by_reference): Support MEABI.
7585         (mips_parse_cpu): Support mips32 and mips64 processors.
7586         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7587         TARGET_MIPS5KC.  Support isa32 and isa64.
7588         (processor_type): Add r4kc, r5kc, r20kc.
7589         (GENERATE_MULT3_SI): New.
7590         (GENERATE_MULT3_DI): Ditto.
7591         (GENERATE_MULT3): Remove.
7592         (ISA_HAS_64BIT_REGS): Add isa == 64.
7593         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7594         (ISA_HAS_MADD_MSUB): New.
7595         (ISA_HAS_CLZ_CLO): Ditto.
7596         (ISA_HAS_DCLZ_DCLO): Ditto.
7597         (ABI_GAS_ASM_SPEC): New.
7598         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7599         (ASM_SPEC): Ditto.
7600         (LINK_SPEC): Ditto.
7601         (SUBTARGET_CC1_SPEC): Ditto.
7602         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7603         (PAD_VARARGS_DOWN): Support MEABI.
7604         (HARD_REGNO_NREGS): Move to mips.c.
7605         (ASM_OUTPUT_IDENT): Add #undef.
7606         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7607         (mulsi3): Use GENERATE_MULT3_SI.
7608         (mulsi3_mult3): Ditto.  Support mips32, mips64.
7609         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7610         (mul_sub_si): New pattern.
7611         (unnamed splitters): New.
7612         (muldi3): Use GENERATE_MULT3_DI.
7613         (muldi3_internal2): Ditto.
7614         (movdicc): Support mips32.
7615         * config/mips/t-isa3264: New file.
7616
7617 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
7618
7619         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7620         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7621         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7622
7623         * reorg.c (fill_slots_from_thread): After call to
7624         steal_delay_list_from_target, update own_thread as new_thread may
7625         have branched.
7626
7627 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7628
7629         * cpperror.c (print_location): Take line and column, for
7630         default positioning use the previously lexed token.
7631         (_cpp_begin_message): Take line and column.
7632         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7633         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7634         * cpphash.h (_cpp_begin_message): Update prototype.
7635         * cppinit.c (push_include): Don't set output line.
7636         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7637         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7638         (do_pragma): Kludge for front ends.  Don't expand macros at all.
7639         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7640         (struct cpp_token): Remove output_line.
7641         (struct cpp_callbacks): New member line_change.
7642         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7643         cpp_get_token): Preserve BOL flag.
7644         (cpp_get_line): Remove.
7645         (_cpp_backup_tokens): Remove useless abort().
7646         * cppmain.c (cb_line_change): New.
7647         (scan_translation_unit): Don't worry about starting new lines here.
7648         * scan-decls.c (scan_decls): Update.
7649         * c-lex.c (c_lex, init_c_lex): Update.
7650         (cb_line_change, src_lineno): New.
7651
7652 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
7653
7654         * tree.c (append_random_chars): Generate the random
7655         characters in a reproducable fashion.
7656
7657 2001-09-14  Richard Henderson  <rth@redhat.com>
7658
7659         * config/i386/i386.c (internal_label_prefix): New.
7660         (internal_label_prefix_len): New.
7661         (override_options): Set them.
7662         (local_symbolic_operand): New.
7663         (legitimate_pic_address_disp_p): Use it.
7664         (legitimize_pic_address): Likewise.
7665
7666 2001-09-14  Marc Espie <espie@openbsd.org>
7667
7668         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
7669         correctly.
7670
7671 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7672
7673         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7674         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7675
7676 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
7677
7678         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7679         invocation of SUBREG_REGNO_OFFSET.
7680
7681         * haifa-sched.c: Fix typo in FSF copyright statement.
7682         * sched-deps.c: Fix typo in FSF copyright statement.
7683         * sched-ebb.c: Fix typo in FSF copyright statement.
7684         * sched-rgn.c: Fix typo in FSF copyright statement.
7685         * sched-vis.c: Fix typo in FSF copyright statement.
7686
7687         * config.gcc: Move inclusion of arm elf specific header files
7688         from the files themselves into the tm_file variable.  Make
7689         sure that elfos.h is included before target specific elf
7690         headers.
7691         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7692         already defined.
7693         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7694         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7695         ASM_OUTPUT_CASE_LABEL): Protect definition.
7696         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7697         not already defined.
7698         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7699         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7700         Remove duplicate definition.
7701         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7702         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7703         (RDATA_SECTION_FUNCTION): Remove redundant definition.
7704         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7705         Remove inclusion of arm/elf.h.
7706         * config/arm/unknown-elf.h: as for conix-elf.h.
7707         (STARTFILE_SPEC): Include crti.o and crtn.o.
7708         * config/arm/linux-elf.h: as for conix-elf.h.
7709         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7710         * config/arm/strongarm-elf.h: Remove inclusion of
7711         unknown-elf.h.
7712         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7713         * config/arm/unknown-elf-oabi.h: Remove inclusion of
7714         unknown-elf.h and elf.h.
7715         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7716         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7717         ASM_WEAKEN_LABEL): Remove redundant definition.
7718         * config/arm/elf.h: Test for inclusion of elfos.h
7719         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7720         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7721         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7722         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7723         redundant definition.
7724         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7725         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7726         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7727         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7728         Add rules to build crti.o and crtn.o
7729         * crti.asm: New file.
7730         * crtn.asm: New file.
7731
7732 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7733
7734         * c-parse.in (_yylex): Use _cpp_backup_tokens.
7735         * cpphash.h (struct tokenrun): Add prev.
7736         (struct lexer_state): Remove bol.
7737         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7738         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7739         : Remove.
7740         * cppinit.c (cpp_create_reader): Don't set bol.
7741         (cpp_destroy): Don't free lookaheads.
7742         * cpplex.c (lex_directive): Remove.
7743         (next_tokenrun): Update.
7744         (_cpp_lex_token): Clean up logic.
7745         (lex_token): Update to return a pointer to lexed token, since it
7746         can move to the start of the buffer.  Simpify newline handling.
7747         * cpplib.c (SEEN_EOL): Update.
7748         (skip_rest_of_line): Remove lookahead stuff.
7749         (end_directive): Line numbers are already incremented.  Revert
7750         to start of lexed token buffer if we can.
7751         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7752         parse_answer): Use _cpp_backup_tokens.
7753         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7754         instead.  Don't check for EOL.
7755         (do_include_common, do_line, do_pragma_system_header): Use
7756         skip_rest_of_line.
7757         * cpplib.h (BOL, _cpp_backup_tokens): New.
7758         * cppmacro.c (save_lookahead_token, take_lookahead_token,
7759         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7760         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7761         (builtin_macro): Don't use cpp_get_line.
7762         (cpp_get_line): Short term kludge.
7763         (parse_arg): Handle directives in arguments here.  Back up when
7764         appropriate.  Store EOF at end of argument list.
7765         (funlike_invocation_p): Use _cpp_backup_tokens.
7766         (push_arg_context): Account for EOF at end of list.
7767         (cpp_get_token): Remove lookahead stuff.  Update.
7768
7769 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7770
7771         * c-parse.in (yyerror): Const-ification and/or static-ization.
7772         * c-typeck.c (push_member_name): Likewise.
7773         * collect2.c (main): Likewise.
7774         * dbxout.c (dbxout_parms): Likewise.
7775         * diagnostic.c (format_with_decl): Likewise.
7776         * dwarf2out.c (output_ranges): Likewise.
7777         * dwarfout.c (fundamental_type_code): Likewise.
7778         * except.c (dw2_output_call_site_table): Likewise.
7779         * gcc.c (do_spec_1): Likewise.
7780         * genopinit.c (optabs): Likewise.
7781         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7782         gen_declaration_1, handle_impent): Likewise.
7783         * protoize.c (default_include, in_system_include_dir, abspath):
7784         Likewise.
7785         * sched-vis.c (visualize_stall_cycles): Likewise.
7786         * sdbout.c (plain_type_1, sdbout_end_function,
7787         sdbout_end_epilogue): Likewise.
7788         * varasm.c (decode_reg_name): Likewise.
7789
7790         * 1750a.c (mod_regno_adjust): Likewise.
7791         * alpha.c (alpha_write_one_linkage,
7792         unicosmk_output_default_externs): Likewise.
7793         * arm.c (arm_condition_codes): Likewise.
7794         * arm.h (arm_condition_codes): Likewise.
7795         * avr.c (output_movsisf, encode_section_info): Likewise.
7796         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7797         Likewise.
7798         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7799         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7800         * m88k.c (output_function_profiler): Likewise.
7801         * mips.c (mips_output_conditional_branch): Likewise.
7802         * ns32k.c (ns32k_out_reg_names): Likewise.
7803         * ns32k.h (ns32k_out_reg_names): Likewise.
7804         * pj.c (pj_output_rval): Likewise.
7805         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7806         * sparc.c (sparc_flat_function_prologue,
7807         sparc_flat_function_epilogue): Likewise.
7808
7809 2001-09-13  Markus Werle <numerical.simulation@web.de>
7810             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7811
7812         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7813         Aachen University of Technology".
7814
7815 2001-09-13  Andreas Schwab  <schwab@suse.de>
7816
7817         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
7818         C99.
7819
7820 2001-09-13  Richard Henderson  <rth@redhat.com>
7821
7822         * config/alpha/alpha.c (small_symbolic_operand): New.
7823         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
7824         (some_operand, input_operand): Don't handle HIGH.
7825         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
7826         (alpha_expand_mov): Likewise.
7827         (print_operand) [H]: Just print HIGH symbol.
7828         (print_operand_address): Handle small data.
7829         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
7830         (TARGET_SWITCHES): Add -msmall-data/large-data.
7831         (PIC_OFFSET_TABLE_REGNUM): New.
7832         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
7833         (PREDICATE_COES): Update.
7834         * config/alpha/alpha.md (adddi_er_high): New.
7835         (adddi_er_low): Handle small data.
7836         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
7837         prefer .sdata to .rodata.
7838         (SELECT_RTX_SECTION): Likewise.
7839
7840 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
7841
7842         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
7843         defining __size_t and leaving size_t undefined.
7844
7845 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
7846
7847         * basic-block.h (expunge_block): Declare.
7848         * cfg.c (expunge_block): Remove static declaration.
7849
7850 2001-09-12  Richard Henderson  <rth@redhat.com>
7851
7852         * integrate.c (copy_insn_list): Copy label name from
7853         NOTE_INSN_DELETED_LABEL.
7854
7855 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7856
7857         * c-common.c (c_tree_code_name): Const-ification.
7858         * c-decl.c (c_decode_option): Likewise.
7859         * c-typeck.c (warn_for_assignment): Likewise.
7860         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
7861         Likewise.
7862         * cppinit.c (output_deps): Likewise.
7863         * dependence.c (dependence_string, direction_string): Likewise.
7864         * dwarf2out.c (output_ranges): Likewise.
7865         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
7866         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
7867         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
7868         standard_startfile_prefix, standard_startfile_prefix_1,
7869         standard_startfile_prefix_2, tooldir_base_prefix,
7870         standard_bindir_prefix, find_a_file): Likewise.
7871         * genattrtab.c (make_length_attrs): Likewise.
7872         * gencheck.c (tree_codes): Likewise.
7873         * genemit.c (gen_split): Likewise.
7874         * genrecog.c (special_mode_pred_table): Likewise.
7875         * graph.c (graph_ext): Likewise.
7876         * protoize (default_include): Likewise.
7877         * reload.c (reload_when_needed_name): Likewise.
7878         * sched-vis.c (visualize_stall_cycles): Likewise.
7879         * tlink.c (recompile_files): Likewise.
7880         * toplev.c (decode_g_option): Likewise.
7881         * tradcpp.c (output_deps): Likewise.
7882         * varasm.c (decode_reg_name): Likewise.
7883
7884         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
7885         Const-ification.
7886         * arm.md: Likewise.
7887         * avr.c (avr_regnames, encode_section_info): Likewise.
7888         * c4x.c (float_reg_names): Likewise.
7889         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
7890         * elfos.h (const_section): Likewise.
7891         * i386.c (ix86_comp_type_attributes): Likewise.
7892         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
7893         * ia64/aix.h (UNIQUE_SECTION): Likewise.
7894         * ia64.c (type_names): Likewise.
7895         * m68hc11.c (reg_class_names): Likewise.
7896         * m88k.c (m_options): Likewise.
7897         * mips.c (mips_output_conditional_branch, mips_unique_section):
7898         Likewise.
7899         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7900         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7901         ultra_code_names): Likewise.
7902         * sparc.h (OVERRIDE_OPTIONS): Likewise.
7903
7904 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7905
7906         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7907         Use --fatal-warnings option for gas.
7908         * configure: Rebuilt.
7909
7910 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7911
7912         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7913
7914 2001-09-11  Jim Wilson  <wilson@redhat.com>
7915
7916         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7917
7918 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7919
7920         * builtins.c (c_strlen): Treat an offset too large for a
7921         HOST_WIDE_INT as out of range.
7922
7923 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
7924
7925         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7926         (EDGE_CRITICAL_P): New predicate.
7927         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7928         handling.
7929         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7930         (dump_edge_info): Remove "crit".
7931         * cfganal.c (mark_critical_edges): Kill.
7932         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7933         * cfgcleanup.c (cleanup_cfg): Likewise.
7934         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7935         (find_spanning_tree): Likewise.
7936         * reg-stack.c (convert_regs_1): Likewise.
7937         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7938
7939         * basic-block.h (create_basic_block_structure): New.
7940         (create_basic_block): Update prototype.
7941         (force_nonfallthru): New.
7942         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7943         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7944         handle updating of block_for_insn, creating of empty BBs and BBs at
7945         the end of INSN chain.
7946         (create_basic_block): New function.
7947         (split_block): Use create_basic_block.
7948         (force_nonfallthru_and_redirect): Break out from ...; cleanup
7949         (redirect_edge_and_branch_force): ... here.
7950         (force_nonfallthru): New.
7951         (split_edge): Rewrite to use force_nonfallthru and create_block.
7952         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7953         (find_basic_blocks): Free basic_block_for_insn.
7954         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7955
7956         * cfg.c: Fix formating.
7957         * cfgcleanup.c: Fix formating.
7958         (merge_blocks, tail_recursion_label_p): Return bool.
7959         (merge_blocks_move_predecessor_nojumps,
7960          merge_blocks_move_successor_nojumps): Return void.
7961
7962 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
7963
7964         * configure.in: Check whether assembler supports section merging.
7965         * config.in: Rebuilt.
7966         * configure: Rebuilt.
7967         * varasm.c (variable_section, output_constant_pool): Pass alignment
7968         to SELECT_SECTION and SELECT_RTX_SECTION.
7969         (mergeable_string_section): New.
7970         (mergeable_constant_section): New.
7971         (default_elf_asm_named_section): Output SECTION_MERGE and
7972         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7973         * output.h (mergeable_string_section): New.
7974         (mergeable_constant_section): New.
7975         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7976         * toplev.c (flag_merge_constants): New.
7977         (f_options): Add -fmerge-constants and -fmerge-all-constants
7978         options.
7979         (toplev_main): Default to -fno-merge-constants if not optimizing.
7980         * flags.h (flag_merge_constants): Add extern.
7981         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7982         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7983         argument.
7984         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7985         Define if assembler has working .subsection -1 support.
7986         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7987         Put constant into special SHF_MERGE sections if the linker should
7988         attempt to merge duplicates.
7989         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7990         macro argument.
7991         Put constant into special SHF_MERGE sections if the linker should
7992         attempt to merge duplicates.
7993         * config/alpha/elf.h: Likewise.
7994         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7995         has working .subsection -1 support.
7996         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7997         SELECT_SECTION.
7998         * config/svr3.h: Likewise.
7999         * config/darwin.h: Likewise.
8000         * config/arm/aof.h: Likewise.
8001         * config/arm/linux-elf.h: Likewise.
8002         * config/avr/avr.h: Likewise.
8003         * config/c4x/c4x.h: Likewise.
8004         * config/d30v/d30v.h: Likewise.
8005         * config/i386/dgux.h: Likewise.
8006         * config/i386/osfrose.h: Likewise.
8007         * config/i386/sco5.h: Likewise.
8008         * config/i386/svr3gas.h: Likewise.
8009         * config/ia64/aix.h: Likewise.
8010         * config/m32r/m32r.h: Likewise.
8011         * config/m68k/m68k.h: Likewise.
8012         * config/m88k/dgux.h: Likewise.
8013         * config/m88k/m88k.h: Likewise.
8014         * config/mcore/mcore-pe.h: Likewise.
8015         * config/mips/mips.h: Likewise.
8016         * config/pa/pa.h: Likewise.
8017         * config/pa/pa-linux.h: Likewise.
8018         * config/romp/romp.h: Likewise.
8019         * config/rs6000/sysv4.h: Likewise.
8020         * config/rs6000/xcoff.h: Likewise.
8021         * config/s390/linux.h: Likewise.
8022         * config/sparc/sparc.h: Likewise.
8023         * config/sparc/sysv4.h: Likewise.
8024         * config/stormy16/stormy16.h: Likewise.
8025         * config/v850/v850.h: Likewise.
8026         * config/vax/vms.h: Likewise.
8027         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
8028         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8029         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
8030         default_elf_asm_named_section for SHF_MERGE sections.
8031
8032 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8033
8034         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
8035         is OK.
8036
8037 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
8038
8039         * c-common.c (split_specs_attrs): Allow for empty attributes with
8040         empty TREE_PURPOSE.  Fixes PR c/4294.
8041
8042 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
8043
8044         * basic-block.h (cached_make_edge, make_single_succ): New.
8045         (make_edge): Remove first parameter.
8046         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
8047         * cfg.c (cached_make_edge): Rename from make_edge; return newly
8048         created edge; use obstack allocation.
8049         (make_edge, make_single_succ_edge): New.
8050         (first_removed_edge): New static variable.
8051         (init_flow): Initialize first_removed_edge and n_edges.
8052         (clear_edges): Use remove_edge.
8053         (flow_delete_block): Likewise.
8054         (remove_edge): Add removed edges to the removed edges list.
8055         (split_block, redirect_edge_and_branch_force, split_edge):
8056         Use make_edge.
8057         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
8058         (add_noreturn_fake_exit_edges): Likewise.
8059         (connect_infinite_loops_to_exit): Liekwise.
8060         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
8061         Use cached_make_edge.
8062         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
8063         * profile.c (branch_prob): Update make_edge call.
8064         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8065
8066 2001-09-11  Richard Henderson  <rth@redhat.com>
8067
8068         * config/alpha/alpha.c: Tidy formatting.
8069         (local_symbolic_operand): Verify mode.
8070         (alpha_sa_mask): Ignore unicos for eh_return.
8071         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
8072         * config/alpha/alpha.md (umk divsi patterns): Remove.
8073         (extendsfdf2): Remove unicos check.
8074         (tablejump): Merge vms and unicos code; always use direct set
8075         plus label_ref use.
8076
8077 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8078
8079         * config.gcc (alpha*-*-unicosmk*): New target.
8080
8081         * config/alpha/alpha-protos.h (symbolic_operand,
8082         unicosmk_add_call_info_word, unicosmk_add_extern,
8083         unicosmk_defer_case_vector, unicosmk_unique_section,
8084         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
8085         unicosmk_asm_file_start, unicosmk_asm_file_end,
8086         unicosmk_output_common): Declare.
8087
8088         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
8089         direct_return, function_arg, alpha_va_start, alpha_va_arg,
8090         alpha_does_function_need_gp, alpha_end_function): Support Cray
8091         Unicos/Mk.
8092         (alpha_init_machine_status, alpha_mark_machine_status,
8093         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
8094         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
8095         unicosmk_asm_named_section, unicosmk_insert_attributes,
8096         unicosmk_section_type_flags, symbolic_operand,
8097         unicosmk_output_module_name, unicosmk_output_default_externs,
8098         unicosmk_output_dex, unicosmk_output_externs,
8099         unicosmk_output_addr_vec, unicosmk_ssib_name,
8100         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
8101         unicosmk_asm_file_end, unicosmk_output_common,
8102         unicosmk_section_type_flags, unicosmk_unique_section,
8103         unicosmk_add_call_info_word, unicosmk_text_section,
8104         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
8105         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
8106         unicosmk_dex_count, unicosmk_special_name): New.
8107         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
8108         TARGET_ABI_UNICOSMK.
8109         (get_aligned_mem, alpha_expand_unaligned_load,
8110         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
8111         alpha_expand_unaligned_store_words): Support big-endian mode.
8112         (print_operand): Likewise. New format specifier 't'. Use
8113         TARGET_AS_SLASH_BEFORE_SUFFIX.
8114         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
8115         (alpha_pv_save_size): Update with above change.
8116         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
8117         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
8118         Unicos/Mk.
8119
8120         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
8121         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
8122         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
8123         (EXTRA_CONSTRAINT): New constraint 'U'.
8124         (PREDICATE_CODES): Add symbolic_operand.
8125
8126         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
8127         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
8128         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
8129         (integer division and modulus patterns): Split in default and
8130         Unicos/Mk versions.
8131         (*divmodsi_internal, *divmoddi_internal): Disable for
8132         TARGET_ABI_UNICOSMK.
8133         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
8134         little-endian and big-endian versions.
8135         (ext, ins, msk): Likewise.
8136         (extv, extzv, insv): Support big-endian mode.
8137         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
8138         (call_umk, call_value_umk, *call_umk, tablejump_umk,
8139         *tablejump_umk_internal, *call_value_umk): New.
8140         (*movdi_nofix): Add pattern for loading an address into a register on
8141         TARGET_ABI_UNICOSMK.
8142         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
8143         (umk_mismatch_args, arg_home_umk): New.
8144         (various insns): Don't use mov, fmov, nop, fnop and unop.
8145         (realign): Support TARGET_ABI_UNICOSMK.
8146
8147         * config/alpha/unicosmk.h: New file.
8148         * config/alpha/t-unicosmk: New file.
8149
8150         * fixinc/inclhack.def (unicosmk_restrict): New.
8151         * fixinc/fixincl.x: Regenerate.
8152
8153         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
8154         (wchar_t): Check for and define __WCHAR_T__.
8155
8156 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
8157
8158         * combine.c (simplify_shift_const): Treat shifts by the mode
8159         size as undefined.
8160
8161 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8162
8163         * cpphash.h (struct tokenrun): New.
8164         (struct cpp_context): New member bol.
8165         (struct cpp_reader): New members.
8166         (_cpp_init_tokenrun): New.
8167         * cppinit.c (cpp_create_reader): Set up the token runs.
8168         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
8169         (lex_token): New internalised version of _cpp_lex_token.  Don't
8170         handle directives or the multiple include optimization here any
8171         more.  Simply lex a token.
8172         * cpplib.c (run_directive): Clear bol.
8173         (_cpp_pop_buffer): Set bol.
8174         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
8175         arguments.
8176
8177 2001-09-11  Michael Meissner  <meissner@redhat.com>
8178
8179         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
8180         give an error if the user uses -mfp32.
8181         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
8182         default options.
8183         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
8184         floating point register size.
8185         (EXTRA_SPECS): Add CPP_FPR_SPEC.
8186
8187         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
8188         HOST_WIDE_INT_PRINT_DEC to properly print the result of
8189         int_size_in_bytes.
8190         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8191         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8192
8193 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
8194
8195         * dbxout.c (dbxout_parms): Fix typo in comment.
8196         * unroll.c (loop_find_equiv_value): Ditto.
8197         * toplev.c (rest_of_compilation): Ditto.
8198         * loop.c (scan_loop): Ditto.
8199         * dwarf2out.c (struct dw_fde_struct): Ditto.
8200
8201 2001-09-10  Zack Weinberg  <zackw@panix.com>
8202
8203         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
8204         copying identifier when we're just going to throw it away.
8205         (parse_identifier_slow): New routine to handle abnormal cases.
8206         (_cpp_lex_token): Update call site.
8207
8208         * hashtable.c (ht_lookup): Don't assume that the string we've
8209         been given is NUL-terminated.
8210         * system.h: #define __builtin_expect(a, b) to (a) if not
8211         GCC >=3.0.
8212
8213 2001-09-10  Michael Meissner  <meissner@redhat.com>
8214
8215         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
8216         binutils, gdb.
8217
8218 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
8219
8220         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
8221
8222 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8223
8224         * builtins.c (c_getstr): Correct thinko in last change and further
8225         cleanup.
8226
8227 2001-09-10  Tim Freeman <tim@fungibole.com>
8228
8229         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
8230         into varray's and register them as roots with the garbage
8231         collector so they are not collected too soon.
8232
8233 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
8234
8235         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
8236         New.
8237         * basic-block.h (flow_obstack, label_value_list,
8238         tail_recursion_label_list): Declare
8239         (tidy_fallthru_edges): Declare.
8240         (expunge_block, last_loop_beg_note): Delete.
8241         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
8242         * cfg.c: New file
8243         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
8244         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
8245         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
8246         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
8247         expunge_block, flow_delete_block, compute_bb_for_insn,
8248         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
8249         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
8250         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
8251         try_redirect_by_replacing_jump, last_loop_beg_note,
8252         redirect_edge_and_branch, redirect_edge_and_branch_force,
8253         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
8254         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
8255         commit_edge_insertions, dump_flow_info, debug_flow_info,
8256         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
8257         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
8258         Move here from flow.c
8259         * cfganal.c: New file.
8260         (forwarder_block_p, can_fallthru, mark_critical_edges,
8261          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
8262          find_unreachable_blocks, create_edge_list, free_edge_list,
8263          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
8264          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
8265          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
8266          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
8267          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
8268          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
8269         Move here from flow.c
8270         * cfgbuild.c: New file
8271         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
8272          make_edges, find_basic_blocks_1, find_basic_blocks,
8273          find_sub_basic_blocks): Move here from flow.c
8274         * cfgcleanup.c: New file.
8275         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
8276          merge_blocks_move_predecessor_nojumps,
8277          merge_blocks_move_successor_nojumps, merge_blocks,
8278          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
8279          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
8280         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
8281         if succeeded.
8282         * cfgloop.c: New file
8283         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
8284          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
8285          flow_loop_exit_edges_find, flow_loop_nodes_find,
8286          flow_loop_pre_header_scan, flow_loop_pre_header_find,
8287          flow_loop_tree_node_add, flow_loops_tree_build,
8288          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
8289          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
8290         Move here from flow.c
8291         * flow.c: Remove everything moved elsewhere
8292         * output.h (cleanup_cfg): Return bool.
8293
8294         * bb-reorder.c (reorder_block_def): Remove 'index'.
8295         (insert_intra_1): Add argument BB, set block for new note.
8296         (make_reorder_chain): Do not depdent on BB indexes.
8297         (make_reorder_chain_1): Do not use BB indexes.
8298         (label_for_bb): Likewise; set BB for new insn.
8299         (emit_jump_to_block_after): Likewise.
8300         (fixup_reorder_chain): Sanity check that all basic blocks
8301         are chained; verify newly created insn chain; remove
8302         undocnitional jump simplifying; Do not use BB indexes;
8303         properly initialize count and frequency information;
8304         dump reordered sequence.
8305         (insert_intra_bb_scope_notes): update call of insert_intra_1.
8306         (insert_inter_bb_scope_notes): Set block for new insn.
8307         (reorder_basic_blocks): Dump flow info before reoredering.
8308
8309 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8310
8311         * alias.c (clear_reg_alias_info): Use K&R format definition.
8312         Avoid unsigned warning.
8313         * builtins.c: Use "unsigned int", not "unsigned".
8314         (target_char_cast): Use host_integerp and tree_low_cst.
8315         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
8316         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
8317         (c_getstr): Likewise.
8318         (std_expand_builtin_va_arg): Use int_size_in_bytes.
8319         (builtin_memcpy_read_str): Avoid unsigned warning.
8320         (expand_builtin_memcpy): Alignments are unsigned.
8321         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
8322         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
8323         * predict.c (expensive_function_p): LIMIT now unsigned.
8324         * resource.c (mark_target_live_regs): Make some vars unsigned.
8325         * sdbout.c: Use "unsigned int", not "unsigned".
8326         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
8327         (sdbout_source_line): Likewise.
8328         (sdbout_record_type_name): Remove "const" for NAME declaration.
8329         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
8330
8331 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
8332
8333         * calls.c (store_one_arg): Expand comment.
8334
8335 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8336
8337         * calls.c (store_one_arg): Make sure that the entire argument is
8338         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
8339
8340 2001-09-09  Richard Henderson  <rth@redhat.com>
8341
8342         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
8343
8344 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
8345
8346         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
8347
8348 2001-09-09  Richard Henderson  <rth@redhat.com>
8349
8350         * config/alpha/alpha.c (alpha_next_sequence_number): New.
8351         (alpha_this_literal_sequence_number): New.
8352         (alpha_this_gpdisp_sequence_number): New.
8353         (some_operand, input_operand): Add HIGH.
8354         (local_symbolic_operand): New.
8355         (alpha_encode_section_info): New.
8356         (alpha_legitimate_address_p): Allow LO_SUM.
8357         (alpha_legitimize_address): Generate HIGH+LO_SUM.
8358         (alpha_expand_mov): Likewise.
8359         (secondary_reload_class): Check memory_operand not general_operand
8360         for FP_REGS test.
8361         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8362         (alpha_expand_unaligned_store): Likewise.
8363         (alpha_expand_unaligned_load_words): Likewise.
8364         (alpha_expand_unaligned_store_words): Likewise.
8365         (alpha_expand_block_clear): Likewise.
8366         (print_operand): Handle %#, %*, %H.
8367         (print_operand_address): Handle LO_SUM.
8368         (find_lo_sum): New.
8369         (alpha_does_function_need_gp): Use it.
8370         (alpha_expand_block_move): Fix signed compare warnings.
8371         (alpha_sa_mask, alpha_align_insns): Likewise.
8372         * config/alpha/alpha-protos.h: Update.
8373         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8374         (MASK_EXPLICIT_RELOCS): New.
8375         (TARGET_SWITCHES): Add -mexplicit-relocs.
8376         (EXTRA_CONSTRAINT): Add 'T'.
8377         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8378         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8379         (ENCODE_SECTION_INFO): Out line.
8380         (REDO_SECTION_INFO_P): New.
8381         (STRIP_NAME_ENCODING): New.
8382         (ASM_OUTPUT_LABELREF): New.
8383         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8384         (PREDICATE_CODES): Update.
8385         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8386         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8387         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8388         builtin_setjmp_receiver_er, exception_receiver_1_er,
8389         call_value_osf_1_er): New patterns.
8390         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8391         (movqi, movhi, movsi): Add explicit $31 base register to lda.
8392         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8393         (FINAL_PRESCAN_INSN): New.
8394
8395 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
8396
8397         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8398
8399 2001-09-08  Andreas Jaeger  <aj@suse.de>
8400
8401         * i386.h (TARGET_SWITCHES): Fix description.
8402
8403 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
8404
8405         * rs6000.c (num_insns_constant): Compute number of instructions
8406         more accurately.
8407
8408         * doc/install.texi: Explain AIX exception handling work-around.
8409         Update URL for AIX fixes.
8410
8411 2001-09-07  Jim Wilson  <wilson@redhat.com>
8412
8413         * alias.c (clear_reg_alias_info): New.
8414         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8415         * rtl.h (clear_reg_alias_info): Declare.
8416
8417 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8418
8419         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8420         available.
8421         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8422         (m16m,edivm,emulm): Change declaration to match definition.
8423
8424 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
8425
8426         * reload.c (push_reload): Check for subreg_lowpart_p instead of
8427         SUBREG_BYTE being 0 when determining if the inner part of a subreg
8428         can be reloaded.
8429
8430 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8431
8432         * c-common.c (signed_or_unsigned_type): Handle machine mode types
8433         which have no corresponding C type.
8434         * fold_const.c (target_isinf,target_isnan,target_negative): Update
8435         the representation of 64-bit doubles to work with 64-bit ints.
8436
8437 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
8438
8439         * config/mips/mips.c (override_options): Do not override ISA when ABI
8440         specified if MIPS_CPU_STRING_DEFAULT was specified.
8441
8442 2001-09-07  Richard Henderson  <rth@redhat.com>
8443
8444         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8445         (express_from_1): Wrap lines.
8446         * rtlanal.c (commutative_operand_precedence): Rename from
8447         operand_preference; export.
8448         * rtl.h: Declare it.
8449         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8450         (simplify_binary_operation): Invoke simplify_plus_minus on
8451         (CONST (PLUS ...)) as well.
8452         (struct simplify_plus_minus_op_data): New.
8453         (simplify_plus_minus_op_data_cmp): New.
8454         (simplify_plus_minus): Use them.  Avoid infinite recursion with
8455         simplify_binary_operation wrt CONST.
8456
8457 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
8458
8459         * h8300-protos.h (general_operand_dst_push): Remove.
8460         * h8300.c (general_operand_dst_push): Likewise.
8461         * h8300.h (OK_FOR_T): Likewise.
8462         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8463         * h8300.md (pushqi_h8300): New.
8464         (pushqi_h8300hs): Likewise.
8465         (pushqi): Likewise.
8466         (pushhi_h8300): Likewise.
8467         (pushhi_h8300hs): Likewise.
8468         (pushhi): Likewise.
8469
8470 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8471
8472         * genattrtab.c (attr_printf): First arg is unsigned.
8473         Clean up formatting of callers.
8474
8475 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
8476
8477         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8478         registers.
8479
8480 2001-09-07  Andreas Jaeger  <aj@suse.de>
8481
8482         * i386.h (TARGET_SWITCHES): Fix descriptions.
8483
8484 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8485
8486         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8487
8488 2001-09-06  Ira Ruben  <ira@apple.com>
8489
8490         Remove OP_IDENTIFIER.
8491         * tree.def (OP_IDENTIFIER): Remove.
8492         * tree.c (tree_node_kind enum): Remove op_id_kind.
8493         (tree_node_kind_names): Remove "op_identifiers".
8494         (make_node): Remove OP_IDENTIFIER test.
8495         (build_op_identifier): Removed because it isn't being used.
8496         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8497         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8498
8499 2001-09-06  Richard Henderson  <rth@redhat.com>
8500
8501         * simplify-rtx.c (simplify_binary_operation): Revert last change.
8502
8503 2001-09-06  Richard Henderson  <rth@redhat.com>
8504
8505         * simplify-rtx.c (simplify_binary_operation): Simplify contents
8506         of CONST.
8507
8508 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8509
8510         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8511         number used for CR register.
8512
8513 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8514                           Joern Rennecke (amylaar@cygnus.com)
8515
8516         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8517         * h8300.c (initial_offset): Handle offset between RP and FP.
8518         (h8300_return_addr_rtx): New function.
8519         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8520         return register.
8521         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8522         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8523         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8524         (CAN_ELIMINATE, REGISTER_NAMES):
8525         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8526
8527 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
8528
8529         Remove TYPE_NONCOPIED_PARTS.
8530         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8531         (struct tree_type): Remove noncopied_parts.
8532         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8533         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8534         (fixed_type_p): Remove.
8535         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8536         (expand_expr, MODIFY_EXPR): Likewise.
8537         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8538         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8539
8540 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
8541
8542         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8543         compiler warnings.
8544         (mask64_operand): Likewise.
8545         (includes_rldic_lshift_p): Likewise.
8546         (includes_rldicr_lshift_p): Likewise.
8547
8548 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
8549
8550         * objc/objc-act.c (build_message_expr): If a class method cannot
8551         be found, do not issue a warning if a corresponding instance
8552         method exists in the root class.
8553
8554 2001-09-05  Richard Henderson  <rth@redhat.com>
8555
8556         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8557
8558 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
8559
8560         * function.c (ggc_mark_struct_function): Mark f->outer.
8561         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8562         * integrate.c (output_inline_function): ... not here.
8563
8564 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8565
8566         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8567
8568         * i386.c (size_cost): New static variable.
8569         (override_function): Use size_cost when -Os is specified.
8570
8571         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8572         properly;  Use current_function_calls_eh_return.
8573         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8574         use leave to avoid dependency chain.
8575
8576         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8577         get BB loop_depth instead of computing it from LOOP notes.
8578
8579         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8580
8581 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8582
8583         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8584         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8585         UNALIGNED_DOUBLE_INT_ASM_OP): Define
8586
8587 2001-09-05  Jeffrey A Law  (law@cygnus.com)
8588             Jason Merrill (jason@redhat.com)
8589
8590         * stor-layout.c (layout_type): Complain if an array's size can
8591         not be represented in a size_t.
8592
8593         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8594
8595 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
8596
8597         * gcc.c: (process_command) Add parentheses around assignment
8598         used as truth value.
8599
8600 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8601
8602         * config/mips/mips.c (save_restore_insns): Don't mark any register
8603         save slots as unchanging if current_function_calls_eh_return.
8604
8605 2001-09-05  Richard Henderson  <rth@redhat.com>
8606
8607         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8608         * config/alpha/alpha-protos.h: Declare it.
8609         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8610         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8611         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8612         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8613         (REG_OK_FOR_BASE_P): Select one of the above.
8614
8615 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8616
8617         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8618         (crti.o): Prefix name of object file with $(T).
8619         (crtn.o): Likewise.
8620
8621 2001-09-05  David S. Miller  <davem@redhat.com>
8622
8623         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8624         * config/sparc/linux64.h: Likewise.
8625
8626 2001-09-05  Andreas Jaeger  <aj@suse.de>
8627
8628         * doc/invoke.texi (i386 Options): -mwide-multiply is not
8629         available anymore, remove the documentation.
8630         (i386 Options): Fix typo, cleanup index entries.
8631
8632         * prefix.c (concat): Remove, we can use the version from liberty.
8633
8634 2001-09-05  Richard Henderson  <rth@redhat.com>
8635
8636         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8637         New functions split out of md file expanders.
8638         * config/alpha/alpha-protos.h: Declare them.
8639         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8640
8641 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8642
8643         * cppmacro.c (funlike_invocation_p): No need to restore context.
8644
8645 2001-09-04  Richard Henderson  <rth@redhat.com>
8646
8647         * reload.c (push_reload): Export.
8648         * reload.h (push_reload): Declare it.
8649
8650         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8651         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8652         * config/alpha/alpha.c (alpha_legitimize_address): New.
8653         (alpha_legitimize_reload_address): Likewise.
8654         * config/alpha/alpha-protos.h: Declare them.
8655
8656 2001-09-04  Stan Shebs  <shebs@apple.com>
8657
8658         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8659         * config/darwin.c (machopic_stub_name): Account for internally
8660         generated lib calls such as memcpy.
8661
8662 2001-09-04  Richard Henderson  <rth@redhat.com>
8663
8664         * unwind.h (_UA_END_OF_STACK): New flag.
8665         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8666
8667 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8668
8669         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8670
8671 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
8672
8673         * config/mips/mips.c (save_restore_insns): Change base_offset to
8674         fp_offset in second call to mips_emit_frame_related_store.
8675
8676 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
8677
8678         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8679         sometimes be represented as a NOTE of type
8680         NOTE_INSN_DELETED_LABEL.
8681         (Insns): Document NOTE_INSN_DELETED_LABEL.
8682
8683 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
8684
8685         * c-common.h (tree_dump_index): Add more comments.
8686         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8687         (dump_option_value_info): New struct.
8688         (dump_options): New array.
8689         (dump_switch_p): Parse switch options symbolically.
8690         * doc/invoke.texi (-fdump-ast): Rename to ...
8691         (-fdump-tree): ... here. Document that options are symbolic, and
8692         not all are applicable.
8693
8694 2001-09-04  David S. Miller  <davem@redhat.com>
8695
8696         * config/sparc/sparc.md (define_splits): Kill constraints.
8697
8698         Cleanup redundant and unused insn attributes.
8699         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8700         binary, and move.  Mark ialu as default.
8701         (commented out define_function_unit "alu"): Kill.
8702         (define_attr "use_clobbered"): Kill.
8703         (whole file): Kill address insn type references.  Replace
8704         all unary/binary/move references with ialu.
8705         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8706         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
8707         TYPE_IALU.
8708
8709         Simplify length insn attribute and make more judicious use
8710         of insn attribute defaulting.
8711         * config/sparc/sparc.md (all insns with length > one): Mark as
8712         insn type multi if real instructions, else use default if
8713         it is a forced splitter.
8714         (all insns with length == one): Use default insn length.
8715         (all insns of type ialu): Use default insn type.
8716
8717         Fix erroneous insn attribute settings.
8718         (addx): Set insn type to misc.
8719         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8720         const_umulsidi3_sp64): Set insn type to imul.
8721
8722         Track SFmode vs DFmode insns according to UltraSPARC
8723         scheduling rules.
8724         * config/sparc/sparc.md ("fptype"): New attribute, default
8725         to "single".
8726         (all DFmode single insns): Mark as fptype "double".
8727
8728 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
8729
8730         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8731
8732 2001-09-03  Richard Henderson  <rth@redhat.com>
8733
8734         * function.h (struct function): Add arg_pointer_save_area_init.
8735         * function.c (expand_function_end): Init arg_pointer_save_area.
8736         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8737         when called from a nested function.
8738
8739 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
8740
8741         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8742         is enabled.
8743
8744 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8745
8746         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8747
8748 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
8749
8750         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8751         (emit_push_insn): Use specified padding direction when
8752         STACK_PUSH_CODE is POST_INC.
8753
8754         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8755
8756 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8757
8758         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8759
8760 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8761
8762         * cppinit.c (cpp_start_read): Free the imacros list as we
8763         traverse it.  Don't free the chains before returning.
8764         (_cpp_push_next_buffer): Only try pushing buffers if we've
8765         completed -imacros handling.
8766
8767 2001-08-31  Eric Christopher  <echristo@redhat.com>
8768
8769         * gcc.c (handle_braces): Add explaination for abort.
8770
8771 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
8772
8773         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8774         move adjustment of bitpos instead.
8775
8776 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
8777
8778         * function.c: Remove all_functions.  Make outer_function_chain
8779         static.
8780         (init_function_start): Don't add new function structure to
8781         all_functions.
8782         (find_function_data, push_function_context_to,
8783         pop_function_context_from, put_var_into_stack,
8784         trampoline_address): Update for changed structure element names.
8785         (push_function_context_to): Disentangle.
8786         (free_after_compilation): Also free F.
8787         (expand_dummy_function_end): Don't free cfun here.
8788         (put_var_into_stack): Comment why we can't use find_function_data here.
8789         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8790         (mark_function_chain): Split into maybe_mark_struct_function and
8791         ggc_mark_struct_function.  Export the latter.
8792         (init_function_once): Mark from cfun and outer_function_chain;
8793         not all_functions.
8794
8795         * function.h (struct function): Kill next_global.  Rename next
8796         to outer.  All users updated to match.
8797         (all_functions, outer_function_chain): Don't declare.
8798
8799         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8800         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8801         don't touch f->inlinable, after calling rest_of_compilation.
8802
8803         * tree.h: Forward-declare struct function.  Prototype
8804         ggc_mark_struct_function.
8805
8806 2001-08-31  Kazu Hirata  <kazu@hxi.com>
8807
8808         * config/h8300/h8300.md (*andorhi3): Fix typos.
8809
8810 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8811
8812         * calls.c (emit_library_call_value): Don't use a fixed
8813         argument after VA_CLOSE, i.e. out of scope in traditional C.
8814
8815         * emit-rtl.c (gen_rtvec): Likewise.
8816
8817 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8818
8819         * Makefile.in (c-pragma.o): Depend on output.h.
8820         (reorg.o): Depend on except.h.
8821
8822         * c-pragma.c: Include output.h.
8823
8824         * reorg.c: Include except.h.
8825
8826         * unwind-dw2.c: Call __builtin_alloca, not alloca.
8827
8828 2001-08-31  Richard Henderson  <rth@redhat.com>
8829
8830         * sched-deps.c (add_dependence): Don't elide dependency if the
8831         conditional used by insn is modified in elem.
8832
8833 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
8834
8835         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
8836
8837 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
8838
8839         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
8840         dump_switch_p.
8841
8842 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8843
8844         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
8845         function.
8846         (stormy16_asm_out_constructor): New function.
8847         (TARGET_ASM_CONSTRUCTOR): Define.
8848         (TARGET_ASM_DESTRUCTOR): Define.
8849
8850 2001-08-31  Andreas Jaeger  <aj@suse.de>
8851
8852         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
8853         * loop.c (add_label_notes): Likewise.
8854         * reload.c (find_reloads): Likewise.
8855         * config/sh/sh.c (machine_dependent_reorg): Likewise.
8856
8857 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
8858
8859         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
8860         code here.  Take _Unwind_{W,Sw}ord*.
8861         (read_encoded_value_with_base): Use them.
8862         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
8863         words.
8864         (extract_cie_info): Simplify read_?leb128 handling.
8865         (execute_stack_op, execute_cfa_program): Likewise.
8866         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
8867
8868 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8869
8870         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
8871         the frame pointer to pop the stack if convenient.
8872
8873         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
8874         Don't use post-increment before combine.
8875         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
8876         a call-saved register.
8877
8878 2001-08-31  Andreas Jaeger  <aj@suse.de>
8879
8880         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
8881         code was correct.
8882
8883 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
8884
8885         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
8886         not DIV/MOD, of course.
8887
8888 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
8889
8890         * rtl.def: Undo my patch commited 2001-08-27.
8891
8892         * genattrtab.c: Ditto.
8893
8894         * rtl.h: Ditto.
8895
8896         * sched-int.h: Ditto.
8897
8898         * target-def.h: Ditto.
8899
8900         * target.h: Ditto.
8901
8902         * haifa-sched.c: Ditto.
8903
8904         * sched-rgn.c: Ditto.
8905
8906         * sched-vis.c: Ditto.
8907
8908         * Makefile.in: Ditto.
8909
8910         * doc/md.texi: Ditto.
8911
8912         * doc/tm.texi: Ditto.
8913
8914         * doc/contrib.texi: Ditto.
8915
8916         * doc/gcc.texi: Ditto.
8917
8918         * genattrtab.h: Remove it.
8919
8920         * genautomata.c: Remove it.
8921
8922         * genattr.c: Undo my patch and Richard Henderson's patch commited
8923         2001-08-27.
8924
8925 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
8926
8927         * config.gcc (h8300-*-elf*): New case.
8928         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8929         (SUBTARGET_CPP_SPEC): Define.
8930         (EXTRA_SPECS): Define.
8931         (SUBTARGET_EXTRA_SPECS): Define.
8932         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8933         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8934
8935 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
8936
8937         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8938         (LIB2FUNCS_EXTRA): Define.
8939         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8940         config/h8300/fixunssfsi.c: New file.
8941
8942 2001-08-30  Kazu Hirata  <kazu@hxi.com>
8943
8944         * config/h8300/h8300.md (zero_extendqihi2): Changes to
8945         define_expand to accommodate target-specific attributes.
8946         (anonymous zero_extendqihi2 patterns): New.
8947
8948 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
8949
8950         * h8300.md (*andorhi3): New pattern.
8951
8952 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
8953
8954         * h8300.c (dosize): Fix test for "sub".
8955
8956 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
8957
8958         * c-typeck.c (pointer_diff): Try to eliminate common term before
8959         doing conversions.
8960
8961 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
8962
8963         * config/arm/arm.c (arm_compute_initial_elimination_offset):
8964         Account for the saves of the FP registers.
8965
8966         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8967         (TEXT_SECTION_ASM_OP): Define.
8968         (INIT_SECTION_ASM_OP): Define.
8969         (FINI_SECTION_ASM_OP): Define.
8970         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8971         (RDATA_SECTION_FUNCITON): Provide prototype.
8972
8973 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
8974
8975         * reload1.c (move2add_note_store): Correct typo checking for
8976         argument pushes.
8977
8978 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
8979
8980         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8981         note should not be considered outside the libcall block.
8982
8983 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8984
8985         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8986
8987 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8988
8989         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8990
8991 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8992
8993         * config/h8300/h8300-protos.h: Add a prototype for
8994         emit_logical_op.
8995         * config/h8300/h8300.c (emit_logical_op): New.
8996         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8997         (andsi3): Likewise.
8998         (iorhi3): Likewise.
8999         (iorsi3): Likewise.
9000         (xorhi3): Likewise.
9001         (xorsi3): Likewise.
9002
9003 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9004
9005         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
9006         comparison with rtx INTVAL.
9007         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
9008         expression.
9009         * pa.h (FUNCTION_ARG_SIZE): Likewise.
9010
9011 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9012
9013         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
9014         comment typos.
9015
9016 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9017
9018         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
9019         (reg n) to (mem (pre_dec (reg n))
9020         (anonymous movsi pattern): Likewise.
9021
9022 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9023
9024         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
9025
9026 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9027
9028         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
9029         several special constants.
9030
9031 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9032
9033         * config/h8300/lib1funcs.asm: Fix comment typos.
9034
9035 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9036
9037         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
9038         Fix format specifier warnings.
9039
9040         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
9041         inet_makeaddr, semctl): Prototype.
9042
9043         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
9044         (save_restore_insns): Use base_offset, not gp_offset.
9045
9046         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
9047         (ASM_OUTPUT_BYTE): Fix format specifier warning.
9048
9049 2001-08-29  Richard Henderson  <rth@redhat.com>
9050
9051         * bb-reorder.c (function_tail_eff_head): New.
9052         (record_effective_endpoints): Set it.
9053         (fixup_reorder_chain): Use it.
9054
9055 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9056
9057         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
9058
9059 2001-08-28  Dale Johannesen  <dalej@apple.com>
9060
9061         * config/darwin.c (machopic_function_base_name): Add const
9062         qualifier to a string.
9063         (darwin_encode_section_info): Ditto.
9064
9065 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9066
9067         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
9068         function definition.
9069
9070 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9071
9072         * df.h (struct df): Add rts_order variable.
9073
9074         * df.c (df_visit_next_rts): New function.
9075         (df_visit_next): Renamed to df_visit_next_rc
9076         (df_analyse_1): Allocate/compute/free rts_order as well.
9077         (df_rd_global_compute): Use df_visit_next_rc instead of
9078         df_visit_next.
9079         (df_ru_global_compute): Use df_visit_next_rts instead of
9080         df_visit_next.
9081
9082         * flow.c (flow_reverse_top_sort_order_compute): New function.
9083
9084         * basic-block.h: Add prototype.
9085
9086 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9087
9088         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
9089         blocks, the BB_REACHABLE is now set, rather than aux being
9090         non-NULL. Update the test to reflect this.
9091
9092 2001-08-28  Eric Christopher  <echristo@redhat.com>
9093
9094         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
9095         config/mips/crti.asm: Ditto.
9096
9097 2001-08-28  Eric Christopher <echristo@redhat.com>
9098             Richard Henderson <rth@redhat.com>
9099
9100         * c-pragma.h (add_weak): Move prototype from here...
9101         * output.h (add_weak): ... to here.
9102         * varasm.c (add_weak): Fix typo.
9103         * config/mips/crti.asm: New file.
9104         * config/mips/crtn.asm: Ditto.
9105         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
9106         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
9107         (INVOKE__main): Ditto.
9108         (INIT_SECTION_ASM_OP): New.
9109         (FINI_SECTION_ASM_OP): Ditto.
9110         (STARTFILE_SPEC): Add crti.
9111         (ENDFILE_SPEC): Add crtn.
9112         * config/mips/elf64.h: Same.
9113         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
9114         Remove.
9115         * config/mips/vxworks.h: Ditto.
9116         * config/mips/t-elf: Support crti and crtn.
9117
9118 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
9119
9120         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
9121         INSN_LIST.
9122
9123 2001-08-28  Richard Henderson  <rth@redhat.com>
9124
9125         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
9126         (one_cmplbi2 splitter): Remove redundant test.
9127
9128 2001-08-28  Dale Johannesen  <dalej@apple.com>
9129
9130         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
9131
9132 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
9133
9134         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
9135
9136 2001-08-28  Stan Shebs  <shebs@apple.com>
9137
9138         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
9139         (UNALIGNED_SHORT_ASM_OP): Define.
9140         (UNALIGNED_INT_ASM_OP): Define.
9141
9142 2001-08-28  Will Cohen  <wcohen@redhat.com>
9143
9144         * config/rs6000/rs6000.md (store_multiple): Correct RTL
9145         generation for first set.
9146
9147 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9148
9149         * flow.c (redirect_edge_succ_nodup): Return new edge.
9150         (try_simplify_condjump): Use new edge.
9151         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
9152
9153         * cse.c (cse_basic_block): Skip note instructions.
9154
9155 2001-08-27  Richard Henderson  <rth@redhat.com>
9156
9157         * combine.c (combine_simplify_rtx): Don't reverse condition
9158         if there is no reverse for the condition.
9159         (simplify_comparison): Don't simplify subregs from INT to FP.
9160
9161         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
9162         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
9163         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
9164         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
9165         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
9166         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
9167
9168 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9169
9170         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
9171         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
9172         (pushqi1): New.
9173         (adddi_dilshr32, adddi_dishl32): Only data register can be
9174         source for mem destination.
9175
9176         * expmed.c (store_bit_field): Ignore adjustment to bitpos
9177         and use bitnum to decide about register move.
9178
9179 2001-08-27  Richard Henderson  <rth@redhat.com>
9180
9181         * genattr.c (main): Emit state_t even when not doing scheduling.
9182
9183 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9184             Richard Henderson  <rth@redhat.com>
9185
9186         * gcse.c (reg_first_set, reg_last_set): Replace with ...
9187         (reg_avail_info, current_bb): ... these.
9188         (oprs_unchanged_p, record_last_reg_set_info): Use them.
9189         (compute_hash_table): Likewise.
9190
9191 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9192
9193         * flow.c (verify_flow_info): Use checksums to verify edges.
9194
9195 2001-08-27  Richard Henderson  <rth@redhat.com>
9196
9197         * genautomata.c (expand_automata): Always create a description.
9198
9199 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9200
9201         * optabs.c (expand_binop): Correctly handle the carry in multiword
9202         add/subtract operations.
9203
9204 2001-08-27  Fred Fish  <fnf@be.com>
9205
9206         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
9207         __SIZE_TYPE__.
9208
9209 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9210
9211         * reload.c (find_reloads_toplev): Back out this change:
9212
9213         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
9214
9215         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
9216         mem if the address is a mode_dependent_address_p.
9217
9218 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9219
9220         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9221         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9222         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9223         RTL constructions.
9224
9225         * genattr.c (main): New variable num_insn_reservations.  Increase
9226         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9227         pipeline hazard recognizer interface.
9228
9229         * genattrtab.h: New file.
9230
9231         * genattrtab.c: Include genattrtab.h.
9232         (attr_printf, check_attr_test, make_internal_attr,
9233         make_numeric_value): Move protypes into genattrtab.h.  Define them
9234         as external.
9235         (num_dfa_decls): New global variable.
9236         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9237         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9238         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9239         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9240
9241         * genautomata.c: New file.
9242
9243         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9244
9245         * sched-int.h: (curr_state): Add the external definition for
9246         automaton pipeline interface.
9247         (haifa_insn_data): Add comments for members blockage and units.
9248
9249         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9250         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9251         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9252         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9253         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9254         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9255         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9256         macros.
9257         (TARGET_SCHED): Use the new macros.
9258
9259         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9260         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9261         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9262         dfa_bubble): New members in gcc_target.sched.
9263
9264         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9265         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9266         (insn_queue): Redefine it as pointer to array.
9267         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9268         INSN_QUEUE_SIZE.
9269         (max_insn_queue_index_macro_value): New variable.
9270         (curr_state, dfa_state_size, ready_try): New varaibles for
9271         automaton interface.
9272         (ready_element, ready_remove, max_issue): New function prototypes
9273         for automaton interface.
9274         (choose_ready): New function prototype.
9275         (insn_unit, blockage_range): Add comments.
9276         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9277         FUNCTION_UNITS_SIZE == 0.
9278         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9279         actual_hazard, potential_hazard): Add comments.
9280         (insn_cost): Use cost -1 as undefined value.  Remove
9281         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9282         pipeline interface.
9283         (ready_element, ready_remove): New functions for automaton
9284         interface.
9285         (schedule_insn): Add new code for automaton pipeline interface.
9286         (queue_to_ready): Add new code for automaton pipeline interface.
9287         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9288         (debug_ready_list): Print newline when the queue is empty.
9289         (max_issue): New function for automaton pipeline interface.
9290         (choose_ready): New function.
9291         (schedule_block): Add new code for automaton pipeline interface.
9292         Print ready list before scheduling each insn.
9293         (sched_init): Add new code for automaton pipeline interface.
9294         Initiate insn cost by -1.
9295         (sched_finish): Free the current automaton state and finalize
9296         automaton pipeline interface.
9297
9298         * sched-rgn.c: Include target.h.
9299         (init_ready_list, new_ready, debug_dependencies): Add new code for
9300         automaton pipeline interface.
9301
9302         * sched-vis.c: Include target.h.
9303         (get_visual_tbl_length): Add code for automaton interface.
9304         (target_units, print_block_visualization):  Add comments.
9305
9306         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9307         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9308         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9309         (getruntime.o, genautomata.o): New entries.
9310         (genattrtab.o): Add new dependency file genattrtab.h.
9311         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9312         (getruntime.o, hashtab.o): New entries for canadian cross.
9313
9314         * doc/md.texi: Description of automaton based model.
9315
9316         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9317         Add comments.
9318         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9319         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9320         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9321         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9322         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9323         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9324         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9325         hook descriptions.
9326         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9327         MAX_DFA_ISSUE_RATE): New macro descriptions.
9328
9329         * doc/contrib.texi: Add dfa based scheduler contribution.
9330
9331         * doc/gcc.texi: Add more information about genattrtab.
9332
9333 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
9334
9335         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
9336         an RTL basic block.
9337
9338 2001-08-27  Richard Henderson  <rth@redhat.com>
9339
9340         * function.c (expand_function_end): Don't init arg_pointer_save_area.
9341         (get_arg_pointer_save_area): New.  Create an init it here.
9342         (fix_lexical_addr): Use it.
9343         * function.h: Declare it.
9344         * builtins.c (expand_builtin_setjmp_receiver): Use it.
9345         * stmt.c (expand_nl_goto_receiver): Use it.
9346
9347 2001-08-27  Richard Henderson  <rth@redhat.com>
9348
9349         * final.c (final_scan_insn): Don't enter APP_ON mode for
9350         empty asm strings.
9351
9352         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
9353         alignment for assemble_integer for DW_EH_PE_aligned.
9354         * except.c (output_function_exception_table): Likewise.
9355
9356 2001-08-26  Andreas Jaeger  <aj@suse.de>
9357
9358         * c-tree.h: Add prototyp for c_sizeof_nowarn.
9359
9360 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
9361
9362         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9363
9364 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
9365
9366         * config/rs6000/rs6000.c (mask_operand): Rewrite without
9367         bit-shifting loop.
9368         (mask64_operand): Likewise.
9369         (rldic_operand): Delete.
9370         (includes_lshift64_p): Delete.
9371         (includes_rldic_lshift_p): New function.
9372         (includes_rldicr_lshift_p): New function.
9373         (print_operand): Don't call rldic_operand in case 'W'.
9374         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9375         (includes_lshift64_p): Remove.
9376         (includes_rldic_lshift_p): Declare.
9377         (includes_rldicr_lshift_p): Declare.
9378         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9379         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9380         Replace match_operand rldic_operand predicate with
9381         const_int_operand.  Replace includes_lshift64_p condition with
9382         includes_rldic_lshift_p.
9383         <ashldi3_internal 64 bit rldicr patterns>: New.
9384
9385 2001-08-27  Andreas Jaeger  <aj@suse.de>
9386
9387         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9388         * errors.c: Likewise.
9389         * final.c: Likewise.
9390         * dwarf2asm.c: Likewise.
9391         * doprint.c (checkit): Likewise.
9392         * diagnostic.c: Likewise.
9393         * collect2.c: Likewise.
9394         * calls.c: Likewise.
9395         * c-semantics.c (build_stmt): Likewise.
9396         * c-format.c (status_warning): Likewise.
9397         * c-errors.c (pedwarn_c99): Likewise.
9398         * builtins.c (validate_arglist): Likewise.
9399         * config/pj/pj.c (pj_printf): Likewise.
9400         * fix-header.c: Likewise.
9401         * gcc.c: Likewise.
9402         * gcov.c (fnotice): Likewise.
9403         * gensupport.c (message_with_line): Likewise.
9404         * mips-tfile.c: Likewise.
9405         * protoize.c (notice): Likewise.
9406         * read-rtl.c (fatal_with_file_and_line): Likewise.
9407         * rtl-error.c: Likewise.
9408         * tradcpp.c: Likewise.
9409         * tree.c: Likewise.
9410         * cp/tree.c (build_min_nt): Likewise.
9411         (build_min): Likewise.
9412         * cp/lex.c: Likewise.
9413         * cp/errfn.c: Likewise.
9414         * cp/rtti.c (create_pseudo_type_info): Likewise.
9415
9416 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
9417
9418         * df.c (df_uses_record): Return after recording all uses
9419         in ASM_OPERANDS.
9420
9421 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
9422
9423         * df.c (df_insn_modify): Realloc the INSN table here, if
9424         necessary, here, too.
9425
9426 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
9427
9428         * config/mips/mips.c (mips_function_value): Handle complex return
9429         values.
9430
9431 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
9432
9433         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9434         unshared.
9435         * reload.c (make_memloc): Copy result if it is still
9436         reg_equiv_memory_loc[regno] on return.
9437         (subst_reloads) [ENABLE_CHECKING]: Check that none of
9438         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9439         reg_equiv_mem are modified by the substitutions.
9440
9441 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9442
9443         * predict.c (expensive_function_p): New.
9444         * rtl.h (expensive_function_p): Declare.
9445         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9446         (use_fast_prologue_epilogue): New static variable.
9447         (expand_prologue): Set it; emit short prologues if unset.
9448         (expand_epilogue): Likewise.
9449
9450 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9451
9452         * config.gcc: Add stormy16-*-elf case.
9453         * config/stormy16/stormy-abi: New file.
9454         * config/stormy16/stormy16-lib2.c: New file.
9455         * config/stormy16/stormy16-protos.h: New file.
9456         * config/stormy16/stormy16.c: New file.
9457         * config/stormy16/stormy16.h: New file.
9458         * config/stormy16/stormy16.md: New file.
9459         * config/stormy16/t-stormy16: New file.
9460
9461 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9462
9463         * i386.h (no-accumulate-outgoing-args): Use proper mask.
9464
9465 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
9466
9467         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9468         descriptor members are pointer size, not constant 4.
9469         * config/rs6000/rs6000.md (define_splits): Remove more unused
9470         constraints.
9471
9472 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9473
9474         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9475
9476 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
9477
9478         * cp/rtti.c (VPARAMS): Fix parameter.
9479
9480 2001-08-24  Zack Weinberg  <zackw@panix.com>
9481
9482         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9483         to zero.
9484         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
9485         to switch.
9486         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
9487         in if controlling use of insv.
9488         (extract_bit_field): Likewise, for extv and extzv.
9489
9490 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
9491
9492         * i386.md (movcc peep2): Fix load of 0.
9493
9494 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9495
9496         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9497         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9498
9499 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
9500
9501         * c-pragma.h: Move weak_syms and weak_decls...
9502         * varasm.c: ...here.  Now static.
9503         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9504         depend on HANDLE_PRAGMA_WEAK.
9505
9506         * c-common.c (c_alignof, c_alignof_expr): Move here...
9507         * c-typeck.c: ...from here.
9508         * c-tree.h, c-common.h: Adjust.
9509
9510 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
9511
9512         * config/ia64/ia64.c (rws_update): If !pred, set write_count
9513         instead of incrementing it.
9514
9515         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9516         asm ready, don't try to move them all into the same array element.
9517
9518 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9519
9520         * function.c (thread_prologue_and_epilogue_insns): Avoid
9521         fallthru flag on edge to exit.
9522
9523         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9524
9525         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9526         dead edges.
9527
9528 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9529
9530         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9531         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9532         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9533         Remove prototype.
9534
9535 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9536
9537         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9538         replace "GNU CC" with "GCC".
9539
9540 2001-08-23  Richard Henderson  <rth@redhat.com>
9541
9542         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9543         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
9544         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9545         Need GR between FR and not GR_AND_FR.
9546         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9547         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9548         AR regs before GR regs.
9549         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9550         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9551         (REGISTER_MOVE_COST): Update.
9552         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9553
9554 2001-08-23  Richard Henderson  <rth@redhat.com>
9555
9556         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9557         a register class.
9558
9559 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9560
9561         * reload1.c (emit_reload_insns): Don't look for notes
9562         on a NULL store_insn.
9563
9564 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9565
9566         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9567         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9568         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9569         format specifier warnings.
9570         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9571
9572 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
9573
9574         * config/i386/i386-protos.h: Correct declaration of
9575         i386_pe_asm_named_section.
9576
9577 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9578
9579         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9580         variable i.
9581         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9582
9583 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9584
9585         * cpperror.c (print_location): Don't show _Pragma.
9586         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9587         and file change callback generation here.
9588         (stack_include_file): Update use of cpp_push_buffer.
9589         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9590         (struct cpp_buffer): Remove type, pfile members.
9591         * cppinit.c (cpp_handle_option): Use free_chain.
9592         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9593         (skip_escaped_newlines, get_effective_char, lex_percent): Take
9594         a cpp_reader rather than a cpp_buffer.
9595         (skip_escaped_newlines, get_effective_char, skip_block_comment,
9596         skip_line_comment, parse_string, lex_percent, lex_dot,
9597         _cpp_lex_token): Update accordingly.
9598         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9599         generation here.
9600         (cpp_push_buffer): Update prototype.
9601         (run_directive): Update use of cpp_push_buffer.
9602         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9603         handle_assertion): Update use of run_directive.
9604         * cpplib.h (enum cpp_buffer_type): Remove.
9605         (cpp_push_buffer): Update prototype.
9606         * fix-header.c (read_scan_file): Update.
9607
9608 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9609
9610         * gcc.c (struct prefix_list): Change prefix to const char *.
9611
9612 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9613
9614         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9615
9616 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
9617
9618         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9619         from a new MEM.
9620
9621         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
9622         a squeezable note.
9623         * rtl.h: Adjust.
9624         * ifcvt.c (dead_or_predicable): Adjust.
9625         * loop.c (find_and_verify_loops): Adjust.
9626         * stmt.c (expand_end_case): Adjust.
9627         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
9628         head and end insn pointers in the basic block, not just local copies.
9629         (merge_blocks_move_predecessor_nojumps): Likewise.
9630
9631 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
9632
9633         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9634         bitmap.h, builtin-types.def, builtins.c, builtins.def,
9635         c-aux-info.c, c-common.c, c-common.def, c-common.h,
9636         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9637         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9638         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9639         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9640         conditions.h, config.gcc, configure.frag, configure.in,
9641         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9642         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9643         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9644         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9645         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9646         emit-rtl.c, errors.c, errors.h, except.c, except.h,
9647         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9648         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9649         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9650         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9651         gencheck.c, gencodes.c, genconfig.c, genemit.c,
9652         genextract.c, genflags.c, gengenrtl.c, genmultilib,
9653         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9654         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9655         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9656         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9657         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9658         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9659         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9660         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9661         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9662         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9663         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9664         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9665         params.h, predict.c, predict.def, predict.h, prefix.c,
9666         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9667         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9668         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9669         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9670         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9671         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9672         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9673         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9674         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9675         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9676         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9677         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9678         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9679         xcoffout.h: replace "GNU CC" with "GCC".
9680
9681 2001-08-21  Richard Henderson  <rth@redhat.com>
9682
9683         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9684         (final_scan_insn): Consider jump tables data even if we have no
9685         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
9686         ADDR_VEC_ALIGN.
9687         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9688         (ASM_OUTPUT_CASE_END): Remove.
9689         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9690         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9691         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9692
9693 2001-08-21  Richard Henderson  <rth@redhat.com>
9694
9695         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9696         at barrier insns.  Emit stop bits before barriers.
9697
9698         * flow.c (flow_find_cross_jump): Don't consider unconditional
9699         return insns for commoning.
9700
9701         * final.c (compute_alignments): Fix typo.
9702
9703         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9704         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9705         (store_bit_field): Use mode_for_extraction more places.
9706         (extract_bit_field): Likewise.
9707
9708 2001-08-21  Zack Weinberg  <zackw@panix.com>
9709
9710         * caller-save.c: Don't include insn-codes.h.
9711         (reg_save_code, reg_restore_code): Make arrays of int.
9712         All uses updated to match.
9713         (insert_save, insert_restore): No need to initialize "code"
9714         variable upon declaration.
9715         * Makefile.in: update dependencies; fix typo in clean rule.
9716
9717 2001-08-21  Richard Henderson  <rth@redhat.com>
9718
9719         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9720         (merge_if_block): Handle fallout from same.
9721
9722 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9723
9724         * builtins.c (type_to_class): Fix typo in last change.
9725
9726 2001-08-21  Richard Henderson  <rth@redhat.com>
9727
9728         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9729         ia64_asm_output_label.
9730
9731         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9732         copy of gp while the real gp register contains garbage.
9733
9734 2001-08-21  Zack Weinberg  <zackw@panix.com>
9735
9736         * expmed.c (mode_for_extraction): New function.
9737         (store_bit_field, extract_bit_field): Use it.
9738         * expr.h: Prototype it and provide an enum for its first argument.
9739
9740         * combine.c, function.c, recog.c: Don't include insn-codes.h.
9741         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9742         and digging through the insn_data tables.
9743         * Makefile.in: Update dependencies.
9744
9745 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9746
9747         * cppfiles.c (stack_include_file): line-map.c now handles include
9748         depth.
9749         (handle_missing_handler): Similarly.
9750         (_cpp_execute_include): Similarly.
9751         (_cpp_pop_file_buffer): Similarly.
9752         * cpphash.h (struct cpp_reader): Remove system_include_depth,
9753         buffer_stack_depth and include_depth.
9754         * cpplib.c (do_include_common): line-map.c now handles include depth.
9755         (cpp_push_buffer): Similarly.
9756         (_cpp_pop_buffer): Similarly.
9757         * cppmacro.c (builtin_macro): Update.
9758         * line-map.c (init_line_maps): Set depth.
9759         (add_line_map): Increment "used" earlier.  Update and use the
9760         include depth.
9761         (trace_include): Use the include depth.
9762         * line-map.h (struct line_maps): New member depth.
9763
9764 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9765
9766         * cppfiles.c (stack_include_file): Don't handle -H here.
9767         * cppinit.c (cpp_start_read): Set include tracing after
9768         cpp_post_options and after stacking the main file.
9769         * line-map.c (trace_include): New.
9770         (init_line_maps, add_line_map): Update.
9771         * line-map.h (struct line_maps): New member trace_includes.
9772
9773 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9774
9775         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9776         * cppfiles.c (stack_include_file): Only stack a file if there
9777         is something to do.  Return a boolean indicating whether a
9778         buffer was stacked or not.
9779         (_cpp_execute_include): Similarly.
9780         (_cpp_read_file): Similarly.
9781         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9782
9783 2001-08-21  Sam Steingold  <sds@gnu.org>
9784
9785         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9786         (RECACHE): keep obufp_before_macroname up to date
9787
9788 2001-08-21  Zack Weinberg  <zackw@panix.com>
9789
9790         * stmt.c: Don't include insn-codes.h.
9791         (expand_end_case): Machine specific logic moved to expr.c.
9792         No need to worry about __builtin_classify_type.
9793         (check_for_full_enumeration_handling, emit_case_nodes):
9794         Kill #if 0 blocks.
9795
9796         * builtins.o (expand_builtin_classify_type): Split up so code
9797         can be shared with fold_builtin_classify_type.
9798         (type_to_class, fold_builtin_classify_type): New functions.
9799         (fold_builtins): Handle __builtin_classify_type.
9800
9801         * expr.c (do_tablejump): Now static.
9802         (case_values_threshold, try_casesi, try_tablejump): New;
9803         code mostly from stmt.c (expand_end_case).
9804         (expr.h): Update prototypes.
9805
9806         * Makefile.in (stmt.o): Update dependencies.
9807
9808 2001-08-21  Will Cohen  <wcohen@redhat.com>
9809
9810         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9811         declaration of variable i.
9812         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9813         declaration of variable i.
9814
9815 2001-08-21  Richard Henderson  <rth@redhat.com>
9816
9817         * crtstuff.c: Fix thinko last change.  Move list tails to start
9818         of CRT_END section.  Tidy ifdefs.
9819         (__EH_FRAME_BEGIN__): Always static for ELF.
9820         (__do_global_ctors_1): Rename from __frame_dummy.
9821         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
9822         name change; don't hide __EH_FRAME_BEGIN__.
9823
9824 2001-08-21  Richard Henderson  <rth@redhat.com>
9825
9826         * gdbinit.in: Move break on exit after break on fancy_abort.
9827
9828         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
9829         sized types.
9830
9831 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9832
9833         * cpphash.h (_cpp_push_next_buffer): New.
9834         * cppinit.c (do_includes): Remove.
9835         (push_include, free_chain, _cpp_push_next_buffer): New.
9836         (cpp_start_read): Use them to rework command line option handling.
9837         (cpp_handle_option): Combine handling of -include and -imacros.
9838         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
9839         appropriate.  Always insert missing \n at EOF.
9840         * cpplib.c (start_directive): Get the directive position right.
9841         * cppmain.c (cb_file_change): Always print the first line, unless
9842         preprocessed.
9843
9844 2001-08-20  Andreas Jaeger  <aj@suse.de>
9845
9846         * profile.c (compute_branch_probabilities): Remove extra new-line
9847         in error message.
9848         * flow.c (verify_flow_info): Likewise.
9849
9850 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9851
9852         * basic-block.h (basic_block): Add new field 'flags'.
9853         (BB_REACHABLE): Define.
9854         (expunge_block): Declare.
9855         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
9856         (EXIT_BLOCK_PTR): Ditto.
9857         (expunge_block): Remove static declaration.
9858         (cleanup_cfg): Clear bb->aux on every basic block.
9859         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
9860         computing reachability.
9861         (delete_unreachable_blocks): Delete block b if b->flags has
9862         BB_REACHABLE unset.
9863
9864 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9865
9866         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
9867
9868 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9869
9870         * sparc.c (sparc_variable_issue): Fix typo in last change.
9871
9872 2001-08-20  Richard Henderson  <rth@redhat.com>
9873
9874         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
9875
9876 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9877
9878         * pa.h (RETURN_IN_MEMORY): Improve comment.
9879
9880 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
9881
9882         * doc/invoke.texi (Profiling options): Clarify the interactions
9883         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
9884
9885 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
9886
9887         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
9888         command.
9889
9890 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9891
9892         * gcc.c (make_relative_prefix): Allocate a sufficiently large
9893         buffer.
9894
9895 2001-08-20  Richard Henderson  <rth@redhat.com>
9896
9897         * final.c (end_final): Fix typo last change.
9898
9899 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9900
9901         * cppinit.c (init_standard_includes): The returned buffer
9902         is already malloc-ed.
9903         * gcc.c (add_prefix): Similarly.
9904         * prefix.c (translate_name): Update to support clear buffer
9905         ownership rules.
9906         (update_path): Similarly.  Be sure to free any newly allocated
9907         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9908         (tr): New function.
9909         * prefix.h (update_path): Update prototype and document.
9910         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9911         up and update to new buffer ownership rules.
9912         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9913
9914 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
9915
9916         * final.c (compute_alignments): New function.
9917         (init_insn_lengths): Do not care label_align.
9918         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9919         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9920         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9921         (shorted_branches): Realloc label_align array; do
9922         not call init_insn_lengths; Do not care about loop alignments.
9923         * output.h (compute_alignments): Declare.
9924         * toplev.c (rest_of_compilation): Call compute_alignments.
9925         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9926
9927         * predict.c (block_info_def): Add npredecesors, remove nvisited;
9928         change visited to tovisit.
9929         (propagate_freq): Use faster traversing algorithm.
9930         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9931         to tovisit; reverse meaning.
9932
9933         * predict.c (struct block_info_def): Remove nvisited.
9934         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9935         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9936
9937 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
9938
9939         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9940         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9941         (TARGET_FUSED_MADD): New.
9942         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9943         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9944         the multiply-add instructions.
9945
9946 2001-08-19  Richard Henderson  <rth@redhat.com>
9947
9948         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9949         is aligned to pointer size.
9950
9951 2001-08-19  Richard Henderson  <rth@redhat.com>
9952
9953         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9954         display markers during final schedule.
9955
9956 2001-08-19  Richard Henderson  <rth@redhat.com>
9957
9958         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9959
9960 2001-08-19  Richard Henderson  <rth@redhat.com>
9961
9962         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9963         in the same string.
9964         (ASM_NAME_TO_STRING): Remove.
9965         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9966         in the same string.  Remove support for expressions.
9967
9968 2001-08-19  Richard Henderson  <rth@redhat.com>
9969
9970         * config/i386/i386.md (tablejump): Make an expander; handle
9971         pic relative addressing here.
9972         (tablejump_1): Rename from tablejump_pic.
9973         (casesi): Remove.
9974
9975 2001-08-19  Richard Henderson  <rth@redhat.com>
9976
9977         * regclass.c (fix_register): Fix typo.
9978
9979 2001-08-18  Richard Henderson  <rth@redhat.com>
9980
9981         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9982         (struct _Unwind_Context): Expand br_loc to hold it.
9983         (uw_frame_state_for): Handle leaf functions better.
9984         (uw_update_reg_address): Update for br_loc change.
9985
9986 2001-08-18  Richard Henderson  <rth@redhat.com>
9987
9988         * crtstuff.c: Move list heads before code that uses them.
9989         (__JCR_LIST__): Remove initial null.
9990         (frame_dummy, __frame_dummy): Do java registration here ...
9991         (__do_global_ctors_aux): ... not here.
9992
9993         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9994         (__do_global_dtors_aux): Update to match.
9995         (__JCR_LIST__, __do_jv_register_classes): New.
9996         (.init): Call it.
9997         * config/ia64/crtend.asm (__JCR_END__): New.
9998         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9999         instead of an indirect LTOFF22 reloc.
10000
10001 2001-08-18  Richard Henderson  <rth@redhat.com>
10002
10003         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
10004         * regclass.c (init_reg_sets_1): Fix typo.
10005         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
10006         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
10007         (ia64_compute_frame_size): Make ar.unat live when in use.
10008         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
10009         for ar.pfs; remove ar.unat handling.
10010         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
10011         call-saved.
10012         (PREDICATE_CODES): Add ar_pfs_reg_operand.
10013         * config/ia64/ia64-protos.h: Update decls.
10014         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
10015         (sibcall_pic): Likewise.
10016
10017 2001-08-18  Richard Henderson  <rth@redhat.com>
10018
10019         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
10020         pred_rel_mutex when searching for insn_group_barrier.
10021         * config/ia64/ia64.md (cycle_display): Combine the expander
10022         and insn patterns.
10023
10024         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
10025         bit before asm as needed.
10026
10027 2001-08-18  Richard Henderson  <rth@redhat.com>
10028
10029         * timevar.def (TV_MACH_DEP): New.
10030         * toplev.c (rest_of_compilation): Use it.
10031         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
10032
10033 2001-08-18  Zack Weinberg  <zackw@panix.com>
10034
10035         * unwind-dw2.c (execute_stack_op): Add default aborts to
10036         the inner switches to prevent warnings.
10037
10038 2001-08-18  Richard Henderson  <rth@redhat.com>
10039
10040         * timevar.h (struct timevar_time_def): Change element type to float.
10041         (ticks_to_msec, clocks_to_msec): Likewise.
10042         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
10043         (get_time): Likewise.
10044         (timevar_print): Adjust zero check and printing to match.
10045
10046 2001-08-18  Zack Weinberg  <zackw@panix.com>
10047
10048         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
10049         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
10050         Eliminate overfull or underfull hboxes.
10051
10052 2001-08-18  Zack Weinberg  <zackw@panix.com>
10053
10054         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10055
10056 2001-08-18  Zack Weinberg  <zackw@panix.com>
10057
10058         * haifa-sched.c: Convert to target hooks.  Macros replaced
10059         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
10060         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
10061         MD_SCHED_FINISH, and HAVE_cycle_display.
10062         * target-def.h (TARGET_SCHED_ADJUST_COST,
10063         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
10064         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
10065         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
10066         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
10067         New hook #defines to be overridden.
10068         (TARGET_SCHED): Bring them all together.
10069         (TARGET_INITIALIZER): Update.
10070         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
10071         instead of 'struct rtx_def *' throughout.
10072         (struct sched): New set of hooks for the scheduler.
10073         * Makefile.in (haifa-sched.o): Depend on target.h.
10074         * doc/tm.texi: Document the new scheduler hooks, together in
10075         their own section, instead of scattered around.
10076         Fix a bunch of underfull/overfull hboxes.
10077
10078         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
10079         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
10080         sparc.h: Don't define any of the old scheduler macros.
10081
10082         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
10083         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
10084         sparc.c: Create hook functions from code extracted from
10085         corresponding target header, or make existing hooks static, as
10086         appropriate.  Set the appropriate entries in targetm.
10087
10088         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
10089         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
10090         rs6000-protos.h, s390-protos.h, sparc-protos.h:
10091         Remove prototypes for functions which are now static.
10092
10093         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
10094         related gunk; the Haifa scheduler is now the only choice.
10095
10096 2001-08-18  Zack Weinberg  <zackw@panix.com>
10097
10098         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
10099         * genopinit.c: Put floating point divide insns in sdiv_optab.
10100         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
10101         * config/gofast.h, config/c4x/c4x.h,
10102         config/ia64/hpux_longdouble.h, config/mips/mips.h,
10103         config/pa/long_double.h, config/rs6000/sysv4.h,
10104         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
10105         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
10106         (init_optabs): Use init_optabv for overflow-trapping optabs.
10107         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
10108         cmp_optab RTX codes so have_insn_for can find them.
10109
10110         * optabs.c (expand_simple_binop, expand_simple_unop,
10111         have_insn_for, gen_sub3_insn): New interfaces.
10112         * expr.h: Prototype new functions.
10113         (enum optab_methods): Move here from optabs.h.
10114
10115         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
10116         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
10117         Use new functions instead of working directly with optabs.
10118         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
10119         unroll.c: Don't include optabs.h.
10120         * caller-save.c, combine.c, function.c, stmt.c: Just include
10121         insn-codes.h, not optabs.h.
10122         * Makefile.in: Update dependencies.
10123
10124         * combine.c (make_compound_operation, simplify_comparison):
10125         Fix typos testing for this or that instruction.
10126
10127 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10128
10129         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
10130         generating libgcc.a.
10131
10132 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10133
10134         * except.c (TYPE_HASH): Delete.
10135
10136         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
10137         HOST_WIDE_INT.
10138
10139         * tree.c (TYPE_HASH): Delete.
10140
10141         * tree.h (TYPE_HASH): Define.
10142
10143 2001-08-18  Graham Stott  <grahams@redhat.com>
10144
10145         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
10146         define_split.
10147         (adddi3_internal_2+2): Likewise.
10148         (eh_set_lr_di+1): Likewise.
10149
10150 2001-08-17  Richard Henderson  <rth@redhat.com>
10151
10152         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
10153         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
10154         * dwarf2asm.c: ... here.
10155         * dwarfout.c: Remove them.
10156
10157         * varasm.c (assemble_integer): Add align parameter.
10158         (assemble_real, output_constant, output_constructor): Likewise.
10159         * output.h: Update decls.
10160         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
10161         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
10162         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
10163         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
10164         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
10165         Update all callers.
10166
10167         * final.c (end_final): Abort profile block generation if we
10168         haven't layed it out properly.
10169         * output.h (assemble_eh_integer): Remove stale decl.
10170         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
10171         (min_align): New.
10172         (assemble_integer): Handle unaligned data.
10173         (assemble_real): Abort on unaligned data.
10174         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
10175         anything useful.
10176         (default_dtor_section_asm_out_destructor): Use assemble_align.
10177         (default_named_section_asm_out_constructor): Likewise.
10178         (default_ctor_section_asm_out_constructor): Likewise.
10179         * config/darwin.c (machopic_asm_out_constructor): Likewise.
10180         (machopic_asm_out_destructor): Likewise.
10181         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
10182         (nextstep_asm_out_destructor): Likewise.
10183         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
10184         (vms_asm_out_destructor): Likewise.
10185
10186 2001-08-17  Richard Henderson  <rth@redhat.com>
10187
10188         * config/mips/iris6.h (TARGET_IRIX6): New.
10189         (current_section_name, current_section_flags): New.
10190         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
10191         (MAX_OFILE_ALIGNMENT): New.
10192         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
10193         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
10194         (copy_file_data): Split out from
10195         (mips_asm_file_end): ... here.
10196         (mips_asm_file_start): Remove extra .section directive.  Use
10197         tmpfile instead of mips_make_temp_file.
10198         (mips_unique_section): Use const char * as needed for warnings.
10199         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
10200         re-add align parameter.
10201         (iris6_asm_named_section): New.
10202         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
10203         (iris6_asm_output_align, iris6_section_align_1): New.
10204         (iris6_asm_file_start, iris6_asm_file_end): New.
10205         * config/mips/mips-protos.h: Update decls.
10206
10207 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
10208
10209         * doc/install.texi (Install GCC): Add links to build status pages.
10210         (Specific): Ditto.
10211         (Final install): Ditto; request updates for specific info
10212
10213 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10214
10215         * cpperror.c (print_location):  Don't take a file name; use the
10216         line map instead.
10217         (_cpp_begin_message): Similarly.
10218         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10219         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10220         (cpp_pedwarn_with_file_and_line): Remove.
10221         * cppfiles.c (stack_include_file): Update; set filename to stdin
10222         here when appropriate.
10223         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
10224         (_cpp_begin_message): Don't take a file name.
10225         * cppinit.c: Add comment.
10226         * cpplex.c: Fix end-of-directive indicator.
10227         * cpplib.c: Don't include intl.h.
10228         (run_directive, do_diagnostic): Update.
10229         (do_line): Update to not use nominal_fname.
10230         (cpp_push_buffer): Don't take a filename.
10231         * cpplib.h (struct ht): Remove.
10232         (cpp_push_buffer): Don't take a filename.
10233         (cpp_pedwarn_with_file_and_line): Remove.
10234         * cppmacro.c (struct cpp_macro): Remove file.
10235         (builtin_macro): Update.
10236         (_cpp_create_definition): Update.
10237         * cppmain.c: Correct comment.
10238         * fix-header.c (read_scan_file): Update.
10239
10240 2001-08-17  Kazu Hirata  <kazu@hxi.com>
10241
10242         * sbitmap.c: Fix comment formatting.
10243         * sched-deps.c: Likewise.
10244         * sibcall.c: Likewise.
10245         * simplify-rtx.c: Likewise.
10246         * ssa.c: Likewise.
10247         * ssa-ccp.c: Likewise.
10248         * stor-layout.c: Likewise.
10249         * timevar.c: Likewise.
10250         * toplev.c: Likewise.
10251         * unwind-dw2.c: Likewise.
10252         * unwind-dw2-fde.c: Likewise.
10253         * varasm.c: Likewise.
10254
10255 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10256
10257         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
10258         or larger than an integer in memory.
10259
10260 2001-08-17  Zack Weinberg  <zackw@panix.com>
10261
10262         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
10263         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
10264         * rtl.h: Don't forward-declare union tree_node here.  Don't
10265         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
10266         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10267         and tree respectively.
10268         * tree.h: Don't forward-declare struct rtx_def here.  Don't
10269         typedef tree here.  Change all uses of struct rtx_def *,
10270         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10271         and tree respectively.
10272
10273 2001-08-17  Richard Henderson  <rth@redhat.com>
10274
10275         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
10276         config/mips/openbsd.h: Fix typos last change.
10277
10278 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10279
10280         * doc/invoke.texi (Optimize Options): The default for
10281         -finline-limit is 600.
10282
10283 2001-08-17  Richard Henderson  <rth@redhat.com>
10284
10285         * varasm.c (text_section): Allow TEXT_SECTION to override the
10286         printing of TEXT_SECTION_ASM_OP.
10287         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
10288         (DATA_SECTION, BSS_SECTION): Remove.
10289         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
10290         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
10291         Rename from s/_NAME//.
10292         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
10293         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
10294         (TEXT_SECTION): ... here.  New.
10295         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
10296         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
10297         * config/mips/openbsd.h: Likewise.
10298         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
10299         (mips_asm_file_end): Likewise test.
10300         (mips_output_function_epilogue): Likewise.  Switch back to data
10301         section after emitting the function.
10302
10303         * doc/tm.texi (Sections): Document TEXT_SECTION.
10304
10305 2001-08-17  Richard Henderson  <rth@redhat.com>
10306
10307         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
10308         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
10309
10310 2001-08-17  Richard Henderson  <rth@redhat.com>
10311
10312         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
10313         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
10314         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
10315         Add aligned attribute.
10316
10317 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
10318
10319         * config/sh/sh.md: Add modes to unspecs in first insn to match
10320         those in the second.
10321
10322         * Makefile.in: Fix collect2 copy for Cygwin.
10323
10324 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
10325
10326         Install the proper patch.
10327         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10328         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10329         (expand_function_start): Likewise.
10330         * stmt.c (expand_decl): Likewise.
10331         * varasm.c (make_decl_rtx): Likewise.
10332
10333 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10334
10335         * final.c: Undo my previous accidental checkin.
10336         * output.h: Likewise.
10337         * tm.texi: Likewise.
10338
10339 2001-08-16  Richard Henderson  <rth@redhat.com>
10340
10341         * varasm.c (named_section_flags): Remove align parameter.
10342         * varasm.c, dwarf2out.c: Update all callers.
10343         * output.h: Update prototypes.
10344
10345         * target.h (target.asm_out.named_section): Remove align parameter.
10346         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
10347         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
10348         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
10349         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
10350         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
10351
10352         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
10353         (get_named_section_flags, set_named_section_flags): New.
10354         (named_section_flags): Use them.
10355         (named_section): Do decl vs section flags check here...
10356         (default_section_type_flags): ... not here.
10357         (init_varasm_once): Create in_named_htab.
10358         (resolve_unique_section): Mark reloc unused.
10359
10360 2001-08-16  Richard Henderson  <rth@redhat.com>
10361
10362         * varasm.c (force_const_mem): Keep pool alignment in bits.
10363         (output_constant_pool): Use assemble_align.
10364
10365 2001-08-16  Zack Weinberg  <zackw@panix.com>
10366
10367         * doc/tm.texi: Remove extra @table command.
10368
10369 2001-08-16  Zack Weinberg  <zackw@panix.com>
10370
10371         * final.c (shorten_branches): Clear the end of the label_align
10372         array only if we made it larger.  Break up messy expressions
10373         for clarity.
10374
10375         * diagnostic.c (internal_error): Check for error recursion
10376         before doing ICE suppression.
10377
10378         * timevar.c: Timing variables now count in milliseconds.
10379         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10380         (get_time): Not here.
10381         (timevar_print): Don't print any timer whose user, cpu, and
10382         wall times are all zero as displayed.
10383         * timevar.h: Update comment aboout units.  Make timevar
10384         counters unsigned.
10385
10386 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10387
10388         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10389         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10390         (expand_function_start): Likewise.
10391         * stmt.c (expand_decl): Likewise.
10392         * varasm.c (make_decl_rtx): Likewise.
10393
10394 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
10395
10396         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10397         (finalize_record_size): Don't set TYPE_USER_ALIGN.
10398
10399 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10400
10401         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10402         variables.
10403
10404 2001-08-16  Andreas Jaeger  <aj@suse.de>
10405
10406         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10407         prototype.
10408
10409 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
10410
10411         * rtl.h (only_sets_cc0_p): New prototype.
10412         * jump.c (sets_cc0_p): Handle INSN.
10413         (only_sets_cc0_p): New function.
10414         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10415         (tidy_fallthru_edge): Likewise.
10416         * integrate.c (copy_insn_list): Likewise.
10417         * unroll.c (unroll_loop): Likewise.
10418         (copy_loop_body): Likewise.
10419
10420 2001-08-15  Jason Eckhardt  <jle@redhat.com>
10421
10422         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10423
10424 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10425
10426         * predict.c (struct block_info_def): Remove nvisited.
10427         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10428         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10429
10430         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10431         (ix86_adjust_cost): Teach scheduler that latency to load operand can
10432         be masked.
10433
10434 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
10435
10436         * predict.def: Update hitrates.
10437
10438 2001-08-15  Richard Henderson  <rth@redhat.com>
10439
10440         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10441
10442 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
10443
10444         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10445         note from its associated jump.
10446
10447 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
10448
10449         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10450         also on 64-bit s390x targets.
10451
10452 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
10453
10454         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10455         function.
10456         (arm_expand_prologue): Handled nested functions which take a
10457         variable argument list.
10458         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10459         macro with an invocation of
10460         arm_compute_initial_elimination_offset.
10461         * config/arm/arm-protos.h: Prototype
10462         arm_compute_initial_elimination_offset.
10463
10464 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10465
10466         * doc/install.texi (Specific, avr): Fix markup.
10467         (Specific, c4x): Ditto.
10468
10469 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10470
10471         * predict.c (dump_prediction): Change `bool' parameter to `int'.
10472
10473 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
10474
10475         * Makefile.in (OBJS): Add rtl-error.o
10476         (rtl-error.o): New rule.
10477         (diagnostic.o): Adjust dependency.
10478         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10479         error_for_asm, _fatal_insn, _fatal_insn_not_found,
10480         warning_for_asm): Move to...
10481         rtl-error.c: ...here.  New file.
10482
10483 2001-08-14  Richard Henderson  <rth@redhat.com>
10484
10485         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10486         if USING_SJLJ_EXCEPTIONS.
10487
10488 2001-08-14  Steve Ellcey <sje@cup.hp.com>
10489
10490         * tlink.c (scan_linker_output): Check string for unsatisfied in
10491         addition to undefined and unresolved.
10492
10493 2001-08-14  Graham Stott  <grahams@redhat.com>
10494
10495         * libgcc2.c (*): Replace EH_FRAME_SECTION with
10496         EH_FRAME_SECTION_NAME.
10497
10498 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10499
10500         * genattrtab.c (simplify_test_exp_in_temp): New function.
10501         (simplify_test_exp): Avoid explicit use of temporary obstack.
10502         (simplify_cond, insert_right_side, evaluate_eq_attr,
10503         simplify_and_tree, simplify_or_tree, eliminate_known_true):
10504         Use simplify_test_exp_in_temp.
10505         (optimize_attrs): Iterate until expression stabilizes.
10506
10507 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
10508
10509         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10510         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10511
10512 2001-08-13  Richard Henderson  <rth@redhat.com>
10513
10514         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10515         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10516         * config/arm/conix-elf.h: Likewise.
10517
10518 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10519
10520         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10521         in gcc.c.
10522         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10523
10524         * gcse.c (hash_scan_set): Expressions that are set as part of
10525         jump instructions are not available.
10526
10527 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
10528
10529         * config/s390/s390.c (print_operand, s390_function_prologue,
10530         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10531
10532 2001-08-13  Richard Henderson  <rth@redhat.com>
10533
10534         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10535         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10536         * doc/tm.texi (Exception Region Output): Document it.
10537
10538 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10539
10540         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10541         DWARF2 instead of stabs by default.
10542
10543 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10544
10545         * config/rs6000/rs6000.c: Include optabs.h.
10546
10547 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10548
10549         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10550         save/restore routines.
10551         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10552
10553 2001-08-13  Andreas Jaeger  <aj@suse.de>
10554
10555         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10556         the english is correct.
10557
10558 2001-08-13  Zack Weinberg  <zackw@panix.com>
10559
10560         * expr.h: Split out optab- and libfunc-related code to...
10561         * optabs.h, libfuncs.h: ... these new headers.
10562
10563         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10564         (OPTABS_H): New.
10565         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10566         dependencies.
10567         * mkconfig.sh: Don't include insn-codes.h from config.h.
10568
10569         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10570         enum insn_code is available.  Move reload_in_optab and
10571         reload_out_optab array declarations to optabs.h.
10572         * regmove.c (gen_add3_insn): Move to optabs.c, export from
10573         there, prototype in expr.h.
10574         * gencodes.c: Cleanup: zap global variables, don't use
10575         printf where puts will do, don't bother defining MAX_INSN_CODE
10576         which nothing uses, let CODE_FOR_nothing get its value implicitly.
10577
10578         * genemit.c, genopinit.c: Include optabs.h in generated file.
10579         * genoutput.c: Include insn-codes.h in generated file.
10580         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10581         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10582         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10583         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10584         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10585         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10586         Include optabs.h.
10587         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10588         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10589         config/m88k/m88k.c, config/sparc/sparc.c:
10590         Include libfuncs.h.
10591         * reload.c: Include expr.h and optabs.h before reload.h.
10592         * config/alpha/alpha.c: Include tree.h before reload.h.
10593         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10594         and reload.h in that order.
10595         * config/sparc/sparc.c: Include debug.h.
10596         * recog.c: Include insn-codes.h.
10597
10598 2001-08-13  Andreas Jaeger  <aj@suse.de>
10599
10600         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10601         s390*linux.
10602
10603 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10604
10605         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10606         * gcc.c (init_spec): Fix typo in comment.
10607         * varasm.c (data_section): Fix typo in comment.
10608
10609 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
10610
10611         * predict.c (dump_prediction): New argument "USED".
10612         (combine_predictions_for_insn): Determine the used heuristics,
10613         output the case no heuristic applied.
10614         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10615
10616 2001-08-13  Andreas Jaeger  <aj@suse.de>
10617
10618         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10619         register %rip.
10620
10621 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10622
10623         * jump.c: Fix formatting.
10624
10625 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10626
10627         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10628         length.
10629
10630 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
10631
10632         * loop.c (check_dbra_loop): Use condjump_label to compute
10633         jump_label.
10634
10635         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10636         to better document the files they're in.
10637
10638 2001-08-12  Zack Weinberg  <zackw@panix.com>
10639
10640         * recog.h (struct insn_operand_data): Shrink 'mode' field
10641         to 16 bits.
10642
10643 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10644
10645         * gcc.c: Fix comment formatting.
10646         * gccspec.c: Likewise.
10647         * gcov.c: Likewise.
10648         * gcse.c: Likewise.
10649         * genemit.c: Likewise.
10650         * gengenrtl.c: Likewise.
10651         * genrecog.c: Likewise.
10652         * gensupport.c: Likewise.
10653         * ggc-page.c: Likewise.
10654         * global.c: Likewise.
10655         * graph.c: Likewise.
10656         * ifcvt.c: Likewise.
10657         * integrate.c: Likewise.
10658         * lcm.c: Likewise.
10659         * libgcc2.c: Likewise.
10660         * loop.c: Likewise.
10661         * mbchar.c: Likewise.
10662         * optabs.c: Likewise.
10663         * predict.c: Likewise.
10664         * prefix.c: Likewise.
10665         * profile.c: Likewise.
10666         * protoize.c: Likewise.
10667         * real.c: Likewise.
10668         * recog.c: Likewise.
10669         * regclass.c: Likewise.
10670         * regmove.c: Likewise.
10671         * reg-stack.c: Likewise.
10672         * reload1.c: Likewise.
10673         * resource.c: Likewise.
10674         * rtlanal.c: Likewise.
10675         * rtl.c: Likewise.
10676
10677 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10678
10679         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10680         a tree representing a constant is passed to the macro.
10681
10682 2001-08-12  Richard Henderson  <rth@redhat.com>
10683
10684         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10685         (rs6000_elf_asm_out_destructor): New.
10686         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10687         (DTORS_SECTION_ASM_OP): Remove.
10688         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10689         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10690
10691 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
10692
10693         Revert:
10694         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10695         * gcc.c (set_collect_gcc_options): New function, split out from
10696         main.
10697         Ignore elided switches.
10698         (do_spec_1): Invoke before executing command.
10699         (set_input): Export.
10700         Move declaration ...
10701         * gcc.h (set_input): ... here.
10702         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10703         file.
10704
10705 2001-08-12  Richard Henderson  <rth@redhat.com>
10706
10707         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10708         thinko wrt TARGET_RELOCATABLE.
10709
10710 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10711
10712         * fix-header.c (cb_file_change): Update prototype.
10713
10714 2001-08-11  Zack Weinberg  <zackw@panix.com>
10715
10716         * toplev.c (set_float_handler): Make static.
10717         * toplev.h: Don't prototype set_float_handler.
10718
10719         * simplify-rtx.c: Don't include setjmp.h.
10720         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10721         New functions.
10722         (simplify_unary_operation, simplify_binary_operation): Use them,
10723         via do_float_handler.
10724
10725         * fold-const.c: Don't include setjmp.h.
10726         (exact_real_inverse_1): New function.
10727         (exact_real_inverse): Use it, via do_float_handler.
10728
10729         * varasm.c: Don't include setjmp.h.
10730         (assemble_real_1): New function.
10731         (assemble_real): Use it, via do_float_handler.
10732         Call internal_error if we get a trap here.
10733
10734         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10735         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10736
10737 2001-08-11  Zack Weinberg  <zackw@panix.com>
10738
10739         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10740         STACK_BOUNDARY if not already defined.
10741
10742         * calls.c, function.c, reload1.c, explow.c: Don't default
10743         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
10744         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10745
10746         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10747         to run-time test.
10748
10749         * doc/tm.texi: Document that STACK_BOUNDARY is required;
10750         clarify difference between it and PREFERRED_STACK_BOUNDARY.
10751
10752 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10753
10754         * cppmacro.c (enter_macro_context): Push macro expansions even
10755         if empty.
10756
10757 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10758
10759         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10760         (rs6000_elf_section_type_flags): Actually return a value.
10761
10762 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10763
10764         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10765         Clean up code: add missing comments and prototypes, fix warnings,
10766         remove obsolete code, fix spacing to conform to coding style.
10767
10768 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10769
10770         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10771         and TARGET_ASM_CLOSE_PAREN.
10772         (regclass_map): CC register belongs to class NO_REGS.
10773         (legitimize_pic_address): Don't generate unnecessary moves
10774         (to avoid confusing loop optimization).
10775         (check_and_change_labels): Replace jump_long by indirect_jump.
10776         (s390_final_chunkify): Don't start a new literal pool on section
10777         switch in 64-bit code.
10778         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10779
10780         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10781         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10782         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10783         modes correctly.
10784         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10785         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10786         (CONST_COSTS): Fixed incorrect costs.
10787
10788         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10789         Use emit_jump instead of emit_jump_insn (gen_jump).
10790         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10791         (to avoid confusing flow analysis).
10792         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
10793         (casesi, casesi_jump): New.
10794         (jump_long): Removed.  Functionality merged into indirect_jump.
10795         (indirect_jump): Accept address_operand, not just register_operand.
10796         (cjump_long, icjump_long): Use same logic as indirect_jump.
10797         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10798         Fixed broken setjmp/longjmp handling.
10799         (do_builtin_setjmp_setup): Removed.
10800
10801         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10802         broken GNU as versions that don't accept .quad with large
10803         negative values.  Use hexadecimal output instead.
10804         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10805         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10806         FUNCTION_EPILOGUE): Removed.  Now in targetm.
10807
10808         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10809
10810         * config/s390/fixdfdi.h: Add missing copyright statement.
10811         Fix type conflicts on 64-bit.  Add missing SFmode routines.
10812
10813         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
10814         email address.
10815
10816 2001-08-11  Richard Henderson  <rth@redhat.com>
10817
10818         * rtl.h (REG_EH_RETHROW): Remove.
10819         * rtl.c (reg_note_name): Update.
10820         * combine.c (distribute_notes): Don't check for it.
10821
10822 2001-08-11  Richard Henderson  <rth@redhat.com>
10823
10824         * combine.c (distribute_notes): Place REG_SETJMP.
10825
10826 2001-08-11  Richard Henderson  <rth@redhat.com>
10827
10828         * doc/extend.texi (Arrays and pointers implementation): Discourage
10829         relying on sign-extension of pointers.
10830
10831 2001-08-11  H.J. Lu <hjl@gnu.org>
10832
10833         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
10834         in_dtors.
10835         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
10836         RDATA_SECTION_ASM_OP.
10837
10838 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10839
10840         * doc/install.texi (Specific, c4x): Fix cross-reference to the
10841         main manual to work both for info and HTML versions.
10842
10843 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10844             Matt Kraai <kraai@alumni.carnegiemellon.edu>
10845
10846         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
10847         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
10848         (struct cpp_pool): New member first.
10849         * cppinit.c (append_include_chain): Plug memory leaks.
10850         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
10851         Allocate pragma structures from the (aligned) macro pool to
10852         avoid leaking memory.
10853         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
10854         so we don't leak memory.
10855         * hashtable.c (ht_destroy): New.
10856         * hashtable.h (ht_destroy): New.
10857
10858 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10859             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10860
10861         * c-lex.c (map): Make const.
10862         (cb_file_change): Update for callback passing a line map.
10863         Don't assume we have a previous map.  Remove sanity check
10864         about popping too many files.
10865         * cpperror.c (print_location): Make map const.
10866         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
10867         (cpp_make_system_header): Similarly.
10868         (search_from): Similarly.
10869         (_cpp_execute_include): Don't remember where we came from.
10870         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
10871         (struct cpp_reader): Make map const.
10872         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
10873         * cpplib.c (do_line): Update; line maps now hold sysp.
10874         (cpp_push_buffer): Similarly.
10875         (_cpp_do_file_change): Similarly; callback with map instead.
10876         (cpp_get_line_maps): Constify return value.
10877         (_cpp_pop_buffer): Update.
10878         * cpplib.h (struct cpp_file_change): Remove.
10879         (struct cpp_callbacks): Update.
10880         (cpp_get_line_maps): Constify return value.
10881         * cppmacro.c (_cpp_create_definition): Update.
10882         * cppmain.c (struct printer): Constify map.
10883         (maybe_print_line): Similarly.
10884         (print_line): Similarly.  Deduce flags 1 and 2 here.
10885         (cb_file_change): Update.
10886         * line-map.c (free_line_maps): Warn regardless.
10887         (add_line_map): Return pointer to const.  When passed NULL to_file
10888         with LC_LEAVE, use the obvious values for the return point so the
10889         caller doesn't have to figure them out.
10890         (lookup_line): Return pointer to const.
10891         (print_containing_files): Take pointer to const.
10892         * line-map.h (struct line_map): New members reason, sysp.
10893         (add_line_map): Return pointer to const.
10894         (lookup_line): Similarly.
10895         (print_containing_files): Take pointer to const.
10896
10897 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
10898             Richard Henderson  <rth@redhat.com>
10899
10900         * regmove.c (regmove_optimize): Avoid setting a register twice in
10901         a parallel set.
10902
10903 2001-08-10  Richard Henderson  <rth@redhat.com>
10904
10905         * doc/extend.texi (Arrays and pointers implementation): Document
10906         behavior of pointer/integer conversion.
10907
10908 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
10909
10910         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10911
10912 2001-08-10  Richard Henderson  <rth@redhat.com>
10913
10914         * doc/extend.texi (C Implementation): New chapter.
10915         * doc/gcc.texi (Top): Link it in.
10916
10917 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
10918
10919         * doc/install.texi (Specific): Fix CVS merge botch.
10920
10921 2001-08-10  Richard Henderson  <rth@redhat.com>
10922
10923         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10924         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10925
10926 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
10927
10928         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10929         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
10930         this macro is now required.
10931
10932         * cselib.c (cselib_process_insn), flow.c (propagate_block),
10933         loop.c (find_and_verify_loops), reload.c (reload): Check
10934         for rtx code of CALL_INSN, not CALL, when deciding if we
10935         need to check for REG_SETJMP note.
10936
10937         * gcse.c (compute_hash_table, compute_store_table): Update
10938         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10939         logic.
10940
10941         * config/avr/avr.c: Fix typo.
10942         * config/convex/convex.c (expand_movstr): Use adjust_address.
10943         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10944         variable.
10945         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10946         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10947         Fix typo.
10948         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10949         Do define STACK_BOUNDARY.
10950         * config/i370/i370.c: Include expr.h.
10951         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10952         config/pa/som.h, config/v850/v850.h: Take in_ctors and
10953         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10954         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10955         * config/m88k/m88k.c: Include c-tree.h after expr.h.
10956         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10957         * config/romp/romp.c: Include expr.h after tree.h.
10958         Include toplev.h.
10959         (output_fpop): Use xmalloc, not oballoc.
10960         * config/we32k/we32k.c: Include expr.h.
10961
10962 2001-08-10  Kazu Hirata  <kazu@hxi.com>
10963
10964         * config/h8300/h8300.h: Fix formatting.
10965
10966 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10967
10968         * c-common.h (RETURN_NULLIFIED_P): Lose.
10969         * c-semantics.c (genrtl_return_stmt): Don't check it.
10970
10971 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10972
10973         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10974         (mips_annotate_frame_insn): New function.
10975         (mips_emit_frame_related_store): New function.
10976         (save_restore_insns): Don't mark instructions that set up the base
10977         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
10978         the store instructions instead.
10979         (mips_expand_prologue): If the stack size is moved into a temporary
10980         register, do not mark that move as frame-related.  Add a
10981         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10982
10983 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10984
10985         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10986         stack slot as unchanging if current_function_calls_eh_return.
10987
10988 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10989
10990         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10991         access the second half of the TFmode scratch operand.
10992
10993 2001-08-10  Anthony Green  <green@redhat.com>
10994
10995         * java/class.c (emit_register_classes): Conditionalize code on
10996         JCR_SECTION_NAME.
10997
10998 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10999
11000         * doc/install.texi (Specific, avr): Fix cross-reference to the
11001         main manual to work both for info and HTML versions.
11002
11003 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11004
11005         * stmt.c (expand_null_return_1): Remove code to generate simple returns
11006         and "use_goto" argument.
11007         (expand_null_return, expand_value_return): Update all callers.
11008         * function.c (expand_function_end): Remove code to generate simple
11009         return.
11010         * config/vax/vax.md (epilogue): New expander for function return.
11011         * doc/md.texi (epilogue): Remove "if defined".
11012
11013 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11014
11015         * Makefile.in: Partially revert my previous change:
11016         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
11017         of the hashtab.o and safe-ctype.o rules.
11018
11019 2001-08-09  Richard Henderson  <rth@redhat.com>
11020
11021         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
11022         (USE_COLLECT2): Remove duplicate definition.
11023         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
11024         (use_collect2): Remove dead code.
11025         * configure.in (use_collect2): Remove will_use_collect2 and
11026         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
11027         * configure: Rebuild.
11028
11029         * target.h (targetm.asm_out.constructor): New.
11030         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
11031         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
11032         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
11033         * varasm.c (in_ctors, in_dtors): New.
11034         (assemble_constructor, assemble_destructor): Remove.
11035         (default_stabs_asm_out_destructor): New.
11036         (default_named_section_asm_out_destructor): New.
11037         (dtors_section, default_dtor_section_asm_out_destructor): New.
11038         (default_stabs_asm_out_constructor): New.
11039         (default_named_section_asm_out_constructor): New.
11040         (ctors_section, default_ctor_section_asm_out_constructor): New.
11041         * output.h: Update declarations.
11042         * c-decl.c (c_expand_body): Use target hooks instead of
11043         assemble_constructor and assemble_destructor.
11044         * profile.c (output_func_start_profiler): Likewise.
11045         * objc/objc-act.c (finish_objc): Likewise.
11046         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
11047         for the constructor.
11048         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
11049
11050         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
11051         (DTORS_SECTION_ASM_OP): Likewise.
11052         (__CTOR_LIST__): Use attribute section when possible.
11053         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
11054
11055         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
11056         ASM_OUTPUT_CONSTRUCTOR.
11057
11058         * config/darwin.c (machopic_asm_out_constructor): New.
11059         (machopic_asm_out_destructor): New.
11060         * config/darwin-protos.h: Update declarations.
11061         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11062         (ASM_OUTPUT_DESTRUCTOR): Remove.
11063         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11064         * config/nextstep.c (nextstep_asm_out_constructor): New.
11065         (nextstep_asm_out_destructor): New.
11066         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11067         (ASM_OUTPUT_DESTRUCTOR): Remove.
11068         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11069         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
11070         ASM_OUTPUT_*STRUCTOR.
11071         * config/i386/aix386ng.h: Likewise.
11072
11073         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
11074         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
11075         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11076         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11077         * config/lynx.h: Likewise.
11078         * config/netware.h: Likewise.
11079         * config/psos.h: Likewise.
11080         * config/alpha/alpha-interix.h: Likewise.
11081         * config/alpha/elf.h: Likewise.
11082         * config/arc/arc.h: Likewise.
11083         * config/arm/aof.h: Likewise.
11084         * config/arm/coff.h: Likewise.
11085         * config/arm/elf.h: Likewise.
11086         * config/c4x/c4x.h: Likewise.
11087         * config/h8300/h8300.h: Likewise.
11088         * config/i386/cygwin.h: Likewise.
11089         * config/i386/djgpp.h: Likewise.
11090         * config/i386/i386-coff.h: Likewise.
11091         * config/i386/i386-interix.h: Likewise.
11092         * config/i386/sco5.h: Likewise.
11093         * config/i386/vsta.h: Likewise.
11094         * config/i386/win32.h: Likewise.
11095         * config/i960/i960-coff.h: Likewise.
11096         * config/ia64/sysv4.h: Likewise.
11097         * config/m68hc11/m68hc11.h: Likewise.
11098         * config/m68k/coff.h: Likewise.
11099         * config/m68k/mot3300.h: Likewise.
11100         * config/m88k/m88k.h: Likewise.
11101         * config/mcore/mcore-pe.h: Likewise.
11102         * config/mcore/mcore.h: Likewise.
11103         * config/mips/elf.h: Likewise.
11104         * config/mips/elf64.h: Likewise.
11105         * config/mips/iris6.h: Likewise.
11106         * config/pa/pa64-hpux.h: Likewise.
11107         * config/rs6000/sysv4.h: Likewise.
11108         * config/sh/sh.h: Likewise.
11109         * config/sparc/litecoff.h: Likewise.
11110
11111         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
11112         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11113         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11114         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11115         (ASM_OUTPUT_DESTRUCTOR): Remove.
11116         * config/a29k/a29k.c: Move include of tree.h.
11117         * config/a29k/udi.h: Delete file.
11118         * config/alpha/alpha.c (vms_asm_out_constructor): New.
11119         (vms_asm_out_destructor): New.
11120         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
11121         (EXTRA_SECTION_FUNCTIONS): Likewise.
11122         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11123         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11124         * config/c4x/c4x.c: Move include of tree.h.
11125         * config/clipper/clipper.c (clix_asm_out_constructor): New.
11126         (clix_asm_out_destructor): New.
11127         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11128         (ASM_OUTPUT_DESTRUCTOR): Remove.
11129         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11130         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11131         (TARGET_ASM_CONSTRUCTOR): New.
11132         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
11133         (sco_asm_out_constructor): New.
11134         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
11135         * config/i386/svr3gas.h: Remove stack grows up code.
11136         Remove code duplicated from i386/sysv3.h.
11137         (TARGET_ASM_CONSTRUCTOR): New.
11138         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11139         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
11140         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11141         (TARGET_ASM_CONSTRUCTOR): New.
11142         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
11143         (m68hc11_asm_out_destructor): New.
11144         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
11145         (TARGET_ASM_DESTRUCTOR): New.
11146         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
11147         * config/m68k/dpx2.h: Properly undef all the bits inherited from
11148         config/svr3.h pertaining to section manipulation.
11149         * config/m68k/dpx2g.h: Remove #if 0 code.
11150         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
11151         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
11152         (ASM_OUTPUT_CONSTRUCTOR): Remove.
11153         (TARGET_ASM_CONSTRUCTOR): New.
11154         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
11155         (m88k_svr3_asm_out_constructor): New.
11156         (m88k_svr3_asm_out_destructor): New.
11157         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11158         (ASM_OUTPUT_DESTRUCTOR): Remove.
11159         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11160         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
11161         * config/rs6000/aix.h: Likewise.
11162         * config/mips/rtems64.h: Don't undef removed constructor related bits.
11163         * config/mips/vxworks.h: Likewise.
11164         * config/rs6000/lynx.h: Likewise.
11165         * config/sh/elf.h: Likewise.
11166         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
11167         (DTORS_SECTION_ASM_OP): New.
11168         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11169         (ASM_OUTPUT_DESTRUCTOR): Remove.
11170         * config/sparc/sol2-sld-64.h: Likewise.
11171         * config/vax/vax.c (vms_asm_out_constructor): New.
11172         (vms_asm_out_destructor): New.
11173         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11174         (ASM_OUTPUT_DESTRUCTOR): Remove.
11175         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11176
11177         * doc/tm.texi (@node Initialization): Update.
11178
11179 2001-08-09  Richard Henderson  <rth@redhat.com>
11180
11181         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
11182         (__do_global_dtors_aux): Use gp-relative static data to avoid
11183         one dynamic relocation.
11184         (__do_frame_setup): Register Java classes.
11185         * config/alpha/crtend.asm (__JCR_END__): New.
11186
11187 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11188
11189         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
11190         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
11191         (GEN, STAGESTUFF): Add new files.
11192         (insn-constants.h, s-constants, tm-preds.h, s-preds,
11193         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
11194         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
11195         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
11196         as well as insn-codes.h and insn-flags.h in config.h; and no
11197         extra headers in tconfig.h and hconfig.h.
11198
11199         * gencodes.c: Eliminate code to generate predicate declarations
11200         or #defines for md-file constants.
11201         * genconstants.c, genpreds.c: New files.
11202
11203         * i386.md: Re-order guard expressions such that TARGET_64BIT
11204         comes first, when this permits better optimization.  Add
11205         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
11206         why this is desirable.
11207
11208 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
11209
11210         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
11211         (find_fde_for_dso): Remove.
11212         (_Unwind_IteratePhdrCallback): New.
11213         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
11214         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
11215
11216 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11217
11218         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
11219         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
11220
11221 2001-08-09  Graham Stott  <grahams@redhat.com>
11222
11223         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
11224         (vis_no_unit): Use it.
11225         (visualize_no_unit): Add the insn only if room exists.
11226
11227 2001-08-09  Graham Stott  <grahams@redhat.com>
11228
11229         * predict.c (estimate_probability): Replace magic numbers with
11230         appropriate enumeration.
11231
11232 2001-08-09  Graham Stott  <grahams@redhat.com>
11233
11234         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
11235         parameter.
11236         (EXTRACT_FLAGS): Likewise.
11237
11238 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
11239
11240         * config/mips/mips.c    (mips_legitimate_address_p): Check for
11241         CONST_INT in last patch.
11242
11243 2001-08-08  Anthony Green  <green@redhat.com>
11244
11245         * java/class.c (emit_register_classes): Use assemble_jcr if
11246         possible.  Keep the original mechanism as a fallback.
11247         * defaults.h (JCR_SECTION_NAME): Define if we have named section
11248         and weak symbol support.
11249         * crtstuff.c (__JCR_LIST__): Define.
11250         (__JCR_END__): Define.
11251         (_Jv_RegiserClasses): Define weak symbol if possible.
11252         (__do_global_ctors_aux): Register classes for ELF targets with
11253         weak symbol support.
11254
11255 2001-08-08  Kazu Hirata  <kazu@hxi.com>
11256
11257         * dbxout.c: Fix comment formatting.
11258         * dependence.c: Likewise.
11259         * df.c: Likewise.
11260         * diagnostic.c: Likewise.
11261         * dominance.c: Likewise.
11262         * doprint.c: Likewise.
11263         * dwarf2out.c: Likewise.
11264         * dwarfout.c: Likewise.
11265         * emit-rtl.c: Likewise.
11266         * except.c: Likewise.
11267         * explow.c: Likewise.
11268         * expmed.c: Likewise.
11269         * expr.c: Likewise.
11270         * flow.c: Likewise.
11271         * fold-const.c: Likewise.
11272         * function.c: Likewise.
11273
11274 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11275
11276         * global.c (retry_global_alloc): Avoid shadowing allocno.
11277
11278 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
11279
11280         * except.c (remove_fixup_regions): Fix typo.
11281
11282 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
11283
11284         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
11285         unsigned HOST_WIDE_INT to avoid warning.
11286         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
11287         * flow.c (set_block_for_new_insns): Likewise.
11288
11289 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
11290
11291         * sibcall.c (return_value_pseudo): New static variable.
11292         (skip_copy_to_return_value): Handle return_value_pseudo.
11293         (call_ends_block_p): Ensure that return_value_pseudo is set.
11294         (optimize_sibling_and_tail_recursive_call): Discover the
11295         load of pseudo return value in alternate exit block.
11296
11297 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11298
11299         * calls.c (ECF_ALWAYS_RETURN): New constant.
11300         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
11301         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
11302         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
11303         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
11304         * rtl.c (reg_note_name): New name.
11305         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
11306
11307 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
11308
11309         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
11310
11311 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
11312
11313         * alias.c (get_alias_set): Return a previously calculated
11314         alias set for a VAR_DECL.
11315         * function.c (gen_mem_addressof): Calculate the alias set before
11316         touching the RTL.
11317
11318 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
11319
11320         * predict.def: Set hitrates according our experimental run.
11321
11322 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
11323
11324         * i386.h (HARD_REGNO_RENAME_OK): New macro.
11325
11326 2001-08-08  H.J. Lu <hjl@gnu.org>
11327
11328         * config/mips/mips.c (mips_unique_section): New. Copied from
11329         config/mips/elf.h.
11330
11331         * config/mips/mips-protos.h (mips_unique_section): New
11332         prototype.
11333
11334         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
11335
11336         * config/mips/little.h: New. Generic little endian mips
11337         targets. Only mips*-*-linux* is converted to use it so far.
11338
11339         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
11340         (WCHAR_TYPE): Defined
11341         (WCHAR_TYPE_SIZE): Likewise.
11342         (INIT_SUBTARGET_OPTABS): Likewise.
11343         (BSS_SECTION_ASM_OP): Likewise.
11344         (SBSS_SECTION_ASM_OP): Likewise.
11345         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11346         (ASM_DECLARE_OBJECT_NAME): Likewise.
11347         (UNIQUE_SECTION): Likewise.
11348         (EXTRA_SECTIONS): Likewise.
11349         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
11350         (ASM_OUTPUT_DESTRUCTOR): Likewise.
11351         (ASM_OUTPUT_DEF): Likewise.
11352         (HANDLE_SYSV_PRAGMA): Removed.
11353         (NO_IMPLICIT_EXTERN_C): Likewise.
11354         (TARGET_MEM_FUNCTIONS): Likewise.
11355         (STARTFILE_SPEC): Likewise.
11356         (ENDFILE_SPEC): Likewise.
11357         (LIB_SPEC): Likewise.
11358         (INVOKE__main): Likewise.
11359         (CTOR_LIST_BEGIN): Likewise.
11360         (CTOR_LIST_END): Likewise.
11361         (DTOR_LIST_BEGIN): Likewise.
11362         (DTOR_LIST_END): Likewise.
11363         (SET_ASM_OP): Likewise.
11364         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11365         (ASM_OUTPUT_DEF): Likewise.
11366         (ASM_OUTPUT_IDENT): Likewise.
11367
11368         * config/mips/mips.h (ASM_SPEC): Undefine before define.
11369         (CPLUSPLUS_CPP_SPEC): Likewise.
11370         (ASM_APP_ON) Redefine only if not defined.
11371         (ASM_APP_OFF): Likewise.
11372         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11373         (ASM_OUTPUT_IDENT): Likewise.
11374
11375         * config.gcc: Update tm_file for Linux/mips.
11376
11377 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
11378
11379         * cselib.c (cselib_record_sets): If insn is predicated, turn
11380         sources into IF_THEN_ELSEs.
11381
11382         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11383         Turn into define_insn_and_split.
11384
11385         * sched-deps.c: Include "cselib.h".
11386         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11387         Use cselib to turn memory addresses into VALUEs.
11388         (sched_analyze): Call cselib_init/cselib_finish if necessary.
11389         * sched-int.h (struct sched_info): New member USE_CSELIB.
11390         * sched-ebb.c (ebb_sched_info): Initialize it.
11391         * sched-rgn.c (rgn_sched_info): Likewise.
11392         * Makefile.in (sched-deps.o): Update dependencies.
11393
11394         * cselib.h (cselib_subst_to_values): Declare.
11395         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
11396         that have no value and autoincs to be handled by generating a new
11397         dummy value.
11398
11399 2001-08-08  Graham Stott  <grahams@redhat.com>
11400
11401         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11402         within fixed length SEQUENCE.
11403
11404 2001-08-08  Graham Stott  <grahams@redhat.com>
11405
11406         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11407         (diagnostic_prefixing_rule): Likewise.
11408         (diagnostic_line_cutoff): Likewise.
11409         (diagnostic_kind_count): Likewise.
11410
11411 2001-08-08  Graham Stott  <grahams@redhat.com>
11412
11413         * alias.c (find_base_decl): Delete redundent assignment.
11414
11415 2001-08-08  Graham Stott  <grahams@redhat.com>
11416
11417         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11418         (abs): Uppercase and paranthesize macro parameter.
11419         (MEM_DEPENDENCY): Add whitespace.
11420
11421 2001-08-08  Graham Stott  <grahams@redhat.com>
11422
11423         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11424         failure check for CONST_INT
11425
11426 2001-08-08  Graham Stott  <grahams@redhat.com>
11427
11428         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11429         (libcall_dead_p): Likewise.
11430
11431         (mark_used_regs): Constify fmt.
11432         (find_use_as_address): Likewise.
11433
11434 2001-08-08  Graham Stott  <grahams@redhat.com>
11435
11436         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11437          parameter.
11438
11439 2001-08-08  Graham Stott  <grahams@redhat.com>
11440
11441         * combine.c (combine_simplify_rtx): Update comment and
11442         remove erroneous test.
11443
11444 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11445
11446         * cppinit.c (cpp_finish): Pop the final buffer without comment.
11447         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11448         take care to avoid multiple no-newline at EOF warnings in that
11449         case.
11450
11451 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
11452
11453         * calls.c (expand_call): Do not emit INSN_SETJMP note.
11454         (emit_library_call_value_1): Likewise.
11455         (emit_call_1): Emit REG_SETJMP note.
11456         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11457         of INSN_SETJMP
11458         * cselib.c (cselib_process_insn): Likewise.
11459         * flow.c (propagate_block): Likewise.
11460         * loop.c (find_and_verify_loops): Likewise.
11461         * reload.c (find_equiv_regs): Likewise.
11462         * reload1.c (reload): Likewise.
11463         * resource.c (mark_referenced_resources,
11464         mark_set_resources): Likewise.
11465         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11466         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11467         * haifa-sched.c (unlink_other_notes): Likewise.
11468         (reemit_notes): Likewise.
11469         * sched-ebb.c (sched_ebb): Likewise.
11470         * sched-rgc.c (sched_region): Likewise.
11471         * rtl.c (note_insn_name): Likewise.
11472         (reg_note_name): Add REG_SETJMP
11473         * rtl.h (reg_note): Add REG_SETJMP.
11474         (insn_note): Remove NOTE_INSN_SETJMP.
11475
11476         * profile.c (branch_prob): Add fake edges for setjmp.
11477
11478 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
11479
11480         * config.gcc: Quote target_cpu_default2 correctly for
11481         powerpc*-*-* targets.
11482
11483 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11484
11485         * cpplib.h, line-map.h: Update comments.
11486         * cppmain.c (printer_init): Move inline.
11487         (maybe_print_line, print_line): Take a map pointer.
11488         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11489         (cb_file_change): Don't use prior value of print.map.
11490
11491 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
11492
11493         * doc/install.texi: Document fine-grained multilib configuration.
11494
11495 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11496
11497         * rtlanal.c (find_first_parameter_load): Call note_stores
11498         only on the instructions.
11499
11500 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11501
11502         * alias.c (nonlocal_mentioned_p):
11503         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11504         * calls.c (emit_call_1): Likewise.
11505         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11506         * cselib.c (cselib_process_insn): Likewise.
11507         * df.c (df_insns_modify): Likewise.
11508         * flow.c (need_fake_edge_p): Likewise.
11509         (propagate_one_insn): Likewise.
11510         * haifa-sched.c (reemit_notes): Likewise.
11511         * integrate.c (copy_insn_list): Likewise.
11512         * jump.c (delete_prior_computation): Likewise.
11513         * local-alloc.c (validate_equiv_mem): Likewise.
11514         * loop.c (scan_loop): Likewise.
11515         * predict.c (estimate_probability): Likewise.
11516         * reload.c (reload): Likewise.
11517         * sched-deps (sched_analyze): Likewise.
11518         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11519         * gcse.c (compute_hash_table): Likewise.
11520         (mark_call): Likewise.
11521         (store_killed_in_insn): Likewise.
11522
11523 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
11524
11525         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11526
11527 2001-08-06  Richard Henderson  <rth@redhat.com>
11528
11529         * varasm.c (assemble_gc_entry): Remove.
11530         * output.h: Likewise.
11531
11532 2001-08-06  Richard Henderson  <rth@redhat.com>
11533
11534         * varasm.c (assemble_constructor): Take a symbol_ref and a
11535         priority instead of a bare string.  Move priority handling
11536         here from cp/decl2.c.
11537         * output.h: Update decls.
11538
11539         * c-decl.c (c_expand_body): Update calls to assemble_constructor
11540         and assemble_destructor.
11541         * profile.c (output_func_start_profiler): Likewise.
11542         * objc/objc-act.c (finish_objc): Likewise.
11543         (build_module_descriptor): Return the symbol not the symbol name.
11544
11545 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
11546
11547         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11548         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11549         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11550         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11551         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11552         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11553
11554 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11555
11556         * cpperror.c (print_containing_files): Moved to line-map.c.
11557         (print_location): line-map.c handles re-listing or otherwise.
11558         * cpphash.h (struct lexer_state): Remove next_bol.
11559         (struct cpp_buffer): Remove include_stack_listed.
11560         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11561         Remove faked buffer handling.
11562         (_cpp_do_file_change): Tweak.
11563         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11564         * cppmain.c (struct printer): Remove filename.
11565         (print_line, cb_file_change): Update accordingly.
11566         * line-map.c: Include intl.h.
11567         (init_line_maps): Initialize last_listed.
11568         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11569         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11570         (print_containing_files): New.
11571         * line-map.h (struct line_maps): New member last_listed.
11572         (print_containing_files, INCLUDED_FROM): New.
11573         * Makefile.in: Update.
11574         * po/POTFILES.in: Add line-map.c.
11575
11576 2001-08-06  Richard Henderson  <rth@redhat.com>
11577
11578         * except.c (convert_from_eh_region_ranges_1): Never mark
11579         USE or CLOBBER insns as throwing.
11580
11581         * expr.c (store_constructor): Don't clobber memory targets.
11582
11583 2001-08-06  Andreas Jaeger  <aj@suse.de>
11584
11585         * profile.c (branch_prob): Remove unused variable insn.
11586
11587         * Makefile.in (local-alloc.o): Add dependency on except.h.
11588
11589         * local-alloc.c: Include except.h for can_throw_internal prototype.
11590
11591 2001-08-06  Richard Henderson  <rth@redhat.com>
11592
11593         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11594         * function.c (expand_main_function): Implement it.
11595         * doc/tm.texi: Document it.
11596
11597 2001-08-06  Stan Shebs  <shebs@apple.com>
11598
11599         * doc/install.texi: Document powerpc-*-darwin* details.
11600
11601 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
11602
11603         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11604         (ASM_CPU_SPEC): Move back to rs6000.h
11605         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11606
11607         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11608
11609         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11610         readded.
11611
11612         * config/rs6000/linux64.h: Ditto.
11613
11614         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11615         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11616         nothing.
11617
11618         Remove accidently readded definitions of FUNCTION_PROLOGUE,
11619         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11620
11621         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11622         to rs6000.h
11623
11624 2001-08-05  Richard Henderson  <rth@redhat.com>
11625
11626         * local-alloc.c (update_equiv_regs): Do not move insns that
11627         can throw.
11628
11629 2001-08-05  Jan Hubicka  <jh@suse.cz>
11630
11631         * Makefile.in (reload1.o): Add dedendancy on except.h
11632         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11633         prototypes.
11634         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11635         indicating wehther edges has been cleaned up.
11636         * reload1.c: Inlucde except.h
11637         (fixup_abnormal_edges): Accept deleted insns.
11638         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11639         after combine.
11640
11641 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11642
11643         * cpplib.c (do_line): Correct line number after pop_buffer.
11644
11645 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11646
11647         PR preprocessor/3824
11648         * line-map.c: Update comments.
11649         * line-map.h: Update comments.
11650         * tradcif.y: Don't consider large numbers unsigned.
11651
11652 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11653
11654         PR preprocessor/3081
11655         * c-lex.c (map): New.
11656         (cb_file_change): Update map and use it.
11657         (cb_def_pragma, cb_define, cb_undef): Use map and line.
11658         (c_lex): Update to use map.
11659         * cpperror.c (print_location): Move to using logical line numbers.
11660         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11661         (cpp_make_system_header): Similarly.
11662         (_cpp_execute_include): Stop line numbering hacks.  Store the
11663         line we will return to.
11664         * cpphash.h (CPP_BUF_LINE): Remove.
11665         (struct cpp_buffer): Remove lineno and pseudo_newlines.
11666         Add map and return_to_line.
11667         (_cpp_do_file_change): Update.
11668         * cppinit.c (cpp_start_read): Update line kludge.
11669         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11670         (trigraph_ok): Use logical line numbers for diagnostics.
11671         (skip_block_comment): Likewise.
11672         (skip_whitespace): Likewise.
11673         (skip_line_comment): Use pfile->line instead.
11674         (_cpp_lex_token): Update to use logical line numbering exclusively.
11675         Handle BOL locally.  Accept new lines in directives, but keep
11676         pfile->line decremented.  Diagnostics use logical lines.  Update
11677         directive handling.
11678         * cpplib.c (SEEN_EOL): New.
11679         (skip_rest_of_line, check_eol): Use it.
11680         (end_directive): Increase line number when accepting the newline
11681         at the end of a directive.
11682         (run_directive): Simplify.
11683         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
11684         (_cpp_do_file_change): Update to take buffer line number as an
11685         argument, and store the current map in the cpp_reader.  Remove
11686         line number kludges.
11687         (_cpp_do__Pragma): Restore output position after a _Pragma.
11688         (cpp_push_buffer): Don't set output line or lineno.
11689         (_cpp_pop_buffer): Transfer more info from a faked buffer.
11690         Remove line kludge.  Set output_line.
11691         * cppmacro.c (builtin_macro): Update handling of __LINE__.
11692         (parse_arg): Use logical lines.
11693         (save_lookahead_token): Save EOFs too now.
11694         * cppmain.c (struct printer): Fix comments.
11695         (printer_init): Simplify, let caller do errors.
11696         (scan_translation_unit, check_multiline_token, dump_macro): Update.
11697         (maybe_print_line): Simplify.
11698         (print_line): Don't print a linemarker if -P.
11699         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11700         (cb_file_change): Simplify.
11701         * line-map.h (LAST_SOURCE_LINE): Fix.
11702         (CURRENT_LINE_MAP): New.
11703
11704 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
11705
11706         * doloop.c (doloop_modify_runtime): Properly compute number of
11707         iterations if loop was unrolled.
11708
11709         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11710         if their CSELIB_VAL_PTRs are.
11711
11712         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11713         (setup_spill_pointers): Initialize it.
11714         (spill_restore_mem): Set it.
11715         (do_spill, do_restore): Use it to add REG_INC note.
11716         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11717
11718         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11719         asms if other insns are available.
11720
11721         * config/ia64/ia64.c (condop_operator): New predicate.
11722         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11723         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11724         patterns.
11725
11726         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11727         temporary register than directly using a MEM.
11728
11729 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11730
11731         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11732         parameter in last change.
11733
11734 2001-08-04  Zack Weinberg  <zackw@panix.com>
11735
11736         * sparc.md: Don't use #if inside C test expression.
11737
11738 2001-08-04  Richard Henderson  <rth@redhat.com>
11739
11740         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11741
11742 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11743
11744         * cpphash.h (struct cpp_reader): New member directive_line.
11745         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11746         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11747         do_pragma): Pass line to callbacks.
11748         (start_directive): Record line of directive.
11749         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11750         cb_include): Similarly.
11751         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11752         Similarly.
11753
11754 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11755
11756         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11757         comment.
11758
11759 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11760
11761         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11762
11763         * reload1.c (fixup_abnormal_edges): New static function.
11764         (reload): Use it.
11765
11766         * flow.c (need_fake_edge_p): New function.
11767         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11768         avoid call insn to be very last insn in the insn stream.
11769
11770         * profile.c (branch_prob): Call flow_call_edges_add instead of
11771         doing that by hand; cleanup cfg to re-merge basic blocks once
11772         we are done.
11773
11774 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11775
11776         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11777         are also on line-map.h.
11778         * cppfiles.c (stack_include_file): Update.
11779         * cpphash.h (struct cpp_buffer): New member return_at_eof.
11780         (_cpp_pop_buffer): New.
11781         * cppinit.c (cpp_destroy, cpp_finish): Update.
11782         (do_includes): Mark each buffer to return at EOF.
11783         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
11784         return as requested.
11785         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11786         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
11787         * cpplib.h (cpp_pop_buffer): Remove.
11788         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11789         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
11790         buffers.
11791         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
11792         to pop buffers.
11793         (do_preprocessing): Update.
11794         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
11795         * c-parse.in (_yylex): Similarly.
11796         * scan-decls.c (scan_decls): Similarly.
11797         * line-map.h: Update comments.
11798
11799         * objc/Make-lang.in (objc-act.o): Update dependencies.
11800
11801 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11802
11803         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11804         and soft register for operand 0.
11805         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11806
11807 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11808
11809         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11810         register for operand 0.
11811         ("bitcmpqi_z_used"): Allow memory for operand 0.
11812         (split "bitcmpqi"): New split to handle address reg as operand 1.
11813
11814 2001-08-04  Andreas Jaeger  <aj@suse.de>
11815
11816         * gcse.c: Revert Daniel's last patch.
11817
11818 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11819
11820         * sparc-protos.h: Add prototypes for fp_zero_operand and
11821         reg_or_0_operand.
11822         * sh-protos.h: Add prototype for fpul_operand.
11823
11824 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11825
11826         * doc/extend.texi (Other Builtins): Fix typo in last change.
11827
11828 2001-08-03  Richard Henderson  <rth@redhat.com>
11829
11830         * target.h (gcc_target): Add asm_out.named_section,
11831         section_type_flags, have_named_sections.
11832         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
11833         (TARGET_HAVE_NAMED_SECTIONS): New.
11834         (TARGET_SECTION_TYPE_FLAGS): New.
11835
11836         * Makefile.in (toplev.o): Depend on TARGET_H.
11837         (varasm.o, dbxout.o): Likewise.
11838         * c-common.c (decl_attributes): Check targetm.have_named_sections
11839         instead of ifdef ASM_OUTPUT_SECTION_NAME.
11840         * dbxout.c (dbxout_function_decl): Likewise.
11841         (dbxout_function_end): Likewise.
11842         * toplev.c (compile_file): Likewise.
11843         * varasm.c (exception_section): Likewise.
11844         * cp/decl2.c (finish_objects): Likewise.
11845
11846         * defaults.h (EH_FRAME_SECTION): Remove.
11847         (EH_FRAME_SECTION_ASM_OP): Remove.
11848         (EH_FRAME_SECTION_NAME): New.
11849         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
11850         (UNIQUE_SECTION_P): Remove.
11851         * dwarf2out.c (SECTION_FORMAT): Remove.
11852         (ASM_OUTPUT_SECTION): Remove.
11853         (output_call_frame_info): Use named_section_flags.
11854         (output_comp_unit, dwarf2out_start_source_file): Likewise.
11855         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
11856         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
11857         * varasm.c (in_eh_frame, eh_frame_section): Remove.
11858         (named_section_flags): New.
11859         (named_section): Use it and targetm.section_type_flags.
11860         (resolve_unique_section): New.
11861         (assemble_start_function): Use it.
11862         (asm_emit_uninitialised, assemble_variable): Likewise.
11863         (default_section_type_flags): New.
11864         (default_no_named_section, default_elf_asm_named_section): New.
11865         (default_coff_asm_named_section, default_pe_asm_named_section): New.
11866         * output.h: Update varasm.c decls.
11867         (SECTION_*): New flags.
11868
11869         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
11870         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
11871
11872         * config/elfos.h (UNIQUE_SECTION_P): Remove.
11873         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
11874         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
11875         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11876         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
11877         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
11878         * config/mips/elf.h, config/mips/elf64.h: Likewise.
11879         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
11880         * config/pa/pa64-hpux.h,
11881
11882         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
11883         (TARGET_ASM_NAMED_SECTION): New.
11884         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
11885         * config/alpha/vms.h, config/arm/coff.h: Likewise.
11886         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
11887         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
11888         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
11889         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
11890         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11891         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
11892         * config/i386/sco5.h, config/i386/win32.h: Likewise.
11893         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
11894         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
11895         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
11896         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11897         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11898         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11899         * config/sparc/sysv4.h: Likewise.
11900
11901         * config/nextstep.h: Error until named sections implemented.
11902
11903         * config/a29k/a29k.c (a29k_asm_named_section): New.
11904         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11905         (vms_section_type_flags, vms_asm_named_section): New.
11906         * config/arm/arm.c (arm_elf_asm_named_section): New.
11907         * config/avr/avr.c (asm_output_section_name): Remove.
11908         * config/avr/avr-protos.h: Update.
11909         * config/c4x/c4x.c (c4x_asm_named_section): New.
11910         * config/h8300/h8300.c (h8300_asm_named_section): New.
11911         * config/i386/i386.c (sco_asm_named_section): New.
11912         * config/i386/winnt.c (SECTION_PE_SHARED): New.
11913         (i386_pe_section_type_flags): New.
11914         (i386_pe_asm_named_section): New.
11915         * config/i386/i386-protos.h: Update.
11916         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11917         * config/mcore/mcore.c (mcore_asm_named_section): New.
11918         * config/mips/mips.c (iris6_asm_named_section): New.
11919         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11920         instead of UNIQUE_SECTION_P.
11921         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11922         (xcoff_asm_named_section): New.
11923         * config/sh/sh.c (sh_asm_named_section): New.
11924         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11925
11926         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11927         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11928         (EH_FRAME_SECTION_NAME): New.
11929         (EXCEPTION_SECTION): New.
11930         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11931         (DEBUG_*_SECTION): Remove.
11932         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11933         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11934         (EH_FRAME_SECTION_ASM_OP): Remove.
11935
11936         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11937         (ASM_OUTPUT_SECTION_NAME): Remove.
11938         (TARGET_ASM_NAMED_SECTION): New.
11939         (TARGET_HAVE_NAMED_SECTIONS): New.
11940         (TARGET_SECTION_TYPE_FLAGS): New.
11941         (EH_FRAME_SECTION_ASM_OP): Remove.
11942         (EH_FRAME_SECTION_NAME): New.
11943
11944 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11945
11946         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11947         for complex expressions when cfun == 0.
11948         * doc/extend.texi: Document that __builtin_constant_p can be
11949         used in data initializers as well as functions.
11950
11951 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
11952
11953         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11954         variable I locally, instead of expecting a declaration in the
11955         calling context.
11956
11957 2001-08-03  Richard Henderson  <rth@redhat.com>
11958
11959         * except.c (collect_one_action_chain): Add an explicit cleanup
11960         action if regions surrounding a catch were encoded entirely
11961         within the call-site entry.
11962
11963 2001-08-03  Richard Henderson  <rth@redhat.com>
11964
11965         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11966         don't take REGNO of a non-register.
11967
11968 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11969
11970         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11971         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11972         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11973         (__gthread_mutex_init_function): New function for mutex initialization.
11974
11975 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11976
11977         * Makefile.in: Revert screwed up commit.
11978
11979 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11980
11981         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11982         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11983         merged by linker script to get a final _exit().
11984         (__do_global_dtors): New for destructor handling in specific exit
11985         section.
11986         (__do_global_ctors): New for constructors in specific install section.
11987         (__map_data_section): Map data sections before running constructors.
11988         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11989         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11990         (DTORS_SECTION_ASM_OP): Likewise.
11991         (CTORS_SECTION_FUNCTION): Define to force a reference to
11992         __do_global_ctors.
11993         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11994
11995 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11996
11997         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11998
11999         * Makefile.in: Add df.h to gcse.c dependencies.
12000
12001 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12002
12003         * varasm.c (output_constant_def_contents): Use for the length of a
12004         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
12005         depending on which is larger.
12006
12007 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12008
12009         * gcse.c: Include df.h for use as a dataflow analyzer.
12010         Remove regvec.
12011         Declaration of reg_set_info: gone.
12012         New df_analyzer variable used by store motion.
12013         (reg_set_info): Deleted.
12014         (mark_mem_regs): New function, analyze regs used by a mem.
12015         (store_ops_ok): Use dataflow analyzer results to determine if
12016         necessary regs are changed in the block.
12017         (find_moveable_store): Remove check for symbol ref, we can handle
12018         much more complex expressions now.
12019         (compute_store_table): Remove most of the code, it's unnecessary
12020         now that the dataflow analyzer records the info for us.
12021         (store_killed_after): Add parameter to say whether to do the
12022         store_ops_okay test, used to speed up testing when we already know
12023         the answer, and just want to know if the store itself was killed.
12024         (build_store_vector): Largely rewritten to calculate the various
12025         vectors properly, and somewhat optimized.
12026         (store_motion): Init the df_analyzer, get REG_DEF chains.
12027         Also handle trapping expressions (since mems almost always trap)
12028         (simple_mem): Redefine what a simple mem is.
12029
12030 2001-08-03  DJ Delorie  <dj@redhat.com>
12031
12032         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
12033         set from a constant part of the condition.
12034
12035 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
12036
12037         * mkdeps.c (deps_add_default_target): Make local variable
12038         ``start'' a const char pointer.
12039         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
12040
12041 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12042
12043         * doc/install.texi (Configuration): Fix markup.
12044         (Specific, i?86-*-udk): Likewise.
12045         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
12046         --with-gnu-ld.
12047         Document --enable-threads and --enable-libgcj status.
12048         (Specific, mips-sgi-irix*): Canonicalize triples.
12049         (Specific, mips-sgi-irix5): Warn about problems with this config.
12050         Mention required GNU as patch.
12051         Native assembler problems are fixed.
12052         (Specific, mips-sgi-irix6): Update O32 ABI support status.
12053         Document --enable-threads and --enable-libgcj status.
12054
12055 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12056
12057         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
12058         of mkinstalldirs.
12059
12060 2001-08-03  Richard Henderson  <rth@redhat.com>
12061
12062         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
12063         constant data.
12064
12065 2001-08-03  Richard Henderson  <rth@redhat.com>
12066
12067         * rtlanal.c (find_first_parameter_load): Stop if we
12068         reach a CODE_LABEL at BOUNDARY.
12069
12070 2001-08-03  Richard Henderson  <rth@redhat.com>
12071
12072         * config/alpha/alpha.md (force_movdi): New insn.
12073         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
12074         Tweek FRP marking of VMS prologue insns.
12075         * config/alpha/vms.h (EPILOGUE_USES): New.
12076
12077 2001-08-02  Richard Henderson  <rth@redhat.com>
12078
12079         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
12080
12081 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12082
12083         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
12084         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
12085         config/convex/convex.h, config/d30v/d30v.c,
12086         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12087         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
12088         config/mips/mips.h, config/mn10200/mn10200.h,
12089         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
12090         config/v850/v850.h, config/vax/openbsd.h,
12091         config/vax/openbsd1.h, config/vax/ultrix.h,
12092         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
12093         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
12094         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
12095         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
12096         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
12097         in comments and documentation.
12098
12099 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12100
12101         * line-map.c: New.
12102         * line-map.h: New.
12103         * Makefile.in (line-map.o): New.
12104         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
12105         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
12106         * cpperror.c (print_containing_files): Similarly.
12107         (print_location): Update.  Don't output a space before _Pragma.
12108         * cppfiles.c (stack_include_file): Set to line 1 immediately.
12109         (stack_include_filee, cpp_make_system_header): Update.
12110         (_cpp_execute_include): Get logical line number right for calling
12111         as-yet-unterminated #include.
12112         * cpphash.h (struct cpp_reader): Add line_maps.
12113         (_cpp_do_file_change): Update.
12114         * cppinit.c (cpp_create_reader): Initialize line maps.
12115         (cpp_destroy): Destroy line maps.
12116         (cpp_start_read): Get logical line number right.
12117         * cpplex.c (parse_string): Only warn once for multi-line strings.
12118         Use boolean variable for null warning.
12119         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
12120         already.
12121         (do_include_common): End the directive early.
12122         (do_line): Don't warn about out-of-range lines in preprocessed
12123         source.  Update.  Remove unused variables.
12124         (_cpp_do_file_change): Update for new line mapping.
12125         (pragma_cb): New typedef.
12126         (cpp_register_pragma): Stop looking ahead before calling the
12127         handler.  Clean up.
12128         (do_pragma_system_header): End directive early.
12129         (cpp_get_line_maps): New.
12130         (cpp_pop_buffer): Fudge logical line.  Update.
12131         * cpplib.h: Include line-map.h
12132         (enum cpp_fc_reason): Remove.
12133         (struct cpp_file_change): Update.
12134         (cpp_get_line_maps): New.
12135         * cppmain.c (struct_printer): New member map.
12136         (cb_file_change): Update for new mappings.
12137         * fix-header.c (cb_file_change): Similarly.
12138
12139 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12140
12141         * Makefile.in (libgcc.mk): Define mkinstalldirs.
12142         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
12143
12144 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12145
12146         * config/vax/vax.c: include expr.h.
12147
12148 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12149
12150         * Makefile.in ($(srcdir)/configure): Only rebuild in
12151         maintainer mode.
12152         ($(srcdir)/config.in): Only define in maintainer mode.
12153         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
12154
12155 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
12156
12157         * doc/install.texi (Install GCC: Binaries): Update Bull info.
12158
12159 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12160
12161         * gcc.c (set_collect_gcc_options): New function, split out from
12162         main.
12163         Ignore elided switches.
12164         (do_spec_1): Invoke before executing command.
12165         (set_input): Export.
12166         Move declaration ...
12167         * gcc.h (set_input): ... here.
12168         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12169         file.
12170
12171 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
12172
12173         Kill -fhonor-std.
12174         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
12175         interaction.
12176         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
12177
12178 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
12179
12180         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
12181         for the unnamed instructions it expands to.
12182
12183 2001-08-02  Richard Henderson  <rth@redhat.com>
12184
12185         * regclass.c (call_really_used_regs): Conditionally define.
12186         (init_reg_sets_1): Don't use it if not defined.
12187         (fix_register): Similarly, don't set it.
12188
12189 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12190
12191         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
12192         Correct comment that had been missed in the previous change.
12193
12194 2001-08-01  Stan Shebs  <shebs@apple.com>
12195
12196         * config/darwin.c (machopic_stub_name): Try matching by name.
12197         (update_stubs): New function.
12198         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
12199         unconditionally.
12200
12201 2001-08-01  Richard Henderson  <rth@redhat.com>
12202
12203         * except.c (output_function_exception_table): Use assemble_align.
12204         * varasm.c (assemble_eh_label): Remove.
12205         (assemble_eh_align, assemble_eh_integer): Remove.
12206
12207 2001-08-01  Robert Lipe  <robertl@caldera.com>
12208
12209         * dwarfout.c: Remove reference to README.DWARF.
12210
12211 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
12212
12213         * regclass.c (call_really_used_regs): New array for registers which
12214         are actually used by a call.
12215         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
12216         new array.
12217         (fix_register): Set call_really_used too.
12218         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
12219         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
12220
12221 2001-08-01  Richard Henderson  <rth@redhat.com>
12222
12223         * read-rtl.c (read_name): Consider \r whitespace.
12224
12225 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
12226
12227         * config.gcc: Recognize powerpc-*-netbsd*.
12228
12229         * doc/install.texi (Host/target specific installation notes for
12230         GCC): Mention powerpc-*-netbsd*.
12231
12232         * config/rs6000/netbsd.h: New file.
12233         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
12234         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
12235         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
12236         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
12237         (TARGET_VERSION): Redefine.
12238
12239         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
12240         mcall-netbsd as a match for mcall-sysv.
12241         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
12242         (ncrti.S, ncrtn.S): New targets.
12243         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
12244
12245         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
12246         "netbsd' as a V4 ABI.
12247         (ASM_SPEC): Check for -mcall-netbsd.
12248         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
12249         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
12250         (LIB_SPEC, ENDFILE_SPEC): Ditto.
12251         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
12252         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
12253         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
12254         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
12255
12256         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
12257         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
12258
12259 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12260
12261         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
12262         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
12263         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
12264         including "unwind-pe.h".
12265
12266 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12267
12268         * rs6000.md (define_splits): Kill unused constraints.
12269
12270 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
12271                               Jan Hubicka  <jh@suse.cz>
12272
12273         * function.c (thread_prologue_and_epilogue_insns): Kill code
12274         dealing with non-existent CFG.
12275
12276 2001-08-01  Kazu Hirata  <kazu@hxi.com>
12277
12278         * alias.c: Fix comment formatting.
12279         * bitmap.c: Likewise.
12280         * builtins.c: Likewise.
12281         * calls.c: Likewise.
12282         * c-common.c: Likewise.
12283         * c-decl.c: Likewise.
12284         * c-dump.c: Likewise.
12285         * c-lex.c: Likewise.
12286         * collect2.c: Likewise.
12287         * combine.c: Likewise.
12288         * conflict.c: Likewise.
12289         * cppfiles.c: Likewise.
12290         * cppinit.c: Likewise.
12291         * cpplex.c: Likewise.
12292         * cpplib.c: Likewise.
12293         * cppmacro.c: Likewise.
12294         * cppspec.c: Likewise.
12295         * c-pragma.c: Likewise.
12296         * crtstuff.c: Likewise.
12297         * cse.c: Likewise.
12298         * cselib.c: Likewise.
12299         * c-semantics.c: Likewise.
12300         * c-typeck.c: Likewise.
12301
12302 2001-08-01  H.J. Lu <hjl@gnu.org>
12303
12304         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
12305
12306 2001-08-01  H.J. Lu <hjl@gnu.org>
12307
12308         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
12309
12310 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
12311
12312         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
12313         contextualizing Objective-C class name lookup by the lexer.
12314         (typespec_reserved_nonattr): Disable ObjC class name lookup after
12315         seeing a TYPESPEC.
12316         (protocoldef): Add support for forward @protocol declarations.
12317         (yylexname): Suppress ObjC class name lookup in certain contexts;
12318         re-enable after lookup is complete.
12319         (_yylex): Re-enable ObjC class name lookup when certain
12320         punctuation marks are seen.
12321
12322         * objc/objc-act.c (check_protocol_recursively): New function used
12323         for finding circular dependencies in protocols.
12324         (objc_declare_protocols): New function for handling forward
12325         @protocol declarations.
12326         (receiver_is_class_object): Detect the case when 'self' is used
12327         inside of a class method.
12328         (build_message_expr): Issue a warning if class method is desired
12329         but instance method is found instead.
12330         (conforms_to_protocol): Streamline.
12331         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
12332         protocol Foo, even if 'Bar foo' does not.
12333         (check_protocols): Streamline.
12334         (start_protocol): Add checks for circular and duplicate protocol
12335         definitions.
12336         (encode_aggregate_within): For typedefs of structs, encode the
12337         underlying struct.
12338         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
12339         (objc_declare_protocols): New prototype.
12340
12341 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12342
12343         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
12344         * cpplex.c (handle_newline): Update prototype.  Maintain logical
12345         line number.
12346         (skip_escaped_newlines, skip_block_comment, parse_string):
12347         Update accordingly.
12348         (_cpp_lex_token): Update, and store token position within the token.
12349         * cpplib.h (struct cpp_token): Add line and column entries.
12350         * cppmacro.c (replace_args): Position stringified tokens correctly.
12351
12352 2001-08-01  Andreas Jaeger  <aj@suse.de>
12353
12354         * basic-block.h: Add prototype for last_loop_beg_note.
12355
12356 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
12357
12358         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
12359         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12360         comment.
12361         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12362         while handling WITH_CLEANUP_EXPR node. Use second operand calling
12363         expand_decl_cleanup.
12364         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12365         the first RTX.
12366         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12367         operand while calling simple_cst_equal.
12368         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12369         operand is the cleanup expression, the third is the RTL_EXPR.
12370         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12371
12372 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
12373
12374         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12375
12376 2001-07-31  matthew green  <mrg@eterna.com.au>
12377
12378         * config.gcc (i386-*-netbsdelf): New description.
12379         * config/i386/netbsd-elf.h: New file.
12380
12381 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
12382
12383         * loop.c (check_dbra_loop): Use single_set to compute
12384         jump_label.
12385
12386 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
12387
12388         PowerPC reorg and support for powerpc64-*-linux*.
12389
12390         Also fixes emitting of constants on 32 bit and 64 bit
12391         platforms.
12392
12393         * config.gcc: powerpc64-*-linux* is a new target.
12394         Things that needed aix.h now also include xcoff.h
12395
12396         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12397         xcoff.h.
12398         Move AIX specific stuff into aix.h.
12399         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12400         with more than just XCOFF now.
12401         (SET_ASM_OP): Remove, now defined where needed.
12402         (FUNCTION_PROLOGUE): New macro definition.
12403         (FUNCTION_EPILOGUE): New macro definition.
12404         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12405
12406         * config/rs6000/xcoff.h: New file.
12407
12408         * config/rs6000/linux64.h: New file.
12409
12410         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12411
12412 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
12413
12414         * rs6000.c (print_operand_address): Handle ELF syntax.
12415         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
12416         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12417         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12418
12419 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
12420
12421         * rs6000.c (rs6000_override_options): Only disable
12422         flag_function_sections for XCOFF.
12423         (exact_log2_cint_operand): New predicate.
12424         (reg_or_{add,sub}_cint64_operand): New predicates.
12425         (add_operand): Compare CONST_INT with fewer function calls.
12426         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12427         (print_operand, case 'p'): Ensure positive operand.
12428         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12429         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12430         (PREDICATE_CODES): Add new predicates.
12431         * rs6000.md (addsi3): Split 32-bit constants more correctly.
12432         (divsi3, modsi3): Ensure positive power-of-2.
12433         (adddi3): Use new predicate.  Split 32-bit constants more
12434         correctly.  Re-arrange splitter to handle any constant.
12435         (subdi3): Use new predicate.
12436         (divdi3, moddi3): Ensure positive power-of-2.
12437         (movdi): Use rs6000_emit_set_const.
12438         (load_toc_v4_pic_di): Delete.
12439
12440 2001-07-31  Graham Stott <grahams@redhat.com>
12441
12442         * function.c (pad_below): Revert 2001-07-26 patch.
12443
12444 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12445
12446         * reg-stack (convert_regs_1): Fix best edge condition.
12447
12448 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12449
12450         * jump.c (duplicate_loop_exit_test): Better test for jumps
12451         entering the loop; create loop pre_header.
12452
12453 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12454
12455         * doc/install.texi: Add s390 and s390x as new targets.
12456         * doc/invoke.texi: Add documentation of S/390 and zSeries
12457         target options.
12458         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12459
12460 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12461
12462         * config/m68k/m68k.md: Replace all general_operand with
12463         nonimmediate_operand for all destinations.
12464         * config/m68k/m68k.c (not_sp_operand): Likewise.
12465
12466 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
12467
12468         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12469
12470 2001-07-30  Richard Henderson  <rth@redhat.com>
12471
12472         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12473         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12474
12475 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12476
12477         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12478         Add missing doc strings
12479         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12480         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12481
12482 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
12483
12484         * i386.c (ix86_output_main_function_alignment_hack): New function.
12485         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12486
12487         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12488         edges by EDGE_DFS_BACK flag.
12489         (dump_edge_info): Add dfs_back flag.
12490         * basic-block.h (EDGE_DFS_BACK): New constant.
12491         (mark_dfs_back_edges): Declare.
12492         * alias.c (loop_p): Remove.
12493         (mark_constant_function): Use mark_dfs_back_edges.
12494
12495         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12496         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12497         (compensate_edge): Break out from ...
12498         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12499         (convert_regs_2): Set block_done once block is really done;
12500         Do updating of the predecessors counts.
12501
12502         * toplev.c (rest_of_compilation): Recompute block_for_insn
12503         before post-reload cfg_cleanup.
12504         * function.c (thread_prologue_epilogue_insns):
12505         Call set_block_for_new_insns when emitting prologue directly.
12506
12507 2001-07-30  Andreas Jaeger  <aj@suse.de>
12508
12509         * jump.c: Add prototype for mark_modified_reg.
12510
12511         * cse.c (set_live_p): Add unused attribute.
12512
12513         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12514         overflow.
12515         (scan_for_source_files): Use long for count to avoid overflow.
12516         (output_data): Likewise.
12517         (output_data): Don't use string concatatenation to silence gcc
12518         -traditional.
12519
12520         * predict.c: Fix typos and grammar.
12521
12522         * gcse.c (insert_insn_end_bb): Remove unused variables.
12523
12524 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
12525
12526         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12527         (attempt_auto_inc): LIkewise.
12528         (mark_used_reg): Likewise.
12529         (try_pre_increment_1): Likewise.
12530         * regclass.c (regclass): Likewise.
12531         * global.c (allocno_compare): Update comment; change scaling factor.
12532         * local-alloc.c (QTY_CMP_PRI): Likewise.
12533         * regs.h (REG_FREQ_FROM_BB): New.
12534         (REG_FREQ_MAX): Likewise.
12535
12536 2001-07-30  H.J. Lu <hjl@gnu.org>
12537
12538         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12539         -D_GNU_SOURCE.
12540
12541 2001-07-30  H.J. Lu  (hjl@gnu.org)
12542
12543         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12544         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12545         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12546
12547 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
12548
12549         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12550         as -mthumb-interwork when -mcpu=arm7 is specified.
12551
12552 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12553
12554         * predict.def (noreturn, loop branch, loop exit): Mark as first
12555         match heuristics.
12556
12557 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
12558
12559         * combine.c (try_combine): Avoid barrier after noop jumps.
12560
12561 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12562
12563         * cpphash.h (struct cpp_reader): Remove import_warning.
12564         * cpplib.c (skip_rest_of_line): Don't bother turning off
12565         macro expansion.
12566         (parse_include): Move include handling to...
12567         (do_include_common): ... here.  Move import warning from...
12568         (do_import): ... here.
12569         (do_pragma_poison): Don't do a callback for poison identifiers.
12570         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12571         * cppmain.c (setup_callbacks): Similarly.
12572
12573 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
12574
12575         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12576         handle multiple sets.
12577         * except.c (sjlj_mark_call_sites): .... here.
12578         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12579
12580 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
12581
12582         Suggested by Richard Henderson and Richard Kenner:
12583         * combine.c (recog_for_combine): Use the fake recog
12584         only if instruction does not match.
12585         * rtl.h (NOOP_MOVE_INSN_CODE): New.
12586         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12587
12588         * combine.c (try_combine): Discover noop jump as direct jump.
12589
12590 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
12591
12592         * df.c (df_rd_global_compute): Add successors to worklist, not
12593         current item.
12594         (df_ru_global_compute): Ditto.
12595
12596 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
12597
12598         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12599         increment REG_N_SETS.
12600
12601 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
12602
12603         * sbitmap.h: New prototype for sbitmap_a_xor_b.
12604
12605         * sbitmap.c (sbitmap_a_xor_b): New function.
12606         ifdef the basic block stuff on IN_GCC.
12607
12608 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12609
12610         * cppexp.c (parse_defined): Always record the macro name.
12611         (lex): Don't worry about identifiers, or special-case
12612         CPP_NOT here.
12613         (_cpp_parse_expr): Figure out at the end of the routine
12614         whether we saw a valid !defined() expression.
12615         * cppfiles.c (stack_include_file): Update for mi_valid.
12616         (_cpp_pop_file_buffer): Similarly.
12617         * cpplex.c (_cpp_lex_token): Similarly.
12618         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12619         mi_if_not_defined, mi_lexed): Remove.
12620         (mi_valid): New.
12621         * cpplib.c (do_if): Simplify.
12622         (do_endif, push_conditional, _cpp_handle_directive): Update
12623         for renaming of mi_state to mi_valid.
12624 doc:
12625         * cpp.texi: Add index entries for digraphs, and add comment
12626         that C++ refers to them as alternative tokens.
12627
12628 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
12629
12630         * basic-block.h (CLEANUP_PRE_LOOP): New.
12631         * except.c (finish_eh_generation): Update call of cleanup_cfg.
12632         * sibcall.c (optimize_sibling_calls): Likewise.
12633         * toplev.c (rest_of_compilation): Likewise.
12634         * flow.c (try_forward_edges): Take argument MODE;
12635         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12636         (try_optimize_cfg): Update call of try_forward_edges.
12637
12638 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12639                                 Jan Hubicka  <jh@suse.cz>
12640
12641         * (validate_replace_rtx_1): Fix simplification of MINUS.
12642
12643 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12644
12645         PR preprocessor/3669
12646         * cppinit.c (init_dependency_output): Turn off dump requests
12647         if sending dependencies to stdout.
12648
12649 2001-07-28  Richard Henderson  <rth@redhat.com>
12650
12651         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12652         not optimizing.
12653
12654 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
12655
12656         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12657
12658 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12659
12660         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12661         is VAR_DECL first to prevent an ICE.
12662
12663 2001-07-28  Richard Henderson  <rth@redhat.com>
12664
12665         * varasm.c (immed_real_const_1): Don't elide special cases for
12666         nested functions.
12667         (clear_const_double_mem): Clear const_tiny_rtx too.
12668
12669 2001-07-28  Richard Henderson  <rth@redhat.com>
12670
12671         * dwarf2out.c (dw_val_class_offset): New.
12672         (struct dw_ranges_struct, dw_ranges_ref): New.
12673         (ranges_table, ranges_table_allocated): New.
12674         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12675         (add_AT_offset, add_ranges, output_ranges): New.
12676         (print_die, output_die): Handle dw_val_class_offset.
12677         (attr_checksum, size_of_die, value_format): Likewise.
12678         (gen_lexical_block_die): Handle non-contiguous blocks.
12679         (gen_block_die): Likewise.
12680         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12681         if needed.  Dump the ranges table.
12682         * final.c (final_start_function): Remove unnecessary notes and
12683         rebuild the block tree before numbering the blocks.
12684         * function.c (reorder_blocks_0): Walk the existing block tree
12685         to unmark all blocks.
12686         (reorder_blocks_1): Create block fragments when duplicate block
12687         notes are seen.
12688         (reorder_fix_fragments): New.
12689         (reorder_blocks): Call it.
12690         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12691
12692 2001-07-28  Richard Henderson  <rth@redhat.com>
12693
12694         * emit-rtl.c (adjust_address): Make a copy of the memory address.
12695
12696 2001-07-28  Richard Henderson  <rth@redhat.com>
12697
12698         * flow.c (add_to_mem_set_list): New function.
12699         (init_propagate_block_info): Use it.
12700         (mark_set_1): Likewise.
12701         (insn_dead_p): Canonicalize memory address for dead store
12702         comparison.  Allow wider mode stores to kill narrower mode stores.
12703         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12704         (invalidate_mems_from_set): Don't handle MEMs.
12705
12706 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12707
12708         * config/h8300/h8300.h: Fix formatting.
12709
12710 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12711
12712         * basic-block.h (EDGE_FREQUENCY): New macro.
12713         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12714         for new BB/edges.
12715         * flow.c (find_sub_basic_blocks): Likewise.
12716         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12717         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12718
12719         * predict.c (DEF_PREDICTOR): New argument FLAGS.
12720         (HITRATE): New macro.
12721         (PRED_FLAG_FIRST_MATCH): New constant.
12722         (predictor_info): New field flgags.
12723         (combine_predictions_for_insn): Use DS theory to combine
12724         probabilities; set the edge probabilities when finished.
12725         (estimate_probability): Avoid duplicated matches
12726         of LOOP_BRANCH heuristics for nested loops; update comment.
12727         * predict.def: Add flags for each prediction, set probabilities
12728         according to B&L paper.
12729         * predict.h (DEF_PREDICTOR): New argument FLAGS.
12730
12731         * profile.c (compute_branch_probabilities):  Cleanup way the edge
12732         probabilities are computed and REG_BR_PROB notes are dropped; if
12733         values does not match, emit error.
12734         (init_branch_prob): Do error instead of warning when profile driven
12735         feedback is missing or corrupt.
12736
12737 2001-07-27  DJ Delorie  <dj@redhat.com>
12738
12739         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12740         against a constant, try to adjust the compare to have the desired
12741         constant in it so that min/max optimizations happen more often.
12742
12743 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12744
12745         * flow.c (last_loop_beg_note): New function.
12746         (redirect_edge_and_branch): Use it.
12747         (split_edge): Likewise.
12748
12749         * alias.c (loop_p): Avoid uninitialized memory access.
12750
12751         * flow.c (try_forward_edges): Avoid accessing freed memory.
12752
12753         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12754         variable access.
12755
12756 2001-07-26  Andrew Haley  <aph@redhat.com>
12757         Joern Rennecke <amylaar@redhat.com>
12758
12759         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12760         (SUBTARGET_CPP_ENDIAN_SPEC): New.
12761         (SUBTARGET_CPP_SPEC): New.
12762         (CPP_SPEC): Remove.
12763         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12764         (SUBTARGET_CPP_PTR_SPEC): New.
12765         (CPP_DEFAULT_CPU_SPEC): New.
12766         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12767         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12768         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12769         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12770         (SUBTARGET_CPP_SPEC): Define as an empty string.
12771
12772 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12773
12774         * doc/install.texi (Configuration): Properly link the host
12775         specific instructions also when generating HTML.
12776
12777 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
12778
12779         * flow.c (redirect_edge_and_branch_force): Test
12780         target->global_live_at_start.
12781
12782 2001-07-26  Richard Henderson  <rth@redhat.com>
12783
12784         * simplify-rtx.c (avoid_constant_pool_reference): Export.
12785         * rtl.h (avoid_constant_pool_reference): Declare it.
12786         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12787         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12788
12789 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12790
12791         * rtl.h (cleanup_barriers): Declare.
12792         * jump.c (cleanup_barriers): New function.
12793         * toplev.c (rest_of_compilation): Call cleanup_barriers
12794         before loop optimizer and after bb_reorder.
12795
12796         * flow.c (back_edge_of_syntactic_loop_p): New.
12797         (split_edge): Use it.
12798
12799 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12800
12801         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12802
12803 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
12804
12805         * cse.c (cse_process_notes): Replace any registers if the address
12806         remains valid.
12807
12808 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
12809
12810         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12811         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12812         (propagate_block): Update prototype.
12813         * flow.c (update_life_info): Simplify the CFG and
12814         recalculate the global regs which are alive when
12815         removing dead code during a global update.
12816         (propagate_block): Return non-zero if an INSN is
12817         deleted.
12818
12819 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12820
12821         * Makefile.in (LIBICONV): Define.
12822
12823 2001-07-26  Catherine Moore  <clm@redhat.com>
12824
12825         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
12826         of conditional to avoid tree checking errors.
12827
12828 2001-07-26  Kazu Hirata  <kazu@hxi.com>
12829
12830         * regmove.c (regmove_optimize): Don't replace a reg with
12831         another reg of a different mode.
12832
12833 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
12834
12835         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
12836         limit length of dependency flush list.
12837         * params.h (MAX_PENDING_LIST_LENGTH): Define.
12838         * sched-int.h  (struct deps): Add pending_flush_length field.
12839         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
12840         has 1 element in it.
12841         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
12842         (sched_analyze): After a jump, if the pending memory flush list is too
12843         large, flush the pending lists.
12844         (init_deps): Initialize pending_flush_length to 0.
12845         * doc/invoke.texi (max_pending_list_length): Document parameter.
12846
12847 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12848
12849         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
12850         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
12851         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
12852
12853 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12854
12855         * cpphash.h (struct_lexer_state): Delete was_skipping.
12856         Move skipping here from struct cpp_reader.
12857         * cpplex.c (parse_identifier): Update.
12858         (_cpp_lex_token): Don't skip tokens in a directive.
12859         * cpplib.c (struct if_stack): Update.
12860         (start_directive, end_directive): Don't change skipping state.
12861         (_cpp_handle_directive): Update.
12862         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
12863         (do_else, do_endif): Update; only check for excess tokens if not
12864         in a skipped conditional block.
12865         (push_conditional): Update for new struct if_stack.
12866
12867 2001-07-26  Graham Stott  <grahams@redhat.com>
12868
12869         * function.c (locate_and_pad_parm): Also pad initial offset
12870         so that the total argument size also includes the padding.
12871
12872 2001-07-26  Graham Stott <grahams@redhat.com>
12873
12874         * gensupport.c (alter_output_for_insn): Correct enable checking failure
12875         change XSTR to XTMPL.
12876
12877         (process_one_cond_exec): Likewise
12878
12879 2001-07-25  Richard Henderson  <rth@redhat.com>
12880
12881         * varasm.c (assemble_variable): Create DECL_RTL before setting
12882         TREE_ASM_WRITTEN.
12883
12884 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
12885
12886         * predict.c (estimate_probability): Avoid duplicated predictions.
12887
12888         * loop.c (find_and_verify_loops): Grok multiple barriers.
12889
12890 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12891
12892         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
12893
12894         * dbxout.c: Consistently use putc instead of fputc.
12895         (print_wide_int): New function; call instead of direct fprintf.
12896         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12897         (dbxout_type_fields, dbxout_type_method_1): Likewise.
12898         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12899         (print_int_cst_octal): Likewise.
12900         (print_octal): Show we wrote characters.
12901         (dbxout_type): Set have_used_extensions in more places.
12902
12903 2001-07-25  Catherine Moore  <clm@redhat.com>
12904
12905         * config/v850/v850.c (v850_va_arg):  Use addr
12906         instead of valist to build incr.
12907
12908 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
12909
12910         * flow.c (delete_dead_jumptables): New function.
12911         (life_analyzis): Call it.
12912         * bb-reorder.c (skip_insns_after_block): Handle contradictory
12913         sequences.
12914
12915 2001-07-25  Richard Henderson  <rth@redhat.com>
12916
12917         * except.c (reachable_handlers): Handle a region being removed
12918         out from under a RESX.
12919
12920 2001-07-25  Richard Henderson  <rth@redhat.com>
12921
12922         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12923         swap GE/GT if it is an fp comparison.
12924
12925 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
12926
12927         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12928         operands.
12929
12930 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
12931
12932         * ssa.c (rename_insn_1): Do not wrap an assignment to a
12933         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
12934         glitch.
12935
12936         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12937         throw an exception.
12938         (visit_expression): When attempting to simplify an expression,
12939         retrieve any modes for arguments before they are simplified
12940         to constants.
12941
12942 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12943             Janis Johnson  <janis@us.ibm.com>
12944
12945         * stmt.c (expand_goto): A nonlocal goto can be a call too.
12946         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12947         pointer parameters to match documented usage of nonlocal_goto.
12948         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12949         parameters to their correct order.
12950         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12951         parameters to their correct order.
12952
12953 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12954
12955         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12956
12957 2001-07-25  Jan Hubicka  <jh@suse.cz>
12958             Richard Henderson  <rth@redhat.com>
12959
12960         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12961         the sequence.
12962         (make_edges): New argument update_p; populate the edge cache if set.
12963         (find_basic_blocks): Update make_edges invocation.
12964
12965 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12966
12967         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12968
12969 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12970
12971         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12972         -Acpu and -Amachine.h.
12973         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12974         Corrected header to say ELF not a.out.
12975         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12976         when given -msoft-float.
12977
12978 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12979
12980         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12981         extra multilib parts like arm-elf.
12982         (i960-*-coff*, i960-*-rtems): Should not use collect2.
12983         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12984         crtfini.o as extra multilib parts.
12985
12986 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12987
12988         * configure.in: Add rtems as a supported thread model.
12989         * gthr-rtems.h: Add missing entry point __gthread_active_p.
12990         * configure: Rebuilt.
12991
12992 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
12993
12994         * stor-layout.c (get_mode_alignment): make it work when
12995         BITS_PER_UNIT is not a power of two.
12996         * builtins.c (get_pointer_alignment): Likewise.
12997
12998 2001-07-24  Richard Henderson  <rth@redhat.com>
12999
13000         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
13001         the retrieved constant into the expected mode.
13002
13003 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13004
13005         * flow.c (try_simplify_condjump): Avoid duplicated edges.
13006         (verify_flow_info): Check for duplicated edges; clarify
13007         error reporting.
13008
13009         * flow.c (block_label): Update basic_block_for_insn.
13010         (commit_edge_insertions): Call compute_bb_for_insn.
13011
13012         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
13013         returns too.
13014
13015         * flow.c (redirect_edge_and_branch,
13016         try_optimize_cfg): Use redirect_edge_succ_nodup
13017         (redirect_edge_succ_nodup): New.
13018         * basic_block.h (redirect_edge_succ_nodup): Declare.
13019
13020         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
13021         after gcse.
13022
13023 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
13024
13025         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
13026         (try_crossjump_to_edge): Update commetns.
13027         (try_crossjump_bb): Likewise.
13028
13029 2001-07-24  Richard Henderson  <rth@redhat.com>
13030
13031         * combine.c (distribute_notes): Move set of need_refresh
13032         for noop_move_p down to catch all cases.
13033
13034 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
13035
13036         * recog.c (split_all_insns_noflow): New.
13037         * rtl.h (split_all_insns_noflow): Declare.
13038         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
13039         * m68hc11.c (m68hc11_reorg): Likewise.
13040         * sh.c (machine_dependent_reorg): Likewise.
13041         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
13042         call.
13043
13044 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13045
13046         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
13047         (ashlsi3_n splitter): Likewise.
13048         (lshrsi3_n splitter): Likewise.
13049
13050         (GOTaddr2picreg): Make const SImode.
13051         (sym_label2reg): Likewise.
13052         (symGOT2reg): Likewise.
13053         (symGOTOFF2reg) Likewise.
13054
13055         (casesi_worker_0): Make unspec SImode.
13056
13057 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13058
13059         * config/sh/sh.c (barrier_align): Check that an operand really is
13060         an insn before extracting its INSN_CODE.
13061
13062 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
13063
13064         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
13065         dangling else.
13066
13067         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
13068         for SImode to prevent overflow.
13069
13070 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13071
13072         * config/mips/irix6-libc-compat.c: New file.
13073         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
13074         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
13075         passing workaround.
13076
13077 2001-07-24  lars brinkhoff  <lars@nocrew.org>
13078
13079         * rtl.texi (REG_POINTER): Document.
13080         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
13081         QFmode, HFmode, TQFmode, QCmode, and HCmode.
13082
13083 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
13084
13085         * flow.c (delete_noop_moves): Do not confuse libcall regions.
13086
13087 2001-07-23  Richard Henderson  <rth@redhat.com>
13088
13089         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
13090
13091 2001-07-23  Kazu Hirata  <kazu@hxi.com>
13092
13093         * config/h8300/h8300-protos.h: Add a prototype for
13094         general_operand_dst_push.
13095         * config/h8300/h8300.c (general_operand_dst_push): New.
13096         * config/h8300/h8300.h (OK_FOR_T): New.
13097         (EXTRA_CONSTRAINT): Use it.
13098         * config/h8300/h8300.md (movqi_push): Remove and integrate into
13099         the existing movqi pattern.
13100         (movhi_push): Likewise.
13101
13102         * reload.c: Fix comment typos.
13103
13104 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
13105
13106         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
13107
13108 2001-07-23  H.J. Lu  (hjl@gnu.org)
13109
13110         * doc/extend.texi: Update __builtin_return_address and
13111         __builtin_frame_address.
13112
13113 2001-07-23  Richard Henderson  <rth@redhat.com>
13114
13115         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
13116         before CSE.
13117         * config/i386/i386.md: New setcc+movzbl peephole2.
13118
13119 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13120
13121         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
13122         * objc/objc-act.c: Include debug.h.
13123         (synth_module_prologue): Save and restore debug hooks too.
13124
13125 2001-07-23  lars brinkhoff  <lars@nocrew.org>
13126
13127         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
13128         and C4X_FLOAT_FORMAT.
13129         (BOOL_TYPE_SIZE): Document.
13130
13131 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
13132
13133         * unroll.c (loop_iterations): Fix miscalculation of initial
13134         giv offset.
13135
13136 2001-07-13  Andrew Haley  <aph@redhat.com>
13137
13138         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
13139         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
13140         * config/sh/sh.c (sh_can_redirect_branch): New function.
13141         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
13142         * reorg.c (steal_delay_list_from_target): Use
13143         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
13144
13145 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
13146
13147         * flow.c (try_simplify_condjump): Unlink insn chain on
13148         fallthru edge; use can_fallthru.
13149
13150 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
13151
13152         * basic-block.h (find_sub_basic_block): Declare.
13153         * flow.c (make_edges): New arguments MIN and MAX;
13154         (find_sub_basic_blocks): Revamp to use make_edges
13155         and purge_dead_edges.
13156         (find_basic_blocks): Update call of find_sub_basic_block.
13157
13158         * recog.c (split_all_insns): Always expect CFG to be consistent;
13159         call find_sub_basic_blocks in case something has changed.
13160         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
13161         has been built.
13162
13163         * basic-block.h (delete_noop_moves): Declare.
13164         * combine.c (combine_instructions): Call it.
13165         (recog_for_combine): Tolerate noop moves
13166         (distribute_notes): Force refresh when register dies at noop move.
13167         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
13168         too.
13169         (life_analysis): Update delete_noop_moves call.
13170         (set_noop_p): Move too ...
13171         * rtlanal.c (noop_move_p): ... here.
13172         * rtl.h (noop_move_p): Declare.
13173
13174         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
13175         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
13176         after combine.
13177         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
13178         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
13179
13180 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
13181
13182         * reload.c (push_reload): Fix typo in comment.
13183         (find_reloads_address): Ditto.
13184         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
13185
13186 2001-07-22  Richard Henderson  <rth@redhat.com>
13187
13188         * flow.c: Grammar check and clarify a lot of comments.
13189         (try_simplify_condjump): Rename variables to be clearer.
13190         (try_forward_edges): Skip complex and fallthru edges.
13191         Rearrange tests to avoid duplicate checks.
13192         (flow_find_cross_jump): Likewise.
13193         (outgoing_edges_match): Allow match if neither branch has
13194         probability data.  Loosen probability match to 5%.
13195         (try_crossjump_to_edge): Hoist repeated indirection into
13196         local variables.
13197         (try_crossjump_bb): Don't check complex edges.  Eliminate
13198         redundant crossjump tests.
13199         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
13200         checks before more expensive checks.
13201
13202 2001-07-22  Richard Henderson  <rth@redhat.com>
13203
13204         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
13205         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
13206         arguments.
13207
13208 2001-07-22  Richard Henderson  <rth@redhat.com>
13209
13210         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
13211         (const_sint32_operand): Likewise.
13212         * m68k.md (anon mulsi pattern): Use const_int_operand not
13213         const_sint32_operand.
13214         (umulsi3_highpart): Zero extend a constant input.
13215         (smulsi3_highpart): Don't bother checking SImode constant.
13216         (const_umulsi3_highpart): Give op3 DImode.
13217         (const_smulsi3_highpart): Likewise.
13218
13219 2001-07-22  Richard Henderson  <rth@redhat.com>
13220
13221         * flow.c (split_block): Make sure bb_note is included in the
13222         new block when splitting before a label.
13223
13224 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
13225
13226         * basic-block.h (redirect_edge_and_branch_force,
13227         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
13228         * flow.c (redirect_edge_and_branch_force,
13229         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
13230         (redirect_edge_and_branch_force): Fix copying of lifeness information.
13231         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
13232         * ifcvt.c (dead_or_predictable): Take BB as an new destination
13233         instead of label; update CFG after transformation.
13234         (find_if_case_1): Update call, use redirect_edge_and_branch_force
13235         for finishing the transformation; handle even case where ELSE
13236         does not follow THEN.
13237         (find_if_case_2): Update call of dead_or_predictable; simplify
13238         CFG update.
13239
13240         * emit-rtl.c (split_branch_probability): New global variable.
13241         (try_split): Take care to set split_branch_probability and
13242         create REG_BR_PROB note for new jump insns.
13243         * md.texi (define_split): Document new feature.
13244
13245         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
13246
13247 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13248
13249         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
13250         (asm_out_file): Remove redundant declaration.
13251         (assemble_asm): Remove old #if 0 block.
13252         (assemble_variable): Remove end of function; debug output is
13253         now handled with global_decl.  Remove old #if 0 block.  Update.
13254         Remove saved_in_section and associated no-op code.
13255         * Makefile.in (varasm.o): Correct dependencies.
13256
13257 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
13258
13259         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13260         the definition in defaults.h.
13261
13262 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
13263
13264         * jump.c: Update comments.
13265         (delete_barrier_successors, delete_unreferenced_labels,
13266         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
13267         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
13268         jump_optimize, jump_optimize_minimal): Kill.
13269         (rebuild_jump_labels): Move code from jump_optimize_1.
13270         (purge_line_number_notes): Likewise.
13271         (copy_loop_headers): Likewise.
13272         * reg-stack.c: Update comment.
13273         * stmt.c: Likewise.
13274         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
13275         JUMP_AFTER_REGSCAN): Kill.
13276         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
13277         purge_line_number_notes and copy_loop_headers.
13278
13279 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
13280            Richard Henderson  <rth@redhat.com>
13281
13282         * dbxout.c (dbxout_global_decl): New.
13283         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13284         * sdbout.c (sdbout_finish): New.
13285         (sdbout_debug_hooks): Use it, add comments.
13286         (sdbout_global_decl): Defer initialised public vars to
13287         sdbout_finish.
13288         * varasm.c (assemble_variable): Don't output debug information
13289         for file-scope variables.
13290
13291 2001-07-22  Richard Henderson  <rth@redhat.com>
13292
13293         * config/alpha/alpha.c (get_trap_mode_suffix): New.
13294         (get_round_mode_suffix): New.
13295         (print_operand): Use them for [/].  Remove support for [&'`()+].
13296         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
13297         * config/alpha/alpha.md (attr round_suffix): New.
13298         (attr trap_suffix): New.
13299         (all insns): Set them appropriately.  Use %/ instead of the
13300         myriad punctuators.
13301
13302 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13303
13304         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
13305
13306 2001-07-22  Richard Henderson  <rth@redhat.com>
13307
13308         * regrename.c (regrename_optimize): Compute nregs for each
13309         potential target register.
13310
13311 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
13312            Richard Henderson  <rth@redhat.com>
13313
13314         * dbxout.c (dbxout_global_decl): New.
13315         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13316         * sdbout.c (sdbout_finish): New.
13317         (sdbout_debug_hooks): Use it, add comments.
13318         (sdbout_global_decl): Defer initialised public vars to
13319         sdbout_finish.
13320         * varasm.c (assemble_variable): Don't output debug information
13321         for file-scope variables.
13322
13323 2001-07-21  H.J. Lu  (hjl@gnu.org)
13324
13325         * config/mips/mips.c (mips_cpu): Moved into ...
13326         (override_options): Here.
13327
13328         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
13329         mips_tune.
13330         (mips_cpu): Removed.
13331
13332 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13333
13334         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
13335         ("iorqi3"): Likewise.
13336         ("xorqi3"): Likewise.
13337         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
13338         ("*subhi3_sp): Likewise.
13339         ("*subhi3"): Likewise.
13340         ("extendhisi2"): Accept D, X and Y as source operand to avoid
13341         reload problems.
13342
13343 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13344
13345         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
13346         * config/freebsd.h: Likewise.
13347         * config/linux.h: Likewise.
13348         * config/openbsd.h: Likewise.
13349         * config/alpha/linux-elf.h: Likewise.
13350         * config/arm/linux-elf.h: Likewise.
13351         * config/d30v/d30v.h: Likewise.
13352         * config/fr30/fr30.h: Likewise.
13353         * config/ia64/aix.h: Likewise.
13354         * config/ia64/ia64.h: Likewise.
13355         * config/mips/linux.h: Likewise.
13356         * config/pj/pj.h: Likewise.
13357         * config/rs6000/linux.h: Likewise.
13358         * config/sparc/linux.h: Likewise.
13359         * config/sparc/linux64.h: Likewise.
13360
13361 2001-07-20  Bruce Korb  <bkorb@gnu.org>
13362
13363         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13364         because getc() and char* may disagree on signedness.
13365
13366 2001-07-20  Richard Henderson  <rth@redhat.com>
13367
13368         * doc/rtl.texi (REG_DEAD): Update for current semantics.
13369
13370         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13371         insns to delete in the presence of cc0 in a jump insn.
13372
13373 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13374                                 Jan Hubicka  <jh@suse.cz>
13375
13376         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13377         of doing the change by hand.
13378
13379 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13380
13381         * rtlanal.c (set_noop_p): Return true for noop jumps.
13382
13383         * expr.c (emit_single_push_insn): Add call to push expander.
13384         * expr.h (optab_index): Add OTI_push
13385         (push_optab): New constant.
13386         * genopinit.c (optabs): Add push_optab.
13387         * optabs.c (init_optab): Init push optab.
13388         * md.texi (push??1): Document
13389
13390 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13391
13392         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13393         expand to emit the pattern; put a REG_INC note for push/pop
13394         instructions.
13395         ("movdf", "movdf_internal"): Likewise.
13396         ("movsi", "movsi_internal"): Likewise.
13397         ("movsf", "movsf_internal"): Likewise.
13398         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13399
13400 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13401
13402         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13403         gen_highpart.
13404
13405 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
13406
13407         * params.def: Change default max inline insns to 100.
13408
13409 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
13410
13411         * combine.c (combine_simplify_rtx): Generate a new shift operation
13412         when simplifying the first operand of a (neg (ashift)) expression.
13413
13414 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
13415
13416         * regclass.c (N_REG_INTS): Use only 32 bits per element.
13417
13418 2001-07-20  Kelley Cook  <kelley.cook@home.com>
13419
13420         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13421         information.   Move rest into ...
13422         (*-*-solaris): ... here.  Eliminate redundant information and
13423         reword necessary packages section.  Delete 4.x assembler bug info.
13424         (sparc-sun-*): Merge into ...
13425         (sparc-sun-sunos*): here.
13426
13427 2001-07-20  Catherine Moore  <clm@redhat.com>
13428
13429         * config/v850/v850.md (casesi): Generate LABEL_REF
13430         with Pmode.
13431
13432 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13433
13434         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13435         * i386.c (ix86_zero_extend_to_Pmode): Make global.
13436         * i386.md (strclrsi expander): Use it.
13437
13438 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13439
13440         * integrate.c (copy_insn_list): handle
13441         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13442         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13443         identically as to CODE_LABEL.
13444
13445         * fold-const (fold): Convert A/B/C to A/(B*C) and
13446         A/(B/C) to (A/B)*C
13447
13448         * except.c (connect_post_landing_pads): Delete the RESX insns.
13449
13450 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
13451
13452         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13453
13454         * config/mips/mips.md (nmadd/nmsub): Use macro.
13455
13456 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13457
13458         * cppinit.c (remove_dup_dir): Make static.
13459         (remove_dup_dirs): Make static. Only warn about preempting a
13460         system directory with a non-system directory.
13461
13462 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13463
13464         * ifcvt.c (noce_try_store_flag_constants): Correct order
13465         of parameters to trunc_int_for_mode.
13466
13467 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
13468
13469         * reorg.c (fill_simple_delay_slots): If an instruction might throw
13470         an exception that will be caught within this function, do not fill
13471         its delay slot with any subsequent instruction.
13472
13473 2001-07-19  Steve Ellcey <sje@cup.hp.com>
13474
13475         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13476         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13477         pointer extension instruction.
13478         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13479         * simplify-rtx.c (simplify_unary_operation) Likewise.
13480         * explow.c (convert_memory_address) Check value of
13481         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13482         less than zero.
13483         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13484         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13485         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13486         Add Multilib Support.
13487         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
13488         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13489         Add Multilib Support.
13490         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13491         support.
13492         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13493         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13494         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13495
13496 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
13497
13498         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13499         old and new operands in `<', `3' and `b'.
13500
13501 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13502
13503         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13504         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13505         (toplev.o): Don't depend on xcoffout.h.
13506         * c-decl.c: Include debug.h
13507         (duplicate_decls): Use debug hook.
13508         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13509         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13510         (dbxout_types): Remove.
13511         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13512         * debug.c (do_nothing_debug_hooks): Update.
13513         (debug_true_tree, debug_nothing_rtx): New.
13514         * debug.h (struct rtx_def): New.
13515         (struct gcc_debug_hooks): New hooks ignore_block,
13516         outlining_inline_function and label.
13517         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13518         dwarf2out_frame_finish): New.
13519         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13520         Make static, update prototype.
13521         (dwarf2_debug_hooks): Update.
13522         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13523         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13524         * dwarfout.c (dwarf_debug_hooks): Update.
13525         * emit-rtl.c: Include debug.h.
13526         (remove_unnecessary_notes): Use debug hook.
13527         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13528         (final_scan_insn): Use debug hook.
13529         * integrate.c (output_inline_function): Use debug hook.
13530         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13531         (sdb_debug_hooks): Update.
13532         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13533         * toplev.c: Don't include xcoffout.h.
13534         (note_outlining_of_inline_function, debug_ignore_block): Remove.
13535         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13536         Remove.
13537         * tree.h (dwarf2out_do_frame): Remove.
13538
13539 2001-07-19  Catherine Moore  <clm@cygnus.com>
13540
13541         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13542
13543 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13544
13545         * reload1.c (eliminate_regs_in_insn): When updating a set
13546         to the frame pointer to the hardware frame pointer, perform
13547         the update always not just when REPLACE is set.
13548
13549         * reload1.c (choose_reload_regs): Don't inherit a reload
13550         that crosses multiple registers if registers past the first
13551         don't fit in the desired class.
13552
13553         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13554         when negating constants.
13555
13556 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13557
13558         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13559         * doc/tree.texi: Ditto.
13560
13561 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
13562             Jakub Jelinek  <jakub@redhat.com>
13563
13564         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13565         (extract_cie_info): Handle "eh" augmentation properly,
13566         remember eh_ptr.
13567         (struct frame_state, __frame_state_for): New.
13568
13569 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13570
13571         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13572         HANDLE_SYSV_PRAGMA): Define.
13573         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13574         previous args.
13575         (copy_object): Caller changed.
13576
13577 2001-07-19  Andreas Schwab  <schwab@suse.de>
13578
13579         * configure.in (assembler dwarf2 debug_line support): Define nop
13580         insn for m68k.
13581         * configure: Regenerated.
13582
13583 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13584
13585         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13586         dwarfout.h.
13587         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13588         to conditionally compiled block.
13589         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13590         * dbxout.h (dbxout_function): Remove.
13591         * debug.c (do_nothing_debug_hooks): Update.
13592         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13593         global_decl, deferred_inline_function.
13594         * dwarf2out.c (dwarf2_debug_hooks): Update.
13595         (dwarf2out_global_decl): New.
13596         * dwarfout.c: Don't include dwarfout.h.
13597         (dwarfout_global_decl, dwarfout_function_decl,
13598         dwarfout_deferred_inline_function): New.
13599         (dwarf_debug_hooks): Update.
13600         * dwarfout.h: Remove.
13601         * final.c: Don't include dwarfout.h.
13602         * sdbout.c (sdbout_global_decl): New.
13603         (sdbout_debug_hooks): Update.
13604         * toplev.c: Don't include dwarfout.h.
13605         (check_global_declarations, rest_of_compilation): Use new debug hooks.
13606         (note_deferral_of_defined_inline_function): Remove.
13607         * toplev.h (note_deferral_of_defined_inline_function): Remove.
13608         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13609         * ch/lex.c: Don't include dwarfout.h.
13610         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13611         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13612         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13613         * cp/optimize.c: Include debug.h.
13614         (maybe_clone_body): Use debug hook.
13615         * cp/semantics.c: Include debug.h.
13616         (expand_body): Use debug hook.
13617         * po/POTFILES.in: Remove dwarfout.h.
13618
13619 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13620
13621         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13622         * c-parse.in (yyerror, _yylex): Similarly.
13623         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13624         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13625         Update comments.
13626         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13627         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13628
13629 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
13630
13631         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13632         in-class declaration at -g1.  Fixes c++/2814.
13633
13634 2001-07-18  Richard Henderson  <rth@redhat.com>
13635
13636         * doc/md.texi (reload_in/out): Document restrictions in predicates
13637         and constraints for these patterns.  Document empty string matching
13638         ALL_REGS.
13639
13640 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13641
13642         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13643
13644 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13645
13646         * cse.c: Undo my previous patch.
13647
13648 2001-07-18  Tom Tromey  <tromey@redhat.com>
13649
13650         For PR java/2812:
13651         * configure: Rebuilt.
13652         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13653         instead.
13654         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13655
13656 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
13657                                 Jan Hubicka  <jh@suse.cz>
13658
13659         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13660         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13661         * jump.c (mark_jump_label): Do not forward branches.
13662
13663 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
13664
13665         * cse.c (delete_trivially_dead_insns): Delete the libcall block
13666         when return value is unused.
13667
13668 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13669
13670         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13671
13672 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
13673
13674         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13675         on error.  We can't blindly return the result of
13676         pthread_mutex_trylock because it returns a positive number on
13677         error, while we must return -1 on error.
13678         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13679         fixes.
13680         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13681
13682 2001-07-18  Andreas Jaeger  <aj@suse.de>
13683
13684         * integrate.c (output_inline_function): Correct type of debug_hooks.
13685
13686 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13687
13688         * combine.c (combine_simplify_rtx): DIV can be treated
13689         associatively for floats if unsafe math optimisations are enabled.
13690
13691 2001-07-17  Richard Henderson  <rth@redhat.com>
13692
13693         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13694
13695 2001-07-17  Richard Henderson  <rth@redhat.com>
13696
13697         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
13698         don't force the function address into a register.
13699         (expand_call, emit_library_call_value_1): Update callers.
13700         * builtins.c (expand_builtin_apply): Likewise.
13701         * expr.h (prepare_call_address): Update decl.
13702
13703 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
13704
13705         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13706         config directory.
13707         * config/i386/chorus.h: Move up.
13708         * config/sparc/chorus.h: Likewise.
13709         * config/rs6000/chorus.h: Likewise.
13710         * config/chorus.h: Moved here.
13711
13712 2001-07-17  Andreas Schwab  <schwab@suse.de>
13713
13714         * configure.in  (assembler eh_frame optimization): Handle big
13715         endian.
13716         * configure: Regenerated.
13717
13718 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
13719
13720         * expr.c (epxand_expr): Convert divisions into multiplications by
13721         reciprocals if -ffast-math.
13722
13723 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13724
13725         * dbxout.c (dbxout_really_begin_function): Rename to
13726         dbxout_begin_function.
13727         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13728         (dbxout_begin_function): Remove.
13729         (dbxout_function): Update.
13730         (dbxout_source_line): Update prototype.
13731         * dbxout.h (dbxout_begin_function): Remove.
13732         * debug.c (do_nothing_debug_hooks): Update.
13733         (debug_nothing_tree): Update.
13734         (debug_nothing_charstar_rtx): Remove.
13735         * debug.h (union tree_node): Declare.
13736         (struct rtx_def): Remove.
13737         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13738         begin_function.  Change source_line prototype.
13739         (debug_nothing_tree): New.
13740         (debug_nothing_charstar_rtx): Delete.
13741         (dwarf2out_begin_prologue): Moved from ...
13742         * tree.h: ... here.
13743         * dwarf2out.c (dwarf2_debug_hooks): Update.
13744         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
13745         debug info, call dwarf2out_source_line.
13746         (dwarf2out_souce_line): Update prototype.
13747         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13748         Change prototype, make static.
13749         (dwarfout_source_line): Update prototype.
13750         (dwarf_debug_hooks): Update.
13751         * dwarfout.h (dwarfout_begin_function): Remove.
13752         * final.c (final_start_function, final_scan_insn): Use appropriate
13753         debug hooks, update to use notice_source_line.
13754         (output_source_line): Rename notice_source_line.  Don't call the
13755         source_line debug hook.
13756         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13757         make static, update prototype.
13758         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13759         prototype.
13760         (sdbout_end_prologue): New.
13761         (sdbout_source_line): Update prototype.
13762         (sdbout_debug_hooks): Update.
13763         (sdbout_symbol): Remove unused var.
13764         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13765         Delete.
13766         * varasm.c: Include debug.h.
13767         (assemble_start_function): Use begin_function debug_hook.
13768         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13769         update with prototype.
13770         (xcoffout_source_line): Update prototype.
13771         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13772         update prototype.
13773         (xcoffout_source_line): Update prototype.
13774
13775 2001-07-17  Richard Henderson  <rth@redhat.com>
13776
13777         * c-typeck.c (build_binary_op): Do not shorten unsigned
13778         right shift after sign extension.
13779
13780 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
13781
13782         * combine.c (combine_simplify_rtx): Attempt to simplify
13783         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13784
13785         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13786         (simplify_binary_operation, simplify_unary_operation,
13787          simplify_relational_operation): Use it.
13788
13789         * combine.c (combine_simplify_rtx): Don't do associative law
13790         on divisions; allow associative law on floats.
13791
13792 2001-07-17  H.J. Lu <hjl@gnu.org>
13793             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13794
13795         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13796         ASM_OUTPUT_WEAK_ALIAS are defined.
13797         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13798         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13799         Moved ...
13800         * config/mips/iris5.h: ... here.
13801         (HANDLE_SYSV_PRAGMA): Defined as 1.
13802         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13803         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13804         symbol.
13805
13806 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
13807
13808         * c-parse.in (all_prefix_attributes): New variable.
13809         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13810         (maybe_resetattrs): New production.
13811         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13812         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13813         notype_initdcl, nested_function, notype_nested_function,
13814         component_decl, components, components_notype,
13815         component_declarator, component_notype_declarator,
13816         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
13817         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
13818         after a comma being applied to more than one declarator.
13819         * doc/extend.texi (Attribute Syntax): Update.  Remove
13820         documentation of bugs that are no longer present.
13821
13822 2001-07-13  Eric Christopher  <echristo@redhat.com>
13823
13824         * config/mips/mips.h: Change TUNE_MIPS* options to use
13825         mips_tune.
13826         (EXTRA_SPECS): Add cc1_cpu_spec.
13827         * config/mips/mips.md (muldf3): Fix typo.
13828
13829 2001-07-16  Richard Henderson  <rth@redhat.com>
13830
13831         * config/m68k/m68k.c: Include expr.h and reload.h.
13832         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
13833         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
13834
13835 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13836             Richard Henderson  <rth@redhat.com>
13837
13838         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
13839         (insn_live_p): Fix fall off end of function.
13840         (dead_libcall_p): Remove COUNTS argument; update callers.
13841         (delete_trivially_dead_insns): Remove unused variables.
13842
13843 2001-07-17  Andreas Jaeger  <aj@suse.de>
13844
13845         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
13846         x86-64 pic support.
13847
13848         * lcm.c (optimize_mode_switching): Avoid warning for unused
13849         variable if !NORMAL_MODE.
13850
13851         * flow.c (try_crossjump_to_edge): Remove unused variable.
13852
13853 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13854
13855         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
13856         atexit declaration in stdlib.h.
13857
13858 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
13859
13860         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
13861
13862 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13863
13864         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
13865         * except.c (finish_eh_generation): Update call of cleanup_cfg;
13866         do rebuild_jump_labels instead of jump_optimize
13867         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
13868         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
13869         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
13870
13871         * flow.c: Include timevar.h
13872         (find_basic_block): Push/pop timevar;
13873         (cleanup_cfg): Likewise.
13874         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
13875         * Makefile: Add dependencies on timevar.h
13876
13877         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
13878         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
13879
13880         * rtl.h (delete_trivially_dead_insns): Add new parameter.
13881         * toplev.c (rest_of_compilation): Update calls.
13882         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
13883         (delete_trivially_dead_insns): ... here; accept new argument
13884         preserve_basic_blocks; preserve basic blocks if set.
13885
13886         * reg-stack.c (stack_regs_mentioned): Return 0 if
13887         stack_regs_mentioned_data is not initialized.
13888         (reg_to_stack): Make stack_regs_mentioned survive after the
13889         reg-stack is completted; do not call cleanup_cfg.
13890         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
13891         make cleanup_cfg after bb-reorder to output to debug file.
13892
13893 2001-07-16  Richard Henderson  <rth@redhat.com>
13894
13895         * regclass.c (init_reg_sets): Use only 32 bits per initializer
13896         from int_reg_class_contents.
13897
13898 2001-07-16  Richard Henderson  <rth@redhat.com>
13899
13900         * hard-reg-set.h (regs_invalidated_by_call): Declare.
13901         * regclass.c (regs_invalidated_by_call): Move from cse.c.
13902         (init_reg_sets_1): Move initialization from cse_main.
13903         * cse.c (regs_invalidated_by_call): Move to regclass.c.
13904         (cse_main): Move its initialization also.
13905         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13906         * flow.c (propagate_one_insn): Likewise.
13907         * gcse.c (compute_hash_table): Likewise.
13908         (compute_kill_rd, compute_store_table): Likewise.
13909         * sched-deps.c (sched_analyze_1): Likewise.
13910
13911 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
13912
13913         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13914         gen_rtx_SET.
13915
13916 2001-07-16  Steve Ellcey <sje@cup.hp.com>
13917
13918         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13919         in if statement so we don't access undefined memory.
13920
13921 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13922
13923         * gcse.c: Update comment at top.
13924         Update comment on mem handling.
13925         mem_last_set, mem_first_set, mem_set_in_block: gone.
13926         Declaration of reg_set_info: gone.
13927         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13928         pointless with load_killed_in_block_p (they are *more*
13929         conservative then it, not less, and less accurate).
13930         (oprs_not_set_p): Ditto.
13931         (alloc_gcse_mem): Don't allocate mem_set_in_block
13932         (free_gcse_mem): Don't free it, either.
13933         (record_last_mem_set_info): Update comment in front, remove
13934         mem_*set_* stuff. Note the reason we don't handle stores directly
13935         here.
13936         (compute_hash_table): Update comments to reflect reality. Remove
13937         mem_*set_* references.
13938         (reset_opr_set_tables): Remove mem_*set_* references.
13939         (mark_call): Ditto.
13940         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
13941         (mark_clobber): Ditto (on both parts, we double set here too).
13942         (expr_killed_p): Remove mem_set_in_block test.
13943         (compute_transp): Remove mem_set_in_block test.
13944
13945         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13946         of edge, and removal of phi alternative to dump file.
13947         (ssa_ccp_substitute_constants): Add note about register now being
13948         constant, and which uses were replaced in what insns to dump file.
13949
13950 2001-07-16  Andreas Jaeger  <aj@suse.de>
13951
13952         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13953         variables of type HOST_WIDEST_INT.
13954
13955         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13956         (__bb_exit_func): Correct type of count_max to avoid overflow.
13957         (num_digits): Handle long long argument.
13958
13959         * combine.c (gen_lowpart_for_combine): Remove unused variable.
13960
13961 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13962
13963         * output.h (sdb_begin_function_line): Restore as an extern
13964         variable.
13965         * sdbout.c (sdb_begin_function_line): Make extern.
13966
13967 2001-07-15  Richard Henderson  <rth@redhat.com>
13968
13969         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13970         * genrecog.c (maybe_both_true_mode): New.
13971         (maybe_both_true_2): Use it.
13972         (write_switch): Don't put Pmode in a switch.
13973         * rtl.c (mode arrays): Don't explicitly size them.
13974
13975 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13976
13977         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13978         handling; move unconditional splitting before mode switching.
13979
13980         * i386.md (type): Add fistp type.
13981         (i387, length_attr, scheduling definitions): Handle this type.
13982         (fix_trunc?f?i2): Revamp to use mode switching.
13983         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13984         * i386.h (fp_cw_mode): New enum
13985         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13986         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13987
13988 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13989
13990         * Makefile.in (integrate.o): Add debug.h.
13991         * integrate.c (debug.h): Add.
13992         (output_inline_function): Save, reset, and restore debug_hooks.
13993
13994 2001-07-15  Richard Henderson  <rth@redhat.com>
13995
13996         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13997         instead of COMPARE for the EQUIV expression.
13998
13999 2001-07-15  Richard Henderson  <rth@redhat.com>
14000
14001         * flow.c (redirect_edge_and_branch_force): Initialize
14002         global_live_at_start and global_live_at_end.
14003         (allocate_bb_life_data): Export.
14004         * basic-block.h (allocate_bb_life_data): Declare.
14005         * toplev.c (rest_of_compilation): Call it.
14006
14007 2001-07-15  Richard Henderson  <rth@redhat.com>
14008
14009         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
14010         (alpha_tablejump_best_label): New.
14011         * config/alpha/alpha-protos.h: Declare them.
14012         * config/alpha/alpha.md: Use braced strings for code blocks.
14013         (tablejump_osf): Break out add with r29.
14014         (tablejump_osf_internal): Remove.
14015         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
14016         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
14017
14018 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
14019
14020         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
14021         of the movable.
14022
14023         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
14024
14025         * i386-protos.h (ix86_split_fp_branch): Update prototype.
14026         (ix86_fp_jump_nontrivial_p): New.
14027         * i386.md (fp_jcc_?): Update call of split_fp_branch;
14028         use ix86_fp_jump_nontrivial_p.
14029         * i386.c (ix86_fp_jump_nontrivial_p): New.
14030         (ix86_split_fp_branch): Accept code instead of rtx.
14031         (ix86_expand_compare): Expand comparison early in case
14032         doing so is resonably cheap.
14033
14034 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
14035
14036         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
14037         not 'machine'.
14038         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
14039         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
14040
14041 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
14042
14043         * dbxout.c (dbxout_source_line): Make static, update prototype.
14044         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
14045         (dbxout_init, dbxout_finish, dbxout_source_line,
14046         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
14047         * dbxout.h (dbxout_source_line): Delete.
14048         * debug.c (debug_nothing_file, debug_nothing_file_int,
14049         debug_nothing_file_charstar_rtx): New.
14050         (do_nothing_debug_hooks): Update.
14051         (debug_nothing_void, debug_nothing_charstar_rtx,
14052         dwarf2out_end_epilogue): New.
14053         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14054         * debug.h (struct rtx_def): Declare.
14055         (gcc_debug_hooks): New hooks source_line, end_epilogue
14056         and end_function.
14057         (debug_nothing_void, debug_nothing_charstar_rtx,
14058         dwarf2out_end_epilogue): New.
14059         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14060         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
14061         (dwarf2_debug_hooks): Update.
14062         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
14063         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
14064         * dwarf2out.h (dwarf2out_source_line): Remove.
14065         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
14066         Make static, update prototype.
14067         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
14068         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
14069         (dwarf_debug_hooks): Update.
14070         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
14071         dwarfout_end_function): Remove.
14072         * final.c (profile_function): Use debug hooks for ending functions
14073         and epilogues.
14074         (output_source_line, final_end_function): Update prototype,
14075         use debug hooks.
14076         (final_start_function, final_scan_insn): Update.
14077         * output.h (sdb_begin_function_line): Remove.
14078         (final_end_function): Update prototype.
14079         * sdbout.c (sdb_begin_function_line): Make static.
14080         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
14081         (sdbout_source_line): New.
14082         (sdbout_end_epilogue, sdbout_end_function): Make static, update
14083         prototypes.
14084         (sdb_debug_hooks): Update.
14085         (sdbout_init, sdbout_source_line,
14086         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
14087         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
14088         * toplev.c (compile_file, rest_of_compilation): Update.
14089         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
14090         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
14091         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
14092         Update for prototype changes.
14093         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
14094         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
14095
14096 2001-07-15  Richard Henderson  <rth@redhat.com>
14097
14098         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
14099         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
14100         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
14101         * config/alpha/alpha.c: Likewise.
14102         * config/alpha/alpha.md: Likewise.
14103         * config/alpha/alpha32.h: Likewise.
14104         * config/alpha/vms.h: Likewise.
14105         (OPEN_VMS): Remove.
14106
14107 2001-07-14  Richard Henderson  <rth@redhat.com>
14108
14109         * config/alpha/alpha.md: Use define_constants for unspec values.
14110         Substitute throughout.
14111
14112 2001-07-14  Tim Josling  <tej@melbpc.org.au>
14113
14114         * tree.def (EXPON_EXPR) remove. Never supported anyway.
14115
14116 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14117
14118         * pa.md: Remove unused constraints from define_split's.
14119
14120 2001-04-14  Richard Henderson  <rth@redhat.com>
14121
14122         * ifcvt.c (find_cond_trap): Test for exit block.
14123
14124 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
14125
14126         Re-install recently reverted patch.
14127         * emit-rtl.c (try_split): Update mark_jump_label call.
14128         * flow.c (find_sub_basic_blocks): Likewise.
14129         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14130         jump_back_p): Kill.
14131         (mark_all_labels): Kill second parameter.
14132         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14133         (rebuild_jump_labels, jump_optimize_minimal): Update call
14134         of jump_optimize_1.
14135         (jump_optimize_1): Kill crossjumping code.
14136         (mark_jump_label): Kill cross_jump parameter.
14137         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14138         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14139         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14140          splitting.
14141         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14142         DFI_bpro.
14143         (dump_file_info): Likewise.
14144         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14145         reorganize passes to do reg-stack first, bb-reorder second.
14146         * invoke.texi (-d letters doc): Remove the jump2 pass.
14147
14148 2001-07-14  Richard Henderson  <rth@redhat.com>
14149
14150         * ifcvt.c (find_cond_trap): New.
14151         (find_if_header): Call it.
14152         (merge_if_block): Relax existing jump sanity check.
14153         * jump.c (jump_optimize_1): Remove conditional trap handling.
14154
14155 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
14156
14157         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
14158         millicode.
14159         (insn_refs_are_delayed): Correct comment.
14160         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
14161         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
14162         instead of r31.  Make associated insn !TARGET_64BIT, and
14163         provide an additional 64-bit insn that clobbers r2.
14164         (divsi3): Likewise.
14165         (udivsi3): Likewise.
14166         (modsi3): Likewise.
14167         (umodsi3): Likewise.
14168
14169 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
14170
14171         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
14172
14173         * flow.c (redirect_edge_and_branch_force, split_edge,
14174         try_crossjump_to_edge): Use set_block_for_new_insns.
14175         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
14176
14177 2001-07-13  H.J. Lu  (hjl@gnu.org)
14178
14179         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
14180         the correct patch.
14181
14182 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14183
14184         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
14185
14186 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
14187
14188         * c-common.c (decl_attributes): Take a pointer to the node to
14189         which attributes are to be attached, and a flags argument.
14190         * c-common.h (enum attribute_flags): New.
14191         (decl_attributes): Update prototype.
14192         * c-decl.c (start_decl, push_parm_decl, finish_struct,
14193         finish_enum, start_function): Update calls to decl_attributes.
14194         * c-parse.in (component_declarator, component_notype_declarator,
14195         label): Update calls to decl_attributes.
14196
14197 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
14198
14199         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
14200         * config/avr/avr.c (legitimate_address_p): Return value changed
14201         from letter to register classes. For better debugging.
14202
14203 2001-07-13  Kazu Hirata  <kazu@hxi.com>
14204
14205         * jump.c (reversed_comparison_code_parts): Fix comment typos.
14206
14207 2001-07-13  H.J. Lu  (hjl@gnu.org)
14208
14209         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
14210
14211 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
14212
14213         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
14214         correctly for shared configurations.
14215         * config/t-libgcc-pic:  New.
14216         * config/{i386,m68k,sparc}/t-openbsd:  New.
14217         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
14218         Support -shared.  Support debugging libraries with -g.
14219         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
14220         frame information does not emit pointer diffs.
14221         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
14222         emit pointer diffs.
14223
14224 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14225
14226         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
14227
14228 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
14229
14230         * combine.c (try_combine): Ensure const_int pow2 is positive.
14231
14232 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
14233
14234         * config.gcc: Add configuration for s/390.
14235         * config/s390/s390.c: New. Subroutines for code generation.
14236         * config/s390/s390.h: New. Definitions for s/390.
14237         * config/s390/s390-protos.h: New. Prototypes.
14238         * config/s390/linux.h: New. Definitions for linux for s/390.
14239         * config/s390/linux64.h: New. Definitions for linux for zSeries.
14240         * config/s390/t-linux: New. Makefile fragment.
14241         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
14242         * config/s390/fixdfdi.h: New. Fix L_fix*di.
14243
14244 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
14245
14246         * emit-rtl.c (try_split): Update mark_jump_label call.
14247         * flow.c (find_sub_basic_blocks): Likewise.
14248         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14249         jump_back_p): Kill.
14250         (mark_all_labels): Kill second parameter.
14251         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14252         (rebuild_jump_labels, jump_optimize_minimal): Update call
14253         of jump_optimize_1.
14254         (jump_optimize_1): Kill crossjumping code.
14255         (mark_jump_label): Kill cross_jump parameter.
14256         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14257         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14258         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14259          splitting.
14260         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14261         DFI_bpro.
14262         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14263         reorganize passes to do reg-stack first, bb-reorder second.
14264         * invoke.texi (-d letters doc): Remove the jump2 pass.
14265
14266 2001-07-12  Steve Ellcey <sje@cup.hp.com>
14267
14268         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
14269
14270 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14271
14272         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
14273         basic blocks.
14274         (verify_flow_info): Make diagnostics prettier.
14275
14276 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
14277
14278         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
14279
14280         * flow.c (outgoing_edges_match): Return early if condition reversal
14281         failed.
14282
14283 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
14284
14285         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
14286         (mips_move_2words): When splitting a move into two instructions,
14287         prefix the second address operand with '%D'.
14288
14289 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14290
14291         * Makefile.in (final.o): Depend on debug.h.
14292         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
14293         (dbx_debug_hooks): Add new hooks.
14294         (xcoff_debug_hooks): New.
14295         * debug.c (debug_nothing_file_int_int): New.
14296         (do_nothing_debug_hooks): Update.
14297         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
14298         (debug_nothing_file_int_int): New.
14299         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
14300         static, update prototype.
14301         (dwarf2_debug_hooks): Update.
14302         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
14303         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
14304         static, update prototype.
14305         (dwarf_debug_hooks): Update.
14306         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
14307         * final.c: Include debug.h.
14308         (final_scan_insn): Use debug hooks when beginning and ending blocks.
14309         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
14310         static, update prototype.
14311         (sdb_debug_hooks): Update.
14312         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
14313         * toplev.c: Distinguish between xcoff and dbx.
14314
14315         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
14316         Call all debug hooks, not just dwarf ones.
14317
14318 2001-07-11  Timothy Wall  <twall@redhat.com>
14319
14320         * config.gcc: Add configuration for AIX5/IA64.
14321         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
14322         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
14323         support prefix/suffix code.
14324         * config/ia64/t-aix: New.  Makefile fragment.
14325         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
14326
14327 2001-07-11  Kazu Hirata  <kazu@hxi.com>
14328
14329         * recog.c (validate_change): Fix a comment typo.
14330
14331 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14332
14333         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
14334         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
14335         hooks directly.
14336         * dbxout.c (dbx_debug_hooks): Add new hooks.
14337         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
14338         make static.
14339         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
14340         make static.
14341         * dbxout.h (dbxout_start_new_source_file,
14342         dbxout_resume_previous_source_file): Delete.
14343         * debug.c (do_nothing_debug_hooks): Add new hooks.
14344         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14345         (debug_nothing_int_charstar, debug_nothing_int): New.
14346         * debug.h (gcc_debug_hooks): New hooks define, undef,
14347         start_source_file and end_source_file.
14348         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14349         (debug_nothing_int_charstar, debug_nothing_int): New.
14350         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
14351         the conditionally compiled section.
14352         (dwarf2out_start_source_file, dwarf2out_end_source_file,
14353         dwarf2out_define, dwarf2out_undef): Make static.
14354         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
14355         dwarf2out_define, dwarf2out_undef): Remove.
14356         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
14357         (dwarfout_start_source_file, dwarfout_end_source_file,
14358         dwarfout_define, dwarfout_undef): Make static.
14359         (dwarfout_start_source_file_check,
14360         dwarfout_end_source_file_check): New.
14361         (dwarfout_define, dwarfout_finish): Update.
14362         * dwarfout.h (dwarfout_start_new_source_file,
14363         dwarfout_resume_previous_source_file, dwarfout_define,
14364         dwarfout_undef): Remove.
14365         * sdbout.c (sdb_debug_hooks): Add new hooks.
14366         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14367         make static.
14368         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14369         make static, take an arg.
14370         * sdbout.h (sdbout_start_new_source_file,
14371         sdbout_resume_previous_source_file): Delete.
14372         * toplev.c (debug_start_source_file, debug_end_source_file,
14373         debug_define, debug_undef): Delete.
14374         * toplev.h (debug_start_source_file, debug_end_source_file,
14375         debug_define, debug_undef): Delete.
14376
14377         * java/jcf-parse.c: Include debug.h.
14378         (parse_class_file): Update to use debug hooks directly.
14379         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14380
14381 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14382
14383         * alias.c (set_mem_alias_set): New function.
14384         * rtl.h (set_mem_alias_set): Declare it.
14385         * builtins.c (expand_builtin_return_addr): Call it instead of
14386         using MEM_ALIAS_SET accessor.
14387         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14388         (get_memory_rtx, expand_builtin_va_arg): Likewise.
14389         (expand_builtin_va_copy):Likewise.
14390         * caller-save.c (setup_save_areas): Likewise.
14391         * calls.c (compute_argument_addresses): Likewise.
14392         * explow.c (set_mem_attributes): Likewise.
14393         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14394         (expand_assignment, store_constructor_field, store_field): Likewise.
14395         (expand_expr_unaligned): Likewise.
14396         * function.c (assign_stack_temp_for_type): Likewise.
14397         (put_reg_into_stack, gen_mem_addressof): Likewise.
14398         * ifcvt.c (noce_try_cmove_arith): Likewise.
14399         * reload1.c (reload, alter_reg): Likewise.
14400         * config/alpha/alpha.c (get_aligned_mem): Likewise.
14401         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14402         (alpha_expand_unaligned_store): Likewise
14403         (alpha_expand_unaligned_load_words): Likewise.
14404         (alpha_expand_unaligned_store_words): Likewise.
14405         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14406         (alpha_expand_epilogue): Likewise.
14407         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14408         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14409         * config/i386/i386.c (legitimize_pic_address): Likewise.
14410         * config/i960/i960.c (setup_incoming_varargs): Likewise.
14411         * config/ia64/ia64.c (spill_restore_mem): Likewise.
14412         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14413         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14414         * config/mips/mips.c (mips_va_arg): Likewise.
14415         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14416         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14417         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14418         (setup_incoming_varargs, rs6000_va_arg): Likewise.
14419         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14420         (rs6000_emit_epilogue): Likewise.
14421         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14422         * config/sparc/sparc.c (sparc_va_arg): Likewise.
14423         * config/v850/v850.c (v850_va_arg): Likewise.
14424
14425 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
14426
14427         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14428         when fallthru edge is present.
14429         (mege_blocks): Handle case where creation of jump insn
14430         is required.
14431
14432         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14433         CLEANUP_POST_REGSTACK): New constants.
14434         * except.c (finish_eh_generation): Update call of cleanup_cfg,
14435         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14436         * output.h (cleanup_cfg): Update prototype.
14437         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14438         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14439         cleanup_cfg call; kill missleading comment.
14440         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14441         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14442         parameter; control optimizations performed using it.
14443         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14444         try_crossjump_bb): New functions.
14445
14446 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14447
14448         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
14449         extern.
14450         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14451         pa_output_function_prologue.
14452         * pa-protos.h (pa_output_function_prologue): New prototype.
14453
14454 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14455
14456         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14457         and low to get correct sign extension in low+high test.
14458
14459 2001-07-11  Janis Johnson <janis@us.ibm.com>
14460
14461         * gcov.c (arcdata): Use gcov_type to fix branch percentage
14462         for large hit count.
14463
14464         * profile.c (branch_prob): Fix .bbg info for computed gotos
14465         and C++ EH code.
14466
14467 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
14468
14469         * stmt.c (parse_output_constraint): New function, split out
14470         from ...
14471         (expand_asm_operands): ... here.  Use parse_output_constraint.
14472         * tree.h (parse_output_constraint): Declare it.
14473
14474 2001-07-11  Richard Henderson  <rth@redhat.com>
14475
14476         * bitmap.c: Comment some functions; fiddle whitespace.
14477         (bitmap_free): Don't export.
14478         (bitmap_element_allocate): Use memset.
14479         * bitmap.h (bitmap_free): Don't declare.
14480
14481 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
14482
14483         * gcse.c, lcm.c, sched-deps.c:
14484         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14485
14486         * flow.c (flow_loops_find): Free dom if we found no loops, since
14487         we aren't going to save it.
14488
14489         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14490         done.
14491
14492 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
14493
14494         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14495
14496 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14497
14498         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14499         #ifndef DWARF2_DEBUGGING_INFO.
14500
14501 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14502
14503         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14504
14505 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14506
14507         * config/mips/mips.c (gen_int_relational): Tell the caller not to
14508         reverse a branch if a NE comparison is implemented with GTU.
14509
14510 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14511             H.J. Lu  <hjl@gnu.org>
14512
14513         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14514         constant addresses.
14515         (call_internal2): Likewise.
14516         (call_value_internal1): Likewise.
14517         (call_value_internal2): Likewise.
14518         (call_value_multiple_internal1): Likewise.
14519         (call_value_multiple_internal2): Likewise.
14520
14521 2001-07-10  Kazu Hirata  <kazu@hxi.com>
14522
14523         * calls.c (emit_library_call_value_1): Fix a comment typo.
14524         * dwarf2out.c (mem_loc_descriptor): Likewise.
14525         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14526
14527 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
14528
14529         * simplify-rtx.c (simplify_subreg): Fix typo in comment
14530
14531 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14532
14533         * recog.c (offsettable_address_p): Handle LO_SUM case.
14534         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14535         instead of plus_constant.
14536
14537 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14538
14539         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14540         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14541
14542 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14543
14544         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14545         adjust_address_nv instead of plus_constant.
14546
14547 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14548
14549         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14550         dwarf2out.o): Depend on debug.h, wrap long lines.
14551         * dbxout.c: Include debug.h.
14552         (dbx_debug_hooks): New.
14553         (dbxout_init): Make static, take just 2 args.
14554         (dbxout_finish): Make static.
14555         * dbxout.h (dbxout_init, dbxout_finish): Delete.
14556         * debug.c: New file.
14557         * debug.h: New file.
14558         * dwarf2out.c: Include debug.h.
14559         (dwarf2_debug_hooks): New.
14560         (dwarf2out_init): Make static.
14561         (dwarf2out_finish): Make static, take 2 args.
14562         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14563         * dwarfout.c: Include debug.h.
14564         (dwarf_debug_hooks): New.
14565         (dwarfout_init): Make static.
14566         (dwarfout_finish): Make static, take 2 args.
14567         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14568         * sdbout.c: Include debug.h.
14569         (sdb_debug_hooks): New.
14570         (sdbout_init): Make static, take 2 args.
14571         * sdbout.h (sdbout_init): Delete.
14572         * toplev.c: Include debug.h.
14573         (debug_hooks): New.
14574         (compile_file): Set deubg_hooks based on command line options.
14575         Use the hooks unconditionally rather than conditional compilation.
14576
14577 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
14578
14579         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
14580         first_insn_after_basic_block_note instead.
14581
14582         * df.c (df_bb_refs_unlink): #if 0 out for now.
14583
14584 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
14585
14586         * ssa.h: Add prototype for ssa_const_prop
14587         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14588         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14589         (ssa_fast_dce): Remove unused variable
14590
14591 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14592
14593         * diagnostic.c (finish_diagnostic): Rename to
14594         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
14595         calls thourghout.
14596
14597 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
14598
14599         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14600         .loc support.
14601
14602         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14603         (dump_file): Only pad the demangled name with spaces if the
14604         mangled name was padded with spaces.
14605
14606 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
14607
14608         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14609         edge detection.
14610
14611 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14612
14613         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14614         extraction if no direct load if either EXPAND_CONST_ADDRESS or
14615         EXPAND_INITIALIZER.
14616
14617         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14618         whether can put offset inside LO_SUM to check mode alignment, not size.
14619
14620 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14621
14622         * doc/tm.texi (Misc): Fix thinko.
14623
14624 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
14625
14626         * regmove.c (replace_in_call_usage): Fix warnings.
14627         * sched-deps.c (add_dependence): Fix warnings.
14628         * simplify-rtx.c (simplify_subreg): Likewise.
14629         Return NULL_RTX instead of NULL.
14630
14631         * reg-stack.c (emit_swap_insn): Eliminate warnings.
14632         (subst_asm_stack_regs): Likewise.
14633
14634         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14635         warnings.
14636
14637         * dwarf2out.c (output_call_frame_info): Declare i as int.
14638         (build_abbrev_table): Declare n_alloc as int.
14639         (dwarf2out_finish): Initialize die.
14640         * except.c: Declare sjlj_funcdef_number as unsigned.
14641         (connect_post_landing_pads): Declare j as unsigned.
14642         (convert_to_eh_region_ranges): Initialize call_site.
14643         (output_function_exception_table): Initialize tt_format_size.
14644         * expr.c (move_by_pieces_1): Initialize to1.
14645         (store_constructor): Initialize minelt and maxelt.
14646         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14647         * function.c (instantiate_decls): Avoid signed/unsigned warning.
14648
14649         * c-decl.c (combine_parm_decls): Unused, remove.
14650         * c-tree.h: Remove prototype for combine_parm_decls.
14651
14652         * reload.c (push_reload): Fix warning.
14653         (regno_clobbered_p): Likewise.
14654         * reload1.c (replace_pseudos_in_call_usage): Likewise.
14655         (reload_combine): Likewise.
14656
14657         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14658         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14659         warnings.
14660         * bitmap.c (bitmap_operation): Change user.
14661         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14662
14663 2001-07-10  Eric Christopher  <echristo@redhat.com>
14664
14665         * config/mips/mips.c (override_options): Fix typo.
14666
14667 2001-07-09  Stan Shebs  <shebs@apple.com>
14668
14669         * target.h (struct gcc_target): New fields init_builtins and
14670         expand_builtin.
14671         * target-def.h (TARGET_INIT_BUILTINS): New macro.
14672         (TARGET_EXPAND_BUILTIN): New macro.
14673         (TARGET_INITIALIZER): Add them.
14674         * builtins.c: Include target.h.
14675         (expand_builtin): Use targetm.expand_builtin.
14676         (default_init_builtins): New function.
14677         (default_expand_builtin): New function.
14678         * expr.h (default_init_builtins): Declare.
14679         (default_expand_builtin): Declare.
14680         * c-common.c (c_common_nodes_and_builtins): Use
14681         targetm.init_builtins.
14682         * defaults.h (MD_INIT_BUILTINS): Remove.
14683         * Makefile.in (builtins.o): Depend on target.h.
14684
14685         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14686         (TARGET_EXPAND_BUILTIN): Define.
14687         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14688         (MD_EXPAND_BUILTIN): Remove.
14689
14690         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14691         (TARGET_EXPAND_BUILTIN): Define.
14692         (c4x_init_builtins): Make endlink arg a local.
14693         (c4x_print_operand): Fix typos in adjust_address usages.
14694         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14695         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14696         (MD_EXPAND_BUILTIN): Remove.
14697
14698         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14699         (TARGET_EXPAND_BUILTIN): Define.
14700         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14701         (ix86_init_builtins): Call new function only if TARGET_MMX.
14702         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14703         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14704         (MD_EXPAND_BUILTIN): Remove.
14705
14706         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14707         (TARGET_EXPAND_BUILTIN): Define.
14708         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14709         (MD_EXPAND_BUILTIN): Remove.
14710
14711         * doc/tm.texi: Document these changes.
14712
14713 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
14714
14715         * basic-block.h (tree_node): Forward declare if needed.
14716         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14717         (BLOCK_HEAD_TREE): Define.
14718         (BLOCK_END_TREE): Define.
14719         (struct loops): Rename field 'tree' to 'tree_root'.
14720         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14721         'end_tree'.
14722         (flow_loops_tree_build): Rename reference to field 'tree' to
14723         'tree_root'.
14724         (flow_loops_level_compute): Ditto.
14725         * predict.c (estimate_bb_frequencies): Ditto.
14726         * tree.h (struct tree_common): Add field 'aux'.
14727
14728 2001-07-09  Stan Shebs  <shebs@apple.com>
14729
14730         * config/darwin.c (darwin_encode_section_info): Don't mark any
14731         DECL_EXTERNAL node as defined.
14732
14733 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14734
14735         * pa.c (pa_init_machine_status, pa_mark_machine_status,
14736         pa_free_machine_status, hppa_init_pic_save): Delete.
14737         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
14738         (hppa_profile_hook): Use hppa_pic_save_rtx.
14739         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14740         hppa_init_pic_save): Delete.
14741         (hppa_pic_save_rtx): Declare.
14742         * pa.md (call, call_value, sibcall, sibcall_value,
14743         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14744
14745 2001-07-09  Kazu Hirata  <kazu@hxi.com>
14746
14747         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14748         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14749
14750 2001-07-09  Andreas Jaeger  <aj@suse.de>
14751
14752         * output.h: Add declaration of final_forward_branch_p.
14753
14754         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14755
14756         * varray.c: Include errors.h for internal_error and trim_filename
14757         declarations.
14758
14759         * Makefile.in (varray.o): Add errors.h.
14760
14761 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
14762
14763         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14764         * optabs.c (have_add2_insn): Check whether the add insn chosen
14765         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
14766         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14767
14768 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
14769
14770         * Makefile.in (OBJS): Add ssa-ccp.o
14771         (ssa-ccp.o): Add dependencies.
14772         * toplev.c (DFI_ssa_ccp): New dump file enum.
14773         (dump_file): Add entry for dumping after SSA CCP.
14774         (flag_ssa_ccp): New flag variable.
14775         (f_options): Add -fssa-ccp.
14776         (rest_of_compilation): Run SSA CCP if requested.
14777         * timevar.def (TV_SSA_CCP): New timevar.
14778         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14779         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14780         Fix minor typo in SSA DCE documentation.
14781         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14782         Add documentation for new dump option.  Renumber dump files
14783         appropriately.
14784
14785 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14786
14787         * emit-rtl.c (gen_highpart_mode): New.
14788         * rtl.h (gen_highpart_mode): Declare.
14789         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14790         operand can be VOIDmode constant.
14791
14792 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
14793
14794         * flow.c (redirect_edge_and_branch_force): New.
14795         (can_fallthru): Ensure that basic blocks are succeeding.
14796         (try_optimize_cfg): Do not delete basic block if it is the last one.
14797
14798         * flow.c (try_redirect_by_replacing_jump): Do not remove
14799         jumps with side effects, unlink chain on fallthru edge;
14800         set block for new jump instruction; avoid basic block to
14801         over by line number note.
14802
14803         * flow.c (try_simplify_condjump): Verify that the condjump
14804         is not always falling through.
14805
14806         Re-install patch:
14807         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14808
14809         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14810         (try_redirect_by_replacing_jump): Update properly the count
14811         and frequency information.
14812
14813 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14814
14815         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
14816         address that is a LO_SUM specially.
14817         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
14818
14819         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
14820
14821         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
14822         (operand_subword): Use them.
14823         (change_address_1): Renamed from change_address; new arg VALIDATE.
14824         * expr.h: Reflect above changes; change_address now macro.
14825         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
14826         making MEM.
14827         * cselib.c (add_mem_for_addr): Likewise.
14828         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
14829         * regmove.c (try_apply_stack_adjustment): Likewise.
14830         * reload.c (push_reload, make_memloc): Likewise.
14831         * reload1.c (eliminate_regs): Likewise.
14832         * simplify-rtx.c (simplify_replace_rtx): Likewise.
14833         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
14834         adjust_addess.
14835         * combine.c (make_extraction, simplify_shift_const): Likewise.
14836         (gen_lowpart_for_combine): Likewise.
14837         * cse.c (gen_lowpart_if_possible): Likewise.
14838         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
14839         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
14840         * optabs.c (gen_move_insn): Likewise.
14841         * reload1.c (alter_reg): Likewise.
14842         * simplify-rtx.c (simplify_subreg): Likewise.
14843         * stmt.c (expand_anon_union_decl): Likewise.
14844         * recog.c (validate_replace_rtx_1): Likewise.
14845         (expr.h): Include.
14846         * Makefile.in (recog.o): Add $(EXPR_H).
14847         * explow.c (stabilize): Call replace_equiv_address.
14848         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14849         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
14850
14851 2001-07-03  Andrew Haley  <aph@redhat.com>
14852
14853         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
14854         the mode of the memory location.
14855
14856 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
14857
14858         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
14859
14860 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14861
14862         * final.c (output_addr_const): Use target opening and
14863         closing parentheses.
14864         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
14865         defaults, add to TARGET_ASM_OUT.
14866         * target.h (struct gcc_target): Add open_paren and close_paren.
14867         * doc/md.texi: Update.
14868         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
14869         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
14870         TARGET_ASM_CLOSE_PAREN.
14871         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14872         Override.
14873         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14874         Override.
14875         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
14876         * config/a29k/a29k.h: Similarly.
14877         * config/alpha/alpha.h: Similarly.
14878         * config/arc/arc.h: Similarly.
14879         * config/arm/aof.h: Similarly.
14880         * config/arm/aout.h: Similarly.
14881         * config/avr/avr.h: Similarly.
14882         * config/c4x/c4x.h: Similarly.
14883         * config/clipper/clipper.h: Similarly.
14884         * config/convex/convex.h: Similarly.
14885         * config/d30v/d30v.h: Similarly.
14886         * config/dsp16xx/dsp16xx.h: Similarly.
14887         * config/elxsi/elxsi.h: Similarly.
14888         * config/fr30/fr30.h: Similarly.
14889         * config/h8300/h8300.h: Similarly.
14890         * config/i370/i370.h: Similarly.
14891         * config/i386/i386.h: Similarly.
14892         * config/i860/i860.h: Similarly.
14893         * config/i960/i960.h: Similarly.
14894         * config/ia64/ia64.h: Similarly.
14895         * config/m32r/m32r.h: Similarly.
14896         * config/m68hc11/m68hc11.h: Similarly.
14897         * config/m68k/m68k.h: Similarly.
14898         * config/m88k/m88k.h: Similarly.
14899         * config/mcore/mcore.h: Similarly.
14900         * config/mips/mips.h: Similarly.
14901         * config/mn10200/mn10200.h: Similarly.
14902         * config/mn10300/mn10300.h: Similarly.
14903         * config/ns32k/ns32k.h: Similarly.
14904         * config/pa/pa.h: Similarly.
14905         * config/pdp11/pdp11.h: Similarly.
14906         * config/pj/pj.h: Similarly.
14907         * config/romp/romp.h: Similarly.
14908         * config/rs6000/rs6000.h: Similarly.
14909         * config/sh/sh.h: Similarly.
14910         * config/sparc/sparc.h: Similarly.
14911         * config/v850/v850.h: Similarly.
14912         * config/vax/vax.h: Similarly.
14913         * config/we32k/we32k.h: Similarly.
14914
14915 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14916
14917         * doc/c-tree.texi: Document representation of attributes.
14918
14919 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14920
14921         * doc/tm.texi: Update some places for the rename of target to
14922         targetm.  Fix typo.
14923
14924 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14925
14926         * target.h (struct gcc_target): Add insert_attributes.
14927         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14928         (TARGET_INITIALIZER): Update.
14929         * tree.c, tree.h (default_insert_attributes): New function.
14930         Update comments on other default functions to refer to targetm,
14931         not target.
14932         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14933         TARGET_INSERT_ATTRIBUTES.
14934         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14935         * c-common.c (decl_attributes): Use targetm.insert_attributes.
14936         Don't use PRAGMA_INSERT_ATTRIBUTES.
14937         * Makefile.in (c-common.o): Depend on $(TARGET_H).
14938         * c-decl.c (start_decl, start_function): Don't call
14939         SET_DEFAULT_DECL_ATTRIBUTES.
14940         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14941         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14942         declare.
14943         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14944         (c4x_check_attribute): Avoid modifying attribute list itself.
14945         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14946         Make static.
14947         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14948         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14949         declare.
14950         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14951         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14952         Make static.
14953         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14954         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14955         declare.
14956         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14957         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14958         Adjust parameters.  Make static.
14959
14960 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14961
14962         * c-common.c (decl_attributes): Only take a single attributes
14963         parameter.
14964         * c-common.h (decl_attributes): Update prototype.
14965         * c-decl.c (start_decl, start_function): Only take a single
14966         attributes parameter.  Update calls to decl_attributes.
14967         (finish_struct, finish_enum): Update calls to decl_attributes.
14968         (push_parm_decl): Expect unified list of attributes.  Update call
14969         to decl_attributes.
14970         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14971         notype_nested_function, component_declarator,
14972         component_notype_declarator, label): Update calls to
14973         decl_attributes.
14974         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14975         lists that are passed to push_parm_decl.
14976         * c-tree.h (start_function, start_decl): Update prototypes.
14977         * config/sh/sh-protos.h, config/sh/sh.c
14978         (sh_pragma_insert_attributes): Only take a single attributes
14979         parameter.
14980         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14981         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14982         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14983         build_module_descriptor, generate_static_references,
14984         generate_strings, build_selector_translation_table,
14985         generate_descriptor_table, generate_protocols,
14986         generate_ivars_list, generate_dispatch_table,
14987         generate_protocol_list, generate_category,
14988         generate_shared_structures, really_start_method, add_objc_decls,
14989         generate_classref_translation_entry): Update calls to start_decl
14990         and start_function.
14991         (build_tmp_function_decl, start_method_def): Unify attribute lists
14992         that are passed to push_parm_decl.
14993
14994 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14995
14996         * final.c (no_asm_to_stream): New.
14997         (final_scan_insn): Use target structures for prologue ends
14998         and epilogue starts.
14999         * output.h (no_asm_to_stream): New.
15000         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
15001         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
15002         (TARGET_ASM_OUT): Update.
15003         * target.h (struct gcc_target): New members function_end_prologue
15004         and function_begin_epilogue.
15005         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
15006         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
15007         * config/alpha/alpha.c (output_end_prologue): Rename to
15008         alpha_output_function_end_prologue.  Use in target struct
15009         and make static.
15010         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
15011         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
15012         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
15013         ia64_output_function_end_prologue.  Use in target struct
15014         and make static.
15015         (ia64_function_prologue, ia64_funciton_epilogue): Rename
15016         mistyped prototypes.
15017         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
15018         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
15019         Delete.
15020         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
15021         an use in target struct, make static.
15022         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
15023         Delete.
15024
15025 2001-07-08  Richard Henderson  <rth@redhat.com>
15026
15027         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
15028
15029 2001-07-08  Richard Henderson  <rth@redhat.com>
15030
15031         * config/i386/i386.md: Remove constraints strings from define_split
15032         and define_peephole2 patterns.
15033         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
15034         (eh_return): Use them.
15035
15036 2001-07-08  Richard Henderson  <rth@redhat.com>
15037
15038         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
15039         Document MD_FALLBACK_FRAME_STATE_FOR.
15040
15041 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15042
15043         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
15044         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
15045         elimination.
15046         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
15047
15048 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
15049
15050         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
15051         of the label inside NAME as opposed to just the end of NAME.
15052
15053 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15054
15055         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
15056         * config/alpha/alpha.c (alpha_init_machine_status,
15057         alpha_mark_machine_status, alpha_free_machine_status): Delete.
15058         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
15059         (vms_valid_decl_attribute_p): Make static, conditionally compile.
15060         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
15061
15062 2001-07-06  Stan Shebs  <shebs@apple.com>
15063
15064         * target.h (targetm): Rename global from "target", so as not to
15065         conflict with local variables.
15066         * c-decl.c: Ditto.
15067         * c-typeck.c: Ditto.
15068         * final.c: Ditto.
15069         * tree.c: Ditto.
15070         * cp/decl.c: Ditto.
15071         * cp/decl2.c: Ditto.
15072         * cp/typeck.c: Ditto.
15073         * 1750a/1750a.c: Ditto.
15074         * a29k/a29k.c: Ditto.
15075         * arc/arc.c: Ditto.
15076         * arm/arm.c: Ditto.
15077         * avr/avr.c: Ditto.
15078         * clipper/clipper.c: Ditto.
15079         * convex/convex.c: Ditto.
15080         * d30v/d30v.c: Ditto.
15081         * dsp16xx/dsp16xx.c: Ditto.
15082         * elxsi/elxsi.c: Ditto.
15083         * fr30/fr30.c: Ditto.
15084         * h8300/h8300.c: Ditto.
15085         * i370/i370.c: Ditto.
15086         * i386/i386.c: Ditto.
15087         * i860/i860.c: Ditto.
15088         * i960/i960.c: Ditto.
15089         * ia64/ia64.c: Ditto.
15090         * m32r/m32r.c: Ditto.
15091         * m68hc11/m68hc11.c: Ditto.
15092         * m68k/m68k.c: Ditto.
15093         * m88k/m88k.c: Ditto.
15094         * mips/mips.c: Ditto.
15095         * ns32k/ns32k.c: Ditto.
15096         * pa/pa.c: Ditto.
15097         * pdp11/pdp11.c: Ditto.
15098         * romp/romp.c: Ditto.
15099         * rs6000/rs6000.c: Ditto.
15100         * sh/sh.c: Ditto.
15101         * sparc/sparc.c: Ditto.
15102         * vax/vax.c: Ditto.
15103         * we32k/we32k.c: Ditto.
15104         * doc/tm.texi: Update the manual to match.
15105
15106 2001-07-06  Richard Henderson  <rth@redhat.com>
15107
15108         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
15109         DWARF2_UNWIND_INFO not just whether it is defined.
15110
15111 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
15112
15113         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
15114         call to simplify_binary_operation returns a new pattern.
15115
15116 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
15117
15118         * glimits.h (__SHRT_MAX__): New.
15119         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
15120         (SHRT_MAX): Define in terms of __SHRT_MAX__.
15121
15122 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
15123
15124         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
15125         avoid warnings.
15126
15127 2001-07-06  Richard Henderson  <rth@redhat.com>
15128
15129         * bitmap.c (bitmap_release_memory): Move adjacent to the
15130         allocation functions.
15131         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
15132         the implementation.  Binary search for the set bit.
15133         (bitmap_union_of_diff): Allocate the temporary on the stack
15134         instead of using xmalloc.
15135
15136 2001-07-06  Richard Henderson  <rth@redhat.com>
15137
15138         * genrecog.c (validate_pattern): Warn for constraints in
15139         define_{expand,split,peephole2}.  Remove strict_low_part
15140         before looking up match_dup.
15141
15142 2001-07-06  DJ Delorie  <dj@redhat.com>
15143
15144         * doc/gcc.texi (Makefile): Rename to be a more general purpose
15145         chapter about various build hints and history.  Add section
15146         talking about the various types of native and cross builds.
15147
15148 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15149
15150         * Makefile.in (final.o): Depend on target.h.
15151         * final.c: Include target.h.
15152         (default_function_pro_epilogue): New.
15153         (final_start_function): Use target structure for function prologues.
15154         (final_end_function): Use target structure for function epilogues.
15155         * fold-const.c (real_hex_to_f): Constify s and p.
15156         * output.h (default_function_pro_epilogue): New.
15157         * real.h (real_hex_to_f): Update prototype.
15158         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
15159         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
15160         (TARGET_INITIALIZER): Update.
15161         * target.h (gcc_target): Add struct asm_out.
15162         * doc/tm.texi: Update.
15163
15164 config:
15165         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
15166         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
15167         in cpu/cpu.c, or rename old functions consistently.  Take
15168         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
15169         redundant macros and prototypes.  Make new functions static.
15170
15171         * 1750a/1750a.c: Similarly.
15172         * 1750a/1750a.h: Similarly.
15173         * a29k/a29k-protos.h: Similarly.
15174         * a29k/a29k.c: Similarly.
15175         * a29k/a29k.h: Similarly.
15176         * arc/arc-protos.h: Similarly.
15177         * arc/arc.c: Similarly.
15178         * arc/arc.h: Similarly.
15179         * arm/arm-protos.h: Similarly.
15180         * arm/arm.c: Similarly.
15181         * arm/arm.h: Similarly.
15182         * avr/avr-protos.h: Similarly.
15183         * avr/avr.c: Similarly.
15184         * avr/avr.h: Similarly.
15185         * clipper/clipper-protos.h: Similarly.
15186         * clipper/clipper.c: Similarly.
15187         * clipper/clipper.h: Similarly.
15188         * convex/convex.c: Similarly.
15189         * convex/convex.h: Similarly.
15190         * d30v/d30v-protos.h: Similarly.
15191         * d30v/d30v.c: Similarly.
15192         * d30v/d30v.h: Similarly.
15193         * d30v/d30v.md: Similarly.
15194         * dsp16xx/dsp16xx-protos.h: Similarly.
15195         * dsp16xx/dsp16xx.c: Similarly.
15196         * dsp16xx/dsp16xx.h: Similarly.
15197         * elxsi/elxsi.c: Similarly.
15198         * elxsi/elxsi.h: Similarly.
15199         * fr30/fr30.c: Similarly.
15200         * fr30/fr30.md: Similarly.
15201         * h8300/h8300-protos.h: Similarly.
15202         * h8300/h8300.c: Similarly.
15203         * h8300/h8300.h: Similarly.
15204         * i370/i370-protos.h: Similarly.
15205         * i370/i370.c: Similarly.
15206         * i370/i370.h: Similarly.
15207         * i386/i386.c: Similarly.
15208         * i386/osf1elf.h: Similarly.
15209         * i386/osfrose.h: Similarly.
15210         * i860/i860-protos.h: Similarly.
15211         * i860/i860.c: Similarly.
15212         * i860/i860.h: Similarly.
15213         * i960/i960-protos.h: Similarly.
15214         * i960/i960.c: Similarly.
15215         * i960/i960.h: Similarly.
15216         * ia64/ia64-protos.h: Similarly.
15217         * ia64/ia64.c: Similarly.
15218         * ia64/ia64.h: Similarly.
15219         * m32r/m32r-protos.h: Similarly.
15220         * m32r/m32r.c: Similarly.
15221         * m32r/m32r.h: Similarly.
15222         * m68hc11/m68hc11-protos.h: Similarly.
15223         * m68hc11/m68hc11.c: Similarly.
15224         * m68hc11/m68hc11.h: Similarly.
15225         * m68k/crds.h: Similarly.
15226         * m68k/dpx2.h: Similarly.
15227         * m68k/m68k-protos.h: Similarly.
15228         * m68k/m68k.c: Similarly.
15229         * m68k/m68k.h: Similarly.
15230         * m68k/news.h: Similarly.
15231         * m88k/m88k-protos.h: Similarly.
15232         * m88k/m88k.c: Similarly.
15233         * m88k/m88k.h: Similarly.
15234         * mips/mips-protos.h: Similarly.
15235         * mips/mips.c: Similarly.
15236         * mips/mips.h: Similarly.
15237         * ns32k/merlin.h: Similarly.
15238         * ns32k/ns32k.c: Similarly.
15239         * ns32k/ns32k.h: Similarly.
15240         * ns32k/tek6000.h: Similarly.
15241         * pa/pa-protos.h: Similarly.
15242         * pa/pa.c: Similarly.
15243         * pa/pa.h: Similarly.
15244         * pdp11/2bsd.h: Similarly.
15245         * pdp11/pdp11-protos.h: Similarly.
15246         * pdp11/pdp11.c: Similarly.
15247         * pdp11/pdp11.h: Similarly.
15248         * romp/romp-protos.h: Similarly.
15249         * romp/romp.c: Similarly.
15250         * romp/romp.h: Similarly.
15251         * rs6000/rs6000-protos.h: Similarly.
15252         * rs6000/rs6000.c: Similarly.
15253         * rs6000/rs6000.h: Similarly.
15254         * rs6000/sysv4.h: Similarly.
15255         * sh/sh-protos.h: Similarly.
15256         * sh/sh.c: Similarly.
15257         * sh/sh.h: Similarly.
15258         * sparc/sparc-protos.h: Similarly.
15259         * sparc/sparc.c: Similarly.
15260         * sparc/sparc.h: Similarly.
15261         * vax/vax.c: Similarly.
15262         * vax/vax.h: Similarly.
15263         * vax/vms.h: Similarly.
15264         * we32k/we32k.c: Similarly.
15265         * we32k/we32k.h: Similarly.
15266
15267 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
15268
15269         * basic-block.h (first_insn_after_basic_block_note): Declare.
15270         * flow.c (first_insn_after_basic_block_note): Define.  Moved
15271         from...
15272         * ssa.c (first_insn_after_basic_block_note): Remove.
15273         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
15274         necessary.
15275         (ssa_eliminate_dead_code): Properly update the CFG and PHI
15276         nodes when we find a dead conditional branch.  Insert BARRIERs
15277         after any blocks with no successors, but which do not have
15278         any BARRIERs.
15279
15280 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
15281
15282         * varray.c (varray_check_failed): Use internal_error.
15283
15284 2001-07-05  Andrew Haley  <aph@redhat.com>
15285
15286         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
15287         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
15288         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
15289
15290 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
15291
15292         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
15293         reference if the target constant is also a SYMBOL_REF.
15294
15295 2001-07-05  Eric Christopher  <echristo@redhat.com>
15296
15297         * config/mips/mips.h (MASK_MIPS3900): Remove.
15298         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
15299         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
15300         (TARGET_MIPS3900): Change to use mips_arch.
15301         (TARGET_MIPS4000): New.
15302         (TARGET_MIPS4100): New.
15303         (TARGET_MIPS4300): New.
15304         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
15305         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
15306         for -mipsX.
15307         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
15308         (ISA_HAS_BRANCHLIKELY): To here.
15309         (CC1_CPU_SPEC):  New.
15310         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
15311         (mips_arch_string): Declare.
15312         (mips_arch): Declare.
15313         (TARGET_OPTIONS): Add -march and -mtune.
15314
15315         * config/mips/mips.c (mips_arch_string): New.
15316         (mips_arch): New.
15317         (override_options): Handle -march for codegen and -mtune
15318         for scheduling. Use mips_arch. Move tx39 target default here.
15319         (mips_parse_cpu): Move error message to override_options.
15320
15321         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
15322
15323         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
15324
15325         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
15326         (MIPS Options): Ditto.  Change mcpu entry to historical text.
15327
15328 2001-07-05  H.J. Lu  (hjl@gnu.org)
15329
15330         * config/mips/mips.c (mips_parse_cpu): New function to parse
15331         -march=*/-mcpu=*.
15332
15333 2001-07-05  Jim Wilson  <wilson@redhat.com>
15334
15335         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
15336         * config/ia64/t-ia64: Likewise.
15337         (LIB1ASMFUNCS): Update comment.
15338
15339 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
15340
15341         * doc/install.texi (Install GCC: Binaries): Fix typo.
15342
15343 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15344
15345         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
15346         reference using the stack pointer, adjust it since we push Y
15347         temporarily.
15348         ("*ashrsi3"): Likewise.
15349         ("*lshrsi3"): Likewise.
15350
15351 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15352
15353         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
15354         when -fomit-frame-pointer is used.
15355
15356 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
15357
15358         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
15359         (try_redirect_by_replacing_jump): Reverse updating properly the
15360         count and frequency information.  Reverse removing cc0 setter.
15361         (forwarder_block_p): Reverse fixing for fallthru blocks.
15362
15363 2001-07-05  DJ Delorie  <dj@redhat.com>
15364
15365         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15366         (translate_options): If the above is defined, use it to map
15367         given options to new options.
15368         * doc/tm.texi: Document it.
15369
15370 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
15371             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15372
15373         * doc/invoke.texi (Optimize Options): Document that -fgcse may
15374         cause programs using computed gotos to run more slowly.
15375
15376 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15377
15378         * doc/install.texi (Specific): Markup, spelling and typo fixes.
15379         Fixed sorting.
15380         Consistently require binutils 2.11.2, not prereleases.
15381         (Specific, decstation-*): Canonicalize as mips-dec-*.
15382         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15383         always necessary.
15384         (Specific, m68k-altos): Removed reference to README.altos, deleted.
15385         (Specific, mips-*): Reword MIPS C compiler requirements.
15386         (Specific, powerpc*-*-*): New, mention --with-cpu once.
15387         (Specific, sunv5): Removed, obsolete.
15388
15389 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
15390
15391         * dwarf2out.c (output_loc_list): Use an all ones mask for
15392         .text asm output and don't rely on long long
15393         literals. Reformat some long lines.
15394
15395 2001-07-05  Andreas Jaeger  <aj@suse.de>
15396
15397         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15398         section.
15399
15400 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15401
15402         * dwarf2out.c (dwarf2out_define): Update comment.
15403         (dwarf2out_undef): Ditto.
15404         (dwarf2out_start_source_file): Ditto.
15405         (dwarf2out_end_source_file): Ditto.
15406         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15407         since we never call the start/end debug hook for the primary file.
15408
15409 2001-07-04  Kazu Hirata  <kazu@hxi.com>
15410
15411         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15412         from shll.
15413
15414 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15415
15416         * cppinit.c (remove_dup_dirs): Inform if a system include
15417         directory is being reordered.
15418         * doc/invoke.texi (Directory Options): GCC warns if you hide a
15419         system include.
15420         * doc/cpp.texi (Search Paths): Likewise.
15421         * doc/gcc.texi (Interoperation): Remove information about
15422         -I/usr/include.
15423
15424 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15425
15426         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15427         (VARRAY_TOP_CHAR_PTR): Likewise.
15428
15429 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15430
15431         * gcc.c (process_command): Don't assign elements of a const char*.
15432
15433 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15434
15435         * emit-rtl.c (change_address): Don't abort if invalid address while
15436         reload is in progress.
15437
15438 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15439
15440         * c-lex.c (cb_file_change): Pass line number to
15441         debug_start_source_file.
15442         (cb_undefine): Pass correct line number to debug_undef.
15443
15444         * toplev.c (debug_start_source_file): Add line number to
15445         parameters. Pass it along to dwarf2out_start_source_file.
15446         (decode_g_option): Stop resetting debug level back to normal when
15447         we change debug formats, unless the current level is
15448         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15449         3).
15450
15451         * toplev.h (debug_start_source_file): Add line number to
15452         parameters.
15453
15454         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15455         parameters.
15456
15457         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15458         parameters.
15459         Output debug_macinfo data for starting file if requested.
15460         (dwarf2out_end_source_file): Output debug_macinfo data for ending
15461         file if requested.
15462         (dwarf2out_define): Output debug_macinfo data for defining a macro
15463         if requested.
15464         (dwarf2out_undef): Output debug_macinfo data for undefining a
15465         macro if requested.
15466         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15467         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15468         (macinfo_section_label): New. DWARF2 macro info section label.
15469         (dwarf2out_init): If we want macro info, output the start label
15470         for the section.
15471         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15472         attribute to the compilation unit die pointing to the macro info.
15473
15474 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15475
15476         * dwarf2out.c (new_loc_list): Move to inside #ifdef
15477         DWARF2_DEBUGGING_INFO.
15478         (add_loc_descr_to_loc_list): Ditto.
15479         (output_loc_list): Ditto.
15480         Also, fix thinko in curr not being initialized.
15481         (gen_internal_sym): Ditto.
15482
15483 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15484
15485         * emit-rtl.c (replace_equiv_address): New function.
15486         * expr.h (replace_equiv_address): New declaration.
15487         * explow.c (validize_mem): Call it instead of change_address and
15488         also call if -fforce-addr and address is constant.
15489         * expr.c: Replace more calls to change_address with adjust_address
15490         and/or replace_equiv_address or to validize_mem.
15491         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15492         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15493         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15494         * config/i370/i370.md, config/i860/i860.md: Likewise.
15495         * config/i960/i960.md, config/mips/mips.c: Likewise.
15496         * config/mips/mips.md, config/pa/pa.md: Likewise.
15497         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15498         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15499
15500 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15501
15502         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15503
15504         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15505         function.
15506
15507 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15508
15509         * doc/include: New directory.
15510         * doc/fdl.texi: Move to doc/include/fdl.texi.
15511         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15512         * doc/include/funding.texi, doc/include/gpl.texi: New files.
15513         * doc/gcc.texi: Use funding.texi and gpl.texi.
15514         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15515         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15516         Update dependencies and use -I $(docdir)/include.
15517
15518 2001-07-04  Anthony Green  <green@redhat.com>
15519
15520         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15521
15522 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15523
15524         * doc/install.texi (sparc64-*-*): Remove garbage.
15525
15526 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
15527
15528         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15529         Fix typo in last change to use adjust_address.
15530
15531 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15532
15533         * doc/install.texi (Specific): Update information for *-*-solaris*.
15534
15535 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15536
15537         * explow.c (plus_constant_wide): Reinitialize Y for restart.
15538
15539 2001-07-03  Stan Shebs  <shebs@apple.com>
15540
15541         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15542         case for flag_no_mach_text_sections.
15543         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15544         * config/darwin.c (flag_no_mach_text_sections): Remove.
15545         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15546
15547 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15548
15549         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15550         and avoid checking for constant as first operand.
15551         * recog.c (find_constant_term_loc): No longer static.
15552         (adj_offettable_operand): Delete.
15553         * rtl.h (adj_offsettable_operand): Delete declaration.
15554         (find_constant_term): Add declaration.
15555         * caller-save.c: Replace calls to adj_offsettable_operand with calls
15556         to adjust_address.
15557         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15558         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15559         * config/i386/i386.c, config/i386/i386.md: Likewise.
15560         * config/i860/i860.c, config/i960/i960.c: Likewise.
15561         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15562         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15563         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15564         * config/mips/mips.c, config/mips/mips.md: Likewise.
15565         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15566         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15567         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15568         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15569         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15570         * config/ns32k/ns32k.md: Likewise.
15571
15572 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
15573
15574         * rtl.c (copy_rtx): Handle 'T' format letter.
15575         * gensupport.c (collect_insn_data): Likewise.
15576         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15577
15578 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
15579
15580         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15581         -B option.  Use 'dir' not 'foo' as example directory name.
15582
15583 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15584
15585         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15586         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15587
15588 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15589
15590         * doc/cppinternals.texi: Improve formatting and logical markup.
15591
15592 2001-07-03  Andreas Jaeger  <aj@suse.de>
15593
15594         * Makefile.in (insn-recog.o): Add dependency on reload.h.
15595
15596         * genrecog.c (write_header): Include reload.h for prototypes in
15597         insn-recog.c.
15598
15599 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
15600
15601 config:
15602         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15603         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15604         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15605         i386_pe_valid_type_attribute_p): Add.
15606         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15607         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15608
15609 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15610
15611         * explow.c (plus_constant_wide, case LO_SUM): New case.
15612         (plus_constant_for_output_wide): Delete.
15613         * rtl.h (plus_constant_for_output): Delete.
15614         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15615         instead of plus_constant_for_output.
15616         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15617         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15618         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15619         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15620         * config/sparc/sparc.md: Likewise.
15621         Convert some change_address calls to adjust_address.
15622
15623 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15624
15625         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15626         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
15627         documentation of -std and -Wwrite-strings.
15628
15629 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15630
15631         * cse.c (canon_hash): Don't register registers in very small
15632         register classes, as extending their lifetime might cause
15633         reload to fail.
15634
15635 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15636
15637         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15638
15639         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15640         (try_redirect_by_replacing_jump): Update properly the count
15641         and frequency information.
15642
15643 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
15644
15645         * toplev.c (dump_file_index): Move SSA dumps just after first
15646         jump dump.
15647         (dump_file): Corresponding changes.
15648         (rest_of_compilation): Move SSA path to just after the first
15649         jump pass.
15650         * doc/gcc.texi (Passes): Update due to movement of SSA path.
15651         * doc/invoke.texi: Update dump file #s as they were completely
15652         out of date with reality.
15653
15654 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15655
15656         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15657
15658         * expr.c (emit_move_insn_1): Deal with non-default
15659         STACK_PUSH_CODE.
15660
15661         * expr.c (emit_single_push_insn): Fix warning.
15662
15663 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15664
15665         * expr.c (emit_move_insn_1): Avoid modifying
15666         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15667
15668 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15669
15670         * emit-rtl.c (adjust_address): New function.
15671         * expr.h (adjust_address): Add declaration.
15672         * builtins.c: Replace some calls to change_address with calls to it
15673         or to validize_mem.
15674         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15675         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15676         * config/arm/arm.c, config/convex/convex.c: Likewise.
15677         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15678         * config/i386/i386.c, config/i386/i386.md: Likewise.
15679         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15680         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15681         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15682         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15683         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15684
15685 2001-07-02  Jim Wilson  <wilson@redhat.com>
15686
15687         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15688
15689 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
15690
15691         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15692         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15693
15694 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15695
15696         * cppinit.c (lang_defaults): New table.
15697         (set_lang): Just read from lang_defaults into the live options
15698         structure.
15699
15700 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15701
15702         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15703         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15704         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15705
15706 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15707
15708         * doc/install.texi: Various spelling and markup fixes.
15709         (Installing GCC): Component specific installation instructions are
15710         gone.
15711         Fix reference.
15712         Warn about removing old install dir in the presence of shared libs.
15713         (Configuration): Invoke with options target to match configure
15714         --help.
15715         Consistently refer to gas, gld pathnames.
15716         Invert --enable-multilib documentation.
15717         Remove references to old compiler versions.
15718
15719 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15720
15721         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15722
15723 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15724
15725         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15726         section.
15727         (Specific, mips*-sgi-irix5): Note IDO download.
15728         Reworded MIPS C hints.
15729         Use GNU as instead of GAS.
15730         Markup fixes.
15731         Removed SGI Freeware reference, IRIX 6 only.
15732         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15733         Note N64 library requirement/workaround.
15734         Update O32 hints.
15735         Complete list of structure passing bug victims.
15736
15737 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15738
15739         * doc/install.texi: Remove CVS Id.
15740
15741 2001-07-02  Andreas Jaeger  <aj@suse.de>
15742
15743         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15744         (find_inherently_necessary): Remove unused variable.
15745
15746 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
15747
15748         * c-common.h (TDI_inlined): New ast dump phase.
15749         (dump_flag_name): New function.
15750         * c-dump.c (dump_files): Add inlined phase.
15751         (dump_flag_name): Define.
15752         * doc/invoke.texi (-fdump-ast-inlined): Document.
15753
15754 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15755
15756         * stor-layout.c (layout_decl): Revert change to handling of alignment
15757         in packed types.
15758
15759 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15760
15761         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15762         for FIELD_DECL.
15763
15764 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
15765
15766         * doc/tm.texi (FUNCTION_ARG): Document that the last call
15767         is special.
15768
15769 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15770
15771         * tlink.c (recompile_files): Remove COMPILER_PATH and
15772         LIBRARY_PATH from the environment.
15773
15774 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
15775
15776         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15777         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
15778         enumerators.
15779         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15780
15781         * c-parse.in (OBJC_STRING): Kill.
15782         (objc_string): Decompose to [objc_string] '@' STRING.
15783         (reswords): Take the leading '@' off all the Objective C keywords.
15784         (objc_rid_sans_at): Kill.
15785         (init_reswords): Don't initialize it.
15786         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15787         (_yylex): Kill reconsider label.  Look ahead one token after
15788         an '@'; if we get an identifier, check whether it's an
15789         Objective C @-keyword.  If so, return the keyword.  Otherwise,
15790         put back the token and return the '@' as a terminal.
15791
15792         * cpplib.c (lex_macro_node): Remove unnecessary check for
15793         leading '@' on identifier.  Clarify control flow and commentary.
15794
15795 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15796
15797         * cse.c (new_label_ref): Variable deleted.
15798         (insert): Remove set of new_label_ref.
15799         (check_for_label_ref): New function.
15800         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15801
15802 See ChangeLog.5 for earlier changes.