OSDN Git Service

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