OSDN Git Service

c23a962195cc36a2b44226ab95c8227e34079e1a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-08-11  H.J. Lu <hjl@gnu.org>
2
3         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
4         in_dtors.
5         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
6         RDATA_SECTION_ASM_OP.
7
8 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9
10         * doc/install.texi (Specific, c4x): Fix cross-reference to the
11         main manual to work both for info and HTML versions.
12         
13 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14             Matt Kraai <kraai@alumni.carnegiemellon.edu>
15         
16         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
17         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
18         (struct cpp_pool): New member first.
19         * cppinit.c (append_include_chain): Plug memory leaks.
20         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
21         Allocate pragma structures from the (aligned) macro pool to
22         avoid leaking memory.
23         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
24         so we don't leak memory.
25         * hashtable.c (ht_destroy): New.
26         * hashtable.h (ht_destroy): New.
27
28 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
29             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
30
31         * c-lex.c (map): Make const.
32         (cb_file_change): Update for callback passing a line map.
33         Don't assume we have a previous map.  Remove sanity check
34         about popping too many files.
35         * cpperror.c (print_location): Make map const.
36         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
37         (cpp_make_system_header): Similarly.
38         (search_from): Similarly.
39         (_cpp_execute_include): Don't remember where we came from.
40         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
41         (struct cpp_reader): Make map const.
42         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
43         * cpplib.c (do_line): Update; line maps now hold sysp.
44         (cpp_push_buffer): Similarly.
45         (_cpp_do_file_change): Similarly; callback with map instead.
46         (cpp_get_line_maps): Constify return value.
47         (_cpp_pop_buffer): Update.
48         * cpplib.h (struct cpp_file_change): Remove.
49         (struct cpp_callbacks): Update.
50         (cpp_get_line_maps): Constify return value.
51         * cppmacro.c (_cpp_create_definition): Update.
52         * cppmain.c (struct printer): Constify map.
53         (maybe_print_line): Similarly.
54         (print_line): Similarly.  Deduce flags 1 and 2 here.
55         (cb_file_change): Update.
56         * line-map.c (free_line_maps): Warn regardless.
57         (add_line_map): Return pointer to const.  When passed NULL to_file
58         with LC_LEAVE, use the obvious values for the return point so the
59         caller doesn't have to figure them out.
60         (lookup_line): Return pointer to const.
61         (print_containing_files): Take pointer to const.
62         * line-map.h (struct line_map): New members reason, sysp.
63         (add_line_map): Return pointer to const.
64         (lookup_line): Similarly.
65         (print_containing_files): Take pointer to const.
66
67 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
68             Richard Henderson  <rth@redhat.com>
69
70         * regmove.c (regmove_optimize): Avoid setting a register twice in
71         a parallel set.
72
73 2001-08-10  Richard Henderson  <rth@redhat.com>
74
75         * doc/extend.texi (Arrays and pointers implementation): Document
76         behavior of pointer/integer conversion.
77
78 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
79  
80         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
81
82 2001-08-10  Richard Henderson  <rth@redhat.com>
83
84         * doc/extend.texi (C Implementation): New chapter.
85         * doc/gcc.texi (Top): Link it in.
86
87 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
88
89         * doc/install.texi (Specific): Fix CVS merge botch.
90
91 2001-08-10  Richard Henderson  <rth@redhat.com>
92
93         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
94         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
95
96 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
97
98         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
99         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
100         this macro is now required.
101
102         * cselib.c (cselib_process_insn), flow.c (propagate_block),
103         loop.c (find_and_verify_loops), reload.c (reload): Check
104         for rtx code of CALL_INSN, not CALL, when deciding if we
105         need to check for REG_SETJMP note.
106
107         * gcse.c (compute_hash_table, compute_store_table): Update
108         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
109         logic.
110
111         * config/avr/avr.c: Fix typo.
112         * config/convex/convex.c (expand_movstr): Use adjust_address.
113         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
114         variable.
115         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
116         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
117         Fix typo.
118         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
119         Do define STACK_BOUNDARY.
120         * config/i370/i370.c: Include expr.h.
121         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
122         config/pa/som.h, config/v850/v850.h: Take in_ctors and
123         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
124         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
125         * config/m88k/m88k.c: Include c-tree.h after expr.h.
126         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
127         * config/romp/romp.c: Include expr.h after tree.h.
128         Include toplev.h.
129         (output_fpop): Use xmalloc, not oballoc.
130         * config/we32k/we32k.c: Include expr.h.
131
132 2001-08-10  Kazu Hirata  <kazu@hxi.com>
133
134         * config/h8300/h8300.h: Fix formatting.
135
136 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
137
138         * c-common.h (RETURN_NULLIFIED_P): Lose.
139         * c-semantics.c (genrtl_return_stmt): Don't check it.
140
141 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
142
143         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
144         (mips_annotate_frame_insn): New function.
145         (mips_emit_frame_related_store): New function.
146         (save_restore_insns): Don't mark instructions that set up the base
147         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
148         the store instructions instead.
149         (mips_expand_prologue): If the stack size is moved into a temporary
150         register, do not mark that move as frame-related.  Add a
151         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
152
153 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
154
155         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
156         stack slot as unchanging if current_function_calls_eh_return.
157
158 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
159
160         * config/mips/mips.md (reload_outcc): Use HARD_REGNO_NREGS to
161         access the second half of the TFmode scratch operand.
162
163 2001-08-10  Anthony Green  <green@redhat.com>
164
165         * java/class.c (emit_register_classes): Conditionalize code on
166         JCR_SECTION_NAME.
167
168 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
169
170         * doc/install.texi (Specific, avr): Fix cross-reference to the
171         main manual to work both for info and HTML versions.
172
173 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
174
175         * stmt.c (expand_null_return_1): Remove code to generate simple returns
176         and "use_goto" argument.
177         (expand_null_return, expand_value_return): Update all callers.
178         * function.c (expand_function_end): Remove code to generate simple
179         return.
180         * config/vax/vax.md (epilogue): New expander for function return.
181         * doc/md.texi (epilogue): Remove "if defined".
182
183 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
184
185         * Makefile.in: Partially revert my previous change:
186         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
187         of the hashtab.o and safe-ctype.o rules.
188
189 2001-08-09  Richard Henderson  <rth@redhat.com>
190
191         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
192         (USE_COLLECT2): Remove duplicate definition.
193         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
194         (use_collect2): Remove dead code.
195         * configure.in (use_collect2): Remove will_use_collect2 and
196         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
197         * configure: Rebuild.
198
199         * target.h (targetm.asm_out.constructor): New.
200         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
201         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
202         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
203         * varasm.c (in_ctors, in_dtors): New.
204         (assemble_constructor, assemble_destructor): Remove.
205         (default_stabs_asm_out_destructor): New.
206         (default_named_section_asm_out_destructor): New.
207         (dtors_section, default_dtor_section_asm_out_destructor): New.
208         (default_stabs_asm_out_constructor): New.
209         (default_named_section_asm_out_constructor): New.
210         (ctors_section, default_ctor_section_asm_out_constructor): New.
211         * output.h: Update declarations.
212         * c-decl.c (c_expand_body): Use target hooks instead of
213         assemble_constructor and assemble_destructor.
214         * profile.c (output_func_start_profiler): Likewise.
215         * objc/objc-act.c (finish_objc): Likewise.
216         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
217         for the constructor.
218         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
219
220         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
221         (DTORS_SECTION_ASM_OP): Likewise.
222         (__CTOR_LIST__): Use attribute section when possible.
223         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
224
225         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
226         ASM_OUTPUT_CONSTRUCTOR.
227
228         * config/darwin.c (machopic_asm_out_constructor): New.
229         (machopic_asm_out_destructor): New.
230         * config/darwin-protos.h: Update declarations.
231         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
232         (ASM_OUTPUT_DESTRUCTOR): Remove.
233         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
234         * config/nextstep.c (nextstep_asm_out_constructor): New.
235         (nextstep_asm_out_destructor): New.
236         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
237         (ASM_OUTPUT_DESTRUCTOR): Remove.
238         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
239         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
240         ASM_OUTPUT_*STRUCTOR.
241         * config/i386/aix386ng.h: Likewise.
242
243         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
244         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
245         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
246         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
247         * config/lynx.h: Likewise.
248         * config/netware.h: Likewise.
249         * config/psos.h: Likewise.
250         * config/alpha/alpha-interix.h: Likewise.
251         * config/alpha/elf.h: Likewise.
252         * config/arc/arc.h: Likewise.
253         * config/arm/aof.h: Likewise.
254         * config/arm/coff.h: Likewise.
255         * config/arm/elf.h: Likewise.
256         * config/c4x/c4x.h: Likewise.
257         * config/h8300/h8300.h: Likewise.
258         * config/i386/cygwin.h: Likewise.
259         * config/i386/djgpp.h: Likewise.
260         * config/i386/i386-coff.h: Likewise.
261         * config/i386/i386-interix.h: Likewise.
262         * config/i386/sco5.h: Likewise.
263         * config/i386/vsta.h: Likewise.
264         * config/i386/win32.h: Likewise.
265         * config/i960/i960-coff.h: Likewise.
266         * config/ia64/sysv4.h: Likewise.
267         * config/m68hc11/m68hc11.h: Likewise.
268         * config/m68k/coff.h: Likewise.
269         * config/m68k/mot3300.h: Likewise.
270         * config/m88k/m88k.h: Likewise.
271         * config/mcore/mcore-pe.h: Likewise.
272         * config/mcore/mcore.h: Likewise.
273         * config/mips/elf.h: Likewise.
274         * config/mips/elf64.h: Likewise.
275         * config/mips/iris6.h: Likewise.
276         * config/pa/pa64-hpux.h: Likewise.
277         * config/rs6000/sysv4.h: Likewise.
278         * config/sh/sh.h: Likewise.
279         * config/sparc/litecoff.h: Likewise.
280
281         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
282         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
283         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
284         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
285         (ASM_OUTPUT_DESTRUCTOR): Remove.
286         * config/a29k/a29k.c: Move include of tree.h.
287         * config/a29k/udi.h: Delete file.
288         * config/alpha/alpha.c (vms_asm_out_constructor): New.
289         (vms_asm_out_destructor): New.
290         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
291         (EXTRA_SECTION_FUNCTIONS): Likewise.
292         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
293         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
294         * config/c4x/c4x.c: Move include of tree.h.
295         * config/clipper/clipper.c (clix_asm_out_constructor): New.
296         (clix_asm_out_destructor): New.
297         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
298         (ASM_OUTPUT_DESTRUCTOR): Remove.
299         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
300         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
301         (TARGET_ASM_CONSTRUCTOR): New.
302         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
303         (sco_asm_out_constructor): New.
304         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
305         * config/i386/svr3gas.h: Remove stack grows up code.
306         Remove code duplicated from i386/sysv3.h.
307         (TARGET_ASM_CONSTRUCTOR): New.
308         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
309         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
310         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
311         (TARGET_ASM_CONSTRUCTOR): New.
312         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
313         (m68hc11_asm_out_destructor): New.
314         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
315         (TARGET_ASM_DESTRUCTOR): New.
316         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
317         * config/m68k/dpx2.h: Properly undef all the bits inherited from
318         config/svr3.h pertaining to section manipulation.
319         * config/m68k/dpx2g.h: Remove #if 0 code.
320         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
321         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
322         (ASM_OUTPUT_CONSTRUCTOR): Remove.
323         (TARGET_ASM_CONSTRUCTOR): New.
324         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
325         (m88k_svr3_asm_out_constructor): New.
326         (m88k_svr3_asm_out_destructor): New.
327         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
328         (ASM_OUTPUT_DESTRUCTOR): Remove.
329         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
330         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
331         * config/rs6000/aix.h: Likewise.
332         * config/mips/rtems64.h: Don't undef removed constructor related bits.
333         * config/mips/vxworks.h: Likewise.
334         * config/rs6000/lynx.h: Likewise.
335         * config/sh/elf.h: Likewise.
336         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
337         (DTORS_SECTION_ASM_OP): New.
338         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
339         (ASM_OUTPUT_DESTRUCTOR): Remove.
340         * config/sparc/sol2-sld-64.h: Likewise.
341         * config/vax/vax.c (vms_asm_out_constructor): New.
342         (vms_asm_out_destructor): New.
343         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
344         (ASM_OUTPUT_DESTRUCTOR): Remove.
345         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
346
347         * doc/tm.texi (@node Initialization): Update.
348
349 2001-08-09  Richard Henderson  <rth@redhat.com>
350
351         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
352         (__do_global_dtors_aux): Use gp-relative static data to avoid
353         one dynamic relocation.
354         (__do_frame_setup): Register Java classes.
355         * config/alpha/crtend.asm (__JCR_END__): New.
356
357 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
358
359         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
360         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
361         (GEN, STAGESTUFF): Add new files.
362         (insn-constants.h, s-constants, tm-preds.h, s-preds,
363         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
364         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
365         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
366         as well as insn-codes.h and insn-flags.h in config.h; and no
367         extra headers in tconfig.h and hconfig.h.
368
369         * gencodes.c: Eliminate code to generate predicate declarations
370         or #defines for md-file constants.
371         * genconstants.c, genpreds.c: New files.
372
373         * i386.md: Re-order guard expressions such that TARGET_64BIT
374         comes first, when this permits better optimization.  Add
375         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
376         why this is desirable.
377
378 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
379
380         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
381         (find_fde_for_dso): Remove.
382         (_Unwind_IteratePhdrCallback): New.
383         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
384         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
385
386 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
387
388         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
389         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
390
391 2001-08-09  Graham Stott  <grahams@redhat.com>
392
393         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
394         (vis_no_unit): Use it.
395         (visualize_no_unit): Add the insn only if room exists.
396
397 2001-08-09  Graham Stott  <grahams@redhat.com>
398
399         * predict.c (estimate_probability): Replace magic numbers with
400         appropriate enumeration.
401
402 2001-08-09  Graham Stott  <grahams@redhat.com>
403
404         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
405         parameter.
406         (EXTRACT_FLAGS): Likewise.
407
408 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
409
410         * config/mips/mips.c    (mips_legitimate_address_p): Check for
411         CONST_INT in last patch.
412
413 2001-08-08  Anthony Green  <green@redhat.com>
414
415         * java/class.c (emit_register_classes): Use assemble_jcr if
416         possible.  Keep the original mechanism as a fallback.
417         * defaults.h (JCR_SECTION_NAME): Define if we have named section
418         and weak symbol support.
419         * crtstuff.c (__JCR_LIST__): Define.
420         (__JCR_END__): Define.
421         (_Jv_RegiserClasses): Define weak symbol if possible.
422         (__do_global_ctors_aux): Register classes for ELF targets with
423         weak symbol support.
424
425 2001-08-08  Kazu Hirata  <kazu@hxi.com>
426
427         * dbxout.c: Fix comment formatting.
428         * dependence.c: Likewise.
429         * df.c: Likewise.
430         * diagnostic.c: Likewise.
431         * dominance.c: Likewise.
432         * doprint.c: Likewise.
433         * dwarf2out.c: Likewise.
434         * dwarfout.c: Likewise.
435         * emit-rtl.c: Likewise.
436         * except.c: Likewise.
437         * explow.c: Likewise.
438         * expmed.c: Likewise.
439         * expr.c: Likewise.
440         * flow.c: Likewise.
441         * fold-const.c: Likewise.
442         * function.c: Likewise.
443
444 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
445
446         * global.c (retry_global_alloc): Avoid shadowing allocno.
447
448 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
449
450         * except.c (remove_fixup_regions): Fix typo.
451
452 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
453
454         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
455         unsigned HOST_WIDE_INT to avoid warning.
456         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
457         * flow.c (set_block_for_new_insns): Likewise.
458
459 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
460
461         * sibcall.c (return_value_pseudo): New static variable.
462         (skip_copy_to_return_value): Handle return_value_pseudo.
463         (call_ends_block_p): Ensure that return_value_pseudo is set.
464         (optimize_sibling_and_tail_recursive_call): Discover the
465         load of pseudo return value in alternate exit block.
466
467 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
468
469         * calls.c (ECF_ALWAYS_RETURN): New constant.
470         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
471         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
472         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
473         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
474         * rtl.c (reg_note_name): New name.
475         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
476
477 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
478
479         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
480
481 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
482
483         * alias.c (get_alias_set): Return a previously calculated
484         alias set for a VAR_DECL.
485         * function.c (gen_mem_addressof): Calculate the alias set before
486         touching the RTL.
487
488 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
489
490         * predict.def: Set hitrates according our experimental run.
491
492 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
493
494         * i386.h (HARD_REGNO_RENAME_OK): New macro.
495
496 2001-08-08  H.J. Lu <hjl@gnu.org>
497
498         * config/mips/mips.c (mips_unique_section): New. Copied from
499         config/mips/elf.h.
500
501         * config/mips/mips-protos.h (mips_unique_section): New
502         prototype.
503
504         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
505
506         * config/mips/little.h: New. Generic little endian mips
507         targets. Only mips*-*-linux* is converted to use it so far.
508
509         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
510         (WCHAR_TYPE): Defined
511         (WCHAR_TYPE_SIZE): Likewise.
512         (INIT_SUBTARGET_OPTABS): Likewise.
513         (BSS_SECTION_ASM_OP): Likewise.
514         (SBSS_SECTION_ASM_OP): Likewise.
515         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
516         (ASM_DECLARE_OBJECT_NAME): Likewise.
517         (UNIQUE_SECTION): Likewise.
518         (EXTRA_SECTIONS): Likewise.
519         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
520         (ASM_OUTPUT_DESTRUCTOR): Likewise.
521         (ASM_OUTPUT_DEF): Likewise.
522         (HANDLE_SYSV_PRAGMA): Removed.
523         (NO_IMPLICIT_EXTERN_C): Likewise.
524         (TARGET_MEM_FUNCTIONS): Likewise.
525         (STARTFILE_SPEC): Likewise.
526         (ENDFILE_SPEC): Likewise.
527         (LIB_SPEC): Likewise.
528         (INVOKE__main): Likewise.
529         (CTOR_LIST_BEGIN): Likewise.
530         (CTOR_LIST_END): Likewise.
531         (DTOR_LIST_BEGIN): Likewise.
532         (DTOR_LIST_END): Likewise.
533         (SET_ASM_OP): Likewise.
534         (ASM_OUTPUT_SOURCE_LINE): Likewise.
535         (ASM_OUTPUT_DEF): Likewise.
536         (ASM_OUTPUT_IDENT): Likewise.
537
538         * config/mips/mips.h (ASM_SPEC): Undefine before define.
539         (CPLUSPLUS_CPP_SPEC): Likewise.
540         (ASM_APP_ON) Redefine only if not defined.
541         (ASM_APP_OFF): Likewise.
542         (ASM_OUTPUT_SOURCE_LINE): Likewise.
543         (ASM_OUTPUT_IDENT): Likewise.
544
545         * config.gcc: Update tm_file for Linux/mips.
546
547 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
548
549         * cselib.c (cselib_record_sets): If insn is predicated, turn
550         sources into IF_THEN_ELSEs.
551
552         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
553         Turn into define_insn_and_split.
554
555         * sched-deps.c: Include "cselib.h".
556         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
557         Use cselib to turn memory addresses into VALUEs.
558         (sched_analyze): Call cselib_init/cselib_finish if necessary.
559         * sched-int.h (struct sched_info): New member USE_CSELIB.
560         * sched-ebb.c (ebb_sched_info): Initialize it.
561         * sched-rgn.c (rgn_sched_info): Likewise.
562         * Makefile.in (sched-deps.o): Update dependencies.
563
564         * cselib.h (cselib_subst_to_values): Declare.
565         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
566         that have no value and autoincs to be handled by generating a new
567         dummy value.
568
569 2001-08-08  Graham Stott  <grahams@redhat.com>
570
571         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
572         within fixed length SEQUENCE.
573
574 2001-08-08  Graham Stott  <grahams@redhat.com>
575
576         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
577         (diagnostic_prefixing_rule): Likewise.
578         (diagnostic_line_cutoff): Likewise.
579         (diagnostic_kind_count): Likewise.
580
581 2001-08-08  Graham Stott  <grahams@redhat.com>
582
583         * alias.c (find_base_decl): Delete redundent assignment.
584
585 2001-08-08  Graham Stott  <grahams@redhat.com>
586
587         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
588         (abs): Uppercase and paranthesize macro parameter.
589         (MEM_DEPENDENCY): Add whitespace.
590
591 2001-08-08  Graham Stott  <grahams@redhat.com>
592
593         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
594         failure check for CONST_INT
595
596 2001-08-08  Graham Stott  <grahams@redhat.com>
597
598         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
599         (libcall_dead_p): Likewise.
600
601         (mark_used_regs): Constify fmt.
602         (find_use_as_address): Likewise.
603
604 2001-08-08  Graham Stott  <grahams@redhat.com>
605
606         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
607          parameter.
608
609 2001-08-08  Graham Stott  <grahams@redhat.com>
610
611         * combine.c (combine_simplify_rtx): Update comment and
612         remove erroneous test.
613
614 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
615
616         * cppinit.c (cpp_finish): Pop the final buffer without comment.
617         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
618         take care to avoid multiple no-newline at EOF warnings in that
619         case.
620
621 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
622
623         * calls.c (expand_call): Do not emit INSN_SETJMP note.
624         (emit_library_call_value_1): Likewise.
625         (emit_call_1): Emit REG_SETJMP note.
626         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
627         of INSN_SETJMP
628         * cselib.c (cselib_process_insn): Likewise.
629         * flow.c (propagate_block): Likewise.
630         * loop.c (find_and_verify_loops): Likewise.
631         * reload.c (find_equiv_regs): Likewise.
632         * reload1.c (reload): Likewise.
633         * resource.c (mark_referenced_resources,
634         mark_set_resources): Likewise.
635         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
636         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
637         * haifa-sched.c (unlink_other_notes): Likewise.
638         (reemit_notes): Likewise.
639         * sched-ebb.c (sched_ebb): Likewise.
640         * sched-rgc.c (sched_region): Likewise.
641         * rtl.c (note_insn_name): Likewise.
642         (reg_note_name): Add REG_SETJMP
643         * rtl.h (reg_note): Add REG_SETJMP.
644         (insn_note): Remove NOTE_INSN_SETJMP.
645
646         * profile.c (branch_prob): Add fake edges for setjmp.
647
648 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
649
650         * config.gcc: Quote target_cpu_default2 correctly for
651         powerpc*-*-* targets.
652
653 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
654
655         * cpplib.h, line-map.h: Update comments.
656         * cppmain.c (printer_init): Move inline.
657         (maybe_print_line, print_line): Take a map pointer.
658         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
659         (cb_file_change): Don't use prior value of print.map.
660
661 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
662
663         * doc/install.texi: Document fine-grained multilib configuration.
664
665 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
666
667         * rtlanal.c (find_first_parameter_load): Call note_stores
668         only on the instructions.
669
670 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
671
672         * alias.c (nonlocal_mentioned_p):
673         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
674         * calls.c (emit_call_1): Likewise.
675         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
676         * cselib.c (cselib_process_insn): Likewise.
677         * df.c (df_insns_modify): Likewise.
678         * flow.c (need_fake_edge_p): Likewise.
679         (propagate_one_insn): Likewise.
680         * haifa-sched.c (reemit_notes): Likewise.
681         * integrate.c (copy_insn_list): Likewise.
682         * jump.c (delete_prior_computation): Likewise.
683         * local-alloc.c (validate_equiv_mem): Likewise.
684         * loop.c (scan_loop): Likewise.
685         * predict.c (estimate_probability): Likewise.
686         * reload.c (reload): Likewise.
687         * sched-deps (sched_analyze): Likewise.
688         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
689         * gcse.c (compute_hash_table): Likewise.
690         (mark_call): Likewise.
691         (store_killed_in_insn): Likewise.
692
693 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
694
695         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
696
697 2001-08-06  Richard Henderson  <rth@redhat.com>
698
699         * varasm.c (assemble_gc_entry): Remove.
700         * output.h: Likewise.
701
702 2001-08-06  Richard Henderson  <rth@redhat.com>
703
704         * varasm.c (assemble_constructor): Take a symbol_ref and a
705         priority instead of a bare string.  Move priority handling
706         here from cp/decl2.c.
707         * output.h: Update decls.
708
709         * c-decl.c (c_expand_body): Update calls to assemble_constructor
710         and assemble_destructor.
711         * profile.c (output_func_start_profiler): Likewise.
712         * objc/objc-act.c (finish_objc): Likewise.
713         (build_module_descriptor): Return the symbol not the symbol name.
714
715 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
716
717         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
718         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
719         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
720         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
721         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
722         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
723
724 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
725
726         * cpperror.c (print_containing_files): Moved to line-map.c.
727         (print_location): line-map.c handles re-listing or otherwise.
728         * cpphash.h (struct lexer_state): Remove next_bol.
729         (struct cpp_buffer): Remove include_stack_listed.
730         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
731         Remove faked buffer handling.
732         (_cpp_do_file_change): Tweak.
733         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
734         * cppmain.c (struct printer): Remove filename.
735         (print_line, cb_file_change): Update accordingly.
736         * line-map.c: Include intl.h.
737         (init_line_maps): Initialize last_listed.
738         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
739         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
740         (print_containing_files): New.
741         * line-map.h (struct line_maps): New member last_listed.
742         (print_containing_files, INCLUDED_FROM): New.
743         * Makefile.in: Update.
744         * po/POTFILES.in: Add line-map.c.
745
746 2001-08-06  Richard Henderson  <rth@redhat.com>
747
748         * except.c (convert_from_eh_region_ranges_1): Never mark
749         USE or CLOBBER insns as throwing.
750
751         * expr.c (store_constructor): Don't clobber memory targets.
752
753 2001-08-06  Andreas Jaeger  <aj@suse.de>
754
755         * profile.c (branch_prob): Remove unused variable insn.
756
757         * Makefile.in (local-alloc.o): Add dependency on except.h.
758
759         * local-alloc.c: Include except.h for can_throw_internal prototype.
760
761 2001-08-06  Richard Henderson  <rth@redhat.com>
762
763         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
764         * function.c (expand_main_function): Implement it.
765         * doc/tm.texi: Document it.
766
767 2001-08-06  Stan Shebs  <shebs@apple.com>
768
769         * doc/install.texi: Document powerpc-*-darwin* details.
770
771 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
772
773         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
774         (ASM_CPU_SPEC): Move back to rs6000.h
775         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
776
777         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
778
779         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
780         readded.
781
782         * config/rs6000/linux64.h: Ditto.
783
784         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
785         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
786         nothing.
787
788         Remove accidently readded definitions of FUNCTION_PROLOGUE,
789         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
790
791         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
792         to rs6000.h
793
794 2001-08-05  Richard Henderson  <rth@redhat.com>
795
796         * local-alloc.c (update_equiv_regs): Do not move insns that
797         can throw.
798
799 2001-08-05  Jan Hubicka  <jh@suse.cz>
800
801         * Makefile.in (reload1.o): Add dedendancy on except.h
802         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
803         prototypes.
804         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
805         indicating wehther edges has been cleaned up.
806         * reload1.c: Inlucde except.h
807         (fixup_abnormal_edges): Accept deleted insns.
808         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
809         after combine.
810
811 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
812
813         * cpplib.c (do_line): Correct line number after pop_buffer.
814
815 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
816
817         PR preprocessor/3824
818         * line-map.c: Update comments.
819         * line-map.h: Update comments.
820         * tradcif.y: Don't consider large numbers unsigned.
821
822 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
823
824         PR preprocessor/3081
825         * c-lex.c (map): New.
826         (cb_file_change): Update map and use it.
827         (cb_def_pragma, cb_define, cb_undef): Use map and line.
828         (c_lex): Update to use map.
829         * cpperror.c (print_location): Move to using logical line numbers.
830         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
831         (cpp_make_system_header): Similarly.
832         (_cpp_execute_include): Stop line numbering hacks.  Store the
833         line we will return to.
834         * cpphash.h (CPP_BUF_LINE): Remove.
835         (struct cpp_buffer): Remove lineno and pseudo_newlines.
836         Add map and return_to_line.
837         (_cpp_do_file_change): Update.
838         * cppinit.c (cpp_start_read): Update line kludge.
839         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
840         (trigraph_ok): Use logical line numbers for diagnostics.
841         (skip_block_comment): Likewise.
842         (skip_whitespace): Likewise.
843         (skip_line_comment): Use pfile->line instead.
844         (_cpp_lex_token): Update to use logical line numbering exclusively.
845         Handle BOL locally.  Accept new lines in directives, but keep
846         pfile->line decremented.  Diagnostics use logical lines.  Update
847         directive handling.
848         * cpplib.c (SEEN_EOL): New.
849         (skip_rest_of_line, check_eol): Use it.
850         (end_directive): Increase line number when accepting the newline
851         at the end of a directive.
852         (run_directive): Simplify.
853         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
854         (_cpp_do_file_change): Update to take buffer line number as an
855         argument, and store the current map in the cpp_reader.  Remove
856         line number kludges.
857         (_cpp_do__Pragma): Restore output position after a _Pragma.
858         (cpp_push_buffer): Don't set output line or lineno.
859         (_cpp_pop_buffer): Transfer more info from a faked buffer.
860         Remove line kludge.  Set output_line.
861         * cppmacro.c (builtin_macro): Update handling of __LINE__.
862         (parse_arg): Use logical lines.
863         (save_lookahead_token): Save EOFs too now.
864         * cppmain.c (struct printer): Fix comments.
865         (printer_init): Simplify, let caller do errors.
866         (scan_translation_unit, check_multiline_token, dump_macro): Update.
867         (maybe_print_line): Simplify.
868         (print_line): Don't print a linemarker if -P.
869         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
870         (cb_file_change): Simplify.
871         * line-map.h (LAST_SOURCE_LINE): Fix.
872         (CURRENT_LINE_MAP): New.
873
874 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
875
876         * doloop.c (doloop_modify_runtime): Properly compute number of
877         iterations if loop was unrolled.
878
879         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
880         if their CSELIB_VAL_PTRs are.
881
882         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
883         (setup_spill_pointers): Initialize it.
884         (spill_restore_mem): Set it.
885         (do_spill, do_restore): Use it to add REG_INC note.
886         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
887
888         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
889         asms if other insns are available.
890
891         * config/ia64/ia64.c (condop_operator): New predicate.
892         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
893         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
894         patterns.
895
896         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
897         temporary register than directly using a MEM.
898
899 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
900
901         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
902         parameter in last change.
903
904 2001-08-04  Zack Weinberg  <zackw@panix.com>
905
906         * sparc.md: Don't use #if inside C test expression.
907
908 2001-08-04  Richard Henderson  <rth@redhat.com>
909
910         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
911
912 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
913
914         * cpphash.h (struct cpp_reader): New member directive_line.
915         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
916         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
917         do_pragma): Pass line to callbacks.
918         (start_directive): Record line of directive.
919         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
920         cb_include): Similarly.
921         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
922         Similarly.
923
924 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
925
926         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
927         comment.
928
929 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
930
931         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
932
933         * reload1.c (fixup_abnormal_edges): New static function.
934         (reload): Use it.
935
936         * flow.c (need_fake_edge_p): New function.
937         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
938         avoid call insn to be very last insn in the insn stream.
939
940         * profile.c (branch_prob): Call flow_call_edges_add instead of
941         doing that by hand; cleanup cfg to re-merge basic blocks once
942         we are done.
943
944 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
945
946         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
947         are also on line-map.h.
948         * cppfiles.c (stack_include_file): Update.
949         * cpphash.h (struct cpp_buffer): New member return_at_eof.
950         (_cpp_pop_buffer): New.
951         * cppinit.c (cpp_destroy, cpp_finish): Update.
952         (do_includes): Mark each buffer to return at EOF.
953         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
954         return as requested.
955         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
956         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
957         * cpplib.h (cpp_pop_buffer): Remove.
958         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
959         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
960         buffers.
961         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
962         to pop buffers.
963         (do_preprocessing): Update.
964         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
965         * c-parse.in (_yylex): Similarly.
966         * scan-decls.c (scan_decls): Similarly.
967         * line-map.h: Update comments.
968
969         * objc/Make-lang.in (objc-act.o): Update dependencies.
970
971 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
972
973         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
974         and soft register for operand 0.
975         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
976
977 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
978
979         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
980         register for operand 0.
981         ("bitcmpqi_z_used"): Allow memory for operand 0.
982         (split "bitcmpqi"): New split to handle address reg as operand 1.
983
984 2001-08-04  Andreas Jaeger  <aj@suse.de>
985
986         * gcse.c: Revert Daniel's last patch.
987
988 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
989
990         * sparc-protos.h: Add prototypes for fp_zero_operand and
991         reg_or_0_operand.
992         * sh-protos.h: Add prototype for fpul_operand.
993
994 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
995
996         * doc/extend.texi (Other Builtins): Fix typo in last change.
997
998 2001-08-03  Richard Henderson  <rth@redhat.com>
999
1000         * target.h (gcc_target): Add asm_out.named_section,
1001         section_type_flags, have_named_sections.
1002         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
1003         (TARGET_HAVE_NAMED_SECTIONS): New.
1004         (TARGET_SECTION_TYPE_FLAGS): New.
1005
1006         * Makefile.in (toplev.o): Depend on TARGET_H.
1007         (varasm.o, dbxout.o): Likewise.
1008         * c-common.c (decl_attributes): Check targetm.have_named_sections
1009         instead of ifdef ASM_OUTPUT_SECTION_NAME.
1010         * dbxout.c (dbxout_function_decl): Likewise.
1011         (dbxout_function_end): Likewise.
1012         * toplev.c (compile_file): Likewise.
1013         * varasm.c (exception_section): Likewise.
1014         * cp/decl2.c (finish_objects): Likewise.
1015
1016         * defaults.h (EH_FRAME_SECTION): Remove.
1017         (EH_FRAME_SECTION_ASM_OP): Remove.
1018         (EH_FRAME_SECTION_NAME): New.
1019         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
1020         (UNIQUE_SECTION_P): Remove.
1021         * dwarf2out.c (SECTION_FORMAT): Remove.
1022         (ASM_OUTPUT_SECTION): Remove.
1023         (output_call_frame_info): Use named_section_flags.
1024         (output_comp_unit, dwarf2out_start_source_file): Likewise.
1025         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
1026         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
1027         * varasm.c (in_eh_frame, eh_frame_section): Remove.
1028         (named_section_flags): New.
1029         (named_section): Use it and targetm.section_type_flags.
1030         (resolve_unique_section): New.
1031         (assemble_start_function): Use it.
1032         (asm_emit_uninitialised, assemble_variable): Likewise.
1033         (default_section_type_flags): New.
1034         (default_no_named_section, default_elf_asm_named_section): New.
1035         (default_coff_asm_named_section, default_pe_asm_named_section): New.
1036         * output.h: Update varasm.c decls.
1037         (SECTION_*): New flags.
1038
1039         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
1040         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
1041
1042         * config/elfos.h (UNIQUE_SECTION_P): Remove.
1043         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
1044         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
1045         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1046         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
1047         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
1048         * config/mips/elf.h, config/mips/elf64.h: Likewise.
1049         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
1050         * config/pa/pa64-hpux.h,
1051
1052         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
1053         (TARGET_ASM_NAMED_SECTION): New.
1054         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
1055         * config/alpha/vms.h, config/arm/coff.h: Likewise.
1056         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
1057         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
1058         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
1059         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
1060         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
1061         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
1062         * config/i386/sco5.h, config/i386/win32.h: Likewise.
1063         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
1064         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
1065         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
1066         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
1067         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
1068         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
1069         * config/sparc/sysv4.h: Likewise.
1070
1071         * config/nextstep.h: Error until named sections implemented.
1072
1073         * config/a29k/a29k.c (a29k_asm_named_section): New.
1074         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
1075         (vms_section_type_flags, vms_asm_named_section): New.
1076         * config/arm/arm.c (arm_elf_asm_named_section): New.
1077         * config/avr/avr.c (asm_output_section_name): Remove.
1078         * config/avr/avr-protos.h: Update.
1079         * config/c4x/c4x.c (c4x_asm_named_section): New.
1080         * config/h8300/h8300.c (h8300_asm_named_section): New.
1081         * config/i386/i386.c (sco_asm_named_section): New.
1082         * config/i386/winnt.c (SECTION_PE_SHARED): New.
1083         (i386_pe_section_type_flags): New.
1084         (i386_pe_asm_named_section): New.
1085         * config/i386/i386-protos.h: Update.
1086         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
1087         * config/mcore/mcore.c (mcore_asm_named_section): New.
1088         * config/mips/mips.c (iris6_asm_named_section): New.
1089         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
1090         instead of UNIQUE_SECTION_P.
1091         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
1092         (xcoff_asm_named_section): New.
1093         * config/sh/sh.c (sh_asm_named_section): New.
1094         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
1095
1096         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
1097         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
1098         (EH_FRAME_SECTION_NAME): New.
1099         (EXCEPTION_SECTION): New.
1100         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
1101         (DEBUG_*_SECTION): Remove.
1102         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
1103         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
1104         (EH_FRAME_SECTION_ASM_OP): Remove.
1105
1106         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
1107         (ASM_OUTPUT_SECTION_NAME): Remove.
1108         (TARGET_ASM_NAMED_SECTION): New.
1109         (TARGET_HAVE_NAMED_SECTIONS): New.
1110         (TARGET_SECTION_TYPE_FLAGS): New.
1111         (EH_FRAME_SECTION_ASM_OP): Remove.
1112         (EH_FRAME_SECTION_NAME): New.
1113
1114 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
1115
1116         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
1117         for complex expressions when cfun == 0.
1118         * doc/extend.texi: Document that __builtin_constant_p can be
1119         used in data initializers as well as functions.
1120
1121 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
1122
1123         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
1124         variable I locally, instead of expecting a declaration in the
1125         calling context.
1126
1127 2001-08-03  Richard Henderson  <rth@redhat.com>
1128
1129         * except.c (collect_one_action_chain): Add an explicit cleanup
1130         action if regions surrounding a catch were encoded entirely
1131         within the call-site entry.
1132
1133 2001-08-03  Richard Henderson  <rth@redhat.com>
1134
1135         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
1136         don't take REGNO of a non-register.
1137
1138 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1139
1140         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
1141         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
1142         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
1143         (__gthread_mutex_init_function): New function for mutex initialization.
1144
1145 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1146
1147         * Makefile.in: Revert screwed up commit.
1148
1149 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1150
1151         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
1152         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
1153         merged by linker script to get a final _exit().
1154         (__do_global_dtors): New for destructor handling in specific exit
1155         section.
1156         (__do_global_ctors): New for constructors in specific install section.
1157         (__map_data_section): Map data sections before running constructors.
1158         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
1159         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
1160         (DTORS_SECTION_ASM_OP): Likewise.
1161         (CTORS_SECTION_FUNCTION): Define to force a reference to
1162         __do_global_ctors.
1163         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
1164
1165 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1166
1167         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
1168
1169         * Makefile.in: Add df.h to gcse.c dependencies.
1170
1171 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1172
1173         * varasm.c (output_constant_def_contents): Use for the length of a
1174         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
1175         depending on which is larger.
1176
1177 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
1178
1179         * gcse.c: Include df.h for use as a dataflow analyzer.
1180         Remove regvec.
1181         Declaration of reg_set_info: gone.
1182         New df_analyzer variable used by store motion.
1183         (reg_set_info): Deleted.
1184         (mark_mem_regs): New function, analyze regs used by a mem.
1185         (store_ops_ok): Use dataflow analyzer results to determine if
1186         necessary regs are changed in the block.
1187         (find_moveable_store): Remove check for symbol ref, we can handle
1188         much more complex expressions now.
1189         (compute_store_table): Remove most of the code, it's unnecessary
1190         now that the dataflow analyzer records the info for us.
1191         (store_killed_after): Add parameter to say whether to do the
1192         store_ops_okay test, used to speed up testing when we already know
1193         the answer, and just want to know if the store itself was killed.
1194         (build_store_vector): Largely rewritten to calculate the various
1195         vectors properly, and somewhat optimized.
1196         (store_motion): Init the df_analyzer, get REG_DEF chains.
1197         Also handle trapping expressions (since mems almost always trap)
1198         (simple_mem): Redefine what a simple mem is.
1199
1200 2001-08-03  DJ Delorie  <dj@redhat.com>
1201
1202         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
1203         set from a constant part of the condition.
1204
1205 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
1206
1207         * mkdeps.c (deps_add_default_target): Make local variable
1208         ``start'' a const char pointer.
1209         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
1210
1211 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1212
1213         * doc/install.texi (Configuration): Fix markup.
1214         (Specific, i?86-*-udk): Likewise.
1215         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
1216         --with-gnu-ld.
1217         Document --enable-threads and --enable-libgcj status.
1218         (Specific, mips-sgi-irix*): Canonicalize triples.
1219         (Specific, mips-sgi-irix5): Warn about problems with this config.
1220         Mention required GNU as patch.
1221         Native assembler problems are fixed.
1222         (Specific, mips-sgi-irix6): Update O32 ABI support status.
1223         Document --enable-threads and --enable-libgcj status.
1224
1225 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
1226
1227         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
1228         of mkinstalldirs.
1229
1230 2001-08-03  Richard Henderson  <rth@redhat.com>
1231
1232         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
1233         constant data.
1234
1235 2001-08-03  Richard Henderson  <rth@redhat.com>
1236
1237         * rtlanal.c (find_first_parameter_load): Stop if we
1238         reach a CODE_LABEL at BOUNDARY.
1239
1240 2001-08-03  Richard Henderson  <rth@redhat.com>
1241
1242         * config/alpha/alpha.md (force_movdi): New insn.
1243         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
1244         Tweek FRP marking of VMS prologue insns.
1245         * config/alpha/vms.h (EPILOGUE_USES): New.
1246
1247 2001-08-02  Richard Henderson  <rth@redhat.com>
1248
1249         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
1250
1251 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
1252
1253         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
1254         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
1255         config/convex/convex.h, config/d30v/d30v.c,
1256         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1257         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
1258         config/mips/mips.h, config/mn10200/mn10200.h,
1259         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
1260         config/v850/v850.h, config/vax/openbsd.h,
1261         config/vax/openbsd1.h, config/vax/ultrix.h,
1262         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
1263         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
1264         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
1265         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
1266         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
1267         in comments and documentation.
1268
1269 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1270
1271         * line-map.c: New.
1272         * line-map.h: New.
1273         * Makefile.in (line-map.o): New.
1274         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
1275         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
1276         * cpperror.c (print_containing_files): Similarly.
1277         (print_location): Update.  Don't output a space before _Pragma.
1278         * cppfiles.c (stack_include_file): Set to line 1 immediately.
1279         (stack_include_filee, cpp_make_system_header): Update.
1280         (_cpp_execute_include): Get logical line number right for calling
1281         as-yet-unterminated #include.
1282         * cpphash.h (struct cpp_reader): Add line_maps.
1283         (_cpp_do_file_change): Update.
1284         * cppinit.c (cpp_create_reader): Initialize line maps.
1285         (cpp_destroy): Destroy line maps.
1286         (cpp_start_read): Get logical line number right.
1287         * cpplex.c (parse_string): Only warn once for multi-line strings.
1288         Use boolean variable for null warning.
1289         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
1290         already.
1291         (do_include_common): End the directive early.
1292         (do_line): Don't warn about out-of-range lines in preprocessed
1293         source.  Update.  Remove unused variables.
1294         (_cpp_do_file_change): Update for new line mapping.
1295         (pragma_cb): New typedef.
1296         (cpp_register_pragma): Stop looking ahead before calling the
1297         handler.  Clean up.
1298         (do_pragma_system_header): End directive early.
1299         (cpp_get_line_maps): New.
1300         (cpp_pop_buffer): Fudge logical line.  Update.
1301         * cpplib.h: Include line-map.h
1302         (enum cpp_fc_reason): Remove.
1303         (struct cpp_file_change): Update.
1304         (cpp_get_line_maps): New.
1305         * cppmain.c (struct_printer): New member map.
1306         (cb_file_change): Update for new mappings.
1307         * fix-header.c (cb_file_change): Similarly.
1308
1309 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
1310
1311         * Makefile.in (libgcc.mk): Define mkinstalldirs.
1312         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
1313
1314 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
1315
1316         * config/vax/vax.c: include expr.h.
1317
1318 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
1319
1320         * Makefile.in ($(srcdir)/configure): Only rebuild in
1321         maintainer mode.
1322         ($(srcdir)/config.in): Only define in maintainer mode.
1323         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
1324
1325 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
1326
1327         * doc/install.texi (Install GCC: Binaries): Update Bull info.
1328
1329 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1330
1331         * gcc.c (set_collect_gcc_options): New function, split out from
1332         main.
1333         Ignore elided switches.
1334         (do_spec_1): Invoke before executing command.
1335         (set_input): Export.
1336         Move declaration ...
1337         * gcc.h (set_input): ... here.
1338         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
1339         file.
1340
1341 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
1342
1343         Kill -fhonor-std.
1344         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
1345         interaction.
1346         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
1347
1348 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
1349
1350         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
1351         for the unnamed instructions it expands to.
1352
1353 2001-08-02  Richard Henderson  <rth@redhat.com>
1354
1355         * regclass.c (call_really_used_regs): Conditionally define.
1356         (init_reg_sets_1): Don't use it if not defined.
1357         (fix_register): Similarly, don't set it.
1358
1359 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1360
1361         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
1362         Correct comment that had been missed in the previous change.
1363
1364 2001-08-01  Stan Shebs  <shebs@apple.com>
1365
1366         * config/darwin.c (machopic_stub_name): Try matching by name.
1367         (update_stubs): New function.
1368         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
1369         unconditionally.
1370
1371 2001-08-01  Richard Henderson  <rth@redhat.com>
1372
1373         * except.c (output_function_exception_table): Use assemble_align.
1374         * varasm.c (assemble_eh_label): Remove.
1375         (assemble_eh_align, assemble_eh_integer): Remove.
1376
1377 2001-08-01  Robert Lipe  <robertl@caldera.com>
1378
1379         * dwarfout.c: Remove reference to README.DWARF.
1380
1381 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
1382
1383         * regclass.c (call_really_used_regs): New array for registers which
1384         are actually used by a call.
1385         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
1386         new array.
1387         (fix_register): Set call_really_used too.
1388         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
1389         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
1390
1391 2001-08-01  Richard Henderson  <rth@redhat.com>
1392
1393         * read-rtl.c (read_name): Consider \r whitespace.
1394
1395 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
1396
1397         * config.gcc: Recognize powerpc-*-netbsd*.
1398
1399         * doc/install.texi (Host/target specific installation notes for
1400         GCC): Mention powerpc-*-netbsd*.
1401
1402         * config/rs6000/netbsd.h: New file.
1403         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
1404         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
1405         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
1406         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
1407         (TARGET_VERSION): Redefine.
1408
1409         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
1410         mcall-netbsd as a match for mcall-sysv.
1411         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
1412         (ncrti.S, ncrtn.S): New targets.
1413         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
1414
1415         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
1416         "netbsd' as a V4 ABI.
1417         (ASM_SPEC): Check for -mcall-netbsd.
1418         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
1419         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
1420         (LIB_SPEC, ENDFILE_SPEC): Ditto.
1421         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
1422         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
1423         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
1424         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
1425
1426         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
1427         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
1428
1429 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
1430
1431         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
1432         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
1433         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
1434         including "unwind-pe.h".
1435
1436 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
1437
1438         * rs6000.md (define_splits): Kill unused constraints.
1439
1440 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
1441                               Jan Hubicka  <jh@suse.cz>
1442
1443         * function.c (thread_prologue_and_epilogue_insns): Kill code
1444         dealing with non-existent CFG.
1445
1446 2001-08-01  Kazu Hirata  <kazu@hxi.com>
1447
1448         * alias.c: Fix comment formatting.
1449         * bitmap.c: Likewise.
1450         * builtins.c: Likewise.
1451         * calls.c: Likewise.
1452         * c-common.c: Likewise.
1453         * c-decl.c: Likewise.
1454         * c-dump.c: Likewise.
1455         * c-lex.c: Likewise.
1456         * collect2.c: Likewise.
1457         * combine.c: Likewise.
1458         * conflict.c: Likewise.
1459         * cppfiles.c: Likewise.
1460         * cppinit.c: Likewise.
1461         * cpplex.c: Likewise.
1462         * cpplib.c: Likewise.
1463         * cppmacro.c: Likewise.
1464         * cppspec.c: Likewise.
1465         * c-pragma.c: Likewise.
1466         * crtstuff.c: Likewise.
1467         * cse.c: Likewise.
1468         * cselib.c: Likewise.
1469         * c-semantics.c: Likewise.
1470         * c-typeck.c: Likewise.
1471
1472 2001-08-01  H.J. Lu <hjl@gnu.org>
1473
1474         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
1475
1476 2001-08-01  H.J. Lu <hjl@gnu.org>
1477
1478         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
1479
1480 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
1481
1482         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
1483         contextualizing Objective-C class name lookup by the lexer.
1484         (typespec_reserved_nonattr): Disable ObjC class name lookup after
1485         seeing a TYPESPEC.
1486         (protocoldef): Add support for forward @protocol declarations.
1487         (yylexname): Suppress ObjC class name lookup in certain contexts;
1488         re-enable after lookup is complete.
1489         (_yylex): Re-enable ObjC class name lookup when certain
1490         punctuation marks are seen.
1491
1492         * objc/objc-act.c (check_protocol_recursively): New function used
1493         for finding circular dependencies in protocols.
1494         (objc_declare_protocols): New function for handling forward
1495         @protocol declarations.
1496         (receiver_is_class_object): Detect the case when 'self' is used
1497         inside of a class method.
1498         (build_message_expr): Issue a warning if class method is desired
1499         but instance method is found instead.
1500         (conforms_to_protocol): Streamline.
1501         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
1502         protocol Foo, even if 'Bar foo' does not.
1503         (check_protocols): Streamline.
1504         (start_protocol): Add checks for circular and duplicate protocol
1505         definitions.
1506         (encode_aggregate_within): For typedefs of structs, encode the
1507         underlying struct.
1508         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
1509         (objc_declare_protocols): New prototype.
1510
1511 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1512
1513         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
1514         * cpplex.c (handle_newline): Update prototype.  Maintain logical
1515         line number.
1516         (skip_escaped_newlines, skip_block_comment, parse_string):
1517         Update accordingly.
1518         (_cpp_lex_token): Update, and store token position within the token.
1519         * cpplib.h (struct cpp_token): Add line and column entries.
1520         * cppmacro.c (replace_args): Position stringified tokens correctly.
1521
1522 2001-08-01  Andreas Jaeger  <aj@suse.de>
1523
1524         * basic-block.h: Add prototype for last_loop_beg_note.
1525
1526 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
1527
1528         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
1529         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
1530         comment.
1531         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
1532         while handling WITH_CLEANUP_EXPR node. Use second operand calling
1533         expand_decl_cleanup.
1534         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
1535         the first RTX.
1536         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
1537         operand while calling simple_cst_equal.
1538         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
1539         operand is the cleanup expression, the third is the RTL_EXPR.
1540         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
1541
1542 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
1543
1544         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
1545
1546 2001-07-31  matthew green  <mrg@eterna.com.au>
1547
1548         * config.gcc (i386-*-netbsdelf): New description.
1549         * config/i386/netbsd-elf.h: New file.
1550
1551 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
1552
1553         * loop.c (check_dbra_loop): Use single_set to compute
1554         jump_label.
1555
1556 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
1557
1558         PowerPC reorg and support for powerpc64-*-linux*.
1559
1560         Also fixes emitting of constants on 32 bit and 64 bit
1561         platforms.
1562
1563         * config.gcc: powerpc64-*-linux* is a new target.
1564         Things that needed aix.h now also include xcoff.h
1565
1566         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
1567         xcoff.h.
1568         Move AIX specific stuff into aix.h.
1569         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
1570         with more than just XCOFF now.
1571         (SET_ASM_OP): Remove, now defined where needed.
1572         (FUNCTION_PROLOGUE): New macro definition.
1573         (FUNCTION_EPILOGUE): New macro definition.
1574         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
1575
1576         * config/rs6000/xcoff.h: New file.
1577
1578         * config/rs6000/linux64.h: New file.
1579
1580         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
1581
1582 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
1583
1584         * rs6000.c (print_operand_address): Handle ELF syntax.
1585         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
1586         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
1587         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
1588
1589 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
1590
1591         * rs6000.c (rs6000_override_options): Only disable
1592         flag_function_sections for XCOFF.
1593         (exact_log2_cint_operand): New predicate.
1594         (reg_or_{add,sub}_cint64_operand): New predicates.
1595         (add_operand): Compare CONST_INT with fewer function calls.
1596         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
1597         (print_operand, case 'p'): Ensure positive operand.
1598         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
1599         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
1600         (PREDICATE_CODES): Add new predicates.
1601         * rs6000.md (addsi3): Split 32-bit constants more correctly.
1602         (divsi3, modsi3): Ensure positive power-of-2.
1603         (adddi3): Use new predicate.  Split 32-bit constants more
1604         correctly.  Re-arrange splitter to handle any constant.
1605         (subdi3): Use new predicate.
1606         (divdi3, moddi3): Ensure positive power-of-2.
1607         (movdi): Use rs6000_emit_set_const.
1608         (load_toc_v4_pic_di): Delete.
1609
1610 2001-07-31  Graham Stott <grahams@redhat.com>
1611
1612         * function.c (pad_below): Revert 2001-07-26 patch.
1613
1614 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
1615
1616         * reg-stack (convert_regs_1): Fix best edge condition.
1617
1618 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
1619
1620         * jump.c (duplicate_loop_exit_test): Better test for jumps
1621         entering the loop; create loop pre_header.
1622
1623 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
1624
1625         * doc/install.texi: Add s390 and s390x as new targets.
1626         * doc/invoke.texi: Add documantation of S/390 and zSeries
1627         target options.
1628         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
1629
1630 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
1631
1632         * config/m68k/m68k.md: Replace all general_operand with
1633         nonimmediate_operand for all destinations.
1634         * config/m68k/m68k.c (not_sp_operand): Likewise.
1635
1636 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
1637
1638         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
1639
1640 2001-07-30  Richard Henderson  <rth@redhat.com>
1641
1642         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
1643         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
1644
1645 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
1646
1647         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
1648         Add missing doc strings
1649         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
1650         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
1651
1652 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
1653
1654         * i386.c (ix86_output_main_function_alignment_hack): New function.
1655         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
1656
1657         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
1658         edges by EDGE_DFS_BACK flag.
1659         (dump_edge_info): Add dfs_back flag.
1660         * basic-block.h (EDGE_DFS_BACK): New constant.
1661         (mark_dfs_back_edges): Declare.
1662         * alias.c (loop_p): Remove.
1663         (mark_constant_function): Use mark_dfs_back_edges.
1664
1665         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
1666         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
1667         (compensate_edge): Break out from ...
1668         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
1669         (convert_regs_2): Set block_done once block is really done;
1670         Do updating of the predecesors counts.
1671
1672         * toplev.c (rest_of_compilation): Recompute block_for_insn
1673         before post-reload cfg_cleanup.
1674         * function.c (thread_prologue_epilogue_insns):
1675         Call set_block_for_new_insns when emitting prologue directly.
1676
1677 2001-07-30  Andreas Jaeger  <aj@suse.de>
1678
1679         * jump.c: Add prototype for mark_modified_reg.
1680
1681         * cse.c (set_live_p): Add unused attribute.
1682
1683         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
1684         overflow.
1685         (scan_for_source_files): Use long for count to avoid overflow.
1686         (output_data): Likewise.
1687         (output_data): Don't use string concatatenation to silence gcc
1688         -traditional.
1689
1690         * predict.c: Fix typos and grammar.
1691
1692         * gcse.c (insert_insn_end_bb): Remove unused variables.
1693
1694 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
1695
1696         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
1697         (attempt_auto_inc): LIkewise.
1698         (mark_used_reg): Likewise.
1699         (try_pre_increment_1): Likewise.
1700         * regclass.c (regclass): Likewise.
1701         * global.c (allocno_compare): Update comment; change scaling factor.
1702         * local-alloc.c (QTY_CMP_PRI): Likewise.
1703         * regs.h (REG_FREQ_FROM_BB): New.
1704         (REG_FREQ_MAX): Likewise.
1705
1706 2001-07-30  H.J. Lu <hjl@gnu.org>
1707
1708         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
1709         -D_GNU_SOURCE.
1710
1711 2001-07-30  H.J. Lu  (hjl@gnu.org)
1712
1713         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
1714         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
1715         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
1716
1717 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
1718
1719         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
1720         as -mthumb-interwork when -mcpu=arm7 is specified.
1721
1722 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
1723
1724         * predict.def (noreturn, loop branch, loop exit): Mark as first
1725         match heuristics.
1726
1727 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
1728
1729         * combine.c (try_combine): Avoid barrier after noop jumps.
1730
1731 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1732
1733         * cpphash.h (struct cpp_reader): Remove import_warning.
1734         * cpplib.c (skip_rest_of_line): Don't bother turning off
1735         macro expansion.
1736         (parse_include): Move include handling to...
1737         (do_include_common): ... here.  Move import warning from...
1738         (do_import): ... here.
1739         (do_pragma_poison): Don't do a callback for poison identifiers.
1740         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
1741         * cppmain.c (setup_callbacks): Similarly.
1742
1743 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
1744
1745         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
1746         handle multiple sets.
1747         * except.c (sjlj_mark_call_sites): .... here.
1748         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
1749
1750 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
1751
1752         Suggested by Richard Henderson and Richard Kenner:
1753         * combine.c (recog_for_combine): Use the fake recog
1754         only if instruction does not match.
1755         * rtl.h (NOOP_MOVE_INSN_CODE): New.
1756         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
1757
1758         * combine.c (try_combine): Discover noop jump as direct jump.
1759
1760 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
1761
1762         * df.c (df_rd_global_compute): Add successors to worklist, not
1763         current item.
1764         (df_ru_global_compute): Ditto.
1765
1766 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
1767
1768         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
1769         increment REG_N_SETS.
1770
1771 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
1772
1773         * sbitmap.h: New prototype for sbitmap_a_xor_b.
1774
1775         * sbitmap.c (sbitmap_a_xor_b): New function.
1776         ifdef the basic block stuff on IN_GCC.
1777
1778 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1779
1780         * cppexp.c (parse_defined): Always record the macro name.
1781         (lex): Don't worry about identifiers, or special-case
1782         CPP_NOT here.
1783         (_cpp_parse_expr): Figure out at the end of the routine
1784         whether we saw a valid !defined() expression.
1785         * cppfiles.c (stack_include_file): Update for mi_valid.
1786         (_cpp_pop_file_buffer): Similarly.
1787         * cpplex.c (_cpp_lex_token): Similarly.
1788         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
1789         mi_if_not_defined, mi_lexed): Remove.
1790         (mi_valid): New.
1791         * cpplib.c (do_if): Simplify.
1792         (do_endif, push_conditional, _cpp_handle_directive): Update
1793         for renaming of mi_state to mi_valid.
1794 doc:
1795         * cpp.texi: Add index entries for digraphs, and add comment
1796         that C++ refers to them as alternative tokens.
1797
1798 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
1799
1800         * basic-block.h (CLEANUP_PRE_LOOP): New.
1801         * except.c (finish_eh_generation): Update call of cleanup_cfg.
1802         * sibcall.c (optimize_sibling_calls): Likewise.
1803         * toplev.c (rest_of_compilation): Likewise.
1804         * flow.c (try_forward_edges): Take argument MODE;
1805         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
1806         (try_optimize_cfg): Update call of try_forward_edges.
1807
1808 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
1809                                Jan Hubicka  <jh@suse.cz>
1810
1811         * (validate_replace_rtx_1): Fix simplification of MINUS.
1812
1813 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1814
1815         PR preprocessor/3669
1816         * cppinit.c (init_dependency_output): Turn off dump requests
1817         if sending dependencies to stdout.
1818
1819 2001-07-28  Richard Henderson  <rth@redhat.com>
1820
1821         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
1822         not optimizing.
1823
1824 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
1825
1826         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
1827
1828 2001-07-28  Kazu Hirata  <kazu@hxi.com>
1829
1830         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
1831         is VAR_DECL first to prevent an ICE.
1832
1833 2001-07-28  Richard Henderson  <rth@redhat.com>
1834
1835         * varasm.c (immed_real_const_1): Don't elide special cases for
1836         nested functions.
1837         (clear_const_double_mem): Clear const_tiny_rtx too.
1838
1839 2001-07-28  Richard Henderson  <rth@redhat.com>
1840
1841         * dwarf2out.c (dw_val_class_offset): New.
1842         (struct dw_ranges_struct, dw_ranges_ref): New.
1843         (ranges_table, ranges_table_allocated): New.
1844         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
1845         (add_AT_offset, add_ranges, output_ranges): New.
1846         (print_die, output_die): Handle dw_val_class_offset.
1847         (attr_checksum, size_of_die, value_format): Likewise.
1848         (gen_lexical_block_die): Handle non-contiguous blocks.
1849         (gen_block_die): Likewise.
1850         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
1851         if needed.  Dump the ranges table.
1852         * final.c (final_start_function): Remove unnecessary notes and
1853         rebuild the block tree before numbering the blocks.
1854         * function.c (reorder_blocks_0): Walk the existing block tree
1855         to unmark all blocks.
1856         (reorder_blocks_1): Create block fragments when duplicate block
1857         notes are seen.
1858         (reorder_fix_fragments): New.
1859         (reorder_blocks): Call it.
1860         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
1861
1862 2001-07-28  Richard Henderson  <rth@redhat.com>
1863
1864         * emit-rtl.c (adjust_address): Make a copy of the memory address.
1865
1866 2001-07-28  Richard Henderson  <rth@redhat.com>
1867
1868         * flow.c (add_to_mem_set_list): New function.
1869         (init_propagate_block_info): Use it.
1870         (mark_set_1): Likewise.
1871         (insn_dead_p): Canonicalize memory address for dead store
1872         comparison.  Allow wider mode stores to kill narrower mode stores.
1873         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
1874         (invalidate_mems_from_set): Don't handle MEMs.
1875
1876 2001-07-28  Kazu Hirata  <kazu@hxi.com>
1877
1878         * config/h8300/h8300.h: Fix formatting.
1879
1880 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
1881
1882         * basic-block.h (EDGE_FREQUENCY): New macro.
1883         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
1884         for new BB/edges.
1885         * flow.c (find_sub_basic_blocks): Likewise.
1886         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
1887         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
1888
1889         * predict.c (DEF_PREDICTOR): New argument FLAGS.
1890         (HITRATE): New macro.
1891         (PRED_FLAG_FIRST_MATCH): New constant.
1892         (predictor_info): New field flgags.
1893         (combine_predictions_for_insn): Use DS theory to combine
1894         probabilities; set the edge probabilities when finished.
1895         (estimate_probability): Avoid duplicated matches
1896         of LOOP_BRANCH heuristics for nested loops; update comment.
1897         * predict.def: Add flags for each prediction, set probabilities
1898         according to B&L paper.
1899         * predict.h (DEF_PREDICTOR): New argument FLAGS.
1900
1901         * profile.c (compute_branch_probabilities):  Cleanup way the edge
1902         probabilities are computed and REG_BR_PROB notes are dropped; if
1903         values does not match, emit error.
1904         (init_branch_prob): Do error instead of warning when profile driven
1905         feedback is missing or corrupt.
1906
1907 2001-07-27  DJ Delorie  <dj@redhat.com>
1908
1909         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
1910         against a constant, try to adjust the compare to have the desired
1911         constant in it so that min/max optimizations happen more often.
1912
1913 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
1914
1915         * flow.c (last_loop_beg_note): New function.
1916         (redirect_edge_and_branch): Use it.
1917         (split_edge): Likewise.
1918
1919         * alias.c (loop_p): Avoid uninitialized memory access.
1920
1921         * flow.c (try_forward_edges): Avoid accessing freed memory.
1922
1923         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
1924         variable access.
1925
1926 2001-07-26  Andrew Haley  <aph@redhat.com>
1927         Joern Rennecke <amylaar@redhat.com>
1928
1929         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
1930         (SUBTARGET_CPP_ENDIAN_SPEC): New.
1931         (SUBTARGET_CPP_SPEC): New.
1932         (CPP_SPEC): Remove.
1933         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
1934         (SUBTARGET_CPP_PTR_SPEC): New.
1935         (CPP_DEFAULT_CPU_SPEC): New.
1936         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
1937         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
1938         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
1939         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
1940         (SUBTARGET_CPP_SPEC): Define as an empty string.
1941
1942 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1943
1944         * doc/install.texi (Configuration): Properly link the host
1945         specific instructions also when generating HTML.
1946
1947 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
1948
1949         * flow.c (redirect_edge_and_branch_force): Test
1950         target->global_live_at_start.
1951
1952 2001-07-26  Richard Henderson  <rth@redhat.com>
1953
1954         * simplify-rtx.c (avoid_constant_pool_reference): Export.
1955         * rtl.h (avoid_constant_pool_reference): Declare it.
1956         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
1957         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
1958
1959 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
1960
1961         * rtl.h (cleanup_barriers): Declare.
1962         * jump.c (cleanup_barriers): New function.
1963         * toplev.c (rest_of_compilation): Call cleanup_barriers
1964         before loop optimizer and after bb_reorder.
1965
1966         * flow.c (back_edge_of_syntactic_loop_p): New.
1967         (split_edge): Use it.
1968
1969 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1970
1971         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
1972
1973 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
1974
1975         * cse.c (cse_process_notes): Replace any registers if the address
1976         remains valid.
1977
1978 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
1979
1980         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
1981         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
1982         (propagate_block): Update prototype.
1983         * flow.c (update_life_info): Simplify the CFG and
1984         recalculate the global regs which are alive when
1985         removing dead code during a global update.
1986         (propagate_block): Return non-zero if an INSN is
1987         deleted.
1988
1989 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1990
1991         * Makefile.in (LIBICONV): Define.
1992
1993 2001-07-26  Catherine Moore  <clm@redhat.com>
1994
1995         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
1996         of conditional to avoid tree checking errors.
1997
1998 2001-07-26  Kazu Hirata  <kazu@hxi.com>
1999
2000         * regmove.c (regmove_optimize): Don't replace a reg with
2001         another reg of a different mode.
2002
2003 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
2004
2005         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
2006         limit length of dependancy flush list.
2007         * params.h (MAX_PENDING_LIST_LENGTH): Define.
2008         * sched-int.h  (struct deps): Add pending_flush_length field.
2009         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
2010         has 1 element in it.
2011         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
2012         (sched_analyze): After a jump, if the pending memory flush list is too
2013         large, flush the pending lists.
2014         (init_deps): Initialize pending_flush_length to 0.
2015         * doc/invoke.texi (max_pending_list_length): Document parameter.
2016
2017 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2018
2019         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
2020         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
2021         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
2022
2023 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2024
2025         * cpphash.h (struct_lexer_state): Delete was_skipping.
2026         Move skipping here from struct cpp_reader.
2027         * cpplex.c (parse_identifier): Update.
2028         (_cpp_lex_token): Don't skip tokens in a directive.
2029         * cpplib.c (struct if_stack): Update.
2030         (start_directive, end_directive): Don't change skipping state.
2031         (_cpp_handle_directive): Update.
2032         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
2033         (do_else, do_endif): Update; only check for excess tokens if not
2034         in a skipped conditional block.
2035         (push_conditional): Update for new struct if_stack.
2036
2037 2001-07-26  Graham Stott  <grahams@redhat.com>
2038
2039         * function.c (locate_and_pad_parm): Also pad initial offset
2040         so that the total argument size also includes the padding.
2041
2042 2001-07-26  Graham Stott <grahams@redhat.com>
2043
2044         * gensupport.c (alter_output_for_insn): Correct enable checking failure
2045         change XSTR to XTMPL.
2046
2047         (process_one_cond_exec): Likewise
2048
2049 2001-07-25  Richard Henderson  <rth@redhat.com>
2050
2051         * varasm.c (assemble_variable): Create DECL_RTL before setting
2052         TREE_ASM_WRITTEN.
2053
2054 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
2055
2056         * predict.c (estimate_probability): Avoid duplicated predictions.
2057
2058         * loop.c (find_and_verify_loops): Grok multiple barriers.
2059
2060 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2061
2062         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
2063
2064         * dbxout.c: Consistently use putc instead of fputc.
2065         (print_wide_int): New function; call instead of direct fprintf.
2066         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
2067         (dbxout_type_fields, dbxout_type_method_1): Likewise.
2068         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
2069         (print_int_cst_octal): Likewise.
2070         (print_octal): Show we wrote characters.
2071         (dbxout_type): Set have_used_extensions in more places.
2072
2073 2001-07-25  Catherine Moore  <clm@redhat.com>
2074
2075         * config/v850/v850.c (v850_va_arg):  Use addr
2076         instead of valist to build incr.
2077
2078 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
2079
2080         * flow.c (delete_dead_jumptables): New function.
2081         (life_analyzis): Call it.
2082         * bb-reorder.c (skip_insns_after_block): Handle contradictory
2083         sequences.
2084
2085 2001-07-25  Richard Henderson  <rth@redhat.com>
2086
2087         * except.c (reachable_handlers): Handle a region being removed
2088         out from under a RESX.
2089
2090 2001-07-25  Richard Henderson  <rth@redhat.com>
2091
2092         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
2093         swap GE/GT if it is an fp comparison.
2094
2095 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
2096
2097         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
2098         operands.
2099
2100 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
2101
2102         * ssa.c (rename_insn_1): Do not wrap an assignment to a
2103         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
2104         glitch.
2105
2106         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
2107         throw an exception.
2108         (visit_expression): When attempting to simplify an expression,
2109         retrieve any modes for arguments before they are simplified
2110         to constants.
2111
2112 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
2113             Janis Johnson  <janis@us.ibm.com>
2114
2115         * stmt.c (expand_goto): A nonlocal goto can be a call too.
2116         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
2117         pointer parameters to match documented usage of nonlocal_goto.
2118         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
2119         parameters to their correct order.
2120         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
2121         parameters to their correct order.
2122
2123 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
2124
2125         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
2126
2127 2001-07-25  Jan Hubicka  <jh@suse.cz>
2128             Richard Henderson  <rth@redhat.com>
2129
2130         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
2131         the sequence.
2132         (make_edges): New argument update_p; populate the edge cache if set.
2133         (find_basic_blocks): Update make_edges invocation.
2134
2135 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2136
2137         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
2138
2139 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2140
2141         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
2142         -Acpu and -Amachine.h.
2143         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
2144         Corrected header to say ELF not a.out.
2145         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
2146         when given -msoft-float.
2147
2148 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2149
2150         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
2151         extra multilib parts like arm-elf.
2152         (i960-*-coff*, i960-*-rtems): Should not use collect2.
2153         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
2154         crtfini.o as extra multilib parts.
2155
2156 2001-07-24  Joel Sherrill <joel@OARcorp.com>
2157
2158         * configure.in: Add rtems as a supported thread model.
2159         * gthr-rtems.h: Add missing entry point __gthread_active_p.
2160         * configure: Rebuilt.
2161
2162 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
2163
2164         * stor-layout.c (get_mode_alignment): make it work when
2165         BITS_PER_UNIT is not a power of two.
2166         * builtins.c (get_pointer_alignment): Likewise.
2167
2168 2001-07-24  Richard Henderson  <rth@redhat.com>
2169
2170         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
2171         the retrieved constant into the expected mode.
2172
2173 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
2174
2175         * flow.c (try_simplify_condjump): Avoid duplicated edges.
2176         (verify_flow_info): Check for duplicated edges; clarify
2177         error reporting.
2178
2179         * flow.c (block_label): Update basic_block_for_insn.
2180         (commit_edge_insertions): Call compute_bb_for_insn.
2181
2182         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
2183         returns too.
2184
2185         * flow.c (redirect_edge_and_branch,
2186         try_optimize_cfg): Use redirect_edge_succ_nodup
2187         (redirect_edge_succ_nodup): New.
2188         * basic_block.h (redirect_edge_succ_nodup): Declare.
2189
2190         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
2191         after gcse.
2192
2193 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
2194
2195         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
2196         (try_crossjump_to_edge): Update commetns.
2197         (try_crossjump_bb): Likewise.
2198
2199 2001-07-24  Richard Henderson  <rth@redhat.com>
2200
2201         * combine.c (distribute_notes): Move set of need_refresh
2202         for noop_move_p down to catch all cases.
2203
2204 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
2205
2206         * recog.c (split_all_insns_noflow): New.
2207         * rtl.h (split_all_insns_noflow): Declare.
2208         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
2209         * m68hc11.c (m68hc11_reorg): Likewise.
2210         * sh.c (machine_dependent_reorg): Likewise.
2211         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
2212         call.
2213
2214 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
2215
2216         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
2217         (ashlsi3_n splitter): Likewise.
2218         (lshrsi3_n splitter): Likewise.
2219
2220         (GOTaddr2picreg): Make const SImode.
2221         (sym_label2reg): Likewise.
2222         (symGOT2reg): Likewise.
2223         (symGOTOFF2reg) Likewise.
2224
2225         (casesi_worker_0): Make unspec SImode.
2226
2227 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
2228
2229         * config/sh/sh.c (barrier_align): Check that an operand really is
2230         an insn before extracting its INSN_CODE.
2231
2232 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
2233
2234         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
2235         dangling else.
2236
2237         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
2238         for SImode to prevent overflow.
2239
2240 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2241
2242         * config/mips/irix6-libc-compat.c: New file.
2243         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
2244         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
2245         passing workaround.
2246
2247 2001-07-24  lars brinkhoff  <lars@nocrew.org>
2248
2249         * rtl.texi (REG_POINTER): Document.
2250         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
2251         QFmode, HFmode, TQFmode, QCmode, and HCmode.
2252
2253 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
2254
2255         * flow.c (delete_noop_moves): Do not confuse libcall regions.
2256
2257 2001-07-23  Richard Henderson  <rth@redhat.com>
2258
2259         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
2260
2261 2001-07-23  Kazu Hirata  <kazu@hxi.com>
2262
2263         * config/h8300/h8300-protos.h: Add a prototype for
2264         general_operand_dst_push.
2265         * config/h8300/h8300.c (general_operand_dst_push): New.
2266         * config/h8300/h8300.h (OK_FOR_T): New.
2267         (EXTRA_CONSTRAINT): Use it.
2268         * config/h8300/h8300.md (movqi_push): Remove and integrate into
2269         the existing movqi pattern.
2270         (movhi_push): Likewise.
2271
2272         * reload.c: Fix comment typos.
2273
2274 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
2275
2276         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
2277
2278 2001-07-23  H.J. Lu  (hjl@gnu.org)
2279
2280         * doc/extend.texi: Update __builtin_return_address and
2281         __builtin_frame_address.
2282
2283 2001-07-23  Richard Henderson  <rth@redhat.com>
2284
2285         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
2286         before CSE.
2287         * config/i386/i386.md: New setcc+movzbl peephole2.
2288
2289 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2290
2291         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
2292         * objc/objc-act.c: Include debug.h.
2293         (synth_module_prologue): Save and restore debug hooks too.
2294
2295 2001-07-23  lars brinkhoff  <lars@nocrew.org>
2296
2297         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
2298         and C4X_FLOAT_FORMAT.
2299         (BOOL_TYPE_SIZE): Document.
2300
2301 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
2302
2303         * unroll.c (loop_iterations): Fix miscalculation of initial
2304         giv offset.
2305
2306 2001-07-13  Andrew Haley  <aph@redhat.com>
2307
2308         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
2309         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
2310         * config/sh/sh.c (sh_can_redirect_branch): New function.
2311         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
2312         * reorg.c (steal_delay_list_from_target): Use
2313         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
2314
2315 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
2316
2317         * flow.c (try_simplify_condjump): Unlink insn chain on
2318         fallthru edge; use can_fallthru.
2319
2320 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
2321
2322         * basic-block.h (find_sub_basic_block): Declare.
2323         * flow.c (make_edges): New arguments MIN and MAX;
2324         (find_sub_basic_blocks): Revamp to use make_edges
2325         and purge_dead_edges.
2326         (find_basic_blocks): Update call of find_sub_basic_block.
2327
2328         * recog.c (split_all_insns): Always expect CFG to be consistent;
2329         call find_sub_basic_blocks in case something has changed.
2330         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
2331         has been built.
2332
2333         * basic-block.h (delete_noop_moves): Declare.
2334         * combine.c (combine_instructions): Call it.
2335         (recog_for_combine): Tolerate noop moves
2336         (distribute_notes): Force refresh when register dies at noop move.
2337         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
2338         too.
2339         (life_analysis): Update delete_noop_moves call.
2340         (set_noop_p): Move too ...
2341         * rtlanal.c (noop_move_p): ... here.
2342         * rtl.h (noop_move_p): Declare.
2343
2344         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
2345         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
2346         after combine.
2347         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
2348         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
2349
2350 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
2351
2352         * reload.c (push_reload): Fix typo in comment.
2353         (find_reloads_address): Ditto.
2354         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
2355
2356 2001-07-22  Richard Henderson  <rth@redhat.com>
2357
2358         * flow.c: Grammar check and clarify a lot of comments.
2359         (try_simplify_condjump): Rename variables to be clearer.
2360         (try_forward_edges): Skip complex and fallthru edges.
2361         Rearrange tests to avoid duplicate checks.
2362         (flow_find_cross_jump): Likewise.
2363         (outgoing_edges_match): Allow match if neither branch has
2364         probability data.  Loosen probability match to 5%.
2365         (try_crossjump_to_edge): Hoist repeated indirection into
2366         local variables.
2367         (try_crossjump_bb): Don't check complex edges.  Eliminate
2368         redundant crossjump tests.
2369         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
2370         checks before more expensive checks.
2371
2372 2001-07-22  Richard Henderson  <rth@redhat.com>
2373
2374         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
2375         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
2376         arguments.
2377
2378 2001-07-22  Richard Henderson  <rth@redhat.com>
2379
2380         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
2381         (const_sint32_operand): Likewise.
2382         * m68k.md (anon mulsi pattern): Use const_int_operand not
2383         const_sint32_operand.
2384         (umulsi3_highpart): Zero extend a constant input.
2385         (smulsi3_highpart): Don't bother checking SImode constant.
2386         (const_umulsi3_highpart): Give op3 DImode.
2387         (const_smulsi3_highpart): Likewise.
2388
2389 2001-07-22  Richard Henderson  <rth@redhat.com>
2390
2391         * flow.c (split_block): Make sure bb_note is included in the
2392         new block when splitting before a label.
2393
2394 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2395
2396         * basic-block.h (redirect_edge_and_branch_force,
2397         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
2398         * flow.c (redirect_edge_and_branch_force,
2399         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
2400         (redirect_edge_and_branch_force): Fix copying of lifeness information.
2401         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
2402         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
2403         instead of label; update CFG after transformation.
2404         (find_if_case_1): Update call, use redirect_edge_and_branch_force
2405         for finishing the transformation; handle even case where ELSE
2406         does not follow THEN.
2407         (find_if_case_2): Update call of dead_or_predictable; simplify
2408         CFG update.
2409
2410         * emit-rtl.c (split_branch_probability): New global variable.
2411         (try_split): Take care to set split_branch_probability and
2412         create REG_BR_PROB note for new jump insns.
2413         * md.texi (define_split): Document new feature.
2414
2415         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
2416
2417 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2418
2419         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
2420         (asm_out_file): Remove redundant declaration.
2421         (assemble_asm): Remove old #if 0 block.
2422         (assemble_variable): Remove end of function; debug output is
2423         now handled with global_decl.  Remove old #if 0 block.  Update.
2424         Remove saved_in_section and associated no-op code.
2425         * Makefile.in (varasm.o): Correct dependencies.
2426
2427 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
2428
2429         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2430         the definition in defaults.h.
2431
2432 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
2433
2434         * jump.c: Update comments.
2435         (delete_barrier_successors, delete_unreferenced_labels,
2436         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
2437         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
2438         jump_optimize, jump_optimize_minimal): Kill.
2439         (rebuild_jump_labels): Move code from jump_optimize_1.
2440         (purge_line_number_notes): Likewise.
2441         (copy_loop_headers): Likewise.
2442         * reg-stack.c: Update comment.
2443         * stmt.c: Likewise.
2444         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
2445         JUMP_AFTER_REGSCAN): Kill.
2446         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
2447         purge_line_number_notes and copy_loop_headers.
2448
2449 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
2450            Richard Henderson  <rth@redhat.com>
2451
2452         * dbxout.c (dbxout_global_decl): New.
2453         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
2454         * sdbout.c (sdbout_finish): New.
2455         (sdbout_debug_hooks): Use it, add comments.
2456         (sdbout_global_decl): Defer initialised public vars to
2457         sdbout_finish.
2458         * varasm.c (assemble_variable): Don't output debug information
2459         for file-scope variables.
2460
2461 2001-07-22  Richard Henderson  <rth@redhat.com>
2462
2463         * config/alpha/alpha.c (get_trap_mode_suffix): New.
2464         (get_round_mode_suffix): New.
2465         (print_operand): Use them for [/].  Remove support for [&'`()+].
2466         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
2467         * config/alpha/alpha.md (attr round_suffix): New.
2468         (attr trap_suffix): New.
2469         (all insns): Set them appropriately.  Use %/ instead of the
2470         myriad punctuators.
2471
2472 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2473
2474         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
2475
2476 2001-07-22  Richard Henderson  <rth@redhat.com>
2477
2478         * regrename.c (regrename_optimize): Compute nregs for each
2479         potential target register.
2480
2481 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
2482            Richard Henderson  <rth@redhat.com>
2483
2484         * dbxout.c (dbxout_global_decl): New.
2485         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
2486         * sdbout.c (sdbout_finish): New.
2487         (sdbout_debug_hooks): Use it, add comments.
2488         (sdbout_global_decl): Defer initialised public vars to
2489         sdbout_finish.
2490         * varasm.c (assemble_variable): Don't output debug information
2491         for file-scope variables.
2492
2493 2001-07-21  H.J. Lu  (hjl@gnu.org)
2494
2495         * config/mips/mips.c (mips_cpu): Moved into ...
2496         (override_options): Here.
2497
2498         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
2499         mips_tune.
2500         (mips_cpu): Removed.
2501
2502 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2503
2504         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
2505         ("iorqi3"): Likewise.
2506         ("xorqi3"): Likewise.
2507         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
2508         ("*subhi3_sp): Likewise.
2509         ("*subhi3"): Likewise.
2510         ("extendhisi2"): Accept D, X and Y as source operand to avoid
2511         reload problems.
2512
2513 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
2514
2515         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
2516         * config/freebsd.h: Likewise.
2517         * config/linux.h: Likewise.
2518         * config/openbsd.h: Likewise.
2519         * config/alpha/linux-elf.h: Likewise.
2520         * config/arm/linux-elf.h: Likewise.
2521         * config/d30v/d30v.h: Likewise.
2522         * config/fr30/fr30.h: Likewise.
2523         * config/ia64/aix.h: Likewise.
2524         * config/ia64/ia64.h: Likewise.
2525         * config/mips/linux.h: Likewise.
2526         * config/pj/pj.h: Likewise.
2527         * config/rs6000/linux.h: Likewise.
2528         * config/sparc/linux.h: Likewise.
2529         * config/sparc/linux64.h: Likewise.
2530
2531 2001-07-20  Bruce Korb  <bkorb@gnu.org>
2532
2533         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
2534         because getc() and char* may disagree on signedness.
2535
2536 2001-07-20  Richard Henderson  <rth@redhat.com>
2537
2538         * doc/rtl.texi (REG_DEAD): Update for current semantics.
2539
2540         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
2541         insns to delete in the presence of cc0 in a jump insn.
2542
2543 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
2544                                Jan Hubicka  <jh@suse.cz>
2545
2546         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
2547         of doing the change by hand.
2548
2549 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
2550
2551         * rtlanal.c (set_noop_p): Return true for noop jumps.
2552
2553         * expr.c (emit_single_push_insn): Add call to push expander.
2554         * expr.h (optab_index): Add OTI_push
2555         (push_optab): New constant.
2556         * genopinit.c (optabs): Add push_optab.
2557         * optabs.c (init_optab): Init push optab.
2558         * md.texi (push??1): Document
2559
2560 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2561
2562         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
2563         expand to emit the pattern; put a REG_INC note for push/pop
2564         instructions.
2565         ("movdf", "movdf_internal"): Likewise.
2566         ("movsi", "movsi_internal"): Likewise.
2567         ("movsf", "movsf_internal"): Likewise.
2568         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
2569
2570 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2571
2572         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
2573         gen_highpart.
2574
2575 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
2576
2577         * params.def: Change default max inline insns to 100.
2578
2579 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
2580
2581         * combine.c (combine_simplify_rtx): Generate a new shift operation
2582         when simplifying the first operand of a (neg (ashift)) expression.
2583
2584 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2585
2586         * regclass.c (N_REG_INTS): Use only 32 bits per element.
2587
2588 2001-07-20  Kelley Cook  <kelley.cook@home.com>
2589
2590         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
2591         information.   Move rest into ...
2592         (*-*-solaris): ... here.  Eliminate redundant information and
2593         reword necessary packages section.  Delete 4.x assembler bug info.
2594         (sparc-sun-*): Merge into ...
2595         (sparc-sun-sunos*): here.
2596
2597 2001-07-20  Catherine Moore  <clm@redhat.com>
2598
2599         * config/v850/v850.md (casesi): Generate LABEL_REF
2600         with Pmode.
2601
2602 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
2603
2604         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
2605         * i386.c (ix86_zero_extend_to_Pmode): Make global.
2606         * i386.md (strclrsi expander): Use it.
2607
2608 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2609
2610         * integrate.c (copy_insn_list): handle
2611         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
2612         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
2613         identically as to CODE_LABEL.
2614
2615         * fold-const (fold): Convert A/B/C to A/(B*C) and
2616         A/(B/C) to (A/B)*C
2617
2618         * except.c (connect_post_landing_pads): Delete the RESX insns.
2619
2620 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
2621
2622         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
2623
2624         * config/mips/mips.md (nmadd/nmsub): Use macro.
2625
2626 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
2627
2628         * cppinit.c (remove_dup_dir): Make static.
2629         (remove_dup_dirs): Make static. Only warn about preempting a
2630         system directory with a non-system directory.
2631
2632 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
2633
2634         * ifcvt.c (noce_try_store_flag_constants): Correct order
2635         of parameters to trunc_int_for_mode.
2636
2637 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
2638
2639         * reorg.c (fill_simple_delay_slots): If an instruction might throw
2640         an exception that will be caught within this function, do not fill
2641         its delay slot with any subsequent instruction.
2642
2643 2001-07-19  Steve Ellcey <sje@cup.hp.com>
2644
2645         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
2646         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
2647         pointer extension instruction.
2648         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
2649         * simplify-rtx.c (simplify_unary_operation) Likewise.
2650         * explow.c (convert_memory_address) Check value of
2651         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
2652         less than zero.
2653         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
2654         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
2655         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
2656         Add Multilib Support.
2657         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
2658         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
2659         Add Multilib Support.
2660         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
2661         support.
2662         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
2663         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
2664         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
2665
2666 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
2667
2668         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
2669         old and new operands in `<', `3' and `b'.
2670
2671 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2672
2673         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
2674         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
2675         (toplev.o): Don't depend on xcoffout.h.
2676         * c-decl.c: Include debug.h
2677         (duplicate_decls): Use debug hook.
2678         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
2679         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2680         (dbxout_types): Remove.
2681         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
2682         * debug.c (do_nothing_debug_hooks): Update.
2683         (debug_true_tree, debug_nothing_rtx): New.
2684         * debug.h (struct rtx_def): New.
2685         (struct gcc_debug_hooks): New hooks ignore_block,
2686         outlining_inline_function and label.
2687         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
2688         dwarf2out_frame_finish): New.
2689         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
2690         Make static, update prototype.
2691         (dwarf2_debug_hooks): Update.
2692         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
2693         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
2694         * dwarfout.c (dwarf_debug_hooks): Update.
2695         * emit-rtl.c: Include debug.h.
2696         (remove_unnecessary_notes): Use debug hook.
2697         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
2698         (final_scan_insn): Use debug hook.
2699         * integrate.c (output_inline_function): Use debug hook.
2700         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
2701         (sdb_debug_hooks): Update.
2702         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
2703         * toplev.c: Don't include xcoffout.h.
2704         (note_outlining_of_inline_function, debug_ignore_block): Remove.
2705         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
2706         Remove.
2707         * tree.h (dwarf2out_do_frame): Remove.
2708
2709 2001-07-19  Catherine Moore  <clm@cygnus.com>
2710
2711         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
2712
2713 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
2714
2715         * reload1.c (eliminate_regs_in_insn): When updating a set
2716         to the frame pointer to the hardware frame pointer, perform
2717         the update always not just when REPLACE is set.
2718
2719         * reload1.c (choose_reload_regs): Don't inherit a reload
2720         that crosses multiple registers if registers past the first
2721         don't fit in the desired class.
2722
2723         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
2724         when negating constants.
2725
2726 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2727
2728         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
2729         * doc/tree.texi: Ditto.
2730
2731 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
2732             Jakub Jelinek  <jakub@redhat.com>
2733
2734         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
2735         (extract_cie_info): Handle "eh" augmentation properly,
2736         remember eh_ptr.
2737         (struct frame_state, __frame_state_for): New.
2738
2739 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2740
2741         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
2742         HANDLE_SYSV_PRAGMA): Define.
2743         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
2744         previous args.
2745         (copy_object): Caller changed.
2746
2747 2001-07-19  Andreas Schwab  <schwab@suse.de>
2748
2749         * configure.in (assembler dwarf2 debug_line support): Define nop
2750         insn for m68k.
2751         * configure: Regenerated.
2752
2753 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2754
2755         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
2756         dwarfout.h.
2757         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
2758         to conditionally compiled block.
2759         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2760         * dbxout.h (dbxout_function): Remove.
2761         * debug.c (do_nothing_debug_hooks): Update.
2762         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
2763         global_decl, deferred_inline_function.
2764         * dwarf2out.c (dwarf2_debug_hooks): Update.
2765         (dwarf2out_global_decl): New.
2766         * dwarfout.c: Don't include dwarfout.h.
2767         (dwarfout_global_decl, dwarfout_function_decl,
2768         dwarfout_deferred_inline_function): New.
2769         (dwarf_debug_hooks): Update.
2770         * dwarfout.h: Remove.
2771         * final.c: Don't include dwarfout.h.
2772         * sdbout.c (sdbout_global_decl): New.
2773         (sdbout_debug_hooks): Update.
2774         * toplev.c: Don't include dwarfout.h.
2775         (check_global_declarations, rest_of_compilation): Use new debug hooks.
2776         (note_deferral_of_defined_inline_function): Remove.
2777         * toplev.h (note_deferral_of_defined_inline_function): Remove.
2778         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
2779         * ch/lex.c: Don't include dwarfout.h.
2780         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
2781         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
2782         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
2783         * cp/optimize.c: Include debug.h.
2784         (maybe_clone_body): Use debug hook.
2785         * cp/semantics.c: Include debug.h.
2786         (expand_body): Use debug hook.
2787         * po/POTFILES.in: Remove dwarfout.h.
2788
2789 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2790
2791         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
2792         * c-parse.in (yyerror, _yylex): Similarly.
2793         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
2794         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
2795         Update comments.
2796         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
2797         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
2798
2799 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
2800
2801         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
2802         in-class declaration at -g1.  Fixes c++/2814.
2803
2804 2001-07-18  Richard Henderson  <rth@redhat.com>
2805
2806         * doc/md.texi (reload_in/out): Document restrictions in predicates
2807         and constraints for these patterns.  Document empty string matching
2808         ALL_REGS.
2809
2810 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2811
2812         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
2813
2814 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
2815
2816         * cse.c: Undo my previous patch.
2817
2818 2001-07-18  Tom Tromey  <tromey@redhat.com>
2819
2820         For PR java/2812:
2821         * configure: Rebuilt.
2822         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
2823         instead.
2824         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
2825
2826 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
2827                                Jan Hubicka  <jh@suse.cz>
2828
2829         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
2830         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
2831         * jump.c (mark_jump_label): Do not forward branches.
2832
2833 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
2834
2835         * cse.c (delete_trivially_dead_insns): Delete the libcall block
2836         when return value is unused.
2837
2838 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2839
2840         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
2841
2842 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2843
2844         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
2845         on error.  We can't blindly return the result of
2846         pthread_mutex_trylock because it returns a positive number on
2847         error, while we must return -1 on error.
2848         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
2849         fixes.
2850         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
2851
2852 2001-07-18  Andreas Jaeger  <aj@suse.de>
2853
2854         * integrate.c (output_inline_function): Correct type of debug_hooks.
2855
2856 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2857
2858         * combine.c (combine_simplify_rtx): DIV can be treated
2859         associatively for floats if unsafe math optimisations are enabled.
2860
2861 2001-07-17  Richard Henderson  <rth@redhat.com>
2862
2863         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
2864
2865 2001-07-17  Richard Henderson  <rth@redhat.com>
2866
2867         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
2868         don't force the function address into a register.
2869         (expand_call, emit_library_call_value_1): Update callers.
2870         * builtins.c (expand_builtin_apply): Likewise.
2871         * expr.h (prepare_call_address): Update decl.
2872
2873 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
2874
2875         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
2876         config directory.
2877         * config/i386/chorus.h: Move up.
2878         * config/sparc/chorus.h: Likewise.
2879         * config/rs6000/chorus.h: Likewise.
2880         * config/chorus.h: Moved here.
2881
2882 2001-07-17  Andreas Schwab  <schwab@suse.de>
2883
2884        * configure.in  (assembler eh_frame optimization): Handle big
2885        endian.
2886        * configure: Regenerated.
2887
2888 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2889
2890         * expr.c (epxand_expr): Convert divisions into multiplications by
2891         reciprocals if -ffast-math.
2892
2893 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2894
2895         * dbxout.c (dbxout_really_begin_function): Rename to
2896         dbxout_begin_function.
2897         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2898         (dbxout_begin_function): Remove.
2899         (dbxout_function): Update.
2900         (dbxout_source_line): Update prototype.
2901         * dbxout.h (dbxout_begin_function): Remove.
2902         * debug.c (do_nothing_debug_hooks): Update.
2903         (debug_nothing_tree): Update.
2904         (debug_nothing_charstar_rtx): Remove.
2905         * debug.h (union tree_node): Declare.
2906         (struct rtx_def): Remove.
2907         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
2908         begin_function.  Change source_line prototype.
2909         (debug_nothing_tree): New.
2910         (debug_nothing_charstar_rtx): Delete.
2911         (dwarf2out_begin_prologue): Moved from ...
2912         * tree.h: ... here.
2913         * dwarf2out.c (dwarf2_debug_hooks): Update.
2914         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
2915         debug info, call dwarf2out_source_line.
2916         (dwarf2out_souce_line): Update prototype.
2917         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
2918         Change prototype, make static.
2919         (dwarfout_source_line): Update prototype.
2920         (dwarf_debug_hooks): Update.
2921         * dwarfout.h (dwarfout_begin_function): Remove.
2922         * final.c (final_start_function, final_scan_insn): Use appropriate
2923         debug hooks, update to use notice_source_line.
2924         (output_source_line): Rename notice_source_line.  Don't call the
2925         source_line debug hook.
2926         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
2927         make static, update prototype.
2928         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
2929         prototype.
2930         (sdbout_end_prologue): New.
2931         (sdbout_source_line): Update prototype.
2932         (sdbout_debug_hooks): Update.
2933         (sdbout_symbol): Remove unused var.
2934         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
2935         Delete.
2936         * varasm.c: Include debug.h.
2937         (assemble_start_function): Use begin_function debug_hook.
2938         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2939         update with prototype.
2940         (xcoffout_source_line): Update prototype.
2941         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2942         update prototype.
2943         (xcoffout_source_line): Update prototype.
2944
2945 2001-07-17  Richard Henderson  <rth@redhat.com>
2946
2947         * c-typeck.c (build_binary_op): Do not shorten unsigned
2948         right shift after sign extension.
2949
2950 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
2951
2952         * combine.c (combine_simplify_rtx): Attempt to simplify
2953         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
2954
2955         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
2956         (simplify_binary_operation, simplify_unary_operation,
2957          simplify_relational_operation): Use it.
2958
2959         * combine.c (combine_simplify_rtx): Don't do associative law
2960         on divisions; allow associative law on floats.
2961
2962 2001-07-17  H.J. Lu <hjl@gnu.org>
2963             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2964
2965         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
2966         ASM_OUTPUT_WEAK_ALIAS are defined.
2967         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
2968         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
2969         Moved ...
2970         * config/mips/iris5.h: ... here.
2971         (HANDLE_SYSV_PRAGMA): Defined as 1.
2972         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
2973         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
2974         symbol.
2975
2976 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
2977
2978         * c-parse.in (all_prefix_attributes): New variable.
2979         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
2980         (maybe_resetattrs): New production.
2981         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
2982         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
2983         notype_initdcl, nested_function, notype_nested_function,
2984         component_decl, components, components_notype,
2985         component_declarator, component_notype_declarator,
2986         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
2987         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
2988         after a comma being applied to more than one declarator.
2989         * doc/extend.texi (Attribute Syntax): Update.  Remove
2990         documentation of bugs that are no longer present.
2991
2992 2001-07-13  Eric Christopher  <echristo@redhat.com>
2993
2994         * config/mips/mips.h: Change TUNE_MIPS* options to use
2995         mips_tune.
2996         (EXTRA_SPECS): Add cc1_cpu_spec.
2997         * config/mips/mips.md (muldf3): Fix typo.
2998
2999 2001-07-16  Richard Henderson  <rth@redhat.com>
3000
3001         * config/m68k/m68k.c: Include expr.h and reload.h.
3002         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
3003         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
3004
3005 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
3006             Richard Henderson  <rth@redhat.com>
3007
3008         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
3009         (insn_live_p): Fix fall off end of function.
3010         (dead_libcall_p): Remove COUNTS argument; update callers.
3011         (delete_trivially_dead_insns): Remove unused variables.
3012
3013 2001-07-17  Andreas Jaeger  <aj@suse.de>
3014
3015         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
3016         x86-64 pic support.
3017
3018         * lcm.c (optimize_mode_switching): Avoid warning for unused
3019         variable if !NORMAL_MODE.
3020
3021         * flow.c (try_crossjump_to_edge): Remove unused variable.
3022
3023 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3024
3025         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
3026         atexit declaration in stdlib.h.
3027
3028 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
3029
3030         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
3031
3032 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3033
3034         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
3035         * except.c (finish_eh_generation): Update call of cleanup_cfg;
3036         do rebuild_jump_labels instead of jump_optimize
3037         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
3038         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
3039         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
3040
3041         * flow.c: Include timevar.h
3042         (find_basic_block): Push/pop timevar;
3043         (cleanup_cfg): Likewise.
3044         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
3045         * Makefile: Add dependencies on timevar.h
3046
3047         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
3048         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
3049
3050         * rtl.h (delete_trivially_dead_insns): Add new parameter.
3051         * toplev.c (rest_of_compilation): Update calls.
3052         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
3053         (delete_trivially_dead_insns): ... here; accept new argument
3054         preserve_basic_blocks; preserve basic blocks if set.
3055
3056         * reg-stack.c (stack_regs_mentioned): Return 0 if
3057         stack_regs_mentioned_data is not initialized.
3058         (reg_to_stack): Make stack_regs_mentioned survive after the
3059         reg-stack is completted; do not call cleanup_cfg.
3060         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
3061         make cleanup_cfg after bb-reorder to output to debug file.
3062
3063 2001-07-16  Richard Henderson  <rth@redhat.com>
3064
3065         * regclass.c (init_reg_sets): Use only 32 bits per initializer
3066         from int_reg_class_contents.
3067
3068 2001-07-16  Richard Henderson  <rth@redhat.com>
3069
3070         * hard-reg-set.h (regs_invalidated_by_call): Declare.
3071         * regclass.c (regs_invalidated_by_call): Move from cse.c.
3072         (init_reg_sets_1): Move initialization from cse_main.
3073         * cse.c (regs_invalidated_by_call): Move to regclass.c.
3074         (cse_main): Move its initialization also.
3075         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
3076         * flow.c (propagate_one_insn): Likewise.
3077         * gcse.c (compute_hash_table): Likewise.
3078         (compute_kill_rd, compute_store_table): Likewise.
3079         * sched-deps.c (sched_analyze_1): Likewise.
3080
3081 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
3082
3083         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
3084         gen_rtx_SET.
3085
3086 2001-07-16  Steve Ellcey <sje@cup.hp.com>
3087
3088         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
3089         in if statement so we don't access undefined memory.
3090
3091 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
3092
3093         * gcse.c: Update comment at top.
3094         Update comment on mem handling.
3095         mem_last_set, mem_first_set, mem_set_in_block: gone.
3096         Declaration of reg_set_info: gone.
3097         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
3098         pointless with load_killed_in_block_p (they are *more*
3099         conservative then it, not less, and less accurate).
3100         (oprs_not_set_p): Ditto.
3101         (alloc_gcse_mem): Don't allocate mem_set_in_block
3102         (free_gcse_mem): Don't free it, either.
3103         (record_last_mem_set_info): Update comment in front, remove
3104         mem_*set_* stuff. Note the reason we don't handle stores directly
3105         here.
3106         (compute_hash_table): Update comments to reflect reality. Remove
3107         mem_*set_* references.
3108         (reset_opr_set_tables): Remove mem_*set_* references.
3109         (mark_call): Ditto.
3110         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
3111         (mark_clobber): Ditto (on both parts, we double set here too).
3112         (expr_killed_p): Remove mem_set_in_block test.
3113         (compute_transp): Remove mem_set_in_block test.
3114
3115         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
3116         of edge, and removal of phi alternative to dump file.
3117         (ssa_ccp_substitute_constants): Add note about register now being
3118         constant, and which uses were replaced in what insns to dump file.
3119
3120 2001-07-16  Andreas Jaeger  <aj@suse.de>
3121
3122         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
3123         variables of type HOST_WIDEST_INT.
3124
3125         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
3126         (__bb_exit_func): Correct type of count_max to avoid overflow.
3127         (num_digits): Handle long long argument.
3128
3129         * combine.c (gen_lowpart_for_combine): Remove unused variable.
3130
3131 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3132
3133         * output.h (sdb_begin_function_line): Restore as an extern
3134         variable.
3135         * sdbout.c (sdb_begin_function_line): Make extern.
3136
3137 2001-07-15  Richard Henderson  <rth@redhat.com>
3138
3139         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
3140         * genrecog.c (maybe_both_true_mode): New.
3141         (maybe_both_true_2): Use it.
3142         (write_switch): Don't put Pmode in a switch.
3143         * rtl.c (mode arrays): Don't explicitly size them.
3144
3145 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
3146
3147         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
3148         handling; move unconditional splitting before mode switching.
3149
3150         * i386.md (type): Add fistp type.
3151         (i387, length_attr, scheduling definitions): Handle this type.
3152         (fix_trunc?f?i2): Revamp to use mode switching.
3153         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
3154         * i386.h (fp_cw_mode): New enum
3155         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
3156         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
3157
3158 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3159
3160         * Makefile.in (integrate.o): Add debug.h.
3161         * integrate.c (debug.h): Add.
3162         (output_inline_function): Save, reset, and restore debug_hooks.
3163
3164 2001-07-15  Richard Henderson  <rth@redhat.com>
3165
3166         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
3167         instead of COMPARE for the EQUIV expression.
3168
3169 2001-07-15  Richard Henderson  <rth@redhat.com>
3170
3171         * flow.c (redirect_edge_and_branch_force): Initialize
3172         global_live_at_start and global_live_at_end.
3173         (allocate_bb_life_data): Export.
3174         * basic-block.h (allocate_bb_life_data): Declare.
3175         * toplev.c (rest_of_compilation): Call it.
3176
3177 2001-07-15  Richard Henderson  <rth@redhat.com>
3178
3179         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
3180         (alpha_tablejump_best_label): New.
3181         * config/alpha/alpha-protos.h: Declare them.
3182         * config/alpha/alpha.md: Use braced strings for code blocks.
3183         (tablejump_osf): Break out add with r29.
3184         (tablejump_osf_internal): Remove.
3185         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
3186         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
3187
3188 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
3189
3190         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
3191         of the movable.
3192
3193         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
3194
3195         * i386-protos.h (ix86_split_fp_branch): Update prototype.
3196         (ix86_fp_jump_nontrivial_p): New.
3197         * i386.md (fp_jcc_?): Update call of split_fp_branch;
3198         use ix86_fp_jump_nontrivial_p.
3199         * i386.c (ix86_fp_jump_nontrivial_p): New.
3200         (ix86_split_fp_branch): Accept code instead of rtx.
3201         (ix86_expand_compare): Expand comparison early in case
3202         doing so is resonably cheap.
3203
3204 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
3205
3206         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
3207         not 'machine'.
3208         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
3209         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
3210
3211 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3212
3213         * dbxout.c (dbxout_source_line): Make static, update prototype.
3214         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
3215         (dbxout_init, dbxout_finish, dbxout_source_line,
3216         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
3217         * dbxout.h (dbxout_source_line): Delete.
3218         * debug.c (debug_nothing_file, debug_nothing_file_int,
3219         debug_nothing_file_charstar_rtx): New.
3220         (do_nothing_debug_hooks): Update.
3221         (debug_nothing_void, debug_nothing_charstar_rtx,
3222         dwarf2out_end_epilogue): New.
3223         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
3224         * debug.h (struct rtx_def): Declare.
3225         (gcc_debug_hooks): New hooks source_line, end_epilogue
3226         and end_function.
3227         (debug_nothing_void, debug_nothing_charstar_rtx,
3228         dwarf2out_end_epilogue): New.
3229         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
3230         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
3231         (dwarf2_debug_hooks): Update.
3232         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
3233         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
3234         * dwarf2out.h (dwarf2out_source_line): Remove.
3235         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
3236         Make static, update prototype.
3237         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
3238         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
3239         (dwarf_debug_hooks): Update.
3240         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
3241         dwarfout_end_function): Remove.
3242         * final.c (profile_function): Use debug hooks for ending functions
3243         and epilogues.
3244         (output_source_line, final_end_function): Update prototype,
3245         use debug hooks.
3246         (final_start_function, final_scan_insn): Update.
3247         * output.h (sdb_begin_function_line): Remove.
3248         (final_end_function): Update prototype.
3249         * sdbout.c (sdb_begin_function_line): Make static.
3250         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
3251         (sdbout_source_line): New.
3252         (sdbout_end_epilogue, sdbout_end_function): Make static, update
3253         prototypes.
3254         (sdb_debug_hooks): Update.
3255         (sdbout_init, sdbout_source_line,
3256         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
3257         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
3258         * toplev.c (compile_file, rest_of_compilation): Update.
3259         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
3260         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
3261         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
3262         Update for prototype changes.
3263         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
3264         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
3265
3266 2001-07-15  Richard Henderson  <rth@redhat.com>
3267
3268         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
3269         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
3270         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
3271         * config/alpha/alpha.c: Likewise.
3272         * config/alpha/alpha.md: Likewise.
3273         * config/alpha/alpha32.h: Likewise.
3274         * config/alpha/vms.h: Likewise.
3275         (OPEN_VMS): Remove.
3276
3277 2001-07-14  Richard Henderson  <rth@redhat.com>
3278
3279         * config/alpha/alpha.md: Use define_constants for unspec values.
3280         Substitute throughout.
3281
3282 2001-07-14  Tim Josling  <tej@melbpc.org.au>
3283
3284         * tree.def (EXPON_EXPR) remove. Never supported anyway.
3285
3286 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3287
3288         * pa.md: Remove unused constraints from define_split's.
3289
3290 2001-04-14  Richard Henderson  <rth@redhat.com>
3291
3292         * ifcvt.c (find_cond_trap): Test for exit block.
3293
3294 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
3295
3296         Re-install recently reverted patch.
3297         * emit-rtl.c (try_split): Update mark_jump_label call.
3298         * flow.c (find_sub_basic_blocks): Likewise.
3299         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
3300         jump_back_p): Kill.
3301         (mark_all_labels): Kill second parameter.
3302         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
3303         (rebuild_jump_labels, jump_optimize_minimal): Update call
3304         of jump_optimize_1.
3305         (jump_optimize_1): Kill crossjumping code.
3306         (mark_jump_label): Kill cross_jump parameter.
3307         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
3308         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
3309         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
3310          splitting.
3311         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
3312         DFI_bpro.
3313         (dump_file_info): Likewise.
3314         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
3315         reorganize passes to do reg-stack first, bb-reorder second.
3316         * invoke.texi (-d letters doc): Remove the jump2 pass.
3317
3318 2001-07-14  Richard Henderson  <rth@redhat.com>
3319
3320         * ifcvt.c (find_cond_trap): New.
3321         (find_if_header): Call it.
3322         (merge_if_block): Relax existing jump sanity check.
3323         * jump.c (jump_optimize_1): Remove conditional trap handling.
3324
3325 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
3326
3327         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
3328         millicode.
3329         (insn_refs_are_delayed): Correct comment.
3330         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
3331         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
3332         instead of r31.  Make associated insn !TARGET_64BIT, and
3333         provide an additional 64-bit insn that clobbers r2.
3334         (divsi3): Likewise.
3335         (udivsi3): Likewise.
3336         (modsi3): Likewise.
3337         (umodsi3): Likewise.
3338
3339 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
3340
3341         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
3342
3343         * flow.c (redirect_edge_and_branch_force, split_edge,
3344         try_crossjump_to_edge): Use set_block_for_new_insns.
3345         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
3346
3347 2001-07-13  H.J. Lu  (hjl@gnu.org)
3348
3349         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
3350         the correct patch.
3351
3352 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
3353
3354         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
3355
3356 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
3357
3358         * c-common.c (decl_attributes): Take a pointer to the node to
3359         which attributes are to be attached, and a flags argument.
3360         * c-common.h (enum attribute_flags): New.
3361         (decl_attributes): Update prototype.
3362         * c-decl.c (start_decl, push_parm_decl, finish_struct,
3363         finish_enum, start_function): Update calls to decl_attributes.
3364         * c-parse.in (component_declarator, component_notype_declarator,
3365         label): Update calls to decl_attributes.
3366
3367 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
3368
3369         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
3370         * config/avr/avr.c (legitimate_address_p): Return value changed
3371         from letter to register classes. For better debugging.
3372
3373 2001-07-13  Kazu Hirata  <kazu@hxi.com>
3374
3375         * jump.c (reversed_comparison_code_parts): Fix comment typos.
3376
3377 2001-07-13  H.J. Lu  (hjl@gnu.org)
3378
3379         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
3380
3381 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
3382
3383         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
3384         correctly for shared configurations.
3385         * config/t-libgcc-pic:  New.
3386         * config/{i386,m68k,sparc}/t-openbsd:  New.
3387         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
3388         Support -shared.  Support debugging libraries with -g.
3389         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
3390         frame information does not emit pointer diffs.
3391         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
3392         emit pointer diffs.
3393
3394 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
3395
3396         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
3397
3398 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
3399
3400         * combine.c (try_combine): Ensure const_int pow2 is positive.
3401
3402 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
3403
3404         * config.gcc: Add configuration for s/390.
3405         * config/s390/s390.c: New. Subroutines for code generation.
3406         * config/s390/s390.h: New. Definitions for s/390.
3407         * config/s390/s390-protos.h: New. Prototypes.
3408         * config/s390/linux.h: New. Definitions for linux for s/390.
3409         * config/s390/linux64.h: New. Definitions for linux for zSeries.
3410         * config/s390/t-linux: New. Makefile fragment.
3411         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
3412         * config/s390/fixdfdi.h: New. Fix L_fix*di.
3413
3414 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
3415
3416         * emit-rtl.c (try_split): Update mark_jump_label call.
3417         * flow.c (find_sub_basic_blocks): Likewise.
3418         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
3419         jump_back_p): Kill.
3420         (mark_all_labels): Kill second parameter.
3421         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
3422         (rebuild_jump_labels, jump_optimize_minimal): Update call
3423         of jump_optimize_1.
3424         (jump_optimize_1): Kill crossjumping code.
3425         (mark_jump_label): Kill cross_jump parameter.
3426         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
3427         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
3428         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
3429          splitting.
3430         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
3431         DFI_bpro.
3432         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
3433         reorganize passes to do reg-stack first, bb-reorder second.
3434         * invoke.texi (-d letters doc): Remove the jump2 pass.
3435
3436 2001-07-12  Steve Ellcey <sje@cup.hp.com>
3437
3438         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
3439
3440 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
3441
3442         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
3443         basic blocks.
3444         (verify_flow_info): Make diagnostics prettier.
3445
3446 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
3447
3448         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
3449
3450         * flow.c (outgoing_edges_match): Return early if condition reversal
3451         failed.
3452
3453 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
3454
3455         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
3456         (mips_move_2words): When splitting a move into two instructions,
3457         prefix the second address operand with '%D'.
3458
3459 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3460
3461         * Makefile.in (final.o): Depend on debug.h.
3462         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
3463         (dbx_debug_hooks): Add new hooks.
3464         (xcoff_debug_hooks): New.
3465         * debug.c (debug_nothing_file_int_int): New.
3466         (do_nothing_debug_hooks): Update.
3467         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
3468         (debug_nothing_file_int_int): New.
3469         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
3470         static, update prototype.
3471         (dwarf2_debug_hooks): Update.
3472         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
3473         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
3474         static, update prototype.
3475         (dwarf_debug_hooks): Update.
3476         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
3477         * final.c: Include debug.h.
3478         (final_scan_insn): Use debug hooks when beginning and ending blocks.
3479         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
3480         static, update prototype.
3481         (sdb_debug_hooks): Update.
3482         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
3483         * toplev.c: Distinguish between xcoff and dbx.
3484
3485         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
3486         Call all debug hooks, not just dwarf ones.
3487
3488 2001-07-11  Timothy Wall  <twall@redhat.com>
3489
3490         * config.gcc: Add configuration for AIX5/IA64.
3491         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
3492         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
3493         support prefix/suffix code.
3494         * config/ia64/t-aix: New.  Makefile fragment.
3495         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
3496
3497 2001-07-11  Kazu Hirata  <kazu@hxi.com>
3498
3499         * recog.c (validate_change): Fix a comment typo.
3500
3501 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3502
3503         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
3504         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
3505         hooks directly.
3506         * dbxout.c (dbx_debug_hooks): Add new hooks.
3507         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
3508         make static.
3509         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
3510         make static.
3511         * dbxout.h (dbxout_start_new_source_file,
3512         dbxout_resume_previous_source_file): Delete.
3513         * debug.c (do_nothing_debug_hooks): Add new hooks.
3514         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
3515         (debug_nothing_int_charstar, debug_nothing_int): New.
3516         * debug.h (gcc_debug_hooks): New hooks define, undef,
3517         start_source_file and end_source_file.
3518         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
3519         (debug_nothing_int_charstar, debug_nothing_int): New.
3520         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
3521         the conditionally compiled section.
3522         (dwarf2out_start_source_file, dwarf2out_end_source_file,
3523         dwarf2out_define, dwarf2out_undef): Make static.
3524         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
3525         dwarf2out_define, dwarf2out_undef): Remove.
3526         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
3527         (dwarfout_start_source_file, dwarfout_end_source_file,
3528         dwarfout_define, dwarfout_undef): Make static.
3529         (dwarfout_start_source_file_check,
3530         dwarfout_end_source_file_check): New.
3531         (dwarfout_define, dwarfout_finish): Update.
3532         * dwarfout.h (dwarfout_start_new_source_file,
3533         dwarfout_resume_previous_source_file, dwarfout_define,
3534         dwarfout_undef): Remove.
3535         * sdbout.c (sdb_debug_hooks): Add new hooks.
3536         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
3537         make static.
3538         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
3539         make static, take an arg.
3540         * sdbout.h (sdbout_start_new_source_file,
3541         sdbout_resume_previous_source_file): Delete.
3542         * toplev.c (debug_start_source_file, debug_end_source_file,
3543         debug_define, debug_undef): Delete.
3544         * toplev.h (debug_start_source_file, debug_end_source_file,
3545         debug_define, debug_undef): Delete.
3546
3547         * java/jcf-parse.c: Include debug.h.
3548         (parse_class_file): Update to use debug hooks directly.
3549         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
3550
3551 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3552
3553         * alias.c (set_mem_alias_set): New function.
3554         * rtl.h (set_mem_alias_set): Declare it.
3555         * builtins.c (expand_builtin_return_addr): Call it instead of
3556         using MEM_ALIAS_SET accessor.
3557         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
3558         (get_memory_rtx, expand_builtin_va_arg): Likewise.
3559         (expand_builtin_va_copy):Likewise.
3560         * caller-save.c (setup_save_areas): Likewise.
3561         * calls.c (compute_argument_addresses): Likewise.
3562         * explow.c (set_mem_attributes): Likewise.
3563         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
3564         (expand_assignment, store_constructor_field, store_field): Likewise.
3565         (expand_expr_unaligned): Likewise.
3566         * function.c (assign_stack_temp_for_type): Likewise.
3567         (put_reg_into_stack, gen_mem_addressof): Likewise.
3568         * ifcvt.c (noce_try_cmove_arith): Likewise.
3569         * reload1.c (reload, alter_reg): Likewise.
3570         * config/alpha/alpha.c (get_aligned_mem): Likewise.
3571         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
3572         (alpha_expand_unaligned_store): Likewise
3573         (alpha_expand_unaligned_load_words): Likewise.
3574         (alpha_expand_unaligned_store_words): Likewise.
3575         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
3576         (alpha_expand_epilogue): Likewise.
3577         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
3578         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
3579         * config/i386/i386.c (legitimize_pic_address): Likewise.
3580         * config/i960/i960.c (setup_incoming_varargs): Likewise.
3581         * config/ia64/ia64.c (spill_restore_mem): Likewise.
3582         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3583         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
3584         * config/mips/mips.c (mips_va_arg): Likewise.
3585         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3586         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3587         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3588         (setup_incoming_varargs, rs6000_va_arg): Likewise.
3589         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
3590         (rs6000_emit_epilogue): Likewise.
3591         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
3592         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3593         * config/v850/v850.c (v850_va_arg): Likewise.
3594
3595 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
3596
3597         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
3598         when fallthru edge is present.
3599         (mege_blocks): Handle case where creation of jump insn
3600         is required.
3601
3602         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
3603         CLEANUP_POST_REGSTACK): New constants.
3604         * except.c (finish_eh_generation): Update call of cleanup_cfg,
3605         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
3606         * output.h (cleanup_cfg): Update prototype.
3607         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
3608         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
3609         cleanup_cfg call; kill missleading comment.
3610         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
3611         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
3612         parameter; control optimizations performed using it.
3613         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
3614         try_crossjump_bb): New functions.
3615
3616 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3617
3618         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
3619         extern.
3620         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
3621         pa_output_function_prologue.
3622         * pa-protos.h (pa_output_function_prologue): New prototype.
3623
3624 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3625
3626         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
3627         and low to get correct sign extension in low+high test.
3628
3629 2001-07-11  Janis Johnson <janis@us.ibm.com>
3630
3631         * gcov.c (arcdata): Use gcov_type to fix branch percentage
3632         for large hit count.
3633
3634         * profile.c (branch_prob): Fix .bbg info for computed gotos
3635         and C++ EH code.
3636
3637 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
3638
3639         * stmt.c (parse_output_constraint): New function, split out
3640         from ...
3641         (expand_asm_operands): ... here.  Use parse_output_constraint.
3642         * tree.h (parse_output_constraint): Declare it.
3643
3644 2001-07-11  Richard Henderson  <rth@redhat.com>
3645
3646         * bitmap.c: Comment some functions; fiddle whitespace.
3647         (bitmap_free): Don't export.
3648         (bitmap_element_allocate): Use memset.
3649         * bitmap.h (bitmap_free): Don't declare.
3650
3651 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
3652
3653         * gcse.c, lcm.c, sched-deps.c:
3654         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
3655
3656         * flow.c (flow_loops_find): Free dom if we found no loops, since
3657         we aren't going to save it.
3658
3659         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
3660         done.
3661
3662 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
3663
3664         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
3665
3666 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3667
3668         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
3669         #ifndef DWARF2_DEBUGGING_INFO.
3670
3671 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3672
3673         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
3674
3675 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3676
3677         * config/mips/mips.c (gen_int_relational): Tell the caller not to
3678         reverse a branch if a NE comparison is implemented with GTU.
3679
3680 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3681             H.J. Lu  <hjl@gnu.org>
3682
3683         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
3684         constant addresses.
3685         (call_internal2): Likewise.
3686         (call_value_internal1): Likewise.
3687         (call_value_internal2): Likewise.
3688         (call_value_multiple_internal1): Likewise.
3689         (call_value_multiple_internal2): Likewise.
3690
3691 2001-07-10  Kazu Hirata  <kazu@hxi.com>
3692
3693         * calls.c (emit_library_call_value_1): Fix a comment typo.
3694         * dwarf2out.c (mem_loc_descriptor): Likewise.
3695         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
3696
3697 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
3698
3699         * simplify-rtx.c (simplify_subreg): Fix typo in comment
3700
3701 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3702
3703         * recog.c (offsettable_address_p): Handle LO_SUM case.
3704         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
3705         instead of plus_constant.
3706
3707 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3708
3709         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
3710         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
3711
3712 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3713
3714         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
3715         adjust_address_nv instead of plus_constant.
3716
3717 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3718
3719         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
3720         dwarf2out.o): Depend on debug.h, wrap long lines.
3721         * dbxout.c: Include debug.h.
3722         (dbx_debug_hooks): New.
3723         (dbxout_init): Make static, take just 2 args.
3724         (dbxout_finish): Make static.
3725         * dbxout.h (dbxout_init, dbxout_finish): Delete.
3726         * debug.c: New file.
3727         * debug.h: New file.
3728         * dwarf2out.c: Include debug.h.
3729         (dwarf2_debug_hooks): New.
3730         (dwarf2out_init): Make static.
3731         (dwarf2out_finish): Make static, take 2 args.
3732         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
3733         * dwarfout.c: Include debug.h.
3734         (dwarf_debug_hooks): New.
3735         (dwarfout_init): Make static.
3736         (dwarfout_finish): Make static, take 2 args.
3737         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
3738         * sdbout.c: Include debug.h.
3739         (sdb_debug_hooks): New.
3740         (sdbout_init): Make static, take 2 args.
3741         * sdbout.h (sdbout_init): Delete.
3742         * toplev.c: Include debug.h.
3743         (debug_hooks): New.
3744         (compile_file): Set deubg_hooks based on command line options.
3745         Use the hooks unconditionally rather than conditional compilation.
3746
3747 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
3748
3749         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
3750         first_insn_after_basic_block_note instead.
3751
3752         * df.c (df_bb_refs_unlink): #if 0 out for now.
3753
3754 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
3755
3756         * ssa.h: Add prototype for ssa_const_prop
3757         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
3758         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
3759         (ssa_fast_dce): Remove unused variable
3760
3761 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3762
3763         * diagnostic.c (finish_diagnostic): Rename to
3764         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
3765         calls thourghout.
3766
3767 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
3768
3769         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
3770         .loc support.
3771
3772         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
3773         (dump_file): Only pad the demangled name with spaces if the
3774         mangled name was padded with spaces.
3775
3776 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
3777
3778         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
3779         edge detection.
3780
3781 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3782
3783         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
3784         extraction if no direct load if either EXPAND_CONST_ADDRESS or
3785         EXPAND_INITIALIZER.
3786
3787         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
3788         whether can put offset inside LO_SUM to check mode alignment, not size.
3789
3790 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3791
3792         * doc/tm.texi (Misc): Fix thinko.
3793
3794 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
3795
3796         * regmove.c (replace_in_call_usage): Fix warnings.
3797         * sched-deps.c (add_dependence): Fix warnings.
3798         * simplify-rtx.c (simplify_subreg): Likewise.
3799         Return NULL_RTX instead of NULL.
3800
3801         * reg-stack.c (emit_swap_insn): Eliminate warnings.
3802         (subst_asm_stack_regs): Likewise.
3803
3804         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
3805         warnings.
3806
3807         * dwarf2out.c (output_call_frame_info): Declare i as int.
3808         (build_abbrev_table): Declare n_alloc as int.
3809         (dwarf2out_finish): Initialize die.
3810         * except.c: Declare sjlj_funcdef_number as unsigned.
3811         (connect_post_landing_pads): Declare j as unsigned.
3812         (convert_to_eh_region_ranges): Initialize call_site.
3813         (output_function_exception_table): Initialize tt_format_size.
3814         * expr.c (move_by_pieces_1): Initialize to1.
3815         (store_constructor): Initialize minelt and maxelt.
3816         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
3817         * function.c (instantiate_decls): Avoid signed/unsigned warning.
3818
3819         * c-decl.c (combine_parm_decls): Unused, remove.
3820         * c-tree.h: Remove prototype for combine_parm_decls.
3821
3822         * reload.c (push_reload): Fix warning.
3823         (regno_clobbered_p): Likewise.
3824         * reload1.c (replace_pseudos_in_call_usage): Likewise.
3825         (reload_combine): Likewise.
3826
3827         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
3828         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
3829         warnings.
3830         * bitmap.c (bitmap_operation): Change user.
3831         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3832
3833 2001-07-10  Eric Christopher  <echristo@redhat.com>
3834
3835         * config/mips/mips.c (override_options): Fix typo.
3836
3837 2001-07-09  Stan Shebs  <shebs@apple.com>
3838
3839         * target.h (struct gcc_target): New fields init_builtins and
3840         expand_builtin.
3841         * target-def.h (TARGET_INIT_BUILTINS): New macro.
3842         (TARGET_EXPAND_BUILTIN): New macro.
3843         (TARGET_INITIALIZER): Add them.
3844         * builtins.c: Include target.h.
3845         (expand_builtin): Use targetm.expand_builtin.
3846         (default_init_builtins): New function.
3847         (default_expand_builtin): New function.
3848         * expr.h (default_init_builtins): Declare.
3849         (default_expand_builtin): Declare.
3850         * c-common.c (c_common_nodes_and_builtins): Use
3851         targetm.init_builtins.
3852         * defaults.h (MD_INIT_BUILTINS): Remove.
3853         * Makefile.in (builtins.o): Depend on target.h.
3854
3855         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
3856         (TARGET_EXPAND_BUILTIN): Define.
3857         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
3858         (MD_EXPAND_BUILTIN): Remove.
3859
3860         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
3861         (TARGET_EXPAND_BUILTIN): Define.
3862         (c4x_init_builtins): Make endlink arg a local.
3863         (c4x_print_operand): Fix typos in adjust_address usages.
3864         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
3865         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
3866         (MD_EXPAND_BUILTIN): Remove.
3867
3868         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
3869         (TARGET_EXPAND_BUILTIN): Define.
3870         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
3871         (ix86_init_builtins): Call new function only if TARGET_MMX.
3872         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
3873         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
3874         (MD_EXPAND_BUILTIN): Remove.
3875
3876         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
3877         (TARGET_EXPAND_BUILTIN): Define.
3878         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
3879         (MD_EXPAND_BUILTIN): Remove.
3880
3881         * doc/tm.texi: Document these changes.
3882
3883 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
3884
3885         * basic-block.h (tree_node): Forward declare if needed.
3886         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
3887         (BLOCK_HEAD_TREE): Define.
3888         (BLOCK_END_TREE): Define.
3889         (struct loops): Rename field 'tree' to 'tree_root'.
3890         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
3891         'end_tree'.
3892         (flow_loops_tree_build): Rename reference to field 'tree' to
3893         'tree_root'.
3894         (flow_loops_level_compute): Ditto.
3895         * predict.c (estimate_bb_frequencies): Ditto.
3896         * tree.h (struct tree_common): Add field 'aux'.
3897
3898 2001-07-09  Stan Shebs  <shebs@apple.com>
3899
3900         * config/darwin.c (darwin_encode_section_info): Don't mark any
3901         DECL_EXTERNAL node as defined.
3902
3903 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3904
3905         * pa.c (pa_init_machine_status, pa_mark_machine_status,
3906         pa_free_machine_status, hppa_init_pic_save): Delete.
3907         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
3908         (hppa_profile_hook): Use hppa_pic_save_rtx.
3909         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
3910         hppa_init_pic_save): Delete.
3911         (hppa_pic_save_rtx): Declare.
3912         * pa.md (call, call_value, sibcall, sibcall_value,
3913         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
3914
3915 2001-07-09  Kazu Hirata  <kazu@hxi.com>
3916
3917         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
3918         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
3919
3920 2001-07-09  Andreas Jaeger  <aj@suse.de>
3921
3922         * output.h: Add declaration of final_forward_branch_p.
3923
3924         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
3925
3926         * varray.c: Include errors.h for internal_error and trim_filename
3927         declarations.
3928
3929         * Makefile.in (varray.o): Add errors.h.
3930
3931 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
3932
3933         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
3934         * optabs.c (have_add2_insn): Check whether the add insn chosen
3935         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
3936         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
3937
3938 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
3939
3940         * Makefile.in (OBJS): Add ssa-ccp.o
3941         (ssa-ccp.o): Add dependencies.
3942         * toplev.c (DFI_ssa_ccp): New dump file enum.
3943         (dump_file): Add entry for dumping after SSA CCP.
3944         (flag_ssa_ccp): New flag variable.
3945         (f_options): Add -fssa-ccp.
3946         (rest_of_compilation): Run SSA CCP if requested.
3947         * timevar.def (TV_SSA_CCP): New timevar.
3948         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
3949         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
3950         Fix minor typo in SSA DCE documentation.
3951         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
3952         Add documentation for new dump option.  Renumber dump files
3953         appropriately.
3954
3955 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3956
3957         * emit-rtl.c (gen_highpart_mode): New.
3958         * rtl.h (gen_highpart_mode): Declare.
3959         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
3960         operand can be VOIDmode constant.
3961
3962 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
3963
3964         * flow.c (redirect_edge_and_branch_force): New.
3965         (can_fallthru): Ensure that basic blocks are succeeding.
3966         (try_optimize_cfg): Do not delete basic block if it is the last one.
3967
3968         * flow.c (try_redirect_by_replacing_jump): Do not remove
3969         jumps with side effects, unlink chain on fallthru edge;
3970         set block for new jump instruction; avoid basic block to
3971         over by line number note.
3972
3973         * flow.c (try_simplify_condjump): Verify that the condjump
3974         is not always falling trought.
3975
3976         Re-install patch:
3977         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
3978
3979         * flow.c (forwarder_block_p): Fix for fallthru blocks.
3980         (try_redirect_by_replacing_jump): Update properly the count
3981         and frequency information.
3982
3983 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3984
3985         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
3986         address that is a LO_SUM specially.
3987         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
3988
3989         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
3990
3991         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
3992         (operand_subword): Use them.
3993         (change_address_1): Renamed from change_address; new arg VALIDATE.
3994         * expr.h: Reflect above changes; change_address now macro.
3995         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
3996         making MEM.
3997         * cselib.c (add_mem_for_addr): Likewise.
3998         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
3999         * regmove.c (try_apply_stack_adjustment): Likewise.
4000         * reload.c (push_reload, make_memloc): Likewise.
4001         * reload1.c (eliminate_regs): Likewise.
4002         * simplify-rtx.c (simplify_replace_rtx): Likewise.
4003         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
4004         adjust_addess.
4005         * combine.c (make_extraction, simplify_shift_const): Likewise.
4006         (gen_lowpart_for_combine): Likewise.
4007         * cse.c (gen_lowpart_if_possible): Likewise.
4008         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
4009         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
4010         * optabs.c (gen_move_insn): Likewise.
4011         * reload1.c (alter_reg): Likewise.
4012         * simplify-rtx.c (simplify_subreg): Likewise.
4013         * stmt.c (expand_anon_union_decl): Likewise.
4014         * recog.c (validate_replace_rtx_1): Likewise.
4015         (expr.h): Include.
4016         * Makefile.in (recog.o): Add $(EXPR_H).
4017         * explow.c (stabilize): Call replace_equiv_address.
4018         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
4019         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
4020
4021 2001-07-03  Andrew Haley  <aph@redhat.com>
4022
4023         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
4024         the mode of the memory location.
4025
4026 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
4027
4028         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
4029
4030 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
4031
4032         * final.c (output_addr_const): Use target opening and
4033         closing parentheses.
4034         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
4035         defaults, add to TARGET_ASM_OUT.
4036         * target.h (struct gcc_target): Add open_paren and close_paren.
4037         * doc/md.texi: Update.
4038         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
4039         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
4040         TARGET_ASM_CLOSE_PAREN.
4041         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4042         Override.
4043         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
4044         Override.
4045         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4046         * config/a29k/a29k.h: Similarly.
4047         * config/alpha/alpha.h: Similarly.
4048         * config/arc/arc.h: Similarly.
4049         * config/arm/aof.h: Similarly.
4050         * config/arm/aout.h: Similarly.
4051         * config/avr/avr.h: Similarly.
4052         * config/c4x/c4x.h: Similarly.
4053         * config/clipper/clipper.h: Similarly.
4054         * config/convex/convex.h: Similarly.
4055         * config/d30v/d30v.h: Similarly.
4056         * config/dsp16xx/dsp16xx.h: Similarly.
4057         * config/elxsi/elxsi.h: Similarly.
4058         * config/fr30/fr30.h: Similarly.
4059         * config/h8300/h8300.h: Similarly.
4060         * config/i370/i370.h: Similarly.
4061         * config/i386/i386.h: Similarly.
4062         * config/i860/i860.h: Similarly.
4063         * config/i960/i960.h: Similarly.
4064         * config/ia64/ia64.h: Similarly.
4065         * config/m32r/m32r.h: Similarly.
4066         * config/m68hc11/m68hc11.h: Similarly.
4067         * config/m68k/m68k.h: Similarly.
4068         * config/m88k/m88k.h: Similarly.
4069         * config/mcore/mcore.h: Similarly.
4070         * config/mips/mips.h: Similarly.
4071         * config/mn10200/mn10200.h: Similarly.
4072         * config/mn10300/mn10300.h: Similarly.
4073         * config/ns32k/ns32k.h: Similarly.
4074         * config/pa/pa.h: Similarly.
4075         * config/pdp11/pdp11.h: Similarly.
4076         * config/pj/pj.h: Similarly.
4077         * config/romp/romp.h: Similarly.
4078         * config/rs6000/rs6000.h: Similarly.
4079         * config/sh/sh.h: Similarly.
4080         * config/sparc/sparc.h: Similarly.
4081         * config/v850/v850.h: Similarly.
4082         * config/vax/vax.h: Similarly.
4083         * config/we32k/we32k.h: Similarly.
4084
4085 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4086
4087         * doc/c-tree.texi: Document representation of attributes.
4088
4089 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4090
4091         * doc/tm.texi: Update some places for the rename of target to
4092         targetm.  Fix typo.
4093
4094 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4095
4096         * target.h (struct gcc_target): Add insert_attributes.
4097         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
4098         (TARGET_INITIALIZER): Update.
4099         * tree.c, tree.h (default_insert_attributes): New function.
4100         Update comments on other default functions to refer to targetm,
4101         not target.
4102         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
4103         TARGET_INSERT_ATTRIBUTES.
4104         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
4105         * c-common.c (decl_attributes): Use targetm.insert_attributes.
4106         Don't use PRAGMA_INSERT_ATTRIBUTES.
4107         * Makefile.in (c-common.o): Depend on $(TARGET_H).
4108         * c-decl.c (start_decl, start_function): Don't call
4109         SET_DEFAULT_DECL_ATTRIBUTES.
4110         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4111         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
4112         declare.
4113         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
4114         (c4x_check_attribute): Avoid modifying attribute list itself.
4115         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
4116         Make static.
4117         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
4118         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
4119         declare.
4120         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
4121         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
4122         Make static.
4123         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
4124         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
4125         declare.
4126         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
4127         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
4128         Adjust parameters.  Make static.
4129
4130 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4131
4132         * c-common.c (decl_attributes): Only take a single attributes
4133         parameter.
4134         * c-common.h (decl_attributes): Update prototype.
4135         * c-decl.c (start_decl, start_function): Only take a single
4136         attributes parameter.  Update calls to decl_attributes.
4137         (finish_struct, finish_enum): Update calls to decl_attributes.
4138         (push_parm_decl): Expect unified list of attributes.  Update call
4139         to decl_attributes.
4140         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
4141         notype_nested_function, component_declarator,
4142         component_notype_declarator, label): Update calls to
4143         decl_attributes.
4144         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
4145         lists that are passed to push_parm_decl.
4146         * c-tree.h (start_function, start_decl): Update prototypes.
4147         * config/sh/sh-protos.h, config/sh/sh.c
4148         (sh_pragma_insert_attributes): Only take a single attributes
4149         parameter.
4150         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
4151         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
4152         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
4153         build_module_descriptor, generate_static_references,
4154         generate_strings, build_selector_translation_table,
4155         generate_descriptor_table, generate_protocols,
4156         generate_ivars_list, generate_dispatch_table,
4157         generate_protocol_list, generate_category,
4158         generate_shared_structures, really_start_method, add_objc_decls,
4159         generate_classref_translation_entry): Update calls to start_decl
4160         and start_function.
4161         (build_tmp_function_decl, start_method_def): Unify attribute lists
4162         that are passed to push_parm_decl.
4163
4164 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4165
4166         * final.c (no_asm_to_stream): New.
4167         (final_scan_insn): Use target structures for prologue ends
4168         and epilogue starts.
4169         * output.h (no_asm_to_stream): New.
4170         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
4171         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
4172         (TARGET_ASM_OUT): Update.
4173         * target.h (struct gcc_target): New members function_end_prologue
4174         and function_begin_epilogue.
4175         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
4176         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
4177         * config/alpha/alpha.c (output_end_prologue): Rename to
4178         alpha_output_function_end_prologue.  Use in target struct
4179         and make static.
4180         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
4181         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
4182         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
4183         ia64_output_function_end_prologue.  Use in target struct
4184         and make static.
4185         (ia64_function_prologue, ia64_funciton_epilogue): Rename
4186         mistyped prototypes.
4187         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
4188         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
4189         Delete.
4190         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
4191         an use in target struct, make static.
4192         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
4193         Delete.
4194
4195 2001-07-08  Richard Henderson  <rth@redhat.com>
4196
4197         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
4198
4199 2001-07-08  Richard Henderson  <rth@redhat.com>
4200
4201         * config/i386/i386.md: Remove constraints strings from define_split
4202         and define_peephole2 patterns.
4203         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
4204         (eh_return): Use them.
4205
4206 2001-07-08  Richard Henderson  <rth@redhat.com>
4207
4208         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
4209         Document MD_FALLBACK_FRAME_STATE_FOR.
4210
4211 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4212
4213         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
4214         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
4215         elimination.
4216         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
4217
4218 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
4219
4220         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
4221         of the label inside NAME as opposed to just the end of NAME.
4222
4223 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4224
4225         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
4226         * config/alpha/alpha.c (alpha_init_machine_status,
4227         alpha_mark_machine_status, alpha_free_machine_status): Delete.
4228         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
4229         (vms_valid_decl_attribute_p): Make static, conditionally compile.
4230         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
4231
4232 2001-07-06  Stan Shebs  <shebs@apple.com>
4233
4234         * target.h (targetm): Rename global from "target", so as not to
4235         conflict with local variables.
4236         * c-decl.c: Ditto.
4237         * c-typeck.c: Ditto.
4238         * final.c: Ditto.
4239         * tree.c: Ditto.
4240         * cp/decl.c: Ditto.
4241         * cp/decl2.c: Ditto.
4242         * cp/typeck.c: Ditto.
4243         * 1750a/1750a.c: Ditto.
4244         * a29k/a29k.c: Ditto.
4245         * arc/arc.c: Ditto.
4246         * arm/arm.c: Ditto.
4247         * avr/avr.c: Ditto.
4248         * clipper/clipper.c: Ditto.
4249         * convex/convex.c: Ditto.
4250         * d30v/d30v.c: Ditto.
4251         * dsp16xx/dsp16xx.c: Ditto.
4252         * elxsi/elxsi.c: Ditto.
4253         * fr30/fr30.c: Ditto.
4254         * h8300/h8300.c: Ditto.
4255         * i370/i370.c: Ditto.
4256         * i386/i386.c: Ditto.
4257         * i860/i860.c: Ditto.
4258         * i960/i960.c: Ditto.
4259         * ia64/ia64.c: Ditto.
4260         * m32r/m32r.c: Ditto.
4261         * m68hc11/m68hc11.c: Ditto.
4262         * m68k/m68k.c: Ditto.
4263         * m88k/m88k.c: Ditto.
4264         * mips/mips.c: Ditto.
4265         * ns32k/ns32k.c: Ditto.
4266         * pa/pa.c: Ditto.
4267         * pdp11/pdp11.c: Ditto.
4268         * romp/romp.c: Ditto.
4269         * rs6000/rs6000.c: Ditto.
4270         * sh/sh.c: Ditto.
4271         * sparc/sparc.c: Ditto.
4272         * vax/vax.c: Ditto.
4273         * we32k/we32k.c: Ditto.
4274         * doc/tm.texi: Update the manual to match.
4275
4276 2001-07-06  Richard Henderson  <rth@redhat.com>
4277
4278         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
4279         DWARF2_UNWIND_INFO not just whether it is defined.
4280
4281 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
4282
4283         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
4284         call to simplify_binary_operation returns a new pattern.
4285
4286 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4287
4288         * glimits.h (__SHRT_MAX__): New.
4289         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
4290         (SHRT_MAX): Define in terms of __SHRT_MAX__.
4291
4292 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
4293
4294         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
4295         avoid warnings.
4296
4297 2001-07-06  Richard Henderson  <rth@redhat.com>
4298
4299         * bitmap.c (bitmap_release_memory): Move adjacent to the
4300         allocation functions.
4301         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
4302         the implementation.  Binary search for the set bit.
4303         (bitmap_union_of_diff): Allocate the temporary on the stack
4304         instead of using xmalloc.
4305
4306 2001-07-06  Richard Henderson  <rth@redhat.com>
4307
4308         * genrecog.c (validate_pattern): Warn for constraints in
4309         define_{expand,split,peephole2}.  Remove strict_low_part
4310         before looking up match_dup.
4311
4312 2001-07-06  DJ Delorie  <dj@redhat.com>
4313
4314         * doc/gcc.texi (Makefile): Rename to be a more general purpose
4315         chapter about various build hints and history.  Add section
4316         talking about the various types of native and cross builds.
4317
4318 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4319
4320         * Makefile.in (final.o): Depend on target.h.
4321         * final.c: Include target.h.
4322         (default_function_pro_epilogue): New.
4323         (final_start_function): Use target structure for function prologues.
4324         (final_end_function): Use target structure for function epilogues.
4325         * fold-const.c (real_hex_to_f): Constify s and p.
4326         * output.h (default_function_pro_epilogue): New.
4327         * real.h (real_hex_to_f): Update prototype.
4328         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
4329         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
4330         (TARGET_INITIALIZER): Update.
4331         * target.h (gcc_target): Add struct asm_out.
4332         * doc/tm.texi: Update.
4333
4334 config:
4335         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
4336         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
4337         in cpu/cpu.c, or rename old functions consistently.  Take
4338         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
4339         redundant macros and prototypes.  Make new functions static.
4340
4341         * 1750a/1750a.c: Similarly.
4342         * 1750a/1750a.h: Similarly.
4343         * a29k/a29k-protos.h: Similarly.
4344         * a29k/a29k.c: Similarly.
4345         * a29k/a29k.h: Similarly.
4346         * arc/arc-protos.h: Similarly.
4347         * arc/arc.c: Similarly.
4348         * arc/arc.h: Similarly.
4349         * arm/arm-protos.h: Similarly.
4350         * arm/arm.c: Similarly.
4351         * arm/arm.h: Similarly.
4352         * avr/avr-protos.h: Similarly.
4353         * avr/avr.c: Similarly.
4354         * avr/avr.h: Similarly.
4355         * clipper/clipper-protos.h: Similarly.
4356         * clipper/clipper.c: Similarly.
4357         * clipper/clipper.h: Similarly.
4358         * convex/convex.c: Similarly.
4359         * convex/convex.h: Similarly.
4360         * d30v/d30v-protos.h: Similarly.
4361         * d30v/d30v.c: Similarly.
4362         * d30v/d30v.h: Similarly.
4363         * d30v/d30v.md: Similarly.
4364         * dsp16xx/dsp16xx-protos.h: Similarly.
4365         * dsp16xx/dsp16xx.c: Similarly.
4366         * dsp16xx/dsp16xx.h: Similarly.
4367         * elxsi/elxsi.c: Similarly.
4368         * elxsi/elxsi.h: Similarly.
4369         * fr30/fr30.c: Similarly.
4370         * fr30/fr30.md: Similarly.
4371         * h8300/h8300-protos.h: Similarly.
4372         * h8300/h8300.c: Similarly.
4373         * h8300/h8300.h: Similarly.
4374         * i370/i370-protos.h: Similarly.
4375         * i370/i370.c: Similarly.
4376         * i370/i370.h: Similarly.
4377         * i386/i386.c: Similarly.
4378         * i386/osf1elf.h: Similarly.
4379         * i386/osfrose.h: Similarly.
4380         * i860/i860-protos.h: Similarly.
4381         * i860/i860.c: Similarly.
4382         * i860/i860.h: Similarly.
4383         * i960/i960-protos.h: Similarly.
4384         * i960/i960.c: Similarly.
4385         * i960/i960.h: Similarly.
4386         * ia64/ia64-protos.h: Similarly.
4387         * ia64/ia64.c: Similarly.
4388         * ia64/ia64.h: Similarly.
4389         * m32r/m32r-protos.h: Similarly.
4390         * m32r/m32r.c: Similarly.
4391         * m32r/m32r.h: Similarly.
4392         * m68hc11/m68hc11-protos.h: Similarly.
4393         * m68hc11/m68hc11.c: Similarly.
4394         * m68hc11/m68hc11.h: Similarly.
4395         * m68k/crds.h: Similarly.
4396         * m68k/dpx2.h: Similarly.
4397         * m68k/m68k-protos.h: Similarly.
4398         * m68k/m68k.c: Similarly.
4399         * m68k/m68k.h: Similarly.
4400         * m68k/news.h: Similarly.
4401         * m88k/m88k-protos.h: Similarly.
4402         * m88k/m88k.c: Similarly.
4403         * m88k/m88k.h: Similarly.
4404         * mips/mips-protos.h: Similarly.
4405         * mips/mips.c: Similarly.
4406         * mips/mips.h: Similarly.
4407         * ns32k/merlin.h: Similarly.
4408         * ns32k/ns32k.c: Similarly.
4409         * ns32k/ns32k.h: Similarly.
4410         * ns32k/tek6000.h: Similarly.
4411         * pa/pa-protos.h: Similarly.
4412         * pa/pa.c: Similarly.
4413         * pa/pa.h: Similarly.
4414         * pdp11/2bsd.h: Similarly.
4415         * pdp11/pdp11-protos.h: Similarly.
4416         * pdp11/pdp11.c: Similarly.
4417         * pdp11/pdp11.h: Similarly.
4418         * romp/romp-protos.h: Similarly.
4419         * romp/romp.c: Similarly.
4420         * romp/romp.h: Similarly.
4421         * rs6000/rs6000-protos.h: Similarly.
4422         * rs6000/rs6000.c: Similarly.
4423         * rs6000/rs6000.h: Similarly.
4424         * rs6000/sysv4.h: Similarly.
4425         * sh/sh-protos.h: Similarly.
4426         * sh/sh.c: Similarly.
4427         * sh/sh.h: Similarly.
4428         * sparc/sparc-protos.h: Similarly.
4429         * sparc/sparc.c: Similarly.
4430         * sparc/sparc.h: Similarly.
4431         * vax/vax.c: Similarly.
4432         * vax/vax.h: Similarly.
4433         * vax/vms.h: Similarly.
4434         * we32k/we32k.c: Similarly.
4435         * we32k/we32k.h: Similarly.
4436
4437 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
4438
4439         * basic-block.h (first_insn_after_basic_block_note): Declare.
4440         * flow.c (first_insn_after_basic_block_note): Define.  Moved
4441         from...
4442         * ssa.c (first_insn_after_basic_block_note): Remove.
4443         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
4444         necessary.
4445         (ssa_eliminate_dead_code): Properly update the CFG and PHI
4446         nodes when we find a dead conditional branch.  Insert BARRIERs
4447         after any blocks with no successors, but which do not have
4448         any BARRIERs.
4449
4450 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
4451
4452         * varray.c (varray_check_failed): Use internal_error.
4453
4454 2001-07-05  Andrew Haley  <aph@redhat.com>
4455
4456         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
4457         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
4458         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
4459
4460 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
4461
4462         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
4463         reference if the target constant is also a SYMBOL_REF.
4464
4465 2001-07-05  Eric Christopher  <echristo@redhat.com>
4466
4467         * config/mips/mips.h (MASK_MIPS3900): Remove.
4468         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
4469         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
4470         (TARGET_MIPS3900): Change to use mips_arch.
4471         (TARGET_MIPS4000): New.
4472         (TARGET_MIPS4100): New.
4473         (TARGET_MIPS4300): New.
4474         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
4475         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
4476         for -mipsX.
4477         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
4478         (ISA_HAS_BRANCHLIKELY): To here.
4479         (CC1_CPU_SPEC):  New.
4480         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
4481         (mips_arch_string): Declare.
4482         (mips_arch): Declare.
4483         (TARGET_OPTIONS): Add -march and -mtune.
4484
4485         * config/mips/mips.c (mips_arch_string): New.
4486         (mips_arch): New.
4487         (override_options): Handle -march for codegen and -mtune
4488         for scheduling. Use mips_arch. Move tx39 target default here.
4489         (mips_parse_cpu): Move error message to override_options.
4490
4491         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
4492
4493         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
4494
4495         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
4496         (MIPS Options): Ditto.  Change mcpu entry to historical text.
4497
4498 2001-07-05  H.J. Lu  (hjl@gnu.org)
4499
4500         * config/mips/mips.c (mips_parse_cpu): New function to parse
4501         -march=*/-mcpu=*.
4502
4503 2001-07-05  Jim Wilson  <wilson@redhat.com>
4504
4505         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
4506         * config/ia64/t-ia64: Likewise.
4507         (LIB1ASMFUNCS): Update comment.
4508
4509 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
4510
4511         * doc/install.texi (Install GCC: Binaries): Fix typo.
4512
4513 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4514
4515         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
4516         reference using the stack pointer, adjust it since we push Y
4517         temporarily.
4518         ("*ashrsi3"): Likewise.
4519         ("*lshrsi3"): Likewise.
4520
4521 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4522
4523         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
4524         when -fomit-frame-pointer is used.
4525
4526 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
4527
4528         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
4529         (try_redirect_by_replacing_jump): Reverse updating properly the
4530         count and frequency information.  Reverse removing cc0 setter.
4531         (forwarder_block_p): Reverse fixing for fallthru blocks.
4532
4533 2001-07-05  DJ Delorie  <dj@redhat.com>
4534
4535         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
4536         (translate_options): If the above is defined, use it to map
4537         given options to new options.
4538         * doc/tm.texi: Document it.
4539
4540 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
4541             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4542
4543         * doc/invoke.texi (Optimize Options): Document that -fgcse may
4544         cause programs using computed gotos to run more slowly.
4545
4546 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4547
4548         * doc/install.texi (Specific): Markup, spelling and typo fixes.
4549         Fixed sorting.
4550         Consistently require binutils 2.11.2, not prereleases.
4551         (Specific, decstation-*): Canonicalize as mips-dec-*.
4552         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
4553         always necessary.
4554         (Specific, m68k-altos): Removed reference to README.altos, deleted.
4555         (Specific, mips-*): Reword MIPS C compiler requirements.
4556         (Specific, powerpc*-*-*): New, mention --with-cpu once.
4557         (Specific, sunv5): Removed, obsolete.
4558
4559 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4560
4561         * dwarf2out.c (output_loc_list): Use an all ones mask for
4562         .text asm output and don't rely on long long
4563         literals. Reformat some long lines.
4564
4565 2001-07-05  Andreas Jaeger  <aj@suse.de>
4566
4567         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
4568         section.
4569
4570 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4571
4572         * dwarf2out.c (dwarf2out_define): Update comment.
4573         (dwarf2out_undef): Ditto.
4574         (dwarf2out_start_source_file): Ditto.
4575         (dwarf2out_end_source_file): Ditto.
4576         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
4577         since we never call the start/end debug hook for the primary file.
4578
4579 2001-07-04  Kazu Hirata  <kazu@hxi.com>
4580
4581         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
4582         from shll.
4583
4584 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
4585
4586         * cppinit.c (remove_dup_dirs): Inform if a system include
4587         directory is being reordered.
4588         * doc/invoke.texi (Directory Options): GCC warns if you hide a
4589         system include.
4590         * doc/cpp.texi (Search Paths): Likewise.
4591         * doc/gcc.texi (Interoperation): Remove information about
4592         -I/usr/include.
4593
4594 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
4595
4596         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
4597         (VARRAY_TOP_CHAR_PTR): Likewise.
4598
4599 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4600
4601         * gcc.c (process_command): Don't assign elements of a const char*.
4602
4603 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4604
4605         * emit-rtl.c (change_address): Don't abort if invalid address while
4606         reload is in progress.
4607
4608 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4609
4610         * c-lex.c (cb_file_change): Pass line number to
4611         debug_start_source_file.
4612         (cb_undefine): Pass correct line number to debug_undef.
4613
4614         * toplev.c (debug_start_source_file): Add line number to
4615         parameters. Pass it along to dwarf2out_start_source_file.
4616         (decode_g_option): Stop resetting debug level back to normal when
4617         we change debug formats, unless the current level is
4618         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
4619         3).
4620
4621         * toplev.h (debug_start_source_file): Add line number to
4622         parameters.
4623
4624         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
4625         parameters.
4626
4627         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
4628         parameters.
4629         Output debug_macinfo data for starting file if requested.
4630         (dwarf2out_end_source_file): Output debug_macinfo data for ending
4631         file if requested.
4632         (dwarf2out_define): Output debug_macinfo data for defining a macro
4633         if requested.
4634         (dwarf2out_undef): Output debug_macinfo data for undefining a
4635         macro if requested.
4636         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
4637         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
4638         (macinfo_section_label): New. DWARF2 macro info section label.
4639         (dwarf2out_init): If we want macro info, output the start label
4640         for the section.
4641         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
4642         attribute to the compilation unit die pointing to the macro info.
4643
4644 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4645
4646         * dwarf2out.c (new_loc_list): Move to inside #ifdef
4647         DWARF2_DEBUGGING_INFO.
4648         (add_loc_descr_to_loc_list): Ditto.
4649         (output_loc_list): Ditto.
4650         Also, fix thinko in curr not being initialized.
4651         (gen_internal_sym): Ditto.
4652
4653 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4654
4655         * emit-rtl.c (replace_equiv_address): New function.
4656         * expr.h (replace_equiv_address): New declaration.
4657         * explow.c (validize_mem): Call it instead of change_address and
4658         also call if -fforce-addr and address is constant.
4659         * expr.c: Replace more calls to change_address with adjust_address
4660         and/or replace_equiv_address or to validize_mem.
4661         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
4662         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
4663         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4664         * config/i370/i370.md, config/i860/i860.md: Likewise.
4665         * config/i960/i960.md, config/mips/mips.c: Likewise.
4666         * config/mips/mips.md, config/pa/pa.md: Likewise.
4667         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
4668         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
4669
4670 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4671
4672         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
4673
4674         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
4675         function.
4676
4677 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4678
4679         * doc/include: New directory.
4680         * doc/fdl.texi: Move to doc/include/fdl.texi.
4681         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
4682         * doc/include/funding.texi, doc/include/gpl.texi: New files.
4683         * doc/gcc.texi: Use funding.texi and gpl.texi.
4684         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
4685         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
4686         Update dependencies and use -I $(docdir)/include.
4687
4688 2001-07-04  Anthony Green  <green@redhat.com>
4689
4690         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
4691
4692 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4693
4694         * doc/install.texi (sparc64-*-*): Remove garbage.
4695
4696 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
4697
4698         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
4699         Fix typo in last change to use adjust_address.
4700
4701 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4702
4703         * doc/install.texi (Specific): Update information for *-*-solaris*.
4704
4705 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4706
4707         * explow.c (plus_constant_wide): Reinitialize Y for restart.
4708
4709 2001-07-03  Stan Shebs  <shebs@apple.com>
4710
4711         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
4712         case for flag_no_mach_text_sections.
4713         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
4714         * config/darwin.c (flag_no_mach_text_sections): Remove.
4715         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
4716
4717 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4718
4719         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
4720         and avoid checking for constant as first operand.
4721         * recog.c (find_constant_term_loc): No longer static.
4722         (adj_offettable_operand): Delete.
4723         * rtl.h (adj_offsettable_operand): Delete declaration.
4724         (find_constant_term): Add declaration.
4725         * caller-save.c: Replace calls to adj_offsettable_operand with calls
4726         to adjust_address.
4727         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
4728         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
4729         * config/i386/i386.c, config/i386/i386.md: Likewise.
4730         * config/i860/i860.c, config/i960/i960.c: Likewise.
4731         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
4732         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
4733         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
4734         * config/mips/mips.c, config/mips/mips.md: Likewise.
4735         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
4736         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
4737         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
4738         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
4739         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
4740         * config/ns32k/ns32k.md: Likewise.
4741
4742 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
4743
4744         * rtl.c (copy_rtx): Handle 'T' format letter.
4745         * gensupport.c (collect_insn_data): Likewise.
4746         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
4747
4748 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
4749
4750         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
4751         -B option.  Use 'dir' not 'foo' as example directory name.
4752
4753 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4754
4755         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4756         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
4757
4758 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4759
4760         * doc/cppinternals.texi: Improve formatting and logical markup.
4761
4762 2001-07-03  Andreas Jaeger  <aj@suse.de>
4763
4764         * Makefile.in (insn-recog.o): Add dependency on reload.h.
4765
4766         * genrecog.c (write_header): Include reload.h for prototypes in
4767         insn-recog.c.
4768
4769 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4770
4771 config:
4772         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
4773         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
4774         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
4775         i386_pe_valid_type_attribute_p): Add.
4776         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
4777         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
4778
4779 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4780
4781         * explow.c (plus_constant_wide, case LO_SUM): New case.
4782         (plus_constant_for_output_wide): Delete.
4783         * rtl.h (plus_constant_for_output): Delete.
4784         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
4785         instead of plus_constant_for_output.
4786         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
4787         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
4788         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
4789         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
4790         * config/sparc/sparc.md: Likewise.
4791         Convert some change_address calls to adjust_address.
4792
4793 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4794
4795         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
4796         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
4797         documentation of -std and -Wwrite-strings.
4798
4799 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
4800
4801         * cse.c (canon_hash): Don't register registers in very small
4802         register classes, as extending their lifetime might cause
4803         reload to fail.
4804
4805 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
4806
4807         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
4808
4809         * flow.c (forwarder_block_p): Fix for fallthru blocks.
4810         (try_redirect_by_replacing_jump): Update properly the count
4811         and frequency information.
4812
4813 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
4814
4815         * toplev.c (dump_file_index): Move SSA dumps just after first
4816         jump dump.
4817         (dump_file): Corresponding changes.
4818         (rest_of_compilation): Move SSA path to just after the first
4819         jump pass.
4820         * doc/gcc.texi (Passes): Update due to movement of SSA path.
4821         * doc/invoke.texi: Update dump file #s as they were completely
4822         out of date with reality.
4823
4824 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
4825
4826         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
4827
4828         * expr.c (emit_move_insn_1): Deal with non-default
4829         STACK_PUSH_CODE.
4830
4831         * expr.c (emit_single_push_insn): Fix warning.
4832
4833 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4834
4835         * expr.c (emit_move_insn_1): Avoid modifying
4836         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
4837
4838 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4839
4840         * emit-rtl.c (adjust_address): New function.
4841         * expr.h (adjust_address): Add declaration.
4842         * builtins.c: Replace some calls to change_address with calls to it
4843         or to validize_mem.
4844         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
4845         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
4846         * config/arm/arm.c, config/convex/convex.c: Likewise.
4847         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4848         * config/i386/i386.c, config/i386/i386.md: Likewise.
4849         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
4850         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
4851         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
4852         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
4853         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
4854
4855 2001-07-02  Jim Wilson  <wilson@redhat.com>
4856
4857         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
4858
4859 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
4860
4861         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
4862         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
4863
4864 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
4865
4866         * cppinit.c (lang_defaults): New table.
4867         (set_lang): Just read from lang_defaults into the live options
4868         structure.
4869
4870 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
4871
4872         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
4873         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
4874         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
4875
4876 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4877
4878         * doc/install.texi: Various spelling and markup fixes.
4879         (Installing GCC): Component specific installation instructions are
4880         gone.
4881         Fix reference.
4882         Warn about removing old install dir in the presence of shared libs.
4883         (Configuration): Invoke with options target to match configure
4884         --help.
4885         Consistently refer to gas, gld pathnames.
4886         Invert --enable-multilib documentation.
4887         Remove references to old compiler versions.
4888
4889 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4890
4891         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
4892
4893 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4894
4895         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
4896         section.
4897         (Specific, mips*-sgi-irix5): Note IDO download.
4898         Reworded MIPS C hints.
4899         Use GNU as instead of GAS.
4900         Markup fixes.
4901         Removed SGI Freeware reference, IRIX 6 only.
4902         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
4903         Note N64 library requirement/workaround.
4904         Update O32 hints.
4905         Complete list of structure passing bug victims.
4906
4907 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4908
4909         * doc/install.texi: Remove CVS Id.
4910
4911 2001-07-02  Andreas Jaeger  <aj@suse.de>
4912
4913         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
4914         (find_inherently_necessary): Remove unused variable.
4915
4916 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4917
4918         * c-common.h (TDI_inlined): New ast dump phase.
4919         (dump_flag_name): New function.
4920         * c-dump.c (dump_files): Add inlined phase.
4921         (dump_flag_name): Define.
4922         * doc/invoke.texi (-fdump-ast-inlined): Document.
4923
4924 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4925
4926         * stor-layout.c (layout_decl): Revert change to handling of alignment
4927         in packed types.
4928
4929 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4930
4931         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
4932         for FIELD_DECL.
4933
4934 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
4935
4936         * doc/tm.texi (FUNCTION_ARG): Document that the last call
4937         is special.
4938
4939 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
4940
4941         * tlink.c (recompile_files): Remove COMPILER_PATH and
4942         LIBRARY_PATH from the environment.
4943
4944 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
4945
4946         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
4947         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
4948         enumerators.
4949         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
4950
4951         * c-parse.in (OBJC_STRING): Kill.
4952         (objc_string): Decompose to [objc_string] '@' STRING.
4953         (reswords): Take the leading '@' off all the Objective C keywords.
4954         (objc_rid_sans_at): Kill.
4955         (init_reswords): Don't initialize it.
4956         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
4957         (_yylex): Kill reconsider label.  Look ahead one token after
4958         an '@'; if we get an identifier, check whether it's an
4959         Objective C @-keyword.  If so, return the keyword.  Otherwise,
4960         put back the token and return the '@' as a terminal.
4961
4962         * cpplib.c (lex_macro_node): Remove unnecessary check for
4963         leading '@' on identifier.  Clarify control flow and commentary.
4964
4965 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4966
4967         * cse.c (new_label_ref): Variable deleted.
4968         (insert): Remove set of new_label_ref.
4969         (check_for_label_ref): New function.
4970         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
4971
4972 See ChangeLog.5 for earlier changes.