varasm.c (output_constant_def_contents): Use for the length of a string constant...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2
3         * varasm.c (output_constant_def_contents): Use for the length of a
4         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
5         depending on which is larger.
6
7 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
8
9         * gcse.c: Include df.h for use as a dataflow analyzer.
10         Remove regvec.
11         Declaration of reg_set_info: gone.
12         New df_analyzer variable used by store motion.
13         (reg_set_info): Deleted.
14         (mark_mem_regs): New function, analyze regs used by a mem.
15         (store_ops_ok): Use dataflow analyzer results to determine if
16         necessary regs are changed in the block.
17         (find_moveable_store): Remove check for symbol ref, we can handle
18         much more complex expressions now.
19         (compute_store_table): Remove most of the code, it's unnecessary
20         now that the dataflow analyzer records the info for us.
21         (store_killed_after): Add parameter to say whether to do the
22         store_ops_okay test, used to speed up testing when we already know
23         the answer, and just want to know if the store itself was killed.
24         (build_store_vector): Largely rewritten to calculate the various
25         vectors properly, and somewhat optimized.
26         (store_motion): Init the df_analyzer, get REG_DEF chains. 
27         Also handle trapping expressions (since mems almost always trap)
28         (simple_mem): Redefine what a simple mem is.
29
30 2001-08-03  DJ Delorie  <dj@redhat.com>
31
32         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
33         set from a constant part of the condition.
34
35 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
36
37         * mkdeps.c (deps_add_default_target): Make local variable
38         ``start'' a const char pointer.
39         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
40
41 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
42
43         * doc/install.texi (Configuration): Fix markup.
44         (Specific, i?86-*-udk): Likewise.
45         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
46         --with-gnu-ld. 
47         Document --enable-threads and --enable-libgcj status.
48         (Specific, mips-sgi-irix*): Canonicalize triples.
49         (Specific, mips-sgi-irix5): Warn about problems with this config.
50         Mention required GNU as patch.
51         Native assembler problems are fixed.
52         (Specific, mips-sgi-irix6): Update O32 ABI support status.
53         Document --enable-threads and --enable-libgcj status.
54
55 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
56
57         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
58         of mkinstalldirs.
59
60 2001-08-03  Richard Henderson  <rth@redhat.com>
61
62         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
63         constant data.
64
65 2001-08-03  Richard Henderson  <rth@redhat.com>
66
67         * rtlanal.c (find_first_parameter_load): Stop if we
68         reach a CODE_LABEL at BOUNDARY.
69
70 2001-08-03  Richard Henderson  <rth@redhat.com>
71
72         * config/alpha/alpha.md (force_movdi): New insn.
73         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
74         Tweek FRP marking of VMS prologue insns.
75         * config/alpha/vms.h (EPILOGUE_USES): New.
76
77 2001-08-02  Richard Henderson  <rth@redhat.com>
78
79         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
80
81 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
82
83         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
84         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
85         config/convex/convex.h, config/d30v/d30v.c,
86         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
87         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
88         config/mips/mips.h, config/mn10200/mn10200.h,
89         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
90         config/v850/v850.h, config/vax/openbsd.h,
91         config/vax/openbsd1.h, config/vax/ultrix.h,
92         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
93         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
94         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
95         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
96         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
97         in comments and documentation.
98
99 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
100
101         * line-map.c: New.
102         * line-map.h: New.
103         * Makefile.in (line-map.o): New.
104         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
105         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
106         * cpperror.c (print_containing_files): Similarly.
107         (print_location): Update.  Don't output a space before _Pragma.
108         * cppfiles.c (stack_include_file): Set to line 1 immediately.
109         (stack_include_filee, cpp_make_system_header): Update.
110         (_cpp_execute_include): Get logical line number right for calling
111         as-yet-unterminated #include.
112         * cpphash.h (struct cpp_reader): Add line_maps.
113         (_cpp_do_file_change): Update.
114         * cppinit.c (cpp_create_reader): Initialize line maps.
115         (cpp_destroy): Destroy line maps.
116         (cpp_start_read): Get logical line number right.
117         * cpplex.c (parse_string): Only warn once for multi-line strings.
118         Use boolean variable for null warning.
119         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
120         already.
121         (do_include_common): End the directive early.
122         (do_line): Don't warn about out-of-range lines in preprocessed
123         source.  Update.  Remove unused variables.
124         (_cpp_do_file_change): Update for new line mapping.
125         (pragma_cb): New typedef.
126         (cpp_register_pragma): Stop looking ahead before calling the
127         handler.  Clean up.
128         (do_pragma_system_header): End directive early.
129         (cpp_get_line_maps): New.
130         (cpp_pop_buffer): Fudge logical line.  Update.
131         * cpplib.h: Include line-map.h
132         (enum cpp_fc_reason): Remove.
133         (struct cpp_file_change): Update.
134         (cpp_get_line_maps): New.
135         * cppmain.c (struct_printer): New member map.
136         (cb_file_change): Update for new mappings.
137         * fix-header.c (cb_file_change): Similarly.
138
139 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
140
141         * Makefile.in (libgcc.mk): Define mkinstalldirs.
142         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
143
144 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
145
146         * config/vax/vax.c: include expr.h.
147
148 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
149
150         * Makefile.in ($(srcdir)/configure): Only rebuild in
151         maintainer mode.
152         ($(srcdir)/config.in): Only define in maintainer mode.
153         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
154
155 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
156
157         * doc/install.texi (Install GCC: Binaries): Update Bull info.
158
159 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
160
161         * gcc.c (set_collect_gcc_options): New function, split out from
162         main.
163         Ignore elided switches.
164         (do_spec_1): Invoke before executing command.
165         (set_input): Export.
166         Move declaration ...
167         * gcc.h (set_input): ... here.
168         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
169         file.
170
171 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
172
173         Kill -fhonor-std.
174         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
175         interaction.
176         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
177
178 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
179
180         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
181         for the unnamed instructions it expands to.
182
183 2001-08-02  Richard Henderson  <rth@redhat.com>
184
185         * regclass.c (call_really_used_regs): Conditionally define.
186         (init_reg_sets_1): Don't use it if not defined.
187         (fix_register): Similarly, don't set it.
188
189 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
190
191         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
192         Correct comment that had been missed in the previous change.
193
194 2001-08-01  Stan Shebs  <shebs@apple.com>
195
196         * config/darwin.c (machopic_stub_name): Try matching by name.
197         (update_stubs): New function.
198         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
199         unconditionally.
200
201 2001-08-01  Richard Henderson  <rth@redhat.com>
202
203         * except.c (output_function_exception_table): Use assemble_align.
204         * varasm.c (assemble_eh_label): Remove.
205         (assemble_eh_align, assemble_eh_integer): Remove.
206
207 2001-08-01  Robert Lipe  <robertl@caldera.com>
208
209         * dwarfout.c: Remove reference to README.DWARF.
210
211 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
212
213         * regclass.c (call_really_used_regs): New array for registers which
214         are actually used by a call.
215         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
216         new array.
217         (fix_register): Set call_really_used too.
218         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
219         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
220
221 2001-08-01  Richard Henderson  <rth@redhat.com>
222
223         * read-rtl.c (read_name): Consider \r whitespace.
224
225 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
226
227         * config.gcc: Recognize powerpc-*-netbsd*.
228         
229         * doc/install.texi (Host/target specific installation notes for
230         GCC): Mention powerpc-*-netbsd*.
231
232         * config/rs6000/netbsd.h: New file.
233         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
234         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
235         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
236         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
237         (TARGET_VERSION): Redefine.
238
239         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
240         mcall-netbsd as a match for mcall-sysv.
241         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
242         (ncrti.S, ncrtn.S): New targets.
243         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
244         
245         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
246         "netbsd' as a V4 ABI.
247         (ASM_SPEC): Check for -mcall-netbsd.
248         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
249         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
250         (LIB_SPEC, ENDFILE_SPEC): Ditto.
251         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
252         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
253         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
254         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
255
256         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
257         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
258
259 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
260
261         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
262         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
263         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
264         including "unwind-pe.h".
265
266 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
267
268         * rs6000.md (define_splits): Kill unused constraints.
269
270 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
271                               Jan Hubicka  <jh@suse.cz>
272
273         * function.c (thread_prologue_and_epilogue_insns): Kill code
274         dealing with non-existent CFG.
275
276 2001-08-01  Kazu Hirata  <kazu@hxi.com>
277
278         * alias.c: Fix comment formatting.
279         * bitmap.c: Likewise.
280         * builtins.c: Likewise.
281         * calls.c: Likewise.
282         * c-common.c: Likewise.
283         * c-decl.c: Likewise.
284         * c-dump.c: Likewise.
285         * c-lex.c: Likewise.
286         * collect2.c: Likewise.
287         * combine.c: Likewise.
288         * conflict.c: Likewise.
289         * cppfiles.c: Likewise.
290         * cppinit.c: Likewise.
291         * cpplex.c: Likewise.
292         * cpplib.c: Likewise.
293         * cppmacro.c: Likewise.
294         * cppspec.c: Likewise.
295         * c-pragma.c: Likewise.
296         * crtstuff.c: Likewise.
297         * cse.c: Likewise.
298         * cselib.c: Likewise.
299         * c-semantics.c: Likewise.
300         * c-typeck.c: Likewise.
301
302 2001-08-01  H.J. Lu <hjl@gnu.org>
303
304         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
305
306 2001-08-01  H.J. Lu <hjl@gnu.org>
307
308         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
309
310 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
311
312         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
313         contextualizing Objective-C class name lookup by the lexer.
314         (typespec_reserved_nonattr): Disable ObjC class name lookup after
315         seeing a TYPESPEC.
316         (protocoldef): Add support for forward @protocol declarations.
317         (yylexname): Suppress ObjC class name lookup in certain contexts;
318         re-enable after lookup is complete.
319         (_yylex): Re-enable ObjC class name lookup when certain
320         punctuation marks are seen.
321
322         * objc/objc-act.c (check_protocol_recursively): New function used
323         for finding circular dependencies in protocols.
324         (objc_declare_protocols): New function for handling forward
325         @protocol declarations.
326         (receiver_is_class_object): Detect the case when 'self' is used
327         inside of a class method.
328         (build_message_expr): Issue a warning if class method is desired
329         but instance method is found instead.
330         (conforms_to_protocol): Streamline.
331         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
332         protocol Foo, even if 'Bar foo' does not.
333         (check_protocols): Streamline.
334         (start_protocol): Add checks for circular and duplicate protocol
335         definitions.
336         (encode_aggregate_within): For typedefs of structs, encode the
337         underlying struct.
338         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
339         (objc_declare_protocols): New prototype.
340
341 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
342
343         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
344         * cpplex.c (handle_newline): Update prototype.  Maintain logical
345         line number.
346         (skip_escaped_newlines, skip_block_comment, parse_string):
347         Update accordingly.
348         (_cpp_lex_token): Update, and store token position within the token.
349         * cpplib.h (struct cpp_token): Add line and column entries.
350         * cppmacro.c (replace_args): Position stringified tokens correctly.
351
352 2001-08-01  Andreas Jaeger  <aj@suse.de>
353
354         * basic-block.h: Add prototype for last_loop_beg_note.
355
356 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
357
358         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
359         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
360         comment.
361         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
362         while handling WITH_CLEANUP_EXPR node. Use second operand calling
363         expand_decl_cleanup.
364         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
365         the first RTX.
366         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
367         operand while calling simple_cst_equal.
368         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
369         operand is the cleanup expression, the third is the RTL_EXPR.
370         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
371
372 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
373
374         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
375
376 2001-07-31  matthew green  <mrg@eterna.com.au>
377
378         * config.gcc (i386-*-netbsdelf): New description.
379         * config/i386/netbsd-elf.h: New file.
380
381 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
382
383         * loop.c (check_dbra_loop): Use single_set to compute
384         jump_label.
385
386 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
387
388         PowerPC reorg and support for powerpc64-*-linux*.
389
390         Also fixes emitting of constants on 32 bit and 64 bit
391         platforms.
392
393         * config.gcc: powerpc64-*-linux* is a new target.
394         Things that needed aix.h now also include xcoff.h
395
396         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
397         xcoff.h.
398         Move AIX specific stuff into aix.h.
399         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
400         with more than just XCOFF now.
401         (SET_ASM_OP): Remove, now defined where needed.
402         (FUNCTION_PROLOGUE): New macro definition.
403         (FUNCTION_EPILOGUE): New macro definition.
404         (CONST_OK_FOR_LETTER_P): Change N to require that value is
405         positive, too.
406         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
407
408         * config/rs6000/xcoff.h: New file.
409
410         * config/rs6000/linux64.h: New file.
411
412         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
413
414 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
415
416         * rs6000.c (print_operand_address): Handle ELF syntax.
417         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
418         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
419         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
420
421 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
422
423         * rs6000.c (rs6000_override_options): Only disable
424         flag_function_sections for XCOFF.
425         (exact_log2_cint_operand): New predicate.
426         (reg_or_{add,sub}_cint64_operand): New predicates.
427         (add_operand): Compare CONST_INT with fewer function calls.
428         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
429         (print_operand, case 'p'): Ensure positive operand.
430         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
431         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
432         (PREDICATE_CODES): Add new predicates.
433         * rs6000.md (addsi3): Split 32-bit constants more correctly.
434         (divsi3, modsi3): Ensure positive power-of-2.
435         (adddi3): Use new predicate.  Split 32-bit constants more
436         correctly.  Re-arrange splitter to handle any constant.
437         (subdi3): Use new predicate.
438         (divdi3, moddi3): Ensure positive power-of-2.
439         (movdi): Use rs6000_emit_set_const.
440         (load_toc_v4_pic_di): Delete.
441
442 2001-07-31  Graham Stott <grahams@redhat.com>
443
444         * function.c (pad_below): Revert 2001-07-26 patch.
445
446 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
447
448         * reg-stack (convert_regs_1): Fix best edge condition.
449
450 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
451
452         * jump.c (duplicate_loop_exit_test): Better test for jumps
453         entering the loop; create loop pre_header.
454
455 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
456
457         * doc/install.texi: Add s390 and s390x as new targets.
458         * doc/invoke.texi: Add documantation of S/390 and zSeries
459         target options.
460         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
461
462 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
463
464         * config/m68k/m68k.md: Replace all general_operand with
465         nonimmediate_operand for all destinations.
466         * config/m68k/m68k.c (not_sp_operand): Likewise.
467
468 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
469
470         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
471
472 2001-07-30  Richard Henderson  <rth@redhat.com>
473
474         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
475         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
476
477 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
478
479         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
480         Add missing doc strings
481         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
482         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
483
484 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
485
486         * i386.c (ix86_output_main_function_alignment_hack): New function.
487         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
488
489         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
490         edges by EDGE_DFS_BACK flag.
491         (dump_edge_info): Add dfs_back flag.
492         * basic-block.h (EDGE_DFS_BACK): New constant.
493         (mark_dfs_back_edges): Declare.
494         * alias.c (loop_p): Remove.
495         (mark_constant_function): Use mark_dfs_back_edges.
496
497         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
498         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
499         (compensate_edge): Break out from ...
500         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
501         (convert_regs_2): Set block_done once block is really done;
502         Do updating of the predecesors counts.
503
504         * toplev.c (rest_of_compilation): Recompute block_for_insn
505         before post-reload cfg_cleanup.
506         * function.c (thread_prologue_epilogue_insns):
507         Call set_block_for_new_insns when emitting prologue directly.
508
509 2001-07-30  Andreas Jaeger  <aj@suse.de>
510
511         * jump.c: Add prototype for mark_modified_reg.
512
513         * cse.c (set_live_p): Add unused attribute.
514
515         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
516         overflow.
517         (scan_for_source_files): Use long for count to avoid overflow.
518         (output_data): Likewise.
519         (output_data): Don't use string concatatenation to silence gcc
520         -traditional.
521
522         * predict.c: Fix typos and grammar.
523
524         * gcse.c (insert_insn_end_bb): Remove unused variables.
525
526 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
527
528         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
529         (attempt_auto_inc): LIkewise.
530         (mark_used_reg): Likewise.
531         (try_pre_increment_1): Likewise.
532         * regclass.c (regclass): Likewise.
533         * global.c (allocno_compare): Update comment; change scaling factor.
534         * local-alloc.c (QTY_CMP_PRI): Likewise.
535         * regs.h (REG_FREQ_FROM_BB): New.
536         (REG_FREQ_MAX): Likewise.
537
538 2001-07-30  H.J. Lu <hjl@gnu.org>
539
540         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
541         -D_GNU_SOURCE.
542
543 2001-07-30  H.J. Lu  (hjl@gnu.org)
544
545         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
546         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
547         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
548
549 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
550
551         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
552         as -mthumb-interwork when -mcpu=arm7 is specified.
553
554 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
555
556         * predict.def (noreturn, loop branch, loop exit): Mark as first
557         match heuristics.
558
559 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
560
561         * combine.c (try_combine): Avoid barrier after noop jumps.
562
563 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
564
565         * cpphash.h (struct cpp_reader): Remove import_warning.
566         * cpplib.c (skip_rest_of_line): Don't bother turning off
567         macro expansion.
568         (parse_include): Move include handling to...
569         (do_include_common): ... here.  Move import warning from...
570         (do_import): ... here.
571         (do_pragma_poison): Don't do a callback for poison identifiers.
572         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
573         * cppmain.c (setup_callbacks): Similarly.
574
575 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
576
577         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
578         handle multiple sets.
579         * except.c (sjlj_mark_call_sites): .... here.
580         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
581
582 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
583
584         Suggested by Richard Henderson and Richard Kenner:
585         * combine.c (recog_for_combine): Use the fake recog
586         only if instruction does not match.
587         * rtl.h (NOOP_MOVE_INSN_CODE): New.
588         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
589
590         * combine.c (try_combine): Discover noop jump as direct jump.
591
592 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
593
594         * df.c (df_rd_global_compute): Add successors to worklist, not
595         current item.
596         (df_ru_global_compute): Ditto.
597
598 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
599
600         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
601         increment REG_N_SETS.
602
603 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
604
605         * sbitmap.h: New prototype for sbitmap_a_xor_b.
606
607         * sbitmap.c (sbitmap_a_xor_b): New function.
608         ifdef the basic block stuff on IN_GCC.
609
610 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
611
612         * cppexp.c (parse_defined): Always record the macro name.
613         (lex): Don't worry about identifiers, or special-case
614         CPP_NOT here.
615         (_cpp_parse_expr): Figure out at the end of the routine
616         whether we saw a valid !defined() expression.
617         * cppfiles.c (stack_include_file): Update for mi_valid.
618         (_cpp_pop_file_buffer): Similarly.
619         * cpplex.c (_cpp_lex_token): Similarly.
620         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
621         mi_if_not_defined, mi_lexed): Remove.
622         (mi_valid): New.
623         * cpplib.c (do_if): Simplify.
624         (do_endif, push_conditional, _cpp_handle_directive): Update
625         for renaming of mi_state to mi_valid.
626 doc:
627         * cpp.texi: Add index entries for digraphs, and add comment
628         that C++ refers to them as alternative tokens.
629
630 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
631
632         * basic-block.h (CLEANUP_PRE_LOOP): New.
633         * except.c (finish_eh_generation): Update call of cleanup_cfg.
634         * sibcall.c (optimize_sibling_calls): Likewise.
635         * toplev.c (rest_of_compilation): Likewise.
636         * flow.c (try_forward_edges): Take argument MODE;
637         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
638         (try_optimize_cfg): Update call of try_forward_edges.
639
640 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
641                                Jan Hubicka  <jh@suse.cz>
642
643         * (validate_replace_rtx_1): Fix simplification of MINUS.
644
645 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
646
647         PR preprocessor/3669
648         * cppinit.c (init_dependency_output): Turn off dump requests
649         if sending dependencies to stdout.
650
651 2001-07-28  Richard Henderson  <rth@redhat.com>
652
653         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
654         not optimizing.
655
656 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
657
658         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
659
660 2001-07-28  Kazu Hirata  <kazu@hxi.com>
661
662         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
663         is VAR_DECL first to prevent an ICE.
664
665 2001-07-28  Richard Henderson  <rth@redhat.com>
666
667         * varasm.c (immed_real_const_1): Don't elide special cases for
668         nested functions.
669         (clear_const_double_mem): Clear const_tiny_rtx too.
670
671 2001-07-28  Richard Henderson  <rth@redhat.com>
672
673         * dwarf2out.c (dw_val_class_offset): New.
674         (struct dw_ranges_struct, dw_ranges_ref): New.
675         (ranges_table, ranges_table_allocated): New.
676         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
677         (add_AT_offset, add_ranges, output_ranges): New.
678         (print_die, output_die): Handle dw_val_class_offset.
679         (attr_checksum, size_of_die, value_format): Likewise.
680         (gen_lexical_block_die): Handle non-contiguous blocks.
681         (gen_block_die): Likewise.
682         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
683         if needed.  Dump the ranges table.
684         * final.c (final_start_function): Remove unnecessary notes and
685         rebuild the block tree before numbering the blocks.
686         * function.c (reorder_blocks_0): Walk the existing block tree
687         to unmark all blocks.
688         (reorder_blocks_1): Create block fragments when duplicate block
689         notes are seen.
690         (reorder_fix_fragments): New.
691         (reorder_blocks): Call it.
692         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
693
694 2001-07-28  Richard Henderson  <rth@redhat.com>
695
696         * emit-rtl.c (adjust_address): Make a copy of the memory address.
697
698 2001-07-28  Richard Henderson  <rth@redhat.com>
699
700         * flow.c (add_to_mem_set_list): New function.
701         (init_propagate_block_info): Use it.
702         (mark_set_1): Likewise.
703         (insn_dead_p): Canonicalize memory address for dead store
704         comparison.  Allow wider mode stores to kill narrower mode stores.
705         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
706         (invalidate_mems_from_set): Don't handle MEMs.
707
708 2001-07-28  Kazu Hirata  <kazu@hxi.com>
709
710         * config/h8300/h8300.h: Fix formatting.
711
712 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
713
714         * basic-block.h (EDGE_FREQUENCY): New macro.
715         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
716         for new BB/edges.
717         * flow.c (find_sub_basic_blocks): Likewise.
718         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
719         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
720
721         * predict.c (DEF_PREDICTOR): New argument FLAGS.
722         (HITRATE): New macro.
723         (PRED_FLAG_FIRST_MATCH): New constant.
724         (predictor_info): New field flgags.
725         (combine_predictions_for_insn): Use DS theory to combine
726         probabilities; set the edge probabilities when finished.
727         (estimate_probability): Avoid duplicated matches
728         of LOOP_BRANCH heuristics for nested loops; update comment.
729         * predict.def: Add flags for each prediction, set probabilities
730         according to B&L paper.
731         * predict.h (DEF_PREDICTOR): New argument FLAGS.
732
733         * profile.c (compute_branch_probabilities):  Cleanup way the edge
734         probabilities are computed and REG_BR_PROB notes are dropped; if
735         values does not match, emit error.
736         (init_branch_prob): Do error instead of warning when profile driven
737         feedback is missing or corrupt.
738
739 2001-07-27  DJ Delorie  <dj@redhat.com>
740
741         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
742         against a constant, try to adjust the compare to have the desired
743         constant in it so that min/max optimizations happen more often.
744
745 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
746
747         * flow.c (last_loop_beg_note): New function.
748         (redirect_edge_and_branch): Use it.
749         (split_edge): Likewise.
750
751         * alias.c (loop_p): Avoid uninitialized memory access.
752
753         * flow.c (try_forward_edges): Avoid accessing freed memory.
754
755         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
756         variable access.
757
758 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
759
760         * doc/install.texi (Configuration): Properly link the host
761         specific instructions also when generating HTML.
762
763 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
764
765         * flow.c (redirect_edge_and_branch_force): Test
766         target->global_live_at_start.
767
768 2001-07-26  Richard Henderson  <rth@redhat.com>
769
770         * simplify-rtx.c (avoid_constant_pool_reference): Export.
771         * rtl.h (avoid_constant_pool_reference): Declare it.
772         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
773         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
774
775 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
776
777         * rtl.h (cleanup_barriers): Declare.
778         * jump.c (cleanup_barriers): New function.
779         * toplev.c (rest_of_compilation): Call cleanup_barriers
780         before loop optimizer and after bb_reorder.
781
782         * flow.c (back_edge_of_syntactic_loop_p): New.
783         (split_edge): Use it.
784
785 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
786
787         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
788
789 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
790
791         * cse.c (cse_process_notes): Replace any registers if the address
792         remains valid.
793
794 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
795
796         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
797         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
798         (propagate_block): Update prototype.
799         * flow.c (update_life_info): Simplify the CFG and
800         recalculate the global regs which are alive when
801         removing dead code during a global update.
802         (propagate_block): Return non-zero if an INSN is
803         deleted.
804
805 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
806
807         * Makefile.in (LIBICONV): Define.
808
809 2001-07-26  Catherine Moore  <clm@redhat.com>
810
811         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
812         of conditional to avoid tree checking errors.
813
814 2001-07-26  Kazu Hirata  <kazu@hxi.com>
815
816         * regmove.c (regmove_optimize): Don't replace a reg with
817         another reg of a different mode.
818
819 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
820
821         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
822         limit length of dependancy flush list.
823         * params.h (MAX_PENDING_LIST_LENGTH): Define.
824         * sched-int.h  (struct deps): Add pending_flush_length field.
825         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
826         has 1 element in it.
827         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
828         (sched_analyze): After a jump, if the pending memory flush list is too
829         large, flush the pending lists.
830         (init_deps): Initialize pending_flush_length to 0.
831         * doc/invoke.texi (max_pending_list_length): Document parameter.
832
833 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
834
835         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
836         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
837         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
838
839 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
840
841         * cpphash.h (struct_lexer_state): Delete was_skipping.
842         Move skipping here from struct cpp_reader.
843         * cpplex.c (parse_identifier): Update.
844         (_cpp_lex_token): Don't skip tokens in a directive.
845         * cpplib.c (struct if_stack): Update.
846         (start_directive, end_directive): Don't change skipping state.
847         (_cpp_handle_directive): Update.
848         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
849         (do_else, do_endif): Update; only check for excess tokens if not
850         in a skipped conditional block.
851         (push_conditional): Update for new struct if_stack.
852
853 2001-07-26  Graham Stott  <grahams@redhat.com>
854
855         * function.c (locate_and_pad_parm): Also pad initial offset
856         so that the total argument size also includes the padding.
857
858 2001-07-26  Graham Stott <grahams@redhat.com>
859
860         * gensupport.c (alter_output_for_insn): Correct enable checking failure
861         change XSTR to XTMPL.
862
863         (process_one_cond_exec): Likewise
864
865 2001-07-25  Richard Henderson  <rth@redhat.com>
866
867         * varasm.c (assemble_variable): Create DECL_RTL before setting
868         TREE_ASM_WRITTEN.
869
870 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
871
872         * predict.c (estimate_probability): Avoid duplicated predictions.
873
874         * loop.c (find_and_verify_loops): Grok multiple barriers.
875
876 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
877
878         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
879
880         * dbxout.c: Consistently use putc instead of fputc.
881         (print_wide_int): New function; call instead of direct fprintf.
882         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
883         (dbxout_type_fields, dbxout_type_method_1): Likewise.
884         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
885         (print_int_cst_octal): Likewise.
886         (print_octal): Show we wrote characters.
887         (dbxout_type): Set have_used_extensions in more places.
888
889 2001-07-25  Catherine Moore  <clm@redhat.com>
890
891         * config/v850/v850.c (v850_va_arg):  Use addr
892         instead of valist to build incr.
893
894 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
895
896         * flow.c (delete_dead_jumptables): New function.
897         (life_analyzis): Call it.
898         * bb-reorder.c (skip_insns_after_block): Handle contradictory
899         sequences.
900
901 2001-07-25  Richard Henderson  <rth@redhat.com>
902
903         * except.c (reachable_handlers): Handle a region being removed
904         out from under a RESX.
905
906 2001-07-25  Richard Henderson  <rth@redhat.com>
907
908         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
909         swap GE/GT if it is an fp comparison.
910
911 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
912
913         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
914         operands.
915
916 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
917
918         * ssa.c (rename_insn_1): Do not wrap an assignment to a
919         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
920         glitch.
921
922         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
923         throw an exception.
924         (visit_expression): When attempting to simplify an expression,
925         retrieve any modes for arguments before they are simplified
926         to constants.
927
928 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
929             Janis Johnson  <janis@us.ibm.com>
930
931         * stmt.c (expand_goto): A nonlocal goto can be a call too.
932         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
933         pointer parameters to match documented usage of nonlocal_goto.
934         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
935         parameters to their correct order.
936         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
937         parameters to their correct order.
938
939 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
940
941         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
942
943 2001-07-25  Jan Hubicka  <jh@suse.cz>
944             Richard Henderson  <rth@redhat.com>
945
946         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
947         the sequence.
948         (make_edges): New argument update_p; populate the edge cache if set.
949         (find_basic_blocks): Update make_edges invocation.
950
951 2001-07-24  Joel Sherrill <joel@OARcorp.com>
952
953         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
954
955 2001-07-24  Joel Sherrill <joel@OARcorp.com>
956
957         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
958         -Acpu and -Amachine.h.
959         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
960         Corrected header to say ELF not a.out.
961         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
962         when given -msoft-float.
963
964 2001-07-24  Joel Sherrill <joel@OARcorp.com>
965
966         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
967         extra multilib parts like arm-elf.
968         (i960-*-coff*, i960-*-rtems): Should not use collect2.
969         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
970         crtfini.o as extra multilib parts.
971
972 2001-07-24  Joel Sherrill <joel@OARcorp.com>
973
974         * configure.in: Add rtems as a supported thread model.
975         * gthr-rtems.h: Add missing entry point __gthread_active_p.
976         * configure: Rebuilt.
977
978 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
979
980         * stor-layout.c (get_mode_alignment): make it work when
981         BITS_PER_UNIT is not a power of two.
982         * builtins.c (get_pointer_alignment): Likewise.
983
984 2001-07-24  Richard Henderson  <rth@redhat.com>
985
986         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
987         the retrieved constant into the expected mode.
988
989 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
990
991         * flow.c (try_simplify_condjump): Avoid duplicated edges.
992         (verify_flow_info): Check for duplicated edges; clarify
993         error reporting.
994
995         * flow.c (block_label): Update basic_block_for_insn.
996         (commit_edge_insertions): Call compute_bb_for_insn.
997
998         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
999         returns too.
1000
1001         * flow.c (redirect_edge_and_branch,
1002         try_optimize_cfg): Use redirect_edge_succ_nodup
1003         (redirect_edge_succ_nodup): New.
1004         * basic_block.h (redirect_edge_succ_nodup): Declare.
1005
1006         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
1007         after gcse.
1008
1009 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
1010
1011         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
1012         (try_crossjump_to_edge): Update commetns.
1013         (try_crossjump_bb): Likewise.
1014
1015 2001-07-24  Richard Henderson  <rth@redhat.com>
1016
1017         * combine.c (distribute_notes): Move set of need_refresh
1018         for noop_move_p down to catch all cases.
1019
1020 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
1021
1022         * recog.c (split_all_insns_noflow): New.
1023         * rtl.h (split_all_insns_noflow): Declare.
1024         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
1025         * m68hc11.c (m68hc11_reorg): Likewise.
1026         * sh.c (machine_dependent_reorg): Likewise.
1027         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
1028         call.
1029
1030 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
1031
1032         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
1033         (ashlsi3_n splitter): Likewise.
1034         (lshrsi3_n splitter): Likewise.
1035
1036         (GOTaddr2picreg): Make const SImode.
1037         (sym_label2reg): Likewise.
1038         (symGOT2reg): Likewise.
1039         (symGOTOFF2reg) Likewise.
1040
1041         (casesi_worker_0): Make unspec SImode.
1042
1043 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
1044
1045         * config/sh/sh.c (barrier_align): Check that an operand really is
1046         an insn before extracting its INSN_CODE.
1047
1048 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
1049
1050         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
1051         dangling else.
1052
1053         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
1054         for SImode to prevent overflow.
1055
1056 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1057
1058         * config/mips/irix6-libc-compat.c: New file.
1059         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
1060         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
1061         passing workaround.
1062
1063 2001-07-24  lars brinkhoff  <lars@nocrew.org>
1064
1065         * rtl.texi (REG_POINTER): Document.
1066         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
1067         QFmode, HFmode, TQFmode, QCmode, and HCmode.
1068
1069 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
1070
1071         * flow.c (delete_noop_moves): Do not confuse libcall regions.
1072
1073 2001-07-23  Richard Henderson  <rth@redhat.com>
1074
1075         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
1076
1077 2001-07-23  Kazu Hirata  <kazu@hxi.com>
1078
1079         * config/h8300/h8300-protos.h: Add a prototype for
1080         general_operand_dst_push.
1081         * config/h8300/h8300.c (general_operand_dst_push): New.
1082         * config/h8300/h8300.h (OK_FOR_T): New.
1083         (EXTRA_CONSTRAINT): Use it.
1084         * config/h8300/h8300.md (movqi_push): Remove and integrate into
1085         the existing movqi pattern.
1086         (movhi_push): Likewise.
1087
1088         * reload.c: Fix comment typos.
1089
1090 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
1091
1092         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
1093
1094 2001-07-23  H.J. Lu  (hjl@gnu.org)
1095
1096         * doc/extend.texi: Update __builtin_return_address and
1097         __builtin_frame_address.
1098
1099 2001-07-23  Richard Henderson  <rth@redhat.com>
1100
1101         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
1102         before CSE.
1103         * config/i386/i386.md: New setcc+movzbl peephole2.
1104
1105 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1106
1107         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
1108         * objc/objc-act.c: Include debug.h.
1109         (synth_module_prologue): Save and restore debug hooks too.
1110
1111 2001-07-23  lars brinkhoff  <lars@nocrew.org>
1112
1113         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
1114         and C4X_FLOAT_FORMAT.
1115         (BOOL_TYPE_SIZE): Document.
1116
1117 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
1118
1119         * unroll.c (loop_iterations): Fix miscalculation of initial
1120         giv offset.
1121
1122 2001-07-13  Andrew Haley  <aph@redhat.com>
1123
1124         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
1125         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
1126         * config/sh/sh.c (sh_can_redirect_branch): New function.
1127         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
1128         * reorg.c (steal_delay_list_from_target): Use
1129         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
1130
1131 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
1132
1133         * flow.c (try_simplify_condjump): Unlink insn chain on
1134         fallthru edge; use can_fallthru.
1135
1136 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
1137
1138         * basic-block.h (find_sub_basic_block): Declare.
1139         * flow.c (make_edges): New arguments MIN and MAX;
1140         (find_sub_basic_blocks): Revamp to use make_edges
1141         and purge_dead_edges.
1142         (find_basic_blocks): Update call of find_sub_basic_block.
1143
1144         * recog.c (split_all_insns): Always expect CFG to be consistent;
1145         call find_sub_basic_blocks in case something has changed.
1146         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
1147         has been built.
1148
1149         * basic-block.h (delete_noop_moves): Declare.
1150         * combine.c (combine_instructions): Call it.
1151         (recog_for_combine): Tolerate noop moves
1152         (distribute_notes): Force refresh when register dies at noop move.
1153         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
1154         too.
1155         (life_analysis): Update delete_noop_moves call.
1156         (set_noop_p): Move too ...
1157         * rtlanal.c (noop_move_p): ... here.
1158         * rtl.h (noop_move_p): Declare.
1159
1160         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
1161         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
1162         after combine.
1163         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
1164         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
1165
1166 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
1167
1168         * reload.c (push_reload): Fix typo in comment.
1169         (find_reloads_address): Ditto.
1170         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
1171
1172 2001-07-22  Richard Henderson  <rth@redhat.com>
1173
1174         * flow.c: Grammar check and clarify a lot of comments.
1175         (try_simplify_condjump): Rename variables to be clearer.
1176         (try_forward_edges): Skip complex and fallthru edges.
1177         Rearrange tests to avoid duplicate checks.
1178         (flow_find_cross_jump): Likewise.
1179         (outgoing_edges_match): Allow match if neither branch has
1180         probability data.  Loosen probability match to 5%.
1181         (try_crossjump_to_edge): Hoist repeated indirection into
1182         local variables.
1183         (try_crossjump_bb): Don't check complex edges.  Eliminate
1184         redundant crossjump tests.
1185         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
1186         checks before more expensive checks.
1187
1188 2001-07-22  Richard Henderson  <rth@redhat.com>
1189
1190         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
1191         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
1192         arguments.
1193
1194 2001-07-22  Richard Henderson  <rth@redhat.com>
1195
1196         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
1197         (const_sint32_operand): Likewise.
1198         * m68k.md (anon mulsi pattern): Use const_int_operand not
1199         const_sint32_operand.
1200         (umulsi3_highpart): Zero extend a constant input.
1201         (smulsi3_highpart): Don't bother checking SImode constant.
1202         (const_umulsi3_highpart): Give op3 DImode.
1203         (const_smulsi3_highpart): Likewise.
1204
1205 2001-07-22  Richard Henderson  <rth@redhat.com>
1206
1207         * flow.c (split_block): Make sure bb_note is included in the
1208         new block when splitting before a label.
1209
1210 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
1211
1212         * basic-block.h (redirect_edge_and_branch_force,
1213         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
1214         * flow.c (redirect_edge_and_branch_force,
1215         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
1216         (redirect_edge_and_branch_force): Fix copying of lifeness information.
1217         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
1218         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
1219         instead of label; update CFG after transformation.
1220         (find_if_case_1): Update call, use redirect_edge_and_branch_force
1221         for finishing the transformation; handle even case where ELSE
1222         does not follow THEN.
1223         (find_if_case_2): Update call of dead_or_predictable; simplify
1224         CFG update.
1225
1226         * emit-rtl.c (split_branch_probability): New global variable.
1227         (try_split): Take care to set split_branch_probability and
1228         create REG_BR_PROB note for new jump insns.
1229         * md.texi (define_split): Document new feature.
1230
1231         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
1232
1233 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1234
1235         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
1236         (asm_out_file): Remove redundant declaration.
1237         (assemble_asm): Remove old #if 0 block.
1238         (assemble_variable): Remove end of function; debug output is
1239         now handled with global_decl.  Remove old #if 0 block.  Update.
1240         Remove saved_in_section and associated no-op code.
1241         * Makefile.in (varasm.o): Correct dependencies.
1242
1243 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
1244
1245         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1246         the definition in defaults.h.
1247
1248 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
1249
1250         * jump.c: Update comments.
1251         (delete_barrier_successors, delete_unreferenced_labels,
1252         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
1253         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
1254         jump_optimize, jump_optimize_minimal): Kill.
1255         (rebuild_jump_labels): Move code from jump_optimize_1.
1256         (purge_line_number_notes): Likewise.
1257         (copy_loop_headers): Likewise.
1258         * reg-stack.c: Update comment.
1259         * stmt.c: Likewise.
1260         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
1261         JUMP_AFTER_REGSCAN): Kill.
1262         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
1263         purge_line_number_notes and copy_loop_headers.
1264
1265 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
1266            Richard Henderson  <rth@redhat.com>
1267
1268         * dbxout.c (dbxout_global_decl): New.
1269         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
1270         * sdbout.c (sdbout_finish): New.
1271         (sdbout_debug_hooks): Use it, add comments.
1272         (sdbout_global_decl): Defer initialised public vars to
1273         sdbout_finish.
1274         * varasm.c (assemble_variable): Don't output debug information
1275         for file-scope variables.
1276
1277 2001-07-22  Richard Henderson  <rth@redhat.com>
1278
1279         * config/alpha/alpha.c (get_trap_mode_suffix): New.
1280         (get_round_mode_suffix): New.
1281         (print_operand): Use them for [/].  Remove support for [&'`()+].
1282         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
1283         * config/alpha/alpha.md (attr round_suffix): New.
1284         (attr trap_suffix): New.
1285         (all insns): Set them appropriately.  Use %/ instead of the
1286         myriad punctuators.
1287
1288 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1289
1290         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
1291
1292 2001-07-22  Richard Henderson  <rth@redhat.com>
1293
1294         * regrename.c (regrename_optimize): Compute nregs for each
1295         potential target register.
1296
1297 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
1298            Richard Henderson  <rth@redhat.com>
1299
1300         * dbxout.c (dbxout_global_decl): New.
1301         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
1302         * sdbout.c (sdbout_finish): New.
1303         (sdbout_debug_hooks): Use it, add comments.
1304         (sdbout_global_decl): Defer initialised public vars to
1305         sdbout_finish.
1306         * varasm.c (assemble_variable): Don't output debug information
1307         for file-scope variables.
1308
1309 2001-07-21  H.J. Lu  (hjl@gnu.org)
1310
1311         * config/mips/mips.c (mips_cpu): Moved into ...
1312         (override_options): Here.
1313
1314         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
1315         mips_tune.
1316         (mips_cpu): Removed.
1317
1318 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1319
1320         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
1321         ("iorqi3"): Likewise.
1322         ("xorqi3"): Likewise.
1323         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
1324         ("*subhi3_sp): Likewise.
1325         ("*subhi3"): Likewise.
1326         ("extendhisi2"): Accept D, X and Y as source operand to avoid
1327         reload problems.
1328
1329 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1330
1331         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
1332         * config/freebsd.h: Likewise.
1333         * config/linux.h: Likewise.
1334         * config/openbsd.h: Likewise.
1335         * config/alpha/linux-elf.h: Likewise.
1336         * config/arm/linux-elf.h: Likewise.
1337         * config/d30v/d30v.h: Likewise.
1338         * config/fr30/fr30.h: Likewise.
1339         * config/ia64/aix.h: Likewise.
1340         * config/ia64/ia64.h: Likewise.
1341         * config/mips/linux.h: Likewise.
1342         * config/pj/pj.h: Likewise.
1343         * config/rs6000/linux.h: Likewise.
1344         * config/sparc/linux.h: Likewise.
1345         * config/sparc/linux64.h: Likewise.
1346
1347 2001-07-20  Bruce Korb  <bkorb@gnu.org>
1348
1349         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
1350         because getc() and char* may disagree on signedness.
1351
1352 2001-07-20  Richard Henderson  <rth@redhat.com>
1353
1354         * doc/rtl.texi (REG_DEAD): Update for current semantics.
1355
1356         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
1357         insns to delete in the presence of cc0 in a jump insn.
1358
1359 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
1360                                Jan Hubicka  <jh@suse.cz>
1361
1362         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
1363         of doing the change by hand.
1364
1365 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
1366
1367         * rtlanal.c (set_noop_p): Return true for noop jumps.
1368
1369         * expr.c (emit_single_push_insn): Add call to push expander.
1370         * expr.h (optab_index): Add OTI_push
1371         (push_optab): New constant.
1372         * genopinit.c (optabs): Add push_optab.
1373         * optabs.c (init_optab): Init push optab.
1374         * md.texi (push??1): Document
1375
1376 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1377
1378         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
1379         expand to emit the pattern; put a REG_INC note for push/pop
1380         instructions.
1381         ("movdf", "movdf_internal"): Likewise.
1382         ("movsi", "movsi_internal"): Likewise.
1383         ("movsf", "movsf_internal"): Likewise.
1384         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
1385
1386 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1387
1388         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
1389         gen_highpart.
1390
1391 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
1392
1393         * params.def: Change default max inline insns to 100.
1394
1395 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
1396
1397         * combine.c (combine_simplify_rtx): Generate a new shift operation
1398         when simplifying the first operand of a (neg (ashift)) expression.
1399
1400 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1401
1402         * regclass.c (N_REG_INTS): Use only 32 bits per element.
1403
1404 2001-07-20  Kelley Cook  <kelley.cook@home.com>
1405
1406         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
1407         information.   Move rest into ...
1408         (*-*-solaris): ... here.  Eliminate redundant information and
1409         reword necessary packages section.  Delete 4.x assembler bug info.
1410         (sparc-sun-*): Merge into ...
1411         (sparc-sun-sunos*): here.
1412
1413 2001-07-20  Catherine Moore  <clm@redhat.com>
1414
1415         * config/v850/v850.md (casesi): Generate LABEL_REF
1416         with Pmode.
1417
1418 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
1419
1420         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
1421         * i386.c (ix86_zero_extend_to_Pmode): Make global.
1422         * i386.md (strclrsi expander): Use it.
1423
1424 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1425
1426         * integrate.c (copy_insn_list): handle
1427         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
1428         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
1429         identically as to CODE_LABEL.
1430
1431         * fold-const (fold): Convert A/B/C to A/(B*C) and
1432         A/(B/C) to (A/B)*C
1433
1434         * except.c (connect_post_landing_pads): Delete the RESX insns.
1435
1436 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
1437
1438         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
1439
1440         * config/mips/mips.md (nmadd/nmsub): Use macro.
1441
1442 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
1443
1444         * cppinit.c (remove_dup_dir): Make static.
1445         (remove_dup_dirs): Make static. Only warn about preempting a
1446         system directory with a non-system directory.
1447
1448 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
1449
1450         * ifcvt.c (noce_try_store_flag_constants): Correct order
1451         of parameters to trunc_int_for_mode.
1452
1453 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
1454
1455         * reorg.c (fill_simple_delay_slots): If an instruction might throw
1456         an exception that will be caught within this function, do not fill
1457         its delay slot with any subsequent instruction.
1458
1459 2001-07-19  Steve Ellcey <sje@cup.hp.com>
1460
1461         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
1462         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
1463         pointer extension instruction.
1464         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
1465         * simplify-rtx.c (simplify_unary_operation) Likewise.
1466         * explow.c (convert_memory_address) Check value of
1467         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
1468         less than zero.
1469         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
1470         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
1471         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
1472         Add Multilib Support.
1473         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
1474         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
1475         Add Multilib Support.
1476         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
1477         support.
1478         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
1479         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
1480         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
1481
1482 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
1483
1484         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
1485         old and new operands in `<', `3' and `b'.
1486
1487 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1488
1489         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
1490         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
1491         (toplev.o): Don't depend on xcoffout.h.
1492         * c-decl.c: Include debug.h
1493         (duplicate_decls): Use debug hook.
1494         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
1495         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1496         (dbxout_types): Remove.
1497         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
1498         * debug.c (do_nothing_debug_hooks): Update.
1499         (debug_true_tree, debug_nothing_rtx): New.
1500         * debug.h (struct rtx_def): New.
1501         (struct gcc_debug_hooks): New hooks ignore_block,
1502         outlining_inline_function and label.
1503         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
1504         dwarf2out_frame_finish): New.
1505         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
1506         Make static, update prototype.
1507         (dwarf2_debug_hooks): Update.
1508         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
1509         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
1510         * dwarfout.c (dwarf_debug_hooks): Update.
1511         * emit-rtl.c: Include debug.h.
1512         (remove_unnecessary_notes): Use debug hook.
1513         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
1514         (final_scan_insn): Use debug hook.
1515         * integrate.c (output_inline_function): Use debug hook.
1516         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
1517         (sdb_debug_hooks): Update.
1518         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
1519         * toplev.c: Don't include xcoffout.h.
1520         (note_outlining_of_inline_function, debug_ignore_block): Remove.
1521         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
1522         Remove.
1523         * tree.h (dwarf2out_do_frame): Remove.
1524
1525 2001-07-19  Catherine Moore  <clm@cygnus.com>
1526
1527         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
1528
1529 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
1530
1531         * reload1.c (eliminate_regs_in_insn): When updating a set
1532         to the frame pointer to the hardware frame pointer, perform
1533         the update always not just when REPLACE is set.
1534
1535         * reload1.c (choose_reload_regs): Don't inherit a reload
1536         that crosses multiple registers if registers past the first
1537         don't fit in the desired class.
1538
1539         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
1540         when negating constants.
1541
1542 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1543
1544         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
1545         * doc/tree.texi: Ditto.
1546
1547 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
1548             Jakub Jelinek  <jakub@redhat.com>
1549
1550         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
1551         (extract_cie_info): Handle "eh" augmentation properly,
1552         remember eh_ptr.
1553         (struct frame_state, __frame_state_for): New.
1554
1555 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1556
1557         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
1558         HANDLE_SYSV_PRAGMA): Define.
1559         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
1560         previous args.
1561         (copy_object): Caller changed.
1562
1563 2001-07-19  Andreas Schwab  <schwab@suse.de>
1564
1565         * configure.in (assembler dwarf2 debug_line support): Define nop
1566         insn for m68k.
1567         * configure: Regenerated.
1568
1569 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1570
1571         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
1572         dwarfout.h.
1573         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
1574         to conditionally compiled block.
1575         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1576         * dbxout.h (dbxout_function): Remove.
1577         * debug.c (do_nothing_debug_hooks): Update.
1578         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
1579         global_decl, deferred_inline_function.
1580         * dwarf2out.c (dwarf2_debug_hooks): Update.
1581         (dwarf2out_global_decl): New.
1582         * dwarfout.c: Don't include dwarfout.h.
1583         (dwarfout_global_decl, dwarfout_function_decl,
1584         dwarfout_deferred_inline_function): New.
1585         (dwarf_debug_hooks): Update.
1586         * dwarfout.h: Remove.
1587         * final.c: Don't include dwarfout.h.
1588         * sdbout.c (sdbout_global_decl): New.
1589         (sdbout_debug_hooks): Update.
1590         * toplev.c: Don't include dwarfout.h.
1591         (check_global_declarations, rest_of_compilation): Use new debug hooks.
1592         (note_deferral_of_defined_inline_function): Remove.
1593         * toplev.h (note_deferral_of_defined_inline_function): Remove.
1594         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
1595         * ch/lex.c: Don't include dwarfout.h.
1596         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
1597         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
1598         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
1599         * cp/optimize.c: Include debug.h.
1600         (maybe_clone_body): Use debug hook.
1601         * cp/semantics.c: Include debug.h.
1602         (expand_body): Use debug hook.
1603         * po/POTFILES.in: Remove dwarfout.h.
1604
1605 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1606
1607         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
1608         * c-parse.in (yyerror, _yylex): Similarly.
1609         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
1610         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
1611         Update comments.
1612         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
1613         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
1614
1615 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
1616
1617         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
1618         in-class declaration at -g1.  Fixes c++/2814.
1619
1620 2001-07-18  Richard Henderson  <rth@redhat.com>
1621
1622         * doc/md.texi (reload_in/out): Document restrictions in predicates
1623         and constraints for these patterns.  Document empty string matching
1624         ALL_REGS.
1625
1626 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1627
1628         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
1629
1630 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1631
1632         * cse.c: Undo my previous patch.
1633
1634 2001-07-18  Tom Tromey  <tromey@redhat.com>
1635
1636         For PR java/2812:
1637         * configure: Rebuilt.
1638         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
1639         instead.
1640         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
1641
1642 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
1643                                Jan Hubicka  <jh@suse.cz>
1644
1645         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
1646         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
1647         * jump.c (mark_jump_label): Do not forward branches.
1648
1649 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
1650
1651         * cse.c (delete_trivially_dead_insns): Delete the libcall block
1652         when return value is unused.
1653
1654 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
1655
1656         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
1657
1658 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1659
1660         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
1661         on error.  We can't blindly return the result of
1662         pthread_mutex_trylock because it returns a positive number on
1663         error, while we must return -1 on error.
1664         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
1665         fixes.
1666         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
1667
1668 2001-07-18  Andreas Jaeger  <aj@suse.de>
1669
1670         * integrate.c (output_inline_function): Correct type of debug_hooks.
1671
1672 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
1673
1674         * combine.c (combine_simplify_rtx): DIV can be treated
1675         associatively for floats if unsafe math optimisations are enabled.
1676
1677 2001-07-17  Richard Henderson  <rth@redhat.com>
1678
1679         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
1680
1681 2001-07-17  Richard Henderson  <rth@redhat.com>
1682
1683         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
1684         don't force the function address into a register.
1685         (expand_call, emit_library_call_value_1): Update callers.
1686         * builtins.c (expand_builtin_apply): Likewise.
1687         * expr.h (prepare_call_address): Update decl.
1688
1689 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
1690
1691         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
1692         config directory.
1693         * config/i386/chorus.h: Move up.
1694         * config/sparc/chorus.h: Likewise.
1695         * config/rs6000/chorus.h: Likewise.
1696         * config/chorus.h: Moved here.
1697
1698 2001-07-17  Andreas Schwab  <schwab@suse.de>
1699
1700        * configure.in  (assembler eh_frame optimization): Handle big
1701        endian.
1702        * configure: Regenerated.
1703
1704 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
1705
1706         * expr.c (epxand_expr): Convert divisions into multiplications by
1707         reciprocals if -ffast-math.
1708
1709 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1710
1711         * dbxout.c (dbxout_really_begin_function): Rename to
1712         dbxout_begin_function.
1713         (dbx_debug_hooks, xcoff_debug_hooks): Update.
1714         (dbxout_begin_function): Remove.
1715         (dbxout_function): Update.
1716         (dbxout_source_line): Update prototype.
1717         * dbxout.h (dbxout_begin_function): Remove.
1718         * debug.c (do_nothing_debug_hooks): Update.
1719         (debug_nothing_tree): Update.
1720         (debug_nothing_charstar_rtx): Remove.
1721         * debug.h (union tree_node): Declare.
1722         (struct rtx_def): Remove.
1723         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
1724         begin_function.  Change source_line prototype.
1725         (debug_nothing_tree): New.
1726         (debug_nothing_charstar_rtx): Delete.
1727         (dwarf2out_begin_prologue): Moved from ...
1728         * tree.h: ... here.
1729         * dwarf2out.c (dwarf2_debug_hooks): Update.
1730         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
1731         debug info, call dwarf2out_source_line.
1732         (dwarf2out_souce_line): Update prototype.
1733         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
1734         Change prototype, make static.
1735         (dwarfout_source_line): Update prototype.
1736         (dwarf_debug_hooks): Update.
1737         * dwarfout.h (dwarfout_begin_function): Remove.
1738         * final.c (final_start_function, final_scan_insn): Use appropriate
1739         debug hooks, update to use notice_source_line.
1740         (output_source_line): Rename notice_source_line.  Don't call the
1741         source_line debug hook.
1742         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
1743         make static, update prototype.
1744         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
1745         prototype.
1746         (sdbout_end_prologue): New.
1747         (sdbout_source_line): Update prototype.
1748         (sdbout_debug_hooks): Update.
1749         (sdbout_symbol): Remove unused var.
1750         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
1751         Delete.
1752         * varasm.c: Include debug.h.
1753         (assemble_start_function): Use begin_function debug_hook.
1754         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
1755         update with prototype.
1756         (xcoffout_source_line): Update prototype.
1757         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
1758         update prototype.
1759         (xcoffout_source_line): Update prototype.
1760
1761 2001-07-17  Richard Henderson  <rth@redhat.com>
1762
1763         * c-typeck.c (build_binary_op): Do not shorten unsigned
1764         right shift after sign extension.
1765
1766 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
1767
1768         * combine.c (combine_simplify_rtx): Attempt to simplify
1769         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
1770
1771         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
1772         (simplify_binary_operation, simplify_unary_operation,
1773          simplify_relational_operation): Use it.
1774
1775         * combine.c (combine_simplify_rtx): Don't do associative law
1776         on divisions; allow associative law on floats.
1777
1778 2001-07-17  H.J. Lu <hjl@gnu.org>
1779             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1780
1781         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
1782         ASM_OUTPUT_WEAK_ALIAS are defined.
1783         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
1784         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
1785         Moved ...
1786         * config/mips/iris5.h: ... here.
1787         (HANDLE_SYSV_PRAGMA): Defined as 1.
1788         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
1789         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
1790         symbol.
1791
1792 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
1793
1794         * c-parse.in (all_prefix_attributes): New variable.
1795         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
1796         (maybe_resetattrs): New production.
1797         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
1798         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
1799         notype_initdcl, nested_function, notype_nested_function,
1800         component_decl, components, components_notype,
1801         component_declarator, component_notype_declarator,
1802         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
1803         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
1804         after a comma being applied to more than one declarator.
1805         * doc/extend.texi (Attribute Syntax): Update.  Remove
1806         documentation of bugs that are no longer present.
1807
1808 2001-07-13  Eric Christopher  <echristo@redhat.com>
1809
1810         * config/mips/mips.h: Change TUNE_MIPS* options to use
1811         mips_tune.
1812         (EXTRA_SPECS): Add cc1_cpu_spec.
1813         * config/mips/mips.md (muldf3): Fix typo.
1814
1815 2001-07-16  Richard Henderson  <rth@redhat.com>
1816
1817         * config/m68k/m68k.c: Include expr.h and reload.h.
1818         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
1819         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
1820
1821 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
1822             Richard Henderson  <rth@redhat.com>
1823
1824         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
1825         (insn_live_p): Fix fall off end of function.
1826         (dead_libcall_p): Remove COUNTS argument; update callers.
1827         (delete_trivially_dead_insns): Remove unused variables.
1828
1829 2001-07-17  Andreas Jaeger  <aj@suse.de>
1830
1831         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
1832         x86-64 pic support.
1833
1834         * lcm.c (optimize_mode_switching): Avoid warning for unused
1835         variable if !NORMAL_MODE.
1836
1837         * flow.c (try_crossjump_to_edge): Remove unused variable.
1838
1839 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1840
1841         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
1842         atexit declaration in stdlib.h.
1843
1844 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
1845
1846         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
1847
1848 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
1849
1850         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
1851         * except.c (finish_eh_generation): Update call of cleanup_cfg;
1852         do rebuild_jump_labels instead of jump_optimize
1853         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
1854         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
1855         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
1856
1857         * flow.c: Include timevar.h
1858         (find_basic_block): Push/pop timevar;
1859         (cleanup_cfg): Likewise.
1860         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
1861         * Makefile: Add dependencies on timevar.h
1862
1863         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
1864         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
1865
1866         * rtl.h (delete_trivially_dead_insns): Add new parameter.
1867         * toplev.c (rest_of_compilation): Update calls.
1868         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
1869         (delete_trivially_dead_insns): ... here; accept new argument
1870         preserve_basic_blocks; preserve basic blocks if set.
1871
1872         * reg-stack.c (stack_regs_mentioned): Return 0 if
1873         stack_regs_mentioned_data is not initialized.
1874         (reg_to_stack): Make stack_regs_mentioned survive after the
1875         reg-stack is completted; do not call cleanup_cfg.
1876         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
1877         make cleanup_cfg after bb-reorder to output to debug file.
1878
1879 2001-07-16  Richard Henderson  <rth@redhat.com>
1880
1881         * regclass.c (init_reg_sets): Use only 32 bits per initializer
1882         from int_reg_class_contents.
1883
1884 2001-07-16  Richard Henderson  <rth@redhat.com>
1885
1886         * hard-reg-set.h (regs_invalidated_by_call): Declare.
1887         * regclass.c (regs_invalidated_by_call): Move from cse.c.
1888         (init_reg_sets_1): Move initialization from cse_main.
1889         * cse.c (regs_invalidated_by_call): Move to regclass.c.
1890         (cse_main): Move its initialization also.
1891         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
1892         * flow.c (propagate_one_insn): Likewise.
1893         * gcse.c (compute_hash_table): Likewise.
1894         (compute_kill_rd, compute_store_table): Likewise.
1895         * sched-deps.c (sched_analyze_1): Likewise.
1896
1897 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
1898
1899         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
1900         gen_rtx_SET.
1901
1902 2001-07-16  Steve Ellcey <sje@cup.hp.com>
1903
1904         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
1905         in if statement so we don't access undefined memory.
1906
1907 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
1908
1909         * gcse.c: Update comment at top.
1910         Update comment on mem handling.
1911         mem_last_set, mem_first_set, mem_set_in_block: gone.
1912         Declaration of reg_set_info: gone.
1913         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
1914         pointless with load_killed_in_block_p (they are *more*
1915         conservative then it, not less, and less accurate).
1916         (oprs_not_set_p): Ditto.
1917         (alloc_gcse_mem): Don't allocate mem_set_in_block
1918         (free_gcse_mem): Don't free it, either.
1919         (record_last_mem_set_info): Update comment in front, remove
1920         mem_*set_* stuff. Note the reason we don't handle stores directly
1921         here.
1922         (compute_hash_table): Update comments to reflect reality. Remove
1923         mem_*set_* references.
1924         (reset_opr_set_tables): Remove mem_*set_* references.
1925         (mark_call): Ditto.
1926         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
1927         (mark_clobber): Ditto (on both parts, we double set here too).
1928         (expr_killed_p): Remove mem_set_in_block test.
1929         (compute_transp): Remove mem_set_in_block test.
1930
1931         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
1932         of edge, and removal of phi alternative to dump file.
1933         (ssa_ccp_substitute_constants): Add note about register now being
1934         constant, and which uses were replaced in what insns to dump file.
1935
1936 2001-07-16  Andreas Jaeger  <aj@suse.de>
1937
1938         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
1939         variables of type HOST_WIDEST_INT.
1940
1941         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
1942         (__bb_exit_func): Correct type of count_max to avoid overflow.
1943         (num_digits): Handle long long argument.
1944
1945         * combine.c (gen_lowpart_for_combine): Remove unused variable.
1946
1947 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1948
1949         * output.h (sdb_begin_function_line): Restore as an extern
1950         variable.
1951         * sdbout.c (sdb_begin_function_line): Make extern.
1952
1953 2001-07-15  Richard Henderson  <rth@redhat.com>
1954
1955         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
1956         * genrecog.c (maybe_both_true_mode): New.
1957         (maybe_both_true_2): Use it.
1958         (write_switch): Don't put Pmode in a switch.
1959         * rtl.c (mode arrays): Don't explicitly size them.
1960
1961 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
1962
1963         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
1964         handling; move unconditional splitting before mode switching.
1965
1966         * i386.md (type): Add fistp type.
1967         (i387, length_attr, scheduling definitions): Handle this type.
1968         (fix_trunc?f?i2): Revamp to use mode switching.
1969         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
1970         * i386.h (fp_cw_mode): New enum
1971         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
1972         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
1973
1974 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1975
1976         * Makefile.in (integrate.o): Add debug.h.
1977         * integrate.c (debug.h): Add.
1978         (output_inline_function): Save, reset, and restore debug_hooks.
1979
1980 2001-07-15  Richard Henderson  <rth@redhat.com>
1981
1982         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
1983         instead of COMPARE for the EQUIV expression.
1984
1985 2001-07-15  Richard Henderson  <rth@redhat.com>
1986
1987         * flow.c (redirect_edge_and_branch_force): Initialize
1988         global_live_at_start and global_live_at_end.
1989         (allocate_bb_life_data): Export.
1990         * basic-block.h (allocate_bb_life_data): Declare.
1991         * toplev.c (rest_of_compilation): Call it.
1992
1993 2001-07-15  Richard Henderson  <rth@redhat.com>
1994
1995         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
1996         (alpha_tablejump_best_label): New.
1997         * config/alpha/alpha-protos.h: Declare them.
1998         * config/alpha/alpha.md: Use braced strings for code blocks.
1999         (tablejump_osf): Break out add with r29.
2000         (tablejump_osf_internal): Remove.
2001         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
2002         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
2003
2004 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
2005
2006         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
2007         of the movable.
2008
2009         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
2010
2011         * i386-protos.h (ix86_split_fp_branch): Update prototype.
2012         (ix86_fp_jump_nontrivial_p): New.
2013         * i386.md (fp_jcc_?): Update call of split_fp_branch;
2014         use ix86_fp_jump_nontrivial_p.
2015         * i386.c (ix86_fp_jump_nontrivial_p): New.
2016         (ix86_split_fp_branch): Accept code instead of rtx.
2017         (ix86_expand_compare): Expand comparison early in case
2018         doing so is resonably cheap.
2019
2020 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
2021
2022         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
2023         not 'machine'.
2024         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
2025         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
2026
2027 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2028
2029         * dbxout.c (dbxout_source_line): Make static, update prototype.
2030         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
2031         (dbxout_init, dbxout_finish, dbxout_source_line,
2032         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
2033         * dbxout.h (dbxout_source_line): Delete.
2034         * debug.c (debug_nothing_file, debug_nothing_file_int,
2035         debug_nothing_file_charstar_rtx): New.
2036         (do_nothing_debug_hooks): Update.
2037         (debug_nothing_void, debug_nothing_charstar_rtx,
2038         dwarf2out_end_epilogue): New.
2039         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2040         * debug.h (struct rtx_def): Declare.
2041         (gcc_debug_hooks): New hooks source_line, end_epilogue
2042         and end_function.
2043         (debug_nothing_void, debug_nothing_charstar_rtx,
2044         dwarf2out_end_epilogue): New.
2045         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2046         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
2047         (dwarf2_debug_hooks): Update.
2048         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
2049         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
2050         * dwarf2out.h (dwarf2out_source_line): Remove.
2051         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
2052         Make static, update prototype.
2053         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
2054         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
2055         (dwarf_debug_hooks): Update.
2056         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
2057         dwarfout_end_function): Remove.
2058         * final.c (profile_function): Use debug hooks for ending functions
2059         and epilogues.
2060         (output_source_line, final_end_function): Update prototype,
2061         use debug hooks.
2062         (final_start_function, final_scan_insn): Update.
2063         * output.h (sdb_begin_function_line): Remove.
2064         (final_end_function): Update prototype.
2065         * sdbout.c (sdb_begin_function_line): Make static.
2066         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
2067         (sdbout_source_line): New.
2068         (sdbout_end_epilogue, sdbout_end_function): Make static, update
2069         prototypes.
2070         (sdb_debug_hooks): Update.
2071         (sdbout_init, sdbout_source_line,
2072         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
2073         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
2074         * toplev.c (compile_file, rest_of_compilation): Update.
2075         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
2076         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
2077         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
2078         Update for prototype changes.
2079         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
2080         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
2081
2082 2001-07-15  Richard Henderson  <rth@redhat.com>
2083
2084         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
2085         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
2086         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
2087         * config/alpha/alpha.c: Likewise.
2088         * config/alpha/alpha.md: Likewise.
2089         * config/alpha/alpha32.h: Likewise.
2090         * config/alpha/vms.h: Likewise.
2091         (OPEN_VMS): Remove.
2092
2093 2001-07-14  Richard Henderson  <rth@redhat.com>
2094
2095         * config/alpha/alpha.md: Use define_constants for unspec values.
2096         Substitute throughout.
2097
2098 2001-07-14  Tim Josling  <tej@melbpc.org.au>
2099
2100         * tree.def (EXPON_EXPR) remove. Never supported anyway.
2101
2102 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2103
2104         * pa.md: Remove unused constraints from define_split's.
2105
2106 2001-04-14  Richard Henderson  <rth@redhat.com>
2107
2108         * ifcvt.c (find_cond_trap): Test for exit block.
2109
2110 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
2111
2112         Re-install recently reverted patch.
2113         * emit-rtl.c (try_split): Update mark_jump_label call.
2114         * flow.c (find_sub_basic_blocks): Likewise.
2115         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2116         jump_back_p): Kill.
2117         (mark_all_labels): Kill second parameter.
2118         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2119         (rebuild_jump_labels, jump_optimize_minimal): Update call
2120         of jump_optimize_1.
2121         (jump_optimize_1): Kill crossjumping code.
2122         (mark_jump_label): Kill cross_jump parameter.
2123         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2124         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2125         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2126          splitting.
2127         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2128         DFI_bpro.
2129         (dump_file_info): Likewise.
2130         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2131         reorganize passes to do reg-stack first, bb-reorder second.
2132         * invoke.texi (-d letters doc): Remove the jump2 pass.
2133
2134 2001-07-14  Richard Henderson  <rth@redhat.com>
2135
2136         * ifcvt.c (find_cond_trap): New.
2137         (find_if_header): Call it.
2138         (merge_if_block): Relax existing jump sanity check.
2139         * jump.c (jump_optimize_1): Remove conditional trap handling.
2140
2141 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
2142
2143         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
2144         millicode.
2145         (insn_refs_are_delayed): Correct comment.
2146         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
2147         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
2148         instead of r31.  Make associated insn !TARGET_64BIT, and
2149         provide an additional 64-bit insn that clobbers r2.
2150         (divsi3): Likewise.
2151         (udivsi3): Likewise.
2152         (modsi3): Likewise.
2153         (umodsi3): Likewise.
2154
2155 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
2156
2157         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
2158
2159         * flow.c (redirect_edge_and_branch_force, split_edge,
2160         try_crossjump_to_edge): Use set_block_for_new_insns.
2161         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
2162
2163 2001-07-13  H.J. Lu  (hjl@gnu.org)
2164
2165         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
2166         the correct patch.
2167
2168 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
2169
2170         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
2171
2172 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2173
2174         * c-common.c (decl_attributes): Take a pointer to the node to
2175         which attributes are to be attached, and a flags argument.
2176         * c-common.h (enum attribute_flags): New.
2177         (decl_attributes): Update prototype.
2178         * c-decl.c (start_decl, push_parm_decl, finish_struct,
2179         finish_enum, start_function): Update calls to decl_attributes.
2180         * c-parse.in (component_declarator, component_notype_declarator,
2181         label): Update calls to decl_attributes.
2182
2183 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
2184
2185         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
2186         * config/avr/avr.c (legitimate_address_p): Return value changed
2187         from letter to register classes. For better debugging.
2188
2189 2001-07-13  Kazu Hirata  <kazu@hxi.com>
2190
2191         * jump.c (reversed_comparison_code_parts): Fix comment typos.
2192
2193 2001-07-13  H.J. Lu  (hjl@gnu.org)
2194
2195         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
2196
2197 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
2198
2199         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
2200         correctly for shared configurations.
2201         * config/t-libgcc-pic:  New.
2202         * config/{i386,m68k,sparc}/t-openbsd:  New.
2203         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
2204         Support -shared.  Support debugging libraries with -g.
2205         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
2206         frame information does not emit pointer diffs.
2207         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
2208         emit pointer diffs.
2209
2210 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
2211
2212         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
2213
2214 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
2215
2216         * combine.c (try_combine): Ensure const_int pow2 is positive.
2217
2218 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
2219
2220         * config.gcc: Add configuration for s/390.
2221         * config/s390/s390.c: New. Subroutines for code generation.
2222         * config/s390/s390.h: New. Definitions for s/390.
2223         * config/s390/s390-protos.h: New. Prototypes.
2224         * config/s390/linux.h: New. Definitions for linux for s/390.
2225         * config/s390/linux64.h: New. Definitions for linux for zSeries.
2226         * config/s390/t-linux: New. Makefile fragment.
2227         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
2228         * config/s390/fixdfdi.h: New. Fix L_fix*di.
2229
2230 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
2231
2232         * emit-rtl.c (try_split): Update mark_jump_label call.
2233         * flow.c (find_sub_basic_blocks): Likewise.
2234         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2235         jump_back_p): Kill.
2236         (mark_all_labels): Kill second parameter.
2237         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2238         (rebuild_jump_labels, jump_optimize_minimal): Update call
2239         of jump_optimize_1.
2240         (jump_optimize_1): Kill crossjumping code.
2241         (mark_jump_label): Kill cross_jump parameter.
2242         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2243         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2244         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2245          splitting.
2246         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2247         DFI_bpro.
2248         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2249         reorganize passes to do reg-stack first, bb-reorder second.
2250         * invoke.texi (-d letters doc): Remove the jump2 pass.
2251
2252 2001-07-12  Steve Ellcey <sje@cup.hp.com>
2253
2254         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
2255
2256 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2257
2258         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
2259         basic blocks.
2260         (verify_flow_info): Make diagnostics prettier.
2261
2262 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
2263
2264         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
2265
2266         * flow.c (outgoing_edges_match): Return early if condition reversal
2267         failed.
2268
2269 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
2270
2271         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
2272         (mips_move_2words): When splitting a move into two instructions,
2273         prefix the second address operand with '%D'.
2274
2275 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2276
2277         * Makefile.in (final.o): Depend on debug.h.
2278         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
2279         (dbx_debug_hooks): Add new hooks.
2280         (xcoff_debug_hooks): New.
2281         * debug.c (debug_nothing_file_int_int): New.
2282         (do_nothing_debug_hooks): Update.
2283         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
2284         (debug_nothing_file_int_int): New.
2285         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
2286         static, update prototype.
2287         (dwarf2_debug_hooks): Update.
2288         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
2289         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
2290         static, update prototype.
2291         (dwarf_debug_hooks): Update.
2292         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
2293         * final.c: Include debug.h.
2294         (final_scan_insn): Use debug hooks when beginning and ending blocks.
2295         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
2296         static, update prototype.
2297         (sdb_debug_hooks): Update.
2298         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
2299         * toplev.c: Distinguish between xcoff and dbx.
2300
2301         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
2302         Call all debug hooks, not just dwarf ones.
2303
2304 2001-07-11  Timothy Wall  <twall@redhat.com>
2305
2306         * config.gcc: Add configuration for AIX5/IA64.
2307         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
2308         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
2309         support prefix/suffix code.
2310         * config/ia64/t-aix: New.  Makefile fragment.
2311         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
2312
2313 2001-07-11  Kazu Hirata  <kazu@hxi.com>
2314
2315         * recog.c (validate_change): Fix a comment typo.
2316
2317 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2318
2319         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
2320         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
2321         hooks directly.
2322         * dbxout.c (dbx_debug_hooks): Add new hooks.
2323         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
2324         make static.
2325         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
2326         make static.
2327         * dbxout.h (dbxout_start_new_source_file,
2328         dbxout_resume_previous_source_file): Delete.
2329         * debug.c (do_nothing_debug_hooks): Add new hooks.
2330         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
2331         (debug_nothing_int_charstar, debug_nothing_int): New.
2332         * debug.h (gcc_debug_hooks): New hooks define, undef,
2333         start_source_file and end_source_file.
2334         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
2335         (debug_nothing_int_charstar, debug_nothing_int): New.
2336         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
2337         the conditionally compiled section.
2338         (dwarf2out_start_source_file, dwarf2out_end_source_file,
2339         dwarf2out_define, dwarf2out_undef): Make static.
2340         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
2341         dwarf2out_define, dwarf2out_undef): Remove.
2342         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
2343         (dwarfout_start_source_file, dwarfout_end_source_file,
2344         dwarfout_define, dwarfout_undef): Make static.
2345         (dwarfout_start_source_file_check,
2346         dwarfout_end_source_file_check): New.
2347         (dwarfout_define, dwarfout_finish): Update.
2348         * dwarfout.h (dwarfout_start_new_source_file,
2349         dwarfout_resume_previous_source_file, dwarfout_define,
2350         dwarfout_undef): Remove.
2351         * sdbout.c (sdb_debug_hooks): Add new hooks.
2352         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
2353         make static.
2354         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
2355         make static, take an arg.
2356         * sdbout.h (sdbout_start_new_source_file,
2357         sdbout_resume_previous_source_file): Delete.
2358         * toplev.c (debug_start_source_file, debug_end_source_file,
2359         debug_define, debug_undef): Delete.
2360         * toplev.h (debug_start_source_file, debug_end_source_file,
2361         debug_define, debug_undef): Delete.
2362
2363         * java/jcf-parse.c: Include debug.h.
2364         (parse_class_file): Update to use debug hooks directly.
2365         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
2366
2367 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2368
2369         * alias.c (set_mem_alias_set): New function.
2370         * rtl.h (set_mem_alias_set): Declare it.
2371         * builtins.c (expand_builtin_return_addr): Call it instead of
2372         using MEM_ALIAS_SET accessor.
2373         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
2374         (get_memory_rtx, expand_builtin_va_arg): Likewise.
2375         (expand_builtin_va_copy):Likewise.
2376         * caller-save.c (setup_save_areas): Likewise.
2377         * calls.c (compute_argument_addresses): Likewise.
2378         * explow.c (set_mem_attributes): Likewise.
2379         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
2380         (expand_assignment, store_constructor_field, store_field): Likewise.
2381         (expand_expr_unaligned): Likewise.
2382         * function.c (assign_stack_temp_for_type): Likewise.
2383         (put_reg_into_stack, gen_mem_addressof): Likewise.
2384         * ifcvt.c (noce_try_cmove_arith): Likewise.
2385         * reload1.c (reload, alter_reg): Likewise.
2386         * config/alpha/alpha.c (get_aligned_mem): Likewise.
2387         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
2388         (alpha_expand_unaligned_store): Likewise
2389         (alpha_expand_unaligned_load_words): Likewise.
2390         (alpha_expand_unaligned_store_words): Likewise.
2391         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
2392         (alpha_expand_epilogue): Likewise.
2393         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
2394         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
2395         * config/i386/i386.c (legitimize_pic_address): Likewise.
2396         * config/i960/i960.c (setup_incoming_varargs): Likewise.
2397         * config/ia64/ia64.c (spill_restore_mem): Likewise.
2398         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2399         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
2400         * config/mips/mips.c (mips_va_arg): Likewise.
2401         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
2402         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2403         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2404         (setup_incoming_varargs, rs6000_va_arg): Likewise.
2405         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
2406         (rs6000_emit_epilogue): Likewise.
2407         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
2408         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2409         * config/v850/v850.c (v850_va_arg): Likewise.
2410
2411 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
2412
2413         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
2414         when fallthru edge is present.
2415         (mege_blocks): Handle case where creation of jump insn
2416         is required.
2417
2418         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
2419         CLEANUP_POST_REGSTACK): New constants.
2420         * except.c (finish_eh_generation): Update call of cleanup_cfg,
2421         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
2422         * output.h (cleanup_cfg): Update prototype.
2423         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
2424         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
2425         cleanup_cfg call; kill missleading comment.
2426         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
2427         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
2428         parameter; control optimizations performed using it.
2429         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
2430         try_crossjump_bb): New functions.
2431
2432 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2433
2434         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
2435         extern.
2436         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
2437         pa_output_function_prologue.
2438         * pa-protos.h (pa_output_function_prologue): New prototype.
2439
2440 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2441
2442         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
2443         and low to get correct sign extension in low+high test.
2444
2445 2001-07-11  Janis Johnson <janis@us.ibm.com>
2446
2447         * gcov.c (arcdata): Use gcov_type to fix branch percentage
2448         for large hit count.
2449
2450         * profile.c (branch_prob): Fix .bbg info for computed gotos
2451         and C++ EH code.
2452
2453 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
2454
2455         * stmt.c (parse_output_constraint): New function, split out
2456         from ...
2457         (expand_asm_operands): ... here.  Use parse_output_constraint.
2458         * tree.h (parse_output_constraint): Declare it.
2459
2460 2001-07-11  Richard Henderson  <rth@redhat.com>
2461
2462         * bitmap.c: Comment some functions; fiddle whitespace.
2463         (bitmap_free): Don't export.
2464         (bitmap_element_allocate): Use memset.
2465         * bitmap.h (bitmap_free): Don't declare.
2466
2467 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
2468
2469         * gcse.c, lcm.c, sched-deps.c:
2470         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
2471
2472         * flow.c (flow_loops_find): Free dom if we found no loops, since
2473         we aren't going to save it.
2474
2475         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
2476         done.
2477
2478 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
2479
2480         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
2481
2482 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2483
2484         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
2485         #ifndef DWARF2_DEBUGGING_INFO.
2486
2487 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
2488
2489         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
2490
2491 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
2492
2493         * config/mips/mips.c (gen_int_relational): Tell the caller not to
2494         reverse a branch if a NE comparison is implemented with GTU.
2495
2496 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
2497             H.J. Lu  <hjl@gnu.org>
2498
2499         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
2500         constant addresses.
2501         (call_internal2): Likewise.
2502         (call_value_internal1): Likewise.
2503         (call_value_internal2): Likewise.
2504         (call_value_multiple_internal1): Likewise.
2505         (call_value_multiple_internal2): Likewise.
2506
2507 2001-07-10  Kazu Hirata  <kazu@hxi.com>
2508
2509         * calls.c (emit_library_call_value_1): Fix a comment typo.
2510         * dwarf2out.c (mem_loc_descriptor): Likewise.
2511         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
2512
2513 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
2514
2515         * simplify-rtx.c (simplify_subreg): Fix typo in comment
2516
2517 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2518
2519         * recog.c (offsettable_address_p): Handle LO_SUM case.
2520         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
2521         instead of plus_constant.
2522
2523 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2524
2525         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
2526         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
2527
2528 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2529
2530         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
2531         adjust_address_nv instead of plus_constant.
2532
2533 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2534
2535         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
2536         dwarf2out.o): Depend on debug.h, wrap long lines.
2537         * dbxout.c: Include debug.h.
2538         (dbx_debug_hooks): New.
2539         (dbxout_init): Make static, take just 2 args.
2540         (dbxout_finish): Make static.
2541         * dbxout.h (dbxout_init, dbxout_finish): Delete.
2542         * debug.c: New file.
2543         * debug.h: New file.
2544         * dwarf2out.c: Include debug.h.
2545         (dwarf2_debug_hooks): New.
2546         (dwarf2out_init): Make static.
2547         (dwarf2out_finish): Make static, take 2 args.
2548         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
2549         * dwarfout.c: Include debug.h.
2550         (dwarf_debug_hooks): New.
2551         (dwarfout_init): Make static.
2552         (dwarfout_finish): Make static, take 2 args.
2553         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
2554         * sdbout.c: Include debug.h.
2555         (sdb_debug_hooks): New.
2556         (sdbout_init): Make static, take 2 args.
2557         * sdbout.h (sdbout_init): Delete.
2558         * toplev.c: Include debug.h.
2559         (debug_hooks): New.
2560         (compile_file): Set deubg_hooks based on command line options.
2561         Use the hooks unconditionally rather than conditional compilation.
2562
2563 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
2564
2565         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
2566         first_insn_after_basic_block_note instead.
2567
2568         * df.c (df_bb_refs_unlink): #if 0 out for now.
2569
2570 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
2571
2572         * ssa.h: Add prototype for ssa_const_prop
2573         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
2574         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
2575         (ssa_fast_dce): Remove unused variable
2576
2577 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2578
2579         * diagnostic.c (finish_diagnostic): Rename to
2580         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
2581         calls thourghout.
2582
2583 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
2584
2585         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
2586         .loc support.
2587
2588         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
2589         (dump_file): Only pad the demangled name with spaces if the
2590         mangled name was padded with spaces.
2591
2592 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
2593
2594         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
2595         edge detection.
2596
2597 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2598
2599         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
2600         extraction if no direct load if either EXPAND_CONST_ADDRESS or
2601         EXPAND_INITIALIZER.
2602
2603         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
2604         whether can put offset inside LO_SUM to check mode alignment, not size.
2605
2606 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
2607
2608         * doc/tm.texi (Misc): Fix thinko.
2609
2610 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
2611
2612         * regmove.c (replace_in_call_usage): Fix warnings.
2613         * sched-deps.c (add_dependence): Fix warnings.
2614         * simplify-rtx.c (simplify_subreg): Likewise.
2615         Return NULL_RTX instead of NULL.
2616
2617         * reg-stack.c (emit_swap_insn): Eliminate warnings.
2618         (subst_asm_stack_regs): Likewise.
2619
2620         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
2621         warnings.
2622
2623         * dwarf2out.c (output_call_frame_info): Declare i as int.
2624         (build_abbrev_table): Declare n_alloc as int.
2625         (dwarf2out_finish): Initialize die.
2626         * except.c: Declare sjlj_funcdef_number as unsigned.
2627         (connect_post_landing_pads): Declare j as unsigned.
2628         (convert_to_eh_region_ranges): Initialize call_site.
2629         (output_function_exception_table): Initialize tt_format_size.
2630         * expr.c (move_by_pieces_1): Initialize to1.
2631         (store_constructor): Initialize minelt and maxelt.
2632         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
2633         * function.c (instantiate_decls): Avoid signed/unsigned warning.
2634
2635         * c-decl.c (combine_parm_decls): Unused, remove.
2636         * c-tree.h: Remove prototype for combine_parm_decls.
2637
2638         * reload.c (push_reload): Fix warning.
2639         (regno_clobbered_p): Likewise.
2640         * reload1.c (replace_pseudos_in_call_usage): Likewise.
2641         (reload_combine): Likewise.
2642
2643         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
2644         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
2645         warnings.
2646         * bitmap.c (bitmap_operation): Change user.
2647         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2648
2649 2001-07-10  Eric Christopher  <echristo@redhat.com>
2650
2651         * config/mips/mips.c (override_options): Fix typo.
2652
2653 2001-07-09  Stan Shebs  <shebs@apple.com>
2654
2655         * target.h (struct gcc_target): New fields init_builtins and
2656         expand_builtin.
2657         * target-def.h (TARGET_INIT_BUILTINS): New macro.
2658         (TARGET_EXPAND_BUILTIN): New macro.
2659         (TARGET_INITIALIZER): Add them.
2660         * builtins.c: Include target.h.
2661         (expand_builtin): Use targetm.expand_builtin.
2662         (default_init_builtins): New function.
2663         (default_expand_builtin): New function.
2664         * expr.h (default_init_builtins): Declare.
2665         (default_expand_builtin): Declare.
2666         * c-common.c (c_common_nodes_and_builtins): Use
2667         targetm.init_builtins.
2668         * defaults.h (MD_INIT_BUILTINS): Remove.
2669         * Makefile.in (builtins.o): Depend on target.h.
2670
2671         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
2672         (TARGET_EXPAND_BUILTIN): Define.
2673         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
2674         (MD_EXPAND_BUILTIN): Remove.
2675
2676         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
2677         (TARGET_EXPAND_BUILTIN): Define.
2678         (c4x_init_builtins): Make endlink arg a local.
2679         (c4x_print_operand): Fix typos in adjust_address usages.
2680         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
2681         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
2682         (MD_EXPAND_BUILTIN): Remove.
2683
2684         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
2685         (TARGET_EXPAND_BUILTIN): Define.
2686         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
2687         (ix86_init_builtins): Call new function only if TARGET_MMX.
2688         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
2689         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
2690         (MD_EXPAND_BUILTIN): Remove.
2691
2692         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
2693         (TARGET_EXPAND_BUILTIN): Define.
2694         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
2695         (MD_EXPAND_BUILTIN): Remove.
2696
2697         * doc/tm.texi: Document these changes.
2698
2699 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
2700
2701         * basic-block.h (tree_node): Forward declare if needed.
2702         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
2703         (BLOCK_HEAD_TREE): Define.
2704         (BLOCK_END_TREE): Define.
2705         (struct loops): Rename field 'tree' to 'tree_root'.
2706         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
2707         'end_tree'.
2708         (flow_loops_tree_build): Rename reference to field 'tree' to
2709         'tree_root'.
2710         (flow_loops_level_compute): Ditto.
2711         * predict.c (estimate_bb_frequencies): Ditto.
2712         * tree.h (struct tree_common): Add field 'aux'.
2713
2714 2001-07-09  Stan Shebs  <shebs@apple.com>
2715
2716         * config/darwin.c (darwin_encode_section_info): Don't mark any
2717         DECL_EXTERNAL node as defined.
2718
2719 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2720
2721         * pa.c (pa_init_machine_status, pa_mark_machine_status,
2722         pa_free_machine_status, hppa_init_pic_save): Delete.
2723         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
2724         (hppa_profile_hook): Use hppa_pic_save_rtx.
2725         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
2726         hppa_init_pic_save): Delete.
2727         (hppa_pic_save_rtx): Declare.
2728         * pa.md (call, call_value, sibcall, sibcall_value,
2729         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
2730
2731 2001-07-09  Kazu Hirata  <kazu@hxi.com>
2732
2733         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
2734         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
2735
2736 2001-07-09  Andreas Jaeger  <aj@suse.de>
2737
2738         * output.h: Add declaration of final_forward_branch_p.
2739
2740         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
2741
2742         * varray.c: Include errors.h for internal_error and trim_filename
2743         declarations.
2744
2745         * Makefile.in (varray.o): Add errors.h.
2746
2747 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
2748
2749         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
2750         * optabs.c (have_add2_insn): Check whether the add insn chosen
2751         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
2752         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
2753
2754 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
2755
2756         * Makefile.in (OBJS): Add ssa-ccp.o
2757         (ssa-ccp.o): Add dependencies.
2758         * toplev.c (DFI_ssa_ccp): New dump file enum.
2759         (dump_file): Add entry for dumping after SSA CCP.
2760         (flag_ssa_ccp): New flag variable.
2761         (f_options): Add -fssa-ccp.
2762         (rest_of_compilation): Run SSA CCP if requested.
2763         * timevar.def (TV_SSA_CCP): New timevar.
2764         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
2765         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
2766         Fix minor typo in SSA DCE documentation.
2767         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
2768         Add documentation for new dump option.  Renumber dump files
2769         appropriately.
2770
2771 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
2772
2773         * emit-rtl.c (gen_highpart_mode): New.
2774         * rtl.h (gen_highpart_mode): Declare.
2775         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
2776         operand can be VOIDmode constant.
2777
2778 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2779
2780         * flow.c (redirect_edge_and_branch_force): New.
2781         (can_fallthru): Ensure that basic blocks are succeeding.
2782         (try_optimize_cfg): Do not delete basic block if it is the last one.
2783
2784         * flow.c (try_redirect_by_replacing_jump): Do not remove
2785         jumps with side effects, unlink chain on fallthru edge;
2786         set block for new jump instruction; avoid basic block to
2787         over by line number note.
2788
2789         * flow.c (try_simplify_condjump): Verify that the condjump
2790         is not always falling trought.
2791
2792         Re-install patch:
2793         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
2794
2795         * flow.c (forwarder_block_p): Fix for fallthru blocks.
2796         (try_redirect_by_replacing_jump): Update properly the count
2797         and frequency information.
2798
2799 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2800
2801         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
2802         address that is a LO_SUM specially.
2803         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
2804
2805         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
2806
2807         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
2808         (operand_subword): Use them.
2809         (change_address_1): Renamed from change_address; new arg VALIDATE.
2810         * expr.h: Reflect above changes; change_address now macro.
2811         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
2812         making MEM.
2813         * cselib.c (add_mem_for_addr): Likewise.
2814         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
2815         * regmove.c (try_apply_stack_adjustment): Likewise.
2816         * reload.c (push_reload, make_memloc): Likewise.
2817         * reload1.c (eliminate_regs): Likewise.
2818         * simplify-rtx.c (simplify_replace_rtx): Likewise.
2819         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
2820         adjust_addess.
2821         * combine.c (make_extraction, simplify_shift_const): Likewise.
2822         (gen_lowpart_for_combine): Likewise.
2823         * cse.c (gen_lowpart_if_possible): Likewise.
2824         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
2825         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
2826         * optabs.c (gen_move_insn): Likewise.
2827         * reload1.c (alter_reg): Likewise.
2828         * simplify-rtx.c (simplify_subreg): Likewise.
2829         * stmt.c (expand_anon_union_decl): Likewise.
2830         * recog.c (validate_replace_rtx_1): Likewise.
2831         (expr.h): Include.
2832         * Makefile.in (recog.o): Add $(EXPR_H).
2833         * explow.c (stabilize): Call replace_equiv_address.
2834         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2835         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
2836
2837 2001-07-03  Andrew Haley  <aph@redhat.com>
2838
2839         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
2840         the mode of the memory location.
2841
2842 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
2843
2844         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
2845
2846 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2847
2848         * final.c (output_addr_const): Use target opening and
2849         closing parentheses.
2850         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
2851         defaults, add to TARGET_ASM_OUT.
2852         * target.h (struct gcc_target): Add open_paren and close_paren.
2853         * doc/md.texi: Update.
2854         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
2855         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
2856         TARGET_ASM_CLOSE_PAREN.
2857         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
2858         Override.
2859         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
2860         Override.
2861         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
2862         * config/a29k/a29k.h: Similarly.
2863         * config/alpha/alpha.h: Similarly.
2864         * config/arc/arc.h: Similarly.
2865         * config/arm/aof.h: Similarly.
2866         * config/arm/aout.h: Similarly.
2867         * config/avr/avr.h: Similarly.
2868         * config/c4x/c4x.h: Similarly.
2869         * config/clipper/clipper.h: Similarly.
2870         * config/convex/convex.h: Similarly.
2871         * config/d30v/d30v.h: Similarly.
2872         * config/dsp16xx/dsp16xx.h: Similarly.
2873         * config/elxsi/elxsi.h: Similarly.
2874         * config/fr30/fr30.h: Similarly.
2875         * config/h8300/h8300.h: Similarly.
2876         * config/i370/i370.h: Similarly.
2877         * config/i386/i386.h: Similarly.
2878         * config/i860/i860.h: Similarly.
2879         * config/i960/i960.h: Similarly.
2880         * config/ia64/ia64.h: Similarly.
2881         * config/m32r/m32r.h: Similarly.
2882         * config/m68hc11/m68hc11.h: Similarly.
2883         * config/m68k/m68k.h: Similarly.
2884         * config/m88k/m88k.h: Similarly.
2885         * config/mcore/mcore.h: Similarly.
2886         * config/mips/mips.h: Similarly.
2887         * config/mn10200/mn10200.h: Similarly.
2888         * config/mn10300/mn10300.h: Similarly.
2889         * config/ns32k/ns32k.h: Similarly.
2890         * config/pa/pa.h: Similarly.
2891         * config/pdp11/pdp11.h: Similarly.
2892         * config/pj/pj.h: Similarly.
2893         * config/romp/romp.h: Similarly.
2894         * config/rs6000/rs6000.h: Similarly.
2895         * config/sh/sh.h: Similarly.
2896         * config/sparc/sparc.h: Similarly.
2897         * config/v850/v850.h: Similarly.
2898         * config/vax/vax.h: Similarly.
2899         * config/we32k/we32k.h: Similarly.
2900
2901 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
2902
2903         * doc/c-tree.texi: Document representation of attributes.
2904
2905 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2906
2907         * doc/tm.texi: Update some places for the rename of target to
2908         targetm.  Fix typo.
2909
2910 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2911
2912         * target.h (struct gcc_target): Add insert_attributes.
2913         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
2914         (TARGET_INITIALIZER): Update.
2915         * tree.c, tree.h (default_insert_attributes): New function.
2916         Update comments on other default functions to refer to targetm,
2917         not target.
2918         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
2919         TARGET_INSERT_ATTRIBUTES.
2920         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
2921         * c-common.c (decl_attributes): Use targetm.insert_attributes.
2922         Don't use PRAGMA_INSERT_ATTRIBUTES.
2923         * Makefile.in (c-common.o): Depend on $(TARGET_H).
2924         * c-decl.c (start_decl, start_function): Don't call
2925         SET_DEFAULT_DECL_ATTRIBUTES.
2926         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
2927         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
2928         declare.
2929         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
2930         (c4x_check_attribute): Avoid modifying attribute list itself.
2931         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
2932         Make static.
2933         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
2934         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
2935         declare.
2936         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
2937         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
2938         Make static.
2939         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
2940         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
2941         declare.
2942         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
2943         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
2944         Adjust parameters.  Make static.
2945
2946 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
2947
2948         * c-common.c (decl_attributes): Only take a single attributes
2949         parameter.
2950         * c-common.h (decl_attributes): Update prototype.
2951         * c-decl.c (start_decl, start_function): Only take a single
2952         attributes parameter.  Update calls to decl_attributes.
2953         (finish_struct, finish_enum): Update calls to decl_attributes.
2954         (push_parm_decl): Expect unified list of attributes.  Update call
2955         to decl_attributes.
2956         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
2957         notype_nested_function, component_declarator,
2958         component_notype_declarator, label): Update calls to
2959         decl_attributes.
2960         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
2961         lists that are passed to push_parm_decl.
2962         * c-tree.h (start_function, start_decl): Update prototypes.
2963         * config/sh/sh-protos.h, config/sh/sh.c
2964         (sh_pragma_insert_attributes): Only take a single attributes
2965         parameter.
2966         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
2967         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
2968         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
2969         build_module_descriptor, generate_static_references,
2970         generate_strings, build_selector_translation_table,
2971         generate_descriptor_table, generate_protocols,
2972         generate_ivars_list, generate_dispatch_table,
2973         generate_protocol_list, generate_category,
2974         generate_shared_structures, really_start_method, add_objc_decls,
2975         generate_classref_translation_entry): Update calls to start_decl
2976         and start_function.
2977         (build_tmp_function_decl, start_method_def): Unify attribute lists
2978         that are passed to push_parm_decl.
2979
2980 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2981
2982         * final.c (no_asm_to_stream): New.
2983         (final_scan_insn): Use target structures for prologue ends
2984         and epilogue starts.
2985         * output.h (no_asm_to_stream): New.
2986         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
2987         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
2988         (TARGET_ASM_OUT): Update.
2989         * target.h (struct gcc_target): New members function_end_prologue
2990         and function_begin_epilogue.
2991         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
2992         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
2993         * config/alpha/alpha.c (output_end_prologue): Rename to
2994         alpha_output_function_end_prologue.  Use in target struct
2995         and make static.
2996         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
2997         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
2998         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
2999         ia64_output_function_end_prologue.  Use in target struct
3000         and make static.
3001         (ia64_function_prologue, ia64_funciton_epilogue): Rename
3002         mistyped prototypes.
3003         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
3004         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
3005         Delete.
3006         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
3007         an use in target struct, make static.
3008         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
3009         Delete.
3010
3011 2001-07-08  Richard Henderson  <rth@redhat.com>
3012
3013         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
3014
3015 2001-07-08  Richard Henderson  <rth@redhat.com>
3016
3017         * config/i386/i386.md: Remove constraints strings from define_split
3018         and define_peephole2 patterns.
3019         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
3020         (eh_return): Use them.
3021
3022 2001-07-08  Richard Henderson  <rth@redhat.com>
3023
3024         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
3025         Document MD_FALLBACK_FRAME_STATE_FOR.
3026
3027 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3028
3029         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
3030         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
3031         elimination.
3032         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
3033
3034 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
3035
3036         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
3037         of the label inside NAME as opposed to just the end of NAME.
3038
3039 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3040
3041         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
3042         * config/alpha/alpha.c (alpha_init_machine_status,
3043         alpha_mark_machine_status, alpha_free_machine_status): Delete.
3044         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
3045         (vms_valid_decl_attribute_p): Make static, conditionally compile.
3046         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
3047
3048 2001-07-06  Stan Shebs  <shebs@apple.com>
3049
3050         * target.h (targetm): Rename global from "target", so as not to
3051         conflict with local variables.
3052         * c-decl.c: Ditto.
3053         * c-typeck.c: Ditto.
3054         * final.c: Ditto.
3055         * tree.c: Ditto.
3056         * cp/decl.c: Ditto.
3057         * cp/decl2.c: Ditto.
3058         * cp/typeck.c: Ditto.
3059         * 1750a/1750a.c: Ditto.
3060         * a29k/a29k.c: Ditto.
3061         * arc/arc.c: Ditto.
3062         * arm/arm.c: Ditto.
3063         * avr/avr.c: Ditto.
3064         * clipper/clipper.c: Ditto.
3065         * convex/convex.c: Ditto.
3066         * d30v/d30v.c: Ditto.
3067         * dsp16xx/dsp16xx.c: Ditto.
3068         * elxsi/elxsi.c: Ditto.
3069         * fr30/fr30.c: Ditto.
3070         * h8300/h8300.c: Ditto.
3071         * i370/i370.c: Ditto.
3072         * i386/i386.c: Ditto.
3073         * i860/i860.c: Ditto.
3074         * i960/i960.c: Ditto.
3075         * ia64/ia64.c: Ditto.
3076         * m32r/m32r.c: Ditto.
3077         * m68hc11/m68hc11.c: Ditto.
3078         * m68k/m68k.c: Ditto.
3079         * m88k/m88k.c: Ditto.
3080         * mips/mips.c: Ditto.
3081         * ns32k/ns32k.c: Ditto.
3082         * pa/pa.c: Ditto.
3083         * pdp11/pdp11.c: Ditto.
3084         * romp/romp.c: Ditto.
3085         * rs6000/rs6000.c: Ditto.
3086         * sh/sh.c: Ditto.
3087         * sparc/sparc.c: Ditto.
3088         * vax/vax.c: Ditto.
3089         * we32k/we32k.c: Ditto.
3090         * doc/tm.texi: Update the manual to match.
3091
3092 2001-07-06  Richard Henderson  <rth@redhat.com>
3093
3094         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
3095         DWARF2_UNWIND_INFO not just whether it is defined.
3096
3097 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
3098
3099         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
3100         call to simplify_binary_operation returns a new pattern.
3101
3102 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3103
3104         * glimits.h (__SHRT_MAX__): New.
3105         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
3106         (SHRT_MAX): Define in terms of __SHRT_MAX__.
3107
3108 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
3109
3110         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
3111         avoid warnings.
3112
3113 2001-07-06  Richard Henderson  <rth@redhat.com>
3114
3115         * bitmap.c (bitmap_release_memory): Move adjacent to the
3116         allocation functions.
3117         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
3118         the implementation.  Binary search for the set bit.
3119         (bitmap_union_of_diff): Allocate the temporary on the stack
3120         instead of using xmalloc.
3121
3122 2001-07-06  Richard Henderson  <rth@redhat.com>
3123
3124         * genrecog.c (validate_pattern): Warn for constraints in
3125         define_{expand,split,peephole2}.  Remove strict_low_part
3126         before looking up match_dup.
3127
3128 2001-07-06  DJ Delorie  <dj@redhat.com>
3129
3130         * doc/gcc.texi (Makefile): Rename to be a more general purpose
3131         chapter about various build hints and history.  Add section
3132         talking about the various types of native and cross builds.
3133
3134 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3135
3136         * Makefile.in (final.o): Depend on target.h.
3137         * final.c: Include target.h.
3138         (default_function_pro_epilogue): New.
3139         (final_start_function): Use target structure for function prologues.
3140         (final_end_function): Use target structure for function epilogues.
3141         * fold-const.c (real_hex_to_f): Constify s and p.
3142         * output.h (default_function_pro_epilogue): New.
3143         * real.h (real_hex_to_f): Update prototype.
3144         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
3145         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
3146         (TARGET_INITIALIZER): Update.
3147         * target.h (gcc_target): Add struct asm_out.
3148         * doc/tm.texi: Update.
3149
3150 config:
3151         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
3152         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
3153         in cpu/cpu.c, or rename old functions consistently.  Take
3154         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
3155         redundant macros and prototypes.  Make new functions static.
3156
3157         * 1750a/1750a.c: Similarly.
3158         * 1750a/1750a.h: Similarly.
3159         * a29k/a29k-protos.h: Similarly.
3160         * a29k/a29k.c: Similarly.
3161         * a29k/a29k.h: Similarly.
3162         * arc/arc-protos.h: Similarly.
3163         * arc/arc.c: Similarly.
3164         * arc/arc.h: Similarly.
3165         * arm/arm-protos.h: Similarly.
3166         * arm/arm.c: Similarly.
3167         * arm/arm.h: Similarly.
3168         * avr/avr-protos.h: Similarly.
3169         * avr/avr.c: Similarly.
3170         * avr/avr.h: Similarly.
3171         * clipper/clipper-protos.h: Similarly.
3172         * clipper/clipper.c: Similarly.
3173         * clipper/clipper.h: Similarly.
3174         * convex/convex.c: Similarly.
3175         * convex/convex.h: Similarly.
3176         * d30v/d30v-protos.h: Similarly.
3177         * d30v/d30v.c: Similarly.
3178         * d30v/d30v.h: Similarly.
3179         * d30v/d30v.md: Similarly.
3180         * dsp16xx/dsp16xx-protos.h: Similarly.
3181         * dsp16xx/dsp16xx.c: Similarly.
3182         * dsp16xx/dsp16xx.h: Similarly.
3183         * elxsi/elxsi.c: Similarly.
3184         * elxsi/elxsi.h: Similarly.
3185         * fr30/fr30.c: Similarly.
3186         * fr30/fr30.md: Similarly.
3187         * h8300/h8300-protos.h: Similarly.
3188         * h8300/h8300.c: Similarly.
3189         * h8300/h8300.h: Similarly.
3190         * i370/i370-protos.h: Similarly.
3191         * i370/i370.c: Similarly.
3192         * i370/i370.h: Similarly.
3193         * i386/i386.c: Similarly.
3194         * i386/osf1elf.h: Similarly.
3195         * i386/osfrose.h: Similarly.
3196         * i860/i860-protos.h: Similarly.
3197         * i860/i860.c: Similarly.
3198         * i860/i860.h: Similarly.
3199         * i960/i960-protos.h: Similarly.
3200         * i960/i960.c: Similarly.
3201         * i960/i960.h: Similarly.
3202         * ia64/ia64-protos.h: Similarly.
3203         * ia64/ia64.c: Similarly.
3204         * ia64/ia64.h: Similarly.
3205         * m32r/m32r-protos.h: Similarly.
3206         * m32r/m32r.c: Similarly.
3207         * m32r/m32r.h: Similarly.
3208         * m68hc11/m68hc11-protos.h: Similarly.
3209         * m68hc11/m68hc11.c: Similarly.
3210         * m68hc11/m68hc11.h: Similarly.
3211         * m68k/crds.h: Similarly.
3212         * m68k/dpx2.h: Similarly.
3213         * m68k/m68k-protos.h: Similarly.
3214         * m68k/m68k.c: Similarly.
3215         * m68k/m68k.h: Similarly.
3216         * m68k/news.h: Similarly.
3217         * m88k/m88k-protos.h: Similarly.
3218         * m88k/m88k.c: Similarly.
3219         * m88k/m88k.h: Similarly.
3220         * mips/mips-protos.h: Similarly.
3221         * mips/mips.c: Similarly.
3222         * mips/mips.h: Similarly.
3223         * ns32k/merlin.h: Similarly.
3224         * ns32k/ns32k.c: Similarly.
3225         * ns32k/ns32k.h: Similarly.
3226         * ns32k/tek6000.h: Similarly.
3227         * pa/pa-protos.h: Similarly.
3228         * pa/pa.c: Similarly.
3229         * pa/pa.h: Similarly.
3230         * pdp11/2bsd.h: Similarly.
3231         * pdp11/pdp11-protos.h: Similarly.
3232         * pdp11/pdp11.c: Similarly.
3233         * pdp11/pdp11.h: Similarly.
3234         * romp/romp-protos.h: Similarly.
3235         * romp/romp.c: Similarly.
3236         * romp/romp.h: Similarly.
3237         * rs6000/rs6000-protos.h: Similarly.
3238         * rs6000/rs6000.c: Similarly.
3239         * rs6000/rs6000.h: Similarly.
3240         * rs6000/sysv4.h: Similarly.
3241         * sh/sh-protos.h: Similarly.
3242         * sh/sh.c: Similarly.
3243         * sh/sh.h: Similarly.
3244         * sparc/sparc-protos.h: Similarly.
3245         * sparc/sparc.c: Similarly.
3246         * sparc/sparc.h: Similarly.
3247         * vax/vax.c: Similarly.
3248         * vax/vax.h: Similarly.
3249         * vax/vms.h: Similarly.
3250         * we32k/we32k.c: Similarly.
3251         * we32k/we32k.h: Similarly.
3252
3253 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
3254
3255         * basic-block.h (first_insn_after_basic_block_note): Declare.
3256         * flow.c (first_insn_after_basic_block_note): Define.  Moved
3257         from...
3258         * ssa.c (first_insn_after_basic_block_note): Remove.
3259         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
3260         necessary.
3261         (ssa_eliminate_dead_code): Properly update the CFG and PHI
3262         nodes when we find a dead conditional branch.  Insert BARRIERs
3263         after any blocks with no successors, but which do not have
3264         any BARRIERs.
3265
3266 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
3267
3268         * varray.c (varray_check_failed): Use internal_error.
3269
3270 2001-07-05  Andrew Haley  <aph@redhat.com>
3271
3272         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
3273         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
3274         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
3275
3276 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
3277
3278         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
3279         reference if the target constant is also a SYMBOL_REF.
3280
3281 2001-07-05  Eric Christopher  <echristo@redhat.com>
3282
3283         * config/mips/mips.h (MASK_MIPS3900): Remove.
3284         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
3285         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
3286         (TARGET_MIPS3900): Change to use mips_arch.
3287         (TARGET_MIPS4000): New.
3288         (TARGET_MIPS4100): New.
3289         (TARGET_MIPS4300): New.
3290         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
3291         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
3292         for -mipsX.
3293         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
3294         (ISA_HAS_BRANCHLIKELY): To here.
3295         (CC1_CPU_SPEC):  New.
3296         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
3297         (mips_arch_string): Declare.
3298         (mips_arch): Declare.
3299         (TARGET_OPTIONS): Add -march and -mtune.
3300
3301         * config/mips/mips.c (mips_arch_string): New.
3302         (mips_arch): New.
3303         (override_options): Handle -march for codegen and -mtune
3304         for scheduling. Use mips_arch. Move tx39 target default here.
3305         (mips_parse_cpu): Move error message to override_options.
3306
3307         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
3308
3309         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
3310
3311         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
3312         (MIPS Options): Ditto.  Change mcpu entry to historical text.
3313
3314 2001-07-05  H.J. Lu  (hjl@gnu.org)
3315
3316         * config/mips/mips.c (mips_parse_cpu): New function to parse
3317         -march=*/-mcpu=*.
3318
3319 2001-07-05  Jim Wilson  <wilson@redhat.com>
3320
3321         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
3322         * config/ia64/t-ia64: Likewise.
3323         (LIB1ASMFUNCS): Update comment.
3324
3325 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
3326
3327         * doc/install.texi (Install GCC: Binaries): Fix typo.
3328
3329 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3330
3331         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
3332         reference using the stack pointer, adjust it since we push Y
3333         temporarily.
3334         ("*ashrsi3"): Likewise.
3335         ("*lshrsi3"): Likewise.
3336
3337 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3338
3339         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
3340         when -fomit-frame-pointer is used.
3341
3342 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
3343
3344         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
3345         (try_redirect_by_replacing_jump): Reverse updating properly the
3346         count and frequency information.  Reverse removing cc0 setter.
3347         (forwarder_block_p): Reverse fixing for fallthru blocks.
3348
3349 2001-07-05  DJ Delorie  <dj@redhat.com>
3350
3351         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
3352         (translate_options): If the above is defined, use it to map
3353         given options to new options.
3354         * doc/tm.texi: Document it.
3355
3356 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
3357             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3358
3359         * doc/invoke.texi (Optimize Options): Document that -fgcse may
3360         cause programs using computed gotos to run more slowly.
3361
3362 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3363
3364         * doc/install.texi (Specific): Markup, spelling and typo fixes.
3365         Fixed sorting.
3366         Consistently require binutils 2.11.2, not prereleases.
3367         (Specific, decstation-*): Canonicalize as mips-dec-*.
3368         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
3369         always necessary.
3370         (Specific, m68k-altos): Removed reference to README.altos, deleted.
3371         (Specific, mips-*): Reword MIPS C compiler requirements.
3372         (Specific, powerpc*-*-*): New, mention --with-cpu once.
3373         (Specific, sunv5): Removed, obsolete.
3374
3375 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3376
3377         * dwarf2out.c (output_loc_list): Use an all ones mask for
3378         .text asm output and don't rely on long long
3379         literals. Reformat some long lines.
3380
3381 2001-07-05  Andreas Jaeger  <aj@suse.de>
3382
3383         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
3384         section.
3385
3386 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
3387
3388         * dwarf2out.c (dwarf2out_define): Update comment.
3389         (dwarf2out_undef): Ditto.
3390         (dwarf2out_start_source_file): Ditto.
3391         (dwarf2out_end_source_file): Ditto.
3392         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
3393         since we never call the start/end debug hook for the primary file.
3394
3395 2001-07-04  Kazu Hirata  <kazu@hxi.com>
3396
3397         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
3398         from shll.
3399
3400 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
3401
3402         * cppinit.c (remove_dup_dirs): Inform if a system include
3403         directory is being reordered.
3404         * doc/invoke.texi (Directory Options): GCC warns if you hide a
3405         system include.
3406         * doc/cpp.texi (Search Paths): Likewise.
3407         * doc/gcc.texi (Interoperation): Remove information about
3408         -I/usr/include.
3409
3410 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
3411
3412         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
3413         (VARRAY_TOP_CHAR_PTR): Likewise.
3414
3415 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3416
3417         * gcc.c (process_command): Don't assign elements of a const char*.
3418
3419 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3420
3421         * emit-rtl.c (change_address): Don't abort if invalid address while
3422         reload is in progress.
3423
3424 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
3425
3426         * c-lex.c (cb_file_change): Pass line number to
3427         debug_start_source_file.
3428         (cb_undefine): Pass correct line number to debug_undef.
3429
3430         * toplev.c (debug_start_source_file): Add line number to
3431         parameters. Pass it along to dwarf2out_start_source_file.
3432         (decode_g_option): Stop resetting debug level back to normal when
3433         we change debug formats, unless the current level is
3434         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
3435         3).
3436
3437         * toplev.h (debug_start_source_file): Add line number to
3438         parameters.
3439
3440         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
3441         parameters.
3442
3443         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
3444         parameters.
3445         Output debug_macinfo data for starting file if requested.
3446         (dwarf2out_end_source_file): Output debug_macinfo data for ending
3447         file if requested.
3448         (dwarf2out_define): Output debug_macinfo data for defining a macro
3449         if requested.
3450         (dwarf2out_undef): Output debug_macinfo data for undefining a
3451         macro if requested.
3452         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
3453         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
3454         (macinfo_section_label): New. DWARF2 macro info section label.
3455         (dwarf2out_init): If we want macro info, output the start label
3456         for the section.
3457         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
3458         attribute to the compilation unit die pointing to the macro info.
3459
3460 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
3461
3462         * dwarf2out.c (new_loc_list): Move to inside #ifdef
3463         DWARF2_DEBUGGING_INFO.
3464         (add_loc_descr_to_loc_list): Ditto.
3465         (output_loc_list): Ditto.
3466         Also, fix thinko in curr not being initialized.
3467         (gen_internal_sym): Ditto.
3468
3469 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3470
3471         * emit-rtl.c (replace_equiv_address): New function.
3472         * expr.h (replace_equiv_address): New declaration.
3473         * explow.c (validize_mem): Call it instead of change_address and
3474         also call if -fforce-addr and address is constant.
3475         * expr.c: Replace more calls to change_address with adjust_address
3476         and/or replace_equiv_address or to validize_mem.
3477         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
3478         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
3479         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
3480         * config/i370/i370.md, config/i860/i860.md: Likewise.
3481         * config/i960/i960.md, config/mips/mips.c: Likewise.
3482         * config/mips/mips.md, config/pa/pa.md: Likewise.
3483         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
3484         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
3485
3486 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3487
3488         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
3489
3490         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
3491         function.
3492
3493 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3494
3495         * doc/include: New directory.
3496         * doc/fdl.texi: Move to doc/include/fdl.texi.
3497         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
3498         * doc/include/funding.texi, doc/include/gpl.texi: New files.
3499         * doc/gcc.texi: Use funding.texi and gpl.texi.
3500         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
3501         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
3502         Update dependencies and use -I $(docdir)/include.
3503
3504 2001-07-04  Anthony Green  <green@redhat.com>
3505
3506         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
3507
3508 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3509
3510         * doc/install.texi (sparc64-*-*): Remove garbage.
3511
3512 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
3513
3514         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
3515         Fix typo in last change to use adjust_address.
3516
3517 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3518
3519         * doc/install.texi (Specific): Update information for *-*-solaris*.
3520
3521 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3522
3523         * explow.c (plus_constant_wide): Reinitialize Y for restart.
3524
3525 2001-07-03  Stan Shebs  <shebs@apple.com>
3526
3527         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
3528         case for flag_no_mach_text_sections.
3529         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
3530         * config/darwin.c (flag_no_mach_text_sections): Remove.
3531         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
3532
3533 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3534
3535         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
3536         and avoid checking for constant as first operand.
3537         * recog.c (find_constant_term_loc): No longer static.
3538         (adj_offettable_operand): Delete.
3539         * rtl.h (adj_offsettable_operand): Delete declaration.
3540         (find_constant_term): Add declaration.
3541         * caller-save.c: Replace calls to adj_offsettable_operand with calls
3542         to adjust_address.
3543         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
3544         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
3545         * config/i386/i386.c, config/i386/i386.md: Likewise.
3546         * config/i860/i860.c, config/i960/i960.c: Likewise.
3547         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
3548         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
3549         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
3550         * config/mips/mips.c, config/mips/mips.md: Likewise.
3551         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
3552         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
3553         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
3554         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
3555         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
3556         * config/ns32k/ns32k.md: Likewise.
3557
3558 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
3559
3560         * rtl.c (copy_rtx): Handle 'T' format letter.
3561         * gensupport.c (collect_insn_data): Likewise.
3562         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
3563
3564 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
3565
3566         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
3567         -B option.  Use 'dir' not 'foo' as example directory name.
3568
3569 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3570
3571         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3572         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
3573
3574 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3575
3576         * doc/cppinternals.texi: Improve formatting and logical markup.
3577
3578 2001-07-03  Andreas Jaeger  <aj@suse.de>
3579
3580         * Makefile.in (insn-recog.o): Add dependency on reload.h.
3581
3582         * genrecog.c (write_header): Include reload.h for prototypes in
3583         insn-recog.c.
3584
3585 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3586
3587 config:
3588         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
3589         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
3590         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
3591         i386_pe_valid_type_attribute_p): Add.
3592         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
3593         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
3594
3595 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3596
3597         * explow.c (plus_constant_wide, case LO_SUM): New case.
3598         (plus_constant_for_output_wide): Delete.
3599         * rtl.h (plus_constant_for_output): Delete.
3600         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
3601         instead of plus_constant_for_output.
3602         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
3603         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
3604         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
3605         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
3606         * config/sparc/sparc.md: Likewise.
3607         Convert some change_address calls to adjust_address.
3608
3609 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3610
3611         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
3612         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
3613         documentation of -std and -Wwrite-strings.
3614
3615 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
3616
3617         * cse.c (canon_hash): Don't register registers in very small
3618         register classes, as extending their lifetime might cause
3619         reload to fail.
3620
3621 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3622
3623         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
3624
3625         * flow.c (forwarder_block_p): Fix for fallthru blocks.
3626         (try_redirect_by_replacing_jump): Update properly the count
3627         and frequency information.
3628
3629 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
3630
3631         * toplev.c (dump_file_index): Move SSA dumps just after first
3632         jump dump.
3633         (dump_file): Corresponding changes.
3634         (rest_of_compilation): Move SSA path to just after the first
3635         jump pass.
3636         * doc/gcc.texi (Passes): Update due to movement of SSA path.
3637         * doc/invoke.texi: Update dump file #s as they were completely
3638         out of date with reality.
3639
3640 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
3641
3642         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
3643
3644         * expr.c (emit_move_insn_1): Deal with non-default
3645         STACK_PUSH_CODE.
3646
3647         * expr.c (emit_single_push_insn): Fix warning.
3648
3649 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3650
3651         * expr.c (emit_move_insn_1): Avoid modifying
3652         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
3653
3654 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3655
3656         * emit-rtl.c (adjust_address): New function.
3657         * expr.h (adjust_address): Add declaration.
3658         * builtins.c: Replace some calls to change_address with calls to it
3659         or to validize_mem.
3660         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
3661         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
3662         * config/arm/arm.c, config/convex/convex.c: Likewise.
3663         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
3664         * config/i386/i386.c, config/i386/i386.md: Likewise.
3665         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
3666         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
3667         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
3668         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
3669         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
3670
3671 2001-07-02  Jim Wilson  <wilson@redhat.com>
3672
3673         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
3674
3675 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
3676
3677         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
3678         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
3679
3680 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
3681
3682         * cppinit.c (lang_defaults): New table.
3683         (set_lang): Just read from lang_defaults into the live options
3684         structure.
3685
3686 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
3687
3688         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
3689         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
3690         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
3691
3692 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3693
3694         * doc/install.texi: Various spelling and markup fixes.
3695         (Installing GCC): Component specific installation instructions are
3696         gone.
3697         Fix reference.
3698         Warn about removing old install dir in the presence of shared libs.
3699         (Configuration): Invoke with options target to match configure
3700         --help.
3701         Consistently refer to gas, gld pathnames.
3702         Invert --enable-multilib documentation.
3703         Remove references to old compiler versions.
3704
3705 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3706
3707         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
3708
3709 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3710
3711         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
3712         section.
3713         (Specific, mips*-sgi-irix5): Note IDO download.
3714         Reworded MIPS C hints.
3715         Use GNU as instead of GAS.
3716         Markup fixes.
3717         Removed SGI Freeware reference, IRIX 6 only.
3718         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
3719         Note N64 library requirement/workaround.
3720         Update O32 hints.
3721         Complete list of structure passing bug victims.
3722
3723 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3724
3725         * doc/install.texi: Remove CVS Id.
3726
3727 2001-07-02  Andreas Jaeger  <aj@suse.de>
3728
3729         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
3730         (find_inherently_necessary): Remove unused variable.
3731
3732 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
3733
3734         * c-common.h (TDI_inlined): New ast dump phase.
3735         (dump_flag_name): New function.
3736         * c-dump.c (dump_files): Add inlined phase.
3737         (dump_flag_name): Define.
3738         * doc/invoke.texi (-fdump-ast-inlined): Document.
3739
3740 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3741
3742         * stor-layout.c (layout_decl): Revert change to handling of alignment
3743         in packed types.
3744
3745 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3746
3747         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
3748         for FIELD_DECL.
3749
3750 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
3751
3752         * doc/tm.texi (FUNCTION_ARG): Document that the last call
3753         is special.
3754
3755 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
3756
3757         * tlink.c (recompile_files): Remove COMPILER_PATH and
3758         LIBRARY_PATH from the environment.
3759
3760 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
3761
3762         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
3763         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
3764         enumerators.
3765         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
3766
3767         * c-parse.in (OBJC_STRING): Kill.
3768         (objc_string): Decompose to [objc_string] '@' STRING.
3769         (reswords): Take the leading '@' off all the Objective C keywords.
3770         (objc_rid_sans_at): Kill.
3771         (init_reswords): Don't initialize it.
3772         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
3773         (_yylex): Kill reconsider label.  Look ahead one token after
3774         an '@'; if we get an identifier, check whether it's an
3775         Objective C @-keyword.  If so, return the keyword.  Otherwise,
3776         put back the token and return the '@' as a terminal.
3777
3778         * cpplib.c (lex_macro_node): Remove unnecessary check for
3779         leading '@' on identifier.  Clarify control flow and commentary.
3780
3781 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3782
3783         * cse.c (new_label_ref): Variable deleted.
3784         (insert): Remove set of new_label_ref.
3785         (check_for_label_ref): New function.
3786         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
3787
3788 See ChangeLog.5 for earlier changes.