OSDN Git Service

* combine.c (try_combine): Handle a SEQUENCE of one insn.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-10-10  Richard Henderson  <rth@redhat.com>
2
3         * combine.c (try_combine): Handle a SEQUENCE of one insn.
4
5 2001-10-10  Richard Henderson  <rth@redhat.com>
6
7         * langhooks.c: Include langhooks.h.
8         * Makefile.in (langhooks.o): Depend on it.
9
10 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
11
12         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
13         should not be considered as a no-op.
14         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
15
16 2001-10-10  Stan Shebs  <shebs@apple.com>
17
18         * alias.c: Remove uses of "register" specifier in declarations
19         of arguments and local variables.
20         * c-common.c: Ditto.
21         * c-convert.c: Ditto.
22         * c-decl.c: Ditto.
23         * c-format.c: Ditto.
24         * c-semantics.c: Ditto.
25         * c-typeck.c: Ditto.
26         * caller-save.c: Ditto.
27         * calls.c: Ditto.
28         * cfg.c: Ditto.
29         * cfgbuild.c: Ditto.
30         * cfgrtl.c: Ditto.
31         * collect2.c: Ditto.
32         * combine.c: Ditto.
33         * convert.c: Ditto.
34         * cppexp.c: Ditto.
35         * cppfiles.c: Ditto.
36         * cse.c: Ditto.
37         * dbxout.c: Ditto.
38         * defaults.h: Ditto.
39         * df.c: Ditto.
40         * dwarf2out.c: Ditto.
41         * dwarfout.c: Ditto.
42         * emit-rtl.c: Ditto.
43         * explow.c: Ditto.
44         * expmed.c: Ditto.
45         * expr.c: Ditto.
46         * final.c: Ditto.
47         * fix-header.c: Ditto.
48         * floatlib.c: Ditto.
49         * flow.c: Ditto.
50         * fold-const.c: Ditto.
51         * function.c: Ditto.
52         * gcc.c: Ditto.
53         * gcse.c: Ditto.
54         * gen-protos.c: Ditto.
55         * genattrtab.c: Ditto.
56         * gencheck.c: Ditto.
57         * genconfig.c: Ditto.
58         * genemit.c: Ditto.
59         * genextract.c: Ditto.
60         * genflags.c: Ditto.
61         * gengenrtl.c: Ditto.
62         * genoutput.c: Ditto.
63         * genpeep.c: Ditto.
64         * genrecog.c: Ditto.
65         * gensupport.c: Ditto.
66         * global.c: Ditto.
67         * gmon.c: Ditto.
68         * graph.c: Ditto.
69         * haifa-sched.c: Ditto.
70         * hard-reg-set.h: Ditto.
71         * hash.c: Ditto.
72         * integrate.c: Ditto.
73         * jump.c: Ditto.
74         * lists.c: Ditto.
75         * local-alloc.c: Ditto.
76         * loop.c: Ditto.
77         * mips-tdump.c: Ditto.
78         * mips-tfile.c: Ditto.
79         * optabs.c: Ditto.
80         * prefix.c: Ditto.
81         * print-rtl.c: Ditto.
82         * read-rtl.c: Ditto.
83         * real.c: Ditto.
84         * recog.c: Ditto.
85         * reg-stack.c: Ditto.
86         * regclass.c: Ditto.
87         * regmove.c: Ditto.
88         * reload.c: Ditto.
89         * reload1.c: Ditto.
90         * reorg.c: Ditto.
91         * resource.c: Ditto.
92         * rtl.c: Ditto.
93         * rtlanal.c: Ditto.
94         * scan.c: Ditto.
95         * sched-deps.c: Ditto.
96         * sched-rgn.c: Ditto.
97         * sdbout.c: Ditto.
98         * simplify-rtx.c: Ditto.
99         * stmt.c: Ditto.
100         * stor-layout.c: Ditto.
101         * toplev.c: Ditto.
102         * tradcif.y: Ditto.
103         * tradcpp.c: Ditto.
104         * tree.c: Ditto.
105         * unroll.c: Ditto.
106         * varasm.c: Ditto.
107         * xcoffout.c: Ditto.
108
109 2001-10-10  Richard Henderson  <rth@redhat.com>
110
111         * rtl.h (can_reverse_comparison_p): Remove.
112
113 2001-10-10  Christopher Faylor <cgf@redhat.com>
114
115         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
116         used.
117
118 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
119
120         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
121         (Thanks to Chris Faylor for suggesting macro name).
122         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
123         WIN32 defines.
124         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
125         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
126         (MATH_LIBRARY): Undef before definition.
127         (OUTPUT_QUOTED_STRING): Likewise.
128         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
129
130 2001-10-10  Richard Henderson  <rth@redhat.com>
131
132         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
133         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
134         a tristate comparison value.
135         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
136
137 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
138
139         PR c++/4512
140         * unroll.c (loop_iterations): Ignore insns generated by loop
141         unrolling.
142
143         * config.gcc (mips*-*-gnu*): Delete support.
144         * config/mips/gnu.h: Remove.
145
146 2001-10-10  Kazu Hirata  <kazu@hxi.com>
147
148         * calls.c: Fix formatting.
149         * c-decl.c: Likewise.
150         * cfgcleanup.c: Likewise.
151         * combine.c: Likewise.
152         * cppfiles.c: Likewise.
153         * cpplib.c: Likewise.
154         * cppmacro.c: Likewise.
155         * crtstuff.c: Likewise.
156         * cse.c: Likewise.
157         * dwarf2out.c: Likewise.
158         * expmed.c: Likewise.
159         * expr.c: Likewise.
160         * fold-const.c: Likewise.
161         * function.c: Likewise.
162         * gcse.c: Likewise.
163         * genattrtab.c: Likewise.
164         * ggc-page.c: Likewise.
165         * integrate.c: Likewise.
166         * libgcc2.c: Likewise.
167         * loop.c: Likewise.
168         * optabs.c: Likewise.
169         * profile.c: Likewise.
170         * protoize.c: Likewise.
171         * real.c: Likewise.
172         * recog.c: Likewise.
173         * reload1.c: Likewise.
174         * reload.c: Likewise.
175         * reorg.c: Likewise.
176         * resource.c: Likewise.
177         * sched-rgn.c: Likewise.
178         * sdbout.c: Likewise.
179         * stmt.c: Likewise.
180         * toplev.c: Likewise.
181         * varasm.c: Likewise.
182
183 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
184
185         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
186         * Makefile.in (langhooks.o): Add dependencies.
187
188 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
189
190         * rs6000.c (rs6000_emit_load_toc_table): Don't
191         strdup the toc label.
192         (create_TOC_reference): Likewise.
193
194 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
195
196         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
197         version default.
198
199 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
200
201         * config/i386/i386.c (ix86_attribute_table): Correct 
202         min_len, max_len fields for dllimport, dllexport and shared.
203
204 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
205
206         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
207         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
208         Consistently use "nonzero" instead of "non-zero".
209
210 2001-10-09  Kazu Hirata  <kazu@hxi.com>
211
212         * acconfig.h: Fix comment formatting.
213         * c-dump.h: Likewise.
214         * c-tree.h: Likewise.
215         * conditions.h: Likewise.
216         * expr.h: Likewise.
217         * function.h: Likewise.
218         * gthr.h: Likewise.
219         * hwint.h: Likewise.
220         * integrate.h: Likewise.
221         * intl.h: Likewise.
222         * loop.h: Likewise.
223         * optabs.h: Likewise.
224
225 2001-10-09  Kazu Hirata  <kazu@hxi.com>
226
227         * c-common.h: Fix comment formatting.
228         * c-dump.c: Likewise.
229         * cfg.c: Likewise.
230         * diagnostic.h: Likewise.
231         * except.c: Likewise.
232         * gcc.h: Likewise.
233         * gcov-io.h: Likewise.
234         * genattrtab.c: Likewise.
235         * output.h: Likewise.
236         * predict.h: Likewise.
237         * reload1.c: Likewise.
238         * reload.h: Likewise.
239         * resource.h: Likewise.
240         * scan.h: Likewise.
241         * system.h: Likewise.
242         * tree.h: Likewise.
243         * tree-inline.c: Likewise.
244         * tsystem.h: Likewise.
245         * varasm.c: Likewise.
246         * xcoffout.h: Likewise.
247
248 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
249
250         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
251
252 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
253
254         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
255         config/i386/i386elf.h, config/i386/netbsd-elf.h,
256         config/i386/netware.h, config/mcore/gfloat.h,
257         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
258         config/netware.h, gccbug.in: Update FSF address.
259
260 2001-10-09  Kazu Hirata  <kazu@hxi.com>
261
262         * c-common.c: Fix comment typos.
263         * cfgrtl.c: Likewise.
264         * collect2.c: Likewise.
265         * cpplex.c: Likewise.
266         * doloop.c: Likewise.
267         * dwarf2out.c: Likewise.
268         * dwarfout.c: Likewise.
269         * expr.c: Likewise.
270         * fold-const.c: Likewise.
271         * gcc.c: Likewise.
272         * gcov.c: Likewise.
273         * gcse.c: Likewise.
274         * global.c: Likewise.
275         * ifcvt.c: Likewise.
276         * loop.c: Likewise.
277         * optabs.c: Likewise.
278         * protoize.c: Likewise.
279         * regclass.c: Likewise.
280         * reorg.c: Likewise.
281         * rtl.h: Likewise.
282         * stmt.c: Likewise.
283         * tree.h: Likewise.
284         * doc/cpp.texi: Likewise.
285         * doc/c-tree.texi: Likewise.
286         * doc/extend.texi: Likewise.
287         * doc/invoke.texi: Likewise.
288         * doc/objc.texi: Likewise.
289         * doc/tm.texi: Likewise.
290
291 2001-10-08  Richard Henderson  <rth@redhat.com>
292
293         * varasm.c (set_named_section_flags): Initialize "declared".
294
295 2001-10-08  Robert Lipe  <robertlipe@usa.net>
296
297         * varasm.c (struct in_named_entry): Add declared.
298         (named_section_first_declaration): New function.
299         (default_elf_asm_named_section): Use it.
300         * output.h (named_section_first_declaration): New.
301
302 2001-10-08  Richard Henderson  <rth@redhat.com>
303
304         * i386.md (movsi_xor): Export.
305         (setcc peep2): Use it when available; add an alternative to
306         match zero_extendhisi2_and.
307
308 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
309
310         * romp-protos.h (romp_initialize_trampoline): New function.
311         * romp.c (romp_initialize_trampoline): Likewise.
312         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
313         romp_initialize_trampoline.
314
315 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
316
317         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
318         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
319         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
320         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
321
322 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
323
324         * unroll.c (loop_iterations): Extend check for multiple back edges.
325
326 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
327
328         * langhooks.h: New file.
329         * Makefile.in (OBJS): Added langhooks.o.
330         (c-lang.o): Depend on langhooks.h.
331         (c-common.o): Don't depend on tree-inline.h.
332         (tree-inline.o): Depend on toplev.h.
333         (langhooks.o): New rule.
334         * c-common.c: Don't include tree-inline.h.
335         (c_mark_lang_decl): Mark argument c as unused.
336         (c_common_lang_init): Don't initialize hooks here.
337         * c-lang.c: Include langhooks.h, then override some macros.
338         (lang_hooks): Initialize with macros in langhooks.h.
339         (c_init): Don't initialize hooks here.
340         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
341         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
342         * tree-inline.c: Include toplev.h.  Don't define hook variables.
343         * tree-inline.h: Don't define hook types nor declare hook
344         variables.  Move macros to...
345         * langhooks.c: ... new file, as functions.  Adjust all callers.
346
347 2001-10-08  Jeffrey A Law  <law@cygnus.com>
348
349         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
350         purge_mem_unchanging_flag on all instructions, not just on those
351         before NOTE_INSN_FUNCTION_BEG.
352
353 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
354
355         * cppmacro.c (_cpp_create_definition): Leave comments off.
356
357         * doc/cpp.texi: Update.
358
359 2001-10-08  DJ Delorie  <dj@redhat.com>
360
361         * c-decl.c (grokfield): Make sure the only unnamed fields
362         we're allowing are either structs or unions.
363         * doc/extend.texi: Add documentation for the unnamed field
364         extension.
365
366 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
367
368         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
369         * configure.in: Use it.              
370         * configure: Regenerated.
371         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
372         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.      
373
374 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
375
376         * cppfiles.c (open_file): Don't mark zero-length files
377         never-reread here.  Don't output diagnostics here either.
378         (stack_include_file): Mark them never-reread here.
379         (_cpp_read_file): Update.
380
381 2001-10-08  Richard Henderson  <rth@redhat.com>
382
383         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
384
385 2001-10-08  Richard Henderson  <rth@redhat.com>
386
387         * expr.c (store_expr): When converting a CONST_INT for storage
388         in a SUBREG, convert it to both SUBREG modes before stripping
389         the SUBREG.
390
391 2001-10-08  Richard Henderson  <rth@redhat.com>
392
393         * varasm.c (restore_varasm_status): New.
394         * function.h: Declare it.
395         * function.c (pop_function_context_from): Call it.
396
397 2001-10-08  Richard Henderson  <rth@redhat.com>
398
399         * c-common.h (struct c_lang_decl): Add declared_inline.
400         * c-tree.h (DECL_DECLARED_INLINE_P): New.
401         * c-lang.c (c_disregard_inline_limits): Use it.
402         * c-decl.c (duplicate_decls): Likewise.
403         (pushdecl, redeclaration_error_message): Likewise.
404         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
405         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
406         Set DECL_INLINE if -finline-functions.
407         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
408
409 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
410
411         * cppmacro.c (funlike_invocation_p): Move some logic to caller
412         in enter_macro_context.  Create a padding token in its own context
413         if necessary when the search for '(' fails.
414         (enter_macro_context): Update.
415
416 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
417
418         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
419         genmultilib, toplev.c: Fix spelling errors of "separate" as
420         "seperate", and corresponding spelling errors of related words.
421
422 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
423
424         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
425         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
426         Likewise.
427         * c-dump.c (dump_option_value_info): Likewise.
428         * c-format.c (format_length_info, format_char_info,
429         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
430         * collect2.c (names): Likewise.
431         * cppdefault.h (default_include): Likewise.
432         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
433         * flow.c (life_analysis): Likewise.
434         * gcc.c (dir_separator_str, modify_target, option_map,
435         target_option_translations, spec_list_1, extra_specs_1,
436         init_spec): Likewise.
437         * gcov.c (gcov_version_string): Likewise.
438         * genattr.c (write_units): Likewise.
439         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
440         * gengenrtl.c (rtx_definition, defs): Likewise.
441         * genrecog.c (pred_table): Likewise.
442         * global.c (global_alloc): Likewise.
443         * lcm.c (optimize_mode_switching): Likewise.
444         * local-alloc.c (find_free_reg): Likewise.
445         * params.h (param_info): Likewise.
446         * predict.c (predictor_info): Likewise.
447         * protoize.c (unexpansion_struct): Likewise.
448         * real.c (bmask): Likewise.
449         * recog.h (insn_operand_data, insn_data): Likewise.
450         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
451         * stmt.c (expand_nl_goto_receiver): Likewise.
452         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
453         target_switches, target_options): Likewise.
454         * tradcif.y (token, tokentab2, yylex): Likewise.
455         * tree.h (attribute_spec): Likewise.
456         
457         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
458         Likewise.
459         * arc.c (arc_output_function_epilogue): Likewise.
460         * arm.c (processors, all_cores, all_architectures,
461         arm_override_options, isr_attribute_arg, isr_attribute_args,
462         arm_isr_value): Likewise.
463         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
464         Likewise.
465         * c4x.c (c4x_int_reglist): Likewise.
466         * d30v.c (override_options): Likewise.
467         * h8300.c (shift_insn): Likewise.
468         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
469         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
470         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
471         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
472         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
473         * i386.h (processor_costs, ix86_cost): Likewise.
474         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
475         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
476         * m68k.c (codes_68881, codes_FPA): Likewise.
477         * m88k.c (mode_from_align, max_from_align, all_from_align,
478         best_from_align, m_options): Likewise.
479         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
480         * mcore.c (mode_from_align): Likewise.
481         * mips/elf64.h (UNIQUE_SECTION): Likewise.
482         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
483         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
484         * mips.h (mips_regno_to_class): Likewise.
485         * ns32k.c (scales): Likewise.
486         * pa.c (import_string, magic_milli): Likewise.
487         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
488         * sparc.c (leaf_reg_remap, sparc_override_options,
489         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
490         Likewise.
491         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
492
493 2001-10-07  Dale Johannesen  <dalej@apple.com>
494
495         * reload1.c (reload_reg_free_p): Teach register interference
496         checking that multiple output reloads are emitted in
497         reverse order.
498         reload1.c (reload_reg_reaches_end_p):  Ditto.
499         reload1.c (reloads_conflict):  Ditto.
500
501 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
502
503         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
504         NULL_TREE inside @code.
505
506 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
507
508         * doc/gcc.texi: Document consistent style of "32-bit",
509         "Objective-C", and "@code{NULL}".
510
511 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
512
513         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
514         (cpp_token_len, cpp_spell_token, cpp_output_token,
515         _cpp_equiv_tokens): Handle it.
516         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
517         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
518         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
519         error messages.
520
521 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
522
523         * gcc.c (default_compilers): Remove .ada.
524
525 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
526
527         * doc/cppinternals.texi: Update.
528
529 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
530
531         * gcc.c (main): Set this_file_error if the appropriate
532         compiler for a language has not been installed.
533
534 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
535  
536         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
537
538 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
539
540         * gccbug.in (CATEGORIES): Add ada.
541
542 2001-10-05  Catherine Moore  <clm@redhat.com>
543
544         * config/stormy16/stormy-abi:  Document abi changes.
545         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
546         (ICALL_REGS): New register class.
547         (NUM_ARGUMENT_REGISTERS): Now 6.
548         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
549         in registers.
550         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
551         * config/stormy16.md (call_internal, call_value_internal,
552         indirect_jump): Use new 'z' constraint.
553
554 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
555
556         * doc/cppinternals.texi: Update.
557
558 2001-10-05  Richard Henderson  <rth@redhat.com>
559
560         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
561         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
562         the gas section-name-as-label feature.
563
564 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
565
566         * doc/cppinternals.texi: Update.
567
568 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
569
570         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
571         to ensure valid SImode constants.
572
573 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
574
575         * Makefile.in (c-decl.o): Depend on tree-inline.h.
576         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
577         * c-decl.c: Include tree-inline.h.
578         (c_expand_body): Call optimize_inline_calls. Determine whether
579         a function is inlinable upfront, and only clear
580         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
581         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
582         (c_disregard_inline_limits): New function.
583         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
584         (c_post_options): Enable tree inlining if inlining is enabled.
585         Don't inline trees when instrumenting functions.
586         (c_init): Initialize lang_disregard_inline_limits and
587         lang_cannot_inline_tree_fn.
588         * tree-inline.c (initialize_inlined_parameters): Handle calls
589         with fewer arguments than declared parameters, and fewer
590         parameters than passed arguments.  Don't assume value is a
591         DECL.
592         (declare_return_variable): Convert return value back to the
593         original type, if it was promoted.
594         (tree_inlinable_function_p): New function.
595         (inlinable_function_p): Don't look at DECL_INLINE if we're
596         inlining all functions.  Make it work with a NULL id.
597         Re-check DECL_UNINLINABLE after language-specific checks.
598         * tree-inline.h (tree_inlinable_function_p): Declare it.
599         * integrate.c (save_for_inline): Don't bother to prepare argvec
600         when not inlining.
601         * cse.c (check_for_label_ref): Don't check deleted labels.
602
603         * Makefile.in (tree-inline.o): Depend on newly-included headers.
604         * tree-inline.c: Include headers needed for the functions moved in.
605         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
606         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
607         (copy_body, initialize_inlined_parameters): Likewise.
608         (declare_return_variable, inlinable_function_p): Likewise.
609         (expand_call_inline, expand_calls_inline): Likewise.
610         (optimize_inline_calls, clone_body): Likewise.
611         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
612         (copy_tree_r, remap_save_expr): Likewise.
613
614 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
615
616         * Makefile.in (OBJS): Added tree-inline.o.
617         (c-common.o): Depend on tree-inline.h.
618         (tree-inline.o): New target.
619         * c-common.c: Include tree-inline.h.
620         (c_mark_lang_decl): Don't mark saved_tree.
621         (c_common_lang_init): Set lang_anon_aggr_type_p.
622         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
623         (struct c_lang_decl): Moved saved_tree to tree_decl.
624         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
625         * integrate.h (function_attribute_inlinable_p): Declare it.
626         * integrate.c (function_attribute_inlinable_p): Export it.
627         * tree-inline.c: New file.  Define variables declared in...
628         * tree-inline.h: New file.  Declare functions to be moved to
629         tree-inline.c.  Define macros and declare types and hooks for
630         language-specific tree inlining.
631         (flag_inline_trees): Moved definition from cp/decl2.c.
632         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
633         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
634         (struct tree_decl): Moved saved_tree from c_lang_decl and
635         inlined_fns from C++'s lang_decl.
636
637 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
638
639         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
640         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
641
642 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
643
644         * doc/cppinternals.texi: Update.
645
646 2001-10-04  Eric Christopher  <echristo@redhat.com>
647
648         * config/mips/mips.c (init_cumulative_args): Remember to set
649         cum->prototype.
650         * config.gcc: Redo linux configuration. Add target_cpu_default
651         of soft-float to all mipsisa32 combinations and tx39.
652         * config/mips/linux.h: Remove include of mips.h.
653
654 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
655
656         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
657         HOST_LDFLAGS and HOST_CPPFLAGS.
658
659 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
660
661         * c-parse.in (objc_inherit_code, objc_pq_context,
662         objc_public_flag): Make static.
663         (objc_interface_context, objc_implementation_context,
664         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
665         global tree array in objc/objc-act.[ch].
666         (methoddef): Remove unnecessary code.
667
668         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
669         Hoist struct definitions to objc-act.h.
670         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
671         cat_count): Place declaration in objc-act.h.
672         (objc_tree_index): Move enumeration to objc-act.h.
673         (objc_global_trees): Place declaration and macro accessors in
674         objc-act.h.
675         (implementation_context): Remove duplicate; use
676         objc_implementation_context instead:
677         (method_context): Remove duplicate; use objc_method_context
678         instead.
679         (objc_ellipsis_node, objc_method_prototype_template,
680         implemented_classes, function_type): Move global vars to
681         objc_global_trees.
682         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
683         (build_message_expr): Move actual construction of ObjC message
684         send nodes to finish_message_expr.
685         (finish_message_expr): New routine, contains code formerly in
686         build_message_expr.
687         * objc/objc-act.h (finish_message_expr): New prototype.
688         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
689         declarations; these vars are now part of objc_global_trees.
690         (objc_tree_index, objc_global_trees): Move definitions from
691         objc-act.c.
692         * objc/objc-tree.def: Update copyright info.
693
694 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
695
696         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
697         op is NULL.
698         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
699         only if TARGET_ARCH64.
700
701 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
702
703         * doc/extend.texi: Fix some problems with previous checkin.
704         * doc/invoke.texi: Likewise.
705
706 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
707
708         * cpphash.h: Update comments.
709         (cpp_context): Update.
710         (spec_nodes): Remove n__Pragma.
711         * cppinit.c (cpp_create_reader): Update.
712         (builtin_array): Add _Pragma.
713         * cpplib.h: Update comments.
714         (NODE_DISABLED, BT_PRAGMA): New.
715         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
716         * cppmacro.c (struct cpp_macro): Remove disabled.
717         (builtin_macro): Return int, handle _Pragma, push the new token
718         on the context stack.
719         (funlike_invocation_p): Unconstify, update.
720         (enter_macro_context): Handle builtins here.
721         (replace_args, push_token_context, push_ptoken_context):
722         Update for prototype changes.
723         (_cpp_pop_context): Update.
724         (cpp_get_token): Don't handle buitins, nor _Pragma here.
725         (cpp_sys_macro_p): Update.
726         (_cpp_free_definition): Clear disabled flag.
727         (_cpp_create_definition): Upate.
728         * cppmain.c: Update comments.
729
730 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
731                                Andreas Jaeger <aj@suse.de>,
732                                Jan Hubicka    <jh@suse.cz>
733
734         * doc/invoke.texi (i386 Options): Document x86-64 options.
735         (i386 and x86-64 Options): Rename i386 options section.
736
737         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
738         (TARGET_SWITCHES): Add -munwind-info.
739         (MASK_NO_UNWIND_INFO): New.
740         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
741         biarch compilation.
742         (ASM_OUTPUT_DOUBLE_INT): New.
743
744         * config/i386/linux64.h: New spec file for Linux x86-64 support.
745         * config.gcc: Fix tm_file settings for x86-64.
746         * config/i386/x86-64.h: New file with OS independent x86-64
747         definitions.
748         * config/i386/biarch64.h: New file used to configure compiler
749         to biarch/64bit compilation.
750
751         * config/i386/i386.c: (override_options): Set flags default
752         for 64bit compilation.
753
754 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
755
756         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
757         (ix86_expand_int_movcc): Optimize DImode conditional moves with
758         constants on x86_64.
759         (ix86_attr_length_immediate_default): Support MODE_DI.
760         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
761         condition.
762         (indirect_jump, tablejump): Turn into expander.
763
764 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
765
766         * c-common.c (c_format_attribute_table): Make format and
767         format_arg attributes apply to function types rather than to
768         decls.
769         (is_valid_printf_arglist): Construct an attribute list and pass
770         that to check_function_format rather than a name.
771         * c-common.h (check_function_format): Adjust prototype.
772         * c-decl.c (duplicate_decls): Preserve attributes from type of
773         built-in decl when allowing for harmless conflict in types.
774         * c-format.c (record_function_format,
775         record_international_format, function_format_list,
776         international_format_info, international_format_list): Remove.
777         (function_format_info): Remove next, name and assembler_name.
778         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
779         (decode_format_attr): New.
780         (handle_format_attribute): Handle receiving a type rather than a
781         decl.  Call decode_format_attr.  Store format information in a
782         function_format_info.
783         (handle_format_arg_attribute): Correct comment.  Handle receiving
784         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
785         arg_num.
786         (check_format_info_recurse, check_format_info_main): Take argument
787         numbers as unsigned HOST_WIDE_INT.
788         (check_function_format): Take a list of attributes from the
789         function type rather than a name or assembler name.  Check for
790         format attributes in that list and the attributes on the type of
791         the current function rather than looking through
792         function_format_list.
793         (check_format_info): Use unsigned HOST_WIDE_INT for argument
794         numbers.
795         (check_format_info_recurse): Take format_arg attributes from the
796         type of the function calls rather than using
797         international_format_list.  Allow for multiple format_arg
798         attributes.
799         * c-typeck.c (build_function_call): Pass type attributes to
800         check_function_format rather than name or assembler name.  Don't
801         require there to be a name or assembler name to check formats.
802
803 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
804
805         * attribs.c (decl_attributes): Possibly call
806         insert_default_attributes to insert default attributes on
807         functions in a lazy manner.
808         * builtin-attrs.def: New file; define the default format and
809         format_arg attributes.
810         * c-common.c (c_format_attribute_table): Move to earlier in the
811         file.
812         (c_common_nodes_and_builtins): Initialize format_attribute_table.
813         (enum built_in_attribute, built_in_attributes,
814         c_attrs_initialized, c_init_attributes,
815         c_common_insert_default_attributes): New.
816         (c_common_lang_init): Don't initialize format_attribute_table.  Do
817         call c_init_attributes.
818         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
819         * c-common.h (init_function_format_info): Don't declare.
820         (c_common_insert_default_attributes): Declare.
821         * c-decl.c (implicitly_declare, builtin_function): Call
822         decl_attributes.
823         (init_decl_processing): Don't call init_function_format_info.
824         (insert_default_attributes): New.
825         * c-format.c (handle_format_attribute,
826         handle_format_arg_attribute): Be quiet about inappropriate
827         declaration when applying default attributes.
828         (init_function_format_info): Remove.
829         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
830         (insert_default_attributes): Declare.
831
832 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
833
834         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
835
836 2001-10-01  Jim Wilson  <wilson@redhat.com>
837
838         * sched-deps.c (add_dependence): When elide conditional dependence,
839         check that insn doesn't modify cond2.
840
841 2001-10-01  Dale Johannesen  <dalej@apple.com>
842
843         * config/rs6000/rs6000.h (enum processor_type): Add support
844         for 7400 (G4) and 7450.
845         (RTX_COSTS): Ditto.
846         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
847         (rs6000_issue_rate): Ditto.
848         (rs6000_adjust_cost): Fix cycle counts for compares.
849         (debug_stack_info):  Fix an obvious typo.
850         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
851         * doc/invoke.texi: Document.
852         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
853         for Darwin.
854         (PROCESSOR_DEFAULT): Ditto.
855
856 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
857
858         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
859         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
860         later recursive make invocation.
861
862 2001-10-01  Hans Boehm  <boehm@acm.org>
863
864         * optabs.c (emit_libcall_block): When using non-call exceptions,
865         don't add REG_LIBCALL reg notes to trapping calls.
866
867 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
868
869         * flow.c (propagate_block_delete_libcall): Remove unused first arg
870         (propagate_one_insn):  Update for above change
871
872 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
873
874         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
875         _Unwind_GetTextRelBase): Argument is unused.
876
877 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
878
879         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
880         Loop through NOPs, placeholders, and components.
881         Don't go through NOPs if change mode.
882         (record_alias_subset): Do nothing if SUBSET and SET are the same.
883         * emit-rtl.c (set_mem_alias_set): Enable check.
884         * expr.c (find_placeholder): New function.
885         (expand_expr, case PLACEHOLDER_EXPR): Use it.
886         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
887         to modify it and avoid unneeded copies.
888         * expr.h (expand_expr): Always define.
889         (find_placeholder): New declaration.
890
891 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
892
893         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
894         operand 2 is the stack pointer.
895         ("addr-peephole"): Fix address computation peephole when operand 2
896         is the stack pointer.
897
898 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
899
900         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
901         (ix86_setup_incoming_varargs): Likewise.
902
903 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
904
905         * stor-layout.c (layout_type): Don't complain about too-large
906         array here.
907
908 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
909
910         * function.c (keep_stack_depressed): Don't use delete_insn.
911
912         * expr.h (set_mem_alias_set): Move decl to here.
913         * rtl.h (mem_attrs): New typedef and struct.
914         (union rtunion_def): Add field for mem_attrs.
915         (X0MEMATTR, MEM_ATTRS): New macros.
916         (MEM_ALIAS_SET): Use MEM_ATTRS.
917         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
918         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
919         (set_mem_alias_set): Delete decl from here.
920
921         * alias.c (set_mem_alias_set): Delete from here.
922         * emit-rtl.c (mem_attrs_htab): New variable.
923         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
924         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
925         (mem_attrs_mark, get_mem_attrs): Likewise.
926         (gen_rtx_MEM): Clear MEM_ATTRS.
927         (set_mem_attributes): Move to here.
928         (set_mem_alias_set): Likewise, and call get_mem_attrs.
929         (init_emit_once): const_int_htab now deletable htab.
930         Initialize mem_attrs_htab.
931         * explow.c (set_mem_attributes): Delete from here.
932         * function.c (put_var_into_stack): Clear MEM_ATTRS.
933         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
934         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
935         * reload1.c (reload): Rework changing REG to MEM.
936
937 2001-09-30  H.J. Lu <hjl@gnu.org>
938
939         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
940         * config.in: Rebuild.
941
942 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
943
944         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
945         ("tsthi_1"): Avoid allocation in register y.
946         ("*movqi_68hc12"): Reorganize and fix constraints.
947         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
948         ("addqi3"): Likewise.
949         ("addhi3"): Fix constraints.
950         ("*logicalhi3_zexthi"): Disparage soft registers.
951
952 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
953
954         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
955         to tmp reg.
956
957 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
958
959         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
960         that we use setjmp/longjmp exceptions.
961
962 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
963
964         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
965         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
966         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
967         _cpp_pool_alloc, _cpp_next_chunk): Remove.
968         (_cpp_extend_buff, BUFF_ROOM): Update.
969         (_cpp_append_extend_buff): New.
970         (struct cpp_reader): Remove macro_pool, add a_buff.
971         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
972         macro_pool.
973         (cpp_destroy): Free a_buff instead of macro_pool.
974         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
975         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
976         _cpp_pool_alloc, ): Remove.
977         (parse_number, parse_string): Update use of _cpp_extend_buff.
978         (_cpp_extend_buff): Update.
979         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
980         * cpplib.c (glue_header_name, parse_answer):
981         Update use of _cpp_extend_buff.
982         (cpp_register_pragma, cpp_register_pragma_space): Use
983         _cpp_aligned_alloc.
984         (do_assert, do_unassert): Check for EOL, update.
985         * cppmacro.c (stringify_arg, collect_args): Update to use
986         _cpp_extend_buff and _cpp_append_extend_buff.
987         (save_parameter, parse_params, alloc_expansion_token,
988         _cpp_create_definition): Rework memory management.
989
990 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
991
992         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
993         update md_exec_prefix.
994         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
995         to string constant.
996
997 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
998
999         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
1000         (SELECT_CC_MODE): Use s390_select_ccmode.
1001         * config/s390/s390-protos.h (s390_select_ccmode): Add.
1002         * config/s390/s390.c (s390_select_ccmode): New.
1003         (s390_match_ccmode): Add CCLmode.
1004         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
1005         (output_branch_condition, output_inverse_branch_condition): Removed.
1006         (print_operand): Use s390_branch_condition_mnemonic.
1007         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
1008         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
1009         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
1010
1011         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
1012         when converting conditional branches to far branches.
1013         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
1014         cmpint_di): Use CCSmode instead of CCUmode.
1015
1016         * config/s390/s390.c (legitimate_la_operand_p): New.
1017         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
1018         * config/s390/s390.md (movsi): Convert load address patterns to
1019         arithmetic operations when necessary.
1020         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
1021         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
1022         (*do_la_reg_0): Don't use before reload.
1023
1024         * config/s390/s390.c (legitimize_address): Make more efficient
1025         use of two-register addressing mode.
1026
1027         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
1028         with -mno-backchain in some corner cases.
1029
1030         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
1031
1032 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
1033
1034         * reload.c (find_reloads): Mark new USE insns with QImode.
1035         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
1036         find_reloads_subreg_address): Likewise.
1037         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
1038         encountered.
1039         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
1040         CLOBBERs.
1041         (reload): Make sure there are no USEs with mode other than
1042         VOIDmode.  At the end, remove those marked with QImode.
1043
1044 2001-09-29  Per Bothner  <per@bothner.com>
1045
1046         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
1047         * Makefile.in (includedir):  Rename to local_includedir.
1048         (includedir):  Define as $(prefix)/include.
1049         * config.in (PREFIX_INCLUDE_DIR):  New variable.
1050         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
1051
1052 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
1053
1054         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
1055         storehps builtins.
1056         * doc/extend.texi (Vector Extensions): New node.
1057         * doc/invoke.texi (Machine Dependent Options): Add documentation for
1058         i386 -mmmx, -msse, -m3dnow.
1059
1060 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1061
1062         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
1063
1064 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
1065
1066         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
1067
1068         * doc/invoke.texi (Optimize Options): Delete spurious @table.
1069
1070 2001-09-28  Richard Henderson  <rth@redhat.com>
1071
1072         * varasm.c (assemble_integer): Bound alignment check by
1073         BIGGEST_ALIGNMENT.
1074
1075         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
1076
1077 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1078
1079         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
1080
1081 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
1082
1083         Mostly from Graham Stott  <grahams@redhat.com>
1084         * c-common.c (type_for_mode): Add support for V2SFmode.
1085         * tree.c (build_common_tree_nodes_2): Likewise.
1086         * tree.h (enum tree_index, global_trees): Likewise.
1087         * config/i386/i386.c (x86_3dnow_a): New variable.
1088         (override_options): Support 3Dnow extensions.
1089         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
1090         Athlon's version of 3Dnow.
1091         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
1092         (ix86_expand_builtin): Handle them.
1093         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
1094         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
1095         TARGET_3DNOW_A): New macros.
1096         (TARGET_SWITCHES): Add 3Dnow switches.
1097         (VALID_MMX_REG_MODE_3DNOW): New macro.
1098         (VECTOR_MODE_SUPPORTED_P): Use it.
1099         (enum ix86_builtins): Add entries for 3Dnow builtins.
1100         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
1101         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
1102         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
1103         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
1104         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
1105         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
1106         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
1107         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
1108         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
1109         sfence_insn, prefetch): Make these available if TARGET_SSE or
1110         TARGET_3DNOW_A.
1111
1112 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
1113
1114         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
1115         ix86_va_start, ix86_build_va_list): Declare.
1116         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
1117         ix86_va_start, ix86_build_va_list): New global functions.
1118         * i386.md (sse_prologue_save_insn): New insn.
1119         (sse_prologue_save): New expander.
1120         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
1121         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
1122
1123 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1124
1125         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
1126         Use size_t everywhere, make definitions consistent with
1127         prototypes.
1128
1129 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
1130
1131         * gcse.c (replace_store_insn): Use delete_insn.
1132         * loop.c (move_movables): Likewise; avoid delete_insn
1133         from clobbering notes moved elsewhere.
1134         (check_dbra_loop): Use delete_insn.
1135         * ssa.c (convert_from_ssa): Likewise.
1136         * cse.c (cse_insn): Use delete_insn.
1137
1138 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1139
1140         * cpphash.h (struct cpp_buff): Make unsigned.
1141         (_cpp_get_buff): Take length of size_t.
1142         (_cpp_unaligned_alloc): New.
1143         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
1144         (struct cpp_reader): Remove ident_pool.  Add u_buff.
1145         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
1146         (cpp_destroy): Destroy u_buff, not ident_pool.
1147         * cpplex.c (parse_number, parse_string, save_comment,
1148         cpp_token_as_text): Update to use the unaligned buffer.
1149         (new_buff): Make unsigned.
1150         (_cpp_unaligned_alloc): New.
1151         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
1152         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
1153         Similarly.
1154         (collect_args): Make unsigned.
1155
1156 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
1157
1158         * cpplex.c (cpp_output_token): Use a putc loop for
1159         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
1160
1161         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
1162         * configure, config.in: Regenerate.
1163         * system.h: Replace fwrite and fprintf with their unlocked
1164         variants if available.
1165
1166 2001-09-27  Richard Henderson  <rth@redhat.com>
1167
1168         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
1169         in favour of .eh_frame.
1170
1171 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
1172
1173         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
1174         to macros.
1175         (LIBCALL_VALUE): Likewise.
1176
1177 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1178
1179         * cpphash.h: Update comment.
1180         * cpplex.c: Update comments.
1181         (_cpp_can_paste): Remove.
1182         * cpplib.h (_cpp_can_paste): Remove.
1183         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
1184         lexer rather than _cpp_can_paste.
1185
1186 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1187
1188         * doc/cppinternals.texi: Update.
1189
1190 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1191
1192         * cpphash.h (struct cpp_pool): Remove locks and locked.
1193         (struct cpp_context): Add member buff.
1194         (struct cpp_reader): Remove member argument_pool.
1195         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
1196         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
1197         * cpplex.c (chunk_suitable): Remove pool argument.
1198         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
1199         (new_buff, _cpp_extend_buff): Update.
1200         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
1201         which buffer is returned.
1202         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
1203         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
1204         * cppmacro.c (lock_pools, unlock_pools): Remove.
1205         (push_ptoken_context): Take a _cpp_buff.
1206         (enter_macro_context): Pool locking removed.
1207         (replace_args): Use a _cpp_buff for the replacement list with
1208         arguments replaced.
1209         (push_token_context): Clear buff.
1210         (expand_arg): Use _cpp_pop_context.
1211         (_cpp_pop_context): Free a context's buffer, if any.
1212
1213 2001-09-26  DJ Delorie  <dj@redhat.com>
1214
1215         * c-typeck.c (digest_init): Check for sizeless arrays.
1216
1217 2001-09-26  Richard Henderson  <rth@redhat.com>
1218
1219         * optabs.c (init_one_libfunc): Create a dummy function type
1220         instead of using error_mark_node.
1221
1222 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1223
1224         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
1225         _cpp_extend_buff, _cpp_free_buff): New.
1226         (struct cpp_reader): New member free_buffs.
1227         * cppinit.c (cpp_destroy): Free buffers.
1228         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
1229         _cpp_extend_buff, _cpp_free_buff): New.
1230         * cpplib.h (struct cpp_options): Remove unused member.
1231         * cppmacro.c (collect_args): New.  Combines the old parse_arg
1232         and parse_args.  Use _cpp_buff for memory allocation.
1233         (funlike_invocation_p, replace_args): Update.
1234
1235 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
1236
1237         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
1238
1239 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
1240
1241         * except.c (sjlj_mark_call_sites): Change address inside sequence.
1242
1243 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
1244
1245         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
1246         glibc.
1247
1248 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
1249             Jim Wilson  <wilson@redhat.com>
1250
1251         * doc/install.texi (Specific, ia64-*-linux): Document.
1252
1253 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
1254
1255         * Makefile.in (cfgrtl.o): Add.
1256         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
1257         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
1258         free_aux_for_edge): Declare.
1259         * cfg.c
1260         (HAVE_return): Undefine.
1261         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
1262         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
1263         free_aux_for_edge): New global functions.
1264         (first_delete_block): New static variable.
1265         (init_flow): Clear first_delete_block.
1266         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
1267          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
1268          try_redirect_by_replacing_jump, last_loop_beg_note,
1269          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
1270          delete_insn, delete_insn_chain, create_basic_block_structure,
1271          create_basic_block, flow_delete_block, compute_bb_for_insn,
1272          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
1273          set_block_for_new_insns, split_block, merge_blocks_nomove,
1274          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
1275          redirect_edge_and_branch, force_nonfallthru_and_redirect,
1276          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
1277          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
1278          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
1279          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
1280          purge_all_dead_edges): Move to ....
1281         * cfgrtl.c: New file; .... Here.
1282
1283         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
1284         (reroder_basic_block): Use alloc_aux_for_blocks.
1285         * predict.c (estimate_bb_frequencies): Likewise; use
1286         alloc_aux_for_edges.
1287         * profile.c (compute_branch_probabilities): Likewise.
1288         (branch_prob): Likewise.
1289         * reg-stack.c (reg_to_stack): Likewise.
1290
1291         * emit-rtl.c (emit_insns_after): Never return NULL.
1292
1293         * basic-block.h (set_block_for_new_insns): Delete.
1294         * cfgrtl.c (set_block_for_new_insns): Delete.
1295
1296         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
1297         calls when crossjumping.
1298
1299         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
1300         * unroll.c (copy_loop_body): Use delete_insn.
1301
1302         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
1303         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
1304         keep_stack_depressed): Likewise.
1305         * gcse.c (cprop_cc0_jump): Likewise.
1306         * local-alloc.c (update_equiv_regs): Likewise.
1307         * loop.c (scan_loop, loop_delete_insns): Likewise.
1308         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
1309         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
1310         delete_output_reload, delete_address_reloads_1,
1311         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
1312         Likewise.
1313         * sibcall.c (replace_call_placeholder): Likewise.
1314         * cse.c (cse_insn): Likewise.
1315
1316 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
1317
1318         From Graham Stott  <grahams@redhat.com>
1319         (def_builtin): Only define builtins appropriate for target_flags.  All
1320         callers changed.
1321         (builtin_decsription): Add new field mask which is used to determine
1322         when to define the builtin via the macro def_builtin.
1323
1324         (bdesc_comi): Initialise new mask fields.
1325         (bdesc_2srg): Likewise.
1326         (bdesc_1arg): Likewise.
1327
1328         * config/i386/i386.c (ix86_init_builtins): Correct return type
1329         building v4hi_ftype_v4hi_int_int tree node.
1330         (ix86_expand_sse_comi): Fix typo swapping operands.
1331         Don't swap comparision condition, it is already swapped.
1332         (ix86_expand_sse_compare): Before swapping operands
1333         move operand 1 into new rtx and not the target rtx.
1334         Don't swap comparison condition, it is already swapped.
1335         Always check whether we need to create a new TARGET.
1336
1337         * config/i386/i386.md: (sse_comi) Fix typos.
1338         (sse_ucomi): Likewise.
1339         (cvtss2si): Fix operand 0 contraint.
1340         (cvttss2si): Likewise.
1341         (sse_unpckhps): Fix mode for operand 2.
1342         (sse_unpcklps): Likewise.
1343
1344 2001-09-25  Graham Stott  <grahams@redhat.com>
1345
1346         * sibcall.c (skip_copy_to_return_value): Tighten return value
1347         copy check.
1348
1349 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
1350
1351         * rs6000.c (lwa_operand): Address must be word aligned.
1352
1353 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1354
1355         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
1356         number has been set.
1357         (type_hash_mark): Mark type itself.
1358
1359 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1360
1361         * c-lex.c (cb_def_pragma): Update.
1362         (c_lex): Update, and skip padding.
1363         * cppexp.c (lex, parse_defined): Update, remove unused variable.
1364         * cpphash.h (struct toklist): Delete.
1365         (union utoken): New.
1366         (struct cpp_context): Update.
1367         (struct cpp_reader): New members eof, avoid_paste.
1368         (_cpp_temp_token): New.
1369         * cppinit.c (cpp_create_reader): Update.
1370         * cpplex.c (_cpp_temp_token): New.
1371         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
1372         (cpp_output_token): Don't print leading whitespace.
1373         (cpp_output_line): Update.
1374         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
1375         do_include_common, do_line, do_ident, do_pragma,
1376         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
1377         parse_assertion): Update.
1378         (get_token_no_padding): New.
1379         * cpplib.h (CPP_PADDING): New.
1380         (AVOID_LPASTE): Delete.
1381         (struct cpp_token): New union member source.
1382         (cpp_get_token): Update.
1383         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
1384         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
1385         replace_args, quote_string, stringify_arg, parse_arg, next_context,
1386         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
1387         _cpp_backup_tokens, _cpp_create_definition): Update.
1388         (push_arg_context): Delete.
1389         (padding_token, push_token_context, push_ptoken_context): New.
1390         (make_string_token, make_number_token): Update, rename.
1391         (cpp_get_token): Update to handle tokens as pointers to const,
1392         and insert padding appropriately.
1393         * cppmain.c (struct printer): New member prev.
1394         (check_multiline_token): Constify.
1395         (do_preprocessing, cb_line_change): Update.
1396         (scan_translation_unit): Update to handle spacing.
1397         * scan-decls.c (get_a_token): New.
1398         (skip_to_closing_brace, scan_decls): Update.
1399         * fix-header.c (read_scan_file): Update.
1400
1401         * doc/cpp.texi: Update.
1402
1403 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1404
1405         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
1406         leak by passing malloc'ed pointer to reconcat, not concat.
1407
1408 2001-09-24  DJ Delorie  <dj@redhat.com>
1409
1410         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
1411
1412 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
1413
1414         * flow.c (delete_dead_jumptables): Delete jumptable if the only
1415         reference is from the literal pool.
1416
1417 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
1418
1419         * doc/install.texi (Final install): Request additional information
1420         in mail about successful builds.
1421
1422 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1423
1424         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
1425         initial value of return pointer register instead of value in frame-20.
1426         Revise comments.
1427
1428 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1429
1430         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
1431         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
1432         the libcall if there isn't a referenced identifier for the symbol.
1433
1434 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1435
1436         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
1437         non 64-bit machines.  Use these as a plabel for the trampoline.
1438         (TRAMPOLINE_SIZE): Adjust size for new words.
1439         (INITIALIZE_TRAMPOLINE): Initialize new words.
1440         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
1441         pointer to the plabel in the trampoline.
1442
1443 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1444
1445         * pa.c (function_arg): Pass floating arguments in both general and
1446         floating registers in indirect (dynamic) calls when generating code
1447         for the 32 bit ABI and the HP assembler.
1448
1449 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1450
1451         * doc/install.texi: Markup fixes.
1452         Use Solaris 2, SunOS 4 as appropriate.
1453         (Specific, *-*-solaris2*): Explain this.
1454         Unconditionally warn against /usr/ucb tools.
1455         Remove Sun as warning, obsolete.
1456         Move X11 header bug workaround here, update patches.
1457         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
1458         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
1459
1460 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
1461
1462         * errors.h (warning, error, fatal, internal_error): Don't mark
1463         with ATTRIBUTE_PRINTF_n.
1464         * toplev.h (internal_error, fatal_io_error, warning, error,
1465         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
1466         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
1467         Likewise.
1468
1469 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1470
1471         * function.c (pop_function_context_from): var_refs_queue
1472         and temp slots now in GC memory.
1473         (mark_function_status, free_after_compilation): Likewise;
1474         also struct function now in GC memory.
1475         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
1476         (combine_temp_slots): Likewise.
1477         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
1478         (prepare_function_start): Use GC memory for struct function.
1479         (mark_temp_slot): Deleted.
1480         (gcc_mark_struct_function): struct function now in GC memory.
1481
1482         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
1483         code for division, not modulus.
1484
1485         * rtl.def (MEM): Remove obsolete part of comment.
1486
1487 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
1488
1489         * c-format.c (init_function_format_info): Check __builtin_printf
1490         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
1491         in gnu89 mode.
1492
1493 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1494
1495         * c-common.c (format_attribute_table): Remove decl.
1496         * tree.h (format_attribute_table, lang_attribute_table): New decls.
1497         (lang_attribute_common): Likewise.
1498
1499         * function.c (fix_lexical_address): Use set_mem_alias_set.
1500         (expand_function_start): Likewise.
1501         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
1502
1503         * varasm.c (output_constant): Fix unused variable warning.
1504
1505         * attribs.c: New file, from c-common.c.
1506         (attribute_tables): Now four elements.
1507         (format_attribute_table, lang_attribute_common): New variables.
1508         (init_attributes): Reflect above changes.
1509         (handle_mode_attribute): Delete check for wider than uintmax.
1510         * c-common.c: Delete parts moved to attribs.c.
1511         (enum attrs): Deleted; unused.
1512         (c_format_attribute_table): New variable.
1513         (c_common_lang_init): Initialize format_attribute_table with it.
1514         * c-common.h (decl_attributes): Remove decl.
1515         * tree.h (decl_attribute): Move it to here.
1516         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
1517         (attribs.o): New rule.
1518
1519 2001-09-22  Andreas Jaeger  <aj@suse.de>
1520
1521         * builtins.c (c_getstr): Remove unused variable.
1522
1523 2001-09-21  Richard Henderson  <rth@redhat.com>
1524
1525         * reload1.c (reload): Use delete_insn instead of splatting
1526         NOTE_INSN_DELETED.
1527
1528 2001-09-21  Richard Henderson  <rth@redhat.com>
1529
1530         * reload.c (push_secondary_reload): Don't check for "=" in output
1531         constraint after ""->ALL_REGS check.
1532
1533 2001-09-21  Richard Henderson  <rth@redhat.com>
1534
1535         * predict.c (expected_value_to_br_prob): Use pc_set.
1536
1537         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
1538         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
1539
1540 2001-09-21  Richard Henderson  <rth@redhat.com>
1541
1542         * rtl.h (LCT_RETURNS_TWICE): New.
1543         * calls.c (emit_call_1): Set current_function_calls_setjmp for
1544         ECF_RETURNS_TWICE.
1545         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
1546         to ECF_RETURNS_TWICE.
1547         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
1548         call to setjmp.
1549
1550         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
1551
1552         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
1553         (JMP_BUF_SIZE): New.
1554
1555 2001-09-21  Richard Henderson  <rth@redhat.com>
1556
1557         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
1558         to R8_REGS.
1559
1560 2001-09-21  Richard Henderson  <rth@redhat.com>
1561
1562         * tree.def (FDESC_EXPR): New.
1563         * expr.c (expand_expr): Handle it.
1564         * varasm.c (initializer_constant_valid_p): Likewise.
1565         (output_constant): Likewise.
1566         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
1567         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
1568         (ASM_OUTPUT_FDESC): New.
1569         * doc/tm.texi: Document the new macros.
1570
1571 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
1572
1573         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
1574         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
1575         once merging is complete.
1576
1577 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1578
1579         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
1580
1581 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
1582
1583         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
1584         that would be invalid after a merge.
1585
1586 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
1587
1588         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
1589         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
1590         remove some labels.
1591         (flow_delete_insn): This one.
1592         (delete_insn_chain): Rename from ...; do not care labels.
1593         (flow_delete_insn_chain): ... this one.
1594         (flow_delete_block): Remove the insns one BB has been expunged.
1595         (merge_blocks_nomove): Likewise.
1596         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
1597         updating BB boundaries.
1598         (tidy_fallthru_edge): Likewise.
1599         (commit_one_edge_insertion): Likewise.
1600         * cfgbuild.c (find_basic_block): Likewise.
1601         (find_basic_blocks_1): Likewise.
1602         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
1603         (try_crossjump_to_edge): Likewise.
1604         (try_optimize_cfg): Likewise.
1605         * cse.c (delete_trivially_dead_insns): Likewise.
1606         * df.c (df_insn_delete): Likewise.
1607         * doloop.c (doloop_modify): Use delete_related_insns.
1608         * emit-rtl.c (try_split): Likewise.
1609         (remove_insn): Update BB boundaries.
1610         * expect.c (connect_post_landing_pads): Use delete_related_insns.
1611         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
1612         updating BB boundaries.
1613         (propagate_block_delete_insn): Likewise.
1614         (propagate_block_delete_libcall): Likewise.
1615         * function.c (delete_handlers): Use delete_related_insns.
1616         (thread_prologue_and_epilogue_insns): Likewise.
1617         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
1618         * genpeep.c (gen_peephole): Use delete_related_insns.
1619         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
1620         BB boundaries.
1621         (find_cond_trap): Likewise.
1622         * integrate.c (save_for_inline): Use delete_related_insns.
1623         (copy_insn_list): Likewise.
1624         * jump.c (pruge_linie_number_notes): Likewise.
1625         (duplicate_loop_exit_test): Likewise.
1626         (delete_computation): Likewise.
1627         (delete_related_insn): Rename from ...; use delete_insn
1628         (delete_insn): ... this one.
1629         (redirect_jump): Use delete_related_insns.
1630         * loop.c (scan_loop): Likewise.
1631         (move_movables): Likewise.
1632         (find_and_verify_loops): Likewise.
1633         (check_dbra_loop): Likewise.
1634         * recog.c (peephole2_optimize): Likewise.
1635         * reg-stack.c (delete_insn_for_stacker): Remove.
1636         (move_for_stack_reg): Use delete_insn.
1637         * regmove.c (combine_stack_adjustments_for_block): Likewise.
1638         * reload1.c (delete_address_reloads): Use delete_related_insns.
1639         (fixup_abnormal_edges): Use delete_insn.
1640         * recog.c (emit_delay_sequence): Use delete_related_insns.
1641         (delete_from-delay_slot): Likewise.
1642         (delete_scheduled_jump): likewise.
1643         (optimize_skip): Likewise.
1644         (try_merge_delay_insns): Likewise.
1645         (full_simple_delay_slots): Likewise.
1646         (fill_slots_from_thread): Likewise.
1647         (relax_delay_slots): Likewise.
1648         (make_return_insns): Likewise.
1649         (dbr_schedule): Likewise.
1650         * rtl.h (delete_insn): Rename to delete_related_insns.
1651         (delete_insn, delete_insn_chain): New prototypes.
1652         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
1653         by df_insn_delete already.
1654         * ssa-dce.c (delete_insn_bb): Use delete_insn.
1655         * ssa.c (convert_from_ssa): Use delete_related_insns.
1656         * unroll.c (unroll_loop): Likewise.
1657         (calculate_giv_inc): Likewise.
1658         (copy_loop_body): Likewise.
1659
1660         * i386-protos.h (ix86_libcall_value, ix86_function_value,
1661         ix86_function_arg_regno_p, ix86_function_arg_boundary,
1662         ix86_return_in_memory, ix86_function_value): Declare.
1663         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
1664         new static valurables.
1665         (x86_64_reg_class): New enum
1666         (x86_64_reg_class_name): New array.
1667         (classify_argument, examine_argument, construct_container,
1668          merge_classes): New static functions.
1669         (optimization_options): Enable flag_omit_frame_pointer and disable
1670         flag_pcc_struct_return on 64bit.
1671         (ix86_libcall_value, ix86_function_value,
1672         ix86_function_arg_regno_p, ix86_function_arg_boundary,
1673         ix86_return_in_memory, ix86_function_value): New global functions.
1674         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
1675         (function_arg_advance): Handle x86_64 passing conventions.
1676         (function_arg): Likewise.
1677         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
1678         (RETURN_IN_MEMORY): Move offline.
1679         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
1680         (FUNCTION_VALUE_REGNO_P): New macro.
1681         (FUNCTION_ARG_REGNO_P): Move offline.
1682         (struct ix86_args): Add maybe_vaarg.
1683         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
1684         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
1685
1686 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
1687
1688         * s390.md: Changed attributes for scheduling.
1689         * s390.c: (s390_adjust_cost, s390_adjust_priority)
1690         Changed scheduling
1691
1692 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1693
1694         Table-driven attributes.
1695         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
1696         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
1697         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
1698         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
1699         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
1700         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
1701         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
1702         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
1703         * tree.h (struct tree_decl): Change machine_attributes to
1704         attributes.
1705         * doc/c-tree.texi: Document that all attributes are now attached
1706         to decls and types.
1707         * c-common.c (add_attribute, attrtab, attrtab_idx,
1708         default_valid_lang_attribute, valid_lang_attribute): Remove.
1709         (attribute_tables, attributes_initialized,
1710         c_common_attribute_table, default_lang_attribute_table): New
1711         variables.
1712         (handle_packed_attribute, handle_nocommon_attribute,
1713         handle_common_attribute, handle_noreturn_attribute,
1714         handle_unused_attribute, handle_const_attribute,
1715         handle_transparent_union_attribute, handle_constructor_attribute,
1716         handle_destructor_attribute, handle_mode_attribute,
1717         handle_section_attribute, handle_aligned_attribute,
1718         handle_weak_attribute, handle_alias_attribute,
1719         handle_no_instrument_function_attribute,
1720         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
1721         handle_no_limit_stack_attribute, handle_pure_attribute): New
1722         functions.
1723         (init_attributes, decl_attributes): Rewrite to implement
1724         table-driven attributes.
1725         * c-common.h (enum attribute_flags): Move to tree.h.
1726         * c-format.c (decl_handle_format_attribute,
1727         decl_handle_format_arg_attribute): Rename to
1728         handle_format_attribute and handle_format_arg_attribute.  Update
1729         for table-driven attributes.
1730         * c-common.h (decl_handle_format_attribute,
1731         decl_handle_format_arg_attribute): Remove prototypes.
1732         (handle_format_attribute, handle_format_arg_attribute): Add
1733         prototypes.
1734         * c-decl.c (grokdeclarator): Handle attributes nested inside
1735         declarators.
1736         * c-parse.in (setattrs, maybe_setattrs): Remove.
1737         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
1738         Update to handle nested attributes properly.
1739         (maybe_resetattrs, after_type_declarator,
1740         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
1741         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
1742         properly.
1743         (make_pointer_declarator): Update to handle nested attributes
1744         properly.
1745         * doc/extend.texi: Update documentation of limits of attributes
1746         syntax.  Warn about problems with attribute semantics in C++.
1747         * target.h (struct target): Remove valid_decl_attribute and
1748         valid_type_attribute.  Add attribute_table and
1749         function_attribute_inlinable_p.
1750         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
1751         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
1752         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
1753         Add.
1754         (TARGET_INITIALIZER): Update.
1755         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
1756         definition.
1757         (function_attribute_inlinable_p): New function.  Check for the
1758         presence of any machine attributes before using
1759         targetm.function_attribute_inlinable_p.
1760         (function_cannot_inline_p): Update.
1761         * Makefile.in (integrate.o): Update dependencies.
1762         * doc/tm.texi: Update documentation of target attributes and
1763         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
1764         * tree.c (default_valid_attribute_p, valid_machine_attribute):
1765         Remove.
1766         (default_target_attribute_table,
1767         default_function_attribute_inlinable_p): New.
1768         (lookup_attribute): Update comment to clarify handling of multiple
1769         attributes with the same name.
1770         (merge_attributes, attribute_list_contained): Allow multiple
1771         attributes with the same name but different arguments to appear in
1772         the same attribute list.
1773         * tree.h (default_valid_attribute_p): Remove prototype.
1774         (struct attribute_spec): New.
1775         (default_target_attribute_table): Declare.
1776         (enum attribute_flags): Move from c-common.h.  Add
1777         ATTR_FLAG_TYPE_IN_PLACE.
1778         (default_function_attribute_inlinable_p): Declare.
1779         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
1780         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1781         (TARGET_ATTRIBUTE_TABLE): Define.
1782         (vms_attribute_table): New.
1783         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
1784         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1785         (TARGET_ATTRIBUTE_TABLE): Define.
1786         (arc_attribute_table, arc_handle_interrupt_attribute): New.
1787         * config/arm/arm.c (arm_valid_type_attribute_p,
1788         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
1789         Remove.
1790         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
1791         define.
1792         (TARGET_ATTRIBUTE_TABLE): Define.
1793         (arm_attribute_table, arm_handle_fndecl_attribute,
1794         arm_handle_isr_attribute): New.
1795         * config/avr/avr.c (avr_valid_type_attribute,
1796         avr_valid_decl_attribute): Remove.
1797         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
1798         define.
1799         (TARGET_ATTRIBUTE_TABLE): Define.
1800         (avr_attribute_table, avr_handle_progmem_attribute,
1801         avr_handle_fndecl_attribute): New.
1802         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
1803         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1804         (TARGET_ATTRIBUTE_TABLE): Define.
1805         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
1806         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
1807         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1808         (TARGET_ATTRIBUTE_TABLE): Define.
1809         (h8300_attribute_table, h8300_handle_fndecl_attribute,
1810         h8300_handle_eightbit_data_attribute,
1811         h8300_handle_tiny_data_attribute): New.
1812         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
1813         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
1814         Remove prototypes.
1815         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
1816         declarations.
1817         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
1818         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
1819         define.
1820         (TARGET_ATTRIBUTE_TABLE): Define.
1821         (ix86_attribute_table, ix86_handle_cdecl_attribute,
1822         ix86_handle_regparm_attribute): New.
1823         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
1824         i386_pe_valid_type_attribute_p): Remove.
1825         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
1826         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
1827         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1828         (TARGET_ATTRIBUTE_TABLE): Define.
1829         (ia64_attribute_table): New.
1830         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
1831         interrupt_ident2, model_ident1, model_ident2): Remove.
1832         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1833         (TARGET_ATTRIBUTE_TABLE): Define.
1834         (init_idents): Update.
1835         (m32r_attribute_table, m32r_handle_model_attribute): New.
1836         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
1837         Remove.
1838         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1839         (TARGET_ATTRIBUTE_TABLE): Define.
1840         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
1841         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
1842         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1843         (TARGET_ATTRIBUTE_TABLE): Define.
1844         (mcore_attribute_table, mcore_handle_naked_attribute): New.
1845         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
1846         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1847         (TARGET_ATTRIBUTE_TABLE): Define.
1848         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
1849         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
1850         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
1851         (TARGET_ATTRIBUTE_TABLE): Define.
1852         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
1853         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
1854         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1855         (TARGET_ATTRIBUTE_TABLE): Define.
1856         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
1857         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
1858         New.
1859         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
1860         Remove.
1861         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
1862         (TARGET_ATTRIBUTE_TABLE): Define.
1863         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
1864         New.
1865         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
1866         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
1867         (TARGET_ATTRIBUTE_TABLE): Define.
1868         (v850_attribute_table, v850_handle_interrupt_attribute,
1869         v850_handle_data_area_attribute): New.
1870         * config/v850/v850-c.c (mark_current_function_as_interrupt):
1871         Return void.  Call decl_attributes instead of
1872         valid_machine_attribute.
1873
1874 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
1875
1876         * sh-protos.h (sh_pr_n_sets): Declare.
1877         * sh.c (calc_live_regs): If the initial value for PR has been copied,
1878         look at the copy to determine if PR needs to be saved.
1879         sh_pr_n_sets: New function.
1880         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
1881         (ALLOCATE_INITIAL_VALUE): Define.
1882
1883         * sh.c (initial_elimination_offset):
1884         Fix RETURN_ADDRESS_POINTER_REGNUM case.
1885
1886 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
1887
1888         * integrate.c (allocate_initial_values): New function.
1889         * integrate.h (allocate_initial_values): Declare.
1890         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
1891         here...
1892         * reload1.c (reload): And initialization of reg_equiv_memory_loc
1893         from here...
1894         * toplev.c (rest_of_compilation): To here.
1895         Call allocate_initial_values.
1896         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
1897
1898 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1899
1900         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
1901
1902 2001-09-20  DJ Delorie  <dj@redhat.com>
1903
1904         * c-typeck.c (really_start_incremental_init): Discriminate
1905         between zero-length arrays and flexible arrays.
1906         (push_init_level): Detect zero-length arrays and handle them
1907         like fixed-sized arrays.
1908         * expr.c (store_constructor): Handle zero-length arrays and
1909         flexible arrays correctly.
1910         * doc/extend.texi: Update zero-length array notes.
1911
1912 2001-09-20  Jim Wilson  <wilson@redhat.com>
1913
1914         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
1915         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
1916         for issue port conflicts.
1917         (cycle_end_fill_slots): TYPE_L instructions take two slots.
1918
1919 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
1920
1921         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
1922         on ia64.
1923
1924 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1925
1926         * fold-const.c (hashtab.h): Include.
1927         (int_const_binop): Remove FORSIZE arg and compute from type; all
1928         callers changed.
1929         Call size_int_type_wide for all single-word constants.
1930         (size_htab_hash, size_htab_eq): New functions.
1931         (size_int_type_wide): Rework to use hash table.
1932         * ggc-common.c (hashtab.h): Include.
1933         (struct d_htab_root): New struct.
1934         (d_htab_roots): New variable.
1935         (ggc_add_deletable_htab, ggc_htab_delete): New functions
1936         (ggc_mark_roots): Handle deletable htabs.
1937         * ggc-page.c (ggc_marked_p): New function.
1938         * ggc-simple.c (ggc_marked_p): Likewise.
1939         * ggc.h: Reformatting throughout.
1940         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
1941         * tree.c (init_obstacks): Make type_hash_table a deletable root.
1942         (type_hash_add): Allocate struct type_hash from GC memory.
1943         (mark_hash_entry, mark_type_hash): Deleted.
1944         (type_hash_marked_p, type_hash_mark): New functions.
1945         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
1946
1947 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
1948
1949         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
1950         than SImode.
1951
1952 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1953
1954         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
1955         array-too-large test for signed sizetype.
1956
1957 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1958
1959         * i386.md (indirect_jump): Allow Pmode operand.
1960         (tablejump): LIkewise; perform expansion to 64bit mode.
1961         * i386.c (symbolic_operand): Allow 64bit PIC references.
1962         (pic_symbolic_operand): Likewise.
1963         (ix86_find_base_term): Strip the 64bit PIC references.
1964         (legitimate_pic_address_disp_p): Handle 64bit PIC.
1965         (legitimize_pic_address): Likewise.
1966         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
1967         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
1968
1969 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
1970
1971         * stringpool.c (get_identifier_with_length): New function.
1972         * tree.h (get_identifier_with_length): New prototype.
1973
1974 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
1975             David Edelsohn  <edelsohn@gnu.org>
1976
1977         Revert:
1978         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
1979         already sign-extended.
1980
1981         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
1982         * config/rs6000/rs6000.c (logical_operand): Always compare op as
1983         HOST_WIDE_INT.
1984         (rs6000_emit_set_long_const): Avoid unnecessary shift.
1985         (output_profile_hook): Declare label_name const.
1986         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
1987         to match constraints.
1988
1989 2001-09-19  Stan Shebs  <shebs@apple.com>
1990
1991         * alias.c: Fix typos in comments.
1992         * sched-rgn.c (init_ready_list): Ditto.
1993         * unwind-dw2.c (uw_frame_state_for): Ditto.
1994         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
1995         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
1996         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
1997
1998 2001-09-19  Richard Henderson  <rth@redhat.com>
1999
2000         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
2001         to the exit block.
2002         * Makefile.in (cfg.o): Depend on TM_P_H.
2003
2004 2001-09-19  Richard Henderson  <rth@redhat.com>
2005
2006         * config/alpha/alpha.c (local_symbol_p): Split out from ...
2007         (local_symbolic_operand): ... here.
2008         (small_symbolic_operand): Check mode.
2009         (global_symbolic_operand): New.
2010         (input_operand): Reject symbolics if explicit relocs.
2011         (call_operand): Tidy.
2012         (alpha_legitimize_address): Use movdi_er_high_g.
2013         (alpha_expand_mov): Likewise.
2014         * config/alpha/alpha-protos.h: Update.
2015         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2016         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
2017         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
2018         (UNSPECV_LDGP2): Remove.
2019         (all call patterns): Use 's' not 'i' for symbolic constraint.
2020         (call_osf call_value_osf): Use call_operand.
2021         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
2022         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
2023         (prologue_ldgp_1_er): Remove.
2024         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
2025         (builtin_setjmp_receiver_er patterns): Use them.
2026         (exception_receiver_er): Likewise.
2027
2028 2001-09-19  Richard Henderson  <rth@redhat.com>
2029
2030         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
2031
2032         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
2033         and NON_LOCAL_GOTO notes.
2034         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
2035         copy over CALL_INSN_FUNCTION_USAGE.
2036
2037 2001-09-18  Catherine Moore  <clm@redhat.com>
2038
2039         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
2040         Define as 0.
2041
2042 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
2043
2044         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
2045         new-style tm_file specification.  Specify correct tm_p_file,
2046         md_file, and out_file for s390x.
2047
2048         * config/s390/linux.h, linux64.h:  Don't include other target
2049         macro header files.  Now handled via tm_file.
2050
2051         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
2052         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
2053         are defined before use.
2054
2055 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
2056
2057         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
2058         code generation only for Gnu assembler.
2059
2060 2001-09-18  Catherine Moore  <clm@redhat.com>
2061
2062         * config/stormy16 (LIB_SPEC): Remove -lnosys.
2063
2064 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
2065
2066         * config/mips/mips.c (mips_frame_set): New.
2067         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
2068         a parallel frame-related expression with a set for each register.
2069
2070 2001-09-18  Philip Blundell  <philb@gnu.org>
2071
2072         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
2073         header files.
2074
2075 2001-09-17  Dale Johannesen  <dalej@apple.com>
2076
2077         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
2078         * config/rs6000/aix.h (FIXED_R2): Define.
2079         * config/rs6000/darwin.h (FIXED_R2): Define.
2080         * config/rs6000/sysv4.h (FIXED_R2): Define.
2081
2082 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
2083
2084         * except.c (dw2_build_landing_pads): New local
2085         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
2086         barrier after clobbers.  Fixes c++/4012.
2087
2088 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2089
2090         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
2091
2092 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
2093
2094         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
2095         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
2096
2097 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2098
2099         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
2100         alloca/strcpy.
2101
2102 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2103
2104         * cpphash.h (_cpp_lex_direct): New.
2105         * cpplex.c (_cpp_lex_token): Update.
2106         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
2107         and increment that pointer.
2108         * cppmacro.c (alloc_expansion_token): New.
2109         (lex_expansion_token): Lex macro expansion directly into
2110         macro storage.
2111
2112 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
2113
2114         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
2115
2116 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
2117
2118         * basic-block.h (free_bb_for_insn): Declare.
2119         * bb-reorder.c (label_for_bb): Use block_label.
2120         (emit_jump_to_block_after): Remove.
2121         (insert_intra_1): Do not update block_for_insn.
2122         (insert_inter_bb_scope_notes): Likewise; update bb->end
2123         * cfg.c (free_bb_for_insn): New.
2124         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
2125         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
2126         (commit_one_edge_insertion): Likewise.
2127         (commit_one_edge_insertion): Do not update BB boundary.
2128         (commit_edge_insertions): Do not call compute_bb_for_insn.
2129         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
2130         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
2131         (merge_blocks_move_successor_nojumps): Likewise.
2132         (try_crossjump_to_edge): Do not update block_for_insn.
2133         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
2134         * df.c (df_pattern_emit_later): Do not update BB boundary.
2135         (df_jump_pattern_emit_after): Likewise.
2136         (df_insn_move_before): Use emit_insn_before.
2137         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
2138          properly.
2139         (add_insn_after, add_insn_before, emit_insns_after): Update BB
2140         boundaries and basic_block_for_insn.
2141         (reorder_insns_nobb): Rename from reorder_insns.
2142         (reorder_insns): New.
2143         (emit_block_insn_before, emit_block_insn_after): Kill.
2144         * flow.c (check_function_return_warnings): Do not call
2145         compute_bb_for_insn; Do not free basic_block_for_insn.
2146         (attempt_auto_inc): Do not update basic_block_for_insn.
2147         * function.c (emit_return_into_block): Likewise;
2148         do not update BB boundaries.
2149         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
2150         (insert_insn_end_bb): Use emit_insn_before; Likewise.
2151         (pre_insert_copy_insn): Likewise.
2152         (update_ld_motion_notes): Likewise.
2153         (insert_insn_start_bb): Likewise.
2154         (replace_store_insn): Likewise.
2155         * ifcvt.c (noce_process_if_block): Likewise.
2156         (if_convert): Do not call compute_bb_for_insn.
2157         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
2158         Use emit_insn_before and emit_insn_after.
2159         * recog.c (split_all_insns): Do not update BB boundaries;
2160         Do not call compute_bb_for_insn.
2161         (peephole2_optimize): Do not update BB boundaries.
2162         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
2163         emit_insn_before.
2164         (emit_swap_insn): Likewise.
2165         (convert_regs_1): Likewise.
2166         * reload1.c (reload): Call compute_bb_for_insn.
2167         * rtl.h (reorder_insns_nobb): Declare.
2168         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
2169         * toplev.c (rest_of_compilation): Call free_bb_for_insn
2170         at places CFG is invalidated; do not call compute_bb_for_insn.
2171
2172         * cfg.c (expunge_block): Invalidate BB structure.
2173
2174         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
2175         array.
2176
2177         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
2178
2179 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2180
2181         * cpphash.h (_cpp_lex_token): Update prototype.
2182         * cpplex.c (_cpp_lex_token): New prototype.
2183         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
2184         lex_macro_node, read_flag, do_pragma_poison): Update.
2185         * cppmacro.c (cpp_get_token, parse_params,
2186         lex_expansion_token): Update.
2187
2188 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2189
2190         * cppmain.c (scan_translation_unit): Don't worry about
2191         putting a space after hashes.
2192         * cpplib.c (directive_diagnostics): New.
2193         (_cpp_handle_directive): Update to use directive_diagnostics.
2194         (run_directive): Don't toggle prevent_expansion.
2195         (do_line): Backup in case of the line extension.
2196         * cpplib.h (cpp_lexer_pos): Remove.
2197         * cppmacro.c (_cpp_create_definition): Precede a leading #
2198         with whitespace.
2199
2200 2001-09-15  Richard Henderson  <rth@redhat.com>
2201
2202         * c-typeck.c (comptypes): Handle zero-length arrays properly.
2203
2204 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2205
2206         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
2207
2208 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2209
2210         PR preprocessor/3571
2211         * tradcpp.c (handle_directive): Skip non-vertical space.
2212
2213 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2214
2215         * cppmain.c (setup_callbacks): Set line callback only
2216         if outputting preprocessed source.
2217
2218 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2219
2220         * collect2.c (main): Const-ification.
2221         * gcc.c (translate_options, process_command): Use xstrdup in
2222         lieu of xmalloc/strcpy.
2223         (main): Use concat in lieu of xmalloc/strcpy/strcat.
2224
2225 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2226
2227         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
2228         example.
2229
2230 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2231
2232         * scan-decls.c (scan_decls): Fix typo.
2233
2234 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2235
2236         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
2237         Split mlstring_pos into mls_line and mls_col.
2238         * cppinit.c (cpp_create_reader): Initialize line to 1.
2239         (cpp_destroy): Free tokenruns.
2240         (push_include): Don't update lexer_pos.
2241         * cpplex.c (unterminated, parse_string): Update.
2242         (lex_token): Don't update lexer_pos, update.
2243         * cpplib.c (if_stack): Save line instead of line + col.
2244         (start_directive, _cpp_do__Pragma, do_else, do_elif,
2245         push_conditional, _cpp_pop_buffer): Update.
2246         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
2247         (_cpp_create_definition): Update.
2248
2249 2001-09-15  Eric Christopher  <echristo@redhat.com>
2250
2251         * config/mips/abi64.h: Add support for MEABI.
2252
2253 2001-09-15  Eric Christopher  <echristo@redhat.com>
2254
2255         * config/mips/mips.md: Add unspec #2.
2256         (reload_indi): Use.
2257         (reload_outdi): Ditto.
2258         (reload_outsi): Ditto.
2259         (HILO_delay): New.
2260
2261 2001-09-15  Eric Christopher  <echristo@redhat.com>
2262             Jason Eckhardt  <jle@redhat.com>
2263
2264         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
2265         * config/mips/isa32-linux.h: New file.
2266         * config/mips/isa3264.h: Ditto.
2267         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
2268         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
2269         (output_block_mode): Support MEABI.
2270         (function_arg): Ditto. Fix floating point arg passing.
2271         (mips_va_start): Ditto.
2272         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
2273         processors.
2274         (mips_asm_file_start): Add new section to pass abi to gdb.
2275         (function_arg_pass_by_reference): Support MEABI.
2276         (mips_parse_cpu): Support mips32 and mips64 processors.
2277         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
2278         TARGET_MIPS5KC.  Support isa32 and isa64.
2279         (processor_type): Add r4kc, r5kc, r20kc.
2280         (GENERATE_MULT3_SI): New.
2281         (GENERATE_MULT3_DI): Ditto.
2282         (GENERATE_MULT3): Remove.
2283         (ISA_HAS_64BIT_REGS): Add isa == 64.
2284         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
2285         (ISA_HAS_MADD_MSUB): New.
2286         (ISA_HAS_CLZ_CLO): Ditto.
2287         (ISA_HAS_DCLZ_DCLO): Ditto.
2288         (ABI_GAS_ASM_SPEC): New.
2289         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
2290         (ASM_SPEC): Ditto.
2291         (LINK_SPEC): Ditto.
2292         (SUBTARGET_CC1_SPEC): Ditto.
2293         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
2294         (PAD_VARARGS_DOWN): Support MEABI.
2295         (HARD_REGNO_NREGS): Move to mips.c.
2296         (ASM_OUTPUT_IDENT): Add #undef.
2297         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
2298         (mulsi3): Use GENERATE_MULT3_SI.
2299         (mulsi3_mult3): Ditto.  Support mips32, mips64.
2300         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
2301         (mul_sub_si): New pattern.
2302         (unnamed splitters): New.
2303         (muldi3): Use GENERATE_MULT3_DI.
2304         (muldi3_internal2): Ditto.
2305         (movdicc): Support mips32.
2306         * config/mips/t-isa3264: New file.
2307
2308 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
2309
2310         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
2311         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
2312         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
2313
2314         * reorg.c (fill_slots_from_thread): After call to
2315         steal_delay_list_from_target, update own_thread as new_thread may
2316         have branched.
2317
2318 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2319
2320         * cpperror.c (print_location): Take line and column, for
2321         default positioning use the previously lexed token.
2322         (_cpp_begin_message): Take line and column.
2323         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
2324         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
2325         * cpphash.h (_cpp_begin_message): Update prototype.
2326         * cppinit.c (push_include): Don't set output line.
2327         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
2328         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
2329         (do_pragma): Kludge for front ends.  Don't expand macros at all.
2330         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
2331         (struct cpp_token): Remove output_line.
2332         (struct cpp_callbacks): New member line_change.
2333         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
2334         cpp_get_token): Preserve BOL flag.
2335         (cpp_get_line): Remove.
2336         (_cpp_backup_tokens): Remove useless abort().
2337         * cppmain.c (cb_line_change): New.
2338         (scan_translation_unit): Don't worry about starting new lines here.
2339         * scan-decls.c (scan_decls): Update.
2340         * c-lex.c (c_lex, init_c_lex): Update.
2341         (cb_line_change, src_lineno): New.
2342
2343 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
2344
2345         * tree.c (append_random_chars): Generate the random
2346         characters in a reproducable fashion.
2347
2348 2001-09-14  Richard Henderson  <rth@redhat.com>
2349
2350         * config/i386/i386.c (internal_label_prefix): New.
2351         (internal_label_prefix_len): New.
2352         (override_options): Set them.
2353         (local_symbolic_operand): New.
2354         (legitimate_pic_address_disp_p): Use it.
2355         (legitimize_pic_address): Likewise.
2356
2357 2001-09-14  Marc Espie <espie@openbsd.org>
2358
2359         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
2360         correctly.
2361
2362 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2363
2364         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
2365         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
2366
2367 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
2368
2369         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
2370         invocation of SUBREG_REGNO_OFFSET.
2371
2372         * haifa-sched.c: Fix typo in FSF copyright statement.
2373         * sched-deps.c: Fix typo in FSF copyright statement.
2374         * sched-ebb.c: Fix typo in FSF copyright statement.
2375         * sched-rgn.c: Fix typo in FSF copyright statement.
2376         * sched-vis.c: Fix typo in FSF copyright statement.
2377
2378         * config.gcc: Move inclusion of arm elf specific header files
2379         from the files themselves into the tm_file variable.  Make
2380         sure that elfos.h is included before target specific elf
2381         headers.
2382         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
2383         already defined.
2384         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
2385         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
2386         ASM_OUTPUT_CASE_LABEL): Protect definition.
2387         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
2388         not already defined.
2389         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
2390         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
2391         Remove duplicate definition.
2392         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
2393         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
2394         (RDATA_SECTION_FUNCTION): Remove redundant definition.
2395         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
2396         Remove inclusion of arm/elf.h.
2397         * config/arm/unknown-elf.h: as for conix-elf.h.
2398         (STARTFILE_SPEC): Include crti.o and crtn.o.
2399         * config/arm/linux-elf.h: as for conix-elf.h.
2400         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
2401         * config/arm/strongarm-elf.h: Remove inclusion of
2402         unknown-elf.h.
2403         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
2404         * config/arm/unknown-elf-oabi.h: Remove inclusion of
2405         unknown-elf.h and elf.h.
2406         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
2407         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
2408         ASM_WEAKEN_LABEL): Remove redundant definition.
2409         * config/arm/elf.h: Test for inclusion of elfos.h
2410         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
2411         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
2412         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
2413         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
2414         redundant definition.
2415         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
2416         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
2417         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
2418         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
2419         Add rules to build crti.o and crtn.o
2420         * crti.asm: New file.
2421         * crtn.asm: New file.
2422
2423 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2424
2425         * c-parse.in (_yylex): Use _cpp_backup_tokens.
2426         * cpphash.h (struct tokenrun): Add prev.
2427         (struct lexer_state): Remove bol.
2428         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
2429         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
2430         : Remove.
2431         * cppinit.c (cpp_create_reader): Don't set bol.
2432         (cpp_destroy): Don't free lookaheads.
2433         * cpplex.c (lex_directive): Remove.
2434         (next_tokenrun): Update.
2435         (_cpp_lex_token): Clean up logic.
2436         (lex_token): Update to return a pointer to lexed token, since it
2437         can move to the start of the buffer.  Simpify newline handling.
2438         * cpplib.c (SEEN_EOL): Update.
2439         (skip_rest_of_line): Remove lookahead stuff.
2440         (end_directive): Line numbers are already incremented.  Revert
2441         to start of lexed token buffer if we can.
2442         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
2443         parse_answer): Use _cpp_backup_tokens.
2444         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
2445         instead.  Don't check for EOL.
2446         (do_include_common, do_line, do_pragma_system_header): Use
2447         skip_rest_of_line.
2448         * cpplib.h (BOL, _cpp_backup_tokens): New.
2449         * cppmacro.c (save_lookahead_token, take_lookahead_token,
2450         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
2451         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
2452         (builtin_macro): Don't use cpp_get_line.
2453         (cpp_get_line): Short term kludge.
2454         (parse_arg): Handle directives in arguments here.  Back up when
2455         appropriate.  Store EOF at end of argument list.
2456         (funlike_invocation_p): Use _cpp_backup_tokens.
2457         (push_arg_context): Account for EOF at end of list.
2458         (cpp_get_token): Remove lookahead stuff.  Update.
2459
2460 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2461
2462         * c-parse.in (yyerror): Const-ification and/or static-ization.
2463         * c-typeck.c (push_member_name): Likewise.
2464         * collect2.c (main): Likewise.
2465         * dbxout.c (dbxout_parms): Likewise.
2466         * diagnostic.c (format_with_decl): Likewise.
2467         * dwarf2out.c (output_ranges): Likewise.
2468         * dwarfout.c (fundamental_type_code): Likewise.
2469         * except.c (dw2_output_call_site_table): Likewise.
2470         * gcc.c (do_spec_1): Likewise.
2471         * genopinit.c (optabs): Likewise.
2472         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
2473         gen_declaration_1, handle_impent): Likewise.
2474         * protoize.c (default_include, in_system_include_dir, abspath):
2475         Likewise.
2476         * sched-vis.c (visualize_stall_cycles): Likewise.
2477         * sdbout.c (plain_type_1, sdbout_end_function,
2478         sdbout_end_epilogue): Likewise.
2479         * varasm.c (decode_reg_name): Likewise.
2480
2481         * 1750a.c (mod_regno_adjust): Likewise.
2482         * alpha.c (alpha_write_one_linkage,
2483         unicosmk_output_default_externs): Likewise.
2484         * arm.c (arm_condition_codes): Likewise.
2485         * arm.h (arm_condition_codes): Likewise.
2486         * avr.c (output_movsisf, encode_section_info): Likewise.
2487         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
2488         Likewise.
2489         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
2490         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
2491         * m88k.c (output_function_profiler): Likewise.
2492         * mips.c (mips_output_conditional_branch): Likewise.
2493         * ns32k.c (ns32k_out_reg_names): Likewise.
2494         * ns32k.h (ns32k_out_reg_names): Likewise.
2495         * pj.c (pj_output_rval): Likewise.
2496         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
2497         * sparc.c (sparc_flat_function_prologue,
2498         sparc_flat_function_epilogue): Likewise.
2499
2500 2001-09-13  Markus Werle <numerical.simulation@web.de>
2501             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2502
2503         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
2504         Aachen University of Technology".
2505
2506 2001-09-13  Andreas Schwab  <schwab@suse.de>
2507
2508         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
2509         C99.
2510
2511 2001-09-13  Richard Henderson  <rth@redhat.com>
2512
2513         * config/alpha/alpha.c (small_symbolic_operand): New.
2514         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
2515         (some_operand, input_operand): Don't handle HIGH.
2516         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
2517         (alpha_expand_mov): Likewise.
2518         (print_operand) [H]: Just print HIGH symbol.
2519         (print_operand_address): Handle small data.
2520         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
2521         (TARGET_SWITCHES): Add -msmall-data/large-data.
2522         (PIC_OFFSET_TABLE_REGNUM): New.
2523         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
2524         (PREDICATE_COES): Update.
2525         * config/alpha/alpha.md (adddi_er_high): New.
2526         (adddi_er_low): Handle small data.
2527         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
2528         prefer .sdata to .rodata.
2529         (SELECT_RTX_SECTION): Likewise.
2530
2531 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
2532
2533         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
2534         defining __size_t and leaving size_t undefined.
2535
2536 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
2537
2538         * basic-block.h (expunge_block): Declare.
2539         * cfg.c (expunge_block): Remove static declaration.
2540
2541 2001-09-12  Richard Henderson  <rth@redhat.com>
2542
2543         * integrate.c (copy_insn_list): Copy label name from
2544         NOTE_INSN_DELETED_LABEL.
2545
2546 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2547
2548         * c-common.c (c_tree_code_name): Const-ification.
2549         * c-decl.c (c_decode_option): Likewise.
2550         * c-typeck.c (warn_for_assignment): Likewise.
2551         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
2552         Likewise.
2553         * cppinit.c (output_deps): Likewise.
2554         * dependence.c (dependence_string, direction_string): Likewise.
2555         * dwarf2out.c (output_ranges): Likewise.
2556         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
2557         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
2558         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
2559         standard_startfile_prefix, standard_startfile_prefix_1,
2560         standard_startfile_prefix_2, tooldir_base_prefix,
2561         standard_bindir_prefix, find_a_file): Likewise.
2562         * genattrtab.c (make_length_attrs): Likewise.
2563         * gencheck.c (tree_codes): Likewise.
2564         * genemit.c (gen_split): Likewise.
2565         * genrecog.c (special_mode_pred_table): Likewise.
2566         * graph.c (graph_ext): Likewise.
2567         * protoize (default_include): Likewise.
2568         * reload.c (reload_when_needed_name): Likewise.
2569         * sched-vis.c (visualize_stall_cycles): Likewise.
2570         * tlink.c (recompile_files): Likewise.
2571         * toplev.c (decode_g_option): Likewise.
2572         * tradcpp.c (output_deps): Likewise.
2573         * varasm.c (decode_reg_name): Likewise.
2574
2575         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
2576         Const-ification.
2577         * arm.md: Likewise.
2578         * avr.c (avr_regnames, encode_section_info): Likewise.
2579         * c4x.c (float_reg_names): Likewise.
2580         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
2581         * elfos.h (const_section): Likewise.
2582         * i386.c (ix86_comp_type_attributes): Likewise.
2583         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
2584         * ia64/aix.h (UNIQUE_SECTION): Likewise.
2585         * ia64.c (type_names): Likewise.
2586         * m68hc11.c (reg_class_names): Likewise.
2587         * m88k.c (m_options): Likewise.
2588         * mips.c (mips_output_conditional_branch, mips_unique_section):
2589         Likewise.
2590         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2591         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
2592         ultra_code_names): Likewise.
2593         * sparc.h (OVERRIDE_OPTIONS): Likewise.
2594
2595 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
2596
2597         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
2598         Use --fatal-warnings option for gas.
2599         * configure: Rebuilt.
2600
2601 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2602
2603         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
2604
2605 2001-09-11  Jim Wilson  <wilson@redhat.com>
2606
2607         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
2608
2609 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
2610
2611         * builtins.c (c_strlen): Treat an offset too large for a
2612         HOST_WIDE_INT as out of range.
2613
2614 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
2615
2616         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
2617         (EDGE_CRITICAL_P): New predicate.
2618         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
2619         handling.
2620         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
2621         (dump_edge_info): Remove "crit".
2622         * cfganal.c (mark_critical_edges): Kill.
2623         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
2624         * cfgcleanup.c (cleanup_cfg): Likewise.
2625         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
2626         (find_spanning_tree): Likewise.
2627         * reg-stack.c (convert_regs_1): Likewise.
2628         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
2629
2630         * basic-block.h (create_basic_block_structure): New.
2631         (create_basic_block): Update prototype.
2632         (force_nonfallthru): New.
2633         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
2634         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
2635         handle updating of block_for_insn, creating of empty BBs and BBs at
2636         the end of INSN chain.
2637         (create_basic_block): New function.
2638         (split_block): Use create_basic_block.
2639         (force_nonfallthru_and_redirect): Break out from ...; cleanup
2640         (redirect_edge_and_branch_force): ... here.
2641         (force_nonfallthru): New.
2642         (split_edge): Rewrite to use force_nonfallthru and create_block.
2643         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
2644         (find_basic_blocks): Free basic_block_for_insn.
2645         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
2646
2647         * cfg.c: Fix formating.
2648         * cfgcleanup.c: Fix formating.
2649         (merge_blocks, tail_recursion_label_p): Return bool.
2650         (merge_blocks_move_predecessor_nojumps,
2651          merge_blocks_move_successor_nojumps): Return void.
2652
2653 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
2654
2655         * configure.in: Check whether assembler supports section merging.
2656         * config.in: Rebuilt.
2657         * configure: Rebuilt.
2658         * varasm.c (variable_section, output_constant_pool): Pass alignment
2659         to SELECT_SECTION and SELECT_RTX_SECTION.
2660         (mergeable_string_section): New.
2661         (mergeable_constant_section): New.
2662         (default_elf_asm_named_section): Output SECTION_MERGE and
2663         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
2664         * output.h (mergeable_string_section): New.
2665         (mergeable_constant_section): New.
2666         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
2667         * toplev.c (flag_merge_constants): New.
2668         (f_options): Add -fmerge-constants and -fmerge-all-constants
2669         options.
2670         (toplev_main): Default to -fno-merge-constants if not optimizing.
2671         * flags.h (flag_merge_constants): Add extern.
2672         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
2673         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
2674         argument.
2675         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
2676         Define if assembler has working .subsection -1 support.
2677         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
2678         Put constant into special SHF_MERGE sections if the linker should
2679         attempt to merge duplicates.
2680         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
2681         macro argument.
2682         Put constant into special SHF_MERGE sections if the linker should
2683         attempt to merge duplicates.
2684         * config/alpha/elf.h: Likewise.
2685         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
2686         has working .subsection -1 support.
2687         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
2688         SELECT_SECTION.
2689         * config/svr3.h: Likewise.
2690         * config/darwin.h: Likewise.
2691         * config/arm/aof.h: Likewise.
2692         * config/arm/linux-elf.h: Likewise.
2693         * config/avr/avr.h: Likewise.
2694         * config/c4x/c4x.h: Likewise.
2695         * config/d30v/d30v.h: Likewise.
2696         * config/i386/dgux.h: Likewise.
2697         * config/i386/osfrose.h: Likewise.
2698         * config/i386/sco5.h: Likewise.
2699         * config/i386/svr3gas.h: Likewise.
2700         * config/ia64/aix.h: Likewise.
2701         * config/m32r/m32r.h: Likewise.
2702         * config/m68k/m68k.h: Likewise.
2703         * config/m88k/dgux.h: Likewise.
2704         * config/m88k/m88k.h: Likewise.
2705         * config/mcore/mcore-pe.h: Likewise.
2706         * config/mips/mips.h: Likewise.
2707         * config/pa/pa.h: Likewise.
2708         * config/pa/pa-linux.h: Likewise.
2709         * config/romp/romp.h: Likewise.
2710         * config/rs6000/sysv4.h: Likewise.
2711         * config/rs6000/xcoff.h: Likewise.
2712         * config/s390/linux.h: Likewise.
2713         * config/sparc/sparc.h: Likewise.
2714         * config/sparc/sysv4.h: Likewise.
2715         * config/stormy16/stormy16.h: Likewise.
2716         * config/v850/v850.h: Likewise.
2717         * config/vax/vms.h: Likewise.
2718         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
2719         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
2720         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
2721         default_elf_asm_named_section for SHF_MERGE sections.
2722
2723 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
2724
2725         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
2726         is OK.
2727
2728 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2729
2730         * c-common.c (split_specs_attrs): Allow for empty attributes with
2731         empty TREE_PURPOSE.  Fixes PR c/4294.
2732
2733 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
2734
2735         * basic-block.h (cached_make_edge, make_single_succ): New.
2736         (make_edge): Remove first parameter.
2737         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
2738         * cfg.c (cached_make_edge): Rename from make_edge; return newly
2739         created edge; use obstack allocation.
2740         (make_edge, make_single_succ_edge): New.
2741         (first_removed_edge): New static variable.
2742         (init_flow): Initialize first_removed_edge and n_edges.
2743         (clear_edges): Use remove_edge.
2744         (flow_delete_block): Likewise.
2745         (remove_edge): Add removed edges to the removed edges list.
2746         (split_block, redirect_edge_and_branch_force, split_edge):
2747         Use make_edge.
2748         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
2749         (add_noreturn_fake_exit_edges): Likewise.
2750         (connect_infinite_loops_to_exit): Liekwise.
2751         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
2752         Use cached_make_edge.
2753         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
2754         * profile.c (branch_prob): Update make_edge call.
2755         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2756
2757 2001-09-11  Richard Henderson  <rth@redhat.com>
2758
2759         * config/alpha/alpha.c: Tidy formatting.
2760         (local_symbolic_operand): Verify mode.
2761         (alpha_sa_mask): Ignore unicos for eh_return.
2762         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
2763         * config/alpha/alpha.md (umk divsi patterns): Remove.
2764         (extendsfdf2): Remove unicos check.
2765         (tablejump): Merge vms and unicos code; always use direct set
2766         plus label_ref use.
2767
2768 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2769
2770         * config.gcc (alpha*-*-unicosmk*): New target.
2771
2772         * config/alpha/alpha-protos.h (symbolic_operand,
2773         unicosmk_add_call_info_word, unicosmk_add_extern,
2774         unicosmk_defer_case_vector, unicosmk_unique_section,
2775         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
2776         unicosmk_asm_file_start, unicosmk_asm_file_end,
2777         unicosmk_output_common): Declare.
2778
2779         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
2780         direct_return, function_arg, alpha_va_start, alpha_va_arg,
2781         alpha_does_function_need_gp, alpha_end_function): Support Cray
2782         Unicos/Mk.
2783         (alpha_init_machine_status, alpha_mark_machine_status,
2784         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
2785         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
2786         unicosmk_asm_named_section, unicosmk_insert_attributes,
2787         unicosmk_section_type_flags, symbolic_operand,
2788         unicosmk_output_module_name, unicosmk_output_default_externs,
2789         unicosmk_output_dex, unicosmk_output_externs,
2790         unicosmk_output_addr_vec, unicosmk_ssib_name,
2791         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
2792         unicosmk_asm_file_end, unicosmk_output_common,
2793         unicosmk_section_type_flags, unicosmk_unique_section,
2794         unicosmk_add_call_info_word, unicosmk_text_section,
2795         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
2796         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
2797         unicosmk_dex_count, unicosmk_special_name): New.
2798         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
2799         TARGET_ABI_UNICOSMK.
2800         (get_aligned_mem, alpha_expand_unaligned_load,
2801         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
2802         alpha_expand_unaligned_store_words): Support big-endian mode.
2803         (print_operand): Likewise. New format specifier 't'. Use
2804         TARGET_AS_SLASH_BEFORE_SUFFIX.
2805         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
2806         (alpha_pv_save_size): Update with above change.
2807         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
2808         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
2809         Unicos/Mk.
2810
2811         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
2812         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
2813         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
2814         (EXTRA_CONSTRAINT): New constraint 'U'.
2815         (PREDICATE_CODES): Add symbolic_operand.
2816
2817         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
2818         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
2819         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
2820         (integer division and modulus patterns): Split in default and
2821         Unicos/Mk versions.
2822         (*divmodsi_internal, *divmoddi_internal): Disable for
2823         TARGET_ABI_UNICOSMK.
2824         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
2825         little-endian and big-endian versions.
2826         (ext, ins, msk): Likewise.
2827         (extv, extzv, insv): Support big-endian mode.
2828         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
2829         (call_umk, call_value_umk, *call_umk, tablejump_umk,
2830         *tablejump_umk_internal, *call_value_umk): New.
2831         (*movdi_nofix): Add pattern for loading an address into a register on
2832         TARGET_ABI_UNICOSMK.
2833         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
2834         (umk_mismatch_args, arg_home_umk): New.
2835         (various insns): Don't use mov, fmov, nop, fnop and unop.
2836         (realign): Support TARGET_ABI_UNICOSMK.
2837
2838         * config/alpha/unicosmk.h: New file.
2839         * config/alpha/t-unicosmk: New file.
2840
2841         * fixinc/inclhack.def (unicosmk_restrict): New.
2842         * fixinc/fixincl.x: Regenerate.
2843
2844         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
2845         (wchar_t): Check for and define __WCHAR_T__.
2846
2847 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
2848
2849         * combine.c (simplify_shift_const): Treat shifts by the mode
2850         size as undefined.
2851
2852 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2853
2854         * cpphash.h (struct tokenrun): New.
2855         (struct cpp_context): New member bol.
2856         (struct cpp_reader): New members.
2857         (_cpp_init_tokenrun): New.
2858         * cppinit.c (cpp_create_reader): Set up the token runs.
2859         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
2860         (lex_token): New internalised version of _cpp_lex_token.  Don't
2861         handle directives or the multiple include opimisation here any
2862         more.  Simply lex a token.
2863         * cpplib.c (run_directive): Clear bol.
2864         (_cpp_pop_buffer): Set bol.
2865         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
2866         arguments.
2867
2868 2001-09-11  Michael Meissner  <meissner@redhat.com>
2869
2870         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
2871         give an error if the user uses -mfp32.
2872         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
2873         default options.
2874         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
2875         floating point register size.
2876         (EXTRA_SPECS): Add CPP_FPR_SPEC.
2877
2878         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
2879         HOST_WIDE_INT_PRINT_DEC to properly print the result of
2880         int_size_in_bytes.
2881         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
2882         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
2883
2884 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
2885
2886         * dbxout.c (dbxout_parms): Fix typo in comment.
2887         * unroll.c (loop_find_equiv_value): Ditto.
2888         * toplev.c (rest_of_compilation): Ditto.
2889         * loop.c (scan_loop): Ditto.
2890         * dwarf2out.c (struct dw_fde_struct): Ditto.
2891
2892 2001-09-10  Zack Weinberg  <zackw@panix.com>
2893
2894         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
2895         copying identifier when we're just going to throw it away.
2896         (parse_identifier_slow): New routine to handle abnormal cases.
2897         (_cpp_lex_token): Update call site.
2898
2899         * hashtable.c (ht_lookup): Don't assume that the string we've
2900         been given is NUL-terminated.
2901         * system.h: #define __builtin_expect(a, b) to (a) if not
2902         GCC >=3.0.
2903
2904 2001-09-10  Michael Meissner  <meissner@redhat.com>
2905
2906         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
2907         binutils, gdb.
2908
2909 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
2910
2911         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
2912
2913 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2914
2915         * builtins.c (c_getstr): Correct thinko in last change and further
2916         cleanup.
2917
2918 2001-09-10  Tim Freeman <tim@fungibole.com>
2919
2920         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
2921         into varray's and register them as roots with the garbage
2922         collector so they are not collected too soon.
2923
2924 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
2925
2926         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
2927         New.
2928         * basic-block.h (flow_obstack, label_value_list,
2929         tail_recursion_label_list): Declare
2930         (tidy_fallthru_edges): Declare.
2931         (expunge_block, last_loop_beg_note): Delete.
2932         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
2933         * cfg.c: New file
2934         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
2935         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
2936         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
2937         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
2938         expunge_block, flow_delete_block, compute_bb_for_insn,
2939         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
2940         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
2941         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
2942         try_redirect_by_replacing_jump, last_loop_beg_note,
2943         redirect_edge_and_branch, redirect_edge_and_branch_force,
2944         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
2945         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
2946         commit_edge_insertions, dump_flow_info, debug_flow_info,
2947         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
2948         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
2949         Move here from flow.c
2950         * cfganal.c: New file.
2951         (forwarder_block_p, can_fallthru, mark_critical_edges,
2952          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
2953          find_unreachable_blocks, create_edge_list, free_edge_list,
2954          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
2955          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
2956          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
2957          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
2958          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
2959          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
2960         Move here from flow.c
2961         * cfgbuild.c: New file
2962         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
2963          make_edges, find_basic_blocks_1, find_basic_blocks,
2964          find_sub_basic_blocks): Move here from flow.c
2965         * cfgcleanup.c: New file.
2966         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
2967          merge_blocks_move_predecessor_nojumps,
2968          merge_blocks_move_successor_nojumps, merge_blocks,
2969          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
2970          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
2971         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
2972         if succeeded.
2973         * cfgloop.c: New file
2974         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
2975          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
2976          flow_loop_exit_edges_find, flow_loop_nodes_find,
2977          flow_loop_pre_header_scan, flow_loop_pre_header_find,
2978          flow_loop_tree_node_add, flow_loops_tree_build,
2979          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
2980          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
2981         Move here from flow.c
2982         * flow.c: Remove everything moved elsewhere
2983         * output.h (cleanup_cfg): Return bool.
2984
2985         * bb-reorder.c (reorder_block_def): Remove 'index'.
2986         (insert_intra_1): Add argument BB, set block for new note.
2987         (make_reorder_chain): Do not depdent on BB indexes.
2988         (make_reorder_chain_1): Do not use BB indexes.
2989         (label_for_bb): Likewise; set BB for new insn.
2990         (emit_jump_to_block_after): Likewise.
2991         (fixup_reoder_chain): Sanity check that all basic blocks
2992         are chained; verify newly created insn chain; remove
2993         undocnitional jump simplifying; Do not use BB indexes;
2994         properly initialize count and frequency information;
2995         dump reordered sequence.
2996         (insert_intra_bb_scope_notes): update call of insert_intra_1.
2997         (insert_inter_bb_scope_notes): Set block for new insn.
2998         (reorder_basic_blocks): Dump flow info before reoredering.
2999
3000 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3001
3002         * alias.c (clear_reg_alias_info): Use K&R format definition.
3003         Avoid unsigned warning.
3004         * builtins.c: Use "unsigned int", not "unsigned".
3005         (target_char_cast): Use host_integerp and tree_low_cst.
3006         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
3007         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
3008         (c_getstr): Likewise.
3009         (std_expand_builtin_va_arg): Use int_size_in_bytes.
3010         (builtin_memcpy_read_str): Avoid unsigned warning.
3011         (expand_builtin_memcpy): Alignments are unsigned.
3012         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
3013         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
3014         * predict.c (expensive_function_p): LIMIT now unsigned.
3015         * resource.c (mark_target_live_regs): Make some vars unsigned.
3016         * sdbout.c: Use "unsigned int", not "unsigned".
3017         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
3018         (sdbout_source_line): Likewise.
3019         (sdbout_record_type_name): Remove "const" for NAME declaration.
3020         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
3021
3022 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
3023
3024         * calls.c (store_one_arg): Expand comment.
3025
3026 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3027
3028         * calls.c (store_one_arg): Make sure that the entire argument is
3029         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
3030
3031 2001-09-09  Richard Henderson  <rth@redhat.com>
3032
3033         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
3034
3035 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
3036
3037         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
3038
3039 2001-09-09  Richard Henderson  <rth@redhat.com>
3040
3041         * config/alpha/alpha.c (alpha_next_sequence_number): New.
3042         (alpha_this_literal_sequence_number): New.
3043         (alpha_this_gpdisp_sequence_number): New.
3044         (some_operand, input_operand): Add HIGH.
3045         (local_symbolic_operand): New.
3046         (alpha_encode_section_info): New.
3047         (alpha_legitimate_address_p): Allow LO_SUM.
3048         (alpha_legitimize_address): Generate HIGH+LO_SUM.
3049         (alpha_expand_mov): Likewise.
3050         (secondary_reload_class): Check memory_operand not general_operand
3051         for FP_REGS test.
3052         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
3053         (alpha_expand_unaligned_store): Likewise.
3054         (alpha_expand_unaligned_load_words): Likewise.
3055         (alpha_expand_unaligned_store_words): Likewise.
3056         (alpha_expand_block_clear): Likewise.
3057         (print_operand): Handle %#, %*, %H.
3058         (print_operand_address): Handle LO_SUM.
3059         (find_lo_sum): New.
3060         (alpha_does_function_need_gp): Use it.
3061         (alpha_expand_block_move): Fix signed compare warnings.
3062         (alpha_sa_mask, alpha_align_insns): Likewise.
3063         * config/alpha/alpha-protos.h: Update.
3064         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
3065         (MASK_EXPLICIT_RELOCS): New.
3066         (TARGET_SWITCHES): Add -mexplicit-relocs.
3067         (EXTRA_CONSTRAINT): Add 'T'.
3068         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
3069         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
3070         (ENCODE_SECTION_INFO): Out line.
3071         (REDO_SECTION_INFO_P): New.
3072         (STRIP_NAME_ENCODING): New.
3073         (ASM_OUTPUT_LABELREF): New.
3074         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
3075         (PREDICATE_CODES): Update.
3076         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
3077         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
3078         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
3079         builtin_setjmp_receiver_er, exception_receiver_1_er,
3080         call_value_osf_1_er): New patterns.
3081         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
3082         (movqi, movhi, movsi): Add explicit $31 base register to lda.
3083         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
3084         (FINAL_PRESCAN_INSN): New.
3085
3086 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
3087
3088         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
3089
3090 2001-09-08  Andreas Jaeger  <aj@suse.de>
3091
3092         * i386.h (TARGET_SWITCHES): Fix description.
3093
3094 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
3095
3096         * rs6000.c (num_insns_constant): Compute number of instructions
3097         more accurately.
3098
3099         * doc/install.texi: Explain AIX exception handling work-around.
3100         Update URL for AIX fixes.
3101
3102 2001-09-07  Jim Wilson  <wilson@redhat.com>
3103
3104         * alias.c (clear_reg_alias_info): New.
3105         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
3106         * rtl.h (clear_reg_alias_info): Declare.
3107
3108 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3109
3110         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
3111         available.
3112         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
3113         (m16m,edivm,emulm): Change declaration to match definition.
3114
3115 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
3116
3117         * reload.c (push_reload): Check for subreg_lowpart_p instead of
3118         SUBREG_BYTE being 0 when determining if the inner part of a subreg
3119         can be reloaded.
3120
3121 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3122
3123         * c-common.c (signed_or_unsigned_type): Handle machine mode types
3124         which have no corresponding C type.
3125         * fold_const.c (target_isinf,target_isnan,target_negative): Update
3126         the representation of 64-bit doubles to work with 64-bit ints.
3127
3128 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
3129
3130         * config/mips/mips.c (override_options): Do not override ISA when ABI
3131         specified if MIPS_CPU_STRING_DEFAULT was specified.
3132
3133 2001-09-07  Richard Henderson  <rth@redhat.com>
3134
3135         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
3136         (express_from_1): Wrap lines.
3137         * rtlanal.c (commutative_operand_precedence): Rename from
3138         operand_preference; export.
3139         * rtl.h: Declare it.
3140         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
3141         (simplify_binary_operation): Invoke simplify_plus_minus on
3142         (CONST (PLUS ...)) as well.
3143         (struct simplify_plus_minus_op_data): New.
3144         (simplify_plus_minus_op_data_cmp): New.
3145         (simplify_plus_minus): Use them.  Avoid infinite recursion with
3146         simplify_binary_operation wrt CONST.
3147
3148 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
3149
3150         * h8300-protos.h (general_operand_dst_push): Remove.
3151         * h8300.c (general_operand_dst_push): Likewise.
3152         * h8300.h (OK_FOR_T): Likewise.
3153         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
3154         * h8300.md (pushqi_h8300): New.
3155         (pushqi_h8300hs): Likewise.
3156         (pushqi): Likewise.
3157         (pushhi_h8300): Likewise.
3158         (pushhi_h8300hs): Likewise.
3159         (pushhi): Likewise.
3160
3161 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3162
3163         * genattrtab.c (attr_printf): First arg is unsigned.
3164         Clean up formatting of callers.
3165
3166 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
3167
3168         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
3169         registers.
3170
3171 2001-09-07  Andreas Jaeger  <aj@suse.de>
3172
3173         * i386.h (TARGET_SWITCHES): Fix descriptions.
3174
3175 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3176
3177         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
3178
3179 2001-09-06  Ira Ruben  <ira@apple.com>
3180
3181         Remove OP_IDENTIFIER.
3182         * tree.def (OP_IDENTIFIER): Remove.
3183         * tree.c (tree_node_kind enum): Remove op_id_kind.
3184         (tree_node_kind_names): Remove "op_identifiers".
3185         (make_node): Remove OP_IDENTIFIER test.
3186         (build_op_identifier): Removed because it isn't being used.
3187         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
3188         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
3189
3190 2001-09-06  Richard Henderson  <rth@redhat.com>
3191
3192         * simplify-rtx.c (simplify_binary_operation): Revert last change.
3193
3194 2001-09-06  Richard Henderson  <rth@redhat.com>
3195
3196         * simplify-rtx.c (simplify_binary_operation): Simplify contents
3197         of CONST.
3198
3199 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3200
3201         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
3202         number used for CR register.
3203
3204 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
3205                           Joern Rennecke (amylaar@cygnus.com)
3206
3207         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
3208         * h8300.c (initial_offset): Handle offset between RP and FP.
3209         (h8300_return_addr_rtx): New function.
3210         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
3211         return register.
3212         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
3213         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
3214         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
3215         (CAN_ELIMINATE, REGISTER_NAMES):
3216         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
3217
3218 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
3219
3220         Remove TYPE_NONCOPIED_PARTS.
3221         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
3222         (struct tree_type): Remove noncopied_parts.
3223         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
3224         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
3225         (fixed_type_p): Remove.
3226         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
3227         (expand_expr, MODIFY_EXPR): Likewise.
3228         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
3229         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
3230
3231 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
3232
3233         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
3234         compiler warnings.
3235         (mask64_operand): Likewise.
3236         (includes_rldic_lshift_p): Likewise.
3237         (includes_rldicr_lshift_p): Likewise.
3238
3239 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
3240
3241         * objc/objc-act.c (build_message_expr): If a class method cannot
3242         be found, do not issue a warning if a corresponding instance
3243         method exists in the root class.
3244
3245 2001-09-05  Richard Henderson  <rth@redhat.com>
3246
3247         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
3248
3249 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
3250
3251         * function.c (ggc_mark_struct_function): Mark f->outer.
3252         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
3253         * integrate.c (output_inline_function): ... not here.
3254
3255 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
3256
3257         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
3258
3259         * i386.c (size_cost): New static variable.
3260         (override_function): Use size_cost when -Os is specified.
3261
3262         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
3263         properly;  Use current_function_calls_eh_return.
3264         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
3265         use leave to avoid depdendancy chain.
3266
3267         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
3268         get BB loop_depth instead of computing it from LOOP notes.
3269
3270         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
3271
3272 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3273
3274         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3275         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
3276         UNALIGNED_DOUBLE_INT_ASM_OP): Define
3277
3278 2001-09-05  Jeffrey A Law  (law@cygnus.com)
3279             Jason Merrill (jason@redhat.com)
3280
3281         * stor-layout.c (layout_type): Complain if an array's size can
3282         not be represented in a size_t.
3283
3284         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
3285
3286 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
3287
3288         * gcc.c: (process_command) Add parentheses around assignment
3289         used as truth value.
3290
3291 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
3292
3293         * config/mips/mips.c (save_restore_insns): Don't mark any register
3294         save slots as unchanging if current_function_calls_eh_return.
3295
3296 2001-09-05  Richard Henderson  <rth@redhat.com>
3297
3298         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
3299         * config/alpha/alpha-protos.h: Declare it.
3300         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
3301         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
3302         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
3303         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
3304         (REG_OK_FOR_BASE_P): Select one of the above.
3305
3306 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
3307
3308         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
3309         (crti.o): Prefix name of object file with $(T).
3310         (crtn.o): Likewise.
3311
3312 2001-09-05  David S. Miller  <davem@redhat.com>
3313
3314         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
3315         * config/sparc/linux64.h: Likewise.
3316
3317 2001-09-05  Andreas Jaeger  <aj@suse.de>
3318
3319         * doc/invoke.texi (i386 Options): -mwide-multiply is not
3320         available anymore, remove the documentation.
3321         (i386 Options): Fix typo, cleanup index entries.
3322
3323         * prefix.c (concat): Remove, we can use the version from liberty.
3324
3325 2001-09-05  Richard Henderson  <rth@redhat.com>
3326
3327         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
3328         New functions split out of md file expanders.
3329         * config/alpha/alpha-protos.h: Declare them.
3330         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
3331
3332 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3333
3334         * cppmacro.c (funlike_invocation_p): No need to restore context.
3335
3336 2001-09-04  Richard Henderson  <rth@redhat.com>
3337
3338         * reload.c (push_reload): Export.
3339         * reload.h (push_reload): Declare it.
3340
3341         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
3342         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
3343         * config/alpha/alpha.c (alpha_legitimize_address): New.
3344         (alpha_legitimize_reload_address): Likewise.
3345         * config/alpha/alpha-protos.h: Declare them.
3346
3347 2001-09-04  Stan Shebs  <shebs@apple.com>
3348
3349         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
3350         * config/darwin.c (machopic_stub_name): Account for internally
3351         generated lib calls such as memcpy.
3352
3353 2001-09-04  Richard Henderson  <rth@redhat.com>
3354
3355         * unwind.h (_UA_END_OF_STACK): New flag.
3356         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
3357
3358 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
3359
3360         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
3361
3362 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
3363
3364         * config/mips/mips.c (save_restore_insns): Change base_offset to
3365         fp_offset in second call to mips_emit_frame_related_store.
3366
3367 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
3368
3369         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
3370         sometimes be represented as a NOTE of type
3371         NOTE_INSN_DELETED_LABEL.
3372         (Insns): Document NOTE_INSN_DELETED_LABEL.
3373
3374 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
3375
3376         * c-common.h (tree_dump_index): Add more comments.
3377         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
3378         (dump_option_value_info): New struct.
3379         (dump_options): New array.
3380         (dump_switch_p): Parse switch options symbolically.
3381         * doc/invoke.texi (-fdump-ast): Rename to ...
3382         (-fdump-tree): ... here. Document that options are symbolic, and
3383         not all are applicable.
3384
3385 2001-09-04  David S. Miller  <davem@redhat.com>
3386
3387         * config/sparc/sparc.md (define_splits): Kill constraints.
3388
3389         Cleanup redundant and unused insn attributes.
3390         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
3391         binary, and move.  Mark ialu as default.
3392         (commented out define_function_unit "alu"): Kill.
3393         (define_attr "use_clobbered"): Kill.
3394         (whole file): Kill address insn type references.  Replace
3395         all unary/binary/move references with ialu.
3396         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
3397         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
3398         TYPE_IALU.
3399
3400         Simplify length insn attribute and make more judicious use
3401         of insn attribute defaulting.
3402         * config/sparc/sparc.md (all insns with length > one): Mark as
3403         insn type multi if real instructions, else use default if
3404         it is a forced splitter.
3405         (all insns with length == one): Use default insn length.
3406         (all insns of type ialu): Use default insn type.
3407
3408         Fix erroneous insn attribute settings.
3409         (addx): Set insn type to misc.
3410         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
3411         const_umulsidi3_sp64): Set insn type to imul.
3412
3413         Track SFmode vs DFmode insns according to UltraSPARC
3414         scheduling rules.
3415         * config/sparc/sparc.md ("fptype"): New attribute, default
3416         to "single".
3417         (all DFmode single insns): Mark as fptype "double".
3418
3419 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
3420
3421         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
3422
3423 2001-09-03  Richard Henderson  <rth@redhat.com>
3424
3425         * function.h (struct function): Add arg_pointer_save_area_init.
3426         * function.c (expand_function_end): Init arg_pointer_save_area.
3427         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
3428         when called from a nested function.
3429
3430 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
3431
3432         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
3433         is enabled.
3434
3435 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3436
3437         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
3438
3439 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
3440
3441         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
3442         (emit_push_insn): Use specified padding direction when
3443         STACK_PUSH_CODE is POST_INC.
3444
3445         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
3446
3447 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3448
3449         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
3450
3451 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3452
3453         * cppinit.c (cpp_start_read): Free the imacros list as we
3454         traverse it.  Don't free the chains before returning.
3455         (_cpp_push_next_buffer): Only try pushing buffers if we've
3456         completed -imacros handling.
3457
3458 2001-08-31  Eric Christopher  <echristo@redhat.com>
3459
3460         * gcc.c (handle_braces): Add explaination for abort.
3461
3462 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
3463
3464         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
3465         move adjustment of bitpos instead.
3466
3467 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
3468
3469         * function.c: Remove all_functions.  Make outer_function_chain
3470         static.
3471         (init_function_start): Don't add new function structure to
3472         all_functions.
3473         (find_function_data, push_function_context_to,
3474         pop_function_context_from, put_var_into_stack,
3475         trampoline_address): Update for changed structure element names.
3476         (push_function_context_to): Disentangle.
3477         (free_after_compilation): Also free F.
3478         (expand_dummy_function_end): Don't free cfun here.
3479         (put_var_into_stack): Comment why we can't use find_function_data here.
3480         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
3481         (mark_function_chain): Split into maybe_mark_struct_function and
3482         ggc_mark_struct_function.  Export the latter.
3483         (init_function_once): Mark from cfun and outer_function_chain;
3484         not all_functions.
3485
3486         * function.h (struct function): Kill next_global.  Rename next
3487         to outer.  All users updated to match.
3488         (all_functions, outer_function_chain): Don't declare.
3489
3490         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
3491         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
3492         don't touch f->inlinable, after calling rest_of_compilation.
3493
3494         * tree.h: Forward-declare struct function.  Prototype
3495         ggc_mark_struct_function.
3496
3497 2001-08-31  Kazu Hirata  <kazu@hxi.com>
3498
3499         * config/h8300/h8300.md (*andorhi3): Fix typos.
3500
3501 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3502
3503         * calls.c (emit_library_call_value): Don't use a fixed
3504         argument after VA_CLOSE, i.e. out of scope in traditional C.
3505
3506         * emit-rtl.c (gen_rtvec): Likewise.
3507
3508 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3509
3510         * Makefile.in (c-pragma.o): Depend on output.h.
3511         (reorg.o): Depend on except.h.
3512
3513         * c-pragma.c: Include output.h.
3514
3515         * reorg.c: Include except.h.
3516
3517         * unwind-dw2.c: Call __builtin_alloca, not alloca.
3518
3519 2001-08-31  Richard Henderson  <rth@redhat.com>
3520
3521         * sched-deps.c (add_dependence): Don't elide dependancy if the
3522         conditional used by insn is modified in elem.
3523
3524 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
3525
3526         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
3527
3528 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
3529
3530         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
3531         dump_switch_p.
3532
3533 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
3534
3535         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
3536         function.
3537         (stormy16_asm_out_constructor): New function.
3538         (TARGET_ASM_CONSTRUCTOR): Define.
3539         (TARGET_ASM_DESTRUCTOR): Define.
3540
3541 2001-08-31  Andreas Jaeger  <aj@suse.de>
3542
3543         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
3544         * loop.c (add_label_notes): Likewise.
3545         * reload.c (find_reloads): Likewise.
3546         * config/sh/sh.c (machine_dependent_reorg): Likewise.
3547
3548 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
3549
3550         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
3551         code here.  Take _Unwind_{W,Sw}ord*.
3552         (read_encoded_value_with_base): Use them.
3553         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
3554         words.
3555         (extract_cie_info): Simplify read_?leb128 handling.
3556         (execute_stack_op, execute_cfa_program): Likewise.
3557         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
3558
3559 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
3560
3561         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
3562         the frame pointer to pop the stack if convenient.
3563
3564         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
3565         Don't use post-increment before combine.
3566         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
3567         a call-saved register.
3568
3569 2001-08-31  Andreas Jaeger  <aj@suse.de>
3570
3571         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
3572         code was correct.
3573
3574 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
3575
3576         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
3577         not DIV/MOD, of course.
3578
3579 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
3580
3581         * rtl.def: Undo my patch commited 2001-08-27.
3582
3583         * genattrtab.c: Ditto.
3584
3585         * rtl.h: Ditto.
3586
3587         * sched-int.h: Ditto.
3588
3589         * target-def.h: Ditto.
3590
3591         * target.h: Ditto.
3592
3593         * haifa-sched.c: Ditto.
3594
3595         * sched-rgn.c: Ditto.
3596
3597         * sched-vis.c: Ditto.
3598
3599         * Makefile.in: Ditto.
3600
3601         * doc/md.texi: Ditto.
3602
3603         * doc/tm.texi: Ditto.
3604
3605         * doc/contrib.texi: Ditto.
3606
3607         * doc/gcc.texi: Ditto.
3608
3609         * genattrtab.h: Remove it.
3610
3611         * genautomata.c: Remove it.
3612
3613         * genattr.c: Undo my patch and Richard Henderson's patch commited
3614         2001-08-27.
3615
3616 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
3617
3618         * config.gcc (h8300-*-elf*): New case.
3619         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
3620         (SUBTARGET_CPP_SPEC): Define.
3621         (EXTRA_SPECS): Define.
3622         (SUBTARGET_EXTRA_SPECS): Define.
3623         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
3624         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
3625
3626 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
3627
3628         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
3629         (LIB2FUNCS_EXTRA): Define.
3630         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
3631         config/h8300/fixunssfsi.c: New file.
3632
3633 2001-08-30  Kazu Hirata  <kazu@hxi.com>
3634
3635         * config/h8300/h8300.md (zero_extendqihi2): Changes to
3636         define_expand to accomodate target-specific attributes.
3637         (anonymous zero_extendqihi2 patterns): New.
3638
3639 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
3640
3641         * h8300.md (*andorhi3): New pattern.
3642
3643 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
3644
3645         * h8300.c (dosize): Fix test for "sub".
3646
3647 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
3648
3649         * c-typeck.c (pointer_diff): Try to eliminate common term before
3650         doing conversions.
3651
3652 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
3653
3654         * config/arm/arm.c (arm_compute_initial_elimination_offset):
3655         Account for the saves of the FP registers.
3656
3657         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
3658         (TEXT_SECTION_ASM_OP): Define.
3659         (INIT_SECTION_ASM_OP): Define.
3660         (FINI_SECTION_ASM_OP): Define.
3661         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
3662         (RDATA_SECTION_FUNCITON): Provide prototype.
3663
3664 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
3665
3666         * reload1.c (move2add_note_store): Correct typo checking for
3667         argument pushes.
3668
3669 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
3670
3671         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
3672         note should not be considered outside the libcall block.
3673
3674 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3675
3676         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
3677
3678 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3679
3680         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
3681
3682 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3683
3684         * config/h8300/h8300-protos.h: Add a prototype for
3685         emit_logical_op.
3686         * config/h8300/h8300.c (emit_logical_op): New.
3687         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
3688         (andsi3): Likewise.
3689         (iorhi3): Likewise.
3690         (iorsi3): Likewise.
3691         (xorhi3): Likewise.
3692         (xorsi3): Likewise.
3693
3694 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3695
3696         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
3697         comparison with rtx INTVAL.
3698         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
3699         expression.
3700         * pa.h (FUNCTION_ARG_SIZE): Likewise.
3701
3702 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3703
3704         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
3705         comment typos.
3706
3707 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3708
3709         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
3710         (reg n) to (mem (pre_dec (reg n))
3711         (anonymous movsi pattern): Likewise.
3712
3713 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3714
3715         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
3716
3717 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3718
3719         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
3720         several special constants.
3721
3722 2001-08-29  Kazu Hirata  <kazu@hxi.com>
3723
3724         * config/h8300/lib1funcs.asm: Fix comment typos.
3725
3726 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3727
3728         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
3729         Fix format specifier warnings.
3730
3731         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
3732         inet_makeaddr, semctl): Prototype.
3733
3734         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
3735         (save_restore_insns): Use base_offset, not gp_offset.
3736
3737         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
3738         (ASM_OUTPUT_BYTE): Fix format specifier warning.
3739
3740 2001-08-29  Richard Henderson  <rth@redhat.com>
3741
3742         * bb-reorder.c (function_tail_eff_head): New.
3743         (record_effective_endpoints): Set it.
3744         (fixup_reorder_chain): Use it.
3745
3746 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3747
3748         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
3749
3750 2001-08-28  Dale Johannesen  <dalej@apple.com>
3751
3752         * config/darwin.c (machopic_function_base_name): Add const
3753         qualifier to a string.
3754         (darwin_encode_section_info): Ditto.
3755
3756 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3757
3758         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
3759         function definition.
3760
3761 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
3762
3763         * df.h (struct df): Add rts_order variable.
3764
3765         * df.c (df_visit_next_rts): New function.
3766         (df_visit_next): Renamed to df_visit_next_rc
3767         (df_analyse_1): Allocate/compute/free rts_order as well.
3768         (df_rd_global_compute): Use df_visit_next_rc instead of
3769         df_visit_next.
3770         (df_ru_global_compute): Use df_visit_next_rts instead of
3771         df_visit_next.
3772
3773         * flow.c (flow_reverse_top_sort_order_compute): New function.
3774
3775         * basic-block.h: Add prototype.
3776
3777 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
3778
3779         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
3780         blocks, the BB_REACHABLE is now set, rather than aux being
3781         non-NULL. Update the test to reflect this.
3782
3783 2001-08-28  Eric Christopher  <echristo@redhat.com>
3784
3785         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
3786         config/mips/crti.asm: Ditto.
3787
3788 2001-08-28  Eric Christopher <echristo@redhat.com>
3789             Richard Henderson <rth@redhat.com>
3790
3791         * c-pragma.h (add_weak): Move prototype from here...
3792         * output.h (add_weak): ... to here.
3793         * varasm.c (add_weak): Fix typo.
3794         * config/mips/crti.asm: New file.
3795         * config/mips/crtn.asm: Ditto.
3796         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
3797         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
3798         (INVOKE__main): Ditto.
3799         (INIT_SECTION_ASM_OP): New.
3800         (FINI_SECTION_ASM_OP): Ditto.
3801         (STARTFILE_SPEC): Add crti.
3802         (ENDFILE_SPEC): Add crtn.
3803         * config/mips/elf64.h: Same.
3804         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
3805         Remove.
3806         * config/mips/vxworks.h: Ditto.
3807         * config/mips/t-elf: Support crti and crtn.
3808
3809 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
3810
3811         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
3812         INSN_LIST.
3813
3814 2001-08-28  Richard Henderson  <rth@redhat.com>
3815
3816         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
3817         (one_cmplbi2 splitter): Remove redundant test.
3818
3819 2001-08-28  Dale Johannesen  <dalej@apple.com>
3820
3821         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
3822
3823 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
3824
3825         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
3826
3827 2001-08-28  Stan Shebs  <shebs@apple.com>
3828
3829         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
3830         (UNALIGNED_SHORT_ASM_OP): Define.
3831         (UNALIGNED_INT_ASM_OP): Define.
3832
3833 2001-08-28  Will Cohen  <wcohen@redhat.com>
3834
3835         * config/rs6000/rs6000.md (store_multiple): Correct RTL
3836         generation for first set.
3837
3838 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
3839
3840         * flow.c (redirect_edge_succ_nodup): Return new edge.
3841         (try_simplify_condjump): Use new edge.
3842         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
3843
3844         * cse.c (cse_basic_block): Skip note instructions.
3845
3846 2001-08-27  Richard Henderson  <rth@redhat.com>
3847
3848         * combine.c (combine_simplify_rtx): Don't reverse condition
3849         if there is no reverse for the condition.
3850         (simplify_comparison): Don't simplify subregs from INT to FP.
3851
3852         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
3853         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
3854         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
3855         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
3856         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
3857         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
3858
3859 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
3860
3861         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
3862         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
3863         (pushqi1): New.
3864         (adddi_dilshr32, adddi_dishl32): Only data register can be
3865         source for mem destination.
3866
3867         * expmed.c (store_bit_field): Ignore adjustment to bitpos
3868         and use bitnum to decide about register move.
3869
3870 2001-08-27  Richard Henderson  <rth@redhat.com>
3871
3872         * genattr.c (main): Emit state_t even when not doing scheduling.
3873
3874 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
3875             Richard Henderson  <rth@redhat.com>
3876
3877         * gcse.c (reg_first_set, reg_last_set): Replace with ...
3878         (reg_avail_info, current_bb): ... these.
3879         (oprs_unchanged_p, record_last_reg_set_info): Use them.
3880         (compute_hash_table): Likewise.
3881
3882 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
3883
3884         * flow.c (verify_flow_info): Use checksums to verify edges.
3885
3886 2001-08-27  Richard Henderson  <rth@redhat.com>
3887
3888         * genautomata.c (expand_automata): Always create a description.
3889
3890 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
3891
3892         * optabs.c (expand_binop): Correctly handle the carry in multiword
3893         add/subtract operations.
3894
3895 2001-08-27  Fred Fish  <fnf@be.com>
3896
3897         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
3898         __SIZE_TYPE__.
3899
3900 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
3901
3902         * reload.c (find_reloads_toplev): Back out this change:
3903
3904         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
3905
3906         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
3907         mem if the address is a mode_dependent_address_p.
3908
3909 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
3910
3911         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
3912         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
3913         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
3914         RTL constructions.
3915
3916         * genattr.c (main): New variable num_insn_reservations.  Increase
3917         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
3918         pipeline hazard recognizer interface.
3919
3920         * genattrtab.h: New file.
3921
3922         * genattrtab.c: Include genattrtab.h.
3923         (attr_printf, check_attr_test, make_internal_attr,
3924         make_numeric_value): Move protypes into genattrtab.h.  Define them
3925         as external.
3926         (num_dfa_decls): New global variable.
3927         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
3928         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
3929         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
3930         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
3931
3932         * genautomata.c: New file.
3933
3934         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
3935
3936         * sched-int.h: (curr_state): Add the external definition for
3937         automaton pipeline interface.
3938         (haifa_insn_data): Add comments for members blockage and units.
3939
3940         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3941         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
3942         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
3943         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
3944         TARGET_SCHED_DFA_POST_CYCLE_INSN,
3945         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3946         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
3947         macros.
3948         (TARGET_SCHED): Use the new macros.
3949
3950         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
3951         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
3952         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
3953         dfa_bubble): New members in gcc_target.sched.
3954
3955         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
3956         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
3957         (insn_queue): Redefine it as pointer to array.
3958         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
3959         INSN_QUEUE_SIZE.
3960         (max_insn_queue_index_macro_value): New variable.
3961         (curr_state, dfa_state_size, ready_try): New varaibles for
3962         automaton interface.
3963         (ready_element, ready_remove, max_issue): New function prototypes
3964         for automaton interface.
3965         (choose_ready): New function prototype.
3966         (insn_unit, blockage_range): Add comments.
3967         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
3968         FUNCTION_UNITS_SIZE == 0.
3969         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
3970         actual_hazard, potential_hazard): Add comments.
3971         (insn_cost): Use cost -1 as undefined value.  Remove
3972         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
3973         pipeline interface.
3974         (ready_element, ready_remove): New functions for automaton
3975         interface.
3976         (schedule_insn): Add new code for automaton pipeline interface.
3977         (queue_to_ready): Add new code for automaton pipeline interface.
3978         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
3979         (debug_ready_list): Print newline when the queue is empty.
3980         (max_issue): New function for automaton pipeline interface.
3981         (choose_ready): New function.
3982         (schedule_block): Add new code for automaton pipeline interface.
3983         Print ready list before scheduling each insn.
3984         (sched_init): Add new code for automaton pipeline interface.
3985         Initiate insn cost by -1.
3986         (sched_finish): Free the current automaton state and finalize
3987         automaton pipeline interface.
3988
3989         * sched-rgn.c: Include target.h.
3990         (init_ready_list, new_ready, debug_dependencies): Add new code for
3991         automaton pipeline interface.
3992
3993         * sched-vis.c: Include target.h.
3994         (get_visual_tbl_length): Add code for automaton interface.
3995         (target_units, print_block_visualization):  Add comments.
3996
3997         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
3998         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
3999         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4000         (getruntime.o, genautomata.o): New entries.
4001         (genattrtab.o): Add new dependency file genattrtab.h.
4002         (genattrtab): Add new dependencies.  Link it with `libm.a'.
4003         (getruntime.o, hashtab.o): New entries for canadian cross.
4004
4005         * doc/md.texi: Description of automaton based model.
4006
4007         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4008         Add comments.
4009         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4010         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4011         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4012         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4013         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4014         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4015         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4016         hook descriptions.
4017         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4018         MAX_DFA_ISSUE_RATE): New macro descriptions.
4019
4020         * doc/contrib.texi: Add dfa based scheduler contribution.
4021
4022         * doc/gcc.texi: Add more information about genattrtab.
4023
4024 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
4025
4026         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
4027         an RTL basic block.
4028
4029 2001-08-27  Richard Henderson  <rth@redhat.com>
4030
4031         * function.c (expand_function_end): Don't init arg_pointer_save_area.
4032         (get_arg_pointer_save_area): New.  Create an init it here.
4033         (fix_lexical_addr): Use it.
4034         * function.h: Declare it.
4035         * builtins.c (expand_builtin_setjmp_receiver): Use it.
4036         * stmt.c (expand_nl_goto_receiver): Use it.
4037
4038 2001-08-27  Richard Henderson  <rth@redhat.com>
4039
4040         * final.c (final_scan_insn): Don't enter APP_ON mode for
4041         empty asm strings.
4042
4043         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
4044         alignment for assemble_integer for DW_EH_PE_aligned.
4045         * except.c (output_function_exception_table): Likewise.
4046
4047 2001-08-26  Andreas Jaeger  <aj@suse.de>
4048
4049         * c-tree.h: Add prototyp for c_sizeof_nowarn.
4050
4051 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
4052
4053         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
4054
4055 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
4056
4057         * config/rs6000/rs6000.c (mask_operand): Rewrite without
4058         bit-shifting loop.
4059         (mask64_operand): Likewise.
4060         (rldic_operand): Delete.
4061         (includes_lshift64_p): Delete.
4062         (includes_rldic_lshift_p): New function.
4063         (includes_rldicr_lshift_p): New function.
4064         (print_operand): Don't call rldic_operand in case 'W'.
4065         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
4066         (includes_lshift64_p): Remove.
4067         (includes_rldic_lshift_p): Declare.
4068         (includes_rldicr_lshift_p): Declare.
4069         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
4070         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
4071         Replace match_operand rldic_operand predicate with
4072         const_int_operand.  Replace includes_lshift64_p condition with
4073         includes_rldic_lshift_p.
4074         <ashldi3_internal 64 bit rldicr patterns>: New.
4075
4076 2001-08-27  Andreas Jaeger  <aj@suse.de>
4077
4078         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
4079         * errors.c: Likewise.
4080         * final.c: Likewise.
4081         * dwarf2asm.c: Likewise.
4082         * doprint.c (checkit): Likewise.
4083         * diagnostic.c: Likewise.
4084         * collect2.c: Likewise.
4085         * calls.c: Likewise.
4086         * c-semantics.c (build_stmt): Likewise.
4087         * c-format.c (status_warning): Likewise.
4088         * c-errors.c (pedwarn_c99): Likewise.
4089         * builtins.c (validate_arglist): Likewise.
4090         * config/pj/pj.c (pj_printf): Likewise.
4091         * fix-header.c: Likewise.
4092         * gcc.c: Likewise.
4093         * gcov.c (fnotice): Likewise.
4094         * gensupport.c (message_with_line): Likewise.
4095         * mips-tfile.c: Likewise.
4096         * protoize.c (notice): Likewise.
4097         * read-rtl.c (fatal_with_file_and_line): Likewise.
4098         * rtl-error.c: Likewise.
4099         * tradcpp.c: Likewise.
4100         * tree.c: Likewise.
4101         * cp/tree.c (build_min_nt): Likewise.
4102         (build_min): Likewise.
4103         * cp/lex.c: Likewise.
4104         * cp/errfn.c: Likewise.
4105         * cp/rtti.c (create_pseudo_type_info): Likewise.
4106
4107 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
4108
4109         * df.c (df_uses_record): Return after recording all uses
4110         in ASM_OPERANDS.
4111
4112 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
4113
4114         * df.c (df_insn_modify): Realloc the INSN table here, if
4115         necessary, here, too.
4116
4117 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
4118
4119         * config/mips/mips.c (mips_function_value): Handle complex return
4120         values.
4121
4122 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
4123
4124         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
4125         unshared.
4126         * reload.c (make_memloc): Copy result if it is still
4127         reg_equiv_memory_loc[regno] on return.
4128         (subst_reloads) [ENABLE_CHECKING]: Check that none of
4129         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
4130         reg_equiv_mem are modified by the substitutions.
4131
4132 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
4133
4134         * predict.c (expensive_function_p): New.
4135         * rtl.h (expensive_function_p): Declare.
4136         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
4137         (use_fast_prologue_epilogue): New static variable.
4138         (expand_prologue): Set it; emit short prologues if unset.
4139         (expand_epilogue): Likewise.
4140
4141 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
4142
4143         * config.gcc: Add stormy16-*-elf case.
4144         * config/stormy16/stormy-abi: New file.
4145         * config/stormy16/stormy16-lib2.c: New file.
4146         * config/stormy16/stormy16-protos.h: New file.
4147         * config/stormy16/stormy16.c: New file.
4148         * config/stormy16/stormy16.h: New file.
4149         * config/stormy16/stormy16.md: New file.
4150         * config/stormy16/t-stormy16: New file.
4151
4152 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
4153
4154         * i386.h (no-accumulate-outgoing-args): Use proper mask.
4155
4156 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
4157
4158         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
4159         descriptor members are pointer size, not constant 4.
4160         * config/rs6000/rs6000.md (define_splits): Remove more unused
4161         constraints.
4162
4163 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4164
4165         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
4166
4167 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
4168
4169         * cp/rtti.c (VPARAMS): Fix parameter.
4170
4171 2001-08-24  Zack Weinberg  <zackw@panix.com>
4172
4173         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
4174         to zero.
4175         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
4176         to switch.
4177         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
4178         in if controlling use of insv.
4179         (extract_bit_field): Likewise, for extv and extzv.
4180
4181 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
4182
4183         * i386.md (movcc peep2): Fix load of 0.
4184
4185 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4186
4187         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
4188         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
4189
4190 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
4191
4192         * c-pragma.h: Move weak_syms and weak_decls...
4193         * varasm.c: ...here.  Now static.
4194         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
4195         depend on HANDLE_PRAGMA_WEAK.
4196
4197         * c-common.c (c_alignof, c_alignof_expr): Move here...
4198         * c-typeck.c: ...from here.
4199         * c-tree.h, c-common.h: Adjust.
4200
4201 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
4202
4203         * config/ia64/ia64.c (rws_update): If !pred, set write_count
4204         instead of incrementing it.
4205
4206         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
4207         asm ready, don't try to move them all into the same array element.
4208
4209 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
4210
4211         * function.c (thread_prologue_and_epilogue_insns): Avoid
4212         fallthru flag on edge to exit.
4213
4214         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
4215
4216         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
4217         dead edges.
4218
4219 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
4220
4221         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
4222         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
4223         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
4224         Remove prototype.
4225
4226 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
4227
4228         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
4229         replace "GNU CC" with "GCC".
4230
4231 2001-08-23  Richard Henderson  <rth@redhat.com>
4232
4233         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
4234         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
4235         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
4236         Need GR between FR and not GR_AND_FR.
4237         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
4238         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
4239         AR regs before GR regs.
4240         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
4241         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
4242         (REGISTER_MOVE_COST): Update.
4243         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
4244
4245 2001-08-23  Richard Henderson  <rth@redhat.com>
4246
4247         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
4248         a register class.
4249
4250 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
4251
4252         * reload1.c (emit_reload_insns): Don't look for notes
4253         on a NULL store_insn.
4254
4255 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4256
4257         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
4258         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
4259         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
4260         format specifier warnings.
4261         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
4262
4263 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
4264
4265         * config/i386/i386-protos.h: Correct declaration of
4266         i386_pe_asm_named_section.
4267
4268 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4269
4270         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
4271         variable i.
4272         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
4273
4274 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4275
4276         * cpperror.c (print_location): Don't show _Pragma.
4277         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
4278         and file change callback generation here.
4279         (stack_include_file): Update use of cpp_push_buffer.
4280         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
4281         (struct cpp_buffer): Remove type, pfile members.
4282         * cppinit.c (cpp_handle_option): Use free_chain.
4283         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
4284         (skip_escaped_newlines, get_effective_char, lex_percent): Take
4285         a cpp_reader rather than a cpp_buffer.
4286         (skip_escaped_newlines, get_effective_char, skip_block_comment,
4287         skip_line_comment, parse_string, lex_percent, lex_dot,
4288         _cpp_lex_token): Update accordingly.
4289         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
4290         generation here.
4291         (cpp_push_buffer): Update prototype.
4292         (run_directive): Update use of cpp_push_buffer.
4293         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
4294         handle_assertion): Update use of run_directive.
4295         * cpplib.h (enum cpp_buffer_type): Remove.
4296         (cpp_push_buffer): Update prototype.
4297         * fix-header.c (read_scan_file): Update.
4298
4299 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4300
4301         * gcc.c (struct prefix_list): Change prefix to const char *.
4302
4303 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4304
4305         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
4306
4307 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
4308
4309         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
4310         from a new MEM.
4311
4312         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
4313         a squeezable note.
4314         * rtl.h: Adjust.
4315         * ifcvt.c (dead_or_predicable): Adjust.
4316         * loop.c (find_and_verify_loops): Adjust.
4317         * stmt.c (expand_end_case): Adjust.
4318         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
4319         head and end insn pointers in the basic block, not just local copies.
4320         (merge_blocks_move_predecessor_nojumps): Likewise.
4321
4322 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
4323
4324         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
4325         bitmap.h, builtin-types.def, builtins.c, builtins.def,
4326         c-aux-info.c, c-common.c, c-common.def, c-common.h,
4327         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
4328         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
4329         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
4330         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
4331         conditions.h, config.gcc, configure.frag, configure.in,
4332         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
4333         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
4334         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
4335         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
4336         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
4337         emit-rtl.c, errors.c, errors.h, except.c, except.h,
4338         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
4339         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
4340         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
4341         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
4342         gencheck.c, gencodes.c, genconfig.c, genemit.c,
4343         genextract.c, genflags.c, gengenrtl.c, genmultilib,
4344         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
4345         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
4346         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
4347         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
4348         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
4349         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
4350         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
4351         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
4352         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
4353         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
4354         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
4355         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
4356         params.h, predict.c, predict.def, predict.h, prefix.c,
4357         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
4358         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
4359         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
4360         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
4361         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
4362         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
4363         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
4364         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
4365         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
4366         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
4367         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
4368         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
4369         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
4370         xcoffout.h: replace "GNU CC" with "GCC".
4371
4372 2001-08-21  Richard Henderson  <rth@redhat.com>
4373
4374         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
4375         (final_scan_insn): Consider jump tables data even if we have no
4376         independant text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
4377         ADDR_VEC_ALIGN.
4378         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
4379         (ASM_OUTPUT_CASE_END): Remove.
4380         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
4381         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
4382         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
4383
4384 2001-08-21  Richard Henderson  <rth@redhat.com>
4385
4386         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
4387         at barrier insns.  Emit stop bits before barriers.
4388
4389         * flow.c (flow_find_cross_jump): Don't consider unconditional
4390         return insns for commoning.
4391
4392         * final.c (compute_alignments): Fix typo.
4393
4394         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
4395         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
4396         (store_bit_field): Use mode_for_extraction more places.
4397         (extract_bit_field): Likewise.
4398
4399 2001-08-21  Zack Weinberg  <zackw@panix.com>
4400
4401         * caller-save.c: Don't include insn-codes.h.
4402         (reg_save_code, reg_restore_code): Make arrays of int.
4403         All uses updated to match.
4404         (insert_save, insert_restore): No need to initialize "code"
4405         variable upon declaration.
4406         * Makefile.in: update dependencies; fix typo in clean rule.
4407
4408 2001-08-21  Richard Henderson  <rth@redhat.com>
4409
4410         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
4411         (merge_if_block): Handle fallout from same.
4412
4413 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4414
4415         * builtins.c (type_to_class): Fix typo in last change.
4416
4417 2001-08-21  Richard Henderson  <rth@redhat.com>
4418
4419         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
4420         ia64_asm_output_label.
4421
4422         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
4423         copy of gp while the real gp register contains garbage.
4424
4425 2001-08-21  Zack Weinberg  <zackw@panix.com>
4426
4427         * expmed.c (mode_for_extraction): New function.
4428         (store_bit_field, extract_bit_field): Use it.
4429         * expr.h: Prototype it and provide an enum for its first argument.
4430
4431         * combine.c, function.c, recog.c: Don't include insn-codes.h.
4432         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
4433         and digging through the insn_data tables.
4434         * Makefile.in: Update dependencies.
4435
4436 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4437
4438         * cppfiles.c (stack_include_file): line-map.c now handles include
4439         depth.
4440         (handle_missing_handler): Similarly.
4441         (_cpp_execute_include): Similarly.
4442         (_cpp_pop_file_buffer): Similarly.
4443         * cpphash.h (struct cpp_reader): Remove system_include_depth,
4444         buffer_stack_depth and include_depth.
4445         * cpplib.c (do_include_common): line-map.c now handles include depth.
4446         (cpp_push_buffer): Similarly.
4447         (_cpp_pop_buffer): Similarly.
4448         * cppmacro.c (builtin_macro): Update.
4449         * line-map.c (init_line_maps): Set depth.
4450         (add_line_map): Increment "used" earlier.  Update and use the
4451         include depth.
4452         (trace_include): Use the include depth.
4453         * line-map.h (struct line_maps): New member depth.
4454
4455 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4456
4457         * cppfiles.c (stack_include_file): Don't handle -H here.
4458         * cppinit.c (cpp_start_read): Set include tracing after
4459         cpp_post_options and after stacking the main file.
4460         * line-map.c (trace_include): New.
4461         (init_line_maps, add_line_map): Update.
4462         * line-map.h (struct line_maps): New member trace_includes.
4463
4464 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4465
4466         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
4467         * cppfiles.c (stack_include_file): Only stack a file if there
4468         is something to do.  Return a boolean indicating whether a
4469         buffer was stacked or not.
4470         (_cpp_execute_include): Similarly.
4471         (_cpp_read_file): Similarly.
4472         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
4473
4474 2001-08-21  Sam Steingold  <sds@gnu.org>
4475
4476         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
4477         (RECACHE): keep obufp_before_macroname up to date
4478
4479 2001-08-21  Zack Weinberg  <zackw@panix.com>
4480
4481         * stmt.c: Don't include insn-codes.h.
4482         (expand_end_case): Machine specific logic moved to expr.c.
4483         No need to worry about __builtin_classify_type.
4484         (check_for_full_enumeration_handling, emit_case_nodes):
4485         Kill #if 0 blocks.
4486
4487         * builtins.o (expand_builtin_classify_type): Split up so code
4488         can be shared with fold_builtin_classify_type.
4489         (type_to_class, fold_builtin_classify_type): New functions.
4490         (fold_builtins): Handle __builtin_classify_type.
4491
4492         * expr.c (do_tablejump): Now static.
4493         (case_values_threshold, try_casesi, try_tablejump): New;
4494         code mostly from stmt.c (expand_end_case).
4495         (expr.h): Update prototypes.
4496
4497         * Makefile.in (stmt.o): Update dependencies.
4498
4499 2001-08-21  Will Cohen  <wcohen@redhat.com>
4500
4501         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
4502         declaration of variable i.
4503         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
4504         declaration of variable i.
4505
4506 2001-08-21  Richard Henderson  <rth@redhat.com>
4507
4508         * crtstuff.c: Fix thinko last change.  Move list tails to start
4509         of CRT_END section.  Tidy ifdefs.
4510         (__EH_FRAME_BEGIN__): Always static for ELF.
4511         (__do_global_ctors_1): Rename from __frame_dummy.
4512         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
4513         name change; don't hide __EH_FRAME_BEGIN__.
4514
4515 2001-08-21  Richard Henderson  <rth@redhat.com>
4516
4517         * gdbinit.in: Move break on exit after break on fancy_abort.
4518
4519         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
4520         sized types.
4521
4522 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4523
4524         * cpphash.h (_cpp_push_next_buffer): New.
4525         * cppinit.c (do_includes): Remove.
4526         (push_include, free_chain, _cpp_push_next_buffer): New.
4527         (cpp_start_read): Use them to rework command line option handling.
4528         (cpp_handle_option): Combine handling of -include and -imacros.
4529         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
4530         appropriate.  Always insert missing \n at EOF.
4531         * cpplib.c (start_directive): Get the directive position right.
4532         * cppmain.c (cb_file_change): Always print the first line, unless
4533         preprocessed.
4534
4535 2001-08-20  Andreas Jaeger  <aj@suse.de>
4536
4537         * profile.c (compute_branch_probabilities): Remove extra new-line
4538         in error message.
4539         * flow.c (verify_flow_info): Likewise.
4540
4541 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
4542
4543         * basic-block.h (basic_block): Add new field 'flags'.
4544         (BB_REACHABLE): Define.
4545         (expunge_block): Declare.
4546         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
4547         (EXIT_BLOCK_PTR): Ditto.
4548         (expunge_block): Remove static declaration.
4549         (cleanup_cfg): Clear bb->aux on every basic block.
4550         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
4551         computing reachability.
4552         (delete_unreachable_blocks): Delete block b if b->flags has
4553         BB_REACHABLE unset.
4554
4555 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
4556
4557         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
4558
4559 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4560
4561         * sparc.c (sparc_variable_issue): Fix typo in last change.
4562
4563 2001-08-20  Richard Henderson  <rth@redhat.com>
4564
4565         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
4566
4567 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4568
4569         * pa.h (RETURN_IN_MEMORY): Improve comment.
4570
4571 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
4572
4573         * doc/invoke.texi (Profiling options): Clarify the interactions
4574         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
4575
4576 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
4577
4578         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
4579         command.
4580
4581 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4582
4583         * gcc.c (make_relative_prefix): Allocate a sufficiently large
4584         buffer.
4585
4586 2001-08-20  Richard Henderson  <rth@redhat.com>
4587
4588         * final.c (end_final): Fix typo last change.
4589
4590 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4591
4592         * cppinit.c (init_standard_includes): The returned buffer
4593         is already malloc-ed.
4594         * gcc.c (add_prefix): Similarly.
4595         * prefix.c (translate_name): Update to support clear buffer
4596         ownership rules.
4597         (update_path): Similarly.  Be sure to free any newly allocated
4598         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
4599         (tr): New function.
4600         * prefix.h (update_path): Update prototype and document.
4601         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
4602         up and update to new buffer ownership rules.
4603         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
4604
4605 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
4606
4607         * final.c (compute_alignments): New function.
4608         (init_insn_lengths): Do not care label_align.
4609         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
4610         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
4611         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
4612         (shorted_branches): Realloc label_align array; do
4613         not call init_insn_lengths; Do not care about loop alignments.
4614         * output.h (compute_alignments): Declare.
4615         * toplev.c (rest_of_compilation): Call compute_alignments.
4616         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
4617
4618         * predict.c (block_info_def): Add npredecesors, remove nvisited;
4619         change visited to tovisit.
4620         (propagate_freq): Use faster traversing algorithm.
4621         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
4622         to tovisit; reverse meaning.
4623
4624         * predict.c (struct block_info_def): Remove nvisited.
4625         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
4626         (estimate_bb_frequencies): Call mark_dfs_back_edges.
4627
4628 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
4629
4630         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
4631         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
4632         (TARGET_FUSED_MADD): New.
4633         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
4634         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
4635         the multiply-add instructions.
4636
4637 2001-08-19  Richard Henderson  <rth@redhat.com>
4638
4639         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
4640         is aligned to pointer size.
4641
4642 2001-08-19  Richard Henderson  <rth@redhat.com>
4643
4644         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
4645         display markers during final schedule.
4646
4647 2001-08-19  Richard Henderson  <rth@redhat.com>
4648
4649         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
4650
4651 2001-08-19  Richard Henderson  <rth@redhat.com>
4652
4653         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
4654         in the same string.
4655         (ASM_NAME_TO_STRING): Remove.
4656         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
4657         in the same string.  Remove support for expressions.
4658
4659 2001-08-19  Richard Henderson  <rth@redhat.com>
4660
4661         * config/i386/i386.md (tablejump): Make an expander; handle
4662         pic relative addressing here.
4663         (tablejump_1): Rename from tablejump_pic.
4664         (casesi): Remove.
4665
4666 2001-08-19  Richard Henderson  <rth@redhat.com>
4667
4668         * regclass.c (fix_register): Fix typo.
4669
4670 2001-08-18  Richard Henderson  <rth@redhat.com>
4671
4672         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
4673         (struct _Unwind_Context): Expand br_loc to hold it.
4674         (uw_frame_state_for): Handle leaf functions better.
4675         (uw_update_reg_address): Update for br_loc change.
4676
4677 2001-08-18  Richard Henderson  <rth@redhat.com>
4678
4679         * crtstuff.c: Move list heads before code that uses them.
4680         (__JCR_LIST__): Remove initial null.
4681         (frame_dummy, __frame_dummy): Do java registration here ...
4682         (__do_global_ctors_aux): ... not here.
4683
4684         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
4685         (__do_global_dtors_aux): Update to match.
4686         (__JCR_LIST__, __do_jv_register_classes): New.
4687         (.init): Call it.
4688         * config/ia64/crtend.asm (__JCR_END__): New.
4689         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
4690         instead of an indirect LTOFF22 reloc.
4691
4692 2001-08-18  Richard Henderson  <rth@redhat.com>
4693
4694         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
4695         * regclass.c (init_reg_sets_1): Fix typo.
4696         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
4697         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
4698         (ia64_compute_frame_size): Make ar.unat live when in use.
4699         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
4700         for ar.pfs; remove ar.unat handling.
4701         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
4702         call-saved.
4703         (PREDICATE_CODES): Add ar_pfs_reg_operand.
4704         * config/ia64/ia64-protos.h: Update decls.
4705         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
4706         (sibcall_pic): Likewise.
4707
4708 2001-08-18  Richard Henderson  <rth@redhat.com>
4709
4710         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
4711         pred_rel_mutex when searching for insn_group_barrier.
4712         * config/ia64/ia64.md (cycle_display): Combine the expander
4713         and insn patterns.
4714
4715         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
4716         bit before asm as needed.
4717
4718 2001-08-18  Richard Henderson  <rth@redhat.com>
4719
4720         * timevar.def (TV_MACH_DEP): New.
4721         * toplev.c (rest_of_compilation): Use it.
4722         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
4723
4724 2001-08-18  Zack Weinberg  <zackw@panix.com>
4725
4726         * unwind-dw2.c (execute_stack_op): Add default aborts to
4727         the inner switches to prevent warnings.
4728
4729 2001-08-18  Richard Henderson  <rth@redhat.com>
4730
4731         * timevar.h (struct timevar_time_def): Change element type to float.
4732         (ticks_to_msec, clocks_to_msec): Likewise.
4733         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
4734         (get_time): Likewise.
4735         (timevar_print): Adjust zero check and printing to match.
4736
4737 2001-08-18  Zack Weinberg  <zackw@panix.com>
4738
4739         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
4740         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
4741         Eliminate overfull or underfull hboxes.
4742
4743 2001-08-18  Zack Weinberg  <zackw@panix.com>
4744
4745         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
4746
4747 2001-08-18  Zack Weinberg  <zackw@panix.com>
4748
4749         * haifa-sched.c: Convert to target hooks.  Macros replaced
4750         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
4751         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
4752         MD_SCHED_FINISH, and HAVE_cycle_display.
4753         * target-def.h (TARGET_SCHED_ADJUST_COST,
4754         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
4755         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
4756         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
4757         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
4758         New hook #defines to be overridden.
4759         (TARGET_SCHED): Bring them all together.
4760         (TARGET_INITIALIZER): Update.
4761         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
4762         instead of 'struct rtx_def *' throughout.
4763         (struct sched): New set of hooks for the scheduler.
4764         * Makefile.in (haifa-sched.o): Depend on target.h.
4765         * doc/tm.texi: Document the new scheduler hooks, together in
4766         their own section, instead of scattered around.
4767         Fix a bunch of underfull/overfull hboxes.
4768
4769         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
4770         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
4771         sparc.h: Don't define any of the old scheduler macros.
4772
4773         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
4774         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
4775         sparc.c: Create hook functions from code extracted from
4776         corresponding target header, or make existing hooks static, as
4777         appropriate.  Set the appropriate entries in targetm.
4778
4779         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
4780         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
4781         rs6000-protos.h, s390-protos.h, sparc-protos.h:
4782         Remove prototypes for functions which are now static.
4783
4784         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
4785         related gunk; the Haifa scheduler is now the only choice.
4786
4787 2001-08-18  Zack Weinberg  <zackw@panix.com>
4788
4789         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
4790         * genopinit.c: Put floating point divide insns in sdiv_optab.
4791         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
4792         * config/gofast.h, config/c4x/c4x.h,
4793         config/ia64/hpux_longdouble.h, config/mips/mips.h,
4794         config/pa/long_double.h, config/rs6000/sysv4.h,
4795         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
4796         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
4797         (init_optabs): Use init_optabv for overflow-trapping optabs.
4798         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
4799         cmp_optab RTX codes so have_insn_for can find them.
4800
4801         * optabs.c (expand_simple_binop, expand_simple_unop,
4802         have_insn_for, gen_sub3_insn): New interfaces.
4803         * expr.h: Prototype new functions.
4804         (enum optab_methods): Move here from optabs.h.
4805
4806         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
4807         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
4808         Use new functions instead of working directly with optabs.
4809         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
4810         unroll.c: Don't include optabs.h.
4811         * caller-save.c, combine.c, function.c, stmt.c: Just include
4812         insn-codes.h, not optabs.h.
4813         * Makefile.in: Update dependencies.
4814
4815         * combine.c (make_compound_operation, simplify_comparison):
4816         Fix typos testing for this or that instruction.
4817
4818 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
4819
4820         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
4821         generating libgcc.a.
4822
4823 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4824
4825         * except.c (TYPE_HASH): Delete.
4826
4827         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
4828         HOST_WIDE_INT.
4829
4830         * tree.c (TYPE_HASH): Delete.
4831
4832         * tree.h (TYPE_HASH): Define.
4833
4834 2001-08-18  Graham Stott  <grahams@redhat.com>
4835
4836         * config/mips/mips.md (adddi3_internal_2+1): Remove contraints from
4837         define_split.
4838         (adddi3_internal_2+2): Likewise.
4839         (eh_set_lr_di+1): Likewise.
4840
4841 2001-08-17  Richard Henderson  <rth@redhat.com>
4842
4843         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
4844         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
4845         * dwarf2asm.c: ... here.
4846         * dwarfout.c: Remove them.
4847
4848         * varasm.c (assemble_integer): Add align parameter.
4849         (assemble_real, output_constant, output_constructor): Likewise.
4850         * output.h: Update decls.
4851         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
4852         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
4853         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
4854         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
4855         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
4856         Update all callers.
4857
4858         * final.c (end_final): Abort profile block generation if we
4859         havn't layed it out properly.
4860         * output.h (assemble_eh_integer): Remove stale decl.
4861         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
4862         (min_align): New.
4863         (assemble_integer): Handle unaligned data.
4864         (assemble_real): Abort on unaligned data.
4865         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
4866         anything useful.
4867         (default_dtor_section_asm_out_destructor): Use assemble_align.
4868         (default_named_section_asm_out_constructor): Likewise.
4869         (default_ctor_section_asm_out_constructor): Likewise.
4870         * config/darwin.c (machopic_asm_out_constructor): Likewise.
4871         (machopic_asm_out_destructor): Likewise.
4872         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
4873         (nextstep_asm_out_destructor): Likewise.
4874         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
4875         (vms_asm_out_destructor): Likewise.
4876
4877 2001-08-17  Richard Henderson  <rth@redhat.com>
4878
4879         * config/mips/iris6.h (TARGET_IRIX6): New.
4880         (current_section_name, current_section_flags): New.
4881         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
4882         (MAX_OFILE_ALIGNMENT): New.
4883         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
4884         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
4885         (copy_file_data): Split out from
4886         (mips_asm_file_end): ... here.
4887         (mips_asm_file_start): Remove extra .section directive.  Use
4888         tmpfile instead of mips_make_temp_file.
4889         (mips_unique_section): Use const char * as needed for warnings.
4890         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
4891         re-add align parameter.
4892         (iris6_asm_named_section): New.
4893         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
4894         (iris6_asm_output_align, iris6_section_align_1): New.
4895         (iris6_asm_file_start, iris6_asm_file_end): New.
4896         * config/mips/mips-protos.h: Update decls.
4897
4898 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
4899
4900         * doc/install.texi (Install GCC): Add links to build status pages.
4901         (Specific): Ditto.
4902         (Final install): Ditto; request updates for specific info
4903
4904 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4905
4906         * cpperror.c (print_location):  Don't take a file name; use the
4907         line map instead.
4908         (_cpp_begin_message): Similarly.
4909         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
4910         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
4911         (cpp_pedwarn_with_file_and_line): Remove.
4912         * cppfiles.c (stack_include_file): Update; set filename to stdin
4913         here when appropriate.
4914         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
4915         (_cpp_begin_message): Don't take a file name.
4916         * cppinit.c: Add comment.
4917         * cpplex.c: Fix end-of-directive indicator.
4918         * cpplib.c: Don't include intl.h.
4919         (run_directive, do_diagnostic): Update.
4920         (do_line): Update to not use nominal_fname.
4921         (cpp_push_buffer): Don't take a filename.
4922         * cpplib.h (struct ht): Remove.
4923         (cpp_push_buffer): Don't take a filename.
4924         (cpp_pedwarn_with_file_and_line): Remove.
4925         * cppmacro.c (struct cpp_macro): Remove file.
4926         (builtin_macro): Update.
4927         (_cpp_create_definition): Update.
4928         * cppmain.c: Correct comment.
4929         * fix-header.c (read_scan_file): Update.
4930
4931 2001-08-17  Kazu Hirata  <kazu@hxi.com>
4932
4933         * sbitmap.c: Fix comment formatting.
4934         * sched-deps.c: Likewise.
4935         * sibcall.c: Likewise.
4936         * simplify-rtx.c: Likewise.
4937         * ssa.c: Likewise.
4938         * ssa-ccp.c: Likewise.
4939         * stor-layout.c: Likewise.
4940         * timevar.c: Likewise.
4941         * toplev.c: Likewise.
4942         * unwind-dw2.c: Likewise.
4943         * unwind-dw2-fde.c: Likewise.
4944         * varasm.c: Likewise.
4945
4946 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4947
4948         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
4949         or larger than an integer in memory.
4950
4951 2001-08-17  Zack Weinberg  <zackw@panix.com>
4952
4953         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
4954         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
4955         * rtl.h: Don't forward-declare union tree_node here.  Don't
4956         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
4957         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
4958         and tree respectively.
4959         * tree.h: Don't forward-declare struct rtx_def here.  Don't
4960         typedef tree here.  Change all uses of struct rtx_def *,
4961         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
4962         and tree respectively.
4963
4964 2001-08-17  Richard Henderson  <rth@redhat.com>
4965
4966         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
4967         config/mips/openbsd.h: Fix typos last change.
4968
4969 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4970
4971         * doc/invoke.texi (Optimize Options): The default for
4972         -finline-limit is 600.
4973
4974 2001-08-17  Richard Henderson  <rth@redhat.com>
4975
4976         * varasm.c (text_section): Allow TEXT_SECTION to override the
4977         printing of TEXT_SECTION_ASM_OP.
4978         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
4979         (DATA_SECTION, BSS_SECTION): Remove.
4980         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
4981         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
4982         Rename from s/_NAME//.
4983         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
4984         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
4985         (TEXT_SECTION): ... here.  New.
4986         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
4987         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
4988         * config/mips/openbsd.h: Likewise.
4989         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
4990         (mips_asm_file_end): Likewise test.
4991         (mips_output_function_epilogue): Likewise.  Switch back to data
4992         section after emitting the function.
4993
4994         * doc/tm.texi (Sections): Document TEXT_SECTION.
4995
4996 2001-08-17  Richard Henderson  <rth@redhat.com>
4997
4998         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
4999         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
5000
5001 2001-08-17  Richard Henderson  <rth@redhat.com>
5002
5003         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
5004         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
5005         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
5006         Add aligned attribute.
5007
5008 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
5009
5010         * config/sh/sh.md: Add modes to unspecs in first insn to match
5011         those in the second.
5012
5013         * Makefile.in: Fix collect2 copy for Cygwin.
5014
5015 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
5016
5017         Install the proper patch.
5018         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
5019         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
5020         (expand_function_start): Likewise.
5021         * stmt.c (expand_decl): Likewise.
5022         * varasm.c (make_decl_rtx): Likewise.
5023
5024 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
5025
5026         * final.c: Undo my previous accidental checkin.
5027         * output.h: Likewise.
5028         * tm.texi: Likewise.
5029
5030 2001-08-16  Richard Henderson  <rth@redhat.com>
5031
5032         * varasm.c (named_section_flags): Remove align parameter.
5033         * varasm.c, dwarf2out.c: Update all callers.
5034         * output.h: Update prototypes.
5035
5036         * target.h (target.asm_out.named_section): Remove align parameter.
5037         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
5038         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
5039         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
5040         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
5041         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
5042
5043         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
5044         (get_named_section_flags, set_named_section_flags): New.
5045         (named_section_flags): Use them.
5046         (named_section): Do decl vs section flags check here...
5047         (default_section_type_flags): ... not here.
5048         (init_varasm_once): Create in_named_htab.
5049         (resolve_unique_section): Mark reloc unused.
5050
5051 2001-08-16  Richard Henderson  <rth@redhat.com>
5052
5053         * varasm.c (force_const_mem): Keep pool alignment in bits.
5054         (output_constant_pool): Use assemble_align.
5055
5056 2001-08-16  Zack Weinberg  <zackw@panix.com>
5057
5058         * doc/tm.texi: Remove extra @table command.
5059
5060 2001-08-16  Zack Weinberg  <zackw@panix.com>
5061
5062         * final.c (shorten_branches): Clear the end of the label_align
5063         array only if we made it larger.  Break up messy expressions
5064         for clarity.
5065
5066         * diagnostic.c (internal_error): Check for error recursion
5067         before doing ICE suppression.
5068
5069         * timevar.c: Timing variables now count in milliseconds.
5070         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
5071         (get_time): Not here.
5072         (timevar_print): Don't print any timer whose user, cpu, and
5073         wall times are all zero as displayed.
5074         * timevar.h: Update comment aboout units.  Make timevar
5075         counters unsigned.
5076
5077 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
5078
5079         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
5080         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
5081         (expand_function_start): Likewise.
5082         * stmt.c (expand_decl): Likewise.
5083         * varasm.c (make_decl_rtx): Likewise.
5084
5085 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
5086
5087         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
5088         (finalize_record_size): Don't set TYPE_USER_ALIGN.
5089
5090 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5091
5092         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
5093         variables.
5094
5095 2001-08-16  Andreas Jaeger  <aj@suse.de>
5096
5097         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
5098         prototype.
5099
5100 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
5101
5102         * rtl.h (only_sets_cc0_p): New prototype.
5103         * jump.c (sets_cc0_p): Handle INSN.
5104         (only_sets_cc0_p): New function.
5105         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
5106         (tidy_fallthru_edge): Likewise.
5107         * integrate.c (copy_insn_list): Likewise.
5108         * unroll.c (unroll_loop): Likewise.
5109         (copy_loop_body): Likewise.
5110
5111 2001-08-15  Jason Eckhardt  <jle@redhat.com>
5112
5113         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
5114
5115 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
5116
5117         * predict.c (struct block_info_def): Remove nvisited.
5118         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
5119         (estimate_bb_frequencies): Call mark_dfs_back_edges.
5120
5121         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
5122         (ix86_adjust_cost): Teach scheduler that latency to load operand can
5123         be masked.
5124
5125 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
5126
5127         * predict.def: Update hitrates.
5128
5129 2001-08-15  Richard Henderson  <rth@redhat.com>
5130
5131         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
5132
5133 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
5134
5135         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
5136         note from its associated jump.
5137
5138 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
5139
5140         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
5141         also on 64-bit s390x targets.
5142
5143 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
5144
5145         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
5146         function.
5147         (arm_expand_prologue): Handled nested functions which take a
5148         variable argument list.
5149         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
5150         macro with an invocation of
5151         arm_compute_initial_elimination_offset.
5152         * config/arm/arm-protos.h: Prototype
5153         arm_compute_initial_elimination_offset.
5154
5155 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5156
5157         * doc/install.texi (Specific, avr): Fix markup.
5158         (Specific, c4x): Ditto.
5159
5160 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5161
5162         * predict.c (dump_prediction): Change `bool' parameter to `int'.
5163
5164 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
5165
5166         * Makefile.in (OBJS): Add rtl-error.o
5167         (rtl-error.o): New rule.
5168         (diagnostic.o): Adjust dependency.
5169         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
5170         error_for_asm, _fatal_insn, _fatal_insn_not_found,
5171         warning_for_asm): Move to...
5172         rtl-error.c: ...here.  New file.
5173
5174 2001-08-14  Richard Henderson  <rth@redhat.com>
5175
5176         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
5177         if USING_SJLJ_EXCEPTIONS.
5178
5179 2001-08-14  Steve Ellcey <sje@cup.hp.com>
5180
5181         * tlink.c (scan_linker_output): Check string for unsatisfied in
5182         addition to undefined and unresolved.
5183
5184 2001-08-14  Graham Stott  <grahams@redhat.com>
5185
5186         * libgcc2.c (*): Replace EH_FRAME_SECTION with
5187         EH_FRAME_SECTION_NAME.
5188
5189 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
5190
5191         * genattrtab.c (simplify_test_exp_in_temp): New function.
5192         (simplify_test_exp): Avoid explicit use of temporary obstack.
5193         (simplify_cond, insert_right_side, evaluate_eq_attr,
5194         simplify_and_tree, simplify_or_tree, eliminate_known_true):
5195         Use simplify_test_exp_in_temp.
5196         (optimize_attrs): Iterate until expression stabilizes.
5197
5198 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
5199
5200         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
5201         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
5202
5203 2001-08-13  Richard Henderson  <rth@redhat.com>
5204
5205         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
5206         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
5207         * config/arm/conix-elf.h: Likewise.
5208
5209 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
5210
5211         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
5212         in gcc.c.
5213         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5214
5215         * gcse.c (hash_scan_set): Expressions that are set as part of
5216         jump instructions are not available.
5217
5218 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
5219
5220         * config/s390/s390.c (print_operand, s390_function_prologue,
5221         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
5222
5223 2001-08-13  Richard Henderson  <rth@redhat.com>
5224
5225         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
5226         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
5227         * doc/tm.texi (Exception Region Output): Document it.
5228
5229 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
5230
5231         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
5232         DWARF2 instead of stabs by default.
5233
5234 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
5235
5236         * config/rs6000/rs6000.c: Include optabs.h.
5237
5238 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
5239
5240         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
5241         save/restore routines.
5242         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
5243
5244 2001-08-13  Andreas Jaeger  <aj@suse.de>
5245
5246         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
5247         the english is correct.
5248
5249 2001-08-13  Zack Weinberg  <zackw@panix.com>
5250
5251         * expr.h: Split out optab- and libfunc-related code to...
5252         * optabs.h, libfuncs.h: ... these new headers.
5253
5254         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
5255         (OPTABS_H): New.
5256         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
5257         dependencies.
5258         * mkconfig.sh: Don't include insn-codes.h from config.h.
5259
5260         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
5261         enum insn_code is available.  Move reload_in_optab and
5262         reload_out_optab array declarations to optabs.h.
5263         * regmove.c (gen_add3_insn): Move to optabs.c, export from
5264         there, prototype in expr.h.
5265         * gencodes.c: Cleanup: zap global variables, don't use
5266         printf where puts will do, don't bother defining MAX_INSN_CODE
5267         which nothing uses, let CODE_FOR_nothing get its value implicitly.
5268
5269         * genemit.c, genopinit.c: Include optabs.h in generated file.
5270         * genoutput.c: Include insn-codes.h in generated file.
5271         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
5272         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
5273         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
5274         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
5275         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
5276         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
5277         Include optabs.h.
5278         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
5279         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
5280         config/m88k/m88k.c, config/sparc/sparc.c:
5281         Include libfuncs.h.
5282         * reload.c: Include expr.h and optabs.h before reload.h.
5283         * config/alpha/alpha.c: Include tree.h before reload.h.
5284         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
5285         and reload.h in that order.
5286         * config/sparc/sparc.c: Include debug.h.
5287         * recog.c: Include insn-codes.h.
5288
5289 2001-08-13  Andreas Jaeger  <aj@suse.de>
5290
5291         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
5292         s390*linux.
5293
5294 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
5295
5296         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
5297         * gcc.c (init_spec): Fix typo in comment.
5298         * varasm.c (data_section): Fix typo in comment.
5299
5300 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
5301
5302         * predict.c (dump_prediction): New argument "USED".
5303         (combine_predictions_for_insn): Determine the used heuristics,
5304         output the case no heuristic applied.
5305         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
5306
5307 2001-08-13  Andreas Jaeger  <aj@suse.de>
5308
5309         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
5310         register %rip.
5311
5312 2001-08-13  Kazu Hirata  <kazu@hxi.com>
5313
5314         * jump.c: Fix formatting.
5315
5316 2001-08-13  Kazu Hirata  <kazu@hxi.com>
5317
5318         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
5319         length.
5320
5321 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
5322
5323         * loop.c (check_dbra_loop): Use condjump_label to compute
5324         jump_label.
5325
5326         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
5327         to better document the files they're in.
5328
5329 2001-08-12  Zack Weinberg  <zackw@panix.com>
5330
5331         * recog.h (struct insn_operand_data): Shrink 'mode' field
5332         to 16 bits.
5333
5334 2001-08-12  Kazu Hirata  <kazu@hxi.com>
5335
5336         * gcc.c: Fix comment formatting.
5337         * gccspec.c: Likewise.
5338         * gcov.c: Likewise.
5339         * gcse.c: Likewise.
5340         * genemit.c: Likewise.
5341         * gengenrtl.c: Likewise.
5342         * genrecog.c: Likewise.
5343         * gensupport.c: Likewise.
5344         * ggc-page.c: Likewise.
5345         * global.c: Likewise.
5346         * graph.c: Likewise.
5347         * ifcvt.c: Likewise.
5348         * integrate.c: Likewise.
5349         * lcm.c: Likewise.
5350         * libgcc2.c: Likewise.
5351         * loop.c: Likewise.
5352         * mbchar.c: Likewise.
5353         * optabs.c: Likewise.
5354         * predict.c: Likewise.
5355         * prefix.c: Likewise.
5356         * profile.c: Likewise.
5357         * protoize.c: Likewise.
5358         * real.c: Likewise.
5359         * recog.c: Likewise.
5360         * regclass.c: Likewise.
5361         * regmove.c: Likewise.
5362         * reg-stack.c: Likewise.
5363         * reload1.c: Likewise.
5364         * resource.c: Likewise.
5365         * rtlanal.c: Likewise.
5366         * rtl.c: Likewise.
5367
5368 2001-08-12  Kazu Hirata  <kazu@hxi.com>
5369
5370         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
5371         a tree representing a constant is passed to the macro.
5372
5373 2001-08-12  Richard Henderson  <rth@redhat.com>
5374
5375         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
5376         (rs6000_elf_asm_out_destructor): New.
5377         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
5378         (DTORS_SECTION_ASM_OP): Remove.
5379         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5380         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
5381
5382 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
5383
5384         Revert:
5385         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5386         * gcc.c (set_collect_gcc_options): New function, split out from
5387         main.
5388         Ignore elided switches.
5389         (do_spec_1): Invoke before executing command.
5390         (set_input): Export.
5391         Move declaration ...
5392         * gcc.h (set_input): ... here.
5393         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
5394         file.
5395
5396 2001-08-12  Richard Henderson  <rth@redhat.com>
5397
5398         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
5399         thinko wrt TARGET_RELOCATABLE.
5400
5401 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5402
5403         * fix-header.c (cb_file_change): Update prototype.
5404
5405 2001-08-11  Zack Weinberg  <zackw@panix.com>
5406
5407         * toplev.c (set_float_handler): Make static.
5408         * toplev.h: Don't prototype set_float_handler.
5409
5410         * simplify-rtx.c: Don't include setjmp.h.
5411         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
5412         New functions.
5413         (simplify_unary_operation, simplify_binary_operation): Use them,
5414         via do_float_handler.
5415
5416         * fold-const.c: Don't include setjmp.h.
5417         (exact_real_inverse_1): New function.
5418         (exact_real_inverse): Use it, via do_float_handler.
5419
5420         * varasm.c: Don't include setjmp.h.
5421         (assemble_real_1): New function.
5422         (assemble_real): Use it, via do_float_handler.
5423         Call internal_error if we get a trap here.
5424
5425         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
5426         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
5427
5428 2001-08-11  Zack Weinberg  <zackw@panix.com>
5429
5430         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
5431         STACK_BOUNDARY if not already defined.
5432
5433         * calls.c, function.c, reload1.c, explow.c: Don't default
5434         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
5435         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
5436
5437         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
5438         to run-time test.
5439
5440         * doc/tm.texi: Document that STACK_BOUNDARY is required;
5441         clarify difference between it and PREFERRED_STACK_BOUNDARY.
5442
5443 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5444
5445         * cppmacro.c (enter_macro_context): Push macro expansions even
5446         if empty.
5447
5448 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5449
5450         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
5451         (rs6000_elf_section_type_flags): Actually return a value.
5452
5453 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
5454
5455         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
5456         Clean up code: add missing comments and prototypes, fix warnings,
5457         remove obsolete code, fix spacing to conform to coding style.
5458
5459 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
5460
5461         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
5462         and TARGET_ASM_CLOSE_PAREN.
5463         (regclass_map): CC register belongs to class NO_REGS.
5464         (legitimize_pic_address): Don't generate unnecessary moves
5465         (to avoid confusing loop optimization).
5466         (check_and_change_labels): Replace jump_long by indirect_jump.
5467         (s390_final_chunkify): Don't start a new literal pool on section
5468         switch in 64-bit code.
5469         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
5470
5471         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
5472         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
5473         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
5474         modes correctly.
5475         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
5476         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
5477         (CONST_COSTS): Fixed incorrect costs.
5478
5479         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
5480         Use emit_jump instead of emit_jump_insn (gen_jump).
5481         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
5482         (to avoid confusing flow analysis).
5483         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
5484         (casesi, casesi_jump): New.
5485         (jump_long): Removed.  Functionality merged into indirect_jump.
5486         (indirect_jump): Accept address_operand, not just register_operand.
5487         (cjump_long, icjump_long): Use same logic as indirect_jump.
5488         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
5489         Fixed broken setjmp/longjmp handling.
5490         (do_builtin_setjmp_setup): Removed.
5491
5492         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
5493         broken GNU as versions that don't accept .quad with large
5494         negative values.  Use hexadecimal output instead.
5495         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
5496         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
5497         FUNCTION_EPILOGUE): Removed.  Now in targetm.
5498
5499         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
5500
5501         * config/s390/fixdfdi.h: Add missing copyright statement.
5502         Fix type conflicts on 64-bit.  Add missing SFmode routines.
5503
5504         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
5505         email address.
5506
5507 2001-08-11  Richard Henderson  <rth@redhat.com>
5508
5509         * rtl.h (REG_EH_RETHROW): Remove.
5510         * rtl.c (reg_note_name): Update.
5511         * combine.c (distribute_notes): Don't check for it.
5512
5513 2001-08-11  Richard Henderson  <rth@redhat.com>
5514
5515         * combine.c (distribute_notes): Place REG_SETJMP.
5516
5517 2001-08-11  Richard Henderson  <rth@redhat.com>
5518
5519         * doc/extend.texi (Arrays and pointers implementation): Discourage
5520         relying on sign-extension of pointers.
5521
5522 2001-08-11  H.J. Lu <hjl@gnu.org>
5523
5524         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
5525         in_dtors.
5526         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
5527         RDATA_SECTION_ASM_OP.
5528
5529 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5530
5531         * doc/install.texi (Specific, c4x): Fix cross-reference to the
5532         main manual to work both for info and HTML versions.
5533
5534 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5535             Matt Kraai <kraai@alumni.carnegiemellon.edu>
5536
5537         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
5538         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
5539         (struct cpp_pool): New member first.
5540         * cppinit.c (append_include_chain): Plug memory leaks.
5541         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
5542         Allocate pragma structures from the (aligned) macro pool to
5543         avoid leaking memory.
5544         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
5545         so we don't leak memory.
5546         * hashtable.c (ht_destroy): New.
5547         * hashtable.h (ht_destroy): New.
5548
5549 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5550             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5551
5552         * c-lex.c (map): Make const.
5553         (cb_file_change): Update for callback passing a line map.
5554         Don't assume we have a previous map.  Remove sanity check
5555         about popping too many files.
5556         * cpperror.c (print_location): Make map const.
5557         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
5558         (cpp_make_system_header): Similarly.
5559         (search_from): Similarly.
5560         (_cpp_execute_include): Don't remember where we came from.
5561         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
5562         (struct cpp_reader): Make map const.
5563         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
5564         * cpplib.c (do_line): Update; line maps now hold sysp.
5565         (cpp_push_buffer): Similarly.
5566         (_cpp_do_file_change): Similarly; callback with map instead.
5567         (cpp_get_line_maps): Constify return value.
5568         (_cpp_pop_buffer): Update.
5569         * cpplib.h (struct cpp_file_change): Remove.
5570         (struct cpp_callbacks): Update.
5571         (cpp_get_line_maps): Constify return value.
5572         * cppmacro.c (_cpp_create_definition): Update.
5573         * cppmain.c (struct printer): Constify map.
5574         (maybe_print_line): Similarly.
5575         (print_line): Similarly.  Deduce flags 1 and 2 here.
5576         (cb_file_change): Update.
5577         * line-map.c (free_line_maps): Warn regardless.
5578         (add_line_map): Return pointer to const.  When passed NULL to_file
5579         with LC_LEAVE, use the obvious values for the return point so the
5580         caller doesn't have to figure them out.
5581         (lookup_line): Return pointer to const.
5582         (print_containing_files): Take pointer to const.
5583         * line-map.h (struct line_map): New members reason, sysp.
5584         (add_line_map): Return pointer to const.
5585         (lookup_line): Similarly.
5586         (print_containing_files): Take pointer to const.
5587
5588 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
5589             Richard Henderson  <rth@redhat.com>
5590
5591         * regmove.c (regmove_optimize): Avoid setting a register twice in
5592         a parallel set.
5593
5594 2001-08-10  Richard Henderson  <rth@redhat.com>
5595
5596         * doc/extend.texi (Arrays and pointers implementation): Document
5597         behavior of pointer/integer conversion.
5598
5599 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
5600
5601         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
5602
5603 2001-08-10  Richard Henderson  <rth@redhat.com>
5604
5605         * doc/extend.texi (C Implementation): New chapter.
5606         * doc/gcc.texi (Top): Link it in.
5607
5608 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
5609
5610         * doc/install.texi (Specific): Fix CVS merge botch.
5611
5612 2001-08-10  Richard Henderson  <rth@redhat.com>
5613
5614         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
5615         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
5616
5617 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
5618
5619         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
5620         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
5621         this macro is now required.
5622
5623         * cselib.c (cselib_process_insn), flow.c (propagate_block),
5624         loop.c (find_and_verify_loops), reload.c (reload): Check
5625         for rtx code of CALL_INSN, not CALL, when deciding if we
5626         need to check for REG_SETJMP note.
5627
5628         * gcse.c (compute_hash_table, compute_store_table): Update
5629         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
5630         logic.
5631
5632         * config/avr/avr.c: Fix typo.
5633         * config/convex/convex.c (expand_movstr): Use adjust_address.
5634         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
5635         variable.
5636         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
5637         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
5638         Fix typo.
5639         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
5640         Do define STACK_BOUNDARY.
5641         * config/i370/i370.c: Include expr.h.
5642         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
5643         config/pa/som.h, config/v850/v850.h: Take in_ctors and
5644         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
5645         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
5646         * config/m88k/m88k.c: Include c-tree.h after expr.h.
5647         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
5648         * config/romp/romp.c: Include expr.h after tree.h.
5649         Include toplev.h.
5650         (output_fpop): Use xmalloc, not oballoc.
5651         * config/we32k/we32k.c: Include expr.h.
5652
5653 2001-08-10  Kazu Hirata  <kazu@hxi.com>
5654
5655         * config/h8300/h8300.h: Fix formatting.
5656
5657 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
5658
5659         * c-common.h (RETURN_NULLIFIED_P): Lose.
5660         * c-semantics.c (genrtl_return_stmt): Don't check it.
5661
5662 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5663
5664         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
5665         (mips_annotate_frame_insn): New function.
5666         (mips_emit_frame_related_store): New function.
5667         (save_restore_insns): Don't mark instructions that set up the base
5668         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
5669         the store instructions instead.
5670         (mips_expand_prologue): If the stack size is moved into a temporary
5671         register, do not mark that move as frame-related.  Add a
5672         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
5673
5674 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5675
5676         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
5677         stack slot as unchanging if current_function_calls_eh_return.
5678
5679 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
5680
5681         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
5682         access the second half of the TFmode scratch operand.
5683
5684 2001-08-10  Anthony Green  <green@redhat.com>
5685
5686         * java/class.c (emit_register_classes): Conditionalize code on
5687         JCR_SECTION_NAME.
5688
5689 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5690
5691         * doc/install.texi (Specific, avr): Fix cross-reference to the
5692         main manual to work both for info and HTML versions.
5693
5694 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5695
5696         * stmt.c (expand_null_return_1): Remove code to generate simple returns
5697         and "use_goto" argument.
5698         (expand_null_return, expand_value_return): Update all callers.
5699         * function.c (expand_function_end): Remove code to generate simple
5700         return.
5701         * config/vax/vax.md (epilogue): New expander for function return.
5702         * doc/md.texi (epilogue): Remove "if defined".
5703
5704 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
5705
5706         * Makefile.in: Partially revert my previous change:
5707         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
5708         of the hashtab.o and safe-ctype.o rules.
5709
5710 2001-08-09  Richard Henderson  <rth@redhat.com>
5711
5712         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
5713         (USE_COLLECT2): Remove duplicate definition.
5714         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
5715         (use_collect2): Remove dead code.
5716         * configure.in (use_collect2): Remove will_use_collect2 and
5717         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
5718         * configure: Rebuild.
5719
5720         * target.h (targetm.asm_out.constructor): New.
5721         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
5722         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
5723         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
5724         * varasm.c (in_ctors, in_dtors): New.
5725         (assemble_constructor, assemble_destructor): Remove.
5726         (default_stabs_asm_out_destructor): New.
5727         (default_named_section_asm_out_destructor): New.
5728         (dtors_section, default_dtor_section_asm_out_destructor): New.
5729         (default_stabs_asm_out_constructor): New.
5730         (default_named_section_asm_out_constructor): New.
5731         (ctors_section, default_ctor_section_asm_out_constructor): New.
5732         * output.h: Update declarations.
5733         * c-decl.c (c_expand_body): Use target hooks instead of
5734         assemble_constructor and assemble_destructor.
5735         * profile.c (output_func_start_profiler): Likewise.
5736         * objc/objc-act.c (finish_objc): Likewise.
5737         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
5738         for the constructor.
5739         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
5740
5741         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
5742         (DTORS_SECTION_ASM_OP): Likewise.
5743         (__CTOR_LIST__): Use attribute section when possible.
5744         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
5745
5746         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
5747         ASM_OUTPUT_CONSTRUCTOR.
5748
5749         * config/darwin.c (machopic_asm_out_constructor): New.
5750         (machopic_asm_out_destructor): New.
5751         * config/darwin-protos.h: Update declarations.
5752         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5753         (ASM_OUTPUT_DESTRUCTOR): Remove.
5754         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5755         * config/nextstep.c (nextstep_asm_out_constructor): New.
5756         (nextstep_asm_out_destructor): New.
5757         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5758         (ASM_OUTPUT_DESTRUCTOR): Remove.
5759         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5760         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
5761         ASM_OUTPUT_*STRUCTOR.
5762         * config/i386/aix386ng.h: Likewise.
5763
5764         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
5765         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
5766         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
5767         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5768         * config/lynx.h: Likewise.
5769         * config/netware.h: Likewise.
5770         * config/psos.h: Likewise.
5771         * config/alpha/alpha-interix.h: Likewise.
5772         * config/alpha/elf.h: Likewise.
5773         * config/arc/arc.h: Likewise.
5774         * config/arm/aof.h: Likewise.
5775         * config/arm/coff.h: Likewise.
5776         * config/arm/elf.h: Likewise.
5777         * config/c4x/c4x.h: Likewise.
5778         * config/h8300/h8300.h: Likewise.
5779         * config/i386/cygwin.h: Likewise.
5780         * config/i386/djgpp.h: Likewise.
5781         * config/i386/i386-coff.h: Likewise.
5782         * config/i386/i386-interix.h: Likewise.
5783         * config/i386/sco5.h: Likewise.
5784         * config/i386/vsta.h: Likewise.
5785         * config/i386/win32.h: Likewise.
5786         * config/i960/i960-coff.h: Likewise.
5787         * config/ia64/sysv4.h: Likewise.
5788         * config/m68hc11/m68hc11.h: Likewise.
5789         * config/m68k/coff.h: Likewise.
5790         * config/m68k/mot3300.h: Likewise.
5791         * config/m88k/m88k.h: Likewise.
5792         * config/mcore/mcore-pe.h: Likewise.
5793         * config/mcore/mcore.h: Likewise.
5794         * config/mips/elf.h: Likewise.
5795         * config/mips/elf64.h: Likewise.
5796         * config/mips/iris6.h: Likewise.
5797         * config/pa/pa64-hpux.h: Likewise.
5798         * config/rs6000/sysv4.h: Likewise.
5799         * config/sh/sh.h: Likewise.
5800         * config/sparc/litecoff.h: Likewise.
5801
5802         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
5803         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
5804         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5805         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5806         (ASM_OUTPUT_DESTRUCTOR): Remove.
5807         * config/a29k/a29k.c: Move include of tree.h.
5808         * config/a29k/udi.h: Delete file.
5809         * config/alpha/alpha.c (vms_asm_out_constructor): New.
5810         (vms_asm_out_destructor): New.
5811         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
5812         (EXTRA_SECTION_FUNCTIONS): Likewise.
5813         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5814         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5815         * config/c4x/c4x.c: Move include of tree.h.
5816         * config/clipper/clipper.c (clix_asm_out_constructor): New.
5817         (clix_asm_out_destructor): New.
5818         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5819         (ASM_OUTPUT_DESTRUCTOR): Remove.
5820         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5821         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5822         (TARGET_ASM_CONSTRUCTOR): New.
5823         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
5824         (sco_asm_out_constructor): New.
5825         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
5826         * config/i386/svr3gas.h: Remove stack grows up code.
5827         Remove code duplicated from i386/sysv3.h.
5828         (TARGET_ASM_CONSTRUCTOR): New.
5829         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
5830         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
5831         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5832         (TARGET_ASM_CONSTRUCTOR): New.
5833         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
5834         (m68hc11_asm_out_destructor): New.
5835         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
5836         (TARGET_ASM_DESTRUCTOR): New.
5837         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
5838         * config/m68k/dpx2.h: Properly undef all the bits inherited from
5839         config/svr3.h pertaining to section manipulation.
5840         * config/m68k/dpx2g.h: Remove #if 0 code.
5841         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
5842         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
5843         (ASM_OUTPUT_CONSTRUCTOR): Remove.
5844         (TARGET_ASM_CONSTRUCTOR): New.
5845         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
5846         (m88k_svr3_asm_out_constructor): New.
5847         (m88k_svr3_asm_out_destructor): New.
5848         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5849         (ASM_OUTPUT_DESTRUCTOR): Remove.
5850         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5851         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
5852         * config/rs6000/aix.h: Likewise.
5853         * config/mips/rtems64.h: Don't undef removed constructor related bits.
5854         * config/mips/vxworks.h: Likewise.
5855         * config/rs6000/lynx.h: Likewise.
5856         * config/sh/elf.h: Likewise.
5857         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
5858         (DTORS_SECTION_ASM_OP): New.
5859         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5860         (ASM_OUTPUT_DESTRUCTOR): Remove.
5861         * config/sparc/sol2-sld-64.h: Likewise.
5862         * config/vax/vax.c (vms_asm_out_constructor): New.
5863         (vms_asm_out_destructor): New.
5864         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
5865         (ASM_OUTPUT_DESTRUCTOR): Remove.
5866         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
5867
5868         * doc/tm.texi (@node Initialization): Update.
5869
5870 2001-08-09  Richard Henderson  <rth@redhat.com>
5871
5872         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
5873         (__do_global_dtors_aux): Use gp-relative static data to avoid
5874         one dynamic relocation.
5875         (__do_frame_setup): Register Java classes.
5876         * config/alpha/crtend.asm (__JCR_END__): New.
5877
5878 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
5879
5880         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
5881         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
5882         (GEN, STAGESTUFF): Add new files.
5883         (insn-constants.h, s-constants, tm-preds.h, s-preds,
5884         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
5885         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
5886         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
5887         as well as insn-codes.h and insn-flags.h in config.h; and no
5888         extra headers in tconfig.h and hconfig.h.
5889
5890         * gencodes.c: Eliminate code to generate predicate declarations
5891         or #defines for md-file constants.
5892         * genconstants.c, genpreds.c: New files.
5893
5894         * i386.md: Re-order guard expressions such that TARGET_64BIT
5895         comes first, when this permits better optimization.  Add
5896         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
5897         why this is desirable.
5898
5899 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
5900
5901         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
5902         (find_fde_for_dso): Remove.
5903         (_Unwind_IteratePhdrCallback): New.
5904         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
5905         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
5906
5907 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5908
5909         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
5910         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
5911
5912 2001-08-09  Graham Stott  <grahams@redhat.com>
5913
5914         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
5915         (vis_no_unit): Use it.
5916         (visualize_no_unit): Add the insn only if room exists.
5917
5918 2001-08-09  Graham Stott  <grahams@redhat.com>
5919
5920         * predict.c (estimate_probability): Replace magic numbers with
5921         appropriate enumeration.
5922
5923 2001-08-09  Graham Stott  <grahams@redhat.com>
5924
5925         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
5926         parameter.
5927         (EXTRACT_FLAGS): Likewise.
5928
5929 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
5930
5931         * config/mips/mips.c    (mips_legitimate_address_p): Check for
5932         CONST_INT in last patch.
5933
5934 2001-08-08  Anthony Green  <green@redhat.com>
5935
5936         * java/class.c (emit_register_classes): Use assemble_jcr if
5937         possible.  Keep the original mechanism as a fallback.
5938         * defaults.h (JCR_SECTION_NAME): Define if we have named section
5939         and weak symbol support.
5940         * crtstuff.c (__JCR_LIST__): Define.
5941         (__JCR_END__): Define.
5942         (_Jv_RegiserClasses): Define weak symbol if possible.
5943         (__do_global_ctors_aux): Register classes for ELF targets with
5944         weak symbol support.
5945
5946 2001-08-08  Kazu Hirata  <kazu@hxi.com>
5947
5948         * dbxout.c: Fix comment formatting.
5949         * dependence.c: Likewise.
5950         * df.c: Likewise.
5951         * diagnostic.c: Likewise.
5952         * dominance.c: Likewise.
5953         * doprint.c: Likewise.
5954         * dwarf2out.c: Likewise.
5955         * dwarfout.c: Likewise.
5956         * emit-rtl.c: Likewise.
5957         * except.c: Likewise.
5958         * explow.c: Likewise.
5959         * expmed.c: Likewise.
5960         * expr.c: Likewise.
5961         * flow.c: Likewise.
5962         * fold-const.c: Likewise.
5963         * function.c: Likewise.
5964
5965 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5966
5967         * global.c (retry_global_alloc): Avoid shadowing allocno.
5968
5969 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
5970
5971         * except.c (remove_fixup_regions): Fix typo.
5972
5973 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
5974
5975         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
5976         unsigned HOST_WIDE_INT to avoid warning.
5977         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
5978         * flow.c (set_block_for_new_insns): Likewise.
5979
5980 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
5981
5982         * sibcall.c (return_value_pseudo): New static variable.
5983         (skip_copy_to_return_value): Handle return_value_pseudo.
5984         (call_ends_block_p): Ensure that return_value_pseudo is set.
5985         (optimize_sibling_and_tail_recursive_call): Discover the
5986         load of pseudo return value in alternate exit block.
5987
5988 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
5989
5990         * calls.c (ECF_ALWAYS_RETURN): New constant.
5991         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
5992         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
5993         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
5994         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
5995         * rtl.c (reg_note_name): New name.
5996         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
5997
5998 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
5999
6000         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
6001
6002 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
6003
6004         * alias.c (get_alias_set): Return a previously calculated
6005         alias set for a VAR_DECL.
6006         * function.c (gen_mem_addressof): Calculate the alias set before
6007         touching the RTL.
6008
6009 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
6010
6011         * predict.def: Set hitrates according our experimental run.
6012
6013 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
6014
6015         * i386.h (HARD_REGNO_RENAME_OK): New macro.
6016
6017 2001-08-08  H.J. Lu <hjl@gnu.org>
6018
6019         * config/mips/mips.c (mips_unique_section): New. Copied from
6020         config/mips/elf.h.
6021
6022         * config/mips/mips-protos.h (mips_unique_section): New
6023         prototype.
6024
6025         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
6026
6027         * config/mips/little.h: New. Generic little endian mips
6028         targets. Only mips*-*-linux* is converted to use it so far.
6029
6030         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
6031         (WCHAR_TYPE): Defined
6032         (WCHAR_TYPE_SIZE): Likewise.
6033         (INIT_SUBTARGET_OPTABS): Likewise.
6034         (BSS_SECTION_ASM_OP): Likewise.
6035         (SBSS_SECTION_ASM_OP): Likewise.
6036         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6037         (ASM_DECLARE_OBJECT_NAME): Likewise.
6038         (UNIQUE_SECTION): Likewise.
6039         (EXTRA_SECTIONS): Likewise.
6040         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
6041         (ASM_OUTPUT_DESTRUCTOR): Likewise.
6042         (ASM_OUTPUT_DEF): Likewise.
6043         (HANDLE_SYSV_PRAGMA): Removed.
6044         (NO_IMPLICIT_EXTERN_C): Likewise.
6045         (TARGET_MEM_FUNCTIONS): Likewise.
6046         (STARTFILE_SPEC): Likewise.
6047         (ENDFILE_SPEC): Likewise.
6048         (LIB_SPEC): Likewise.
6049         (INVOKE__main): Likewise.
6050         (CTOR_LIST_BEGIN): Likewise.
6051         (CTOR_LIST_END): Likewise.
6052         (DTOR_LIST_BEGIN): Likewise.
6053         (DTOR_LIST_END): Likewise.
6054         (SET_ASM_OP): Likewise.
6055         (ASM_OUTPUT_SOURCE_LINE): Likewise.
6056         (ASM_OUTPUT_DEF): Likewise.
6057         (ASM_OUTPUT_IDENT): Likewise.
6058
6059         * config/mips/mips.h (ASM_SPEC): Undefine before define.
6060         (CPLUSPLUS_CPP_SPEC): Likewise.
6061         (ASM_APP_ON) Redefine only if not defined.
6062         (ASM_APP_OFF): Likewise.
6063         (ASM_OUTPUT_SOURCE_LINE): Likewise.
6064         (ASM_OUTPUT_IDENT): Likewise.
6065
6066         * config.gcc: Update tm_file for Linux/mips.
6067
6068 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
6069
6070         * cselib.c (cselib_record_sets): If insn is predicated, turn
6071         sources into IF_THEN_ELSEs.
6072
6073         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
6074         Turn into define_insn_and_split.
6075
6076         * sched-deps.c: Include "cselib.h".
6077         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
6078         Use cselib to turn memory addresses into VALUEs.
6079         (sched_analyze): Call cselib_init/cselib_finish if necessary.
6080         * sched-int.h (struct sched_info): New member USE_CSELIB.
6081         * sched-ebb.c (ebb_sched_info): Initialize it.
6082         * sched-rgn.c (rgn_sched_info): Likewise.
6083         * Makefile.in (sched-deps.o): Update dependencies.
6084
6085         * cselib.h (cselib_subst_to_values): Declare.
6086         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
6087         that have no value and autoincs to be handled by generating a new
6088         dummy value.
6089
6090 2001-08-08  Graham Stott  <grahams@redhat.com>
6091
6092         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
6093         within fixed length SEQUENCE.
6094
6095 2001-08-08  Graham Stott  <grahams@redhat.com>
6096
6097         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
6098         (diagnostic_prefixing_rule): Likewise.
6099         (diagnostic_line_cutoff): Likewise.
6100         (diagnostic_kind_count): Likewise.
6101
6102 2001-08-08  Graham Stott  <grahams@redhat.com>
6103
6104         * alias.c (find_base_decl): Delete redundent assignment.
6105
6106 2001-08-08  Graham Stott  <grahams@redhat.com>
6107
6108         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
6109         (abs): Uppercase and paranthesize macro parameter.
6110         (MEM_DEPENDENCY): Add whitespace.
6111
6112 2001-08-08  Graham Stott  <grahams@redhat.com>
6113
6114         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
6115         failure check for CONST_INT
6116
6117 2001-08-08  Graham Stott  <grahams@redhat.com>
6118
6119         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
6120         (libcall_dead_p): Likewise.
6121
6122         (mark_used_regs): Constify fmt.
6123         (find_use_as_address): Likewise.
6124
6125 2001-08-08  Graham Stott  <grahams@redhat.com>
6126
6127         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
6128          parameter.
6129
6130 2001-08-08  Graham Stott  <grahams@redhat.com>
6131
6132         * combine.c (combine_simplify_rtx): Update comment and
6133         remove erroneous test.
6134
6135 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6136
6137         * cppinit.c (cpp_finish): Pop the final buffer without comment.
6138         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
6139         take care to avoid multiple no-newline at EOF warnings in that
6140         case.
6141
6142 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
6143
6144         * calls.c (expand_call): Do not emit INSN_SETJMP note.
6145         (emit_library_call_value_1): Likewise.
6146         (emit_call_1): Emit REG_SETJMP note.
6147         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
6148         of INSN_SETJMP
6149         * cselib.c (cselib_process_insn): Likewise.
6150         * flow.c (propagate_block): Likewise.
6151         * loop.c (find_and_verify_loops): Likewise.
6152         * reload.c (find_equiv_regs): Likewise.
6153         * reload1.c (reload): Likewise.
6154         * resource.c (mark_referenced_resources,
6155         mark_set_resources): Likewise.
6156         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
6157         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
6158         * haifa-sched.c (unlink_other_notes): Likewise.
6159         (reemit_notes): Likewise.
6160         * sched-ebb.c (sched_ebb): Likewise.
6161         * sched-rgc.c (sched_region): Likewise.
6162         * rtl.c (note_insn_name): Likewise.
6163         (reg_note_name): Add REG_SETJMP
6164         * rtl.h (reg_note): Add REG_SETJMP.
6165         (insn_note): Remove NOTE_INSN_SETJMP.
6166
6167         * profile.c (branch_prob): Add fake edges for setjmp.
6168
6169 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
6170
6171         * config.gcc: Quote target_cpu_default2 correctly for
6172         powerpc*-*-* targets.
6173
6174 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
6175
6176         * cpplib.h, line-map.h: Update comments.
6177         * cppmain.c (printer_init): Move inline.
6178         (maybe_print_line, print_line): Take a map pointer.
6179         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
6180         (cb_file_change): Don't use prior value of print.map.
6181
6182 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
6183
6184         * doc/install.texi: Document fine-grained multilib configuration.
6185
6186 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6187
6188         * rtlanal.c (find_first_parameter_load): Call note_stores
6189         only on the instructions.
6190
6191 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
6192
6193         * alias.c (nonlocal_mentioned_p):
6194         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
6195         * calls.c (emit_call_1): Likewise.
6196         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
6197         * cselib.c (cselib_process_insn): Likewise.
6198         * df.c (df_insns_modify): Likewise.
6199         * flow.c (need_fake_edge_p): Likewise.
6200         (propagate_one_insn): Likewise.
6201         * haifa-sched.c (reemit_notes): Likewise.
6202         * integrate.c (copy_insn_list): Likewise.
6203         * jump.c (delete_prior_computation): Likewise.
6204         * local-alloc.c (validate_equiv_mem): Likewise.
6205         * loop.c (scan_loop): Likewise.
6206         * predict.c (estimate_probability): Likewise.
6207         * reload.c (reload): Likewise.
6208         * sched-deps (sched_analyze): Likewise.
6209         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
6210         * gcse.c (compute_hash_table): Likewise.
6211         (mark_call): Likewise.
6212         (store_killed_in_insn): Likewise.
6213
6214 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
6215
6216         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
6217
6218 2001-08-06  Richard Henderson  <rth@redhat.com>
6219
6220         * varasm.c (assemble_gc_entry): Remove.
6221         * output.h: Likewise.
6222
6223 2001-08-06  Richard Henderson  <rth@redhat.com>
6224
6225         * varasm.c (assemble_constructor): Take a symbol_ref and a
6226         priority instead of a bare string.  Move priority handling
6227         here from cp/decl2.c.
6228         * output.h: Update decls.
6229
6230         * c-decl.c (c_expand_body): Update calls to assemble_constructor
6231         and assemble_destructor.
6232         * profile.c (output_func_start_profiler): Likewise.
6233         * objc/objc-act.c (finish_objc): Likewise.
6234         (build_module_descriptor): Return the symbol not the symbol name.
6235
6236 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
6237
6238         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
6239         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
6240         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
6241         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
6242         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
6243         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
6244
6245 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6246
6247         * cpperror.c (print_containing_files): Moved to line-map.c.
6248         (print_location): line-map.c handles re-listing or otherwise.
6249         * cpphash.h (struct lexer_state): Remove next_bol.
6250         (struct cpp_buffer): Remove include_stack_listed.
6251         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
6252         Remove faked buffer handling.
6253         (_cpp_do_file_change): Tweak.
6254         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
6255         * cppmain.c (struct printer): Remove filename.
6256         (print_line, cb_file_change): Update accordingly.
6257         * line-map.c: Include intl.h.
6258         (init_line_maps): Initialize last_listed.
6259         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
6260         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
6261         (print_containing_files): New.
6262         * line-map.h (struct line_maps): New member last_listed.
6263         (print_containing_files, INCLUDED_FROM): New.
6264         * Makefile.in: Update.
6265         * po/POTFILES.in: Add line-map.c.
6266
6267 2001-08-06  Richard Henderson  <rth@redhat.com>
6268
6269         * except.c (convert_from_eh_region_ranges_1): Never mark
6270         USE or CLOBBER insns as throwing.
6271
6272         * expr.c (store_constructor): Don't clobber memory targets.
6273
6274 2001-08-06  Andreas Jaeger  <aj@suse.de>
6275
6276         * profile.c (branch_prob): Remove unused variable insn.
6277
6278         * Makefile.in (local-alloc.o): Add dependency on except.h.
6279
6280         * local-alloc.c: Include except.h for can_throw_internal prototype.
6281
6282 2001-08-06  Richard Henderson  <rth@redhat.com>
6283
6284         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
6285         * function.c (expand_main_function): Implement it.
6286         * doc/tm.texi: Document it.
6287
6288 2001-08-06  Stan Shebs  <shebs@apple.com>
6289
6290         * doc/install.texi: Document powerpc-*-darwin* details.
6291
6292 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
6293
6294         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
6295         (ASM_CPU_SPEC): Move back to rs6000.h
6296         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
6297
6298         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
6299
6300         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
6301         readded.
6302
6303         * config/rs6000/linux64.h: Ditto.
6304
6305         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
6306         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
6307         nothing.
6308
6309         Remove accidently readded definitions of FUNCTION_PROLOGUE,
6310         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
6311
6312         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
6313         to rs6000.h
6314
6315 2001-08-05  Richard Henderson  <rth@redhat.com>
6316
6317         * local-alloc.c (update_equiv_regs): Do not move insns that
6318         can throw.
6319
6320 2001-08-05  Jan Hubicka  <jh@suse.cz>
6321
6322         * Makefile.in (reload1.o): Add dedendancy on except.h
6323         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
6324         prototypes.
6325         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
6326         indicating wehther edges has been cleaned up.
6327         * reload1.c: Inlucde except.h
6328         (fixup_abnormal_edges): Accept deleted insns.
6329         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
6330         after combine.
6331
6332 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6333
6334         * cpplib.c (do_line): Correct line number after pop_buffer.
6335
6336 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6337
6338         PR preprocessor/3824
6339         * line-map.c: Update comments.
6340         * line-map.h: Update comments.
6341         * tradcif.y: Don't consider large numbers unsigned.
6342
6343 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6344
6345         PR preprocessor/3081
6346         * c-lex.c (map): New.
6347         (cb_file_change): Update map and use it.
6348         (cb_def_pragma, cb_define, cb_undef): Use map and line.
6349         (c_lex): Update to use map.
6350         * cpperror.c (print_location): Move to using logical line numbers.
6351         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
6352         (cpp_make_system_header): Similarly.
6353         (_cpp_execute_include): Stop line numbering hacks.  Store the
6354         line we will return to.
6355         * cpphash.h (CPP_BUF_LINE): Remove.
6356         (struct cpp_buffer): Remove lineno and pseudo_newlines.
6357         Add map and return_to_line.
6358         (_cpp_do_file_change): Update.
6359         * cppinit.c (cpp_start_read): Update line kludge.
6360         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
6361         (trigraph_ok): Use logical line numbers for diagnostics.
6362         (skip_block_comment): Likewise.
6363         (skip_whitespace): Likewise.
6364         (skip_line_comment): Use pfile->line instead.
6365         (_cpp_lex_token): Update to use logical line numbering exclusively.
6366         Handle BOL locally.  Accept new lines in directives, but keep
6367         pfile->line decremented.  Diagnostics use logical lines.  Update
6368         directive handling.
6369         * cpplib.c (SEEN_EOL): New.
6370         (skip_rest_of_line, check_eol): Use it.
6371         (end_directive): Increase line number when accepting the newline
6372         at the end of a directive.
6373         (run_directive): Simplify.
6374         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
6375         (_cpp_do_file_change): Update to take buffer line number as an
6376         argument, and store the current map in the cpp_reader.  Remove
6377         line number kludges.
6378         (_cpp_do__Pragma): Restore output position after a _Pragma.
6379         (cpp_push_buffer): Don't set output line or lineno.
6380         (_cpp_pop_buffer): Transfer more info from a faked buffer.
6381         Remove line kludge.  Set output_line.
6382         * cppmacro.c (builtin_macro): Update handling of __LINE__.
6383         (parse_arg): Use logical lines.
6384         (save_lookahead_token): Save EOFs too now.
6385         * cppmain.c (struct printer): Fix comments.
6386         (printer_init): Simplify, let caller do errors.
6387         (scan_translation_unit, check_multiline_token, dump_macro): Update.
6388         (maybe_print_line): Simplify.
6389         (print_line): Don't print a linemarker if -P.
6390         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
6391         (cb_file_change): Simplify.
6392         * line-map.h (LAST_SOURCE_LINE): Fix.
6393         (CURRENT_LINE_MAP): New.
6394
6395 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
6396
6397         * doloop.c (doloop_modify_runtime): Properly compute number of
6398         iterations if loop was unrolled.
6399
6400         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
6401         if their CSELIB_VAL_PTRs are.
6402
6403         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
6404         (setup_spill_pointers): Initialize it.
6405         (spill_restore_mem): Set it.
6406         (do_spill, do_restore): Use it to add REG_INC note.
6407         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
6408
6409         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
6410         asms if other insns are available.
6411
6412         * config/ia64/ia64.c (condop_operator): New predicate.
6413         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
6414         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
6415         patterns.
6416
6417         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
6418         temporary register than directly using a MEM.
6419
6420 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
6421
6422         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
6423         parameter in last change.
6424
6425 2001-08-04  Zack Weinberg  <zackw@panix.com>
6426
6427         * sparc.md: Don't use #if inside C test expression.
6428
6429 2001-08-04  Richard Henderson  <rth@redhat.com>
6430
6431         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
6432
6433 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6434
6435         * cpphash.h (struct cpp_reader): New member directive_line.
6436         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
6437         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
6438         do_pragma): Pass line to callbacks.
6439         (start_directive): Record line of directive.
6440         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
6441         cb_include): Similarly.
6442         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
6443         Similarly.
6444
6445 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
6446
6447         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
6448         comment.
6449
6450 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
6451
6452         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
6453
6454         * reload1.c (fixup_abnormal_edges): New static function.
6455         (reload): Use it.
6456
6457         * flow.c (need_fake_edge_p): New function.
6458         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
6459         avoid call insn to be very last insn in the insn stream.
6460
6461         * profile.c (branch_prob): Call flow_call_edges_add instead of
6462         doing that by hand; cleanup cfg to re-merge basic blocks once
6463         we are done.
6464
6465 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6466
6467         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
6468         are also on line-map.h.
6469         * cppfiles.c (stack_include_file): Update.
6470         * cpphash.h (struct cpp_buffer): New member return_at_eof.
6471         (_cpp_pop_buffer): New.
6472         * cppinit.c (cpp_destroy, cpp_finish): Update.
6473         (do_includes): Mark each buffer to return at EOF.
6474         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
6475         return as requested.
6476         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
6477         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
6478         * cpplib.h (cpp_pop_buffer): Remove.
6479         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
6480         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
6481         buffers.
6482         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
6483         to pop buffers.
6484         (do_preprocessing): Update.
6485         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
6486         * c-parse.in (_yylex): Similarly.
6487         * scan-decls.c (scan_decls): Similarly.
6488         * line-map.h: Update comments.
6489
6490         * objc/Make-lang.in (objc-act.o): Update dependencies.
6491
6492 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6493
6494         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
6495         and soft register for operand 0.
6496         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
6497
6498 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6499
6500         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
6501         register for operand 0.
6502         ("bitcmpqi_z_used"): Allow memory for operand 0.
6503         (split "bitcmpqi"): New split to handle address reg as operand 1.
6504
6505 2001-08-04  Andreas Jaeger  <aj@suse.de>
6506
6507         * gcse.c: Revert Daniel's last patch.
6508
6509 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
6510
6511         * sparc-protos.h: Add prototypes for fp_zero_operand and
6512         reg_or_0_operand.
6513         * sh-protos.h: Add prototype for fpul_operand.
6514
6515 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
6516
6517         * doc/extend.texi (Other Builtins): Fix typo in last change.
6518
6519 2001-08-03  Richard Henderson  <rth@redhat.com>
6520
6521         * target.h (gcc_target): Add asm_out.named_section,
6522         section_type_flags, have_named_sections.
6523         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
6524         (TARGET_HAVE_NAMED_SECTIONS): New.
6525         (TARGET_SECTION_TYPE_FLAGS): New.
6526
6527         * Makefile.in (toplev.o): Depend on TARGET_H.
6528         (varasm.o, dbxout.o): Likewise.
6529         * c-common.c (decl_attributes): Check targetm.have_named_sections
6530         instead of ifdef ASM_OUTPUT_SECTION_NAME.
6531         * dbxout.c (dbxout_function_decl): Likewise.
6532         (dbxout_function_end): Likewise.
6533         * toplev.c (compile_file): Likewise.
6534         * varasm.c (exception_section): Likewise.
6535         * cp/decl2.c (finish_objects): Likewise.
6536
6537         * defaults.h (EH_FRAME_SECTION): Remove.
6538         (EH_FRAME_SECTION_ASM_OP): Remove.
6539         (EH_FRAME_SECTION_NAME): New.
6540         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
6541         (UNIQUE_SECTION_P): Remove.
6542         * dwarf2out.c (SECTION_FORMAT): Remove.
6543         (ASM_OUTPUT_SECTION): Remove.
6544         (output_call_frame_info): Use named_section_flags.
6545         (output_comp_unit, dwarf2out_start_source_file): Likewise.
6546         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
6547         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
6548         * varasm.c (in_eh_frame, eh_frame_section): Remove.
6549         (named_section_flags): New.
6550         (named_section): Use it and targetm.section_type_flags.
6551         (resolve_unique_section): New.
6552         (assemble_start_function): Use it.
6553         (asm_emit_uninitialised, assemble_variable): Likewise.
6554         (default_section_type_flags): New.
6555         (default_no_named_section, default_elf_asm_named_section): New.
6556         (default_coff_asm_named_section, default_pe_asm_named_section): New.
6557         * output.h: Update varasm.c decls.
6558         (SECTION_*): New flags.
6559
6560         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
6561         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
6562
6563         * config/elfos.h (UNIQUE_SECTION_P): Remove.
6564         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
6565         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
6566         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
6567         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
6568         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
6569         * config/mips/elf.h, config/mips/elf64.h: Likewise.
6570         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
6571         * config/pa/pa64-hpux.h,
6572
6573         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
6574         (TARGET_ASM_NAMED_SECTION): New.
6575         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
6576         * config/alpha/vms.h, config/arm/coff.h: Likewise.
6577         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
6578         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
6579         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
6580         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
6581         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
6582         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
6583         * config/i386/sco5.h, config/i386/win32.h: Likewise.
6584         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
6585         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
6586         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
6587         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
6588         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
6589         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
6590         * config/sparc/sysv4.h: Likewise.
6591
6592         * config/nextstep.h: Error until named sections implemented.
6593
6594         * config/a29k/a29k.c (a29k_asm_named_section): New.
6595         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
6596         (vms_section_type_flags, vms_asm_named_section): New.
6597         * config/arm/arm.c (arm_elf_asm_named_section): New.
6598         * config/avr/avr.c (asm_output_section_name): Remove.
6599         * config/avr/avr-protos.h: Update.
6600         * config/c4x/c4x.c (c4x_asm_named_section): New.
6601         * config/h8300/h8300.c (h8300_asm_named_section): New.
6602         * config/i386/i386.c (sco_asm_named_section): New.
6603         * config/i386/winnt.c (SECTION_PE_SHARED): New.
6604         (i386_pe_section_type_flags): New.
6605         (i386_pe_asm_named_section): New.
6606         * config/i386/i386-protos.h: Update.
6607         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
6608         * config/mcore/mcore.c (mcore_asm_named_section): New.
6609         * config/mips/mips.c (iris6_asm_named_section): New.
6610         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
6611         instead of UNIQUE_SECTION_P.
6612         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
6613         (xcoff_asm_named_section): New.
6614         * config/sh/sh.c (sh_asm_named_section): New.
6615         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
6616
6617         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
6618         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
6619         (EH_FRAME_SECTION_NAME): New.
6620         (EXCEPTION_SECTION): New.
6621         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
6622         (DEBUG_*_SECTION): Remove.
6623         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
6624         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
6625         (EH_FRAME_SECTION_ASM_OP): Remove.
6626
6627         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
6628         (ASM_OUTPUT_SECTION_NAME): Remove.
6629         (TARGET_ASM_NAMED_SECTION): New.
6630         (TARGET_HAVE_NAMED_SECTIONS): New.
6631         (TARGET_SECTION_TYPE_FLAGS): New.
6632         (EH_FRAME_SECTION_ASM_OP): Remove.
6633         (EH_FRAME_SECTION_NAME): New.
6634
6635 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
6636
6637         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
6638         for complex expressions when cfun == 0.
6639         * doc/extend.texi: Document that __builtin_constant_p can be
6640         used in data initializers as well as functions.
6641
6642 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
6643
6644         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
6645         variable I locally, instead of expecting a declaration in the
6646         calling context.
6647
6648 2001-08-03  Richard Henderson  <rth@redhat.com>
6649
6650         * except.c (collect_one_action_chain): Add an explicit cleanup
6651         action if regions surrounding a catch were encoded entirely
6652         within the call-site entry.
6653
6654 2001-08-03  Richard Henderson  <rth@redhat.com>
6655
6656         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
6657         don't take REGNO of a non-register.
6658
6659 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6660
6661         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
6662         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
6663         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
6664         (__gthread_mutex_init_function): New function for mutex initialization.
6665
6666 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6667
6668         * Makefile.in: Revert screwed up commit.
6669
6670 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6671
6672         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
6673         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
6674         merged by linker script to get a final _exit().
6675         (__do_global_dtors): New for destructor handling in specific exit
6676         section.
6677         (__do_global_ctors): New for constructors in specific install section.
6678         (__map_data_section): Map data sections before running constructors.
6679         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
6680         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
6681         (DTORS_SECTION_ASM_OP): Likewise.
6682         (CTORS_SECTION_FUNCTION): Define to force a reference to
6683         __do_global_ctors.
6684         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
6685
6686 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6687
6688         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
6689
6690         * Makefile.in: Add df.h to gcse.c dependencies.
6691
6692 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6693
6694         * varasm.c (output_constant_def_contents): Use for the length of a
6695         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
6696         depending on which is larger.
6697
6698 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
6699
6700         * gcse.c: Include df.h for use as a dataflow analyzer.
6701         Remove regvec.
6702         Declaration of reg_set_info: gone.
6703         New df_analyzer variable used by store motion.
6704         (reg_set_info): Deleted.
6705         (mark_mem_regs): New function, analyze regs used by a mem.
6706         (store_ops_ok): Use dataflow analyzer results to determine if
6707         necessary regs are changed in the block.
6708         (find_moveable_store): Remove check for symbol ref, we can handle
6709         much more complex expressions now.
6710         (compute_store_table): Remove most of the code, it's unnecessary
6711         now that the dataflow analyzer records the info for us.
6712         (store_killed_after): Add parameter to say whether to do the
6713         store_ops_okay test, used to speed up testing when we already know
6714         the answer, and just want to know if the store itself was killed.
6715         (build_store_vector): Largely rewritten to calculate the various
6716         vectors properly, and somewhat optimized.
6717         (store_motion): Init the df_analyzer, get REG_DEF chains.
6718         Also handle trapping expressions (since mems almost always trap)
6719         (simple_mem): Redefine what a simple mem is.
6720
6721 2001-08-03  DJ Delorie  <dj@redhat.com>
6722
6723         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
6724         set from a constant part of the condition.
6725
6726 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
6727
6728         * mkdeps.c (deps_add_default_target): Make local variable
6729         ``start'' a const char pointer.
6730         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
6731
6732 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6733
6734         * doc/install.texi (Configuration): Fix markup.
6735         (Specific, i?86-*-udk): Likewise.
6736         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
6737         --with-gnu-ld.
6738         Document --enable-threads and --enable-libgcj status.
6739         (Specific, mips-sgi-irix*): Canonicalize triples.
6740         (Specific, mips-sgi-irix5): Warn about problems with this config.
6741         Mention required GNU as patch.
6742         Native assembler problems are fixed.
6743         (Specific, mips-sgi-irix6): Update O32 ABI support status.
6744         Document --enable-threads and --enable-libgcj status.
6745
6746 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6747
6748         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
6749         of mkinstalldirs.
6750
6751 2001-08-03  Richard Henderson  <rth@redhat.com>
6752
6753         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
6754         constant data.
6755
6756 2001-08-03  Richard Henderson  <rth@redhat.com>
6757
6758         * rtlanal.c (find_first_parameter_load): Stop if we
6759         reach a CODE_LABEL at BOUNDARY.
6760
6761 2001-08-03  Richard Henderson  <rth@redhat.com>
6762
6763         * config/alpha/alpha.md (force_movdi): New insn.
6764         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
6765         Tweek FRP marking of VMS prologue insns.
6766         * config/alpha/vms.h (EPILOGUE_USES): New.
6767
6768 2001-08-02  Richard Henderson  <rth@redhat.com>
6769
6770         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
6771
6772 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
6773
6774         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
6775         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
6776         config/convex/convex.h, config/d30v/d30v.c,
6777         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6778         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
6779         config/mips/mips.h, config/mn10200/mn10200.h,
6780         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
6781         config/v850/v850.h, config/vax/openbsd.h,
6782         config/vax/openbsd1.h, config/vax/ultrix.h,
6783         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
6784         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
6785         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
6786         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
6787         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
6788         in comments and documentation.
6789
6790 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
6791
6792         * line-map.c: New.
6793         * line-map.h: New.
6794         * Makefile.in (line-map.o): New.
6795         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
6796         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
6797         * cpperror.c (print_containing_files): Similarly.
6798         (print_location): Update.  Don't output a space before _Pragma.
6799         * cppfiles.c (stack_include_file): Set to line 1 immediately.
6800         (stack_include_filee, cpp_make_system_header): Update.
6801         (_cpp_execute_include): Get logical line number right for calling
6802         as-yet-unterminated #include.
6803         * cpphash.h (struct cpp_reader): Add line_maps.
6804         (_cpp_do_file_change): Update.
6805         * cppinit.c (cpp_create_reader): Initialize line maps.
6806         (cpp_destroy): Destroy line maps.
6807         (cpp_start_read): Get logical line number right.
6808         * cpplex.c (parse_string): Only warn once for multi-line strings.
6809         Use boolean variable for null warning.
6810         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
6811         already.
6812         (do_include_common): End the directive early.
6813         (do_line): Don't warn about out-of-range lines in preprocessed
6814         source.  Update.  Remove unused variables.
6815         (_cpp_do_file_change): Update for new line mapping.
6816         (pragma_cb): New typedef.
6817         (cpp_register_pragma): Stop looking ahead before calling the
6818         handler.  Clean up.
6819         (do_pragma_system_header): End directive early.
6820         (cpp_get_line_maps): New.
6821         (cpp_pop_buffer): Fudge logical line.  Update.
6822         * cpplib.h: Include line-map.h
6823         (enum cpp_fc_reason): Remove.
6824         (struct cpp_file_change): Update.
6825         (cpp_get_line_maps): New.
6826         * cppmain.c (struct_printer): New member map.
6827         (cb_file_change): Update for new mappings.
6828         * fix-header.c (cb_file_change): Similarly.
6829
6830 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6831
6832         * Makefile.in (libgcc.mk): Define mkinstalldirs.
6833         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
6834
6835 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
6836
6837         * config/vax/vax.c: include expr.h.
6838
6839 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
6840
6841         * Makefile.in ($(srcdir)/configure): Only rebuild in
6842         maintainer mode.
6843         ($(srcdir)/config.in): Only define in maintainer mode.
6844         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
6845
6846 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
6847
6848         * doc/install.texi (Install GCC: Binaries): Update Bull info.
6849
6850 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6851
6852         * gcc.c (set_collect_gcc_options): New function, split out from
6853         main.
6854         Ignore elided switches.
6855         (do_spec_1): Invoke before executing command.
6856         (set_input): Export.
6857         Move declaration ...
6858         * gcc.h (set_input): ... here.
6859         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
6860         file.
6861
6862 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
6863
6864         Kill -fhonor-std.
6865         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
6866         interaction.
6867         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
6868
6869 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
6870
6871         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
6872         for the unnamed instructions it expands to.
6873
6874 2001-08-02  Richard Henderson  <rth@redhat.com>
6875
6876         * regclass.c (call_really_used_regs): Conditionally define.
6877         (init_reg_sets_1): Don't use it if not defined.
6878         (fix_register): Similarly, don't set it.
6879
6880 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6881
6882         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
6883         Correct comment that had been missed in the previous change.
6884
6885 2001-08-01  Stan Shebs  <shebs@apple.com>
6886
6887         * config/darwin.c (machopic_stub_name): Try matching by name.
6888         (update_stubs): New function.
6889         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
6890         unconditionally.
6891
6892 2001-08-01  Richard Henderson  <rth@redhat.com>
6893
6894         * except.c (output_function_exception_table): Use assemble_align.
6895         * varasm.c (assemble_eh_label): Remove.
6896         (assemble_eh_align, assemble_eh_integer): Remove.
6897
6898 2001-08-01  Robert Lipe  <robertl@caldera.com>
6899
6900         * dwarfout.c: Remove reference to README.DWARF.
6901
6902 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
6903
6904         * regclass.c (call_really_used_regs): New array for registers which
6905         are actually used by a call.
6906         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
6907         new array.
6908         (fix_register): Set call_really_used too.
6909         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
6910         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
6911
6912 2001-08-01  Richard Henderson  <rth@redhat.com>
6913
6914         * read-rtl.c (read_name): Consider \r whitespace.
6915
6916 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
6917
6918         * config.gcc: Recognize powerpc-*-netbsd*.
6919
6920         * doc/install.texi (Host/target specific installation notes for
6921         GCC): Mention powerpc-*-netbsd*.
6922
6923         * config/rs6000/netbsd.h: New file.
6924         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
6925         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
6926         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
6927         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
6928         (TARGET_VERSION): Redefine.
6929
6930         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
6931         mcall-netbsd as a match for mcall-sysv.
6932         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
6933         (ncrti.S, ncrtn.S): New targets.
6934         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
6935
6936         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
6937         "netbsd' as a V4 ABI.
6938         (ASM_SPEC): Check for -mcall-netbsd.
6939         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
6940         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
6941         (LIB_SPEC, ENDFILE_SPEC): Ditto.
6942         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
6943         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
6944         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
6945         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
6946
6947         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
6948         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
6949
6950 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
6951
6952         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
6953         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
6954         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
6955         including "unwind-pe.h".
6956
6957 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
6958
6959         * rs6000.md (define_splits): Kill unused constraints.
6960
6961 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
6962                               Jan Hubicka  <jh@suse.cz>
6963
6964         * function.c (thread_prologue_and_epilogue_insns): Kill code
6965         dealing with non-existent CFG.
6966
6967 2001-08-01  Kazu Hirata  <kazu@hxi.com>
6968
6969         * alias.c: Fix comment formatting.
6970         * bitmap.c: Likewise.
6971         * builtins.c: Likewise.
6972         * calls.c: Likewise.
6973         * c-common.c: Likewise.
6974         * c-decl.c: Likewise.
6975         * c-dump.c: Likewise.
6976         * c-lex.c: Likewise.
6977         * collect2.c: Likewise.
6978         * combine.c: Likewise.
6979         * conflict.c: Likewise.
6980         * cppfiles.c: Likewise.
6981         * cppinit.c: Likewise.
6982         * cpplex.c: Likewise.
6983         * cpplib.c: Likewise.
6984         * cppmacro.c: Likewise.
6985         * cppspec.c: Likewise.
6986         * c-pragma.c: Likewise.
6987         * crtstuff.c: Likewise.
6988         * cse.c: Likewise.
6989         * cselib.c: Likewise.
6990         * c-semantics.c: Likewise.
6991         * c-typeck.c: Likewise.
6992
6993 2001-08-01  H.J. Lu <hjl@gnu.org>
6994
6995         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
6996
6997 2001-08-01  H.J. Lu <hjl@gnu.org>
6998
6999         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
7000
7001 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
7002
7003         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
7004         contextualizing Objective-C class name lookup by the lexer.
7005         (typespec_reserved_nonattr): Disable ObjC class name lookup after
7006         seeing a TYPESPEC.
7007         (protocoldef): Add support for forward @protocol declarations.
7008         (yylexname): Suppress ObjC class name lookup in certain contexts;
7009         re-enable after lookup is complete.
7010         (_yylex): Re-enable ObjC class name lookup when certain
7011         punctuation marks are seen.
7012
7013         * objc/objc-act.c (check_protocol_recursively): New function used
7014         for finding circular dependencies in protocols.
7015         (objc_declare_protocols): New function for handling forward
7016         @protocol declarations.
7017         (receiver_is_class_object): Detect the case when 'self' is used
7018         inside of a class method.
7019         (build_message_expr): Issue a warning if class method is desired
7020         but instance method is found instead.
7021         (conforms_to_protocol): Streamline.
7022         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
7023         protocol Foo, even if 'Bar foo' does not.
7024         (check_protocols): Streamline.
7025         (start_protocol): Add checks for circular and duplicate protocol
7026         definitions.
7027         (encode_aggregate_within): For typedefs of structs, encode the
7028         underlying struct.
7029         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
7030         (objc_declare_protocols): New prototype.
7031
7032 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7033
7034         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
7035         * cpplex.c (handle_newline): Update prototype.  Maintain logical
7036         line number.
7037         (skip_escaped_newlines, skip_block_comment, parse_string):
7038         Update accordingly.
7039         (_cpp_lex_token): Update, and store token position within the token.
7040         * cpplib.h (struct cpp_token): Add line and column entries.
7041         * cppmacro.c (replace_args): Position stringified tokens correctly.
7042
7043 2001-08-01  Andreas Jaeger  <aj@suse.de>
7044
7045         * basic-block.h: Add prototype for last_loop_beg_note.
7046
7047 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
7048
7049         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
7050         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
7051         comment.
7052         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
7053         while handling WITH_CLEANUP_EXPR node. Use second operand calling
7054         expand_decl_cleanup.
7055         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
7056         the first RTX.
7057         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
7058         operand while calling simple_cst_equal.
7059         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
7060         operand is the cleanup expression, the third is the RTL_EXPR.
7061         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
7062
7063 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
7064
7065         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
7066
7067 2001-07-31  matthew green  <mrg@eterna.com.au>
7068
7069         * config.gcc (i386-*-netbsdelf): New description.
7070         * config/i386/netbsd-elf.h: New file.
7071
7072 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
7073
7074         * loop.c (check_dbra_loop): Use single_set to compute
7075         jump_label.
7076
7077 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
7078
7079         PowerPC reorg and support for powerpc64-*-linux*.
7080
7081         Also fixes emitting of constants on 32 bit and 64 bit
7082         platforms.
7083
7084         * config.gcc: powerpc64-*-linux* is a new target.
7085         Things that needed aix.h now also include xcoff.h
7086
7087         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
7088         xcoff.h.
7089         Move AIX specific stuff into aix.h.
7090         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
7091         with more than just XCOFF now.
7092         (SET_ASM_OP): Remove, now defined where needed.
7093         (FUNCTION_PROLOGUE): New macro definition.
7094         (FUNCTION_EPILOGUE): New macro definition.
7095         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
7096
7097         * config/rs6000/xcoff.h: New file.
7098
7099         * config/rs6000/linux64.h: New file.
7100
7101         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
7102
7103 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
7104
7105         * rs6000.c (print_operand_address): Handle ELF syntax.
7106         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
7107         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
7108         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
7109
7110 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
7111
7112         * rs6000.c (rs6000_override_options): Only disable
7113         flag_function_sections for XCOFF.
7114         (exact_log2_cint_operand): New predicate.
7115         (reg_or_{add,sub}_cint64_operand): New predicates.
7116         (add_operand): Compare CONST_INT with fewer function calls.
7117         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
7118         (print_operand, case 'p'): Ensure positive operand.
7119         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
7120         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
7121         (PREDICATE_CODES): Add new predicates.
7122         * rs6000.md (addsi3): Split 32-bit constants more correctly.
7123         (divsi3, modsi3): Ensure positive power-of-2.
7124         (adddi3): Use new predicate.  Split 32-bit constants more
7125         correctly.  Re-arrange splitter to handle any constant.
7126         (subdi3): Use new predicate.
7127         (divdi3, moddi3): Ensure positive power-of-2.
7128         (movdi): Use rs6000_emit_set_const.
7129         (load_toc_v4_pic_di): Delete.
7130
7131 2001-07-31  Graham Stott <grahams@redhat.com>
7132
7133         * function.c (pad_below): Revert 2001-07-26 patch.
7134
7135 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7136
7137         * reg-stack (convert_regs_1): Fix best edge condition.
7138
7139 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
7140
7141         * jump.c (duplicate_loop_exit_test): Better test for jumps
7142         entering the loop; create loop pre_header.
7143
7144 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
7145
7146         * doc/install.texi: Add s390 and s390x as new targets.
7147         * doc/invoke.texi: Add documantation of S/390 and zSeries
7148         target options.
7149         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
7150
7151 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
7152
7153         * config/m68k/m68k.md: Replace all general_operand with
7154         nonimmediate_operand for all destinations.
7155         * config/m68k/m68k.c (not_sp_operand): Likewise.
7156
7157 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
7158
7159         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
7160
7161 2001-07-30  Richard Henderson  <rth@redhat.com>
7162
7163         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
7164         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
7165
7166 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
7167
7168         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
7169         Add missing doc strings
7170         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
7171         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
7172
7173 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
7174
7175         * i386.c (ix86_output_main_function_alignment_hack): New function.
7176         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
7177
7178         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
7179         edges by EDGE_DFS_BACK flag.
7180         (dump_edge_info): Add dfs_back flag.
7181         * basic-block.h (EDGE_DFS_BACK): New constant.
7182         (mark_dfs_back_edges): Declare.
7183         * alias.c (loop_p): Remove.
7184         (mark_constant_function): Use mark_dfs_back_edges.
7185
7186         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
7187         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
7188         (compensate_edge): Break out from ...
7189         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
7190         (convert_regs_2): Set block_done once block is really done;
7191         Do updating of the predecesors counts.
7192
7193         * toplev.c (rest_of_compilation): Recompute block_for_insn
7194         before post-reload cfg_cleanup.
7195         * function.c (thread_prologue_epilogue_insns):
7196         Call set_block_for_new_insns when emitting prologue directly.
7197
7198 2001-07-30  Andreas Jaeger  <aj@suse.de>
7199
7200         * jump.c: Add prototype for mark_modified_reg.
7201
7202         * cse.c (set_live_p): Add unused attribute.
7203
7204         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
7205         overflow.
7206         (scan_for_source_files): Use long for count to avoid overflow.
7207         (output_data): Likewise.
7208         (output_data): Don't use string concatatenation to silence gcc
7209         -traditional.
7210
7211         * predict.c: Fix typos and grammar.
7212
7213         * gcse.c (insert_insn_end_bb): Remove unused variables.
7214
7215 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
7216
7217         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
7218         (attempt_auto_inc): LIkewise.
7219         (mark_used_reg): Likewise.
7220         (try_pre_increment_1): Likewise.
7221         * regclass.c (regclass): Likewise.
7222         * global.c (allocno_compare): Update comment; change scaling factor.
7223         * local-alloc.c (QTY_CMP_PRI): Likewise.
7224         * regs.h (REG_FREQ_FROM_BB): New.
7225         (REG_FREQ_MAX): Likewise.
7226
7227 2001-07-30  H.J. Lu <hjl@gnu.org>
7228
7229         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
7230         -D_GNU_SOURCE.
7231
7232 2001-07-30  H.J. Lu  (hjl@gnu.org)
7233
7234         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
7235         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
7236         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
7237
7238 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
7239
7240         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
7241         as -mthumb-interwork when -mcpu=arm7 is specified.
7242
7243 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7244
7245         * predict.def (noreturn, loop branch, loop exit): Mark as first
7246         match heuristics.
7247
7248 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
7249
7250         * combine.c (try_combine): Avoid barrier after noop jumps.
7251
7252 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7253
7254         * cpphash.h (struct cpp_reader): Remove import_warning.
7255         * cpplib.c (skip_rest_of_line): Don't bother turning off
7256         macro expansion.
7257         (parse_include): Move include handling to...
7258         (do_include_common): ... here.  Move import warning from...
7259         (do_import): ... here.
7260         (do_pragma_poison): Don't do a callback for poison identifiers.
7261         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
7262         * cppmain.c (setup_callbacks): Similarly.
7263
7264 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
7265
7266         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
7267         handle multiple sets.
7268         * except.c (sjlj_mark_call_sites): .... here.
7269         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
7270
7271 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
7272
7273         Suggested by Richard Henderson and Richard Kenner:
7274         * combine.c (recog_for_combine): Use the fake recog
7275         only if instruction does not match.
7276         * rtl.h (NOOP_MOVE_INSN_CODE): New.
7277         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
7278
7279         * combine.c (try_combine): Discover noop jump as direct jump.
7280
7281 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
7282
7283         * df.c (df_rd_global_compute): Add successors to worklist, not
7284         current item.
7285         (df_ru_global_compute): Ditto.
7286
7287 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
7288
7289         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
7290         increment REG_N_SETS.
7291
7292 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
7293
7294         * sbitmap.h: New prototype for sbitmap_a_xor_b.
7295
7296         * sbitmap.c (sbitmap_a_xor_b): New function.
7297         ifdef the basic block stuff on IN_GCC.
7298
7299 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7300
7301         * cppexp.c (parse_defined): Always record the macro name.
7302         (lex): Don't worry about identifiers, or special-case
7303         CPP_NOT here.
7304         (_cpp_parse_expr): Figure out at the end of the routine
7305         whether we saw a valid !defined() expression.
7306         * cppfiles.c (stack_include_file): Update for mi_valid.
7307         (_cpp_pop_file_buffer): Similarly.
7308         * cpplex.c (_cpp_lex_token): Similarly.
7309         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
7310         mi_if_not_defined, mi_lexed): Remove.
7311         (mi_valid): New.
7312         * cpplib.c (do_if): Simplify.
7313         (do_endif, push_conditional, _cpp_handle_directive): Update
7314         for renaming of mi_state to mi_valid.
7315 doc:
7316         * cpp.texi: Add index entries for digraphs, and add comment
7317         that C++ refers to them as alternative tokens.
7318
7319 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
7320
7321         * basic-block.h (CLEANUP_PRE_LOOP): New.
7322         * except.c (finish_eh_generation): Update call of cleanup_cfg.
7323         * sibcall.c (optimize_sibling_calls): Likewise.
7324         * toplev.c (rest_of_compilation): Likewise.
7325         * flow.c (try_forward_edges): Take argument MODE;
7326         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
7327         (try_optimize_cfg): Update call of try_forward_edges.
7328
7329 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
7330                                Jan Hubicka  <jh@suse.cz>
7331
7332         * (validate_replace_rtx_1): Fix simplification of MINUS.
7333
7334 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7335
7336         PR preprocessor/3669
7337         * cppinit.c (init_dependency_output): Turn off dump requests
7338         if sending dependencies to stdout.
7339
7340 2001-07-28  Richard Henderson  <rth@redhat.com>
7341
7342         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
7343         not optimizing.
7344
7345 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
7346
7347         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
7348
7349 2001-07-28  Kazu Hirata  <kazu@hxi.com>
7350
7351         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
7352         is VAR_DECL first to prevent an ICE.
7353
7354 2001-07-28  Richard Henderson  <rth@redhat.com>
7355
7356         * varasm.c (immed_real_const_1): Don't elide special cases for
7357         nested functions.
7358         (clear_const_double_mem): Clear const_tiny_rtx too.
7359
7360 2001-07-28  Richard Henderson  <rth@redhat.com>
7361
7362         * dwarf2out.c (dw_val_class_offset): New.
7363         (struct dw_ranges_struct, dw_ranges_ref): New.
7364         (ranges_table, ranges_table_allocated): New.
7365         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
7366         (add_AT_offset, add_ranges, output_ranges): New.
7367         (print_die, output_die): Handle dw_val_class_offset.
7368         (attr_checksum, size_of_die, value_format): Likewise.
7369         (gen_lexical_block_die): Handle non-contiguous blocks.
7370         (gen_block_die): Likewise.
7371         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
7372         if needed.  Dump the ranges table.
7373         * final.c (final_start_function): Remove unnecessary notes and
7374         rebuild the block tree before numbering the blocks.
7375         * function.c (reorder_blocks_0): Walk the existing block tree
7376         to unmark all blocks.
7377         (reorder_blocks_1): Create block fragments when duplicate block
7378         notes are seen.
7379         (reorder_fix_fragments): New.
7380         (reorder_blocks): Call it.
7381         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
7382
7383 2001-07-28  Richard Henderson  <rth@redhat.com>
7384
7385         * emit-rtl.c (adjust_address): Make a copy of the memory address.
7386
7387 2001-07-28  Richard Henderson  <rth@redhat.com>
7388
7389         * flow.c (add_to_mem_set_list): New function.
7390         (init_propagate_block_info): Use it.
7391         (mark_set_1): Likewise.
7392         (insn_dead_p): Canonicalize memory address for dead store
7393         comparison.  Allow wider mode stores to kill narrower mode stores.
7394         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
7395         (invalidate_mems_from_set): Don't handle MEMs.
7396
7397 2001-07-28  Kazu Hirata  <kazu@hxi.com>
7398
7399         * config/h8300/h8300.h: Fix formatting.
7400
7401 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
7402
7403         * basic-block.h (EDGE_FREQUENCY): New macro.
7404         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
7405         for new BB/edges.
7406         * flow.c (find_sub_basic_blocks): Likewise.
7407         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
7408         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
7409
7410         * predict.c (DEF_PREDICTOR): New argument FLAGS.
7411         (HITRATE): New macro.
7412         (PRED_FLAG_FIRST_MATCH): New constant.
7413         (predictor_info): New field flgags.
7414         (combine_predictions_for_insn): Use DS theory to combine
7415         probabilities; set the edge probabilities when finished.
7416         (estimate_probability): Avoid duplicated matches
7417         of LOOP_BRANCH heuristics for nested loops; update comment.
7418         * predict.def: Add flags for each prediction, set probabilities
7419         according to B&L paper.
7420         * predict.h (DEF_PREDICTOR): New argument FLAGS.
7421
7422         * profile.c (compute_branch_probabilities):  Cleanup way the edge
7423         probabilities are computed and REG_BR_PROB notes are dropped; if
7424         values does not match, emit error.
7425         (init_branch_prob): Do error instead of warning when profile driven
7426         feedback is missing or corrupt.
7427
7428 2001-07-27  DJ Delorie  <dj@redhat.com>
7429
7430         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
7431         against a constant, try to adjust the compare to have the desired
7432         constant in it so that min/max optimizations happen more often.
7433
7434 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
7435
7436         * flow.c (last_loop_beg_note): New function.
7437         (redirect_edge_and_branch): Use it.
7438         (split_edge): Likewise.
7439
7440         * alias.c (loop_p): Avoid uninitialized memory access.
7441
7442         * flow.c (try_forward_edges): Avoid accessing freed memory.
7443
7444         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
7445         variable access.
7446
7447 2001-07-26  Andrew Haley  <aph@redhat.com>
7448         Joern Rennecke <amylaar@redhat.com>
7449
7450         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
7451         (SUBTARGET_CPP_ENDIAN_SPEC): New.
7452         (SUBTARGET_CPP_SPEC): New.
7453         (CPP_SPEC): Remove.
7454         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
7455         (SUBTARGET_CPP_PTR_SPEC): New.
7456         (CPP_DEFAULT_CPU_SPEC): New.
7457         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
7458         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
7459         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
7460         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
7461         (SUBTARGET_CPP_SPEC): Define as an empty string.
7462
7463 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7464
7465         * doc/install.texi (Configuration): Properly link the host
7466         specific instructions also when generating HTML.
7467
7468 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
7469
7470         * flow.c (redirect_edge_and_branch_force): Test
7471         target->global_live_at_start.
7472
7473 2001-07-26  Richard Henderson  <rth@redhat.com>
7474
7475         * simplify-rtx.c (avoid_constant_pool_reference): Export.
7476         * rtl.h (avoid_constant_pool_reference): Declare it.
7477         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
7478         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
7479
7480 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
7481
7482         * rtl.h (cleanup_barriers): Declare.
7483         * jump.c (cleanup_barriers): New function.
7484         * toplev.c (rest_of_compilation): Call cleanup_barriers
7485         before loop optimizer and after bb_reorder.
7486
7487         * flow.c (back_edge_of_syntactic_loop_p): New.
7488         (split_edge): Use it.
7489
7490 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7491
7492         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
7493
7494 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
7495
7496         * cse.c (cse_process_notes): Replace any registers if the address
7497         remains valid.
7498
7499 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
7500
7501         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
7502         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
7503         (propagate_block): Update prototype.
7504         * flow.c (update_life_info): Simplify the CFG and
7505         recalculate the global regs which are alive when
7506         removing dead code during a global update.
7507         (propagate_block): Return non-zero if an INSN is
7508         deleted.
7509
7510 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7511
7512         * Makefile.in (LIBICONV): Define.
7513
7514 2001-07-26  Catherine Moore  <clm@redhat.com>
7515
7516         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
7517         of conditional to avoid tree checking errors.
7518
7519 2001-07-26  Kazu Hirata  <kazu@hxi.com>
7520
7521         * regmove.c (regmove_optimize): Don't replace a reg with
7522         another reg of a different mode.
7523
7524 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
7525
7526         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
7527         limit length of dependancy flush list.
7528         * params.h (MAX_PENDING_LIST_LENGTH): Define.
7529         * sched-int.h  (struct deps): Add pending_flush_length field.
7530         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
7531         has 1 element in it.
7532         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
7533         (sched_analyze): After a jump, if the pending memory flush list is too
7534         large, flush the pending lists.
7535         (init_deps): Initialize pending_flush_length to 0.
7536         * doc/invoke.texi (max_pending_list_length): Document parameter.
7537
7538 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7539
7540         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
7541         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
7542         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
7543
7544 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7545
7546         * cpphash.h (struct_lexer_state): Delete was_skipping.
7547         Move skipping here from struct cpp_reader.
7548         * cpplex.c (parse_identifier): Update.
7549         (_cpp_lex_token): Don't skip tokens in a directive.
7550         * cpplib.c (struct if_stack): Update.
7551         (start_directive, end_directive): Don't change skipping state.
7552         (_cpp_handle_directive): Update.
7553         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
7554         (do_else, do_endif): Update; only check for excess tokens if not
7555         in a skipped conditional block.
7556         (push_conditional): Update for new struct if_stack.
7557
7558 2001-07-26  Graham Stott  <grahams@redhat.com>
7559
7560         * function.c (locate_and_pad_parm): Also pad initial offset
7561         so that the total argument size also includes the padding.
7562
7563 2001-07-26  Graham Stott <grahams@redhat.com>
7564
7565         * gensupport.c (alter_output_for_insn): Correct enable checking failure
7566         change XSTR to XTMPL.
7567
7568         (process_one_cond_exec): Likewise
7569
7570 2001-07-25  Richard Henderson  <rth@redhat.com>
7571
7572         * varasm.c (assemble_variable): Create DECL_RTL before setting
7573         TREE_ASM_WRITTEN.
7574
7575 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
7576
7577         * predict.c (estimate_probability): Avoid duplicated predictions.
7578
7579         * loop.c (find_and_verify_loops): Grok multiple barriers.
7580
7581 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7582
7583         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
7584
7585         * dbxout.c: Consistently use putc instead of fputc.
7586         (print_wide_int): New function; call instead of direct fprintf.
7587         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
7588         (dbxout_type_fields, dbxout_type_method_1): Likewise.
7589         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
7590         (print_int_cst_octal): Likewise.
7591         (print_octal): Show we wrote characters.
7592         (dbxout_type): Set have_used_extensions in more places.
7593
7594 2001-07-25  Catherine Moore  <clm@redhat.com>
7595
7596         * config/v850/v850.c (v850_va_arg):  Use addr
7597         instead of valist to build incr.
7598
7599 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
7600
7601         * flow.c (delete_dead_jumptables): New function.
7602         (life_analyzis): Call it.
7603         * bb-reorder.c (skip_insns_after_block): Handle contradictory
7604         sequences.
7605
7606 2001-07-25  Richard Henderson  <rth@redhat.com>
7607
7608         * except.c (reachable_handlers): Handle a region being removed
7609         out from under a RESX.
7610
7611 2001-07-25  Richard Henderson  <rth@redhat.com>
7612
7613         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
7614         swap GE/GT if it is an fp comparison.
7615
7616 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
7617
7618         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
7619         operands.
7620
7621 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
7622
7623         * ssa.c (rename_insn_1): Do not wrap an assignment to a
7624         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
7625         glitch.
7626
7627         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
7628         throw an exception.
7629         (visit_expression): When attempting to simplify an expression,
7630         retrieve any modes for arguments before they are simplified
7631         to constants.
7632
7633 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
7634             Janis Johnson  <janis@us.ibm.com>
7635
7636         * stmt.c (expand_goto): A nonlocal goto can be a call too.
7637         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
7638         pointer parameters to match documented usage of nonlocal_goto.
7639         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
7640         parameters to their correct order.
7641         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
7642         parameters to their correct order.
7643
7644 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
7645
7646         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
7647
7648 2001-07-25  Jan Hubicka  <jh@suse.cz>
7649             Richard Henderson  <rth@redhat.com>
7650
7651         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
7652         the sequence.
7653         (make_edges): New argument update_p; populate the edge cache if set.
7654         (find_basic_blocks): Update make_edges invocation.
7655
7656 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7657
7658         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
7659
7660 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7661
7662         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
7663         -Acpu and -Amachine.h.
7664         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
7665         Corrected header to say ELF not a.out.
7666         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
7667         when given -msoft-float.
7668
7669 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7670
7671         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
7672         extra multilib parts like arm-elf.
7673         (i960-*-coff*, i960-*-rtems): Should not use collect2.
7674         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
7675         crtfini.o as extra multilib parts.
7676
7677 2001-07-24  Joel Sherrill <joel@OARcorp.com>
7678
7679         * configure.in: Add rtems as a supported thread model.
7680         * gthr-rtems.h: Add missing entry point __gthread_active_p.
7681         * configure: Rebuilt.
7682
7683 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
7684
7685         * stor-layout.c (get_mode_alignment): make it work when
7686         BITS_PER_UNIT is not a power of two.
7687         * builtins.c (get_pointer_alignment): Likewise.
7688
7689 2001-07-24  Richard Henderson  <rth@redhat.com>
7690
7691         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
7692         the retrieved constant into the expected mode.
7693
7694 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
7695
7696         * flow.c (try_simplify_condjump): Avoid duplicated edges.
7697         (verify_flow_info): Check for duplicated edges; clarify
7698         error reporting.
7699
7700         * flow.c (block_label): Update basic_block_for_insn.
7701         (commit_edge_insertions): Call compute_bb_for_insn.
7702
7703         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
7704         returns too.
7705
7706         * flow.c (redirect_edge_and_branch,
7707         try_optimize_cfg): Use redirect_edge_succ_nodup
7708         (redirect_edge_succ_nodup): New.
7709         * basic_block.h (redirect_edge_succ_nodup): Declare.
7710
7711         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
7712         after gcse.
7713
7714 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
7715
7716         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
7717         (try_crossjump_to_edge): Update commetns.
7718         (try_crossjump_bb): Likewise.
7719
7720 2001-07-24  Richard Henderson  <rth@redhat.com>
7721
7722         * combine.c (distribute_notes): Move set of need_refresh
7723         for noop_move_p down to catch all cases.
7724
7725 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
7726
7727         * recog.c (split_all_insns_noflow): New.
7728         * rtl.h (split_all_insns_noflow): Declare.
7729         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
7730         * m68hc11.c (m68hc11_reorg): Likewise.
7731         * sh.c (machine_dependent_reorg): Likewise.
7732         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
7733         call.
7734
7735 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
7736
7737         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
7738         (ashlsi3_n splitter): Likewise.
7739         (lshrsi3_n splitter): Likewise.
7740
7741         (GOTaddr2picreg): Make const SImode.
7742         (sym_label2reg): Likewise.
7743         (symGOT2reg): Likewise.
7744         (symGOTOFF2reg) Likewise.
7745
7746         (casesi_worker_0): Make unspec SImode.
7747
7748 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
7749
7750         * config/sh/sh.c (barrier_align): Check that an operand really is
7751         an insn before extracting its INSN_CODE.
7752
7753 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
7754
7755         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
7756         dangling else.
7757
7758         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
7759         for SImode to prevent overflow.
7760
7761 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7762
7763         * config/mips/irix6-libc-compat.c: New file.
7764         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
7765         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
7766         passing workaround.
7767
7768 2001-07-24  lars brinkhoff  <lars@nocrew.org>
7769
7770         * rtl.texi (REG_POINTER): Document.
7771         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
7772         QFmode, HFmode, TQFmode, QCmode, and HCmode.
7773
7774 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
7775
7776         * flow.c (delete_noop_moves): Do not confuse libcall regions.
7777
7778 2001-07-23  Richard Henderson  <rth@redhat.com>
7779
7780         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
7781
7782 2001-07-23  Kazu Hirata  <kazu@hxi.com>
7783
7784         * config/h8300/h8300-protos.h: Add a prototype for
7785         general_operand_dst_push.
7786         * config/h8300/h8300.c (general_operand_dst_push): New.
7787         * config/h8300/h8300.h (OK_FOR_T): New.
7788         (EXTRA_CONSTRAINT): Use it.
7789         * config/h8300/h8300.md (movqi_push): Remove and integrate into
7790         the existing movqi pattern.
7791         (movhi_push): Likewise.
7792
7793         * reload.c: Fix comment typos.
7794
7795 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
7796
7797         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
7798
7799 2001-07-23  H.J. Lu  (hjl@gnu.org)
7800
7801         * doc/extend.texi: Update __builtin_return_address and
7802         __builtin_frame_address.
7803
7804 2001-07-23  Richard Henderson  <rth@redhat.com>
7805
7806         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
7807         before CSE.
7808         * config/i386/i386.md: New setcc+movzbl peephole2.
7809
7810 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7811
7812         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
7813         * objc/objc-act.c: Include debug.h.
7814         (synth_module_prologue): Save and restore debug hooks too.
7815
7816 2001-07-23  lars brinkhoff  <lars@nocrew.org>
7817
7818         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
7819         and C4X_FLOAT_FORMAT.
7820         (BOOL_TYPE_SIZE): Document.
7821
7822 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
7823
7824         * unroll.c (loop_iterations): Fix miscalculation of initial
7825         giv offset.
7826
7827 2001-07-13  Andrew Haley  <aph@redhat.com>
7828
7829         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
7830         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
7831         * config/sh/sh.c (sh_can_redirect_branch): New function.
7832         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
7833         * reorg.c (steal_delay_list_from_target): Use
7834         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
7835
7836 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
7837
7838         * flow.c (try_simplify_condjump): Unlink insn chain on
7839         fallthru edge; use can_fallthru.
7840
7841 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
7842
7843         * basic-block.h (find_sub_basic_block): Declare.
7844         * flow.c (make_edges): New arguments MIN and MAX;
7845         (find_sub_basic_blocks): Revamp to use make_edges
7846         and purge_dead_edges.
7847         (find_basic_blocks): Update call of find_sub_basic_block.
7848
7849         * recog.c (split_all_insns): Always expect CFG to be consistent;
7850         call find_sub_basic_blocks in case something has changed.
7851         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
7852         has been built.
7853
7854         * basic-block.h (delete_noop_moves): Declare.
7855         * combine.c (combine_instructions): Call it.
7856         (recog_for_combine): Tolerate noop moves
7857         (distribute_notes): Force refresh when register dies at noop move.
7858         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
7859         too.
7860         (life_analysis): Update delete_noop_moves call.
7861         (set_noop_p): Move too ...
7862         * rtlanal.c (noop_move_p): ... here.
7863         * rtl.h (noop_move_p): Declare.
7864
7865         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
7866         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
7867         after combine.
7868         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
7869         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
7870
7871 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
7872
7873         * reload.c (push_reload): Fix typo in comment.
7874         (find_reloads_address): Ditto.
7875         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
7876
7877 2001-07-22  Richard Henderson  <rth@redhat.com>
7878
7879         * flow.c: Grammar check and clarify a lot of comments.
7880         (try_simplify_condjump): Rename variables to be clearer.
7881         (try_forward_edges): Skip complex and fallthru edges.
7882         Rearrange tests to avoid duplicate checks.
7883         (flow_find_cross_jump): Likewise.
7884         (outgoing_edges_match): Allow match if neither branch has
7885         probability data.  Loosen probability match to 5%.
7886         (try_crossjump_to_edge): Hoist repeated indirection into
7887         local variables.
7888         (try_crossjump_bb): Don't check complex edges.  Eliminate
7889         redundant crossjump tests.
7890         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
7891         checks before more expensive checks.
7892
7893 2001-07-22  Richard Henderson  <rth@redhat.com>
7894
7895         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
7896         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
7897         arguments.
7898
7899 2001-07-22  Richard Henderson  <rth@redhat.com>
7900
7901         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
7902         (const_sint32_operand): Likewise.
7903         * m68k.md (anon mulsi pattern): Use const_int_operand not
7904         const_sint32_operand.
7905         (umulsi3_highpart): Zero extend a constant input.
7906         (smulsi3_highpart): Don't bother checking SImode constant.
7907         (const_umulsi3_highpart): Give op3 DImode.
7908         (const_smulsi3_highpart): Likewise.
7909
7910 2001-07-22  Richard Henderson  <rth@redhat.com>
7911
7912         * flow.c (split_block): Make sure bb_note is included in the
7913         new block when splitting before a label.
7914
7915 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
7916
7917         * basic-block.h (redirect_edge_and_branch_force,
7918         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
7919         * flow.c (redirect_edge_and_branch_force,
7920         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
7921         (redirect_edge_and_branch_force): Fix copying of lifeness information.
7922         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
7923         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
7924         instead of label; update CFG after transformation.
7925         (find_if_case_1): Update call, use redirect_edge_and_branch_force
7926         for finishing the transformation; handle even case where ELSE
7927         does not follow THEN.
7928         (find_if_case_2): Update call of dead_or_predictable; simplify
7929         CFG update.
7930
7931         * emit-rtl.c (split_branch_probability): New global variable.
7932         (try_split): Take care to set split_branch_probability and
7933         create REG_BR_PROB note for new jump insns.
7934         * md.texi (define_split): Document new feature.
7935
7936         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
7937
7938 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7939
7940         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
7941         (asm_out_file): Remove redundant declaration.
7942         (assemble_asm): Remove old #if 0 block.
7943         (assemble_variable): Remove end of function; debug output is
7944         now handled with global_decl.  Remove old #if 0 block.  Update.
7945         Remove saved_in_section and associated no-op code.
7946         * Makefile.in (varasm.o): Correct dependencies.
7947
7948 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
7949
7950         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7951         the definition in defaults.h.
7952
7953 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
7954
7955         * jump.c: Update comments.
7956         (delete_barrier_successors, delete_unreferenced_labels,
7957         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
7958         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
7959         jump_optimize, jump_optimize_minimal): Kill.
7960         (rebuild_jump_labels): Move code from jump_optimize_1.
7961         (purge_line_number_notes): Likewise.
7962         (copy_loop_headers): Likewise.
7963         * reg-stack.c: Update comment.
7964         * stmt.c: Likewise.
7965         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
7966         JUMP_AFTER_REGSCAN): Kill.
7967         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
7968         purge_line_number_notes and copy_loop_headers.
7969
7970 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
7971            Richard Henderson  <rth@redhat.com>
7972
7973         * dbxout.c (dbxout_global_decl): New.
7974         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
7975         * sdbout.c (sdbout_finish): New.
7976         (sdbout_debug_hooks): Use it, add comments.
7977         (sdbout_global_decl): Defer initialised public vars to
7978         sdbout_finish.
7979         * varasm.c (assemble_variable): Don't output debug information
7980         for file-scope variables.
7981
7982 2001-07-22  Richard Henderson  <rth@redhat.com>
7983
7984         * config/alpha/alpha.c (get_trap_mode_suffix): New.
7985         (get_round_mode_suffix): New.
7986         (print_operand): Use them for [/].  Remove support for [&'`()+].
7987         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
7988         * config/alpha/alpha.md (attr round_suffix): New.
7989         (attr trap_suffix): New.
7990         (all insns): Set them appropriately.  Use %/ instead of the
7991         myriad punctuators.
7992
7993 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
7994
7995         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
7996
7997 2001-07-22  Richard Henderson  <rth@redhat.com>
7998
7999         * regrename.c (regrename_optimize): Compute nregs for each
8000         potential target register.
8001
8002 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
8003            Richard Henderson  <rth@redhat.com>
8004
8005         * dbxout.c (dbxout_global_decl): New.
8006         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
8007         * sdbout.c (sdbout_finish): New.
8008         (sdbout_debug_hooks): Use it, add comments.
8009         (sdbout_global_decl): Defer initialised public vars to
8010         sdbout_finish.
8011         * varasm.c (assemble_variable): Don't output debug information
8012         for file-scope variables.
8013
8014 2001-07-21  H.J. Lu  (hjl@gnu.org)
8015
8016         * config/mips/mips.c (mips_cpu): Moved into ...
8017         (override_options): Here.
8018
8019         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
8020         mips_tune.
8021         (mips_cpu): Removed.
8022
8023 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8024
8025         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
8026         ("iorqi3"): Likewise.
8027         ("xorqi3"): Likewise.
8028         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
8029         ("*subhi3_sp): Likewise.
8030         ("*subhi3"): Likewise.
8031         ("extendhisi2"): Accept D, X and Y as source operand to avoid
8032         reload problems.
8033
8034 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
8035
8036         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
8037         * config/freebsd.h: Likewise.
8038         * config/linux.h: Likewise.
8039         * config/openbsd.h: Likewise.
8040         * config/alpha/linux-elf.h: Likewise.
8041         * config/arm/linux-elf.h: Likewise.
8042         * config/d30v/d30v.h: Likewise.
8043         * config/fr30/fr30.h: Likewise.
8044         * config/ia64/aix.h: Likewise.
8045         * config/ia64/ia64.h: Likewise.
8046         * config/mips/linux.h: Likewise.
8047         * config/pj/pj.h: Likewise.
8048         * config/rs6000/linux.h: Likewise.
8049         * config/sparc/linux.h: Likewise.
8050         * config/sparc/linux64.h: Likewise.
8051
8052 2001-07-20  Bruce Korb  <bkorb@gnu.org>
8053
8054         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
8055         because getc() and char* may disagree on signedness.
8056
8057 2001-07-20  Richard Henderson  <rth@redhat.com>
8058
8059         * doc/rtl.texi (REG_DEAD): Update for current semantics.
8060
8061         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
8062         insns to delete in the presence of cc0 in a jump insn.
8063
8064 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
8065                                Jan Hubicka  <jh@suse.cz>
8066
8067         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
8068         of doing the change by hand.
8069
8070 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
8071
8072         * rtlanal.c (set_noop_p): Return true for noop jumps.
8073
8074         * expr.c (emit_single_push_insn): Add call to push expander.
8075         * expr.h (optab_index): Add OTI_push
8076         (push_optab): New constant.
8077         * genopinit.c (optabs): Add push_optab.
8078         * optabs.c (init_optab): Init push optab.
8079         * md.texi (push??1): Document
8080
8081 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8082
8083         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
8084         expand to emit the pattern; put a REG_INC note for push/pop
8085         instructions.
8086         ("movdf", "movdf_internal"): Likewise.
8087         ("movsi", "movsi_internal"): Likewise.
8088         ("movsf", "movsf_internal"): Likewise.
8089         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
8090
8091 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8092
8093         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
8094         gen_highpart.
8095
8096 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
8097
8098         * params.def: Change default max inline insns to 100.
8099
8100 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
8101
8102         * combine.c (combine_simplify_rtx): Generate a new shift operation
8103         when simplifying the first operand of a (neg (ashift)) expression.
8104
8105 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8106
8107         * regclass.c (N_REG_INTS): Use only 32 bits per element.
8108
8109 2001-07-20  Kelley Cook  <kelley.cook@home.com>
8110
8111         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
8112         information.   Move rest into ...
8113         (*-*-solaris): ... here.  Eliminate redundant information and
8114         reword necessary packages section.  Delete 4.x assembler bug info.
8115         (sparc-sun-*): Merge into ...
8116         (sparc-sun-sunos*): here.
8117
8118 2001-07-20  Catherine Moore  <clm@redhat.com>
8119
8120         * config/v850/v850.md (casesi): Generate LABEL_REF
8121         with Pmode.
8122
8123 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
8124
8125         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
8126         * i386.c (ix86_zero_extend_to_Pmode): Make global.
8127         * i386.md (strclrsi expander): Use it.
8128
8129 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
8130
8131         * integrate.c (copy_insn_list): handle
8132         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
8133         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
8134         identically as to CODE_LABEL.
8135
8136         * fold-const (fold): Convert A/B/C to A/(B*C) and
8137         A/(B/C) to (A/B)*C
8138
8139         * except.c (connect_post_landing_pads): Delete the RESX insns.
8140
8141 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
8142
8143         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
8144
8145         * config/mips/mips.md (nmadd/nmsub): Use macro.
8146
8147 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
8148
8149         * cppinit.c (remove_dup_dir): Make static.
8150         (remove_dup_dirs): Make static. Only warn about preempting a
8151         system directory with a non-system directory.
8152
8153 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
8154
8155         * ifcvt.c (noce_try_store_flag_constants): Correct order
8156         of parameters to trunc_int_for_mode.
8157
8158 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
8159
8160         * reorg.c (fill_simple_delay_slots): If an instruction might throw
8161         an exception that will be caught within this function, do not fill
8162         its delay slot with any subsequent instruction.
8163
8164 2001-07-19  Steve Ellcey <sje@cup.hp.com>
8165
8166         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
8167         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
8168         pointer extension instruction.
8169         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
8170         * simplify-rtx.c (simplify_unary_operation) Likewise.
8171         * explow.c (convert_memory_address) Check value of
8172         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
8173         less than zero.
8174         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
8175         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
8176         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
8177         Add Multilib Support.
8178         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
8179         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
8180         Add Multilib Support.
8181         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
8182         support.
8183         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
8184         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
8185         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
8186
8187 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
8188
8189         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
8190         old and new operands in `<', `3' and `b'.
8191
8192 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8193
8194         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
8195         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
8196         (toplev.o): Don't depend on xcoffout.h.
8197         * c-decl.c: Include debug.h
8198         (duplicate_decls): Use debug hook.
8199         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
8200         (dbx_debug_hooks, xcoff_debug_hooks): Update.
8201         (dbxout_types): Remove.
8202         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
8203         * debug.c (do_nothing_debug_hooks): Update.
8204         (debug_true_tree, debug_nothing_rtx): New.
8205         * debug.h (struct rtx_def): New.
8206         (struct gcc_debug_hooks): New hooks ignore_block,
8207         outlining_inline_function and label.
8208         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
8209         dwarf2out_frame_finish): New.
8210         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
8211         Make static, update prototype.
8212         (dwarf2_debug_hooks): Update.
8213         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
8214         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
8215         * dwarfout.c (dwarf_debug_hooks): Update.
8216         * emit-rtl.c: Include debug.h.
8217         (remove_unnecessary_notes): Use debug hook.
8218         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
8219         (final_scan_insn): Use debug hook.
8220         * integrate.c (output_inline_function): Use debug hook.
8221         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
8222         (sdb_debug_hooks): Update.
8223         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
8224         * toplev.c: Don't include xcoffout.h.
8225         (note_outlining_of_inline_function, debug_ignore_block): Remove.
8226         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
8227         Remove.
8228         * tree.h (dwarf2out_do_frame): Remove.
8229
8230 2001-07-19  Catherine Moore  <clm@cygnus.com>
8231
8232         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
8233
8234 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
8235
8236         * reload1.c (eliminate_regs_in_insn): When updating a set
8237         to the frame pointer to the hardware frame pointer, perform
8238         the update always not just when REPLACE is set.
8239
8240         * reload1.c (choose_reload_regs): Don't inherit a reload
8241         that crosses multiple registers if registers past the first
8242         don't fit in the desired class.
8243
8244         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
8245         when negating constants.
8246
8247 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
8248
8249         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
8250         * doc/tree.texi: Ditto.
8251
8252 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
8253             Jakub Jelinek  <jakub@redhat.com>
8254
8255         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
8256         (extract_cie_info): Handle "eh" augmentation properly,
8257         remember eh_ptr.
8258         (struct frame_state, __frame_state_for): New.
8259
8260 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8261
8262         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
8263         HANDLE_SYSV_PRAGMA): Define.
8264         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
8265         previous args.
8266         (copy_object): Caller changed.
8267
8268 2001-07-19  Andreas Schwab  <schwab@suse.de>
8269
8270         * configure.in (assembler dwarf2 debug_line support): Define nop
8271         insn for m68k.
8272         * configure: Regenerated.
8273
8274 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8275
8276         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
8277         dwarfout.h.
8278         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
8279         to conditionally compiled block.
8280         (dbx_debug_hooks, xcoff_debug_hooks): Update.
8281         * dbxout.h (dbxout_function): Remove.
8282         * debug.c (do_nothing_debug_hooks): Update.
8283         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
8284         global_decl, deferred_inline_function.
8285         * dwarf2out.c (dwarf2_debug_hooks): Update.
8286         (dwarf2out_global_decl): New.
8287         * dwarfout.c: Don't include dwarfout.h.
8288         (dwarfout_global_decl, dwarfout_function_decl,
8289         dwarfout_deferred_inline_function): New.
8290         (dwarf_debug_hooks): Update.
8291         * dwarfout.h: Remove.
8292         * final.c: Don't include dwarfout.h.
8293         * sdbout.c (sdbout_global_decl): New.
8294         (sdbout_debug_hooks): Update.
8295         * toplev.c: Don't include dwarfout.h.
8296         (check_global_declarations, rest_of_compilation): Use new debug hooks.
8297         (note_deferral_of_defined_inline_function): Remove.
8298         * toplev.h (note_deferral_of_defined_inline_function): Remove.
8299         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
8300         * ch/lex.c: Don't include dwarfout.h.
8301         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
8302         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
8303         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
8304         * cp/optimize.c: Include debug.h.
8305         (maybe_clone_body): Use debug hook.
8306         * cp/semantics.c: Include debug.h.
8307         (expand_body): Use debug hook.
8308         * po/POTFILES.in: Remove dwarfout.h.
8309
8310 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8311
8312         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
8313         * c-parse.in (yyerror, _yylex): Similarly.
8314         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
8315         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
8316         Update comments.
8317         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
8318         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
8319
8320 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
8321
8322         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
8323         in-class declaration at -g1.  Fixes c++/2814.
8324
8325 2001-07-18  Richard Henderson  <rth@redhat.com>
8326
8327         * doc/md.texi (reload_in/out): Document restrictions in predicates
8328         and constraints for these patterns.  Document empty string matching
8329         ALL_REGS.
8330
8331 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8332
8333         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
8334
8335 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8336
8337         * cse.c: Undo my previous patch.
8338
8339 2001-07-18  Tom Tromey  <tromey@redhat.com>
8340
8341         For PR java/2812:
8342         * configure: Rebuilt.
8343         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
8344         instead.
8345         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
8346
8347 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
8348                                Jan Hubicka  <jh@suse.cz>
8349
8350         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
8351         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
8352         * jump.c (mark_jump_label): Do not forward branches.
8353
8354 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
8355
8356         * cse.c (delete_trivially_dead_insns): Delete the libcall block
8357         when return value is unused.
8358
8359 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
8360
8361         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
8362
8363 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
8364
8365         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
8366         on error.  We can't blindly return the result of
8367         pthread_mutex_trylock because it returns a positive number on
8368         error, while we must return -1 on error.
8369         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
8370         fixes.
8371         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
8372
8373 2001-07-18  Andreas Jaeger  <aj@suse.de>
8374
8375         * integrate.c (output_inline_function): Correct type of debug_hooks.
8376
8377 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
8378
8379         * combine.c (combine_simplify_rtx): DIV can be treated
8380         associatively for floats if unsafe math optimisations are enabled.
8381
8382 2001-07-17  Richard Henderson  <rth@redhat.com>
8383
8384         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
8385
8386 2001-07-17  Richard Henderson  <rth@redhat.com>
8387
8388         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
8389         don't force the function address into a register.
8390         (expand_call, emit_library_call_value_1): Update callers.
8391         * builtins.c (expand_builtin_apply): Likewise.
8392         * expr.h (prepare_call_address): Update decl.
8393
8394 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
8395
8396         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
8397         config directory.
8398         * config/i386/chorus.h: Move up.
8399         * config/sparc/chorus.h: Likewise.
8400         * config/rs6000/chorus.h: Likewise.
8401         * config/chorus.h: Moved here.
8402
8403 2001-07-17  Andreas Schwab  <schwab@suse.de>
8404
8405        * configure.in  (assembler eh_frame optimization): Handle big
8406        endian.
8407        * configure: Regenerated.
8408
8409 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
8410
8411         * expr.c (epxand_expr): Convert divisions into multiplications by
8412         reciprocals if -ffast-math.
8413
8414 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8415
8416         * dbxout.c (dbxout_really_begin_function): Rename to
8417         dbxout_begin_function.
8418         (dbx_debug_hooks, xcoff_debug_hooks): Update.
8419         (dbxout_begin_function): Remove.
8420         (dbxout_function): Update.
8421         (dbxout_source_line): Update prototype.
8422         * dbxout.h (dbxout_begin_function): Remove.
8423         * debug.c (do_nothing_debug_hooks): Update.
8424         (debug_nothing_tree): Update.
8425         (debug_nothing_charstar_rtx): Remove.
8426         * debug.h (union tree_node): Declare.
8427         (struct rtx_def): Remove.
8428         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
8429         begin_function.  Change source_line prototype.
8430         (debug_nothing_tree): New.
8431         (debug_nothing_charstar_rtx): Delete.
8432         (dwarf2out_begin_prologue): Moved from ...
8433         * tree.h: ... here.
8434         * dwarf2out.c (dwarf2_debug_hooks): Update.
8435         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
8436         debug info, call dwarf2out_source_line.
8437         (dwarf2out_souce_line): Update prototype.
8438         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
8439         Change prototype, make static.
8440         (dwarfout_source_line): Update prototype.
8441         (dwarf_debug_hooks): Update.
8442         * dwarfout.h (dwarfout_begin_function): Remove.
8443         * final.c (final_start_function, final_scan_insn): Use appropriate
8444         debug hooks, update to use notice_source_line.
8445         (output_source_line): Rename notice_source_line.  Don't call the
8446         source_line debug hook.
8447         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
8448         make static, update prototype.
8449         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
8450         prototype.
8451         (sdbout_end_prologue): New.
8452         (sdbout_source_line): Update prototype.
8453         (sdbout_debug_hooks): Update.
8454         (sdbout_symbol): Remove unused var.
8455         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
8456         Delete.
8457         * varasm.c: Include debug.h.
8458         (assemble_start_function): Use begin_function debug_hook.
8459         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
8460         update with prototype.
8461         (xcoffout_source_line): Update prototype.
8462         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
8463         update prototype.
8464         (xcoffout_source_line): Update prototype.
8465
8466 2001-07-17  Richard Henderson  <rth@redhat.com>
8467
8468         * c-typeck.c (build_binary_op): Do not shorten unsigned
8469         right shift after sign extension.
8470
8471 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
8472
8473         * combine.c (combine_simplify_rtx): Attempt to simplify
8474         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
8475
8476         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
8477         (simplify_binary_operation, simplify_unary_operation,
8478          simplify_relational_operation): Use it.
8479
8480         * combine.c (combine_simplify_rtx): Don't do associative law
8481         on divisions; allow associative law on floats.
8482
8483 2001-07-17  H.J. Lu <hjl@gnu.org>
8484             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8485
8486         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
8487         ASM_OUTPUT_WEAK_ALIAS are defined.
8488         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
8489         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
8490         Moved ...
8491         * config/mips/iris5.h: ... here.
8492         (HANDLE_SYSV_PRAGMA): Defined as 1.
8493         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
8494         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
8495         symbol.
8496
8497 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
8498
8499         * c-parse.in (all_prefix_attributes): New variable.
8500         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
8501         (maybe_resetattrs): New production.
8502         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
8503         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
8504         notype_initdcl, nested_function, notype_nested_function,
8505         component_decl, components, components_notype,
8506         component_declarator, component_notype_declarator,
8507         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
8508         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
8509         after a comma being applied to more than one declarator.
8510         * doc/extend.texi (Attribute Syntax): Update.  Remove
8511         documentation of bugs that are no longer present.
8512
8513 2001-07-13  Eric Christopher  <echristo@redhat.com>
8514
8515         * config/mips/mips.h: Change TUNE_MIPS* options to use
8516         mips_tune.
8517         (EXTRA_SPECS): Add cc1_cpu_spec.
8518         * config/mips/mips.md (muldf3): Fix typo.
8519
8520 2001-07-16  Richard Henderson  <rth@redhat.com>
8521
8522         * config/m68k/m68k.c: Include expr.h and reload.h.
8523         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
8524         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
8525
8526 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
8527             Richard Henderson  <rth@redhat.com>
8528
8529         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
8530         (insn_live_p): Fix fall off end of function.
8531         (dead_libcall_p): Remove COUNTS argument; update callers.
8532         (delete_trivially_dead_insns): Remove unused variables.
8533
8534 2001-07-17  Andreas Jaeger  <aj@suse.de>
8535
8536         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
8537         x86-64 pic support.
8538
8539         * lcm.c (optimize_mode_switching): Avoid warning for unused
8540         variable if !NORMAL_MODE.
8541
8542         * flow.c (try_crossjump_to_edge): Remove unused variable.
8543
8544 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8545
8546         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
8547         atexit declaration in stdlib.h.
8548
8549 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
8550
8551         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
8552
8553 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
8554
8555         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
8556         * except.c (finish_eh_generation): Update call of cleanup_cfg;
8557         do rebuild_jump_labels instead of jump_optimize
8558         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
8559         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
8560         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
8561
8562         * flow.c: Include timevar.h
8563         (find_basic_block): Push/pop timevar;
8564         (cleanup_cfg): Likewise.
8565         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
8566         * Makefile: Add dependencies on timevar.h
8567
8568         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
8569         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
8570
8571         * rtl.h (delete_trivially_dead_insns): Add new parameter.
8572         * toplev.c (rest_of_compilation): Update calls.
8573         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
8574         (delete_trivially_dead_insns): ... here; accept new argument
8575         preserve_basic_blocks; preserve basic blocks if set.
8576
8577         * reg-stack.c (stack_regs_mentioned): Return 0 if
8578         stack_regs_mentioned_data is not initialized.
8579         (reg_to_stack): Make stack_regs_mentioned survive after the
8580         reg-stack is completted; do not call cleanup_cfg.
8581         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
8582         make cleanup_cfg after bb-reorder to output to debug file.
8583
8584 2001-07-16  Richard Henderson  <rth@redhat.com>
8585
8586         * regclass.c (init_reg_sets): Use only 32 bits per initializer
8587         from int_reg_class_contents.
8588
8589 2001-07-16  Richard Henderson  <rth@redhat.com>
8590
8591         * hard-reg-set.h (regs_invalidated_by_call): Declare.
8592         * regclass.c (regs_invalidated_by_call): Move from cse.c.
8593         (init_reg_sets_1): Move initialization from cse_main.
8594         * cse.c (regs_invalidated_by_call): Move to regclass.c.
8595         (cse_main): Move its initialization also.
8596         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
8597         * flow.c (propagate_one_insn): Likewise.
8598         * gcse.c (compute_hash_table): Likewise.
8599         (compute_kill_rd, compute_store_table): Likewise.
8600         * sched-deps.c (sched_analyze_1): Likewise.
8601
8602 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
8603
8604         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
8605         gen_rtx_SET.
8606
8607 2001-07-16  Steve Ellcey <sje@cup.hp.com>
8608
8609         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
8610         in if statement so we don't access undefined memory.
8611
8612 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
8613
8614         * gcse.c: Update comment at top.
8615         Update comment on mem handling.
8616         mem_last_set, mem_first_set, mem_set_in_block: gone.
8617         Declaration of reg_set_info: gone.
8618         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
8619         pointless with load_killed_in_block_p (they are *more*
8620         conservative then it, not less, and less accurate).
8621         (oprs_not_set_p): Ditto.
8622         (alloc_gcse_mem): Don't allocate mem_set_in_block
8623         (free_gcse_mem): Don't free it, either.
8624         (record_last_mem_set_info): Update comment in front, remove
8625         mem_*set_* stuff. Note the reason we don't handle stores directly
8626         here.
8627         (compute_hash_table): Update comments to reflect reality. Remove
8628         mem_*set_* references.
8629         (reset_opr_set_tables): Remove mem_*set_* references.
8630         (mark_call): Ditto.
8631         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
8632         (mark_clobber): Ditto (on both parts, we double set here too).
8633         (expr_killed_p): Remove mem_set_in_block test.
8634         (compute_transp): Remove mem_set_in_block test.
8635
8636         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
8637         of edge, and removal of phi alternative to dump file.
8638         (ssa_ccp_substitute_constants): Add note about register now being
8639         constant, and which uses were replaced in what insns to dump file.
8640
8641 2001-07-16  Andreas Jaeger  <aj@suse.de>
8642
8643         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
8644         variables of type HOST_WIDEST_INT.
8645
8646         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
8647         (__bb_exit_func): Correct type of count_max to avoid overflow.
8648         (num_digits): Handle long long argument.
8649
8650         * combine.c (gen_lowpart_for_combine): Remove unused variable.
8651
8652 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
8653
8654         * output.h (sdb_begin_function_line): Restore as an extern
8655         variable.
8656         * sdbout.c (sdb_begin_function_line): Make extern.
8657
8658 2001-07-15  Richard Henderson  <rth@redhat.com>
8659
8660         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
8661         * genrecog.c (maybe_both_true_mode): New.
8662         (maybe_both_true_2): Use it.
8663         (write_switch): Don't put Pmode in a switch.
8664         * rtl.c (mode arrays): Don't explicitly size them.
8665
8666 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8667
8668         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
8669         handling; move unconditional splitting before mode switching.
8670
8671         * i386.md (type): Add fistp type.
8672         (i387, length_attr, scheduling definitions): Handle this type.
8673         (fix_trunc?f?i2): Revamp to use mode switching.
8674         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
8675         * i386.h (fp_cw_mode): New enum
8676         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
8677         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
8678
8679 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8680
8681         * Makefile.in (integrate.o): Add debug.h.
8682         * integrate.c (debug.h): Add.
8683         (output_inline_function): Save, reset, and restore debug_hooks.
8684
8685 2001-07-15  Richard Henderson  <rth@redhat.com>
8686
8687         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
8688         instead of COMPARE for the EQUIV expression.
8689
8690 2001-07-15  Richard Henderson  <rth@redhat.com>
8691
8692         * flow.c (redirect_edge_and_branch_force): Initialize
8693         global_live_at_start and global_live_at_end.
8694         (allocate_bb_life_data): Export.
8695         * basic-block.h (allocate_bb_life_data): Declare.
8696         * toplev.c (rest_of_compilation): Call it.
8697
8698 2001-07-15  Richard Henderson  <rth@redhat.com>
8699
8700         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
8701         (alpha_tablejump_best_label): New.
8702         * config/alpha/alpha-protos.h: Declare them.
8703         * config/alpha/alpha.md: Use braced strings for code blocks.
8704         (tablejump_osf): Break out add with r29.
8705         (tablejump_osf_internal): Remove.
8706         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
8707         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
8708
8709 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8710
8711         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
8712         of the movable.
8713
8714         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
8715
8716         * i386-protos.h (ix86_split_fp_branch): Update prototype.
8717         (ix86_fp_jump_nontrivial_p): New.
8718         * i386.md (fp_jcc_?): Update call of split_fp_branch;
8719         use ix86_fp_jump_nontrivial_p.
8720         * i386.c (ix86_fp_jump_nontrivial_p): New.
8721         (ix86_split_fp_branch): Accept code instead of rtx.
8722         (ix86_expand_compare): Expand comparison early in case
8723         doing so is resonably cheap.
8724
8725 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
8726
8727         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
8728         not 'machine'.
8729         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
8730         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
8731
8732 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8733
8734         * dbxout.c (dbxout_source_line): Make static, update prototype.
8735         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
8736         (dbxout_init, dbxout_finish, dbxout_source_line,
8737         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
8738         * dbxout.h (dbxout_source_line): Delete.
8739         * debug.c (debug_nothing_file, debug_nothing_file_int,
8740         debug_nothing_file_charstar_rtx): New.
8741         (do_nothing_debug_hooks): Update.
8742         (debug_nothing_void, debug_nothing_charstar_rtx,
8743         dwarf2out_end_epilogue): New.
8744         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
8745         * debug.h (struct rtx_def): Declare.
8746         (gcc_debug_hooks): New hooks source_line, end_epilogue
8747         and end_function.
8748         (debug_nothing_void, debug_nothing_charstar_rtx,
8749         dwarf2out_end_epilogue): New.
8750         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
8751         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
8752         (dwarf2_debug_hooks): Update.
8753         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
8754         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
8755         * dwarf2out.h (dwarf2out_source_line): Remove.
8756         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
8757         Make static, update prototype.
8758         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
8759         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
8760         (dwarf_debug_hooks): Update.
8761         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
8762         dwarfout_end_function): Remove.
8763         * final.c (profile_function): Use debug hooks for ending functions
8764         and epilogues.
8765         (output_source_line, final_end_function): Update prototype,
8766         use debug hooks.
8767         (final_start_function, final_scan_insn): Update.
8768         * output.h (sdb_begin_function_line): Remove.
8769         (final_end_function): Update prototype.
8770         * sdbout.c (sdb_begin_function_line): Make static.
8771         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
8772         (sdbout_source_line): New.
8773         (sdbout_end_epilogue, sdbout_end_function): Make static, update
8774         prototypes.
8775         (sdb_debug_hooks): Update.
8776         (sdbout_init, sdbout_source_line,
8777         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
8778         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
8779         * toplev.c (compile_file, rest_of_compilation): Update.
8780         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
8781         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
8782         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
8783         Update for prototype changes.
8784         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
8785         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
8786
8787 2001-07-15  Richard Henderson  <rth@redhat.com>
8788
8789         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
8790         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
8791         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
8792         * config/alpha/alpha.c: Likewise.
8793         * config/alpha/alpha.md: Likewise.
8794         * config/alpha/alpha32.h: Likewise.
8795         * config/alpha/vms.h: Likewise.
8796         (OPEN_VMS): Remove.
8797
8798 2001-07-14  Richard Henderson  <rth@redhat.com>
8799
8800         * config/alpha/alpha.md: Use define_constants for unspec values.
8801         Substitute throughout.
8802
8803 2001-07-14  Tim Josling  <tej@melbpc.org.au>
8804
8805         * tree.def (EXPON_EXPR) remove. Never supported anyway.
8806
8807 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8808
8809         * pa.md: Remove unused constraints from define_split's.
8810
8811 2001-04-14  Richard Henderson  <rth@redhat.com>
8812
8813         * ifcvt.c (find_cond_trap): Test for exit block.
8814
8815 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
8816
8817         Re-install recently reverted patch.
8818         * emit-rtl.c (try_split): Update mark_jump_label call.
8819         * flow.c (find_sub_basic_blocks): Likewise.
8820         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
8821         jump_back_p): Kill.
8822         (mark_all_labels): Kill second parameter.
8823         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
8824         (rebuild_jump_labels, jump_optimize_minimal): Update call
8825         of jump_optimize_1.
8826         (jump_optimize_1): Kill crossjumping code.
8827         (mark_jump_label): Kill cross_jump parameter.
8828         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
8829         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
8830         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
8831          splitting.
8832         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
8833         DFI_bpro.
8834         (dump_file_info): Likewise.
8835         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
8836         reorganize passes to do reg-stack first, bb-reorder second.
8837         * invoke.texi (-d letters doc): Remove the jump2 pass.
8838
8839 2001-07-14  Richard Henderson  <rth@redhat.com>
8840
8841         * ifcvt.c (find_cond_trap): New.
8842         (find_if_header): Call it.
8843         (merge_if_block): Relax existing jump sanity check.
8844         * jump.c (jump_optimize_1): Remove conditional trap handling.
8845
8846 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
8847
8848         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
8849         millicode.
8850         (insn_refs_are_delayed): Correct comment.
8851         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
8852         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
8853         instead of r31.  Make associated insn !TARGET_64BIT, and
8854         provide an additional 64-bit insn that clobbers r2.
8855         (divsi3): Likewise.
8856         (udivsi3): Likewise.
8857         (modsi3): Likewise.
8858         (umodsi3): Likewise.
8859
8860 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
8861
8862         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
8863
8864         * flow.c (redirect_edge_and_branch_force, split_edge,
8865         try_crossjump_to_edge): Use set_block_for_new_insns.
8866         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
8867
8868 2001-07-13  H.J. Lu  (hjl@gnu.org)
8869
8870         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
8871         the correct patch.
8872
8873 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
8874
8875         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
8876
8877 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
8878
8879         * c-common.c (decl_attributes): Take a pointer to the node to
8880         which attributes are to be attached, and a flags argument.
8881         * c-common.h (enum attribute_flags): New.
8882         (decl_attributes): Update prototype.
8883         * c-decl.c (start_decl, push_parm_decl, finish_struct,
8884         finish_enum, start_function): Update calls to decl_attributes.
8885         * c-parse.in (component_declarator, component_notype_declarator,
8886         label): Update calls to decl_attributes.
8887
8888 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
8889
8890         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
8891         * config/avr/avr.c (legitimate_address_p): Return value changed
8892         from letter to register classes. For better debugging.
8893
8894 2001-07-13  Kazu Hirata  <kazu@hxi.com>
8895
8896         * jump.c (reversed_comparison_code_parts): Fix comment typos.
8897
8898 2001-07-13  H.J. Lu  (hjl@gnu.org)
8899
8900         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
8901
8902 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
8903
8904         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
8905         correctly for shared configurations.
8906         * config/t-libgcc-pic:  New.
8907         * config/{i386,m68k,sparc}/t-openbsd:  New.
8908         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
8909         Support -shared.  Support debugging libraries with -g.
8910         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
8911         frame information does not emit pointer diffs.
8912         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
8913         emit pointer diffs.
8914
8915 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
8916
8917         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
8918
8919 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
8920
8921         * combine.c (try_combine): Ensure const_int pow2 is positive.
8922
8923 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
8924
8925         * config.gcc: Add configuration for s/390.
8926         * config/s390/s390.c: New. Subroutines for code generation.
8927         * config/s390/s390.h: New. Definitions for s/390.
8928         * config/s390/s390-protos.h: New. Prototypes.
8929         * config/s390/linux.h: New. Definitions for linux for s/390.
8930         * config/s390/linux64.h: New. Definitions for linux for zSeries.
8931         * config/s390/t-linux: New. Makefile fragment.
8932         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
8933         * config/s390/fixdfdi.h: New. Fix L_fix*di.
8934
8935 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
8936
8937         * emit-rtl.c (try_split): Update mark_jump_label call.
8938         * flow.c (find_sub_basic_blocks): Likewise.
8939         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
8940         jump_back_p): Kill.
8941         (mark_all_labels): Kill second parameter.
8942         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
8943         (rebuild_jump_labels, jump_optimize_minimal): Update call
8944         of jump_optimize_1.
8945         (jump_optimize_1): Kill crossjumping code.
8946         (mark_jump_label): Kill cross_jump parameter.
8947         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
8948         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
8949         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
8950          splitting.
8951         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
8952         DFI_bpro.
8953         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
8954         reorganize passes to do reg-stack first, bb-reorder second.
8955         * invoke.texi (-d letters doc): Remove the jump2 pass.
8956
8957 2001-07-12  Steve Ellcey <sje@cup.hp.com>
8958
8959         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
8960
8961 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
8962
8963         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
8964         basic blocks.
8965         (verify_flow_info): Make diagnostics prettier.
8966
8967 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8968
8969         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
8970
8971         * flow.c (outgoing_edges_match): Return early if condition reversal
8972         failed.
8973
8974 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
8975
8976         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
8977         (mips_move_2words): When splitting a move into two instructions,
8978         prefix the second address operand with '%D'.
8979
8980 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8981
8982         * Makefile.in (final.o): Depend on debug.h.
8983         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
8984         (dbx_debug_hooks): Add new hooks.
8985         (xcoff_debug_hooks): New.
8986         * debug.c (debug_nothing_file_int_int): New.
8987         (do_nothing_debug_hooks): Update.
8988         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
8989         (debug_nothing_file_int_int): New.
8990         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
8991         static, update prototype.
8992         (dwarf2_debug_hooks): Update.
8993         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
8994         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
8995         static, update prototype.
8996         (dwarf_debug_hooks): Update.
8997         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
8998         * final.c: Include debug.h.
8999         (final_scan_insn): Use debug hooks when beginning and ending blocks.
9000         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
9001         static, update prototype.
9002         (sdb_debug_hooks): Update.
9003         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
9004         * toplev.c: Distinguish between xcoff and dbx.
9005
9006         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
9007         Call all debug hooks, not just dwarf ones.
9008
9009 2001-07-11  Timothy Wall  <twall@redhat.com>
9010
9011         * config.gcc: Add configuration for AIX5/IA64.
9012         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
9013         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
9014         support prefix/suffix code.
9015         * config/ia64/t-aix: New.  Makefile fragment.
9016         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
9017
9018 2001-07-11  Kazu Hirata  <kazu@hxi.com>
9019
9020         * recog.c (validate_change): Fix a comment typo.
9021
9022 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9023
9024         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
9025         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
9026         hooks directly.
9027         * dbxout.c (dbx_debug_hooks): Add new hooks.
9028         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
9029         make static.
9030         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
9031         make static.
9032         * dbxout.h (dbxout_start_new_source_file,
9033         dbxout_resume_previous_source_file): Delete.
9034         * debug.c (do_nothing_debug_hooks): Add new hooks.
9035         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
9036         (debug_nothing_int_charstar, debug_nothing_int): New.
9037         * debug.h (gcc_debug_hooks): New hooks define, undef,
9038         start_source_file and end_source_file.
9039         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
9040         (debug_nothing_int_charstar, debug_nothing_int): New.
9041         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
9042         the conditionally compiled section.
9043         (dwarf2out_start_source_file, dwarf2out_end_source_file,
9044         dwarf2out_define, dwarf2out_undef): Make static.
9045         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
9046         dwarf2out_define, dwarf2out_undef): Remove.
9047         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
9048         (dwarfout_start_source_file, dwarfout_end_source_file,
9049         dwarfout_define, dwarfout_undef): Make static.
9050         (dwarfout_start_source_file_check,
9051         dwarfout_end_source_file_check): New.
9052         (dwarfout_define, dwarfout_finish): Update.
9053         * dwarfout.h (dwarfout_start_new_source_file,
9054         dwarfout_resume_previous_source_file, dwarfout_define,
9055         dwarfout_undef): Remove.
9056         * sdbout.c (sdb_debug_hooks): Add new hooks.
9057         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
9058         make static.
9059         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
9060         make static, take an arg.
9061         * sdbout.h (sdbout_start_new_source_file,
9062         sdbout_resume_previous_source_file): Delete.
9063         * toplev.c (debug_start_source_file, debug_end_source_file,
9064         debug_define, debug_undef): Delete.
9065         * toplev.h (debug_start_source_file, debug_end_source_file,
9066         debug_define, debug_undef): Delete.
9067
9068         * java/jcf-parse.c: Include debug.h.
9069         (parse_class_file): Update to use debug hooks directly.
9070         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
9071
9072 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9073
9074         * alias.c (set_mem_alias_set): New function.
9075         * rtl.h (set_mem_alias_set): Declare it.
9076         * builtins.c (expand_builtin_return_addr): Call it instead of
9077         using MEM_ALIAS_SET accessor.
9078         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
9079         (get_memory_rtx, expand_builtin_va_arg): Likewise.
9080         (expand_builtin_va_copy):Likewise.
9081         * caller-save.c (setup_save_areas): Likewise.
9082         * calls.c (compute_argument_addresses): Likewise.
9083         * explow.c (set_mem_attributes): Likewise.
9084         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
9085         (expand_assignment, store_constructor_field, store_field): Likewise.
9086         (expand_expr_unaligned): Likewise.
9087         * function.c (assign_stack_temp_for_type): Likewise.
9088         (put_reg_into_stack, gen_mem_addressof): Likewise.
9089         * ifcvt.c (noce_try_cmove_arith): Likewise.
9090         * reload1.c (reload, alter_reg): Likewise.
9091         * config/alpha/alpha.c (get_aligned_mem): Likewise.
9092         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
9093         (alpha_expand_unaligned_store): Likewise
9094         (alpha_expand_unaligned_load_words): Likewise.
9095         (alpha_expand_unaligned_store_words): Likewise.
9096         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
9097         (alpha_expand_epilogue): Likewise.
9098         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
9099         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
9100         * config/i386/i386.c (legitimize_pic_address): Likewise.
9101         * config/i960/i960.c (setup_incoming_varargs): Likewise.
9102         * config/ia64/ia64.c (spill_restore_mem): Likewise.
9103         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9104         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
9105         * config/mips/mips.c (mips_va_arg): Likewise.
9106         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
9107         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
9108         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
9109         (setup_incoming_varargs, rs6000_va_arg): Likewise.
9110         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
9111         (rs6000_emit_epilogue): Likewise.
9112         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
9113         * config/sparc/sparc.c (sparc_va_arg): Likewise.
9114         * config/v850/v850.c (v850_va_arg): Likewise.
9115
9116 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
9117
9118         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
9119         when fallthru edge is present.
9120         (mege_blocks): Handle case where creation of jump insn
9121         is required.
9122
9123         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
9124         CLEANUP_POST_REGSTACK): New constants.
9125         * except.c (finish_eh_generation): Update call of cleanup_cfg,
9126         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
9127         * output.h (cleanup_cfg): Update prototype.
9128         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
9129         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
9130         cleanup_cfg call; kill missleading comment.
9131         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
9132         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
9133         parameter; control optimizations performed using it.
9134         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9135         try_crossjump_bb): New functions.
9136
9137 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9138
9139         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
9140         extern.
9141         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
9142         pa_output_function_prologue.
9143         * pa-protos.h (pa_output_function_prologue): New prototype.
9144
9145 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9146
9147         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
9148         and low to get correct sign extension in low+high test.
9149
9150 2001-07-11  Janis Johnson <janis@us.ibm.com>
9151
9152         * gcov.c (arcdata): Use gcov_type to fix branch percentage
9153         for large hit count.
9154
9155         * profile.c (branch_prob): Fix .bbg info for computed gotos
9156         and C++ EH code.
9157
9158 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
9159
9160         * stmt.c (parse_output_constraint): New function, split out
9161         from ...
9162         (expand_asm_operands): ... here.  Use parse_output_constraint.
9163         * tree.h (parse_output_constraint): Declare it.
9164
9165 2001-07-11  Richard Henderson  <rth@redhat.com>
9166
9167         * bitmap.c: Comment some functions; fiddle whitespace.
9168         (bitmap_free): Don't export.
9169         (bitmap_element_allocate): Use memset.
9170         * bitmap.h (bitmap_free): Don't declare.
9171
9172 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
9173
9174         * gcse.c, lcm.c, sched-deps.c:
9175         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
9176
9177         * flow.c (flow_loops_find): Free dom if we found no loops, since
9178         we aren't going to save it.
9179
9180         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
9181         done.
9182
9183 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
9184
9185         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
9186
9187 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9188
9189         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
9190         #ifndef DWARF2_DEBUGGING_INFO.
9191
9192 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
9193
9194         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
9195
9196 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
9197
9198         * config/mips/mips.c (gen_int_relational): Tell the caller not to
9199         reverse a branch if a NE comparison is implemented with GTU.
9200
9201 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
9202             H.J. Lu  <hjl@gnu.org>
9203
9204         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
9205         constant addresses.
9206         (call_internal2): Likewise.
9207         (call_value_internal1): Likewise.
9208         (call_value_internal2): Likewise.
9209         (call_value_multiple_internal1): Likewise.
9210         (call_value_multiple_internal2): Likewise.
9211
9212 2001-07-10  Kazu Hirata  <kazu@hxi.com>
9213
9214         * calls.c (emit_library_call_value_1): Fix a comment typo.
9215         * dwarf2out.c (mem_loc_descriptor): Likewise.
9216         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
9217
9218 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
9219
9220         * simplify-rtx.c (simplify_subreg): Fix typo in comment
9221
9222 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9223
9224         * recog.c (offsettable_address_p): Handle LO_SUM case.
9225         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
9226         instead of plus_constant.
9227
9228 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9229
9230         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
9231         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
9232
9233 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9234
9235         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
9236         adjust_address_nv instead of plus_constant.
9237
9238 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9239
9240         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
9241         dwarf2out.o): Depend on debug.h, wrap long lines.
9242         * dbxout.c: Include debug.h.
9243         (dbx_debug_hooks): New.
9244         (dbxout_init): Make static, take just 2 args.
9245         (dbxout_finish): Make static.
9246         * dbxout.h (dbxout_init, dbxout_finish): Delete.
9247         * debug.c: New file.
9248         * debug.h: New file.
9249         * dwarf2out.c: Include debug.h.
9250         (dwarf2_debug_hooks): New.
9251         (dwarf2out_init): Make static.
9252         (dwarf2out_finish): Make static, take 2 args.
9253         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
9254         * dwarfout.c: Include debug.h.
9255         (dwarf_debug_hooks): New.
9256         (dwarfout_init): Make static.
9257         (dwarfout_finish): Make static, take 2 args.
9258         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
9259         * sdbout.c: Include debug.h.
9260         (sdb_debug_hooks): New.
9261         (sdbout_init): Make static, take 2 args.
9262         * sdbout.h (sdbout_init): Delete.
9263         * toplev.c: Include debug.h.
9264         (debug_hooks): New.
9265         (compile_file): Set deubg_hooks based on command line options.
9266         Use the hooks unconditionally rather than conditional compilation.
9267
9268 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
9269
9270         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
9271         first_insn_after_basic_block_note instead.
9272
9273         * df.c (df_bb_refs_unlink): #if 0 out for now.
9274
9275 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
9276
9277         * ssa.h: Add prototype for ssa_const_prop
9278         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
9279         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
9280         (ssa_fast_dce): Remove unused variable
9281
9282 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9283
9284         * diagnostic.c (finish_diagnostic): Rename to
9285         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
9286         calls thourghout.
9287
9288 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
9289
9290         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
9291         .loc support.
9292
9293         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
9294         (dump_file): Only pad the demangled name with spaces if the
9295         mangled name was padded with spaces.
9296
9297 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
9298
9299         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
9300         edge detection.
9301
9302 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9303
9304         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
9305         extraction if no direct load if either EXPAND_CONST_ADDRESS or
9306         EXPAND_INITIALIZER.
9307
9308         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
9309         whether can put offset inside LO_SUM to check mode alignment, not size.
9310
9311 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9312
9313         * doc/tm.texi (Misc): Fix thinko.
9314
9315 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
9316
9317         * regmove.c (replace_in_call_usage): Fix warnings.
9318         * sched-deps.c (add_dependence): Fix warnings.
9319         * simplify-rtx.c (simplify_subreg): Likewise.
9320         Return NULL_RTX instead of NULL.
9321
9322         * reg-stack.c (emit_swap_insn): Eliminate warnings.
9323         (subst_asm_stack_regs): Likewise.
9324
9325         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
9326         warnings.
9327
9328         * dwarf2out.c (output_call_frame_info): Declare i as int.
9329         (build_abbrev_table): Declare n_alloc as int.
9330         (dwarf2out_finish): Initialize die.
9331         * except.c: Declare sjlj_funcdef_number as unsigned.
9332         (connect_post_landing_pads): Declare j as unsigned.
9333         (convert_to_eh_region_ranges): Initialize call_site.
9334         (output_function_exception_table): Initialize tt_format_size.
9335         * expr.c (move_by_pieces_1): Initialize to1.
9336         (store_constructor): Initialize minelt and maxelt.
9337         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
9338         * function.c (instantiate_decls): Avoid signed/unsigned warning.
9339
9340         * c-decl.c (combine_parm_decls): Unused, remove.
9341         * c-tree.h: Remove prototype for combine_parm_decls.
9342
9343         * reload.c (push_reload): Fix warning.
9344         (regno_clobbered_p): Likewise.
9345         * reload1.c (replace_pseudos_in_call_usage): Likewise.
9346         (reload_combine): Likewise.
9347
9348         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
9349         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
9350         warnings.
9351         * bitmap.c (bitmap_operation): Change user.
9352         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
9353
9354 2001-07-10  Eric Christopher  <echristo@redhat.com>
9355
9356         * config/mips/mips.c (override_options): Fix typo.
9357
9358 2001-07-09  Stan Shebs  <shebs@apple.com>
9359
9360         * target.h (struct gcc_target): New fields init_builtins and
9361         expand_builtin.
9362         * target-def.h (TARGET_INIT_BUILTINS): New macro.
9363         (TARGET_EXPAND_BUILTIN): New macro.
9364         (TARGET_INITIALIZER): Add them.
9365         * builtins.c: Include target.h.
9366         (expand_builtin): Use targetm.expand_builtin.
9367         (default_init_builtins): New function.
9368         (default_expand_builtin): New function.
9369         * expr.h (default_init_builtins): Declare.
9370         (default_expand_builtin): Declare.
9371         * c-common.c (c_common_nodes_and_builtins): Use
9372         targetm.init_builtins.
9373         * defaults.h (MD_INIT_BUILTINS): Remove.
9374         * Makefile.in (builtins.o): Depend on target.h.
9375
9376         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
9377         (TARGET_EXPAND_BUILTIN): Define.
9378         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
9379         (MD_EXPAND_BUILTIN): Remove.
9380
9381         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
9382         (TARGET_EXPAND_BUILTIN): Define.
9383         (c4x_init_builtins): Make endlink arg a local.
9384         (c4x_print_operand): Fix typos in adjust_address usages.
9385         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
9386         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
9387         (MD_EXPAND_BUILTIN): Remove.
9388
9389         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
9390         (TARGET_EXPAND_BUILTIN): Define.
9391         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
9392         (ix86_init_builtins): Call new function only if TARGET_MMX.
9393         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
9394         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
9395         (MD_EXPAND_BUILTIN): Remove.
9396
9397         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
9398         (TARGET_EXPAND_BUILTIN): Define.
9399         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
9400         (MD_EXPAND_BUILTIN): Remove.
9401
9402         * doc/tm.texi: Document these changes.
9403
9404 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
9405
9406         * basic-block.h (tree_node): Forward declare if needed.
9407         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
9408         (BLOCK_HEAD_TREE): Define.
9409         (BLOCK_END_TREE): Define.
9410         (struct loops): Rename field 'tree' to 'tree_root'.
9411         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
9412         'end_tree'.
9413         (flow_loops_tree_build): Rename reference to field 'tree' to
9414         'tree_root'.
9415         (flow_loops_level_compute): Ditto.
9416         * predict.c (estimate_bb_frequencies): Ditto.
9417         * tree.h (struct tree_common): Add field 'aux'.
9418
9419 2001-07-09  Stan Shebs  <shebs@apple.com>
9420
9421         * config/darwin.c (darwin_encode_section_info): Don't mark any
9422         DECL_EXTERNAL node as defined.
9423
9424 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9425
9426         * pa.c (pa_init_machine_status, pa_mark_machine_status,
9427         pa_free_machine_status, hppa_init_pic_save): Delete.
9428         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
9429         (hppa_profile_hook): Use hppa_pic_save_rtx.
9430         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
9431         hppa_init_pic_save): Delete.
9432         (hppa_pic_save_rtx): Declare.
9433         * pa.md (call, call_value, sibcall, sibcall_value,
9434         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
9435
9436 2001-07-09  Kazu Hirata  <kazu@hxi.com>
9437
9438         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
9439         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
9440
9441 2001-07-09  Andreas Jaeger  <aj@suse.de>
9442
9443         * output.h: Add declaration of final_forward_branch_p.
9444
9445         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
9446
9447         * varray.c: Include errors.h for internal_error and trim_filename
9448         declarations.
9449
9450         * Makefile.in (varray.o): Add errors.h.
9451
9452 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
9453
9454         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
9455         * optabs.c (have_add2_insn): Check whether the add insn chosen
9456         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
9457         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
9458
9459 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
9460
9461         * Makefile.in (OBJS): Add ssa-ccp.o
9462         (ssa-ccp.o): Add dependencies.
9463         * toplev.c (DFI_ssa_ccp): New dump file enum.
9464         (dump_file): Add entry for dumping after SSA CCP.
9465         (flag_ssa_ccp): New flag variable.
9466         (f_options): Add -fssa-ccp.
9467         (rest_of_compilation): Run SSA CCP if requested.
9468         * timevar.def (TV_SSA_CCP): New timevar.
9469         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
9470         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
9471         Fix minor typo in SSA DCE documentation.
9472         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
9473         Add documentation for new dump option.  Renumber dump files
9474         appropriately.
9475
9476 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
9477
9478         * emit-rtl.c (gen_highpart_mode): New.
9479         * rtl.h (gen_highpart_mode): Declare.
9480         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
9481         operand can be VOIDmode constant.
9482
9483 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
9484
9485         * flow.c (redirect_edge_and_branch_force): New.
9486         (can_fallthru): Ensure that basic blocks are succeeding.
9487         (try_optimize_cfg): Do not delete basic block if it is the last one.
9488
9489         * flow.c (try_redirect_by_replacing_jump): Do not remove
9490         jumps with side effects, unlink chain on fallthru edge;
9491         set block for new jump instruction; avoid basic block to
9492         over by line number note.
9493
9494         * flow.c (try_simplify_condjump): Verify that the condjump
9495         is not always falling trought.
9496
9497         Re-install patch:
9498         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
9499
9500         * flow.c (forwarder_block_p): Fix for fallthru blocks.
9501         (try_redirect_by_replacing_jump): Update properly the count
9502         and frequency information.
9503
9504 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9505
9506         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
9507         address that is a LO_SUM specially.
9508         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
9509
9510         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
9511
9512         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
9513         (operand_subword): Use them.
9514         (change_address_1): Renamed from change_address; new arg VALIDATE.
9515         * expr.h: Reflect above changes; change_address now macro.
9516         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
9517         making MEM.
9518         * cselib.c (add_mem_for_addr): Likewise.
9519         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
9520         * regmove.c (try_apply_stack_adjustment): Likewise.
9521         * reload.c (push_reload, make_memloc): Likewise.
9522         * reload1.c (eliminate_regs): Likewise.
9523         * simplify-rtx.c (simplify_replace_rtx): Likewise.
9524         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
9525         adjust_addess.
9526         * combine.c (make_extraction, simplify_shift_const): Likewise.
9527         (gen_lowpart_for_combine): Likewise.
9528         * cse.c (gen_lowpart_if_possible): Likewise.
9529         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
9530         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
9531         * optabs.c (gen_move_insn): Likewise.
9532         * reload1.c (alter_reg): Likewise.
9533         * simplify-rtx.c (simplify_subreg): Likewise.
9534         * stmt.c (expand_anon_union_decl): Likewise.
9535         * recog.c (validate_replace_rtx_1): Likewise.
9536         (expr.h): Include.
9537         * Makefile.in (recog.o): Add $(EXPR_H).
9538         * explow.c (stabilize): Call replace_equiv_address.
9539         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
9540         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
9541
9542 2001-07-03  Andrew Haley  <aph@redhat.com>
9543
9544         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
9545         the mode of the memory location.
9546
9547 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
9548
9549         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
9550
9551 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9552
9553         * final.c (output_addr_const): Use target opening and
9554         closing parentheses.
9555         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
9556         defaults, add to TARGET_ASM_OUT.
9557         * target.h (struct gcc_target): Add open_paren and close_paren.
9558         * doc/md.texi: Update.
9559         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
9560         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
9561         TARGET_ASM_CLOSE_PAREN.
9562         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
9563         Override.
9564         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
9565         Override.
9566         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
9567         * config/a29k/a29k.h: Similarly.
9568         * config/alpha/alpha.h: Similarly.
9569         * config/arc/arc.h: Similarly.
9570         * config/arm/aof.h: Similarly.
9571         * config/arm/aout.h: Similarly.
9572         * config/avr/avr.h: Similarly.
9573         * config/c4x/c4x.h: Similarly.
9574         * config/clipper/clipper.h: Similarly.
9575         * config/convex/convex.h: Similarly.
9576         * config/d30v/d30v.h: Similarly.
9577         * config/dsp16xx/dsp16xx.h: Similarly.
9578         * config/elxsi/elxsi.h: Similarly.
9579         * config/fr30/fr30.h: Similarly.
9580         * config/h8300/h8300.h: Similarly.
9581         * config/i370/i370.h: Similarly.
9582         * config/i386/i386.h: Similarly.
9583         * config/i860/i860.h: Similarly.
9584         * config/i960/i960.h: Similarly.
9585         * config/ia64/ia64.h: Similarly.
9586         * config/m32r/m32r.h: Similarly.
9587         * config/m68hc11/m68hc11.h: Similarly.
9588         * config/m68k/m68k.h: Similarly.
9589         * config/m88k/m88k.h: Similarly.
9590         * config/mcore/mcore.h: Similarly.
9591         * config/mips/mips.h: Similarly.
9592         * config/mn10200/mn10200.h: Similarly.
9593         * config/mn10300/mn10300.h: Similarly.
9594         * config/ns32k/ns32k.h: Similarly.
9595         * config/pa/pa.h: Similarly.
9596         * config/pdp11/pdp11.h: Similarly.
9597         * config/pj/pj.h: Similarly.
9598         * config/romp/romp.h: Similarly.
9599         * config/rs6000/rs6000.h: Similarly.
9600         * config/sh/sh.h: Similarly.
9601         * config/sparc/sparc.h: Similarly.
9602         * config/v850/v850.h: Similarly.
9603         * config/vax/vax.h: Similarly.
9604         * config/we32k/we32k.h: Similarly.
9605
9606 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
9607
9608         * doc/c-tree.texi: Document representation of attributes.
9609
9610 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9611
9612         * doc/tm.texi: Update some places for the rename of target to
9613         targetm.  Fix typo.
9614
9615 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9616
9617         * target.h (struct gcc_target): Add insert_attributes.
9618         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
9619         (TARGET_INITIALIZER): Update.
9620         * tree.c, tree.h (default_insert_attributes): New function.
9621         Update comments on other default functions to refer to targetm,
9622         not target.
9623         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
9624         TARGET_INSERT_ATTRIBUTES.
9625         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
9626         * c-common.c (decl_attributes): Use targetm.insert_attributes.
9627         Don't use PRAGMA_INSERT_ATTRIBUTES.
9628         * Makefile.in (c-common.o): Depend on $(TARGET_H).
9629         * c-decl.c (start_decl, start_function): Don't call
9630         SET_DEFAULT_DECL_ATTRIBUTES.
9631         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
9632         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
9633         declare.
9634         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
9635         (c4x_check_attribute): Avoid modifying attribute list itself.
9636         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
9637         Make static.
9638         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
9639         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
9640         declare.
9641         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
9642         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
9643         Make static.
9644         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
9645         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
9646         declare.
9647         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
9648         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
9649         Adjust parameters.  Make static.
9650
9651 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9652
9653         * c-common.c (decl_attributes): Only take a single attributes
9654         parameter.
9655         * c-common.h (decl_attributes): Update prototype.
9656         * c-decl.c (start_decl, start_function): Only take a single
9657         attributes parameter.  Update calls to decl_attributes.
9658         (finish_struct, finish_enum): Update calls to decl_attributes.
9659         (push_parm_decl): Expect unified list of attributes.  Update call
9660         to decl_attributes.
9661         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
9662         notype_nested_function, component_declarator,
9663         component_notype_declarator, label): Update calls to
9664         decl_attributes.
9665         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
9666         lists that are passed to push_parm_decl.
9667         * c-tree.h (start_function, start_decl): Update prototypes.
9668         * config/sh/sh-protos.h, config/sh/sh.c
9669         (sh_pragma_insert_attributes): Only take a single attributes
9670         parameter.
9671         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
9672         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
9673         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
9674         build_module_descriptor, generate_static_references,
9675         generate_strings, build_selector_translation_table,
9676         generate_descriptor_table, generate_protocols,
9677         generate_ivars_list, generate_dispatch_table,
9678         generate_protocol_list, generate_category,
9679         generate_shared_structures, really_start_method, add_objc_decls,
9680         generate_classref_translation_entry): Update calls to start_decl
9681         and start_function.
9682         (build_tmp_function_decl, start_method_def): Unify attribute lists
9683         that are passed to push_parm_decl.
9684
9685 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9686
9687         * final.c (no_asm_to_stream): New.
9688         (final_scan_insn): Use target structures for prologue ends
9689         and epilogue starts.
9690         * output.h (no_asm_to_stream): New.
9691         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
9692         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
9693         (TARGET_ASM_OUT): Update.
9694         * target.h (struct gcc_target): New members function_end_prologue
9695         and function_begin_epilogue.
9696         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
9697         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
9698         * config/alpha/alpha.c (output_end_prologue): Rename to
9699         alpha_output_function_end_prologue.  Use in target struct
9700         and make static.
9701         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
9702         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
9703         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
9704         ia64_output_function_end_prologue.  Use in target struct
9705         and make static.
9706         (ia64_function_prologue, ia64_funciton_epilogue): Rename
9707         mistyped prototypes.
9708         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
9709         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
9710         Delete.
9711         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
9712         an use in target struct, make static.
9713         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
9714         Delete.
9715
9716 2001-07-08  Richard Henderson  <rth@redhat.com>
9717
9718         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
9719
9720 2001-07-08  Richard Henderson  <rth@redhat.com>
9721
9722         * config/i386/i386.md: Remove constraints strings from define_split
9723         and define_peephole2 patterns.
9724         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
9725         (eh_return): Use them.
9726
9727 2001-07-08  Richard Henderson  <rth@redhat.com>
9728
9729         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
9730         Document MD_FALLBACK_FRAME_STATE_FOR.
9731
9732 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9733
9734         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
9735         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
9736         elimination.
9737         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
9738
9739 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
9740
9741         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
9742         of the label inside NAME as opposed to just the end of NAME.
9743
9744 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9745
9746         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
9747         * config/alpha/alpha.c (alpha_init_machine_status,
9748         alpha_mark_machine_status, alpha_free_machine_status): Delete.
9749         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
9750         (vms_valid_decl_attribute_p): Make static, conditionally compile.
9751         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
9752
9753 2001-07-06  Stan Shebs  <shebs@apple.com>
9754
9755         * target.h (targetm): Rename global from "target", so as not to
9756         conflict with local variables.
9757         * c-decl.c: Ditto.
9758         * c-typeck.c: Ditto.
9759         * final.c: Ditto.
9760         * tree.c: Ditto.
9761         * cp/decl.c: Ditto.
9762         * cp/decl2.c: Ditto.
9763         * cp/typeck.c: Ditto.
9764         * 1750a/1750a.c: Ditto.
9765         * a29k/a29k.c: Ditto.
9766         * arc/arc.c: Ditto.
9767         * arm/arm.c: Ditto.
9768         * avr/avr.c: Ditto.
9769         * clipper/clipper.c: Ditto.
9770         * convex/convex.c: Ditto.
9771         * d30v/d30v.c: Ditto.
9772         * dsp16xx/dsp16xx.c: Ditto.
9773         * elxsi/elxsi.c: Ditto.
9774         * fr30/fr30.c: Ditto.
9775         * h8300/h8300.c: Ditto.
9776         * i370/i370.c: Ditto.
9777         * i386/i386.c: Ditto.
9778         * i860/i860.c: Ditto.
9779         * i960/i960.c: Ditto.
9780         * ia64/ia64.c: Ditto.
9781         * m32r/m32r.c: Ditto.
9782         * m68hc11/m68hc11.c: Ditto.
9783         * m68k/m68k.c: Ditto.
9784         * m88k/m88k.c: Ditto.
9785         * mips/mips.c: Ditto.
9786         * ns32k/ns32k.c: Ditto.
9787         * pa/pa.c: Ditto.
9788         * pdp11/pdp11.c: Ditto.
9789         * romp/romp.c: Ditto.
9790         * rs6000/rs6000.c: Ditto.
9791         * sh/sh.c: Ditto.
9792         * sparc/sparc.c: Ditto.
9793         * vax/vax.c: Ditto.
9794         * we32k/we32k.c: Ditto.
9795         * doc/tm.texi: Update the manual to match.
9796
9797 2001-07-06  Richard Henderson  <rth@redhat.com>
9798
9799         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
9800         DWARF2_UNWIND_INFO not just whether it is defined.
9801
9802 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
9803
9804         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
9805         call to simplify_binary_operation returns a new pattern.
9806
9807 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9808
9809         * glimits.h (__SHRT_MAX__): New.
9810         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
9811         (SHRT_MAX): Define in terms of __SHRT_MAX__.
9812
9813 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
9814
9815         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
9816         avoid warnings.
9817
9818 2001-07-06  Richard Henderson  <rth@redhat.com>
9819
9820         * bitmap.c (bitmap_release_memory): Move adjacent to the
9821         allocation functions.
9822         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
9823         the implementation.  Binary search for the set bit.
9824         (bitmap_union_of_diff): Allocate the temporary on the stack
9825         instead of using xmalloc.
9826
9827 2001-07-06  Richard Henderson  <rth@redhat.com>
9828
9829         * genrecog.c (validate_pattern): Warn for constraints in
9830         define_{expand,split,peephole2}.  Remove strict_low_part
9831         before looking up match_dup.
9832
9833 2001-07-06  DJ Delorie  <dj@redhat.com>
9834
9835         * doc/gcc.texi (Makefile): Rename to be a more general purpose
9836         chapter about various build hints and history.  Add section
9837         talking about the various types of native and cross builds.
9838
9839 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9840
9841         * Makefile.in (final.o): Depend on target.h.
9842         * final.c: Include target.h.
9843         (default_function_pro_epilogue): New.
9844         (final_start_function): Use target structure for function prologues.
9845         (final_end_function): Use target structure for function epilogues.
9846         * fold-const.c (real_hex_to_f): Constify s and p.
9847         * output.h (default_function_pro_epilogue): New.
9848         * real.h (real_hex_to_f): Update prototype.
9849         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
9850         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
9851         (TARGET_INITIALIZER): Update.
9852         * target.h (gcc_target): Add struct asm_out.
9853         * doc/tm.texi: Update.
9854
9855 config:
9856         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
9857         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
9858         in cpu/cpu.c, or rename old functions consistently.  Take
9859         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
9860         redundant macros and prototypes.  Make new functions static.
9861
9862         * 1750a/1750a.c: Similarly.
9863         * 1750a/1750a.h: Similarly.
9864         * a29k/a29k-protos.h: Similarly.
9865         * a29k/a29k.c: Similarly.
9866         * a29k/a29k.h: Similarly.
9867         * arc/arc-protos.h: Similarly.
9868         * arc/arc.c: Similarly.
9869         * arc/arc.h: Similarly.
9870         * arm/arm-protos.h: Similarly.
9871         * arm/arm.c: Similarly.
9872         * arm/arm.h: Similarly.
9873         * avr/avr-protos.h: Similarly.
9874         * avr/avr.c: Similarly.
9875         * avr/avr.h: Similarly.
9876         * clipper/clipper-protos.h: Similarly.
9877         * clipper/clipper.c: Similarly.
9878         * clipper/clipper.h: Similarly.
9879         * convex/convex.c: Similarly.
9880         * convex/convex.h: Similarly.
9881         * d30v/d30v-protos.h: Similarly.
9882         * d30v/d30v.c: Similarly.
9883         * d30v/d30v.h: Similarly.
9884         * d30v/d30v.md: Similarly.
9885         * dsp16xx/dsp16xx-protos.h: Similarly.
9886         * dsp16xx/dsp16xx.c: Similarly.
9887         * dsp16xx/dsp16xx.h: Similarly.
9888         * elxsi/elxsi.c: Similarly.
9889         * elxsi/elxsi.h: Similarly.
9890         * fr30/fr30.c: Similarly.
9891         * fr30/fr30.md: Similarly.
9892         * h8300/h8300-protos.h: Similarly.
9893         * h8300/h8300.c: Similarly.
9894         * h8300/h8300.h: Similarly.
9895         * i370/i370-protos.h: Similarly.
9896         * i370/i370.c: Similarly.
9897         * i370/i370.h: Similarly.
9898         * i386/i386.c: Similarly.
9899         * i386/osf1elf.h: Similarly.
9900         * i386/osfrose.h: Similarly.
9901         * i860/i860-protos.h: Similarly.
9902         * i860/i860.c: Similarly.
9903         * i860/i860.h: Similarly.
9904         * i960/i960-protos.h: Similarly.
9905         * i960/i960.c: Similarly.
9906         * i960/i960.h: Similarly.
9907         * ia64/ia64-protos.h: Similarly.
9908         * ia64/ia64.c: Similarly.
9909         * ia64/ia64.h: Similarly.
9910         * m32r/m32r-protos.h: Similarly.
9911         * m32r/m32r.c: Similarly.
9912         * m32r/m32r.h: Similarly.
9913         * m68hc11/m68hc11-protos.h: Similarly.
9914         * m68hc11/m68hc11.c: Similarly.
9915         * m68hc11/m68hc11.h: Similarly.
9916         * m68k/crds.h: Similarly.
9917         * m68k/dpx2.h: Similarly.
9918         * m68k/m68k-protos.h: Similarly.
9919         * m68k/m68k.c: Similarly.
9920         * m68k/m68k.h: Similarly.
9921         * m68k/news.h: Similarly.
9922         * m88k/m88k-protos.h: Similarly.
9923         * m88k/m88k.c: Similarly.
9924         * m88k/m88k.h: Similarly.
9925         * mips/mips-protos.h: Similarly.
9926         * mips/mips.c: Similarly.
9927         * mips/mips.h: Similarly.
9928         * ns32k/merlin.h: Similarly.
9929         * ns32k/ns32k.c: Similarly.
9930         * ns32k/ns32k.h: Similarly.
9931         * ns32k/tek6000.h: Similarly.
9932         * pa/pa-protos.h: Similarly.
9933         * pa/pa.c: Similarly.
9934         * pa/pa.h: Similarly.
9935         * pdp11/2bsd.h: Similarly.
9936         * pdp11/pdp11-protos.h: Similarly.
9937         * pdp11/pdp11.c: Similarly.
9938         * pdp11/pdp11.h: Similarly.
9939         * romp/romp-protos.h: Similarly.
9940         * romp/romp.c: Similarly.
9941         * romp/romp.h: Similarly.
9942         * rs6000/rs6000-protos.h: Similarly.
9943         * rs6000/rs6000.c: Similarly.
9944         * rs6000/rs6000.h: Similarly.
9945         * rs6000/sysv4.h: Similarly.
9946         * sh/sh-protos.h: Similarly.
9947         * sh/sh.c: Similarly.
9948         * sh/sh.h: Similarly.
9949         * sparc/sparc-protos.h: Similarly.
9950         * sparc/sparc.c: Similarly.
9951         * sparc/sparc.h: Similarly.
9952         * vax/vax.c: Similarly.
9953         * vax/vax.h: Similarly.
9954         * vax/vms.h: Similarly.
9955         * we32k/we32k.c: Similarly.
9956         * we32k/we32k.h: Similarly.
9957
9958 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
9959
9960         * basic-block.h (first_insn_after_basic_block_note): Declare.
9961         * flow.c (first_insn_after_basic_block_note): Define.  Moved
9962         from...
9963         * ssa.c (first_insn_after_basic_block_note): Remove.
9964         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
9965         necessary.
9966         (ssa_eliminate_dead_code): Properly update the CFG and PHI
9967         nodes when we find a dead conditional branch.  Insert BARRIERs
9968         after any blocks with no successors, but which do not have
9969         any BARRIERs.
9970
9971 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
9972
9973         * varray.c (varray_check_failed): Use internal_error.
9974
9975 2001-07-05  Andrew Haley  <aph@redhat.com>
9976
9977         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
9978         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
9979         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
9980
9981 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
9982
9983         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
9984         reference if the target constant is also a SYMBOL_REF.
9985
9986 2001-07-05  Eric Christopher  <echristo@redhat.com>
9987
9988         * config/mips/mips.h (MASK_MIPS3900): Remove.
9989         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
9990         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
9991         (TARGET_MIPS3900): Change to use mips_arch.
9992         (TARGET_MIPS4000): New.
9993         (TARGET_MIPS4100): New.
9994         (TARGET_MIPS4300): New.
9995         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
9996         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
9997         for -mipsX.
9998         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
9999         (ISA_HAS_BRANCHLIKELY): To here.
10000         (CC1_CPU_SPEC):  New.
10001         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
10002         (mips_arch_string): Declare.
10003         (mips_arch): Declare.
10004         (TARGET_OPTIONS): Add -march and -mtune.
10005
10006         * config/mips/mips.c (mips_arch_string): New.
10007         (mips_arch): New.
10008         (override_options): Handle -march for codegen and -mtune
10009         for scheduling. Use mips_arch. Move tx39 target default here.
10010         (mips_parse_cpu): Move error message to override_options.
10011
10012         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
10013
10014         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
10015
10016         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
10017         (MIPS Options): Ditto.  Change mcpu entry to historical text.
10018
10019 2001-07-05  H.J. Lu  (hjl@gnu.org)
10020
10021         * config/mips/mips.c (mips_parse_cpu): New function to parse
10022         -march=*/-mcpu=*.
10023
10024 2001-07-05  Jim Wilson  <wilson@redhat.com>
10025
10026         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
10027         * config/ia64/t-ia64: Likewise.
10028         (LIB1ASMFUNCS): Update comment.
10029
10030 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
10031
10032         * doc/install.texi (Install GCC: Binaries): Fix typo.
10033
10034 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10035
10036         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
10037         reference using the stack pointer, adjust it since we push Y
10038         temporarily.
10039         ("*ashrsi3"): Likewise.
10040         ("*lshrsi3"): Likewise.
10041
10042 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10043
10044         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
10045         when -fomit-frame-pointer is used.
10046
10047 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
10048
10049         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
10050         (try_redirect_by_replacing_jump): Reverse updating properly the
10051         count and frequency information.  Reverse removing cc0 setter.
10052         (forwarder_block_p): Reverse fixing for fallthru blocks.
10053
10054 2001-07-05  DJ Delorie  <dj@redhat.com>
10055
10056         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
10057         (translate_options): If the above is defined, use it to map
10058         given options to new options.
10059         * doc/tm.texi: Document it.
10060
10061 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
10062             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10063
10064         * doc/invoke.texi (Optimize Options): Document that -fgcse may
10065         cause programs using computed gotos to run more slowly.
10066
10067 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10068
10069         * doc/install.texi (Specific): Markup, spelling and typo fixes.
10070         Fixed sorting.
10071         Consistently require binutils 2.11.2, not prereleases.
10072         (Specific, decstation-*): Canonicalize as mips-dec-*.
10073         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
10074         always necessary.
10075         (Specific, m68k-altos): Removed reference to README.altos, deleted.
10076         (Specific, mips-*): Reword MIPS C compiler requirements.
10077         (Specific, powerpc*-*-*): New, mention --with-cpu once.
10078         (Specific, sunv5): Removed, obsolete.
10079
10080 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
10081
10082         * dwarf2out.c (output_loc_list): Use an all ones mask for
10083         .text asm output and don't rely on long long
10084         literals. Reformat some long lines.
10085
10086 2001-07-05  Andreas Jaeger  <aj@suse.de>
10087
10088         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
10089         section.
10090
10091 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
10092
10093         * dwarf2out.c (dwarf2out_define): Update comment.
10094         (dwarf2out_undef): Ditto.
10095         (dwarf2out_start_source_file): Ditto.
10096         (dwarf2out_end_source_file): Ditto.
10097         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
10098         since we never call the start/end debug hook for the primary file.
10099
10100 2001-07-04  Kazu Hirata  <kazu@hxi.com>
10101
10102         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
10103         from shll.
10104
10105 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
10106
10107         * cppinit.c (remove_dup_dirs): Inform if a system include
10108         directory is being reordered.
10109         * doc/invoke.texi (Directory Options): GCC warns if you hide a
10110         system include.
10111         * doc/cpp.texi (Search Paths): Likewise.
10112         * doc/gcc.texi (Interoperation): Remove information about
10113         -I/usr/include.
10114
10115 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
10116
10117         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
10118         (VARRAY_TOP_CHAR_PTR): Likewise.
10119
10120 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10121
10122         * gcc.c (process_command): Don't assign elements of a const char*.
10123
10124 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10125
10126         * emit-rtl.c (change_address): Don't abort if invalid address while
10127         reload is in progress.
10128
10129 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
10130
10131         * c-lex.c (cb_file_change): Pass line number to
10132         debug_start_source_file.
10133         (cb_undefine): Pass correct line number to debug_undef.
10134
10135         * toplev.c (debug_start_source_file): Add line number to
10136         parameters. Pass it along to dwarf2out_start_source_file.
10137         (decode_g_option): Stop resetting debug level back to normal when
10138         we change debug formats, unless the current level is
10139         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
10140         3).
10141
10142         * toplev.h (debug_start_source_file): Add line number to
10143         parameters.
10144
10145         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
10146         parameters.
10147
10148         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
10149         parameters.
10150         Output debug_macinfo data for starting file if requested.
10151         (dwarf2out_end_source_file): Output debug_macinfo data for ending
10152         file if requested.
10153         (dwarf2out_define): Output debug_macinfo data for defining a macro
10154         if requested.
10155         (dwarf2out_undef): Output debug_macinfo data for undefining a
10156         macro if requested.
10157         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
10158         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
10159         (macinfo_section_label): New. DWARF2 macro info section label.
10160         (dwarf2out_init): If we want macro info, output the start label
10161         for the section.
10162         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
10163         attribute to the compilation unit die pointing to the macro info.
10164
10165 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
10166
10167         * dwarf2out.c (new_loc_list): Move to inside #ifdef
10168         DWARF2_DEBUGGING_INFO.
10169         (add_loc_descr_to_loc_list): Ditto.
10170         (output_loc_list): Ditto.
10171         Also, fix thinko in curr not being initialized.
10172         (gen_internal_sym): Ditto.
10173
10174 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10175
10176         * emit-rtl.c (replace_equiv_address): New function.
10177         * expr.h (replace_equiv_address): New declaration.
10178         * explow.c (validize_mem): Call it instead of change_address and
10179         also call if -fforce-addr and address is constant.
10180         * expr.c: Replace more calls to change_address with adjust_address
10181         and/or replace_equiv_address or to validize_mem.
10182         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
10183         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
10184         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
10185         * config/i370/i370.md, config/i860/i860.md: Likewise.
10186         * config/i960/i960.md, config/mips/mips.c: Likewise.
10187         * config/mips/mips.md, config/pa/pa.md: Likewise.
10188         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
10189         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
10190
10191 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10192
10193         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
10194
10195         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
10196         function.
10197
10198 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10199
10200         * doc/include: New directory.
10201         * doc/fdl.texi: Move to doc/include/fdl.texi.
10202         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
10203         * doc/include/funding.texi, doc/include/gpl.texi: New files.
10204         * doc/gcc.texi: Use funding.texi and gpl.texi.
10205         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
10206         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
10207         Update dependencies and use -I $(docdir)/include.
10208
10209 2001-07-04  Anthony Green  <green@redhat.com>
10210
10211         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
10212
10213 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10214
10215         * doc/install.texi (sparc64-*-*): Remove garbage.
10216
10217 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
10218
10219         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
10220         Fix typo in last change to use adjust_address.
10221
10222 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10223
10224         * doc/install.texi (Specific): Update information for *-*-solaris*.
10225
10226 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10227
10228         * explow.c (plus_constant_wide): Reinitialize Y for restart.
10229
10230 2001-07-03  Stan Shebs  <shebs@apple.com>
10231
10232         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
10233         case for flag_no_mach_text_sections.
10234         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
10235         * config/darwin.c (flag_no_mach_text_sections): Remove.
10236         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
10237
10238 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10239
10240         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
10241         and avoid checking for constant as first operand.
10242         * recog.c (find_constant_term_loc): No longer static.
10243         (adj_offettable_operand): Delete.
10244         * rtl.h (adj_offsettable_operand): Delete declaration.
10245         (find_constant_term): Add declaration.
10246         * caller-save.c: Replace calls to adj_offsettable_operand with calls
10247         to adjust_address.
10248         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
10249         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
10250         * config/i386/i386.c, config/i386/i386.md: Likewise.
10251         * config/i860/i860.c, config/i960/i960.c: Likewise.
10252         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
10253         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
10254         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
10255         * config/mips/mips.c, config/mips/mips.md: Likewise.
10256         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
10257         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
10258         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
10259         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
10260         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
10261         * config/ns32k/ns32k.md: Likewise.
10262
10263 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
10264
10265         * rtl.c (copy_rtx): Handle 'T' format letter.
10266         * gensupport.c (collect_insn_data): Likewise.
10267         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
10268
10269 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
10270
10271         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
10272         -B option.  Use 'dir' not 'foo' as example directory name.
10273
10274 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10275
10276         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10277         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
10278
10279 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10280
10281         * doc/cppinternals.texi: Improve formatting and logical markup.
10282
10283 2001-07-03  Andreas Jaeger  <aj@suse.de>
10284
10285         * Makefile.in (insn-recog.o): Add dependency on reload.h.
10286
10287         * genrecog.c (write_header): Include reload.h for prototypes in
10288         insn-recog.c.
10289
10290 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10291
10292 config:
10293         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
10294         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
10295         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
10296         i386_pe_valid_type_attribute_p): Add.
10297         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
10298         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
10299
10300 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10301
10302         * explow.c (plus_constant_wide, case LO_SUM): New case.
10303         (plus_constant_for_output_wide): Delete.
10304         * rtl.h (plus_constant_for_output): Delete.
10305         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
10306         instead of plus_constant_for_output.
10307         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
10308         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
10309         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
10310         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
10311         * config/sparc/sparc.md: Likewise.
10312         Convert some change_address calls to adjust_address.
10313
10314 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10315
10316         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
10317         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
10318         documentation of -std and -Wwrite-strings.
10319
10320 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
10321
10322         * cse.c (canon_hash): Don't register registers in very small
10323         register classes, as extending their lifetime might cause
10324         reload to fail.
10325
10326 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10327
10328         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
10329
10330         * flow.c (forwarder_block_p): Fix for fallthru blocks.
10331         (try_redirect_by_replacing_jump): Update properly the count
10332         and frequency information.
10333
10334 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
10335
10336         * toplev.c (dump_file_index): Move SSA dumps just after first
10337         jump dump.
10338         (dump_file): Corresponding changes.
10339         (rest_of_compilation): Move SSA path to just after the first
10340         jump pass.
10341         * doc/gcc.texi (Passes): Update due to movement of SSA path.
10342         * doc/invoke.texi: Update dump file #s as they were completely
10343         out of date with reality.
10344
10345 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
10346
10347         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
10348
10349         * expr.c (emit_move_insn_1): Deal with non-default
10350         STACK_PUSH_CODE.
10351
10352         * expr.c (emit_single_push_insn): Fix warning.
10353
10354 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10355
10356         * expr.c (emit_move_insn_1): Avoid modifying
10357         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
10358
10359 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10360
10361         * emit-rtl.c (adjust_address): New function.
10362         * expr.h (adjust_address): Add declaration.
10363         * builtins.c: Replace some calls to change_address with calls to it
10364         or to validize_mem.
10365         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
10366         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
10367         * config/arm/arm.c, config/convex/convex.c: Likewise.
10368         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
10369         * config/i386/i386.c, config/i386/i386.md: Likewise.
10370         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
10371         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
10372         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
10373         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
10374         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
10375
10376 2001-07-02  Jim Wilson  <wilson@redhat.com>
10377
10378         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
10379
10380 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
10381
10382         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
10383         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
10384
10385 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
10386
10387         * cppinit.c (lang_defaults): New table.
10388         (set_lang): Just read from lang_defaults into the live options
10389         structure.
10390
10391 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
10392
10393         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
10394         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
10395         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
10396
10397 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10398
10399         * doc/install.texi: Various spelling and markup fixes.
10400         (Installing GCC): Component specific installation instructions are
10401         gone.
10402         Fix reference.
10403         Warn about removing old install dir in the presence of shared libs.
10404         (Configuration): Invoke with options target to match configure
10405         --help.
10406         Consistently refer to gas, gld pathnames.
10407         Invert --enable-multilib documentation.
10408         Remove references to old compiler versions.
10409
10410 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10411
10412         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
10413
10414 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10415
10416         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
10417         section.
10418         (Specific, mips*-sgi-irix5): Note IDO download.
10419         Reworded MIPS C hints.
10420         Use GNU as instead of GAS.
10421         Markup fixes.
10422         Removed SGI Freeware reference, IRIX 6 only.
10423         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
10424         Note N64 library requirement/workaround.
10425         Update O32 hints.
10426         Complete list of structure passing bug victims.
10427
10428 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10429
10430         * doc/install.texi: Remove CVS Id.
10431
10432 2001-07-02  Andreas Jaeger  <aj@suse.de>
10433
10434         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
10435         (find_inherently_necessary): Remove unused variable.
10436
10437 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
10438
10439         * c-common.h (TDI_inlined): New ast dump phase.
10440         (dump_flag_name): New function.
10441         * c-dump.c (dump_files): Add inlined phase.
10442         (dump_flag_name): Define.
10443         * doc/invoke.texi (-fdump-ast-inlined): Document.
10444
10445 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10446
10447         * stor-layout.c (layout_decl): Revert change to handling of alignment
10448         in packed types.
10449
10450 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10451
10452         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
10453         for FIELD_DECL.
10454
10455 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
10456
10457         * doc/tm.texi (FUNCTION_ARG): Document that the last call
10458         is special.
10459
10460 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
10461
10462         * tlink.c (recompile_files): Remove COMPILER_PATH and
10463         LIBRARY_PATH from the environment.
10464
10465 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
10466
10467         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
10468         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
10469         enumerators.
10470         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
10471
10472         * c-parse.in (OBJC_STRING): Kill.
10473         (objc_string): Decompose to [objc_string] '@' STRING.
10474         (reswords): Take the leading '@' off all the Objective C keywords.
10475         (objc_rid_sans_at): Kill.
10476         (init_reswords): Don't initialize it.
10477         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
10478         (_yylex): Kill reconsider label.  Look ahead one token after
10479         an '@'; if we get an identifier, check whether it's an
10480         Objective C @-keyword.  If so, return the keyword.  Otherwise,
10481         put back the token and return the '@' as a terminal.
10482
10483         * cpplib.c (lex_macro_node): Remove unnecessary check for
10484         leading '@' on identifier.  Clarify control flow and commentary.
10485
10486 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10487
10488         * cse.c (new_label_ref): Variable deleted.
10489         (insert): Remove set of new_label_ref.
10490         (check_for_label_ref): New function.
10491         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
10492
10493 See ChangeLog.5 for earlier changes.