OSDN Git Service

* flow.c (calculate_global_regs_live): Force the stack pointer live
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2000-12-07  Richard Henderson  <rth@redhat.com>
2
3         * flow.c (calculate_global_regs_live): Force the stack pointer live
4         after reload as well.
5
6 2000-12-07  Bruce Korb  <bkorb@gnu.org>
7
8         * fixinc/Makefile.*(exeext): the variables are exeext, the
9         substitution expression is build_exeext.
10
11 2000-12-07  Neil Booth  <neilb@earthling.net>
12
13         * c-common.c (parse_in): Make a cpp_reader *.
14         * cppfiles.c (_cpp_fake_include): Remove.
15         * cpphash.h: Similarly.
16         * cpplib.c (do_line): Don't call _cpp_fake_include.  A valid
17         #line always creates a callback; FC_RENAME if there are no
18         #line flags.
19         * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
20         The first EOF must be our get_char buffer.
21
22 2000-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
23
24         * c-common.c (warn_format_security): New variable.
25         (check_format_info): Warn about non-literal formats with no format
26         arguments if either -Wformat-nonliteral or -Wformat-security is
27         specified.
28         (set_Wformat): Set warn_format_security for settings other than 1.
29         * c-common.h (warn_format_security): Declare.
30         * c-decl.c (c_decode_option): Decode -Wformat-security and
31         -Wno-format-security.
32         * invoke.texi: Document -Wformat-security.
33         * toplev.c (documented_lang_options): Include -Wformat-security
34         and -Wno-format-security.
35
36 2000-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
37
38         * c-common.c (check_format_info): Warn for non-constant format
39         strings with strftime formats if -Wformat-nonliteral.  Where the
40         format can convert arguments, if the format is not a string
41         literal and there are no arguments to the format, give a different
42         warning message from the general non-string-literal case.
43
44 2000-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
45
46         * c-common.c (format_wanted_type): Add reading_from_flag.
47         (print_char_table): Mark %s and %S formats with flag "R".
48         (check_format_info_main): Set up reading_from_flag appropriately.
49         If aflag, always set writing_in_flag rather than relying on the
50         format used being a scanf format and so having it set.
51         (check_format_types): Check for formats reading through null
52         pointers.
53
54 2000-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
55
56         * invoke.texi (-Wformat): Document what format features are
57         checked.
58
59 2000-12-06  Kazu Hirata  <kazu@hxi.com>
60
61         * config/h8300/h8300.h: Fix formatting.
62
63 2000-12-06      Joel Sherrill <joel@OARcorp.com>
64
65         * config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*, 
66         h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
67         * config.gcc (*-rtems*): Add support for gthr-rtems.h.
68         * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
69         config/h8300/rtems.h, config/mips/rtems.h: New files.
70
71 2000-12-06  Mark Kettenis  <kettenis@gnu.org>
72
73         * config.gcc: Reorganize handling of *-*-gnu*, to share target
74         specific make details with Linux.  Update comments to clarify
75         the distinction between GNU/Linux and GNU/Hurd.
76
77 Wed Dec  6 19:22:02 2000  Jeffrey A Law  (law@cygnus.com)
78
79         * contrib.texi: Fix my email address.  Update Per's
80         list of contributions.
81
82 2000-12-06  Rodney Brown  <RodneyBrown@mynd.com>
83
84         * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
85         * collect2.c (scan_libraries): Remove unused `ch'.
86         (COFF specific stuff): Prototype ldgetname.  Declare and prototype
87         ldbtread and ldclose.
88
89         * config/alpha/osf.h: Standarize copyright statement.
90         * config/arc/arc.h: Likewise.
91         * config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
92         * config/arm/arm.c config/arm/arm.h: Likewise.
93         * config/elxsi/elxsi.h: Likewise.
94         * config/i386/sco.h: Likewise.
95         * config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise.
96         * config/m68k/m68kv4.h config/m68k/next21.h: Likewise.
97         * config/m68k/sun3.h: Likewise.
98         * config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise.
99         * config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise.
100         * config/romp/romp.h: Likewise.
101         * config/rs6000/aix41.h: Likewise.
102         * config/sparc/sysv4.h: Likewise.
103         * config/we32k/we32k.c config/we32k/we32k.h: Likewise.
104         * fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise.
105         * cpplib.h cppexp.c cselib.h profile.c: Likewise.
106         * longlong.h: Likewise.
107         * libgcc2.c: Likewise.
108
109 2000-12-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
110
111         * machmode.def: Use correct definition for BITSIZE on targets where
112         BITS_PER_UNIT != 8.
113
114 2000-12-06  Bruce Korb  <bkorb@gnu.org>
115
116         * fixinc/Makefile.*: Reduce differences to (ultimately) reduce
117         the number of them.
118
119 2000-12-06  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
120
121         * pa.c: Include expr.h before c-tree.h.
122         (remove_useless_addtr_insns): Use reverse_condition_maybe_unordered
123         instead of reverse_condition.
124         (print_operand): Correct predicates for GT, GE, LT and LE.  Add
125         predicates for LTGT, UNLE, UNLT, UNGE, UNGT, UNEQ, UNORDERED and
126         ORDERED.
127         (cmpib_comparison_operator): Add GEU and LTU codes.
128         * pa.h (PREDICATE_CODES): Add codes for cmpib_comparison_operator.
129         * pa.md (bltgt, bunle, bunlt, bunge, bungt, buneq, bunordered,
130         bordered): New float conditional branch patterns.
131
132 Wed Dec  6 21:03:41 2000  J"orn Rennecke <amylaar@redhat.com>
133
134         * final.c (final_addr_vec_align): Fix clipping to BIGGEST_ALIGNMENT.
135
136 2000-12-06  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
137           
138         * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
139         backslash and newline, when inside a comment.
140
141 2000-12-06  Joseph S. Myers  <jsm28@cam.ac.uk>
142
143         * invoke.texi: Use @table @samp instead of @itemize @minus for
144         table of language standards.  Fix use of @pxref.  From Zack
145         Weinberg.  Also exclude specs documentation from generated
146         manpage, and create separate ENVIRONMENT section.
147
148 2000-12-06  Michael Matz  <matzmich@cs.tu-berlin.de>
149
150         * gcse.c (compute_pre_data): Kill trapping expressions in
151         destination blocks of abnormal edges.
152
153 2000-12-05  Richard Sandiford  <r.sandiford@redhat.com>
154
155         * config/mn10300/mn10300.c (mn10300_print_reg_list): Added.
156         (mn10300_get_live_callee_saved_regs): Likewise.
157         (mn10300_gen_multiple_store): Likewise.
158         (store_multiple_operation): Likewise.
159         (expand_prologue): Use mn10300_gen_multiple_store().
160         * config/mn10300/mn10300-protos.h (mn10300_print_reg_list): Added.
161         (mn10300_get_live_callee_saved_regs): Likewise.
162         (mn10300_gen_multiple_store): Likewise.
163         (store_multiple_operation): Likewise.
164         * config/mn10300/mn10300.md (store_movm): Use a MATCH_PARALLEL
165         tied to store_multiple_operation().
166
167 Tue Dec  5 20:09:14 2000  Jeffrey A Law  (law@cygnus.com)
168
169         * builtins.c (expand_builtin_setjmp_setup): Set
170         current_function_has_nonlocal_label.
171
172 2000-12-05  Neil Booth  <neilb@earthling.net>
173
174         * cppfiles.c (stack_include_file): Push zero-length buffers
175         in case of failure.  Return void, as we don't fail any more.
176         (read_include_file): Check for files we shouldn't re-read.
177         Don't return an error code; errors are implied by marking the
178         file NEVER_REREAD.
179         (_cpp_execute_include): Move the recursion and in-macro checks
180         here.  Update for stack_include_file not failing.
181         * cpplib.c (cpp_push_buffer): Always succeed, since
182         _cpp_execute_include performs the recursion check.  Tidy up.
183         * cpplib.h (cpp_push_buffer): Update prototype.
184
185 2000-12-05  Alexandre Oliva  <aoliva@redhat.com>
186
187         * sched-vis.c (visual_tbl_line_length): New variable.
188         (get_visual_tbl_length): Set it.
189         (visualize_stall_cycles): Don't let stalls overrun
190         visual_tbl_line_length.
191
192 2000-12-05  Geoffrey Keating  <geoffk@redhat.com>
193
194         * global.c (global_conflicts): Allow for a REG_UNUSED note
195         with a different mode to the REG set in the insn.
196
197 2000-12-05  Kaveh R. Ghazi  <ghazi@teal.rutgers.edu>
198
199         * Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.
200
201         * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS).
202
203 2000-12-05  Bruce Korb  <bkorb@gnu.org>
204
205         * fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and
206         GNU/Linux.
207
208 2000-12-05  Richard Earnshaw  <rearnsha@arm.com>
209
210         * fixinc/mkfixinc.sh: Run fixinc on netbsd.
211         * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files,
212         to cope with aliased copies.
213         * fixinc/fixincl.x: Regenerate.
214
215 2000-12-05  Bernd Schmidt  <bernds@redhat.co.uk>
216
217         * sched-vis.c: Guard with #ifdef INSN_SCHEDULING.
218         * sched-rgn.c: Likewise.
219         (rgn_print_insn): Fix output.
220
221 2000-12-05  Bruce Korb  <bkorb@gnu.org>
222
223         * fixinc/Makefile.*: make these more consistent
224         * fixinc/mkfixincl.sh: enable BeOS fixincludes
225
226 2000-12-05  Richard Henderson  <rth@redhat.com>
227
228         * stmt.c (warn_if_unused_value): Move side effects test earlier.
229
230 2000-12-05  Alan Modra <alan@linuxcare.com.au>
231
232         * bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
233         when using sjlj.
234
235 2000-12-05  Richard Henderson  <rth@redhat.com>
236
237         * flow.c (calculate_global_regs_live): Only force stack pointer
238         live before reload.  Force pic register live before reload.
239         (insn_dead_p): Don't protect pic references from deletion.
240
241 2000-12-05  Joseph S. Myers  <jsm28@cam.ac.uk>
242
243         * invoke.texi: Add support for using texi2pod.pl.  Don't use
244         @multitable.
245
246 2000-12-04  Nick Clifton  <nickc@redhat.com>
247
248         * config/arm/arm.c (arm_override_options): Test 'insn_flags' not
249         'tune_flags' for XScale nature.
250         Remove spurious test of HARD_FLOAT and XScale flags. 
251
252         * config/arm/arm.md (umulsidi3adddi): Restore "=&r" register
253         contraint, accidentally changed during XScale contribution.
254
255         * config/arm/lib1funcs.asm (interwork_call_via_, call_via_): Do
256         not create these functions if the target architecture does not
257         support Thumb instructions.
258
259 2000-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
260
261         * ONEWS: New file with the current contents of NEWS up to EGCS
262         1.1.
263         * NEWS: Generate automatically from online release notes from EGCS
264         1.0 to GCC 2.95.2, using ../contrib/gennews.
265
266 2000-12-04  Neil Booth  <neilb@earthling.net>
267
268         * tradcif.y: Move lexptr to top of file.  Add rule to handle
269         assertions in conditional expressions.
270         * tradcpp.c (parse_answer): Assertions do not need to go to
271         end of line in conditional directives.
272         (parse_assertion): Get first character of identifiers correct.
273         (test_assertion): New function.
274         * tradcpp.h (test_assertion): New prototype.
275
276 2000-12-01  Rodney Brown  <RodneyBrown@mynd.com>
277
278         * config.gcc: Fix typo for UnixWare 7.
279
280 2000-12-03  Phil Edwards  <pme@sources.redhat.com>
281
282         * invoke.texi:  Replace `pedwarns' with clearer text.
283
284 2000-12-04  Bruce Korb  <bkorb@gnu.org>
285
286         * fixinc/Makefile.*(clean):  don't clean autogenerated files.
287         (mainainer-clean): clean autogenerated files
288
289 2000-12-04  DJ Delorie  <dj@redhat.com>
290
291         * md.texi: Add overview, clarify match_dup and define_expand.
292
293 2000-12-04  DJ Delorie  <dj@redhat.com>
294
295         * print-tree.c (print_node): Target-specific builtins print
296         numbers, not names.
297
298 2000-12-04  Jason Merrill  <jason@redhat.com>
299
300         * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
301         MODE_VECTOR_FLOAT.
302
303         * diagnostic.c (report_problematic_module): s/function/module/.
304
305         * c-lex.h: Remove decl for check_newline.
306
307 2000-12-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
308
309         * README.APOLLO: Remove obsolete file.
310
311 2000-12-04  Neil Booth  <neilb@earthling.net>
312
313         * cppinternals.texi: New file.
314
315 2000-12-04  Neil Booth  <neilb@earthling.net>
316
317         * cppfiles.c (cpp_make_system_header): Take 2 booleans,
318         and operate on current buffer.
319         (cpp_read_file): Rename _cpp_read_file.  
320         * cpplib.c (do_line, do_pragma_system_header): Update calls to
321         cpp_make_system_header.
322         * fix-header.c: Similarly.
323         * cpphash.h (_cpp_read_file): Move from... 
324         * cpplib.h: ... here.
325         * cppinit.c (do_includes, cpp_start_read): Update appropriately.
326
327 2000-12-03  Kaveh R. Ghazi  <ghazi@teal.rutgers.edu>
328
329         * builtins.c (expand_builtin_strspn, expand_builtin_strcspn):
330         Handle another transformation.
331
332 2000-12-03  Nick Clifton  <nickc@redhat.com>
333
334         * config.gcc: Add support for StrongARM targets.
335         * config/arm/t-strongarm-elf: New file.
336         * config/arm/t-strongarm-coff: New file.
337         * config/arm/t-strongarm-pe: New file.
338         * config/arm/strongarm-pe.h: New file.
339
340 2000-12-03  Nick Clifton  <nickc@redhat.com>
341
342         * NEWS: Mention XScale has been added.
343         * config.gcc: Add support for XScale targets.
344         * config/arm/arm.h: Add support for XScale processor.
345         * config/arm/arm.c: Add support for XScale processor.
346         * config/arm/arm.md: Add support for XScale processor.
347         * config/arm/t-xscale-elf: New file.
348         * config/arm/t-xscale-coff: New file.
349         * config/arm/xscale-elf.h: New file.
350         * config/arm/xscale-coff.h: New file.
351
352 2000-12-03  Richard Henderson  <rth@redhat.com>
353
354         * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges
355         unless exception handling is enabled, and if not using sjlj.
356
357         * builtins.c (expand_builtin_setjmp_setup): New.
358         (expand_builtin_setjmp_receiver): New.
359         (expand_builtin_setjmp): Split out _setup and _receiver functions.
360         Move argument parsing in from ...
361         (expand_builtin): ... here.
362         * except.c (receive_exception_label): Branch around receiver
363         unless new-style exceptions.  Call expand_builtin_setjmp_receiver.
364         (start_dynamic_handler): Call expand_builtin_setjmp_setup.
365         * expr.h: Update builtin setjmp decls.
366
367 2000-12-03  Bruce Korb  <bkorb@gcc.org>
368
369         * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
370         build machine name.  Default to the target.
371
372 2000-12-03  Laurynas Biveinis  <lauras@softhome.net>
373
374         * Makefile.in: use $(build_canonical), not $(canonical_build).
375
376 2000-12-03  Bernd Schmidt  <bernds@redhat.co.uk>
377
378         * Makefile.in (OBJS): Add sched-rgn.o.
379         (sched-rgn.o): New rule.  * haifa-sched.c (sched_verbose): No
380         longer static.
381         (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
382         INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
383         UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
384         MAX_BLOCKAGE_COST): Move to sched-int.h.
385         (MAX_RGN_BLOCKS, MAX_RGN_INSNS, INSN_REF_COUNT, FED_BY_SPEC_LOAD,
386         IS_LOAD_INSN, struct haifa_edge, edge_table, NEXT_IN, NEXT_OUT,
387         FROM_BLOCK, TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES,
388         OUT_EDGES, edgelst, struct region, nr_regions, rgn_table,
389         rgn_bb_table, block_to_bb, containing_rgn, RGN_NR_BLOCKS,
390         RGN_BLOCKS, BLOCK_TO_BB, BB_TO_BLOCK, CONTAINING_RGN,
391         debug_regions, find_single_block_region, find_rgns, too_large,
392         init_regions, current_nr_blocks, current_blocks, bitset, bitlst,
393         bitlst_table_last, bitlst_table_size, bitlst_table, bitset_member,
394         extract_bitlst, bblst, struct candidate, candidate_table,
395         bblst_table, bblst_size, bblst_last, IS_VALID, IS_SPECULATIVE,
396         SRC_PROB, target_bb, split_edges, compute_trg_info,
397         debug_candidate, debug_candidates, bbset, bbset_size, dom,
398         IS_RGN_ENTRY, IS_DOMINATED, prob, GET_SRC_PROB, edgeset,
399         rgn_nr_edges, rgn_edges, edgeset_size, edgeset_bitsize,
400         EDGE_TO_BIT, edge_to_bit, pot_split, ancestor_edges,
401         compute_dom_prob_ps, ABS_VALUE, INSN_PROBABILITY,
402         IS_SPECULATIVE_INSN, INSN_BB, MIN_DIFF_PRIORITY, MIN_PROBABILITY,
403         MIN_PROB_DIFF, check_live_1, update_live_1, check_live,
404         update_live, set_spec_fed, is_pfree, find_conditional_protection,
405         is_conditionally_protected, may_trap_exp, haifa_classify_insn,
406         is_prisky, is_exception_free, add_branch_dependences,
407         propagate_deps, compute_block_backward_dependences,
408         debug_dependencies, is_cfg_nonregular, build_control_flow,
409         new_edge, bb_deps, BITSET_UNION, BITSET_INTER, BITSET_DIFFER,
410         BITSET_INVERT, BITSET_ADD, BITSET_REMOVE, debug_regions,
411         UPDATE_LOOP_RELATIONS, INSN_TRAP_CLASS, WORST_CLASS, IS_REACHABLE,
412         CONST_BASED_ADDRESS_P, free_pending_lists, sched_target_n_insns,
413         target_n_insns, sched_n_insns, init_ready_list, deaths_in_region,
414         can_schedule_ready_p, new_ready, schedule_more_p, rgn_print_insn,
415         rgn_rank, region_sched_info): Move to sched-rgn.c.
416         (debug_reg_vector): Delete useless function.
417         (get_bb_head_tail): Likewise.
418         (insn_issue_delay, insn_cost, ready_add, get_block_head_tail,
419         no_real_insns_p, rm_line_notes, save_line_notes,
420         restore_line_notes, rm_redundant_line_notes, sched_init): No
421         longer static.
422         (rm_line_notes, save_line_notes, restore_line_notes,
423         schedule_block, set_priorities): Change argument to be a real
424         basic block, not one of haifa's "bb"s.  All callers changed
425         (rm_other_notes): Initialize note_list here, not in
426         schedule_region.
427         (sched_finish): New function, called from schedule_insn.  * *
428         sched-int.h (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
429         INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
430         UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
431         MAX_BLOCKAGE_COST): Moved here from haifa-sched.c.
432         (get_block_head_tail, no_real_insns_p, rm_line_notes,
433         save_line_notes, restore_line_notes, rm_redundant_line_notes,
434         rm_other_notes, insn_issue_delay, set_priorities, schedule_block,
435         sched_init, sched_finish, ready_add, insn_cost): Declare.
436
437 2000-12-03  Laurynas Biveinis  <lauras@softhome.net>
438             Bruce Korb  <bkorb@gnu.org>
439
440         * Makefile.in: pass $(build_canonical) to mkfixinc.sh.
441         * fixinc/mkfixinc.sh: accept build system name as an argument.
442         Use it for choosing the fix build method.  Use the target for
443         selecting special fix rules.
444
445 2000-12-03  Bernd Schmidt  <bernds@redhat.co.uk>
446
447         * Makefile.in (OBJS): Add sched-deps.o.
448         (sched-deps.o): New rule.
449         * haifa-sched.c (struct deps, struct haifa_insn_data): Moved to
450         sched-int.h.
451         (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved to
452         sched-int.h.
453         (SIZE_FOR_MODE): Delete unused macro.
454         (reg_known_equiv_p, reg_known_value, reg_pending_clobbers,
455         reg_pending_sets, reg_pending_sets_all, true_dependency_cache,
456         anti_dependency_cache, output_dependency_cache,
457         forward_dependency_cache): Variables moved to sched-deps.c.
458         (add_dependence, remove_dependence, find_insn_list,
459         find_insn_mem_list, add_insn_mem_dependence, flush_pending_lists,
460         sched_analyze_insn, sched_analyze_1, sched_analyze_2,
461         sched_analyze, group_leader, compute_forward_dependences,
462         init_deps, free_deps, init_dependency_caches, free_dependency_caches):
463         Functions moved to sched-deps.c.
464         (schedule_region): Call init_deps_global and finish_deps_global
465         instead of directly manipulating dependency data structures.
466         * sched-deps.c: New file.
467         (init_deps_global, finish_deps_global): New functions.
468         * sched-int.h (struct haifa_insn_data, struct deps): Moved here from
469         haifa-sched.c.
470         (h_i_d): Declare.
471         (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved here
472         from haifa-sched.c.
473
474         * Makefile.in (OBJS): Add sched-vis.o.
475         (sched-vis.o): New rule.
476         * haifa-sched.c (get_unit_last_insn): New function.
477         (sched_dump, insn_unit, actual_hazard_this_instance): No longer
478         static.
479         (schedule_block): Call visualize_alloc and visualize_free.  Delete
480         spurious return statement.
481         (init_target_units, insn_print_units, get_visual_tbl_length,
482         init_block_visualization, print_block_visualization, safe_concat,
483         visualize_scheduled_inns, visualize_no_unit, visualize_stall_cycles,
484         print_exp, print_value, print_pattern, print_insn, target_units,
485         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines, visual_tbl,
486         n_vis_no_unit, vis_no_unit): Move scheduling visualization
487         functions/variables...
488         * sched-vis.c: ...here.  New file.
489         (visualize_alloc, visualize_free): New functions.
490         (visualize_scheduled_insns, visualize_stall_cycles,
491         print_block_visualization): Lose basic block argument.  All callers
492         changed.
493         (visualize_scheduled_insns): Use new function get_unit_last_insn.
494         * sched-int.h (current_sched_info, sched_dump): Declare.
495         (init_target_units, insn_print_units, init_block_visualization,
496         print_block_visualization, visualize_scheduled_inns,
497         visualize_no_unit, visualize_stall_cycles, visualize_alloc,
498         visualize_free): Declare functions.
499
500         * sched-int.h: New file.
501         * Makefile.in (haifa-sched.o): Depend on it.
502         * haifa-sched.c: Include it.
503         (no_real_insns_p): New function.
504         (current_sched_info): New static variable.
505         (__inline, HAIFA_INLINE): Moved to sched-int.h.
506         (get_block_head_tail): Minor cleanup.
507         (init_ready_list, can_schedule_ready_p, new_ready, schedule_more_p,
508         rgn_print_insn, rgn_rank): New functions, broken out of
509         rank_for_schedule, schedule_insn and schedule_block, where they
510         are now called through function pointers in current_sched_info.
511         (queue_insn, schedule_insn, queue_to_ready, debug_ready_list,
512         print_insn): To display uid and block number, call the print_insn
513         function pointer in current_schedule_info.
514         (region_sched_info): New static variable.
515         (sched_target_n_insns, sched_n_insns, target_n_insns): New global
516         variables, moved out of schedule_block.
517         (schedule_block): Return void.  All callers changed.
518         Move some of the setup code into schedule_region.  Get head/tail
519         from current_sched_info, and update it when done.
520         (schedule_region): Slightly rearranged, some code moved here from
521         schedule_block.  Call no_real_insns_p to avoid doing work for a
522         block that consists only of notes and labels.
523         (schedule_insns): Initialize current_sched_info.
524
525 2000-12-03  Neil Booth  <neilb@earthling.net>
526
527         * cppmacro.c (funlike_invocation_p): Re-disable macros enabled
528         by contexts drops AFTER argument pre-expansion, so that they
529         remain enabled during argument pre-expansion.
530         (_cpp_pop_context): Unconditionally re-enable a macro when
531         dropping a context level.
532
533 2000-12-03  Manfred Hollstein  <manfredh@redhat.com>
534
535         * arm/t-linux (MULTILIB_OPTIONS): Comment.
536         (MULTILIB_DIRNAMES): Likewise.
537         (EXTRA_MULTILIB_PARTS): Likewise.
538         (LIBGCC): Likewise.
539         (INSTALL_LIBGCC): Likewise.
540
541 2000-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
542
543         * builtins.c (expand_builtin_strcat, expand_builtin_strncat,
544         expand_builtin_strspn, expand_builtin_strcspn): New functions.
545         (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
546         BUILT_IN_STRSPN and BUILT_IN_STRCSPN.
547
548         * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
549         BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries.
550
551         * c-common.c (c_common_nodes_and_builtins): Declare builtin
552         strcat, strncat, strspn and strcspn.
553         (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'. 
554
555         * extend.texi (strcat, strcspn, strncat, strspn): Document new
556         builtins.
557
558 2000-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
559
560         * builtins.c (expand_builtin_strcmp): Use const*_rtx when
561         expanding strcmp at compile-time.  Add another transformation.
562         (expand_builtin_strncmp): Add more transformations.  Call
563         expand_builtin_memcmp, not expand_builtin_strcmp, under
564         appropriate conditions if HAVE_cmpstrsi.
565
566 2000-12-02  David Edelsohn  <edelsohn@gnu.org>
567
568         * rs6000.md (anddi3_internal[23]): Prefer rldic? over andis
569         instruction.
570         (cr logic): Really make operands sequential.
571
572 2000-12-02  Geoffrey Keating  <geoffk@redhat.com>
573
574         * c-common.c (combine_strings): When the ISO C standard specifies
575         the maximum length of a string, it doesn't include the trailing
576         zero byte.
577
578         * cpplib.c (do_ifdef): Add check_eol() call.
579         (do_ifndef): Likewise.
580
581 2000-12-02  Daniel Berlin  <dberlin@redhat.com>
582             Bruce Korb  <bkorb@gnu.org>
583
584         * fixinc/*: global substitute /__MSDOS__/SEPARATE_FIX_PROC/
585         * fixinc/mkfixinc.sh: prepare to use Makefile.BEOS for *-*-beos*
586         * fixinc/Makefile.DOS: define SEPARATE_FIX_PROC for build
587         * fixinc/fixfix.c(wrap_fix): avoid wrapping files that
588         use the "__need_" hackery.  It breaks them.
589         * fixinc/fixincl.c(process - SEPARATE_FIX_PROC):
590         Sometimes on DOS and BeOS the temp output file cannot be opened.
591         Skip the file noisily.  Ought to be fixed instead.
592
593 2000-12-02  Bruce Korb  <bkorb@gnu.org>
594
595         From: 2000-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
596
597         * fixfixes.c (emit_gnu_type, format_write): Prototype.
598         (format_write, char_macro_use_fix, char_macro_def_fix): Use gcc's
599         custom uppercase ctype macros.
600         * fixincl.c (do_version): Make static and add ATTRIBUTE_NORETURN.
601         Use gcc's custom uppercase ctype macros.
602         (main): Prototype.
603         (machine_matches): Add static prototype and constify variable.
604         (create_file, test_test, egrep_test): Add static prototype.
605         (quoted_file_exists): Likewise, and constify parameters.
606         (extract_quoted_files, internal_fix, start_fixer, fix_applies,
607         write_replacement, test_for_changes): Add static prototype.
608         (write_replacement, test_for_changes): Delete excess argument to
609         `create_file'.
610         * fixtests.c (test): Make static.
611         * server.c (load_data, sig_handler, server_setup, find_shell): Add
612         static prototype.
613         (sig_handler): Mark parameter with ATTRIBUTE_UNUSED.
614
615 2000-12-02  Bruce Korb  <bkorb@gnu.org>
616
617         * fixnc/mkfixinc.sh(msdosdjgpp): remove from fixincludes exception list
618         (per Laurynas Biveinis  <lauras@softhome.net>)
619
620 2000-12-02  Richard Earnshaw  <rearnsha@arm.com>
621
622         * arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
623         macros.
624         (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
625         (REGNO_OK_FOR_FOR_BASE_P): Delete.
626         (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
627         both strict and non-strict uses.
628         (REG_MODE_OK_FOR_BASE_P): Define in terms of above.
629         (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
630         (REG_OK_FOR_INDEX_P): Define in terms of above.
631         (REG_OK_FOR_BASE_P): Delete.
632         (REG_OK_FOR_PRE_POST_P): Delete.
633         (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
634         (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
635         (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
636         (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
637         (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes.  Use ARM
638         specific variants rather than general ones.  Use ARM_REG_OK_FOR_BASE_P
639         in pre/post increment cases.
640         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
641         (ARM_LEGITIMIZE_ADDRESS): Similarly.
642         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
643         * arm.c (legitimate_pic_address): Similarly.
644
645 2000-12-02  Neil Booth  <neilb@earthling.net>
646
647         * tradcpp.c (struct answer, parse_assertion, parse_answer,
648         canonicalize_text, find_answer): New.
649         (do_assert, do_unassert): Provide appropriate function bodies.
650         (union hashval): New member answers.
651
652 2000-11-23  Marek Michalkiewicz  <marekm@linux.org.pl>
653
654         * config/avr/avr.md: Document UNSPEC usage.
655         (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
656         Make operand 0 input only, clobber it.  Use UNSPEC, not a bogus
657         MEM for program memory word reference.  Do not add the label to
658         the table index in each of the asm output templates, instead ...
659         (casesi): ... do it in RTL.  Adjust to match the above change.
660
661 2000-12-02  Bernd Schmidt  <bernds@redhat.co.uk>
662
663         * c-common.c (PTRDIFF_TYPE): Provide default here, ...
664         * c-decl.c: ... not here.
665
666         * haifa-sched.c (sched_dump): Renamed from dump.  All users changed.
667         (old_max_uid): New variable.
668         (compute_forward_dependences): Renamed from
669         compute_block_forward_dependences; changed to accept block head and
670         tail instead of block number.  Caller changed.
671         (free_deps, init_dependency_caches, free_dependency_caches,
672         init_regions, sched_init): New functions, split out from
673         schedule_insns and compute_block_backward_dependences.
674
675 2000-12-02  Neil Booth  <neilb@earthling.net>
676
677         * cppexp.c (parse_number): Update diagnostic test.
678
679 2000-12-02  Bernd Schmidt  <bernds@redhat.co.uk>
680
681         * reload1.c (free_for_value_p): New function, frontend to
682         reload_reg_free_for_value_p.  All callers of the latter now call
683         this function with an additional mode argument.
684
685 2000-12-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
686
687         * install.texi (Configurations): Remove obsolete documentation for
688         hppa*-*-*.
689
690 2000-12-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
691
692         * install.texi (Installation): Remove obsolete description for
693         libstdc++ which is now an integral part of GCC.
694         
695 2000-12-01  Jim Blandy  <jimb@redhat.com>
696
697         * dbxout.c (dbxout_parms): Correctly describe parameters passed by
698         invisible reference in registers, but then spilled to the stack.
699         Remove code to emit a second stab for such parameters; it attempts
700         to describe the value's location by introducing a synthetic C++
701         `reference' type, and then saying the stack slot has that
702         reference type.  This loses type information (breaking GDB's
703         `ptype' command, among other things) just to describe a location
704         which stabs can represent correctly in other ways.
705
706 2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
707
708         * final.c (output_addr_const) <PLUS>: Don't assume at least one
709         operand is a CONST_INT.
710
711         * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
712         (machine_dependent_reorg): Split all insns.
713         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
714         reg_class_contents[SIBCALL_REGS].
715         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
716         * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
717         call_value_pcrel, call, call_value, sibcall): Match even when
718         not optimizing.
719         (sibcalli_pcrel, sibcall_pcrel): Likewise.  Use constraint `k'
720         for call address.
721         (sibcalli): Likewise.
722
723 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
724
725         * c-common.c (warn_format, warn_format_y2k,
726         warn_format_extra_args, warn_format_nonliteral): Define.
727         (check_format_info): Check warn_format_nonliteral and
728         warn_format_extra_args.
729         (check_format_info_main): Check warn_format_y2k.
730         (set_Wformat): New function.
731         * c-common.h (warn_format_y2k, warn_format_extra_args,
732         warn_format_nonliteral, set_Wformat): Declare.
733         * c-decl.c (warn_format): Remove definition.
734         (c_decode_option): Handle -Wformat-nonliteral,
735         -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
736         Use set_Wformat.
737         * invoke.texi: Document these new options and -Wformat=2.
738         * toplev.c (documented_lang_options): Add these new options.
739
740 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
741
742         * builtins.def (BUILT_IN_IMAXABS): Add.
743         * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
744         * c-common.c (c_common_nodes_and_builtins): Create builtin
745         functions __builtin_imaxabs, and plain imaxabs unless
746         flag_no_nonansi_builtin outside C99 mode.
747         (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
748         * extend.texi: Document builtin imaxabs.
749
750 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
751
752         * c-common.c: Include "defaults.h".
753         (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
754         (c_common_nodes_and_builtins): Create string_type_node,
755         const_string_type_node, wint_type_node, intmax_type_node,
756         uintmax_type_node, default_function_type, ptrdiff_type_node and
757         unsigned_ptrdiff_type_node.
758         * c-common.h (identifier_global_value): Declare.
759         * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
760         (init_decl_processing): Don't create string_type_node,
761         const_string_type_node, wint_type_node, intmax_type_node,
762         uintmax_type_node, default_function_type, ptrdiff_type_node and
763         unsigned_ptrdiff_type_node.
764         (identifier_global_value): New function.
765
766 2000-12-01  Neil Booth  <neilb@earthling.net>
767
768         * cppinit.c (initialize): Forgotten prototype.
769         * cpplex.c (_cpp_lex_token): Loop until not skipping.
770         Always clear PREV_WHITE upon meeting a new line.
771         * cpplib.c (end_directive): Set pfile->skipping after
772         skip_rest_of_line.
773         * cpplib.h (cpp_reader): Remove macro_pos.
774         * cppmacro.c (cpp_get_line): Don't do anything special inside
775         macros.  
776         (parse_arg): Add PREV_WHITE if a token appears after new lines.
777         (funlike_invocation_p): Save and restore the output position
778         over a successful check for a '('.
779         (enter_macro_context): Delete uses of macro_pos.
780         (cpp_get_token): Don't use pfile->skipping.
781
782 2000-12-01  Phil Edwards  <pme@sources.redhat.com>
783
784         * diagnostic.c:  Fix typos in comments.
785         * diagnostic.h:  Likewise.
786
787 2000-11-30  Phil Edwards  <pme@sources.redhat.com>
788
789         * rtl.texi (Machine Modes):  Document BImode and OImode.
790
791 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
792
793         * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
794         .FPP.
795
796 2000-12-01  Joseph S. Myers  <jsm28@cam.ac.uk>
797
798         * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
799         incomplete element type.
800         (grokparms): Before checking for incomplete parameter type, check
801         the type isn't error_mark_node.
802
803 2000-12-01  Jakub Jelinek  <jakub@redhat.com>
804
805         * builtins.c (target_char_cast): New function.
806         (expand_builtin_strchr): Use it.
807         (expand_builtin_strrchr): Use it.
808         (builtin_memset_read_str): New function.
809         (expand_builtin_memset): Use target_char_cast.
810         Try to optimize memset with second argument non-zero using
811         store_by_pieces.
812
813 2000-11-30  Marek Michalkiewicz  <marekm@linux.org.pl>
814
815         * install.texi (avr): Replace incomplete list of supported MCU
816         types with a link to the current one ...
817         * invoke.texi (AVR Options): ... here.  Update -mmcu= to list
818         all supported MCU types.  Document -minit-stack= default.
819         Document new options -mno-tablejump, -mtiny-stack.
820         * md.texi (AVR family):  Fix typo in 'w' constraint letter
821         description.  Document 'q'.  Update 'O'.
822
823 2000-12-01  Bernd Schmidt  <bernds@redhat.co.uk>
824
825         * combine.c (cant_combine_insn_p): Only disallow insns involving
826         hard regs if they are reg-reg moves.
827         (try_combine, can_combine_p, combinable_i3pat): Delete old
828         SMALL_REGISTER_CLASSES tests.
829
830 2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
831
832         * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
833         whether X is a CONST_INT.
834         (addsubcosts): Likewise.
835
836         * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
837         mis-used XINT.
838         (ARG_POINTER_REGNUM): Set to AP_REG.
839
840 2000-11-30  Alexandre Oliva  <aoliva@redhat.com>
841
842         * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
843         splits): Only match on TARGET_SH4.
844
845         * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
846         of subsequent insns.
847
848 2000-11-30  Richard Henderson  <rth@redhat.com>
849
850         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
851         * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
852
853 2000-11-30  Richard Henderson  <rth@redhat.com>
854
855         * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
856         (DO_SELECT_SECTION): New.
857         (SELECT_SECTION): Use it.
858         (UNIQUE_SECTION_P): New.
859         (UNIQUE_SECTION): New.
860
861 2000-11-30  Alexandre Oliva  <aoliva@redhat.com>
862
863         * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
864         from va_list before using it.
865
866 2000-11-30  Michael Matz  <matzmich@cs.tu-berlin.de>
867
868         * flow.c (make_edge): Early out, if no flags to set.
869         (calculate_global_regs_live): Clear out garbage only when necessary.
870
871         * simplify-rtx.c (varray_type used_regs): New.
872         (clear_table): Use it to only clear necessary items.
873         (cselib_lookup, cselib_record_set): Remember newly set items.
874         (cselib_update_varray_sizes, cselib_init): Initialize and grow
875         used_regs.
876
877         * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
878         Move clearing of dead regs out of insn-loop.
879
880 2000-11-30  Richard Henderson  <rth@redhat.com>
881
882         * calls.c (expand_call): Emit queued insns before creating
883         the tail recursion sequence.
884
885 2000-11-30  J. David Anglin  <dave.anglin@nrc.ca>
886             Bruce Korb  <bkorb@gnu.org>
887
888         * fixinc/inclhack.def(): prevent dual double definition protection
889         * fixinc/fixincl.x: regenerate
890
891 2000-11-29  Loren J. Rittle  <ljrittle@acm.org>
892
893         * fixinc/Makefile.in (fixincl.x): Explicitly state the
894         location of the generated file.
895
896 2000-11-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
897
898         * README.FRESCO: Remove obsolete file.
899
900 2000-11-30  Mark Kettenis  <kettenis@gnu.org>
901
902         * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
903         TARGET_LIBGCC2_CFLAGS): Remove.  We now use the settings from
904         config/t-linux for the Hurd.
905
906 2000-11-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
907
908         * config/mn10200/udivmod.c, config/mn10200/divmod.c,
909         config/mn10200/udivmodsi4.c: Moved from here.
910         * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
911         * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
912         C division functions.
913         * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
914
915 Thu Nov 30 01:12:52 2000  Jeffrey A Law  (law@cygnus.com)
916
917         * pa.md (conditional moves): Avoid holes in operand list.
918         (mod, umod patterns): Similarly.
919         (variable extract/shift patterns): Similarly.
920
921 2000-11-30  Neil Booth  <neilb@earthling.net>
922
923         * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
924         maybe_objc_check_decl, build_objc_string_object,
925         objc_declare_alias, objc_declare_class, build_message_expr,
926         build_protocol_expr, build_selector_expr, build_encode_expr,
927         get_class_ivars, start_class, start_protocol): Remove
928         redundant code, assuming doing_objc_thang is true.
929
930 2000-11-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
931
932         * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
933         (record_unscaled_index_insn_codes): Likewise.
934         (unscaled_index_insn_codes): Delete.
935         (max_unscaled_index_insn_codes_uid): Delete.
936         (output_function_prologue, output_function_epilogue, pa_reorg):
937         Don't use the unscaled index insn hack.
938
939         * pa.md: Remove hack from all index insns to reverse the operand
940         order of frame and stack pointer references incorrectly created
941         in the reload pass.
942
943         * function.h (emit_status): Delete member regno_pointer_flag and
944         rename regno_pointer_flag_length to regno_pointer_align_length.
945         Delete define for REGNO_POINTER_FLAG.
946         * integrate.h (inline_remap): Delete member regno_pointer_flag.
947         Add member x_regno_reg_rtx.
948         * rtl.h (rtx_def): Use frame_related bit to indicate register is
949         a pointer in REG expressions.  Define REG_POINTER macro.
950         * alias.c (find_base_value, find_base_term): Use REG_POINTER
951         instead of REGNO_POINTER_FLAG.
952         * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
953         * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
954         of regno_pointer_flag_length.  Remove code which refers to
955         regno_pointer_flag.
956         (mark_reg_pointer): Use REG_POINTER.
957         (free_emit_status): Remove code which refers to regno_pointer_flag.
958         (init_emit, mark_emit_status): Likewise.
959         * flow.c (dump_flow_info): Likewise.
960         * function.c (preserve_temp_slots): Likewise.
961         * integrate.c (expand_inline_function, copy_rtx_and_substitute):
962         Use x_regno_reg_rtx instead of regno_pointer_flag for function
963         pointer determination in map.
964         * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
965         * predict.c (estimate_probability): Likewise.
966         * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
967         * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
968         regno_pointer_flag for function pointer determination in map.
969         * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
970         REG_POINTER.
971         * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
972         Use REG_POINTER.
973         (restore_unscaled_index_insn_codes): Revise comment.
974
975         * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
976
977 2000-11-30  Joseph S. Myers  <jsm28@cam.ac.uk>
978
979         * extend.texi: Update documentation for attributes.
980
981 2000-11-29  David O'Brien  <obrien@FreeBSD.org>
982
983         * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
984         (ASM_DECLARE_OBJECT_NAME): Same.
985         (ASM_FILE_END): Same.
986         (ASM_FINISH_DECLARE_OBJECT): Same.
987         (ASM_IDENTIFY_GCC): Same.
988         (ASM_IDENTIFY_LANGUAGE): Same.
989         (ASM_OUTPUT_CONSTRUCTOR): Same.
990         (ASM_OUTPUT_DEF): Same.
991         (ASM_OUTPUT_DESTRUCTOR): Same.
992         (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
993         (ASM_OUTPUT_SECTION_NAME): Same.
994         (ASM_WEAKEN_LABEL): Same.
995         (BSS_SECTION_ASM_OP): Same.
996         (COMMON_ASM_OP): Same.
997         (CONST_SECTION_ASM_OP): Same.
998         (CONST_SECTION_FUNCTION): Same.
999         (CTORS_SECTION_ASM_OP): Same.
1000         (DTORS_SECTION_ASM_OP): Same.
1001         (ESCAPES): Same.
1002         (FINI_SECTION_ASM_OP): Same.
1003         (IDENT_ASM_OP): Same.
1004         (IDENT_ASM_OP): Same.
1005         (INIT_SECTION_ASM_OP): Same.
1006         (INT_ASM_OP): Same.
1007         (MAX_OFILE_ALIGNMENT): Same.
1008         (SBSS_SECTION_ASM_OP): Same.
1009         (SDATA_SECTION_ASM_OP): Same.
1010         (SECTION_FUNCTION_TEMPLATE): Same.
1011         (SELECT_SECTION): Same.
1012         (SE_CONST_SECTION): Same.
1013         (SIZE_ASM_OP): Same.
1014         (SKIP_ASM_OP): Same.
1015         (STRING_ASM_OP): Same.
1016         (STRING_LIMIT): Same.
1017         (TYPE_ASM_OP): Same.
1018         (TYPE_OPERAND_FMT): Same.
1019
1020 2000-11-29  Neil Booth  <neilb@earthling.net>
1021
1022         * c-decl.c (c_decode_option): Don't handle -lang-objc.
1023         * objc/lang-options.h: Remove -lang-objc.
1024         * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
1025         * objc/objc-act.c (lang_init_options): Set c_language.
1026
1027 2000-11-29  Jakub Jelinek  <jakub@redhat.com>
1028
1029         * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
1030         tests.
1031
1032 2000-11-29  Neil Booth  <neilb@earthling.net>
1033
1034         * c-pragma.c (init_pragma): Update for parse_in type change.
1035
1036 2000-11-29  Laurynas Biveinis  <lauras@softhome.net>
1037
1038         * configure.in: recognize DOS-style absolute paths.
1039
1040 2000-11-29  Jakub Jelinek  <jakub@redhat.com>
1041
1042         * expr.h (store_by_pieces): Add prototype.
1043         (can_store_by_pieces): Likewise.
1044         * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
1045         (can_store_by_pieces): New.
1046         (store_by_pieces): New.
1047         (clear_by_pieces): New.
1048         (clear_by_pieces_1): New.
1049         (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
1050         arbitrary compiler generated constants into memory block.
1051         (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
1052         * builtins.c (c_readstr): New.
1053         (builtin_memcpy_read_str): New.
1054         (expand_builtin_memcpy): If src is string constant and
1055         emit_block_move would move it by pieces, compute integer constants
1056         from the string and store it into memory block instead.
1057         (builtin_strncpy_read_str): New.
1058         (expand_builtin_strncpy): If N is not constant zero and c_strlen does
1059         not return INTEGER_CST, don't optimize.
1060         If N is larger than strlen(src) + 1, try to copy the string
1061         including padding with store_by_pieces.
1062         (expand_builtin_strcmp): If both arguments have side effects, don't
1063         optimize.
1064         (expand_builtin_fputs): If STR has side effects, don't optimize.
1065
1066 2000-11-29  Richard Earnshaw  <rearnsha@arm.com>
1067
1068         * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
1069         Add use of link register.
1070
1071 2000-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1072
1073         * extend.texi: Update documentation for default format attributes.
1074
1075 Tue Nov 28 21:56:45 2000  Jeffrey A Law  (law@cygnus.com)
1076
1077         * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
1078         a list, to keep track of the sections.
1079
1080 2000-11-28  Nick Clifton  <nickc@redhat.com>
1081
1082         * config/arm/arm.md (pic_load_addr): Split into
1083         pic_load_addr_arm and pic_load_addr_thumb.
1084
1085         * config/arm/arm.c (legitimize_pic_address): Generate either
1086         ARM or Thumb versions of pic_load_addr.
1087         (arm_finalize_pic): Generate either ARM or Thumb versions of
1088         pic_load_addr.
1089
1090 2000-11-28  Richard Henderson  <rth@redhat.com>
1091
1092         * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
1093         after sibcall do_pending_stack_adjust.
1094
1095 Wed Nov 29 00:08:23 2000  J"orn Rennecke <amylaar@redhat.com>
1096
1097         * jump.c (delete_insn): Check that REG_LABEL note actually contains
1098         a CODE_LABEL.
1099
1100 2000-11-28  Neil Booth  <neilb@earthling.net>
1101
1102         * c-common.h: Remove flag_digraphs.
1103         * c-decl.c: Remove flag_digraphs.  
1104         (c_decode_option): Don't set it. 
1105         * c-lex.c (init_c_lex): Don't do anything for digraphs.
1106
1107 2000-11-28  Richard Henderson  <rth@redhat.com>
1108
1109         * c-parse.in (finish_parse): Update for parse_in type change.
1110         (_yylex): Likewise.
1111
1112 2000-11-28  Neil Booth  <neilb@earthling.net>
1113
1114         * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
1115         indicating whether to scan all buffers on the stack or
1116         just one.
1117         * cppinit.c (do_includes): Update.
1118         * cppmain.c (main): Update.
1119         * cpplib.h: Update prototype.
1120
1121 2000-11-28  Richard Henderson  <rth@redhat.com>
1122
1123         * genoutput.c (validate_insn_operands): New.
1124         (gen_insn): Call it.
1125
1126         * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
1127         (divmoddi_internal): Likewise.
1128         * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
1129         * config/i960/i960.md (branch patterns): Likewise.
1130         * config/ia64/ia64.md (tbit_and_0): Likewise.
1131         (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
1132         * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
1133         * config/mips/mips.md (divmodsi4_internal): Likewise.
1134         (divmoddi4_internal): Likewise.
1135         * config/rs6000/rs6000.md (call patterns): Likewise.
1136         * config/sh/sh.md (movsi_y): Likewise.
1137         * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
1138
1139 2000-11-28  Richard Henderson  <rth@redhat.com>
1140
1141         * config.gcc: Kill residual pyramid support.
1142
1143 2000-11-28  Neil Booth  <neilb@earthling.net>
1144
1145         * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
1146         * c-decl.c (c_decode_option): Update to match.
1147         * c-lex.c (init_c_lex, yyparse): Update to match.
1148         * c-lang.c (lang_init_options): Use cpp_create_reader.
1149         * cppinit.c (cpp_init): Rename initialize.
1150         (cpp_reader_init): Rename cpp_create_reader.  Create the
1151         reader.  Initialize cpplib if appropriate.
1152         * cpplib.h (cpp_create_reader) New prototype.
1153         (cpp_init, cpp_reader_init): Delete prototypes.
1154         * cppmain.c (general_init, setup_callbacks): New functions.
1155         (main): Use them.
1156         * fix-header.c (scan_in): Change type to cpp_reader *.
1157         (read_scan_file): Update for new cpplib interface and scan_in type.
1158
1159         * cp/decl.c (parse_in): Change to cpp_reader *.
1160         (lang_decode_option): Update.
1161         * cp/lex.c (lang_init_options): Use new cpplib interface.
1162         (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
1163         * cp/spew.c (read_token): Update.
1164         * objc/objc-act.c (lang_init_options): Update new cpplib interface.
1165
1166 2000-11-28  Jakub Jelinek  <jakub@redhat.com>
1167
1168         * loop.c (load_mems): Avoid using next_label to find end_label. If
1169         jumping outside of the loop (other than loop end), don't hoist MEMs
1170         out of loop.
1171
1172 2000-11-28  Jan Hubicka  <jh@suse.cz>
1173
1174         * calls.c (expand_call): Don't disable tail recursion based
1175         on the loop nest.
1176
1177 2000-11-28  Neil Booth  <neilb@earthling.net>
1178
1179         * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
1180         (struct directive): Drop 4th argument from handlers.
1181         (do_define, do_line, do_include, do_undef, do_else, do_elif,
1182         do_endif): Similarly.
1183         (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
1184         (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
1185         (make_definition, make_undef): Take a const char*.
1186         (make_assertion): New function.
1187         (struct directive_table): Update.
1188         (main): Handle -A command line argument.
1189         (handle_directive): Drop fourth handler argument.
1190
1191 2000-11-28  Bernd Schmidt  <bernds@redhat.co.uk>
1192
1193         * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
1194         is anything but REG or MEM, but look inside STRICT_LOW_PART.
1195
1196 Tue Nov 28 09:53:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1197
1198         * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
1199         (IS_ABSOLUTE_PATHNAME): New macro.
1200         * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
1201
1202 2000-11-28  Jakub Jelinek  <jakub@redhat.com>
1203
1204         * config/i386/i386.md (truncxfsf2_2): Fix predicate.
1205
1206 2000-11-27  Jim Wilson  <wilson@redhat.com>
1207
1208         * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
1209
1210 2000-11-27  Matthias Klose  <doko@cs.tu-berlin.de>
1211
1212         * extend.texi (Nested Functions): Update URL of Usenix paper.
1213
1214 2000-11-27  Mark Mitchell  <mark@codesourcery.com>
1215
1216         * function.c (free_after_compilation): Clear x_clobber_return_insn.
1217
1218 2000-11-27  Neil Booth  <neilb@earthling.net>
1219
1220         * cppinit.c (cpp_reader_init): Remove handling of warn_paste   
1221         command line options.
1222         (cpp_handle_option): Similarly.
1223         * cpplib.h (struct cpp_options): Remove warn_paste.
1224         * cppmacro.c (paste_tokens): Apart from assembler, make
1225         unpasteable token warning mandatory.
1226
1227 2000-11-27  Neil Booth  <neilb@earthling.net>
1228
1229         * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
1230         (main): Allocate a pending directive set of these.  Use it.
1231         Merge handling of -D and -U.  Update handling of pending
1232         directives.  Free the memory after use.
1233
1234 2000-11-27  Bernd Schmidt  <bernds@redhat.co.uk>
1235
1236         * flow.c (entry_exit_blocks): Add entry for cond_local_set.
1237         (struct propagate_block_info): Add new member cond_local_set.
1238         (propagate_block): Accept new arg cond_local_set.  All callers
1239         changed.
1240         (init_propagate_block_info): Likewise.
1241         (calculate_global_regs_live): Allocate & free cond_local_set.  Always
1242         rescan if there's overlap between cond_local_set and new_live_at_end.
1243         (mark_set_1): Set bits either in cond_local_set or local_set, as
1244         appropriate.
1245         * basic-block.h (struct basic_block_def): New field cond_local_set.
1246         (propagate_block, init_propagate_block_info): Update prototypes.
1247
1248 Mon Nov 27 17:29:44 2000  kaz Kojima <kkojima@rr.iij4u.or.jp>
1249
1250         * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
1251         T register.
1252
1253 2000-11-27  Richard Earnshaw  <rearnsha@arm.com>
1254
1255         * arm.c (select_dominance_cc_mode): Handle new way that combine
1256         canonicalizes conditional compares.
1257         (arm_select_cc_mode): Likewise.
1258         * arm.md: Garbage collect some dead code.
1259         (cmp_and, cmp_ior): New patterns.
1260         (splitter for conditional move with inverted false): Use cond_exec
1261         and handle unordered comparisons.
1262
1263 Mon Nov 27 17:22:56 MET 2000  Jan Hubicka  <jh@suse.cz>
1264
1265         * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
1266         * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
1267         * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
1268         ix86_force_to_memory and ix86_free_from_memory.
1269
1270 2000-11-27  Richard Earnshaw  <rearnsha@arm.com>
1271
1272         * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
1273         arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
1274         anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3, 
1275         one_cmpldi2): Merge with splitters to create define_insn_and_split
1276         patterns.  Remove redundant splits.
1277         (peephole2 for add:SI of invalid immediate): New.
1278         (peephole2 for minus:SI of invalid immediate): New.
1279         (peephole2 for ior:SI of invalid immediate): New.
1280         (peephole for merge of move and compare): Convert ot peephole2.
1281         (addsf3, adddf3): Mark as commutative.
1282
1283         * arm.md (thumb peephole for merging stack adjustments): Convert to
1284         peephole2.
1285
1286 2000-11-27  Bernd Schmidt  <bernds@redhat.co.uk>
1287
1288         * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
1289
1290         * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
1291         (reload_cse_simplify_operands): Do nothing about operands where both
1292         the operand and the match_operand fail to give us a mode.
1293         * simplify-rtx.c (wrap_constant): New function.
1294         (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
1295         CONST describing the proper mode.
1296         (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
1297         cselib_lookup.
1298         (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
1299         htab_find_slot_with_hash.
1300         (cselib_lookup): Likewise.
1301
1302         Based on a patch from Geoff Keating <geoffk@redhat.com>:
1303         * loop.c (basic_induction_var): If a REG is set from something
1304         that is not a biv, then the REG is not a biv.  Even if it is
1305         earlier set from something that is a biv.
1306
1307 2000-11-27  Alexandre Oliva  <aoliva@redhat.com>
1308
1309         * configure.in (extra_objs): Enclose extra_headers in quotes.
1310         * configure: Rebuilt.
1311
1312 2000-11-27  Neil Booth  <neilb@earthling.net>
1313
1314         * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
1315         Combine into the new function cb_change_file.
1316         (init_c_lex): Update.
1317         * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
1318         (cpp_syshdr_flags): Delete.
1319         * cpphash.h (_cpp_do_file_change): New prototype.
1320         Move struct cpp_buffer here from...
1321         * cpplib.h (struct cpp_buffer): ... here.
1322         (enum cpp_fc_reason, struct cpp_file_loc,
1323         struct_cpp_file_change, change_file): New.
1324         (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
1325         * cpplib.c (do_line): Update for new cb_change_file callback.
1326         (_cpp_do_file_change): New function.
1327         (_cpp_pop_buffer): Update to use it.
1328         * cppmain.c (move_printer): Delete.
1329         (main): Set up single callback cb_change_file.
1330         (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
1331         (cb_change_file): New.
1332         * fix-header.c (cur_file, cb_change_file): New.
1333         (recognized_function, read_scan_file): Update.
1334         * scan-decls.c (scan_decls): Update.
1335         * scan.h (recognized_function): Update prototype.
1336
1337 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
1338
1339         * tree.h (mark_tree_hashtable): New function.
1340         * tree.c (mark_tree_hashtable_entry): New function.
1341         (mark_tree_hashtable): Likewise.
1342
1343 2000-11-27  Michael Meissner  <meissner@redhat.com>
1344
1345         * d30v-protos.h (srelational_si_operator): Correctly spell
1346         function.
1347         (urelational_si_operator): Ditto.
1348         (relational_si_operator): Ditto.
1349         (d30v_expand_prologue): Add prototype.
1350         (d30v_expand_epilogue): Ditto.
1351
1352         * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
1353
1354         * d30v.md (movcccc_*): Delete now unused patterns.
1355         (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
1356         IF_THEN_ELSE.
1357         (define_cond_exec): Use 'b' to select branch flags.
1358
1359 2000-11-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1360
1361         * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
1362         functions.
1363         (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
1364
1365         * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
1366
1367         * c-common.c (c_common_nodes_and_builtins): Declare builtin
1368         strncpy and strncmp.
1369
1370         * extend.texi (strncmp, strncpy): Document new builtins.
1371
1372 2000-11-26  Mark Mitchell  <mark@codesourcery.com>
1373
1374         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
1375         a list, to keep track of the sections.
1376         * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
1377         parameter provided will always be a canonical string.
1378
1379 2000-11-26  Neil Booth  <neilb@earthling.net>
1380
1381         * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
1382         current buffer.
1383
1384 2000-11-26  Joseph S. Myers  <jsm28@cam.ac.uk>
1385
1386         * makefile.vms: Remove EGCS references.
1387
1388 2000-11-26  Ulrich Drepper  <drepper@redhat.com>
1389
1390         * dwarf2out.c (output_file_names): New function.  Compute minimal
1391         combination of directory and file name table and emit them.
1392         (output_line_info): Remove code to emit directory and file name
1393         table and call output_file_names instead.
1394         (file_info_cmp): Helper function to sort directory names.
1395
1396 2000-11-26  Neil Booth  <neilb@earthling.net>
1397
1398         * cpplib.h (struct cpp_reader): Remove lang_asm.
1399         (struct cpp_options): Remove c89. New members lang,
1400         extended_numbers.
1401         * cppexp.c (parse_number): Use them. 
1402         * cpphash.h (VALID_SIGN): Use them.
1403         * cppinit.c (set_lang, cpp_start_read): Update.
1404         * cpplex.c (parse_string, _cpp_lex_token): Update.
1405         * cpplib.c (_cpp_handle_directive): Update.
1406         * cppmacro.c (parse_args): Update.
1407         * cppmain.c (scan_buffer): Update.
1408
1409 Sun Nov 26 10:02:37 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1410
1411         * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
1412         proper type.
1413
1414 2000-11-26  Neil Booth  <neilb@earthling.net>
1415
1416         * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
1417         * c-decl.c: Remove parse_in declaration.
1418         * c-lang.c: Similarly.
1419         * c-lex.c: Similarly.
1420         * c-parse.in: Similarly.
1421         * c-pragma.c: Similarly.
1422         * configure.in: Similarly.
1423         * cp/Make-lang.in: Similarly.
1424         * cp/spew.c: Similarly.
1425         * cp/decl2.c: Remove check for lang-c++ option.
1426         * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
1427         * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
1428         * c-lex.h: Add declaration of parse_in.
1429         * cppinit.c: Call set_lang after allocating pfile->pending.
1430         * configure: Regenerate.
1431
1432 2000-11-25  Zack Weinberg  <zack@wolery.stanford.edu>
1433
1434         * combine.c (try_combine): Remove redundant test.
1435
1436 2000-11-25  Richard Henderson  <rth@redhat.com>
1437
1438         * c-common.h (DECL_C_HARD_REGISTER): New.
1439         * c-decl.c (finish_decl): Set it for asm register variables.
1440         * c-semantics.c (emit_local_var): Test it when instantiating one.
1441
1442 2000-11-25  Richard Henderson  <rth@redhat.com>
1443
1444         * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
1445         lineno for the start of the function.
1446
1447 2000-11-25  Richard Henderson  <rth@redhat.com>
1448
1449         * dwarf2out.c (file_table, file_table_allocated): Remove.
1450         (file_table_allocated): Remove.
1451         (struct file_table): New.
1452         (decl_file_table, line_file_table): New.
1453         (print_dwarf_line_table): Use them.
1454         (size_of_line_prolog): Likewise.
1455         (output_line_info): Likewise.
1456         (add_src_coords_attributes): Likewise.
1457         (gen_subprogram_die): Likewise.
1458         (gen_variable_die): Likewise.
1459         (dwarf2out_add_library_unit_info): Likewise.
1460         (dwarf2out_line): Likewise.
1461         (lookup_filename): Take a struct file_table argument.
1462         (init_file_table): New.
1463         (dwarf2out_init): Use it.
1464
1465 2000-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1466
1467         * invoke.texi: Update sequence points references.
1468
1469 2000-11-25  Neil Booth  <neilb@earthling.net>
1470
1471         * c-common.c: Remove USE_CPPLIB conditional inclusions.
1472         * c-common.h: Similarly.
1473         * c-decl.c: Similarly.
1474         * c-lang.c: Similarly.
1475         * c-lex.c: Similarly.
1476         * c-parse.in: Similarly.
1477         * c-pragma.c: Similarly.
1478         * c-pragma.h: Similarly.
1479         * gcc.c: Similarly.
1480         * toplev.c: Similarly.
1481         * cp/cp-tree.h: Similarly.
1482         * cp/decl2.c: Similarly.
1483         * cp/lang-specs.h: Similarly.
1484         * cp/lex.c: Similarly.
1485         * cp/lex.h: Similarly.
1486         * cp/spew.c: Similarly.
1487         * java/lang-options.h: Similarly.
1488         * objc/lang-specs.h: Similarly.
1489         * objc/objc-act.c: Similarly.
1490
1491         * configure.in: Remove configure option.
1492         * config.in: Regenerate.
1493         * configure: Regenerate.
1494
1495 2000-11-25  Richard Henderson  <rth@redhat.com>
1496
1497         * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
1498         Revert 2000-11-22 change.
1499
1500 2000-11-25  Bernd Schmidt  <bernds@redhat.co.uk>
1501
1502         * config/i386/i386.h (FIXED_REGS): Make the three flags registers
1503         fixed.
1504
1505 2000-11-25  Philipp Thomas  <pthomas@suse.de>
1506         * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
1507         * configure: Rebuilt.
1508
1509 2000-11-25  Jakub Jelinek  <jakub@redhat.com>
1510
1511         * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
1512         Handle CONST_INT as second argument.
1513         * config/sparc/sparc.c (set_extends): Remove first argument.
1514         Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
1515         MOV.
1516         (sparc_check_64): Abort if first argument is not REG.
1517         If it is DImode REG, look at the lower register of the register
1518         pair.
1519
1520         * config/sparc/sparc.c (load_pic_register, restore_regs,
1521         output_return, sparc_v8plus_shift, sparc_function_profiler,
1522         sparc_function_block_profiler, sparc_block_profiler): Fix output
1523         formatting.
1524
1525 2000-11-25  Alexandre Oliva  <aoliva@redhat.com>
1526
1527         * config/sh/sh.h (TARGET_NONE): New.
1528         (TARGET_SWITCHES): For all variant-selecting switch, use
1529         TARGET_NONE to reset all other variant-selecting switch.  Added
1530         empty strings to avoid warnings.
1531         (TARGET_DEFAULT): Set to SH1_BIT.
1532
1533         * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
1534         insn-codes.h.
1535
1536         * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
1537         (sibcall_pcrel): New insn_and_split.
1538         (sibcall, sibcall_value, sibcall_epilogue): New expands.
1539
1540         * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
1541         symPLT_label2reg, call, call_value): Don't set
1542         current_function_uses_pic_offset_table.
1543         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
1544         PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
1545         takes it into account.
1546         (FINALIZE_PIC): Delete, useless.
1547         (LEGITIMATE_CONSTANT_P): Delete, unused.
1548         * config/sh/sh.c (sh_expand_prologue): Don't use
1549         current_function_uses_pic_offset_table.  Don't special-case
1550         PIC_OFFSET_TABLE_REGNUM.  Initialize it if it's ever live and
1551         PIC is enabled.
1552         (sh_expand_epilogue, initial_elimination_offset): Don't
1553         special case PIC_OFFSET_TABLE_REGNUM.
1554
1555 2000-11-25  Alexandre Oliva  <aoliva@redhat.com>, NIIBE Yutaka  <gniibe@m17n.org>
1556
1557         * config/sh/sh-protos.h (symbol_ref_operand): Declare.
1558         * config/sh/sh.md (UNSPEC_CALLER): New constant.
1559         (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
1560         (call_pcrel, call_value_pcrel): New insn_and_splits.
1561         (call, call_value): Use them.
1562         (call_site): New expand.
1563         (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
1564         * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
1565         Output call_site label.
1566         (PREDICATE_CODES): Added symbol_ref_operand.
1567         * config/sh/sh.c (symbol_ref_operand): Define.
1568         * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
1569         to CALL_INSNs in the split sequence.
1570
1571 2000-11-24  Nick Clifton  <nickc@redhat.com>
1572
1573         * config.gcc (v850-*-*): Define c_target_objs and
1574         cxx_target_objs.
1575
1576         * config/v850/t-v850: Define how to build v850-c.o
1577
1578         * config/v850/v850.h (struct data_area_stack_element): Move
1579         definition here from v850.c.
1580
1581         * config/v850v850.c: Include gcc.h to avoid compile time
1582         warning.
1583         (push_data_area): Move to v850-c.c.
1584         (pop_data_area): Move to v850-c.c.
1585         (mark_current_function_as_interrupt): Move to v850-c.c.
1586         (GHS_default_section_names): Allow to be exported.
1587         (GHS_current_section_names): Allow to be exported.
1588         (data_area_stack_elements): Allow to be exported.
1589         (ghs_pragma_section): Move to v850-c.c.
1590         (ghs_pragma_interrupt): Move to v850-c.c.
1591         (ghs_pragma_starttda): Move to v850-c.c.
1592         (ghs_pragma_startsda): Move to v850-c.c.
1593         (ghs_pragma_startzda): Move to v850-c.c.
1594         (ghs_pragma_endtda): Move to v850-c.c.
1595         (ghs_pragma_endsda): Move to v850-c.c.
1596         (ghs_pragma_endzda): Move to v850-c.c.
1597
1598         * config/v850/v850-c.c: New file: Contains v850 specific
1599         pragma parsing functions.
1600
1601 2000-11-24  Nick Clifton  <nickc@redhat.com>
1602
1603         * config.gcc (extra_objs): Remove duplicate description.
1604         (c_target_objs): New variable.  Contains target specific
1605         object files for the gcc C compiler only.
1606         (cxx_target_objs): New variable.  Contains target specific 
1607         object files for the gxx C++ compiler only.
1608
1609         * configure.in (c_target_objs): Substitute in the makefile.
1610         (cxx_target_objs): Substitute in the makefile.
1611         * configure: Regenerate.
1612
1613         * Makefile.in (C_TARGET_OBJS): Define and initialise from
1614         c_target_objs.
1615         (CXX_TARGET_OBJS): Define and initialise from
1616         cxx_target_objs.
1617         (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
1618
1619         * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
1620
1621         * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
1622         about how the use of the 'c_lex' function requires the use of
1623         the target specific, language specific object files feature of
1624         the configuration mechanism.
1625
1626 Fri Nov 24 18:50:58 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1627
1628         * gcc.c (process_command): Use F_OK, not R_OK.
1629
1630 2000-11-24  Arno J. Klaassen  <arno@heho.snv.jussieu.fr>
1631
1632         * flow.c (print_rtl_and_abort): Remove ANSIism.
1633
1634 Fri Nov 24 19:54:36 2000  Alexandre Oliva  <aoliva@redhat.com>
1635
1636         * config/sh/sh.h (GENERAL_REGISTER_P,
1637         GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
1638         FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros.  Use them
1639         all over.
1640         (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
1641         * config/sh/sh.c: Use new macros.
1642         * config/sh/sh.md: Likewise.
1643
1644 Fri Nov 24 19:46:16 2000  Alexandre Oliva  <aoliva@redhat.com>
1645
1646         * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
1647         instead of just MACH_REG in DImode.  Always refer to FPSCR_REG
1648         in PSImode.
1649
1650 Fri Nov 24 22:37:41 2000  Denis Chertykov  <denisc@overta.ru>
1651
1652         * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
1653         fixed.
1654         (machine_dependent_reorg): Wrong optimization based on
1655         NOTICE_UPDATE_CC removed. 
1656
1657 Fri Nov 24 19:48:09 2000  J"orn Rennecke <amylaar@redhat.com>
1658
1659         * jump.c (delete_computation): Re-instate deletion of feeding insn.
1660         (delete_insn): Look for REG_LABEL notes.
1661         (redirect_tablejump): Delete feeding insns.
1662
1663 2000-11-24  Bernd Schmidt  <bernds@redhat.co.uk>
1664
1665         * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
1666         call_value_pop_1): Make sure operand numbers are contiguous.
1667
1668         * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
1669
1670         * reload1.c (conflicts_with_override): New function.
1671         (emit_input_reload_insns): Use it to tighten test for validity
1672         of substituting into output of previous insn.
1673
1674         * haifa-sched.c (struct ready_list): New.
1675         (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
1676         functions.
1677         (schedule_insn): Replace args READY and N_READY with a pointer to a
1678         ready_list; return void.  Use the new functions to access the ready
1679         list.  All callers changed.
1680         (queue_to_ready, debug_ready_list): Likewise.
1681         (schedule_block): Initialize a ready_list structure.  Use new
1682         functions to access it.
1683         (max_priority): Remove unused variable.
1684         (schedule_insn): Don't set it.
1685
1686         * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
1687
1688         * combine.c (cant_combine_insn_p): New function.
1689         (try_combine): Use it.
1690
1691         * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
1692         * c-common.c (c-obstack.c): Include "obstack.h".
1693         (struct reverse_tree): Delete.
1694         (reverse_list, reverse_max_depth): Delete.
1695         (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
1696         (struct tlist, struct tlist_cache): New.
1697         (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
1698         (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
1699         warn_for_collisions, warn_for_collisions_1, new_tlist): New
1700         static functions.
1701         (verify_sequence_points): Rewritten.
1702         * fold-const.c (fold): Don't lose possibly important sequence
1703         points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
1704
1705 2000-11-24  Richard Sandiford  <rsandifo@redhat.com>
1706
1707         * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
1708         when reversing a register-to-register copy.  Reversal now disabled
1709         when the previous instruction has a REG_EQUIV.
1710
1711 2000-11-24  Nathan Sidwell  <nathan@codesourcery.com>
1712
1713         * c-parse.in (unary_expr): Move VA_ARG from here ...
1714         (primary): ... to here.
1715
1716 2000-11-23  Graham Stott  <grahams@redhat.com>
1717
1718         * expr.c (store_constructor): If a field is non addressable and
1719         the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
1720
1721 2000-11-23  Bernd Schmidt  <bernds@redhat.co.uk>
1722
1723         * flow.c (print_rtl_and_abort): New function.
1724         (verify_wide_reg, verify_local_live_at_start): Try to dump more
1725         information before aborting.
1726
1727 2000-11-23  Alexandre Oliva  <aoliva@redhat.com>
1728
1729         * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
1730         is narrower than requested mode.
1731         (gen_highpart): Abort if register mode is narrower than
1732         requested mode.
1733
1734 2000-11-23  Graham Stott  <grahams@redhat.com>
1735
1736         * cse.c (cse_insn): Initialise all regcost variables.
1737         Fix a typo add missing '='.
1738         Only compare costs if there is a replacement insn.
1739
1740 Thu Nov 23 04:33:33 2000  Alexandre Oliva  <aoliva@redhat.com>
1741
1742         * final.c (output_addr_const) [LABEL_REF]: Simplify.
1743         [MINUS]: Enclose non-CONST_INTs in parentheses.
1744         [default]: Try OUTPUT_ADDR_CONST_EXTRA.
1745         * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
1746         * varasm.c (decode_rtx_const) [CONST]: If it's not something
1747         PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
1748         instead of abort()ing.
1749         * sh.c (output_pic_addr_const): Removed.  Fixed all callers.
1750         * sh.h (OUTPUT_ADDR_CONST_EXTRA): New.  Handle the UNSPECs
1751         formerly handled in output_pic_addr_const.
1752         * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
1753         operands of MINUS in CONSTs so that decode_rtx_const() will
1754         accept them.
1755
1756 Thu Nov 23 04:10:30 2000  Alexandre Oliva  <aoliva@redhat.com>
1757
1758         * config/sh/sh.md (mova_const): New pattern.
1759         (GOTaddr2picreg): Use it.
1760         * config/sh/sh.c (broken_move): Match it.
1761         (mova_p): Don't match it.
1762         (machine_dependent_reorg): Adjust it.
1763
1764 Thu Nov 23 02:09:09 2000  Alexandre Oliva  <aoliva@redhat.com>
1765
1766         * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
1767         Moved most register-number #defines...
1768         * config/sh/sh.md (define_constants): ... here.  Use macros to
1769         refer to registers and unspecs.
1770         * config/sh/sh.c: Likewise.
1771
1772 Thu Nov 23 01:01:32 2000  J"orn Rennecke <amylaar@redhat.com>
1773
1774         * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
1775         (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
1776         (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1777         (splay-tree.o, hash.o): Likewise.
1778         GCONFIG_H: New.
1779         (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
1780         (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1781         (hashtab.o): Likewise.
1782         (gcov.o): Depend on $(CONFIG_H).
1783         * configure.in: #include insn-codes.h in tm.h.
1784
1785 2000-11-22  Nick Clifton  <nickc@redhat.com>
1786
1787         * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
1788         const char * to avoid a compile time warning.
1789
1790         * config/arm/arm.md (define_constants): Define symbolic names for
1791         the link register, last integer register and the fake CC register.
1792         Update patterns to use these symbolic names.
1793
1794 2000-11-22  Neil Booth  <neilb@earthling.net>
1795
1796         * cpplex.c (trigraph_ok): Ensure we don't warn twice.
1797         * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
1798         
1799 2000-11-22  Richard Henderson  <rth@redhat.com>
1800
1801         * haifa-sched.c (sched_analyze_1): Don't special-case calls
1802         for clobbering registers.
1803         (sched_analyze_2): Likewise.
1804         (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
1805
1806 2000-11-22  Chris Demetriou  <cgd@sibyte.com>  
1807             Neil Booth  <neilb@earthling.net>
1808
1809         * gcc.c (validate_switches): Validate multiple switches named
1810         in '|' (or) expressions in specs.  
1811         (handle_braces): If more than 1 alternative in a '|' spec
1812         matches, call do_spec1 just once.
1813
1814 2000-11-22  Michael Meissner  <meissner@redhat.com>
1815
1816         * d30v.h (TARGET_SWITCHES): Add documentation strings.
1817         (TARGET_OPTIONS): Ditto.
1818         (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
1819         -O3.
1820         
1821 Wed Nov 22 06:40:56 2000  Jeffrey A Law  (law@cygnus.com)
1822
1823         * pa.c (hppa_encode_label): Account for addition of encoding
1824         character when allocating persistent space for the new label
1825         name.
1826
1827 2000-11-22  Zack Weinberg  <zack@wolery.stanford.edu>
1828
1829         * Makefile.in, config.gcc, configure.in: Expunge remaining
1830         traces of facility for running MD files through C preprocessor.
1831
1832 2000-11-22  Joseph S. Myers  <jsm28@cam.ac.uk>
1833
1834         * gcov.texi: Add magic comments for texi2pod.pl.
1835         * Makefile.in: Add rules to generate and install gcov.1.
1836         * gcov.1: New (generated) file.
1837
1838 2000-11-21  Richard Henderson  <rth@redhat.com>
1839
1840         * regrename.c (scan_rtx_reg): Terminate the chain rather than
1841         abort on mark_read with NO_REGS.
1842
1843 2000-11-21  Mike Stump  <mrs@wrs.com>
1844
1845         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
1846         compilation with older compilers, such as /bin/cc on SunOS.
1847         * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
1848
1849 2000-11-21  Richard Henderson  <rth@redhat.com>
1850
1851         * varasm.c (record_constant): Pad the constructed
1852         constant_descriptor appropriately.
1853
1854 Wed Nov 22 00:52:55 2000  J"orn Rennecke <amylaar@redhat.com>
1855
1856         * rtl.h (traverse_md_constants): Declare.
1857         (struct md_constant): Define.
1858         * Makefile.in (HOST_RTL): Add hashtab.o .
1859         (OBJS): Add hashtab.o .
1860         (hashtab.o): New rule.
1861         (rtl.o): Depends on HASHTAB_H.
1862         * rtl.c (hashtab.h): #include.
1863         (md_constants): New static variable.
1864         (def_hash, def_name_eq_p, read_constants): New static functions.
1865         (traverse_md_constants): New function.
1866         (read_name): Do constant expansion.
1867         (read_rtx): Recognize define_constants.
1868         * gencodes.c (print_md_constant): New function.
1869         (main): Emit #defines for all constant definitions encountered.
1870         * md.texi (Constant Definitions): New node.
1871         * gensupport.c (xcalloc): New function.
1872
1873 2000-11-21  Richard Henderson  <rth@redhat.com>
1874
1875         * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
1876         * config/alpha/alpha-protos.h: Declare it.
1877         * config/alpha/alpha.md (abstf_internal): Use it.
1878         (negtf_internal): Likewise.
1879         (andnotdi3): Unstar the name.
1880         (movtf_internal): Add o/G alternative.
1881
1882 2000-11-21  Zack Weinberg  <zack@wolery.stanford.edu>
1883
1884         * stringpool.c (stringpool_statistics): Also report number and
1885         percentage of entries which are identifiers.
1886
1887 2000-11-21  Diego Novillo  <dnovillo@redhat.com>
1888
1889         * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
1890         visited before visiting it.
1891
1892 2000-11-21  Nick Clifton  <nickc@redhat.com>
1893
1894         * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
1895         TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
1896
1897         * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
1898         
1899 2000-11-21  Richard Henderson  <rth@redhat.com>
1900
1901         * c-common.c (c_unsafe_for_reeval): New function.
1902         (add_c_tree_codes): Register it.
1903         * c-common.h: Declare it.
1904         * tree.c (lang_unsafe_for_reeval): New hook.
1905         (unsafe_for_reeval): Call it.
1906         * tree.h: Declare it.
1907
1908 2000-11-21  Richard Henderson  <rth@redhat.com>
1909
1910         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
1911         references as well.
1912
1913 2000-11-21  Neil Booth  <neilb@earthling.net>
1914
1915         * do_includes: Revert to using cpp_read_file.
1916
1917 2000-11-21  Bernd Schmidt  <bernds@redhat.co.uk>
1918
1919         * loop.c (consec_sets_giv): If the reg we're examining is anything
1920         but UNKNOWN_INDUCT, do nothing.
1921         Reset the reg's type to UNKNOWN_INDUCT before returning.
1922
1923         Mostly from Vladimir Makarov (vmakarov@redhat.com)
1924         * ia64.md (attr itanium_class): Define insn types as described in
1925         Itanium docs.
1926         (all insn patterns): Use itanium_class, not type attributes.
1927         Occasionally split alternatives as necessary.
1928         (attr type): Compute from new attr itanium_class.
1929         
1930 2000-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1931
1932         * tradcpp.c (output_line_command): Mark system headers as such in
1933         `line' commands.
1934
1935 2000-11-21  Jakub Jelinek  <jakub@redhat.com>
1936
1937         * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
1938         support in as as well.
1939         * configure: Regenerate.
1940
1941 2000-11-20  Richard Henderson  <rth@redhat.com>
1942
1943         * c-lex.c (orig_filename): New variable.
1944         (init_c_lex): Set it.  Move call to cpp_start_read ...
1945         (yyparse): ... here.  New function.
1946         * c-parse.in (yyparse_1): Rename the parser entry point.
1947         * c-tree.h: Declare it.
1948
1949 2000-11-21  Jakub Jelinek  <jakub@redhat.com>
1950
1951         * expr.c (do_compare_and_jump): If op0 was replaced by promoted
1952         integer constant, use type of op1 for comparison.
1953
1954 2000-11-20  Stan Shebs  <shebs@apple.com>
1955
1956         * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
1957         * config/rs6000/x-darwin: New file, Darwin host fragment.
1958         * config.gcc (powerpc-*-darwin*): New host.
1959         * system.h (HAVE_DESIGNATED_INITIALIZERS):  Allow this to be
1960         overridden by a config file.
1961
1962 2000-11-20  Neil Booth  <neilb@earthling.net>
1963
1964         * cppmacro.c (paste_tokens): Rename from paste_payloads.
1965         Change token type after pasting spellings.
1966         (paste_all_tokens): Use it.
1967         * gcc.dg/cpp/paste2.c: Update test.
1968         * objc/execute/paste.m: New test.
1969
1970 2000-11-20  Richard Henderson  <rth@redhat.com>
1971
1972         * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
1973         dwarf_subscr_data_formats bits.
1974         * dwarfout.c (simple_type_size_in_bits): Handle a type with
1975         no computed size as size zero.
1976         (field_byte_offset): Likewise.
1977         (subscript_data_attribute): Handle a range with no upper bound.
1978
1979 2000-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1980
1981         * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
1982
1983 2000-11-20  Joseph S. Myers  <jsm28@cam.ac.uk>
1984
1985         * c-typeck.c (build_conditional_expr): When merging type
1986         qualifiers for conditional expressions between a pointer and a
1987         pointer to a void type, merge the qualifiers on the target types
1988         rather than the pointer type.  Remove obsolete conditioned out
1989         code.
1990
1991 2000-11-20  Neil Booth  <neilb@earthling.net>
1992
1993         * c-lang.c (lang_init_options): Update call to
1994         cpp_reader_init.
1995         * cppmain.c (main): Similarly.
1996         * fix-header.c (read_scan_file): Similarly.
1997         * cp/lex.c (lang_init_options): Similarly.
1998         * objc/objc-act.c (lang_init_options): Similarly.
1999         * cppexp.c (parse_number): Only warn for unextended C89.
2000         * cppinit.c (set_lang): New function.
2001         (cpp_reader_init): Take a LANG argument and pass it to set_lang.
2002         (COMMAND_LINE_OPTIONS): New option std=c++98.
2003         (cpp_handle_option): Use set_lang.
2004         * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
2005         * cppib.h (enum_c_lang): New enumeration.  Update comments.
2006
2007 2000-11-20  Will Cohen  <wcohen@redhat.com>
2008
2009         * calls.c (expand_call): Clear target only when target is in
2010         hard register and current_function_check_memory_usage is set.
2011
2012 2000-11-20  Bernd Schmidt  <bernds@redhat.co.uk>
2013
2014         * toplev.c (rest_of_compilation): Run optimize_mode_switching even
2015         if not optimizing.
2016         * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
2017
2018 2000-11-19  Richard Henderson  <rth@redhat.com>
2019
2020         * crtstuff.c (force_to_data): Use array size 1 not 0.
2021
2022         * dwarf2out.c (simple_type_size_in_bits): Handle a type with
2023         no computed size as size zero.
2024         (field_byte_offset): Likewise.
2025
2026 2000-11-20  Joseph S. Myers  <jsm28@cam.ac.uk>
2027
2028         * config.gcc: Fix another typo.
2029
2030 2000-11-19  Richard Henderson  <rth@redhat.com>
2031
2032         * c-decl.c (grokdeclarator): Support flexible array members.
2033         Use open-ended ranges for these and zero-length arrays.
2034         * c-typeck.c (push_init_level): Validate the context of
2035         initialization of a zero-length array.
2036         * tree.c (int_fits_type_p): Be prepared for missing bounds.
2037         * varasm.c (array_size_for_constructor): New.
2038         (output_constructor): Use it for arrays of unspecified length.
2039         * extend.texi (Zero Length): Mention C99 flexible array members.
2040         Document initialization in a top-level struct as valid.
2041
2042 2000-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
2043
2044         * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
2045
2046         * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
2047         stdarg and varargs functions.
2048
2049 2000-11-19  Zack Weinberg  <zack@wolery.stanford.edu>
2050
2051         * gcc.c (process_command): Define 'j' variable when
2052         MODIFY_TARGET_NAME is defined.
2053
2054 2000-11-19  Richard Henderson  <rth@redhat.com>
2055
2056         * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
2057
2058 2000-11-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2059
2060         * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
2061         calculation and allocation.
2062
2063 2000-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2064
2065         * builtins.c (c_getstr): Constify variable.
2066         * gmon-sol2.c (_mcleanup): Comment out #endif labels.
2067         * conflict.c (const_conflict_graph_arc): New typedef.
2068         (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
2069         * cppmacro.c (builtin_macro): Likewise.
2070         * dwarf2out.c (output_comp_unit): Constify variable.
2071         * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
2072         * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
2073         * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
2074         away const-ness.
2075         * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
2076         ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint. 
2077         * varasm.c (const_str_htab_hash, const_str_htab_eq,
2078         compare_constant_1, record_constant_1): Constify.
2079
2080 2000-11-18  Richard Henderson  <rth@redhat.com>
2081
2082         * c-decl.c (grokdeclarator): Special case the creation of an
2083         index for a zero-length array.
2084         * tree.c (build_index_type): Revert Oct 20 change.
2085
2086 2000-11-18  Marek Michalkiewicz  <marekm@linux.org.pl>
2087
2088         * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
2089         * config/avr/avr.c (jump_tables_size): New variable.
2090         (function_prologue): Initialize it as 0.
2091         (function_epilogue): Add it to function_size.
2092         (avr_output_addr_vec_elt): New function.  Count words in jump
2093         tables in jump_tables_size.  Move code ...
2094         * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
2095         Call avr_output_addr_vec_elt instead.
2096         * config/avr/avr.md (tablejump): Remove disabled define_expand.
2097
2098 2000-11-18  Mark Mitchell  <mark@codesourcery.com>
2099
2100         * configure.in: Make --enable-new-gxx-abi the default.
2101         * configure: Likewise.
2102
2103 2000-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2104
2105         * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
2106
2107         * tradcif.y: Include tradcpp.h.  Constify.  Make functions static.
2108         Move extern function declarations to tradcpp.h.
2109
2110         * tradcpp.c: Likewise.
2111
2112         * tradcpp.h: New file.
2113
2114 2000-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2115
2116         * c-decl.c (check_for_loop_decls): New function.
2117         * c-parse.in (for_init_stmt): New.
2118         (select_or_iter_stmt): Use for_init_stmt.
2119         * c-tree.h (check_for_loop_decls): New declaration.
2120
2121 2000-11-18  Neil Booth  <neilb@earthling.net>
2122
2123         * cppinit.c: Update comments.
2124         (cpp_reader_init): Make -imacro and -include use the standard
2125         #include "" search path.
2126         (do_includes): New function.
2127
2128 2000-11-18  Ben Elliston  <bje@redhat.com>
2129
2130         * config/sh/crt1.asm (start_l): Move PC-relative move instruction
2131         out of a branch delay slot.
2132
2133 2000-11-17  Richard Henderson  <rth@redhat.com>
2134
2135         * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
2136         (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
2137         (ASM_FILE_START): Only write out ecoff .file directive if
2138         emitting mdebug debugging.
2139
2140 2000-11-17  Richard Henderson  <rth@redhat.com>
2141
2142         * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New.  Detect
2143         whether as accepts .file/.loc and produces dwarf2 line info.
2144         * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
2145         the assembler supports it.
2146         * config.in, configure: Regenerate.
2147
2148 2000-11-17  Richard Henderson  <rth@redhat.com>
2149
2150         * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
2151
2152 2000-11-17  Jim Wilson  <wilson@redhat.com>
2153
2154         * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN): 
2155         Don't clear need_barrier is next_insn is a CALL_INSN, or has
2156         instruction type B or UNKNOWN.
2157
2158 2000-11-17  Neil Booth  <neilb@earthling.net>
2159
2160         * cpperror.c (print_file_and_line): Don't display line number if 0.
2161
2162 2000-11-17  Zack Weinberg  <zack@wolery.stanford.edu>
2163
2164         * ggc.h: Delete ggc_add_string_root and ggc_mark_string.  Add
2165         digit_vector and digit_string.
2166         * stringpool.c (digit_vector): New.
2167         (ggc_alloc_string): Use digit_string.
2168
2169         * stmt.c (digit_strings): Delete.
2170         (init_stmt): Do not initialize digit_strings.
2171         (expand_asm_operands): Use ggc.h's digit_string macro.
2172         * toplev.c (mark_file_stack): Delete.
2173         (compile_file): Don't call init_tree_codes.
2174         (main): No need to make the file stack a GC root.
2175         * tree.c (init_tree_codes): Delete.
2176         * tree.h (init_tree_codes): Delete.
2177
2178         * c-lex.c: Don't include ggc.h.
2179         (mark_splay_tree_node, mark_splay_tree): Delete.
2180         (init_c_lex): No need to ggc_strdup string constant.  Don't add
2181         file_info_tree to GGC roots.
2182         (cb_enter_file, cb_rename_file): No need to ggc_strdup
2183         ip->nominal_fname.
2184
2185         * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
2186
2187         * dbxout.c (dbxout_init),
2188         dwarf2out.c (dwarf2out_line),
2189         ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
2190         varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
2191         xcoffout.c (xcoffout_source_file),
2192         i386.c (load_pic_register):
2193         Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
2194
2195         * except.c (create_rethrow_ref),
2196         profile.c (init_edge_profiler),
2197         toplev.c (compile_file),
2198         varasm.c (named_section, assemble_static_space,
2199         assemble_trampoline_template, output_constant_def, force_const_mem),
2200         i386.c (load_pic_register),
2201         ia64.c (ia64_encode_section_info),
2202         rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
2203         rs6000_emit_prologue, rs6000_emit_epilogue),
2204         rs6000.md (load_toc_aix_si, load_toc_aix_di):
2205         Change ggc_alloc_string (var, -1) to ggc_strdup (var).
2206
2207         * profile.c (output_func_start_profiler),
2208         tree.c (make_node),
2209         i386.c (load_pic_register): No need to ggc_strdup string constant.
2210
2211 2000-11-17  Hans-Peter Nilsson  <hp@axis.com>
2212
2213         * Makefile.in (config.status): Depend on config.gcc.
2214         * configure.in <for machine in $build $host $target>: Move
2215         contents of loop into config.gcc, removing autoconf quoting.
2216         Fix changequote bug for alpha*-*-vxworks*.
2217         * configure: Regenerate.
2218         * config.gcc: New.
2219
2220 2000-11-16  Zack Weinberg  <zack@wolery.stanford.edu>
2221
2222         * c-parse.in (if_prefix): Find the filename and line number at
2223         $-2 and $-1 respectively.
2224         * diagnostic.c (error_recursion): Add missing newline, use
2225         fputs, translate string.
2226
2227 2000-11-16  Zack Weinberg  <zack@wolery.stanford.edu>
2228
2229         * stringpool.c: New file.
2230         * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
2231         (ggc_alloc_string): Now in stringpool.o.
2232         * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
2233         * ggc.h: Delete prototype of ggc_add_string_root.  #define
2234         ggc_add_string_root and ggc_mark_string to nothing.  Prototype
2235         init_stringpool and stringpool_statistics.
2236         (ggc_alloc_string): Returns a const char *.
2237         * tree.c (hash_table, do_identifier_warnings): Delete.
2238         (init_obstacks): Don't initialize the identifier hash table.
2239         (get_identifier, maybe_get_identifier, start_identifier_warnings,
2240         set_identifier_size): Now in stringpool.c.
2241         * tree.h (struct tree_string): Constify pointer field.
2242         (approx_sqrt): Prototype.
2243
2244         * Makefile.in (stringpool.o): Add rule, mention in OBJS.
2245
2246         * toplev.c (approx_sqrt): New function.
2247         (compile_file): Call stringpool_statistics if mem_report is on.
2248         (main): Call init_stringpool.
2249
2250         * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
2251         (process_directive), c-typeck.c (constructor_asmspec, struct
2252         initializer_stack, start_init), except.c (create_rethrow_ref),
2253         stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
2254         (built_in_filename), varasm,c (in_named_name,
2255         assemble_static_space, struct constant_descriptor, struct
2256         deferred_string, struct pool_constant, force_const_mem),
2257         i386.c (pic_label_name, global_offset_table_name), rs6000.c
2258         (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
2259
2260         * c-common.c (combine_strings): Combine strings in scratch
2261         buffer, then pass to build_string.
2262         * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
2263         output_func_start_profiler), stmt.c (init_stmt), alpha.c
2264         (alpha_need_linkage), arm.c (arm_encode_call_attribute),
2265         i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
2266         rs6000.c (rs6000_encode_section_info): Create string in
2267         scratch buffer, then pass to ggc_alloc_string.
2268
2269         * stmt.c (expand_asm_operands): If we must adjust the
2270         constraint strings, do so by creating a new one, not by
2271         modifying the old one in place.  Constify some char *s.
2272         * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
2273         argument.  Create string in scratch buffer, then pass to
2274         ggc_alloc_string.
2275         * config/pa/pa-protos.h: Update prototype.
2276         * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
2277         hppa_encode_label takes only one argument.
2278
2279 2000-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2280
2281         * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
2282         malloc/realloc.
2283
2284         * cpplib.c (glue_header_name): Likewise.
2285
2286         * fixincl.c (run_compiles, start_fixer): Likewise.
2287
2288         * fixlib.c (load_file_data): Likewise.
2289
2290         * mkdeps.c (munge): Likewise.
2291
2292 2000-11-17  Hans-Peter Nilsson  <hp@axis.com>
2293
2294         * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
2295         trailing ';'.  Fix formatting.
2296
2297 2000-11-16  Jim Wilson  <wilson@redhat.com>
2298
2299         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
2300         Shift masks left by one to avoid conflict.
2301
2302         * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
2303         DECL_EXTERNAL set.
2304
2305 2000-11-16  Nick Clifton  <nickc@redhat.com>
2306
2307         * config/arm/arm.c (output_arm_prologue): Note nested functions.
2308         (arm_expand_prologue): For nested functions preserve the
2309         static chain register during stack frame creation.
2310
2311         * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
2312         (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
2313         with a stack frame there is a 4 byte gap between the arg
2314         pointer and the hard frame pointer (used to preserve the
2315         static chain register during stack frame creation).
2316
2317 2000-11-16  DJ Delorie  <dj@redhat.com>
2318
2319         * rtl.c (read_rtx): Provide suitable names for unnamed
2320         define_insn and define_insn_and_split patterns, based on file
2321         and line numbers.
2322
2323 2000-11-15  Neil Booth  <neilb@earthling.net>
2324
2325         * cpplib.c (start_directive, end_directive): New functions.
2326         (_cpp_handle_directive, run_directive): Use them.
2327         (_cpp_handle_directive): Don't -Wtraditional on indented
2328         null directives.
2329         (_cpp_push_buffer): Don't re-clear was_skipping.
2330         * cpplib.h (struct cpp_reader): New member la_saved.
2331         * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
2332         directives.
2333
2334         gcc.dg/cpp/_Pragma1.c: Update.
2335         gcc.dg/cpp/_Pragma2.c: New test.
2336
2337 2000-11-15  Mark Mitchell  <mark@codesourcery.com>
2338
2339         * toplev.c (wrapup_global_declarations): Don't write out
2340         artificial static variables that aren't needed.
2341
2342 2000-11-15  Bernd Schmidt  <bernds@redhat.co.uk>
2343
2344         * ia64.c (struct group): New structure.
2345         (last_group): New static array.
2346         (group_idx): New static variable.
2347         (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
2348         New static functions.
2349         (emit_insn_group_barriers): Initialize and keep track of group_idx
2350         and last_group.
2351         Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
2352         Replace all calls to emit_insn_after that emit a group barrier to use
2353         emit_group_barrier_after.
2354         * ia64.h (MASK_B_STEP): New.
2355         (other MASK_XXX macros): Renumbered.
2356         (TARGET_B_STEP): New.
2357         (TARGET_SWITCHES): Add -mb-step.
2358
2359 2000-11-15  Fred Fish  <fnf@be.com>
2360
2361         * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
2362         machines for which fixincludes is not needed.
2363         * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
2364
2365 2000-11-15  Jason Merrill  <jason@redhat.com>
2366
2367         * diagnostic.c (finish_abort): New fn.
2368         (fancy_abort, error_recursion): Use it.
2369         * toplev.c (crash_signal): Likewise.
2370         * diagnostic.h: Declare it.
2371
2372 2000-11-13  Andrew Haley  <aph@redhat.com>
2373
2374         * tree.c (build_type_no_quals): New function.
2375         * tree.h (build_type_no_quals): Declare.
2376         * c-common.c (c_get_alias_set): When considering type
2377         compatibility for pointer types, ignore cv-qualifiers anywhere in
2378         a pointer chain.
2379
2380 2000-11-15  Graham Stott  <grahams@redhat.com>
2381
2382         * regrename.c (scan_rtx_rtx): Skip to the next chain on
2383         encountering a terminated chain.
2384
2385 2000-11-14  Mark Mitchell  <mark@codesourcery.com>
2386
2387         * configure.in: Move check for V3 above check for C++ header-file
2388         directory.
2389         * configure: Regenerated.
2390
2391 2000-11-14  DJ Delorie  <dj@redhat.com>
2392
2393         * config/v850/v850.c: Remove obstacks.
2394
2395 Tue Nov 14 21:54:31 2000  Marek Michalkiewicz  <marekm@linux.org.pl> & Denis Chertykov  <denisc@overta.ru>
2396
2397         * config/avr/avr.c (avr_case_values_threshold): New.
2398         (avr_override_options): Set it depending on options, make it large
2399         when not optimizing to work around "unable to generate reloads".
2400
2401         * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
2402         (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
2403         executable if not AVR_MEGA.  Make sure jump tables are word-aligned.
2404         (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
2405         (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
2406         (avr_case_values_threshold): Declare as extern int.
2407         (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
2408
2409         * config/avr/avr.md (tablejump): Removed.
2410         (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
2411         (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
2412         index in the table, not multiplied by 2.
2413         (casesi): Change to match the above insns.  Always enable.
2414
2415         * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
2416         Change to expect the word address of the table, multiply it by 2
2417         here and not in the caller.  Change "adiw" to faster "inc".
2418
2419 2000-11-14  Neil Booth  <neilb@earthling.net>
2420
2421         * cppexp.c (parse_defined): Call cpp_get_token not
2422         _cpp_get_token.
2423         (lex): Similarly.
2424         * cpplex.c (cpp_output_line): Similarly.
2425         * cpplib.c (glue_header_name, do_line, do_ident,
2426         parse_answer, parse_assertion): Similarly.
2427         (_cpp_handle_diretive): Don't save to lookaheads
2428         when processing directives.
2429         * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
2430         _cpp_get_token.
2431         (funlike_invocation_p): Don't save to lookaheads
2432         when pre-expanding arguments.
2433         (_cpp_get_token): Delete.
2434         (cpp_get_token): Merge contents of _cpp_get_token.
2435
2436 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
2437
2438         * builtins.c (expand_builtin_setjmp): Set
2439         current_function_calls_setjmp.
2440         (expand_builtin_longjmp): Set current_function_calls_longjmp.
2441
2442         * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
2443         (do_builtin_setjmp_setup): New insn.
2444
2445 Tue Nov 14 12:34:56 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2446
2447         * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
2448         (int_fits_type_p): For variable bounds, call force_fit_type.
2449
2450 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
2451
2452         * varasm.c (struct deferred_string): New structure.
2453         (const_str_htab): New variable.
2454         (STRHASH): New macro.
2455         (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
2456         constr_str_htab_eq, const_str_htab_del): New functions.
2457         (output_constant_def): Add DEFER argument, defer string
2458         constants until mark_constant_pool time if requested.
2459         (mark_constant_pool): Walk the insn chain even if const_str_htab is
2460         not empty.
2461         (mark_constants): If a SYMBOL_REF for deferred string is found,
2462         output it and remove from hash table.
2463         (output_addressed_constants): Set DEFER to 0 in call to
2464         output_constant_def.
2465         * rtl.h (STRING_POOL_ADDRESS_P): Define.
2466         (output_constant_def): Adjust prototype.
2467         * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
2468
2469 2000-11-14  Chandrakala Chavva  <cchavva@redhat.com>
2470
2471         * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
2472         signed types if flag_trapv.
2473
2474 2000-11-14  Zack Weinberg  <zack@wolery.stanford.edu>
2475
2476         * tradcpp.c, tradcif.y: Update FSF mailing address, delete
2477         reference to GPLv1.
2478
2479 2000-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
2480
2481         * c-common.h (CTI_C_SIZE_TYPE): Update comment.
2482
2483 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
2484
2485         * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
2486         to array of pool_constnat pointers.
2487         (struct pool_constant): Add next_sym and label members.
2488         (struct pool_sym): Remove.
2489         (init_varasm_status): Change pool_sym into pool_constant.
2490         (mark_pool_constant): Mark pc->label string as well.
2491         (mark_pool_sym_hash_table): Remove.
2492         (mark_varasm_status): Remove it from caller as well.
2493         (free_varasm_status): Don't free pool_sym structures.
2494         (force_const_mem): Don't allocate pool_sym structure, instead
2495         fill pool->label and chain it into rtx_sym hash table.
2496         (find_pool_constant, mark_constant_pool): Use pool_constant instead
2497         of pool_sym.
2498
2499 2000-11-14  Jakub Jelinek  <jakub@redhat.com>
2500
2501         * reload1.c (emit_input_reload_insns): Honour forcing of constants
2502         into memory by PREFERRED_RELOAD_CLASS NO_REGS.
2503
2504 2000-11-14  Michael Matz  <matzmich@cs.tu-berlin.de>
2505
2506         * dominance.c: New file.
2507         * Makefile.in (OBJS): Add dominance.o.
2508
2509         * flow.c (compute_flow_dominators): Remove.
2510         (compute_immediate_dominators): Remove.
2511         (compute_immediate_postdominators): Remove.
2512         * basic-block.h: Remove their prototypes.
2513         (calculate_dominance_info): Add prototype.
2514
2515         * dce.c (eliminate_dead_code): Change calls to above functions.
2516         Don't compute dominators but only immediate dominators.
2517         * flow.c (flow_loops_find): Change callers.
2518         * gcse.c (compute_code_hoist_data): Likewise.
2519         * haifa-sched.c (schedule_insns): Likewise.
2520         * ifcvt.c (if_convert): Likewise.
2521         * ssa.c (convert_to_ssa): Likewise, and only compute immediate
2522         dominators.
2523
2524 2000-11-14  Richard Henderson  <rth@redhat.com>
2525
2526         * stmt.c (warn_if_unused_value): Don't warn if the expression
2527         has side effects.
2528
2529         * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
2530         (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
2531
2532 2000-11-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2533
2534         * loop.c (basic_induction_var): Revert accidental checkin.
2535
2536 2000-11-13  Hans-Peter Nilsson  <hp@axis.com>
2537
2538         * c-lex.c (cb_leave_file): Harmonize conditions and order of
2539         statements to those of process_directive for (action == act_pop).
2540
2541         * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
2542
2543         * local-alloc.c (equiv_init_movable_p): References to CC0 are not
2544         movable.
2545
2546 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2547
2548         * c-parse.in (stmts_and_decls): Deprecate use of label at end of
2549         compound statement.
2550
2551 2000-11-13  Neil Booth  <neilb@earthling.net>
2552
2553         * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
2554         cases return without MI check.
2555         * cpplib.c (do_diagnostic): Take boolean of whether to
2556         print the directive name.
2557         (do_error, do_warning): Update.
2558         (do_pragma_dependency): Use it.
2559         * cpplib.h (VARARGS_FIRST): Delete.
2560         (struct cpp_token): Delete integer.
2561         * cppmacro.c (enter_macro_context): Move disabled check
2562         to _cpp_get_token.
2563         (_cpp_get_token): Simplify into a single loop.
2564
2565 2000-11-13  Richard Earnshaw  <rearnsha@arm.com>
2566
2567         * configure.in:  Use 'test -f' not '[ -e'.
2568         * configure: Regenerated.
2569
2570 2000-11-13  DJ Delorie  <dj@redhat.com>
2571
2572         * config/mn10300/mn10300.md (store_movm): Note which registers are
2573         really used or clobbered.
2574
2575 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2576
2577         * c-parse.in (ends_in_label): Remove from %union and %type.
2578         (decls, stmts, lineno_stmt_or_labels, xstmts,
2579         lineno_stmt_or_label, stmt_or_label): Remove.
2580         (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
2581         lineno_stmt_decl_or_labels_ending_decl,
2582         lineno_stmt_decl_or_labels_ending_label,
2583         lineno_stmt_decl_or_labels_ending_error,
2584         lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
2585         lineno_stmt, lineno_label): New.
2586         (compstmt_nostart): Use compstmt_contents_nonempty.
2587
2588 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2589
2590         * c-common.c (boolean_increment): New function.
2591         * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
2592         CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
2593         (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
2594         (boolean_increment): Declare.
2595         * c-convert.c (convert): Allow for BOOLEAN_TYPE.
2596         * c-decl.c (init_decl_processing): Create boolean nodes.
2597         (finish_struct): Allow for _Bool bitfields.
2598         * c-parse.in (reswords): Add _Bool.
2599         (rid_to_yy): Allow for RID_BOOL.
2600         * c-typeck.c (default_conversion): Make booleans promote to int.
2601         (convert_arguments, build_unary_op, build_modify_expr,
2602         convert_for_assignment): Allow for booleans.
2603         * ginclude/stdbool.h: Make conforming to C99.
2604
2605 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2606
2607         * c-parse.in (c99_block_start, c99_block_end,
2608         c99_block_lineno_labeled_stmt): New.
2609         (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
2610         (stmt): Split off selection and iteration statements into...
2611         (select_or_iter_stmt): New.  Use c99_block_lineno_labeled_stmt.
2612
2613 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2614
2615         * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
2616         -time): Update.
2617
2618 2000-11-13  Richard Earnshaw  <rearnsha@arm.com>
2619
2620         * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
2621         Rewrite to avoid use of match_dup.  Don't try to tie registers that
2622         are not in the same mode.
2623
2624 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2625
2626         * invoke.texi: Update lists of languages and suffixes supported.
2627
2628 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2629
2630         * configure.in: Take toplevel configure arguments from the
2631         environment to create configargs.h and substitute
2632         gcc_config_arguments, taking account of any existing configargs.h
2633         if reconfiguring.
2634         * configure: Regenerate.
2635         * gccbug.in: Include toplevel configure arguments in gccbug.
2636
2637 2000-11-13  Richard Earnshaw  <rearnsha@arm.com>
2638
2639         * varasm.c (struct constant_descriptor): Put CONTENTS inside a
2640         union to make it well-aligned.  Update all uses.
2641
2642 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2643
2644         * c-parse.in (initelt): Give appropriate pedantic warnings,
2645         depending on flag_isoc99, for non-ISO syntax and for C99 syntax
2646         outside C99 mode.
2647         (designator): If pedantic, pedwarn for a designator specifying a
2648         range of elements.
2649         * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
2650         these cases.
2651         * extend.texi: Document the C99 syntax as the preferred syntax,
2652         and the pre-2.5 syntax as obsolete.  Mention use of designator
2653         lists for nested subobjects.
2654
2655 2000-11-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2656
2657         * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
2658         Add ATTRIBUTE_PRINTF.
2659         * tradcpp.c (v_message, warning, error, fatal, error_with_line):
2660         Add ATTRIBUTE_PRINTF*.
2661
2662 2000-11-12  Mark Mitchell  <mark@codesourcery.com>
2663
2664         * function.c (assign_parms): When calling put_var_into_stack, make
2665         sure that there are no hidden pending sequences.
2666
2667 2000-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2668
2669         * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
2670         BUILT_IN_RINDEX.  Add missing checks for BUILT_IN_STRCHR and
2671         BUILT_IN_STRRCHR.
2672
2673         * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
2674
2675         * c-common.c (c_common_nodes_and_builtins): Declare index and
2676         rindex when nonansi builtins are allowed.
2677
2678         * extend.texi (index, rindex): Document new builtins.
2679
2680 2000-11-12  Mark Mitchell  <mark@codesourcery.com>
2681
2682         * configure.in: Turn on libstdc++ V3 by default.
2683         * configure: Regenerated.
2684
2685         * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
2686
2687 2000-11-12  Jakub Jelinek  <jakub@redhat.com>
2688
2689         * reload1.c (set_label_offsets): Go inside of PARALLELs.
2690
2691 2000-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2692
2693         * invoke.texi: Clean up option summary.
2694
2695 2000-11-12  Nick Clifton  <nickc@redhat.com>
2696
2697         * config/mcore/mcore.c: Fix comment formating, and adjust sequence
2698         of #include headers.
2699
2700 2000-11-12  Marc Espie <espie@openbsd.org>
2701
2702         * configure.in: Fix filds test.
2703         * configure: Regen.
2704
2705 2000-11-12  Mark Mitchell  <mark@codesourcery.com>
2706
2707         * jump.c (delete_computation): Don't assume that just becuase an
2708         instruction sets a register, that register is dead.
2709
2710 2000-11-12  Neil Booth  <neilb@earthling.net>
2711
2712         * cppexp.c: Don't worry about pfile->skipping.
2713         * cpplib.c (struct if_stack): Make was_skipping unsigned char.
2714         (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
2715         for handled directives.
2716         (skip_rest_of_line): Use _cpp_lex_token after popping contexts
2717         and releasing lookaheads.
2718         (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
2719         (do_else, do_elif, push_conditional): Update logic.
2720         (do_endif): Set buffer->was_skipping rather than pfile->skipping.
2721         (unwind_if_stack): Inline into cpp_pop_buffer.
2722         (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
2723         * cpplex.c (_cpp_lex_token): Clear skipping on EOF.  Handle
2724         multiple-include optimisation.
2725         * cpplib.h (struct cpp_buffer): New member was_skipping.
2726         * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping.  This
2727         works because skipping == 0 in directives.
2728         (_cpp_release_lookahead): Renamed from release_lookahead.
2729         (cpp_get_token): No need to check skipping as _cpp_get_token does
2730         this for us.  No need to handle MI optimisation.
2731
2732 Sat Nov 11 21:14:02 2000  Mark P Mitchell  <mark@codesourcery.com>
2733
2734         * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
2735         declarations that use `__MATH_EXCEPTION' in their prototypes, too.
2736         * fixinc/fixincl.x: Regenerated.
2737
2738 2000-11-11  Bruce Korb  <bkorb@gnu.org>
2739
2740         * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
2741         (avoid_wchar_t_type): ditto
2742         * fixinc/fixinc.irix: obsoleted
2743
2744 2000-11-11  Zack Weinberg  <zack@wolery.stanford.edu>
2745
2746         * configure.in: Don't add $outputs to all_lang_makefiles.  Add
2747         $srcdir/$s/Makefile.in if it exists.
2748         * configure: Regenerate.
2749
2750 Sat Nov 11 18:41:20 2000  Mark P Mitchell  <mark@codesourcery.com>
2751
2752         * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
2753
2754 2000-11-11  Jason Merrill  <jason@redhat.com>
2755
2756         * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
2757         give the parm a register and then call put_var_into_stack.
2758         * stmt.c (expand_decl): Likewise.
2759
2760 2000-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2761
2762         * gcc.texi: Adjust wording.
2763
2764 2000-11-11  Mark Mitchell  <mark@codesourcery.com>
2765
2766         * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
2767         * fininc/fixincl.x: Regenerated.
2768
2769 2000-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2770
2771         * invoke.texi: Correct spelling of -foptimize-register-move.
2772
2773 2000-11-11  Neil Booth  <neilb@earthling.net>
2774
2775         Remove CPP_PLACEMARKERs.
2776
2777         * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
2778         * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
2779         * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
2780                    Similarly.
2781         * cpplib.h: Remove CPP_PLACEMARKER.
2782         (struct lexer_state): Rename skip_newlines to next_bol.
2783         * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
2784         Simplify prev_white handling as a result.
2785         (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
2786         (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
2787         (parse_args): Similarly.  Update argument count tests.
2788         (enter_macro_context): Return 2 to indicate an empty macro.
2789         (replace_args): Don't bother pre-expanding an empty argument.
2790         Handle placemarkers and ## extension during pre-expansion.
2791         (cpp_get_token): Handle empty macro expansions.  Don't worry
2792         about CPP_PLACEMARKERs.
2793         (_cpp_create_definition): Empty macros are now empty.
2794         (cpp_macro_defintion): Don't special case empty macros.
2795         * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
2796         * c-lex.c: Similarly.
2797
2798 2000-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2799
2800         * gcc.texi, invoke.texi: Add new section discussing language
2801         standards; link to it where appropriate; refer to ISO C instead of
2802         ANSI C.
2803
2804 2000-11-11  Alexandre Oliva  <aoliva@redhat.com>
2805
2806         * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
2807         into account.
2808
2809         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
2810         modes.
2811
2812 2000-11-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2813
2814         * gcc.texi, gcov.texi: Update dates and version numbers.
2815
2816 2000-11-10  Zack Weinberg  <zack@wolery.stanford.edu>
2817
2818         * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC.  Look for
2819         flex and bison, specifically, first in a unified build and
2820         then installed on the system.
2821         * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@.  Rename
2822         LEXFLAGS to FLEXFLAGS.  Adjust ORDINARY_FLAGS_TO_PASS to
2823         match.
2824
2825         (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
2826         cppdefault.o): Remove pointless sed munging of source file
2827         name.
2828
2829 2000-11-10  Bernd Schmidt  <bernds@redhat.co.uk>
2830
2831         * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
2832         for address reloads.  Push replacements for REG_INC notes.
2833         (regno_clobbered_p): New arg SETS.  Examine SETs if it's nonzero.  All
2834         callers changed.
2835         * reload1.c (choose_reload_regs): Registers set in the insn can't be
2836         used for RELOAD_OTHER reloads.
2837
2838 2000-11-10  Mark Mitchell  <mark@codesourcery.com>
2839
2840         * c-dump.h: New file.
2841
2842 2000-11-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2843
2844         * alpha.c (check_float_value): Use memcpy, not bcopy.
2845         * arm.c (output_move_double): Likewise.
2846         * arm.md: Likewise.
2847         * m88k.c (legitimize_operand): Likewise.
2848         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
2849         * m88k.md: Likewise.
2850         * mips.c (override_options): Likewise.
2851         * mips.md: Likewise.
2852         * romp.c (output_fpops): Likewise.
2853         * rs6000.c (rs6000_override_options): Likewise.
2854         * sh.md: Likewise.
2855         * vax.c (check_float_value): Likewise.
2856
2857         * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
2858         * expmed.c (synth_mult): Likewise.
2859         * final.c (add_bb_string): Likewise.
2860         * genattr.c (main): Likewise.
2861         * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
2862         Likewise.
2863         * jump.c (thread_jumps): Likewise.
2864         * prefix.c (save_string): Likewise.
2865         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
2866         * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
2867         * reload1.c (reload, eliminate_regs): Likewise.
2868
2869 2000-11-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2870
2871         * gcc.texi (Service): Update to reflect current practice and
2872         location of the GNU service directory.
2873
2874 2000-11-09  Bernd Schmidt  <bernds@redhat.co.uk>
2875
2876         * regrename.c (build_def_use): Mark contents of REG_INC notes as
2877         needing replacement.
2878
2879         * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
2880         a no-op move if regs are equal.
2881         * toplev.c (rest_of_compilation): Do the noop moves elimination pass
2882         when calling jump after post-reload splitting.
2883
2884 2000-11-09  Jan van Male  <jan.vanmale@fenk.wau.nl>
2885
2886         * c-tree.texi: Fix typos.
2887         * extend.texi: Likewise
2888         * gcov.texi: Likewise
2889         * rtl.texi: Likewise
2890         * tm.texi: Likewise
2891
2892 2000-11-09  Hans-Peter Nilsson  <hp@axis.com>
2893
2894         * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
2895         in_system_header and flags[1] before dereferencing flags[2].
2896
2897 2000-11-09  Matthew Hiller <hiller@redhat.com>
2898
2899         * reload1.c (reload_combine): Fixed calculation of
2900         first_index_reg, last_index_reg.
2901
2902 2000-11-09  Mark Mitchell  <mark@codesourcery.com>
2903
2904         * c-dump.c (dequeue_and_dump): Dump function bodies.
2905
2906         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2907         (c-dump.o): New target.
2908         * c-common.h (flag_dump_translation_unit): New variable.
2909         (C_TYPE_QUALS): New macro.
2910         (strip_array_types): New function.
2911         (DECL_C_BIT_FIELD): New macro.
2912         (SET_DECL_C_BIT_FIELD): Likewise.
2913         (CLEAR_DECL_C_BIT_FIELD): Likewise.
2914         (dump_info_p): New typedef.
2915         (dump_tree_fn): Likewise.
2916         (lang_dump_tree): New variable.
2917         (dump_node_to_file): New function.
2918         * c-common.c (flag_dump_translation_unit): Define it.
2919         (strip_array_types): New function.
2920         * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
2921         * c-lang.c (finish_file): Call dump_node_to_file if
2922         flag_dump_translation_unit.
2923         * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
2924         * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
2925         * c-dump.c: New file.
2926
2927 2000-11-09  Christopher Faylor <cgf@cygnus.com>
2928
2929         * config/i386/cygwin.h: Add mingw startfile prefix.
2930
2931 2000-11-09  Richard Henderson  <rth@redhat.com>
2932
2933         * flow.c (invalidate_mems_from_set): Split out from ...
2934         (mark_set_1): ... here.
2935         (try_pre_increment_1): Use it.  Use propagate_block_delete_insn
2936         instead of turning insn into a NOTE_INSN_DELETED.
2937
2938 2000-11-10  Joseph S. Myers  <jsm28@cam.ac.uk>
2939
2940         * extend.texi, invoke.texi: Move documentation of builtin versions
2941         of C library functions to one place and update.
2942
2943 2000-11-09  Richard Henderson  <rth@redhat.com>
2944
2945         * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
2946         the types themselves to discover type equivalence.
2947
2948 2000-11-09  Mike Stump  <mrs@wrs.com>
2949
2950         * Makefile.in (distclean): Remove a few extra leftovers.
2951
2952 2000-11-09  Richard Henderson  <rth@redhat.com>
2953
2954         * recog.c (validate_replace_rtx_1): Consider subregs when
2955         replacing a register with a constant inside a sign/zero_extend.
2956
2957         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2958
2959 2000-11-09  Geoffrey Keating  <geoffk@redhat.com>
2960
2961         * c-decl.c (finish_struct): When a structure is completed,
2962         check all its variant types for completeness.
2963
2964 2000-11-09  Neil Booth  <neilb@earthling.net>
2965
2966         * cpphash.c: Move cpp_defined here from cpplib.c.
2967         * cpplib.c: Update comments, move cpp_defined to cpphash.c.
2968         * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
2969         * cppmacro.c (cpp_get_token): Update comments, no need now
2970         to catch the CPP_EOF meaning EOL case.
2971
2972 2000-11-08  Geoffrey Keating  <geoffk@redhat.com>
2973
2974         * config/sparc/sparc.c (sparc_va_arg): When the required alignment
2975         is more than that provided, copy to a temporary.
2976
2977 2000-11-09  Alexandre Oliva  <aoliva@redhat.com>
2978
2979         * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
2980         interpreting $out as a macro assignment.
2981         * Makefile.in (T_TARGET): New auxiliary macro and target.
2982         (all): Add a target right in the beginning, so that we don't build
2983         T_TARGET by default.
2984
2985 2000-11-09  Graham Stott  <grahams@redhat.com>
2986
2987         * config/i386/i386.md (mmx_pinsrw): Output operands in correct
2988         order for -mintel-syntax.  Remove comment now that the operand
2989         order has been checked.
2990         (mmx_pextrw): Likewise.
2991         (mmx_pshufw): Likewise.
2992
2993 2000-11-09  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
2996         (c_getstr): New function.
2997         (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
2998         If both arguments are constant string, optimize out.
2999         (expand_builtin_strchr, expand_builtin_strrchr): New functions.
3000         (expand_builtin_strpbrk): Use c_getstr, do nothing if
3001         -fcheck-memory-usage.
3002         (expand_builtin_fputs): Likewise.
3003         (expand_builtin_strcmp): Add MODE argument.
3004         Use even if !HAVE_cmpstrsi.
3005         Optimize the case when both arguments are constant strings.
3006         (expand_builtin): Adjust expand_builtin_strcmp caller.
3007         Call expand_builtin_strchr and expand_builtin_strrchr.
3008         * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
3009         builtins.
3010         * builtins.def (BUILT_IN_STRRCHR): Add.
3011
3012 2000-11-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3013
3014         * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
3015
3016 2000-11-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3017
3018         * calls.c (expand_call, emit_library_call_value_1), collect2.c
3019         (scan_prog_file), config/a29k/a29k.c (print_operand),
3020         config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
3021         instead of bcopy ().
3022         * real.h: Use memcmp () instead of bcmp ().
3023         * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
3024         (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
3025         ultrasparc_sched_init, ultrasparc_sched_reorder),
3026         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
3027         instead of bzero ().
3028         * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
3029         instead of rindex ().
3030         * configure.in: Don't check for bzero, bcmp, index or rindex.
3031         * configure, config.in: Regenerate.
3032         * system.h: Don't include declarations for bzero, bcmp, index or
3033         rindex.
3034         * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
3035         bzero, bcmp, index or rindex.
3036
3037 Wed Nov  8 21:58:20 2000  Christopher Faylor <cgf@cygnus.com>
3038
3039         * config/i386/cygwin.h: Add -no-win32 switch.  Separate -mno-cygwin
3040         include and library paths from -mcygwin case.  Parameterize some
3041         declarations to avoid warnings.  Use standard locations for include and
3042         lib dirs.
3043
3044 2000-11-08  Nick Clifton  <nickc@redhat.com>
3045
3046         * config/arm/arm.md (mulsidi3adddi): Change output operand
3047         constraint from "=&" to "+&".
3048         (umulsidi3adddi): Change output operand constraint from "=&" to
3049         "+&".
3050
3051 2000-11-08  Richard Henderson  <rth@redhat.com>
3052
3053         * flow.c (init_propagate_block_info): Protect the rtx stored in
3054         mem_set_list from modification by find_auto_inc.
3055         (mark_set_1): Likewise.
3056
3057 2000-11-08  Neil Booth  <neilb@earthling.net>
3058
3059         Move directive handling into the lexer itself.
3060
3061         * cpplex.c (_cpp_lex_token): Handle directives directly.
3062         In the case of a directive interrupting a function-like
3063         macro invocation, use extra_char since read_ahead is
3064         used to store the '#'.  Return a CPP_EOF in this case.
3065         * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
3066         (cpp_get_token): Don't handle directives here.
3067         * cpplib.h: Remove CPP_DHASH token type.
3068
3069 Wed Nov  8 21:53:41 MET 2000  Jan Hubicka  <jh@suse.cz>
3070
3071         * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
3072         formed using PRE_MODIFY too.
3073
3074 2000-11-08  Mark Mitchell  <mark@codesourcery.com>
3075
3076         * c-tree.texi (VAR_DECL): Describe representation of GCC's
3077         extension for placing variables in particular registers.
3078
3079         * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
3080         unprototyped C functions with no parameters.
3081
3082 2000-11-08  Jakub Jelinek  <jakub@redhat.com>
3083
3084         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
3085         before passing to fprintf.
3086
3087 2000-11-08  Jakub Jelinek  <jakub@redhat.com>
3088
3089         * function.c (expand_function_start): Cast GET_MODE_SIZE to
3090         HOST_WIDE_INT before negating it.
3091
3092 2000-11-08  Jakub Jelinek  <jakub@redhat.com>
3093
3094         * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
3095         passed in multiple non-contiguous locations.
3096
3097 2000-11-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3098
3099         * README.gnat: Remove file.
3100
3101 2000-11-08  Alexandre Oliva  <aoliva@redhat.com>
3102
3103         * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
3104         in-place.
3105
3106 2000-11-07  Richard Henderson  <rth@redhat.com>
3107
3108         * dwarfout.c (INSN_LABEL_FMT): Remove.
3109         (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
3110         (dwarfout_label): Remove.
3111         * dwarfout.h: Remove it's prototype.
3112         * dwarf2out.c (INSN_LABEL_FMT): Remove.
3113         (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
3114         (dwarf2out_label): Remove.
3115         * dwarf2out.h: Remove it's prototype.
3116         * final.c (final_scan_insn): Don't call dwarf[2]out_label.
3117
3118 2000-11-07  Richard Henderson  <rth@redhat.com>
3119
3120         * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
3121         search on the unwind region section.
3122
3123         * config/ia64/ia64.md (movbi): Add r/r alternative.
3124         (cmovdi_internal_astep): Describe all combinations of register
3125         classes for sources & destinations; remove matching constraints.
3126         (cmovdi_internal): Likewise.
3127
3128         * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
3129
3130 2000-11-07  Richard Henderson  <rth@redhat.com>
3131
3132         * c-lang.c (start_cdtor, finish_cdtor): New functions.
3133         (finish_file): Use them in building constructor/destructor functions.
3134
3135         * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
3136         LD_FINI_SWITCH): Move ...
3137         * config/alpha/osf.h: ... here.
3138         * config/alpha/alpha-interix.h: Don't undef them.
3139
3140 2000-11-07  Jeffrey Oldham  <oldham@oz.codesourcery.com>
3141
3142         * config/mips/t-iris6 (FPBIT): New.  Added so that __unorddf2 is
3143         included in libgcc.a.
3144         (DPBIT): Likewise.
3145         (dp-bit.c): Likewise.
3146         (fp-bit.c): Likewise.
3147
3148 2000-11-07  Nick Clifton  <nickc@redhat.com>
3149
3150         * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
3151         (INTERNAL_ASM_OP): Add missing tab.
3152
3153 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3154
3155         * alias.c (init_alias_analysis), calls.c (expand_call,
3156         emit_library_call_value_1), combine.c (init_reg_last_arrays),
3157         cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
3158         (init_output_buffer, set_diagnostic_context), dwarf2out.c
3159         (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
3160         (init_emit_once), fold-const.c (mul_double, div_and_round_double),
3161         function.c (assign_parms), gcse.c (compute_can_copy,
3162         alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
3163         compute_hash_table, compute_set_hash_table,
3164         compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
3165         (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
3166         clear_units, schedule_block), integrate.c (initialize_for_inline,
3167         expand_inline_function), jump.c (thread_jumps), local-alloc.c
3168         (local_alloc), loop.c (combine_movables, count_loop_regs_set,
3169         load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
3170         regclass.c (init_reg_sets, init_reg_sets_1, regclass,
3171         record_reg_classes, allocate_reg_info), reload.c
3172         (get_secondary_mem, remove_address_replacements, find_reloads),
3173         reload1.c (reload, set_initial_label_offsets, finish_spills,
3174         reload_as_needed, choose_reload_regs_init,
3175         reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
3176         (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
3177         (rename_registers), stmt.c (expand_end_case), unroll.c
3178         (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
3179         () instead of bzero ().
3180
3181 2000-11-07  Neil Booth  <neilb@earthling.net>
3182
3183        * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
3184
3185 2000-11-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3186
3187         * c-common.c (combine_strings): Only warn about long strings for C.
3188
3189 Tue Nov  7 19:44:30 2000  J"orn Rennecke <amylaar@redhat.com>
3190
3191         * combine.c (distribute_notes): Fix typo in last change.
3192
3193 2000-11-07  Geoff Keating  <geoffk@redhat.com>
3194
3195         * config/rs6000/rs6000.md (movdi_internal32+1): Use
3196         operand_subreg_force rather than gen_rtx_SUBREG.
3197         (movdi_internal32+2): Likewise.
3198
3199 2000-11-07  Philip Blundell  <philb@gnu.org>
3200
3201         * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
3202         * config/arm/linux-aout.h: Likewise.
3203         * configure: Regenerate.
3204
3205 2000-11-07  Philipp Thomas  <pthomas@suse.de>
3206
3207         * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
3208         accepted my the gettext maintainer.
3209
3210 2000-11-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3211
3212         * builtins.c (expand_builtin_strpbrk): New function.
3213         (expand_builtin): Handle BUILT_IN_STRPBRK.
3214
3215         * builtins.def (BUILT_IN_STRPBRK): New entry.
3216
3217         * c-common.c (c_common_nodes_and_builtins): Declare builtin
3218         strpbrk.
3219
3220 2000-11-07  David O'Brien  <obrien@dragon.nuxi.com>
3221
3222         * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
3223         * POTFILES.in: Add config/alpha/freebsd.h
3224         * configure.in: Add alpha*-freebsd support.
3225         * configure: Regenerate.
3226
3227 2000-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3228
3229         * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
3230         copy of ptr_type_node rather than ptr_type_node itself.
3231
3232 Tue Nov  7 06:29:24 2000  J"orn Rennecke <amylaar@redhat.com>
3233
3234         * combine.c (recog_for_combine): Allocate uninitialized vector with
3235         rtvec_alloc.
3236         * recog.c (apply_change_group): Likewise.
3237
3238 Tue Nov  7 06:24:02 2000  J"orn Rennecke <amylaar@redhat.com>
3239
3240         * flow.c (verify_local_live_at_start): Back out last change.
3241         * combine.c (distribute_notes): When parts of a hard reg are
3242         neither set nor referenced in PLACE, search backwards for a
3243         place to put a REG_UNUSED note; if none found, ask for flow
3244         info refresh.
3245
3246 Mon Nov  6 20:08:13 2000  J"orn Rennecke <amylaar@redhat.com>
3247
3248         * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
3249         with (clobber (match_scratch...)).
3250
3251 2000-11-06  Neil Booth  <neilb@earthling.net>
3252
3253         * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
3254         error status.
3255
3256 2000-11-06  Neil Booth  <neilb@earthling.net>
3257
3258         * tradcpp.c (special_symbol): Assign an null string rather
3259         than writing to an unallocated buffer.
3260
3261 2000-11-06  Neil Booth  <neilb@earthling.net>
3262
3263         * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
3264         CPP_MACRO_ARG case.
3265
3266 2000-11-06  Neil Booth  <neilb@earthling.net>
3267
3268         * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
3269         tok.val.arg_no as appropriate.
3270         * cppexp.c (lex): Similarly.
3271         * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
3272         cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
3273         * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
3274         cpp_macro_definition): Similarly.
3275         * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
3276
3277 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
3278
3279         * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
3280         operands[1] is constant, calculate the sum and generate movdi.
3281         (addsi3): Similarly.  Use SImode in call to arith_4096_operand.
3282         (subsi3): Use SImode in call to arith_4096_operand.
3283
3284 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
3285
3286         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
3287         adjust %o1, not %o0 if the return type is large structure.
3288
3289 2000-11-06  Jakub Jelinek  <jakub@redhat.com>
3290
3291         * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
3292         update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
3293
3294 Sat Sep 23 19:10:20 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz  <marekm@linux.org.pl>
3295
3296         * expmed.c (expand_divmod): For signed divide by 2, prefer
3297         a branch and fewer shifts if branches are very cheap.
3298
3299 2000-11-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3300
3301         * Makefile.in: Remove all targets related to building
3302         distributions and diffs, or INSTALL.
3303         * INSTALL, install1.texi: Remove.
3304         * configure.in: Remove mention of distdir.
3305         * configure: Regenerate.
3306         * objc/Make-lang.in: Remove mention of distdir.
3307
3308 2000-11-04  Neil Booth  <neilb@earthling.net>
3309
3310         * cpp.texi: Update for _Pragma.
3311
3312 2000-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3313
3314         * gcc.texi (Contributing): Update URL for projects web page.
3315
3316 2000-11-04  Neil Booth  <neilb@earthling.net>
3317
3318         * cpplex.c (parse_string): Don't allow multiline strings in
3319         #include family directives.
3320
3321 2000-11-04  Neil Booth  <neilb@earthling.net>
3322
3323         * cpplib.c (do_line): Only warn pedantically if not reading
3324         preprocessed input.
3325
3326 2000-11-04  Alexandre Oliva  <aoliva@redhat.com>
3327
3328         * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
3329         RETURN_POPS_ARGS().
3330
3331 2000-11-03  Zack Weinberg  <zack@wolery.stanford.edu>
3332
3333         * builtins.c (expand_builtin_strlen): Remove unused mode
3334         argument.
3335         * gcc.c (process_command): Remove unused variable.
3336         * fold-const.c: Include expr.h.
3337         * recog.c: Include reload.h.
3338         * Makefile.in (recog.o, fold-const.o): Update deps.
3339
3340 2000-11-02  Geoffrey Keating  <geoffk@cygnus.com>
3341
3342         * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
3343
3344 Fri Nov  3 13:41:04 2000  Mark P Mitchell  <mark@codesourcery.com>
3345
3346         * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
3347         handling.
3348         (STARTFILE_SPEC): Likewise.
3349         (LINK_SPEC): Likewise.
3350
3351 2000-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3352
3353         * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
3354         (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
3355         (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
3356
3357 2000-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3358
3359         * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
3360         (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
3361         perm_calloc, get_identifier, maybe_get_identifier,
3362         real_value_from_int_cst, simple_cst_equal), varasm.c
3363         (assemble_name, assemble_real, immed_real_const_1,
3364         compare_constant_1, decode_rtx_const, output_constant_pool): Use
3365         strrchr () instead of rindex ().  Use memcmp () instead of bcmp
3366         ().  Use memcpy () instead of bcopy ().  Use memset () instead of
3367         bzero ().
3368
3369 2000-11-03  Nathan Sidwell  <nathan@codesourcery.com>
3370
3371         * cppfiles.c (open_file): If already read, then don't reopen.
3372         Immediately close an empty file.
3373
3374 2000-11-01  Bernd Schmidt  <bernds@redhat.co.uk>
3375
3376         * expr.h (fold_builtin): Move declaration...
3377         * tree.h (fold_builtin): ... here.
3378
3379 Fri Nov  3 05:41:07 2000  J"orn Rennecke <amylaar@redhat.com>
3380
3381         * flow.c (verify_local_live_at_start): Allow hard regs to die.
3382
3383 2000-11-02  Neil Booth  <neilb@earthling.net>
3384
3385 config:
3386         * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
3387         alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
3388         alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
3389         alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
3390         arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3391         arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
3392         c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
3393         elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
3394         i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
3395         i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
3396         i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
3397         i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
3398         i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
3399         i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
3400         i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
3401         i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
3402         i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
3403         i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
3404         i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
3405         i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
3406         i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
3407         ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
3408         m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
3409         m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
3410         m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
3411         m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
3412         m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
3413         m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
3414         m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
3415         m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
3416         m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
3417         m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
3418         mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
3419         mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
3420         mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
3421         mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
3422         mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
3423         mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
3424         ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
3425         ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
3426         pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
3427         pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
3428         romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
3429         rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
3430         rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
3431         rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
3432         sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
3433         sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
3434         sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
3435         sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
3436         sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
3437         sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
3438         sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
3439         v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
3440         vax/vaxv.h, vax/vms.h, we32k/we32k.h
3441
3442         Replace -A() with -A=, the new assertion syntax.
3443
3444 Thu Nov  2 21:52:35 2000  J"orn Rennecke <amylaar@redhat.com>
3445
3446         * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
3447         elim_i1.
3448         In REG_DEAD handling: When handling parts of multi-hard-reg hard
3449         registers, increment the loop counter by the size of the parts;
3450         use recursion to handle individual parts.
3451
3452 2000-11-02  Neil Booth  <neilb@earthling.net>
3453
3454         * configure.in: Make integrated CPP the default.
3455         * configure: Regenerate.
3456
3457 Thu Nov  2 19:20:12 2000  J"orn Rennecke <amylaar@redhat.com>
3458
3459         * reload.c (find_equiv_reg): Test all hard registers for membership
3460         in the requested class.
3461
3462 2000-11-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3463
3464         * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
3465         process_command, main), gcov.c (open_files, output_data), tlink.c
3466         (frob_extension, scan_linker_output), toplev.c
3467         (file_name_nondirectory): Use strchr () and strrchr () instead of
3468         index () and rindex ().
3469
3470 2000-11-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3471
3472         * c-common.c (get_flag_spec, check_format_info_main,
3473         check_format_types): Use strchr () instead of index ().  Compare
3474         against error_mark_node instead of comparing the TREE_CODE against
3475         ERROR_MARK.
3476
3477 2000-11-02  Zack Weinberg <zackw@Stanford.EDU>
3478
3479         Integrated CPP.
3480
3481         * c-lex.c (init_c_lex): Update cpp_start_read call.
3482         (cb_ident): Update for new callback prototype.
3483         (cb_def_pragma): Update for new cpp_get_token prototype.
3484         (c_lex): Similarly.  Use cpp_get_line.
3485
3486         * c-parse.in (finish_parse): Update for new cpp_finish
3487         prototype.
3488
3489         * cp/lex.c (finish_parse): Similarly.
3490
3491 2000-11-01  Geoff Keating  <geoffk@cygnus.com>
3492
3493         * machmode.def: Add V16QImode.
3494
3495 2000-11-01  Richard Henderson  <rth@redhat.com>
3496
3497         * dwarf2out.c (loc_descriptor_from_tree): Check for null result
3498         from rtl_for_decl_location.
3499         (add_location_or_const_value_attribute): Likewise.
3500
3501 2000-11-01  Neil Booth  <neilb@earthling.net>
3502
3503         * cpplib.c (run_directive): Use correct line number for output
3504         of _Pragma.  Remember any in-progress directive.
3505
3506         * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
3507
3508 2000-11-01  Richard Henderson  <rth@redhat.com>
3509
3510         * stmt.c (expand_start_null_loop): Set continue_label.
3511
3512 2000-11-01  Bernd Schmidt  <bernds@redhat.co.uk>
3513
3514         * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
3515         (expand_builtin_constant_p): Move parts of the code into
3516         fold_builtin_constant_p.
3517         (expand_builtin_strlen): Move parts of the code into fold_builtin.
3518         * expr.h (fold_builtin): Declare.
3519         * fold-const.c (fold): Handle builtin calls.
3520
3521         * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
3522
3523 2000-11-01  Richard Henderson  <rth@redhat.com>
3524
3525         * stmt.c (expand_start_null_loop): New.
3526         (expand_end_null_loop): New.
3527         * c-semantics.c (genrtl_do_stmt): Use them.
3528         * tree.h: Declare them.
3529
3530 2000-11-01  Richard Henderson  <rth@redhat.com>
3531
3532         * cppmain.c (scan_buffer): Don't avoid paste for assembly.
3533
3534 2000-11-01  Neil Booth  <neilb@earthling.net>
3535
3536         * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
3537         * cp/spew.c: Similarly.
3538         * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
3539         * cppmacro.c (stringify_arg): Similarly.
3540         * cpplib.h (CPP_BACKSLASH): Delete.
3541
3542 2000-10-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3543
3544         * builtins.c (expand_builtin_strstr): New function.
3545         (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
3546
3547         * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
3548
3549         * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
3550         and builtin strchr.
3551
3552 2000-10-31  Richard Henderson  <rth@redhat.com>
3553
3554         * config/i386/i386.c (fcmov_comparison_operator): Check for
3555         CCFPmode or CCFPUmode instead of CCmode.
3556         (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
3557         unordered operations as well.
3558
3559 2000-10-31  Richard Henderson  <rth@redhat.com>
3560
3561         * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
3562         of integer_zero_node.
3563
3564 2000-10-31  Richard Henderson  <rth@redhat.com>
3565
3566         * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
3567
3568 2000-10-31  Nick Clifton  <nickc@redhat.com>
3569
3570         * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
3571         -fdata-sections to override the section attribute of a DECL.
3572
3573 2000-10-31  Chris Demetriou  <cgd@sibyte.com>
3574
3575         * libgcc2.c (__shtab): Remove __shtab variable.
3576         * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
3577         * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
3578         members.
3579
3580 2000-10-31  Jim Wilson  <wilson@redhat.com>
3581
3582         * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
3583         * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
3584         * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
3585         instead of ASM_OUTPUT_INTERNAL_LABEL.
3586         (dwarf2out_end_block, dwarf2out_label): Likewise.
3587         * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
3588         * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
3589
3590 2000-10-31  Richard Henderson  <rth@redhat.com>
3591
3592         * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
3593         (size_of_locs): Set it.
3594         (output_loc_operands): Use it to compute branch displacement.
3595         (int_loc_descriptor): New.
3596         (mem_loc_descriptor): Dereference memory in the proper size.
3597         Use DW_OP_plus_uconst when possible.  Use int_loc_descriptor.
3598         (loc_descriptor_from_tree): New.
3599         (rtl_for_decl_location): Break out from ...
3600         (add_location_or_const_value_attribute): ... here.
3601         (add_bound_info): Use loc_descriptor_from_tree.
3602
3603 2000-10-31  Neil Booth  <neilb@earthling.net>
3604
3605         * cpp.texi: Update for new command line assertion syntax.
3606         * cpplib.c (cpp_define): Simplify a bit.
3607         (cpp_assert, cpp_unassert): Use handle_assertion.
3608         (handle_assertion): New function; accept new command line
3609         syntax with '='.
3610         * testsuite/gcc.dg/cpp/assert3.c: New tests.
3611
3612 2000-10-31  Neil Booth  <neilb@earthling.net>
3613
3614         * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
3615         undefined.  Remove #ifdef check.
3616         * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
3617         Define STDC_0_IN_SYSTEM_HEADERS to 1.
3618
3619 2000-10-31  Jan Hubicka  <jh@suse.cz>
3620             Jakub Jelinek  <jakub@redhat.com>
3621
3622         * config/i386/i386.h: Clarify CCNOmode description in comment.
3623         (EXTRA_CC_MODES): Remove CCRCmode.
3624         * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
3625         (put_condition_code, ix86_match_ccmode): Likewise.
3626         (ix86_cc_mode): Likewise.  Fix comment.
3627         (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
3628         * config/i386/i386.md: Add unspec 12 description.
3629         (adddi3 split): Use unspec 12 instead of CCRCmode.
3630         (addsi3_carry_rc): Remove.
3631         (addsi3_cc, addqi3_cc): New patterns.
3632         (addsi_3): Swap operands, match CCZmode.
3633         (addsi_4): Rewritten.
3634         (addsi_5): Renamed from addsi_6.
3635         (addsi_6): Removed.
3636         (addhi_3): Swap operands, match CCZmode.
3637         (addhi_4): Rewritten.
3638         (addhi_5): Renamed from addhi_6.
3639         (addhi_6): Removed.
3640         (addqi_3): Swap operands, match CCZmode.
3641         (addqi_4): Rewritten.
3642         (addqi_5): Renamed from addqi_6.  Use =q constraint for clobber.
3643         (subsi3_carry_rc): Removed.
3644         (iorqi_3): Use =q constraint for clobber.
3645         (xorqi_cc_2): Likewise.
3646         (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
3647         (x86_movsicc_0_m1_rc): Removed.
3648         (cmp?i peepholes): Remove neg.  Use CCGCmode instead of CCRCmode.
3649
3650 2000-10-31  Joseph S. Myers  <jsm28@cam.ac.uk>
3651
3652         * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
3653         and decrement of complex types.
3654
3655 2000-10-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3656
3657         * builtins.c (expand_builtin_fputs): When deleting NOP calls to
3658         builtin fputs, ensure we still evaluate the stream in case it
3659         has side-effects.
3660
3661 2000-10-31  Jakub Jelinek  <jakub@redhat.com>
3662
3663         * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
3664         to expand_shift.
3665
3666 Tue Oct 31 15:33:27 2000  J"orn Rennecke <amylaar@redhat.com>
3667
3668         * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
3669         (fp_extended_operand, emit_fpscr_use): Likewise.
3670         * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
3671         (fpul_operand): New function.
3672         * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
3673         fp_extended_operand.  Add fpul_operand.
3674         * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
3675         (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
3676         (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
3677         (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
3678         (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
3679         (divdf3_i): Likewise.
3680         (floatsisf2): Likewise.  Use fpul_operand for 'y' operand.
3681         (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
3682         (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
3683         (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
3684         (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
3685
3686 2000-10-31  Bernd Schmidt  <bernds@redhat.co.uk>
3687
3688         * config/i386/i386.c (ix86_init_builtins): Correct return type
3689         building v4hi_ftype_v4hi_int_int tree node.
3690         (ix86_expand_builtin): Use correct operand numbers 0 and 1.
3691         Copy operand 0 into a Pmode register, don't generate a MEM rtx.
3692
3693         * config/i386/i386.md (sse_movntdi): Use mmx register constraint
3694         for operand 1.
3695         (mmx__uavgv8qi3): Correct insn mnemonic.
3696         (mmx_psadbw): Correct insn mnemonic.  Use V8QI mode for operands 1 and 2.
3697         (mmx_punpckhwd): Correct insn mnemonic.
3698         (mmx_punpckhdq): Likewise.
3699         (mmx_punpcklwd): Likewise.
3700         (mmx_punpckldq): Likewise.
3701         (prefetch): Use immediare_operand and 'n' constraint for operand 1.
3702         Renumber case labels to match the _mm_prefetch constants defined in
3703         xmmintrin.h.
3704
3705         * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
3706         if the splitter didn't emit new insns.
3707         Make sure we call cleanup_subreg_operands even when splitting the last
3708         insn in a basic block.
3709
3710         * invoke.texi (Debugging Options): Describe -do.
3711         * toplev.c (enum_dump_file_index): New entry DFI_postreload.
3712         (dump_file): Likewise.
3713         (rest_of_compilation): Split .greg dump into .greg and .postreload.
3714
3715 2000-10-30  Neil Booth  <neilb@earthling.net>
3716
3717         * cppfiles.c (stack_include_file): Check for stacked contexts
3718         here.
3719         * cpphash.h (_cpp_do__Pragma): New prototype.
3720         * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
3721
3722         * cpplex.c (skip_escaped_newlines): Only process trigraphs and
3723         escaped newlines if !(buffer->from_stage3).
3724         (_cpp_lex_token): Warn about missing newlines iff
3725         !buffer->from_stage3.
3726
3727         * cpplib.c (get__Pragma_string, destringize,
3728         _cpp_do__Pragma): New functions.
3729         (run_directive): Set output_line for _Pragma to avoid line
3730         markers in output.  Set from_stage3 and prevent macro expansion
3731         for _Pragma and command-line options.  Check buffer exhaustion.
3732         (cpp_push_buffer): Don't check for stacked macro contexts, as
3733         this is perfectly legitimate for _Pragma.  Move the check to
3734         stack_include_file instead. Set from_stage3 iff buffer is
3735         preprocessed input.
3736
3737         * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
3738         unsigned. New boolean from_stage3.
3739         (struct spec_nodes): Add n__Pragma.
3740
3741         * cppmacro.c (enter_macro_context): Flip sense of return value.
3742         (_cpp_get_token): Handle _Pragma operator.
3743
3744 2000-10-30  Phil Edwards  <pme@sources.redhat.com>
3745
3746         * gcc.texi:  The C++ standard isn't "draft" anymore.
3747
3748 2000-10-30  Mark Mitchell  <mark@codesourcery.com>
3749
3750         * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
3751
3752 2000-10-29  Neil Booth  <neilb@earthling.net>
3753
3754         * cpplib.c (skip_rest_of_line):  Use _cpp_get_token.
3755
3756 2000-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3757
3758         * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
3759         fixinc/inclhack.def: Change comments mentioning C9X to refer to
3760         C99 instead.
3761
3762         * invoke.texi: Document that -V will only work for very similar
3763         versions of driver and compiler.
3764
3765 2000-10-29  Neil Booth  <neilb@earthling.net>
3766
3767         * cppmacro.c (_cpp_create_definition): Optimize the case of
3768         a macro defined to itself.
3769
3770 2000-10-29  Neil Booth  <neilb@earthling.net>
3771
3772         * cpplex.c (save_comment): Don't store new lines in C++ comments.
3773
3774 2000-10-29  Michael Hayes  <mhayes@redhat.com>
3775
3776         * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
3777
3778 2000-10-28  Geoffrey Keating  <geoffk@cygnus.com>
3779
3780         * cpphash.c (cpp_forall_identifiers): Add context variable
3781         for callback routine.
3782         * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
3783         change.
3784         (main): Call cpp_forall_identifiers with null context.
3785         * cpplib.h (cpp_forall_identifiers): Update prototype.
3786
3787         * cppmain.c: Make `parse_in' and `print' static.
3788
3789 2000-10-28  Alan Modra <alan@linuxcare.com.au>
3790
3791         * c-decl.c (finish_function): Clear c_function_name_declared_p.
3792
3793 2000-10-28  Richard Henderson  <rth@redhat.com>
3794
3795         * regrename.c (scan_rtx_address): Frob action, not class,
3796         when trying to disable optimization.
3797
3798 2000-10-28  Mark Mitchell  <mark@codesourcery.com>
3799
3800         * c-semantics.c (make_rtl_for_local_static): Don't clobber
3801         DECL_ASSEMBLER_NAME.
3802
3803 2000-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3804
3805         * configure.in: Determine and substitute gcc_version_full.
3806         * configure: Regenerate.
3807         * gccbug.in: Use it to give full version.  Don't allow
3808         confidential PRs.
3809
3810 2000-10-28  Richard Henderson  <rth@redhat.com>
3811
3812         * recog.c (split_all_insns): Run cleanup_subreg_operands
3813         after reload.
3814
3815         * regrename.c (regrename_optimize): Verify that all registers of
3816         a multiple register mode are available.
3817         (scan_rtx_address): Accept the mode of the address; all callers
3818         changed.
3819
3820         * cpplib.c (run_directive): Fix prototype.
3821
3822 2000-10-28  Bernd Schmidt  <bernds@redhat.co.uk>
3823
3824         * reload.c (find_reloads): Distinguish "wins" so that we know whether
3825         a given operand won because of a matching constraint or not; then use
3826         that information to compute goal_alternative_matched properly.
3827         * reload1.c (choose_reload_regs): Never set reload_override_in for an
3828         optional reload.
3829
3830         * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
3831         accurate value for MULT.
3832         * config/ia64/ia64.c (ia64_print_operand): Require probability to be
3833         2% or > 98% before using static branch prediction bits.
3834
3835 2000-10-28  Neil Booth  <neilb@earthling.net>
3836
3837         New macro expander.
3838
3839         * cpplib.c (struct answer): New.
3840         (struct if_stack): Use cpp_lexer_pos rather than line and col.
3841         Rename cmacro mi_cmacro.
3842         (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
3843         IN_I): New directive and flags.
3844         (skip_rest_of_line, check_eol, run_directive, glue_header_name,
3845         parse_answer, parse_assertion, find_answer): New functions.
3846         (parse_ifdef, detect_if_not_defined, validate_else): Remove.
3847         (lex_macro_node): New function to replace parse_ifdef and
3848         get_define_node.
3849
3850         (_cpp_handle_directive): New function, combines _cpp_check_directive
3851         and _cpp_check_linemarker.
3852
3853         (do_define, do_undef, parse_include, do_include, do_import,
3854         do_include_next, read_line_number, do_line, do_ident, do_pragma,
3855         do_pragma_once, do_pragma_poison, do_pragma_dependency):
3856         Update for new token getting interface.
3857
3858         (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
3859         : Update for new multiple-include optimisation technique.
3860         (do_elif): Don't forget to invalidate controlling macros.
3861
3862         (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
3863         (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
3864         Functions to handle assertions with the new token interface.
3865         (do_assert, do_unassert): Use them.
3866
3867         (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
3868         Use run_directive.
3869
3870         (_cpp_init_stacks): Register directive names.  Don't register special
3871         nodes.
3872
3873         * cpperror.c (print_containing_files, _cpp_begin_message): Update to
3874         new position recording regime.
3875         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3876         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3877         cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
3878         (cpp_type2name): Move to cpplex.c.
3879
3880         * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
3881         (parse_defined): Update to handle new multiple include optimisation
3882         method.  Remove poisoned identifier warning.
3883         (parse_assertion, TYPE_NAME): Delete.
3884         (lex): Update for multiple include optimisation, removal of
3885         CPP_DEFINED, to use _cpp_test_assertion for assertions and
3886         cpp_token_as_text.
3887         (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
3888         (op_as_text): New function, to wrap cpp_token_as_text.
3889
3890         * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
3891         Update for MI optimisation.
3892         (_cpp_execute_include): Take a token rather than 3 arguments.  Fix
3893         segfault on diagnostic.
3894         (_cpp_compare_file_date): Take a token rather than 3 args.
3895         (cpp_read_file): Work correctly for zero-length files.
3896
3897         * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
3898         _cpp_init_hashtable and _cpp_cleanup_hashtable.
3899         (cpp_lookup): Place identifiers at front of identifier pool
3900         for _cpp_lookup_with_hash.
3901         (_cpp_lookup_with_hash): Require identifiers to be at the front of
3902         the identifier pool.  Commit the memory if not already in the
3903         hash table.
3904
3905         * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
3906         Initialise various members of cpp_reader, memory pools, and the
3907         special nodes.
3908         (cpp_printer_init): Delete.
3909         (cpp_cleanup): Update.
3910         (struct builtin, builtin_array, initialize_builtins): Update for new
3911         hashnode definition and builtin handling.
3912         (cpp_start_read, cpp_finish): Don't take or initialise a
3913         printer.  Update.
3914
3915         * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
3916         PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
3917         T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
3918         T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
3919         (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
3920         struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
3921         NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
3922         struct toklist, struct cpp_context, struct specnodes,
3923         TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
3924         NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
3925         enum builtin_type, cpp_can_paste): New.
3926         (struct cpp_token): Delete line and col members.
3927         (struct cpp_buffer): New member output_lineno.
3928         (struct lexer_state): Delete indented, in_lex_line, seen_dot.
3929         Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
3930         (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
3931         ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
3932         base_context, context, directive, mi_state, mi_if_not_defined,
3933         mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
3934         mlstring_pos, macro_buffer, macro_buffer_len.
3935         Delete members mls_line, mls_column, token_list, potential_control_macro,
3936         temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
3937         context_cap, cur_context, no_expand_level, paste_level, contexts, args,
3938         save_parameter_spellings, need_newline, .
3939         Change type of date, time and spec_nodes members.
3940         Change prototypes for include and ident callbacks.
3941         (struct cpp_hashnode): Change type of name.  Remove union members
3942         expansion and code.  Add members macro, operator and builtin.
3943
3944         (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
3945         cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
3946         cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
3947         cpp_stop_lookahead): New prototypes.
3948         (cpp_printer_init, cpp_dump_definition): Delete prototypes.
3949
3950         (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
3951         Move from cpphash.h.
3952
3953         * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
3954         ufputs): Move to cpplib.h.
3955         (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
3956         TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
3957         COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
3958         struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
3959         _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
3960         _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
3961         _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
3962         _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
3963         _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
3964         _cpp_parse_assertion, _cpp_find_answer): Delete.
3965         (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
3966         POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
3967         _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
3968         _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
3969         _cpp_handle_directive, DSC): New.
3970         (struct include_file): New member defined.
3971
3972         (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
3973         _cpp_compare_file_date): Update.
3974         (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
3975         (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
3976         _cpp_cleanup_hashtable.
3977
3978         * Makefile.in: Remove cppoutput.c.
3979
3980         * cppoutput.c: Delete
3981
3982         * fixheader.c (read_scan_file): Update for new cpp_get_token
3983         prototype.
3984         (recognized_function): New argument LINE.
3985
3986         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
3987         new cpp_get_token prototype.
3988
3989         * scan.h (recognized_function): Update prototype.
3990
3991         * po/POTFILES.in: Remove cppoutput.c.
3992
3993 2000-10-27  Mark Mitchell  <mark@codesourcery.com>
3994
3995         * c-typeck.c (check_init_type_bitfields): Remove.
3996         (constructor_incremental): Likewise.
3997         (struct constructor_stack): Remove incremental bit.
3998         (struct initializer_stack): Likewise.
3999         (start_init): Don't play with constructor_incremental.
4000         (finish_init): Likewise.
4001         (really_start_incremental_init): Likewise.
4002         (push_init_level): Likewise.
4003         (pop_init_level): Likewise.
4004         (output_init_level): Likewise.
4005         (output_pending_init_elements): Likewise.
4006
4007 2000-10-21  Mike Coleman  <mcoleman2@kc.rr.com>
4008
4009         * c-pragma.c (handle_pragma_pack): Initialize align to -1.
4010         Improve error messages.  Correct parsing of
4011         #pragma pack(pop [,id]).  Do not check the user-supplied
4012         alignment if we're popping.
4013
4014         * gcc.dg/pack-test-1.c: New test case.
4015         * gcc.dg/pack-test-2.c: New test case.
4016         * gcc.dg/pack-test-1.h: New file.
4017
4018 2000-10-27  Neil Booth  <neilb@earthling.net>
4019
4020         * cpp.texi: Update.
4021
4022 2000-10-27  Kelley Cook <kelley.cook@home.com>
4023
4024         * invoke.texi: Document -mintel-syntax
4025
4026 2000-10-27  Richard Henderson  <rth@redhat.com>
4027
4028         * invoke.texi: Document -frename-registers.  Add it to -O3.
4029         * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
4030         (enum dump_file_index, dump_file): Update order.
4031         (main): Set flag_rename_registers at -O3.
4032
4033 2000-10-27  Richard Henderson  <rth@redhat.com>
4034
4035         * config/alpha/alpha.h (enum reg_class): Add PV_REG.
4036         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
4037         (REG_CLASS_FROM_LETTER): Assign it to 'c'.
4038         * config/alpha/alpha.md (call_osf_1): Use it.
4039         (call_value_osf_1): Likewise.
4040
4041         * config/ia64/ia64.c: Revert 10-23 patch.
4042         (ia64_hard_regno_rename_ok): New.
4043         * config/ia64/ia64-protos.h: Declare it.
4044         * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
4045
4046 2000-10-27  Bernd Schmidt  <bernds@redhat.co.uk>
4047             Richard Henderson  <rth@redhat.com>
4048
4049         * regrename.c: Rewrite to handle multi-register modes and
4050         cond_exec instructions.
4051         * Makefile.in (regrename.o): Update dependancies.
4052         * recog.h (struct operand_alternative): Add is_address.
4053         * recog.c (preprocess_constraints) [case 'p']: Set it.
4054
4055 2000-10-27  Zack Weinberg  <zack@wolery.stanford.edu>
4056
4057         * configure.in: If not NO_MINUS_C_MINUS_O, substitute
4058         OUTPUT_OPTION with '-o $@'.  Make zlibdir, zlibinc relative to
4059         top level.  Kill oldstyle_subdirs.  Do not include
4060         $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
4061         $outputs.  Do not run configure.lang from config.status.
4062         Rearrange warning-flag logic to correspond to what the
4063         makefile wants.  Put special vax stage1 options in
4064         @stage1_flags@ not @stage1_warn_cflags@.  Don't do anything
4065         with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
4066         (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
4067         switch is given, nothing otherwise.
4068         * configure.lang: Delete.
4069
4070         * Makefile.in: Expunge all traces of extra_c_objs,
4071         extra_cxx_objs, and extra_cpp_objs.  Set MAYBE_CPPLIB from
4072         @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS.  Set
4073         warning options via a three level scheme so that -pedantic and
4074         -Wtraditional are not used for non-C front ends: LOOSE_WARN,
4075         STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
4076         WARN_CFLAGS.  Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
4077         Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
4078         Set OUTPUT_OPTION, ZLIB, ZLIBINC.  Do not set P,
4079         LANG_FLAGS_TO_PASS.  Add OUTPUT_OPTION to all object-file
4080         generation rules.  Wrap all rules that change the current
4081         directory in parentheses; pmake doesn't spawn a new shell for
4082         each command.  Expunge all references to $(P).  When one
4083         command depends on another and they're run all at once, use &&
4084         to separate them, not ;.  Add libgcc_s$(SHLIB_EXT) to files
4085         deleted on make clean.  Force OUTPUT_OPTION='-o $@' in stage2
4086         and beyond.
4087
4088         * objc/Make-lang.in: Wrap all rules that change the current
4089         directory in parentheses.  Expunge all references to $(P).
4090         When one command depends on another and they're run all at
4091         once, use && to separate them, not ;.  Add OUTPUT_OPTION to
4092         all object-file generation rules.  Delete obsolete variables.
4093         * objc/Makefile.in: Delete.
4094
4095 2000-10-27  Jakub Jelinek  <jakub@redhat.com>
4096
4097         * calls.c (expand_call): If sibcall_failure is set during pass 1,
4098         clear tail_call_insns as well.
4099
4100 2000-10-27  Nick Clifton  <nickc@redhat.com>
4101
4102         * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
4103         prototype.
4104
4105 2000-10-26  Richard Henderson  <rth@redhat.com>
4106
4107         * calls.c (expand_call): Supress sibcall if we have a
4108         BLKmode return in registers.
4109
4110 2000-10-26  Bernd Schmidt  <bernds@redhat.co.uk>
4111
4112         * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
4113         into memory.
4114
4115 2000-10-26  Nathan Sidwell  <nathan@codesourcery.com>
4116
4117         * tree.c (make_node, case 't'): Set alignment to that of
4118         char_type_node.
4119         * expr.c (move_by_pieces_ninsns): Abort if some length remains.
4120
4121 2000-10-25  Mark Mitchell  <mark@codesourcery.com>
4122
4123         * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
4124         * configure.in (enable-libstdcxx-v3): Arrange to have
4125         HAVE_LIBSTDCXX_V3 substituted into the output files.
4126
4127 2000-10-25  Richard Henderson  <rth@redhat.com>
4128
4129         * recog.c (constrain_operands): Initialize which_alternative
4130         before no alternatives early exit.
4131
4132         * cse.c (find_comparison_args): Check that we can reverse a
4133         comparison if needed before accepting the substitution.
4134
4135         * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
4136
4137         * simplify-rtx.c (simplify_relational_operation): Sign extend
4138         low words before sign extending to high words.
4139
4140 2000-10-25  Nick Clifton  <nickc@redhat.com>
4141
4142         * config/mcore/mcore.c: Include config.h before system.h.
4143
4144 2000-10-25  Ray Essick  <essick@ddna.labs.mot.com>
4145
4146         * config/mcore/mcore.md (return): Force function epilogue to
4147         always be generated to work around epilogue suppression bug in
4148         M*Core backend.
4149
4150 2000-10-25  Joseph S. Myers  <jsm28@cam.ac.uk>
4151
4152         * c-decl.c (grokdeclarator): Move warning for qualified void
4153         return types with -pedantic to when the function type is
4154         constructed.  At -W, warn in general for qualified function return
4155         types, except for volatile void.
4156         * invoke.texi: Document this new warning at -W.
4157
4158 2000-10-25  Neil Booth  <neilb@earthling.net>
4159
4160         * cpp.texi: Update with implementation-defined behavior and
4161         internal limits.
4162
4163 2000-10-25  Jakub Jelinek  <jakub@redhat.com>
4164
4165         * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
4166         incomplete type force it into alias set 0.
4167
4168 Wed Oct 25 01:02:44 EDT 2000  John Wehle  (john@feith.com)
4169
4170         * alias.c: Include basic-block.h.
4171         (loop_p): New function.
4172         (mark_constant_function): Use it.
4173         * Makefile.in (alias.o): Update dependencies.
4174
4175 2000-10-24  Aldy Hernandez  <aldyh@redhat.com>
4176
4177         * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
4178         like memory.
4179
4180 2000-10-24  Jim Wilson  <wilson@cygnus.com>
4181
4182         * expmed.c (store_bit_field): Move integer pun code down after
4183         code that calls emit_move_insn for entire register move.
4184         * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
4185         Oct 20 changes.  Only store mode in TYPE_MODE if RECORD_TYPE.
4186
4187 2000-10-24  Richard Henderson  <rth@cygnus.com>
4188
4189         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
4190         register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
4191
4192 2000-10-24  Aldy Hernandez  <aldyh@redhat.com>
4193
4194         * gcse.c (cprop_insn): do not propagate constants into jump_insn
4195         for machines with CC0 more than once.
4196
4197 2000-10-24  Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
4198
4199         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
4200         pseudos just like memory.
4201
4202 2000-10-24  Alexandre Oliva  <aoliva@redhat.com>
4203
4204         * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
4205         when deleting libcall sequence collapsed to a single instruction.
4206
4207 2000-10-24  Andrew Haley  <aph@cygnus.co.uk>
4208
4209         * expr.c (do_store_flag): Don't crash if either side of a
4210         comparison is error_mark_node.
4211
4212 2000-10-24  Jakub Jelinek  <jakub@redhat.com>
4213
4214         * sibcall.c (purge_mem_unchanging_flag): New function.
4215         (optimize_sibling_and_tail_recursive_calls): Call it.
4216
4217 2000-10-24  Philipp Thomas  <pthomas@suse.de>
4218
4219         * Makefile.in (check-po): New target for doing checks in the po
4220         subdir if all languages configured.
4221         (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
4222         configure if NLS is enabled.
4223         * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
4224         otherwise leave empty.
4225         * configure: Regenerate.
4226
4227 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
4228
4229         * i386.c (print_operand): Handle new 'A' formatting code.
4230         387 opcodes need suffixes even with -mintel-syntax.
4231         Check for explicit size override (codes 'b', 'w' and 'k').
4232         (print_operand_address): Check if register prefix is needed when
4233         emitting `ds' segment override.
4234         * i386.h: Add comment about new 'A' formatting code.
4235         * i386.md (jump and call patterns): Emit absolute references using %A.
4236
4237 2000-10-23  Richard Henderson  <rth@cygnus.com>
4238
4239         * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
4240         output registers as fixed.
4241         (ia64_function_epilogue): Undo output fixation.
4242
4243 2000-10-23  Richard Henderson  <rth@cygnus.com>
4244
4245         * config/alpha/alpha.md: Add names for all unnamed insns; use
4246         define_insn_and_split in some obvious places.
4247         (lda): Remove.
4248         (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
4249         (zero_extendqisi2, zero_extendqidi2): Likewise.
4250         (zero_extendhisi2, zero_extendhidi2): Likewise.
4251         (abs splitters): Fix match_scratch operand number.
4252         (bcc_reverse): Swap pc & label instead of non-canonical compare.
4253
4254 2000-10-23  Jim Wilson  <wilson@cygnus.com>
4255
4256         * ia64.c (ia64_print_operand, case 'r'): Correct comment.  Handle
4257         CONST_INT.
4258         * ia64.md (cmpsi_adjusted): Use %r3.
4259         (cmpdi_adjusted): Likewise.
4260
4261 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
4262
4263         * config/i386/att.h (ASM_FILE_START): Define.
4264
4265 2000-10-23  Diego Novillo  <dnovillo@cygnus.com>
4266
4267         * config/i386/linux.h (ASM_FILE_START): Define.
4268
4269 Wed Oct 18 11:16:40 2000  Donald Lindsay  <dlindsay@cygnus.com>
4270
4271         * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
4272         since this (only) drags in a crt0.o reference that the .ld files
4273         also introduce.
4274
4275 2000-10-23  Geoff Keating  <geoffk@cygnus.com>
4276
4277         * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
4278         overwrite the value in a RELOAD_FOR_INPUT and other kinds of
4279         reloads just like an RELOAD_FOR_OUTPUT would.
4280
4281         * local-alloc.c (update_equiv_regs): Add an abort().  When
4282         deleting or moving insns, update reg_equiv[regno].init_insns.
4283
4284 2000-10-23  Mark Mitchell  <mark@codesourcery.com>
4285
4286         * c-tree.texi: Improve documentation for IF_STMTs and related
4287         conditional statements.
4288
4289 2000-10-22  Mark Mitchell  <mark@codesourcery.com>
4290
4291         * expr.c (do_preexpand_calls): Remove.
4292         (same_from_p): Don't use CALL_EXPR_RTL.
4293         (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
4294         (preexpand_calls): Remove.
4295         * tree.c (first_rtl_op): Remove CALL_EXPR case.
4296         (unsave_expr_1): Likewise.
4297         * tree.def (CALL_EXPR): Give it only two slots.
4298         * tree.h (CALL_EXPR_RTL): Remove.
4299
4300 2000-10-21  Chandrakala Chavva   <cchavva@redhat.com>
4301
4302         * libgcc-std.ver (__addvsi3, __addvdi3,  __subvsi3, __subvdi3,
4303         __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
4304         New functions.
4305
4306 2000-10-22  Alexandre Oliva  <aoliva@redhat.com>
4307
4308         * calls.c (combine_pending_stack_adjustment_and_call): Don't
4309         adjust stack when unadjusted_alignment ends up as zero.
4310
4311 2000-10-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4312
4313         * fixinc/genfixes: Remove EGCS reference.
4314         * install.texi: Remove EGCS reference.
4315         * INSTALL: Regenerate.
4316
4317 2000-10-22  Mark Mitchell  <mark@codesourcery.com>
4318
4319         * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
4320
4321 2000-10-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4322
4323         * diagnostic.c: Remove EGCS reference in comment.
4324
4325 Sat Oct 21 08:24:25 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4326
4327         * loop.c (strength_reduce): Fix error in last change.
4328
4329 2000-10-20  David Edelsohn  <edelsohn@gnu.org>
4330
4331         * Makefile.in (SHLIB_NM_FLAGS): New.
4332         (libgcc.mk): Pass it.
4333         * mklibgcc.in (libgcc.map): Use it.
4334
4335         * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
4336         SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
4337
4338 2000-10-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4339
4340         * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
4341
4342         * sparc.c (load_pic_register): Delete unused varaible.
4343
4344         * libgcc2.c (__addvsi3): Delete unused variable.
4345
4346         * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
4347         __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
4348         __negvdi2): Prototype.
4349
4350         * ssa.c (apply_delayed_renames): Avoid undefined operation.
4351
4352         * toplev.c (display_target_options): Make static to match
4353         prototype.  Delete empty declaration.
4354
4355 2000-10-20  Tom Tromey  <tromey@cygnus.com>
4356
4357         * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
4358         * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
4359
4360 Fri Oct 20 17:05:49 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4361
4362         * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
4363         returned MEM.
4364         (expand_expr_unaligned, case ARRAY_REF): Check that index is
4365         a constant before comparing it; use tree_low_cst.
4366         * tree.c (save_expr): Set TREE_READONLY.
4367         (substitute_expr): Return inside of NON_LVALUE_EXPR.
4368         (build, build1): Set TREE_READONLY if all operands are.
4369         (build_index_type): If upper bound is a negative number, lower
4370         bound is zero and sizetype is unsigned, use upper bound of one and
4371         lower of zero.
4372
4373 2000-10-20  David Edelsohn  <edelsohn@gnu.org>
4374
4375         * gcc.c (process_command, main): Use "because" instead of
4376         "since" in error messages.
4377
4378 Fri Oct 20 13:33:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4379
4380         * stor-layout.c (compute_record_mode): Use tree_low_cst.
4381         Don't use mode of field for record unless sizes are the same.
4382         (layout_type, case ARRAY_TYPE): Remove special bounds handling
4383         previously added for Ada; also change to using host_integerp
4384         and tree_low_cst.
4385
4386         * loop.c (strength_reduce): Show when new register made for
4387         giv is known to be a pointer and its aligment if so and known.
4388         (loop_dump_aux): Show VERBOSE parameter unused.
4389
4390         * gcse.c (set_hash_table_size): Now unsigned.
4391         * sdbout.c (template_name_p): Add "const" to avoid warnings.
4392         (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
4393         (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
4394         (sdbout_end_epilogue): Remove variable NAME.
4395         * system.h (getopt): Add default definition.
4396         * config/alpha/alpha.c (print_operand): Don't continue processing
4397         after issuing error.
4398         (summarize_insn): Avoid use of UL in constant.
4399
4400         * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
4401
4402         * fold-const.c (force_fit_type): Unsigned values can overflow
4403         if they are sizetype.
4404         (int_const_binop): Don't use cache if overflows.
4405
4406 2000-10-20  Richard Henderson  <rth@cygnus.com>
4407
4408         * function.c (locate_and_pad_parm): Zero alignment_pad.
4409
4410         * regrename.c (rr_replace_reg): Rewrite to use recog_data to
4411         perform substitutions, and apply_change_group to see if it worked.
4412
4413 Fri Oct 20 13:33:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4414
4415         * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
4416
4417         * combine.c (struct undo): Change int to unsigned int.
4418         (do_SUBST_INT): Args are unsigned int.
4419         (make_extraction, force_to_mode): Use proper type when forming mask.
4420         (make_field_assignment): Likewise.
4421
4422 2000-10-20  Joseph S. Myers  <jsm28@cam.ac.uk>
4423
4424         * c-common.c (check_format_info_recurse): Extract string constant
4425         initializers from non-volatile constant arrays and check them as
4426         formats.
4427         * c-typeck.c (decl_constant_value): Don't check pedantic or check
4428         for DECL_MODE (decl) != BLKmode.
4429         (decl_constant_value_for_broken_optimization): New function which
4430         includes these checks.
4431         (default_conversion, convert_for_assignment, digest_init): Use
4432         decl_constant_value_for_broken_optimization instead of
4433         decl_constant_value.
4434
4435 2000-10-20  Mark Mitchell  <mark@codesourcery.com>
4436
4437         * tree.h (DECL_ALIGN_UNIT): New macro.
4438
4439 2000-10-14  Marek Michalkiewicz  <marekm@linux.org.pl>
4440
4441         * config/avr/avr-protos.h (avr_output_bld): New.
4442         (out_shift_with_cnt): Add t_len argument.
4443         * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
4444         (output_movqi, output_movhi, output_movsisf): Optimize loading
4445         any constant with exactly one bit set to NO_LD_REGS.
4446         (out_shift_with_cnt): Optimize output code for size or speed,
4447         depending on optimize_size.  Handle small shift counts as well
4448         (if not hand-optimized in ?sh??i3_out).  Shifts can be done
4449         with or without a scratch register, with help of __tmp_reg__
4450         or __zero_reg__ if necessary.  Add T_LEN argument to pass the
4451         length of TEMPLATE in words, return total insn length in *LEN.
4452         (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
4453         out_shift_with_cnt to work with the above change.
4454         (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
4455         lshrsi3_out): Likewise.  Optimize more known shift count cases.
4456         Remove cases already well optimized in out_shift_with_cnt.
4457         (avr_output_bld): New function.
4458         * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
4459         (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
4460         * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
4461         Add reload_completed to insn condition - only for peepholes.
4462         (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
4463         in a register or memory.
4464         (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
4465         Do not require a scratch register.
4466         (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
4467         *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
4468         Optimize shifts by known count using a scratch register, but only
4469         if one is still available after register allocation.
4470
4471 2000-10-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4472
4473         * t-vax: New file.  Don't build modules from libgcc1.c.
4474
4475 Fri Oct 20 00:57:00 EDT 2000  John Wehle  (john@feith.com)
4476
4477         * alias.c: (mark_constant_function): Don't check pure functions.
4478         Initialize and end alias analysis.
4479         (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
4480         Don't make a special exception for recursion.  Handle
4481         UNSPEC_VOLATILE.  Don't assume ASM_OPERANDS is non-local
4482         unless it's volatile.
4483
4484         * local-alloc.c (equivalence): New structure.
4485         (reg_equiv): Define.
4486         (contains_replace_regs): Remove array and use
4487         field in reg_equiv.
4488         (memref_referenced_p): Likewise.
4489         (no_equiv): Likewise.
4490         (update_equiv_regs): Likewise.
4491
4492         (equiv_init_varies_p,
4493         equiv_init_movable_p): New functions.
4494         (update_equiv_regs): Use them.  Use rtx_varies_p
4495         instead of function_invariant_p.  Process insns
4496         from end to beginning.  Allow a REG_EQUIV insn
4497         within the same loop as a use to be moved, also
4498         allow it to be moved out of a loop.  Update
4499         REG_DEAD notes when substituting into an insn.
4500
4501 2000-10-19  Jim Wilson  <wilson@cygnus.com>
4502
4503         * c-decl.c (start_decl): Check for error_mark_node type before using
4504         COMPLETE_TYPE_P.
4505         (finish_decl): Likewise.  Don't give an error if decl type is
4506         already error_mark_node.
4507
4508         * haifa-sched.c (compute_trg_info): Add explanatory comments.
4509         New local update_blocks.  Use update_blocks to remove duplicates
4510         when computing update blocks.  Check for bblst_table overflow.
4511         (schedule_block): Add explanatory comment.  Reduce bblst_size by
4512         factor of 2.
4513         * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
4514         notes.
4515
4516 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
4517
4518         * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
4519
4520 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
4521
4522         * expmed.c: Minor corrections in comments.
4523         * invoke.texi: Added desciption for the new option -ftrapv.
4524
4525 2000-10-19  Chandrakala Chavva   <cchavva@redhat.com>
4526
4527         * libgcc2.c: Added the missing #endif.
4528
4529 Thu Oct 19 14:25:11 MET DST 2000  Jan Hubicka  <jh@suse.cz>
4530
4531         * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
4532
4533 2000-10-18  Chandrakala Chavva  <cchavva@redhat.com>
4534
4535         * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
4536         Use smulv_optab for -ftrapv.
4537         (expand_mult_highpart): Use unsigned multiply.
4538         (expand_divmod): Special-case division by -1.
4539         For EXACT_DIV_EXPR, do right shift first, then the multiply.
4540         For complex divide, use abs with unsigned result.
4541         * expr.c (force_operand): Use unsigned multiply.
4542         (expand_expr): Use overflow-trapping optabs for signed types if
4543         flag_trapv.
4544         If flag_trapv, don't generate a recursive call with EXPAND_SUM
4545         if the type is signed and the original call wasn't EXPAND_SUM or
4546         EXPAND_INITIALIZER.
4547         * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
4548         (negv_optab, absv_optab): Declare.
4549         * flags.h (flag_trapv): Declare.
4550         * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
4551         smulv_optab, sdivv_optab, negv_optab and absv_optab.
4552         (gen_insn): Interpret '$P' as requiring an integer mode,
4553         including partial integer modes.
4554         * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
4555         (product_cheap_p): Use unsigned expand_mult.
4556         * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
4557         (negv_optab, absv_optab): Define.
4558         (expand_binop): Use overflow-trapping optabs for signed types if
4559         flag_trapv.
4560         Handle negv_optab libe neg_optab.
4561         (expand_abs): Take result_unsignedp argument instead of unsignedp one.
4562         Use overflow-trapping optabs for signed result if flag_trapv.
4563         (expand_complex_abs): Use overflow-trapping optabs for signed types if
4564         flag_trapv.
4565         Don't open-code complex absolute-value operation for flag_trapv.
4566         (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
4567         sdivv_optab, negv_optab and absv_optab.
4568         * toplev.c (flag_trapv): Define.
4569         (lang_independent_options f_options): Include flag_trapv.
4570         * tree.h (TYPE_TRAP_SIGNED): Define.
4571         * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
4572         __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
4573         New functions.
4574         * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
4575         _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
4576
4577 2000-10-18  Geoffrey Keating  <geoffk@cygnus.com>
4578             David V. Henkel-Wallace  <gumby@cygnus.com>
4579
4580         * config/i386/t-netware: Bring in from the Red Hat tree.
4581         * config/i386/netware.h: Likewise.
4582         * config/netware.h: Likewise.
4583         * config/rs6000/netware.h: Delete.
4584         * configure.in: Add i[34567]86-*-netware.
4585         * configure: Hand-edit to match configure.in change.
4586
4587 2000-10-18  Mark Mitchell  <mark@codesourcery.com>
4588
4589         * c-common.h (flag_no_builtin): Declare.
4590         (flag_no_nonansi_builtin): Likewise.
4591         (c_common_nodes_and_builtins): Change prototype.
4592         * c-common.c (flag_no_builtin): New variable.
4593         (flag_no_nonansi_builtin): Likewise.
4594         (c_common_nodes_and_builtins): Remove parameters.  Adjust
4595         accordingly.
4596         * c-decl.c (flag_no_builtin): Remove.
4597         (flag_no_nonansi_builtin): Likewise.
4598         (init_decl_processing): Adjust call to
4599         c_common_nodes_and_builtins.
4600
4601 2000-10-18  Marc Espie <espie@openbsd.org>
4602
4603         * tm.texi (LIBGCC_SPEC): Synch with reality.
4604
4605 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4606
4607         * c-common.c (check_format_types): Check for writing through a
4608         NULL pointer argument.
4609
4610 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
4611
4612         * tm.texi (Exception Region Output): Document
4613         DWARF_CIE_DATA_ALIGNMENT.
4614         * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
4615         #ifndef.
4616         [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
4617         DWARF_CIE_DATA_ALIGNMENT.
4618
4619 2000-10-18  Michael Hayes  <mhayes@cygnus.com>
4620
4621         * basic-block.h (struct loop): Delete fields pre_header_root
4622         and pre_header_trace and replace with pre_header_edges
4623         and num_pre_header_edges.
4624         * flow.c (flow_loop_dump): Dump pre_header_edges.
4625         (flow_loops_free): Free pre_header_edges.
4626         (flow_loop_pre_header_scan): Calculate pre_header_edges.
4627
4628 2000-10-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4629
4630         * contrib.texi: Update references to steering committee members
4631         and Jeff Law's entry.
4632
4633 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4634
4635         * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
4636         (maybe_read_dollar_number, check_format_info_main): Use them for
4637         pedantic warning messages.
4638
4639 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
4640
4641         * c-common.c (check_format_info_main): Minor cleanup: move
4642         variables into inner scopes; initialize declarations where
4643         appropriate; don't hardcode "scanf" name on warning for zero
4644         width.
4645
4646 2000-10-17  Mark Mitchell  <mark@codesourcery.com>
4647
4648         * c-common.c (back_end_hook): New variable.
4649         * c-common.h (back_end_hook): Declare it.
4650         * c-lang.c (finish_file): Use it.
4651
4652         * emit-rtl.c (init_emit_once): Initialize the const_int_htab
4653         earlier.
4654
4655 2000-10-18  Jan Hubicka  <jh@suse.cz>
4656
4657         * i386.c (ix86_comparison_operator, put_condition_code,
4658         ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
4659         (ix86_expand_strlensi_unroll_1): Use CCRCmode.
4660         * i386.h (EXTRA_CC_MODES): Add CCRCmode.
4661         * i386.md (adddi and negdi splitter): Use CCRCmode.
4662         (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
4663         (subsi3_carry): add '*'
4664         (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
4665         (cmp to add peep2): Use CCRCmode; swap operands.
4666
4667 2000-10-18  Kazu Hirata  <kazu@hxi.com>
4668
4669         * h8300.c: Fix a comment typo.
4670         (round_frame_size): New.
4671         (compute_saved_regs): Likewise.
4672         (push): Likewise.
4673         (pop): Likewise.
4674         (push_order): Remove.
4675         (pop_order): Likewise.
4676         (function_prologue): Rearrange code for readability.
4677         (function_epilogue): Likewise.
4678
4679         * config/h8300/h8300.md: Remove an unnecessary sign_extend
4680         expander that is used when not optimizing.  Output a tab after
4681         each assembly insns.
4682
4683         * reorg.c: Fix formatting.
4684
4685 2000-10-17  Joern Rennecke <amylaar@redhat.co.uk>
4686
4687         * reload1.c (move2add_note_store): Check for simple
4688         auto-inc in destination.
4689
4690 2000-10-17  Michael Chastain  <chastain@redhat.com>
4691
4692         * config/i386/i386-aout.h: define INT_ASM_OP.
4693
4694 Tue Oct 17 20:11:08 2000  Alan Modra <alan@linuxcare.com.au>
4695
4696         * pa.c (print_operand): Handle case 'c' for .vtable_inherit
4697
4698 Tue Oct 17 20:05:51 2000  Martin Buchholz <martin@xemacs.org>
4699
4700         * i370.md: Fix spelling typo.
4701
4702 2000-10-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4703
4704         * function.c (locate_and_pad_parm): Don't align stack unconditionally.
4705         Fixes execute/20001017-1.c on powerpc-linux-gnu.
4706
4707         * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
4708         * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
4709         LABEL_REF.
4710
4711         * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
4712         ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
4713         here...
4714         * rs6000/aix.h: ...to here.
4715         * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
4716
4717 2000-10-17  Jakub Jelinek  <jakub@redhat.com>
4718
4719         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
4720
4721         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
4722         sure linker can relax even the delay slot mov %g1,%o7, fix output
4723         formating.
4724
4725 2000-10-17  Kazu Hirata  <kazu@hxi.com>
4726
4727         * config/h8300/h8300.md: Remove an unnecessary zero_extend
4728         expander that is used when not optimizing.  Output a tab after
4729         each assembly insns.
4730
4731 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
4732
4733         * gcc.c: New options --target-help.
4734         (process_command): Added code to parse this new option.
4735         * toplev.c (display_target_options): New function to support the
4736         above new option.
4737         * cppinit.c (new_pending_directive) : New option OPT_target__help.
4738         (cpp_handle_option): Support this new option.
4739         * invoke.texi: Added notes about --target-help option.
4740
4741 2000-10-17  Graham Stott  <grahams@redhat.com>
4742
4743         * config/i386/i386.md (testqi_1): Add missing operand prefix
4744         for operand 0.
4745         * config/i386/i386-protos.h: Add missing prototype.
4746
4747 2000-10-17  Diego Novillo  <dnovillo@cygnus.com>
4748
4749         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
4750         _GLOBAL_OFFSET_TABLE should not have a $ prefix when
4751         using -mintel-syntax.
4752
4753 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
4754
4755         * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
4756         (format_types): Use it for printf.
4757         (maybe_read_dollar_number): Add parameter for the kind of format
4758         involved.  Warn for multiple use for arguments if this is
4759         inappropriate for the kind of format involved.
4760         (check_format_info_main): Update calls to maybe_read_dollar_number.
4761
4762 2000-10-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4763
4764         * inclhack.def (hpux_maxint): Also apply fix to values.h.
4765         * fixincl.x: Rebuilt.
4766
4767 2000-10-17  Alexandre Oliva  <aoliva@redhat.com>
4768
4769         * genrecog.c (write_switch): Return the first condition that needs a
4770         label.
4771
4772 2000-10-17  Bernd Schmidt  <bernds@redhat.co.uk>
4773
4774         * c-tree.h (warn_sequence_point): Move declaration to...
4775         * c-common.h (warn_sequence_point): ... here.
4776         * c-decl.c (warn_sequence_point): Move definition to...
4777         * c-common.c (warn_sequence_point): ... here.
4778         (struct reverse_tree): New.
4779         (reverse_list, reverse_max_depth): New static variables.
4780         (build_reverse_tree, common_ancestor, modify_ok
4781         verify_sequence_points): New functions.
4782         (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
4783         * c-typeck.c (check_modify_expr): Delete.
4784         (build_modify_expr): Don't call it.
4785
4786 2000-10-17  Joseph S. Myers  <jsm28@cam.ac.uk>
4787
4788         * c-common.h (warn_missing_format_attribute): New variable.
4789         * c-decl.c (warn_missing_format_attribute): New variable.
4790         (c_decode_option): Decode -Wmissing-format-attribute and
4791         -Wno-missing-format-attribute.
4792         * c-common.c (check_function_format): If
4793         -Wmissing-format-attribute, give a warning where a vprintf or
4794         vscanf function is called by a function without its own printf or
4795         scanf attribute.
4796         * toplev.c (documented_lang_options): Add
4797         -Wmissing-format-attribute.
4798         * invoke.texi: Document -Wmissing-format-attribute.
4799
4800 2000-10-17  Marc Espie <espie@openbsd.org>
4801
4802         * invoke.texi (-shared): Insist on requiring code generation flags
4803         to be used along with -shared, and document the subtle failure that
4804         may occur otherwise.
4805
4806 2000-10-16  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
4807
4808         * pa.md (return_internal): Move `use' after `return'.
4809
4810 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4811
4812         * machmode.def: Correct comment.
4813
4814 2000-10-16  Rodney Brown  <RodneyBrown@mynd.com>
4815
4816         * print-rtl.c (print_rtx_head): Constify.
4817         * rtl.h (print_rtx_head): Similarly.
4818
4819         * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
4820         Constify char * return value.
4821         * config/pa/pa/pa.c
4822         (output_64bit_and, output_64bit_ior): Constify char * return value.
4823         (pa_can_combine_p): Make static.
4824         (function_arg): Decorate unused `named' argument. Fix comment typo.
4825         (function_arg_partial_nregs): Decorate unused `named' argument.
4826
4827 2000-10-16  Joseph S. Myers  <jsm28@cam.ac.uk>
4828
4829         * c-common.c (format_check_results): New structure.
4830         (finish_dollar_format_checking): Adjust to take a
4831         format_check_results * parameter.
4832         (check_format_info, check_format_info_recurse,
4833         check_format_info_main): Split check_format_info into three
4834         functions, the main checking going in check_format_info_main.
4835         Recurse when any reduction of the format string argument towards a
4836         string literal is done; go down both branches of a conditional
4837         expression.  Don't warn for extra format arguments or empty format
4838         strings if they only occur in some branches of a conditional
4839         expression.
4840
4841 2000-10-16  Kazu Hirata  <kazu@hxi.com>
4842
4843         * config/h8300/h8300.c: Remove obstack.  Include ggc.h.
4844
4845 2000-10-16  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
4848
4849 2000-10-15  Diego Novillo  <dnovillo@cygnus.com>
4850
4851         * i386.md (*movsi_or): Switch operand order for intel syntax.
4852
4853 2000-10-14  Joseph S. Myers  <jsm28@cam.ac.uk>
4854
4855         * PROBLEMS: Remove.
4856
4857         * gcc.texi (Contributing): Update.
4858
4859 2000-10-13  Diego Novillo  <dnovillo@cygnus.com>
4860
4861         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
4862         appropriate assembler dialect.
4863
4864 2000-10-13  Alexandre Oliva  <aoliva@redhat.com>
4865
4866         * c-common.c (c_expand_builtin): PARAMS-ize prototype.
4867
4868 2000-10-12  Marek Michalkiewicz  <marekm@linux.org.pl>
4869
4870         * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
4871         constants 1 and 2 to NO_LD_REGS.
4872
4873 2000-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4874
4875         * Makefile.in (c-parse.c, tradcif.c): Create atomically.
4876
4877         * objc/Make-lang.in (objc-parse.c): Likewise.
4878
4879 2000-10-13  Richard Earnshaw <rearnsha@arm.com>
4880
4881         * arm.c: Include obstack.h
4882         (minipool_obstack, minipool_startobj): Define.
4883         (arm_add_gc_roots): Initialize them.
4884         (create_fix_barrier): Use our new obstack.
4885         (push_minipool_barrier, push_minipool_fix): Likewise.
4886         (arm_reorg): Release obstack memory.
4887
4888 2000-10-13  Jakub Jelinek  <jakub@redhat.com>
4889
4890         * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
4891         (prologue, exception_receiver, builtin_setjmp_receiver): New
4892         patterns.
4893         * config/sparc/sparc.h (FINALIZE_PIC): Remove.
4894         * config/sparc/sparc-protos.h (finalize_pic): Remove.
4895         (load_pic_register): New prototype.
4896         * config/sparc/sparc.c (pic_setup_code): Remove.
4897         (finalize_pic): Rename to...
4898         (load_pic_register): ...this function.
4899         Don't look for nonlocal_goto_receivers and emit pic setup code
4900         directly.  Don't check current_function_uses_pic_offset_table.
4901
4902 2000-10-13  Richard Earnshaw <rearnsha@arm.com>
4903
4904         * tree.h (struct obstack): Declare.
4905
4906 2000-10-12  Mark Mitchell  <mark@codesourcery.com>
4907
4908         Remove obstacks.
4909         * Makefile.in (ggc-callbacks.o): Remove target.
4910         (flow.o): Depend on GGC_H.
4911         * alias.c (init_alias_analysis):
4912         Remove ggc_p conditionals.
4913         (end_alias_analysis): Likewise.
4914         * basic-block.h (init_flow): New function.
4915         (allocate_reg_life_data): Declare.
4916         * bb-reorder.c  (function_obstack): Replace with ...
4917         (flow_obstack): ... new variable.
4918         (fixup_reorder_chain): Use it.
4919         * c-decl.c (ggc_p): Remove.
4920         (caller-save.c): Don't call oballoc/obfree.
4921         * combine.c (struct
4922         undobuf): Remove storage.
4923         (try_combine): Don't call oballoc.
4924         (undo_all): Don't call obfree.
4925         * cse.c (insert): Use xmalloc, not
4926         oballoc.
4927         (cse_main): Adjust accordingly.
4928         * dwarf2out.c (save_rtx): Remove
4929         obstack code.
4930         (dwarf2out_init): Remove ggc_p conditionals.
4931         * emit-rtl.c (rtl_obstack): Remove.
4932         (gen_rtx_CONST_INT): Remove ggc_p conditionals.
4933         (make_insn_raw): Likewise.
4934         (emit_insn_before): Likewise.
4935         (emit_insn_after): Likewise.
4936         (emit_insn): Likewise.
4937         (gen_sequence): Likewise.
4938         (copy_insn_1): Remove handling of `b' RTL components.
4939         (init_emit_once): Remove ggc_p conditionals.
4940         * except.c (create_rethrow_ref): Don't fool with obstacks.
4941         (add_partial_entry): Likewise.
4942         (call_get_eh_context): Likewise.
4943         (begin_protect_partials): Likewise.
4944         (protect_with_terminate): Likewise.
4945         * explow.c
4946         (plus_constant_wide): Likewise.
4947         * expr.c (init_expr_once):
4948         Likewise.
4949         (emit_block_move): Likewise.
4950         (clear_storage): Likewise.
4951         (expand_expr): Likewise.
4952         * flow.c (function_obstack): Remove.
4953         (flow_obstack): New variable.
4954         (flow_firstobj): Likewise.
4955         (create_base_block): Use the flow_obstack.
4956         (split_block): Likewise.
4957         (split_edge): Likewise.
4958         (calculate_global_regs_live): Likewise.
4959         (allocate_bb_life_data): Make it static.  Likewiwse.
4960         (init_flow): New function.
4961         (size_int_type_wide): Remove ggc_p conditionals.
4962         * function.c
4963         (push_function_context_to): Don't call save_tree_status.
4964         (pop_function_context_from): Or restore_tree_status.
4965         (assign_stack_local_1): Don't call push_obstacks.
4966         (find_fixup_replacement): Use xmalloc.
4967         (fixup_var_refs_insns): Free the storage.
4968         (insns_for_mem_walk): Don't mess with obstacks.
4969         (instantiate_decls): Likewise.
4970         (trampoline_address): Likewise.
4971         (expand_function_end): Likewise.
4972         * function.h (sturct function):
4973         Remove obstack-related variables.
4974         (save_tree_status): Don't declare.
4975         (restore_tree_status): Likewise.
4976         * gcse.c (compute_can_copy):
4977         Don't call oballoc/obfree.
4978         * genattrtab.c (operate_exp): Remove
4979         ggc_p conditionals.
4980         (simplify_cond): Likewise.
4981         (simplify_test_exp): Don't mess with obstacks.
4982         (optimize_attrs): Likewise.
4983         * gengenrtl.c (gendef): Don't include
4984         ggc_p conditionals.
4985         * ggc-callbacks.c (ggc_p): Remove.
4986         * ggc-none.c (ggc_p): Remove.
4987         * ggc.h (ggc_p): Don't declare.
4988         * integrate.c (save_for_inline): Don't mess with obstacks.
4989         (integrate_decl_tree): Likewise.
4990         (output_inline_function): Likewise.
4991         * lists.c
4992         (init_EXPR_INSN_LIST_cache): Likewise.
4993         * loop.c (temp_obstack):
4994         Remove.
4995         (rtl_obstack): Likewise.
4996         (init_loop): Don't mess with obstacks.
4997         (reg_address_cost): Free BIVs and GIVs.
4998         (check_insns_for_bivs): Use xmalloc, not oballoc.
4999         (find_mem_givs): Likewise.
5000         (record_biv): Likewise.
5001         (general_induction_var): Likewise.
5002         (product_cheap_p): Likewse.
5003         * optabs.c (init_one_libfunc): Remove
5004         ggc_p conditional.
5005         * print-tree.c (debug_tree): Don't use
5006         oballoc/obfree.
5007         (print_node): Likewise.
5008         * profile.c (output_func_start_profiler):
5009         Remove call to temporary_allocation.
5010         * reload1.c
5011         (eliminate_regs_in_insn): Don't mess with obstacks.
5012         * resource.c
5013         (mark_target_live_regs): Use xmalloc.
5014         (free_resource_info): Free the memory.
5015         * rtl.c (rtl_obstack):
5016         Remove.
5017         (rtvec_alloc): Don't mess with obstacks.
5018         (rtx_alloc): Likewise.
5019         (rtx_free): Remove.
5020         (copy_rtx): Don't handle `b' cases.
5021         (read_rtx): Use a local rtl_obstack.
5022         * rtl.h (oballoc): Remove.
5023         (obfree): Likewise.
5024         (pop_obstacks): Likewise.
5025         (push_obstacks): Likewise.
5026         (allocate_bb_life_data): Likewise.
5027         (allocate_reg_life_data): Likewise.
5028         (rtx_free): Likewise.
5029         * sdbout.c (sdbout_queue_anonymous_type):
5030         Use tree_cons, not saveable_tree_cons.
5031         * simplify-rtx.c
5032         (cselib_init): Don't mess with obstacks.
5033         * stmt.c
5034         (mark_block_nesting): Mark the label_chain.
5035         (epxand_label): Use ggc_alloc, not oballoc.
5036         (clear_last_expr): Don't mess with obstacks.
5037         (expand_decl_cleanup): Likewise.
5038         (expand_dcc_cleanup): Likewise.
5039         (expand_dhc_cleanup): Likewise.
5040         (expand_anon_union_decl): Likewise.
5041         (add_case_node): Use xmalloc, not oballoc.
5042         (free_case_nodes): New function.
5043         (expand_end_case): Call it.
5044         * stor-layout.c (layout_type): Don't
5045         mess with obstacks.
5046         (layout_type): Likewise.
5047         * toplev.c (wrapup_global_declarations):
5048         Likewise.
5049         (compile_file): Remove ggc_p conditionals.
5050         (rest_of_compilation): Call init_flow.  Remove ggc_p conditionals.
5051         (decode_f_option): Remove ggc_p conditionals.
5052         * tree.c
5053         (function_maybepermanent_obstack): Remove.
5054         (maybepermanent_obstack): Likewise.
5055         (function_obstack): Likewise.
5056         (tmeporary_obstack): Likewise.
5057         (momentary_obstack): Likewise.
5058         (temp_decl_obstack): Likewise.
5059         (saveable_obstack): Likewise.
5060         (rtl_obstack): Likewise.
5061         (current_obstack): Likewise.
5062         (expression_obstack): Likewise.
5063         (struct obstack_stack): Likewise.
5064         (obstack_stack): Likewise.
5065         (obstack_stack_obstack): Likewise.
5066         (maybepermanent_firstobj): Likewise.
5067         (temporary_firstobj): Likewise.
5068         (momentary_firstobj): Likewise.
5069         (temp_decl_firstobj): Likewise.
5070         (momentary_function_firstobj): Likewise.
5071         (all_types_permanent): Likewise.
5072         (struct momentary_level): Likewise.
5073         (momentary_stack): Likewise.
5074         (init_obstacks): Remove initialization of removed obstacks.
5075         (save_tree_status): Remove.
5076         (restore_tree_status): Likewise.
5077         (temporary_allocation): Liekwise.
5078         (end_temporary_allocation): Liekwise.
5079         (resume_temporary_allocation): Likewise.
5080         (saveable_allocation): Likewise.
5081         (push_obstacks): Likewise.
5082         (push_obstacks_nochange): Likewise.
5083         (pop_obstacks): Likewise.
5084         (allocation_temporary_p): Likewise.
5085         (permanent_allocation): Likewise.
5086         (preserve_data): Likewise.
5087         (preserve_initializer): Likewise.
5088         (rtl_in_current_obstack): Likewise.
5089         (rtl_in_saveable_obstack): Likewise.
5090         (oballoc): Likewise.
5091         (obfree): Likewise.
5092         (savealloc): Likewise.
5093         (expralloc): Likewise.
5094         (print_obstack_name): Likewise.
5095         (debug_obstack): Likewise.
5096         (object_permanent_p): Likewise.
5097         (push_momentary): Likewise.
5098         (perserve_momentary): Likewise.
5099         (clear_momentary): Likewise.
5100         (pop_momentary): Likewise.
5101         (pop_momentary_nofree): Likewise.
5102         (suspend_momentary): Likewise.
5103         (resume_momentary): Likewise.
5104         (make_node): Don't set TREE_PERMANENT.
5105         (copy_node): Remove ggc_p conditionals.  Don't set TYPE_OBSTACK.
5106         Don't set TREE_PERMANENT.
5107         (get_identifier): Remove ggc_p conditionals.
5108         (build_string): Likewise.
5109         (make_tree_vec): Likewise.
5110         (build_decl_list): Remove.
5111         (build_expr_list): Likewise.
5112         (tree_cons): Remove ggc_p conditionals.
5113         (decl_tree_cons): Remove.
5114         (expr_tree_cons): Likewise.
5115         (perm_tree_cons): Likewise.
5116         (temp_tree_cons): Likewise.
5117         (saveable_tree_cons): Likewise.
5118         (build1): Remove ggc_p conditionals.
5119         (build_parse_node): Likewise.
5120         (build_type_attribute_variant): Don't mess with obstacks.
5121         (build_type_copy): Likewise.
5122         (type_hash_canon): Likewise.
5123         (build_pointer_type): Likewise.
5124         (build_reference_type): Likewise.
5125         (build_index_type): Likewise.
5126         (build_range_type): Likewise.
5127         (dump_tree_statistics): Don't print obstack information.
5128         * tree.h
5129         (struct tree_common): Remove permanent_flag.
5130         (TREE_PERMANENT): Remove.
5131         (TREE_SET_PERMANENT): Likewise.
5132         (TYPE_OBSTACK): Likewise.
5133         (struct tree_type): Remove obstack.
5134         (oballoc): Remove.
5135         (savealloc): Likewise.
5136         (build_decl_list): Likewise.
5137         (build_expr_list): Likewise.
5138         (perm_tree_cons): Likewise.
5139         (temp_tree_cons): Likewise.
5140         (saveable_tree_cons): Likewise.
5141         (decl_tree_cons): Likewise.
5142         (expr_tree_cons): Likewise.
5143         (suspend_momentary): Likewise.
5144         (allocation_temporary_p): Likewise.
5145         (resume_momentary): Likewise.
5146         (push_obstacks_nochange): Likewise.
5147         (permanent_allocation): Likewise.
5148         (push_momentary): Likewise.
5149         (clear_momentary): Likewise.
5150         (pop_momentary): Likewise.
5151         (end_temporary_allocation): Likewise.
5152         (pop_obstacks): Likewise.
5153         (push_obstacks): Likewise.
5154         (pop_momentary_nofree): LIkewise.
5155         (preserve_momentary): Likewise.
5156         (saveable_allocation): Likewise.
5157         (temporary_allocation): Likewise.
5158         (resume_temporary_allocation): Likewise.
5159         (perserve_initializer): Likewise.
5160         (debug_obstack): Likewise.
5161         (rtl_in_current_obstack): Likewise.
5162         (rtl_in_saveable_obstack): Likewise.
5163         (obfree): Likewise.
5164         * varasm.c (current_obstack): Remove.
5165         (saveable_obstack): Remove.
5166         (rtl_obstack): Remove.
5167         (immed_double_const): Don't mess with obstacks.
5168         (immed_real_cons): Likewise.
5169         (output_constant_def): Likewise.
5170         (init_varasm_status): Use xcalloc.
5171         (mark_pool_constant): Mark the pool constant itself.
5172         (free_varasm_status): Free memory.
5173         (decode_rtx_const): Call bzero directly, rather than expanding it
5174         inline.
5175         (record_rtx_const): Don't mess with obstacks.
5176         (force_const_mem): Likewise.
5177         * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
5178         conditionals.
5179         (aof_pic_entry): Likewise.
5180         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5181         * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
5182         * config/pa/pa.c (saveable_obstack): Remove.
5183         (rtl_obstack): Likewise.
5184         (current_obstack): Likewise.
5185         (output_call): Don't mess with obstacks.
5186         (hppa_encode_label): Remove ggc_p conditionals.
5187         * config/romp/romp.c (get_symref): Don't mess with obstacks.
5188         * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
5189         (rs6000_encode_section_info): Likewise.
5190         * config/sh/sh.c (get_fpscr_rtx): Likewise.
5191
5192 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka  <jh@suse.cz>
5193
5194         * i386.md (adddi3, subdi3 splitters): Update for new pattern.
5195         (addsi3_cc, addqi3_cc, subsi3_cc): Remove
5196         (addsi3_carry): Canonicalize.
5197         (addqi_5): Remove '*'.
5198         (sbb pattern): Canonicalize.
5199
5200         * i386.md (cmp to inc/add peep2): New.
5201
5202 2000-10-12  Richard Earnshaw  <rearnsha@arm.com>
5203
5204         * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
5205         the exit block.
5206
5207 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5208
5209         * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
5210         * README.TRAD, TESTS.FLUNK: Remove.
5211
5212 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5213
5214         * c-common.c (decl_attributes): Don't allow strftime formats with
5215         first_arg_num nonzero.
5216         (check_format_info): Set wanted_type and wanted_type_name to zero
5217         before they are possibly assigned and used.
5218
5219 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5220
5221         * c-common.c (scanf_flag_specs): Add flags ' and I.
5222         (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
5223         or the ^ and # flags together.
5224         (scan_char_table): Handle the ' and I flags.
5225         (format_types): Add ' and I flags for scanf.
5226
5227 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
5228
5229         * c-common.c (print_char_table): Use the unpromoted type for
5230         lengths "h" and "hh" with conversions dioxXu.
5231         (check_format_types): Apply the default argument promotions where
5232         the wanted type is not a pointer target.
5233
5234 2000-10-11  Michael Meeks  <mmeeks@gnu.org>
5235             Joseph S. Myers  <jsm28@cam.ac.uk>
5236
5237         * c-typeck.c (check_modify_expr): New function.
5238         (build_modify_expr): Call it if warn_sequence_point.
5239         * c-decl.c (warn_sequence_point): New variable.
5240         (c_decode_option): Handle -Wsequence-point and
5241         -Wno-sequence-point.  Enable -Wsequence-point as part of -Wall.
5242         * c-tree.h (warn_sequence_point): Declare.
5243         * invoke.texi (-Wsequence-point): Document.
5244         * toplev.c (documented_lang_options): Add -Wsequence-point and
5245         -Wno-sequence-point.
5246         Original work by Michael Meeks, 16 Jun 1998.
5247
5248 Wed Oct 11 06:15:41 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5249
5250         * tree.c (get_narrower): Don't look at precision of field if
5251         not laid out yet.
5252
5253 Tue Oct 10 23:14:33 2000  Denis Chertykov  <denisc@overta.ru>
5254
5255         * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
5256         declaration for data with "progmem" attribute.
5257
5258 2000-10-09  Marek Michalkiewicz  <marekm@linux.org.pl>
5259
5260         * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
5261         Correct insn length if shift count is a memory operand.
5262         * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
5263         (*iorhi3_clobber): Change lo8 to hi8.
5264         (zero_extendhisi2): Change %B0 to %A1.
5265         (ashlhi3, ashrhi3): Correct insn length.
5266         (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
5267         from "clobber" to "set_n" in some alternatives.
5268
5269 2000-10-10  Jakub Jelinek  <jakub@redhat.com>
5270
5271         * reload1.c (calculate_needs_all_insns): If deleting an instruction,
5272         remove its insn_chain structure as well.
5273
5274 2000-10-09  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
5275
5276         * dbxout.c (dbxout_source_line): Remove extra tab.
5277
5278 2000-10-09  Hans-Peter Nilsson  <hp@bitrange.com>
5279
5280         * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
5281
5282 2000-10-09  Richard Henderson  <rth@cygnus.com>
5283
5284         * Makefile.in (LANG_LIB2FUNCS): Remove.
5285         (LIB2FUNCS): Remove _pure.
5286         (LIB2ADD): Remove LANG_LIB2FUNCS.
5287         (stage_a): Don't set LANG_LIB2FUNCS.
5288         * libgcc2.c (__terminate): Mark noreturn.
5289         (__pure_virtual): Remove.
5290         * mklibgcc.in: Remove LIB2ADD .txt processing.
5291
5292 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
5293
5294         * arm.md (push_multi): Revert unintended change.
5295
5296 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
5297
5298         * arm.c: Miscellaneous white space and comment clean-ups.  No
5299         functional change.
5300         * arm.md: Likewise.
5301
5302 2000-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5303
5304         * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
5305         STRING_CST by calling combine_strings.
5306
5307 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
5308
5309         * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
5310         (thumb_output_move_mem_multiple): Support new insn format.
5311         * arm.md (movmem12b): Use SSA compatible format.
5312         (movmem8b): Likewise.
5313
5314 2000-10-09  Richard Earnshaw  <rearnsha@arm.com>
5315
5316         * arm.md (predicable): New attribute, default to "no".
5317         (all patterns): Mark as predicable if appropriate.
5318         (conditional execution splits): Split using predication format.
5319         (define_cond_exec): Define.
5320         * arm.c (arm_print_operand): handle insn predicate.
5321
5322 2000-10-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5323
5324         * README.NS32K: Remove file.
5325
5326 2000-10-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5327
5328         * README-bugs: Remove file.
5329
5330 2000-10-08  Philipp Thomas  <pthomas@suse.de>
5331         * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
5332         for test.
5333         * configure: Rebuilt.
5334
5335 2000-10-08  Philipp Thomas  <pthomas@suse.de>
5336         * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
5337         disable catalog building if no suitable program was found.
5338         Move warning message from here
5339         (AM_GNU_GETTEXT): To here.
5340         * configure: Rebuilt.
5341
5342 2000-10-08  Philipp Thomas  <pthomas@suse.de>
5343         * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
5344         different cache variables.
5345         (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
5346         uses different cache variables.
5347         (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
5348         * configure: Regenerated.
5349
5350 2000-10-08  Richard Henderson  <rth@cygnus.com>
5351
5352         * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
5353         * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
5354         * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
5355         Use SHLIB_EXT.
5356
5357         * config/t-linux (SHLIB_EXT): New.
5358         (SHLIB_LINK): Use the entire build command, with substitutions.
5359         (SHLIB_LIBS): Remove.
5360         * config/alpha/t-osf4: Likewise.
5361         * config/mips/t-iris6: Likewise.
5362         * config/sparc/t-sol2: Likewise, but move shlib stuff...
5363         * config/sparc/t-slibgcc-sld: ...here.
5364         * config/sparc/t-slibgcc: New file.
5365
5366 2000-10-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5367
5368         * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
5369         * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
5370         CTI_UINTMAX_TYPE.
5371         (intmax_type_node, uintmax_type_node): Define.
5372         * c-common.c (decl_attributes): If pedantic, warn if `mode'
5373         attributes create a type wider than intmax_t.
5374         (T_IM, T_UIM): Define properly.
5375         * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
5376         defined.
5377         (init_decl_processing): Initialize intmax_type_node and
5378         uintmax_type_node.
5379         * c-lex.c (lex_number): When pedantic and warning for integer
5380         constants that are too large, in C99 mode warn for those that have
5381         a type wider than long long.
5382
5383 2000-10-08  Joseph S. Myers  <jsm28@cam.ac.uk>
5384
5385         * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
5386         FMT_FLAG_FANCY_PERCENT_OK): Define.
5387         (format_char_info): Add flag "4" to comment.
5388         (format_flag_spec, format_flag_pair): New structures.
5389         (format_kind_info): Add additional fields to control format
5390         checking.
5391         (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
5392         scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
5393         arrays.
5394         (time_char_table): Use "4" flag to handle %Ey.
5395         (format_types): Add entries for new fields.
5396         (get_flag_spec): New function.
5397         (check_format_info): Increase size of flag_chars[] to 256.
5398         Control format checking using the new fields of a format_kind_info
5399         and the new tables; remove all conditionals on printf_format_type,
5400         scanf_format_type or strftime_format_type.  Handle all details of
5401         bad combinations of flags (including width, precision and strftime
5402         modifiers) through data rather than ad hoc code.  Handle all
5403         details of standard versions in which flags appeared through
5404         data.  Use the "4" flag.
5405
5406 2000-10-07  Will Cohen  <wcohen@redhat.com>, Kazu Hirata  <kazu@hxi.com>
5407
5408         * config/h8300/h8300.md: Remove the memory alternative and correct
5409         the insn lengths in the templates for sign extention and zero
5410         extention.
5411
5412 2000-10-07  Richard Henderson  <rth@cygnus.com>
5413
5414         * calls.c (expand_call): Disallow sibcalls to noreturn functions.
5415         * flow.c (make_edges): Revert last change.
5416
5417         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
5418         TREE_THIS_VOLATILE.
5419         * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
5420
5421 2000-10-06  David O'Brien  <obrien@dragon.nuxi.com>
5422
5423         * config/alpha/elf.h: Standardize the formatting.
5424
5425 2000-10-06  David O'Brien  <obrien@FreeBSD.org>
5426
5427         * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
5428         #undef.
5429
5430 2000-10-06  Richard Henderson  <rth@cygnus.com>
5431
5432         * function.c (diddle_return_value): Examine
5433         current_function_return_rtx instead of the DECL_RESULT.
5434         (expand_function_end): Handle reloading DECL_RESULT from memory
5435         into a hard register.  Query promote_mode for sign of mismatched
5436         modes.
5437
5438 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5439
5440         * haifa-sched.c (schedule_insns): Fix typo in freeing
5441         forward_dependency_cache.
5442
5443 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
5444
5445         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
5446         `TARGET_SH2' as a condition.
5447
5448 2000-10-06  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5449
5450         * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
5451         forward_dependency_cache): New variables.
5452         (add_dependence, remove_dependence): Use anti_dependency_cache and
5453         output_dependency_cache.
5454         (compute_block_forward_dependences): Use forward_dependency_cache.
5455         (schedule_insns): Allocate and free memory for anti/output/forward
5456         dependencies caches.
5457
5458 2000-10-06  Alexandre Oliva  <aoliva@redhat.com>
5459
5460         * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
5461         `! TARGET_SH1'.  Reindent.
5462
5463 2000-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5464
5465         * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
5466         Move functions from here ...
5467
5468         * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
5469         ... to here.
5470         (c_expand_builtin): New function.
5471         (init_function_format_info): Don't set `check_function_format_ptr'.
5472         (c_common_nodes_and_builtins): Set built_in_class type for
5473         printf/__builtin_printf to BUILT_IN_FRONTEND.
5474         (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
5475
5476         * c-common.h (build_function_call): Declare.
5477
5478         * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
5479         to `lang_expand_expr' rather than `expand_builtin'.
5480
5481         * tree.c (check_function_format_ptr): Delete.
5482
5483         * tree.h (check_function_format_ptr): Likewise.
5484
5485 2000-10-06  Hans-Peter Nilsson  <hp@bitrange.com>
5486
5487         * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
5488         DW_OP_bregx when cfa->reg > 31.
5489
5490         * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
5491         break.
5492
5493 2000-10-05  Richard Henderson  <rth@cygnus.com>
5494
5495         * c-decl.c (warn_missing_noreturn): Remove.
5496         (c_expand_body): Don't set or check can_reach_end.
5497         * c-tree.h (warn_missing_noreturn): Move ...
5498         * flags.h: ... here.
5499         (can_reach_end): Remove.
5500         * flow.c (check_function_return_warnings): New.
5501         (make_edges): No edge to exit for noreturn sibcalls.
5502         * function.c (expand_function_end): Save the return value
5503         clobber instruction.
5504         (mark_function_status): Mark it.
5505         * function.h (struct function): Add x_clobber_return_insn.
5506         * jump.c (can_reach_end): Remove.
5507         (calculate_can_reach_end): Remove.
5508         (jump_optimize_1): Don't call it.
5509         * output.h (check_function_return_warnings): Declare.
5510         * toplev.c (warn_missing_noreturn): Move from c-decl.c
5511         (rest_of_compilation): Call check_function_return_warnings.
5512
5513 2000-10-05  Richard Henderson  <rth@cygnus.com>
5514
5515         * Makefile.in (NM_FOR_TARGET): New.
5516         (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
5517         (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
5518         * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map.  Depend the
5519         shared library build on that and EXTRA_MULTILIB_PARTS.
5520         * mkmap-flat.awk: New file.
5521         * mkmap-symver.awk: New file.
5522         * libgcc-std.ver: New file.
5523         * config/libgcc-glibc.ver: New file.
5524         * config/ia64/libgcc-ia64.ver: New file.
5525         * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5526         (SHLIB_LINK): Add --version-script.
5527         * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
5528         * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5529         * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5530         (SHLIB_LINK): Add -M.
5531
5532 2000-10-05  Richard Henderson  <rth@cygnus.com>
5533
5534         * Makefile.in (LIB2FUNCS): Add _clz.
5535         * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
5536         (__clz_tab): Put in its own unit, non-static.
5537         * libgcc2.h: Always include longlong.h.
5538
5539         * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
5540         a zero instead of -1.
5541         (count_trailing_zeros): Likewise.
5542
5543 2000-10-05  Richard Henderson  <rth@cygnus.com>
5544
5545         * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
5546         when second op1 is const0_rtx.  Validate op0 as a register.
5547         * config/alpha/alpha.md (setcc_internal): Don't allow constants
5548         in the first argument of the compare.
5549         (setcc_swapped_internal): Likewise.
5550         (setne_internal): Likewise.
5551
5552 2000-10-05  Geoff Keating  <geoffk@cygnus.com>
5553
5554         * tree.c (tree_size): New function split out of copy_node.
5555         (make_node): Remove obstack handling.  Use tree_size.
5556         (copy_node): Use tree_size.
5557         * tree.h: Prototype tree_size.
5558
5559 2000-10-05  Richard Henderson  <rth@cygnus.com>
5560
5561         * diagnostic.c (output_format): Add missing break.
5562
5563 2000-10-05  Jim Wilson  <wilson@cygnus.com>
5564
5565         * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
5566         SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
5567         sequence insn to INSN, and delete last sequence insn.
5568
5569 2000-10-05  Phil Edwards  <pme@gcc.gnu.org>
5570
5571         * gcc.c (main): Include generated configargs.h header
5572         and use arguments in '-v' output.
5573
5574 Thu Oct  5 16:16:57 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5575
5576         * gcc.c: Move data on prefixes forward in file and reorganize.
5577         (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
5578         Always define, but make null if no value.
5579         (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
5580         and "md_startfile_prefix_1".
5581         (main): Check whether md_exec_prefix and the others are the
5582         null string rather than whether the macro is defined.
5583
5584 Thu Oct  5 19:04:18 2000  J"orn Rennecke <amylaar@redhat.co.uk>
5585
5586         * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
5587         from PSImode to SImode.
5588
5589 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
5590
5591         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
5592         from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
5593         * dwarf2out.c (add_const_value_attribute): Divide by 4, not
5594         sizeof(long).
5595
5596 Thu Oct  5 09:31:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5597
5598         * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
5599         negation in proper type.a
5600
5601 2000-10-04  Richard Henderson  <rth@cygnus.com>
5602
5603         * configure.in (enable-shared): New.
5604         * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
5605         (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
5606         * mklibgcc.in: Use them to link shared a libgcc.
5607         * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
5608         * config/alpha/t-ieee (SHLIB_MULTILIB): New.
5609         * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
5610         * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
5611
5612         * configure.in (alpha-osf*): Use t-osf and x-osf.
5613         * config/alpha/t-osf: New file.
5614         * config/alpha/t-osf4: New file.
5615         * config/alpha/x-osf: New file.
5616         * config/alpha/x-alpha: Remove file.
5617
5618 2000-10-04  Will Cohen  <wcohen@redhat.com>
5619
5620         * c-typeck.c (process_init_element): Added warning for zero-length
5621         array.
5622
5623         * extend.texi (Zero Length): State that static initializers for
5624         zero-length arrays are not allowed.
5625
5626 Mon Oct  2 14:50:14 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5627
5628         * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
5629         to come last.
5630
5631 2000-10-03  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5632
5633         * config/float-c4x.h: New.
5634         * configure.in (c4x-*): Set float_format to c4x.
5635         * configure: Regenerate.
5636
5637 2000-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5638
5639         * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
5640         compilation for solaris versions 2.7 and greater.
5641
5642 2000-10-02  Marc Espie <espie@openbsd.org>
5643
5644         * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
5645         instead of redefining from scratch.
5646
5647 2000-10-02  David O'Brien  <obrien@dragon.nuxi.com>
5648
5649         * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
5650
5651 2000-10-01  Mark Mitchell  <mark@codesourcery.com>
5652
5653         * config/ns32k/genix.h: Remove.
5654         * config/ns32k/x-genix: Likewise.
5655         * config/ns32k/xm-genix.h: Likewise.
5656         * config/fx80: Remove all filee in directory.
5657         * config/pyr: Likewise.
5658         * config/tahoe: Likewise.
5659         * config/gmicro: Likewise.
5660         * config/spur: Likewise.
5661         * configure.in: Remove configury bits for above targets.
5662         * configure: Regenerated.
5663
5664         * configure.in: Don't configure chill by default.
5665         * configure: Regenerated.
5666
5667         * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
5668         (lang_mark_false_label_stack): Remove.
5669         * c-lex.c (init_c_lex): Add file_info_tree as GC root.  Allocate
5670         <top level> string in GC area.
5671         (mark_splay_tree_node): New function.
5672         (mark_splay_tree): Likewise.
5673         * except.c (mark_eh_status): Only call lang_mark_false_label_stack
5674         if it exists.
5675         * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
5676         * ggc-common.c (lang_mark_false_label_stack): Change type.
5677         * ggc.h (ggc_alloc_string): Add comment.
5678         (ggc_strdup): New function.
5679
5680 Sat Sep 23 19:10:20 2000  Denis Chertykov  <denisc@overta.ru>
5681
5682         * config/avr/avr.h (BRANCH_COST): Define as 0.
5683
5684         * config/pdp11/pdp11.c: #include "tree.h" added.
5685
5686 2000-09-30  Marek Michalkiewicz  <marekm@linux.org.pl>
5687
5688         * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
5689         ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
5690         with known shift count.
5691         * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
5692         New alternative for shift count 2 with no scratch register.
5693         (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
5694         "set_n" for shift counts 1 and 2.
5695
5696 2000-09-30  Geoff Keating  <geoffk@cygnus.com>
5697
5698         * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE.  Calculate
5699         the mask value from the individual SET operations.
5700         (return_internal_si): Move the USE after the RETURN.
5701         (return_internal_di): Likewise.
5702         (return_and_restore_fpregs_si): Likewise.
5703         (return_and_restore_fpregs_di): Likewise.
5704         (return_eh_si): Likewise.
5705         (return_eh_di): Likewise.
5706         * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
5707         or check, the USE.
5708         (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
5709         Don't generate a PARALLEL around a single operation movsi_to_cr.
5710         Generate the RETURN first in any PARALLELs.
5711
5712         * rtlanal.c (single_set_1): Use fatal_insn to display the
5713         invalid insn.  Check for more cases when a USE or CLOBBER occurs
5714         before a SET.
5715         * Makefile.in: Update dependencies for rtlanal.o.
5716
5717 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
5718
5719         * i386.c: Move include of "config.h" to before that of <setjmp.h>.
5720
5721 2000-09-30  Joseph S. Myers  <jsm28@cam.ac.uk>
5722
5723         * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
5724         Consistently use @email for formatting email addresses.
5725
5726 2000-09-29  Richard Henderson  <rth@cygnus.com>
5727
5728         * cse.c (notreg_cost): New argument outer.
5729         (COST): Pass in SET to notreg_cost
5730         (COST_IN): New.
5731         (fold_rtx): Use COST_IN.  Prefer constants when costs
5732         are the same.
5733
5734 2000-09-29  David Edelsohn  <edelsohn@gnu.org>
5735
5736         * fixinc/inclhack.def (broken_cabs): Generalize regex.
5737         * fixinc/fixincl.x: Regenerate.
5738
5739 2000-09-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5740
5741         * loop.c (check_final_value): A GIV is not replaceable if used
5742         before set.
5743
5744 Fri Sep 29 10:04:12 2000  Jeffrey A Law  (law@cygnus.com)
5745
5746         * version.c: Bump to gcc-2.97.
5747
5748 Frs Sep 29 13:37:59 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5749
5750         * final.c (final_scan_insn): Remove extra extract_insn call;
5751         Use caching for constrain_operands.
5752         (cleanup_subreg_operands): Use caching for extract_insn.
5753         * recog.c (constrain_operands_cached): New.
5754         * recog.h (constrain_operands_cached): Declare.
5755         * i386.c (ix86_attr_length_immediate_default,
5756         ix86_attr_length_address_default, ix86_agi_dependant): Cache
5757         extract_insn call.
5758
5759         * recog.c (asm_noperands): Tweak.
5760         (extract_insn): Do not call asm_noperads for non-asm instructions.
5761
5762 Fri Sep 29 13:20:42 MET DST 2000  Jan Hubicka  <jh@suse.cz>
5763
5764         * recog.c (recog_memoized): Rename to recog_memoized_1.
5765         * recog.h (recog_memoized): Rename to recog_memoized_1.
5766         (recog_memoized): New macro.
5767         * rtl.h (single_set): Rename to single_set_1
5768         (single_set): New macro.
5769         * rtlanal.c (single_set): Rename to single_set_1;  expect clobbers
5770         to be last.
5771
5772         * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
5773         Do not use match_dup of input operands at outputs.
5774         Use register_operand for memory expression.
5775         (rep_movsi): Put use last, canonicalize.
5776         Use register_operand for memory expression.
5777         (rep_movqi): Put use last.
5778         Use register_operand for memory expression.
5779         (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
5780         of input operands at outputs.  Use register_operand for memory
5781         expression.
5782         (rep_stossi): Put use last; canonicalize; fix match_dup in
5783         the address expression
5784         (rep_stosqi): Likewise.
5785         (memcmp expander): Update calls.
5786         (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
5787         the clobbers.
5788
5789         * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
5790         VOIDmode.
5791         (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
5792
5793 2000-09-28  David O'Brien  <obrien@FreeBSD.org>
5794
5795         * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
5796         Contains the old contents of config/i386/freebsd.h
5797         * config/i386/freebsd.h: Now the ELF rather than a.out config file.
5798         Contains the old contents of config/i386/freebsd-elf.h
5799         * config/i386/freebsd-elf.h: Retire this file -- contents moved to
5800         config/i386/freebsd.h.
5801         * configure.in: Adjust for above changes.
5802         * po/POTFILES.in: Likewise.
5803         * po/en_GB.po: Likewise.
5804         * po/gcc.pot: Likewise.
5805         * configure: Rebuilt.
5806
5807 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5808
5809         * doloop.c (doloop_modify): Prevent delete_insn() from
5810         deleting too much.  Prefer loop->top over loop->start as
5811         target for the new JUMP insn.
5812         (doloop_valid_p): Ignore loop with exit_count != 0.
5813
5814 2000-09-28  Philipp Thomas  <pthomas@suse.de>
5815
5816         * invoke.texi (i386 Options): Add athlon to table of possible
5817         choices for -mcpu=.
5818
5819 2000-09-28  Gabriel Dos Reis  <gdr@codesourcery.com>
5820
5821         * diagnostic.h (output_clear_message_text): New function.
5822         (output_message_text): New macro.
5823
5824         * diagnostic.c (clear_text_info): Rename to
5825         output_clear_message_text.
5826         (output_clear): Adjust.
5827         (output_finish): Rename to output_finalize_message.  Tweek.
5828         (output_to_stream): Adjust.
5829
5830 2000-09-28  Neil Booth  <neilb@earthling.net>
5831
5832         * cpperror.c (_cpp_begin_message):  Do the test for suppression
5833         of warnings and pedantic warnings before the "is a warning an
5834         error" tests.
5835         * cppinit.c (cpp_handle_option): Remove surplus \n.
5836         * cpplex.c (ON_REST_ARG): Delete.
5837         (skip_block_comment): Initialise prevc.
5838         (parse_args): Improve error messages.
5839         (maybe_paste_with_next): Use CONTEXT_VARARGS rather
5840         than ON_REST_ARG.
5841         * cpplib.c (cpp_push_buffer): Fix grammar in message.
5842         * cppmain.c (main): Set callbacks for #ident and #pragma
5843         only if no_output option is false.
5844         (do_pragma_implementation): Only call the #pragma handler
5845         if it is set in the cpp_reader structure.
5846
5847 Wed Sep 27 14:00:07 2000  Donald Lindsay  <dlindsay@cygnus.com>
5848
5849         * integrate.c (copy_insn_list): if an ignored return value
5850         is being clobbered, skip cloning that into the inline copy.
5851
5852 2000-09-27  Joseph S. Myers  <jsm28@cam.ac.uk>
5853
5854         * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
5855         use @uref for formatting URLs.
5856
5857 2000-09-27  Mark Elbrecht  <snowball3@bigfoot.com>
5858
5859         * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
5860         name and prefix.
5861
5862 Tue 26-Sep-2000 18:25:38 BST  Neil Booth  <neilb@earthling.net>
5863
5864         * gcc.c (cpp_options): Add spec for -ftabstop=.
5865         (invoke_as): New spec that handles invoking as.
5866         Update specs to handle -save-temps and -traditional.
5867         * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
5868         Use invoke_as.
5869         * cp/lang-specs.h, objc/lang-specs.h: Update to use
5870         invoke_as, and handle -save-temps and -traditional (if
5871         appropriate).
5872
5873 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
5874
5875         * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
5876         op0 is a SUBREG.
5877         (function_arg_slotno): Accept TImode/CTImode.
5878         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
5879         to UNITS_PER_WORD.
5880
5881 2000-09-26  Michael Hayes  <mhayes@cygnus.com>
5882
5883         * flow.c (flow_loop_pre_header_scan): Punt if loop enters
5884         from entry block.
5885
5886 2000-09-25  Jim Wilson  <wilson@cygnus.com>
5887
5888         * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
5889         (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
5890         (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
5891         (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
5892
5893 Tue 26-Sep-2000 00:16:22 BST  Neil Booth  <neilb@earthling.net>
5894
5895         * cpplex.c (parse_args): Don't set VOID_REST flag.
5896         (CONTEXT_VARARGS): New flag.
5897         (maybe_paste_with_next): Set context earlier in loop.  Use
5898         it.  Do varargs test with CONTEXT_VARARGS flag.
5899         (push_arg_context): Set CONTEXT_VARARGS flag if we're
5900         pushing an argument context for a varargs argument.
5901         * cpplib.h (VOID_REST): Delete.
5902         * gcc.dg/cpp/vararg1.c: Add test case.
5903
5904 2000-09-25  Branko Cibej  <branko.cibej@hermes.si>
5905
5906         * flags.h:  Declare warning flag warn_system_headers.
5907         * toplev.c:  Define it.
5908         (W_options): Add option -Wsystem-headers.
5909         * diagnostic.c (count_error): Test warn_system_headers.
5910         * invoke.texi:  Add description for -Wsystem-headers.
5911         * cpplib.h (cpp_options): New member warn_system_headers.
5912         * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
5913         CPP_IN_SYSTEM_HEADER.
5914         * cpplib.c (do_import, do_pragma_once): Likewise.
5915         * cpperror.c (_cpp_begin_message): Test warn_system_headers
5916         and CPP_IN_SYSTEM_HEADER.
5917         * cppinit.c (handle_option): Recognize -Wsystem_headers.
5918         (print_help): Describe -Wsystem_headers.
5919         * cpplex.c (lex_line): Reorganize condition so that warnings
5920         about C++ comments in system headers can be enabled. Remove
5921         label do_line_comment.
5922
5923 Mon 25-Sep-2000 23:38:27 BST  Neil Booth  <neilb@earthling.net>
5924
5925         * cpplex.c (save_comment): Only store the initial '/'
5926         now.
5927         (lex_token): Combine handling of the two comment types.
5928         Pass everything but the initial '/' to save_comment.
5929
5930 Mon 25-Sep-2000 23:31:45 BST  Neil Booth  <neilb@earthling.net>
5931
5932         * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
5933         _cpp_can_paste): New library-internal prototypes.
5934         * cpplex.c (dump_param_spelling, output_line_command,
5935         output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
5936         cpp_printf, cpp_output_list): Move to cppoutput.c.
5937         (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
5938         * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
5939         cppoutput.c.
5940         * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
5941         dump_param_spelling, output_line_command, cpp_scan_buffer,
5942         cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
5943         from elsewhere.
5944         * Makefile.in: Add cppoutput.c.
5945         * po/POTFILES.in: Add cppoutput.c.
5946
5947 2000-09-25  Richard Henderson  <rth@cygnus.com>
5948
5949         * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
5950         * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
5951         split until after reload.
5952         (rotlsi3, rotldi3): New.
5953
5954 2000-09-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5955
5956         * diagnostic.c (output_last_position): Define.
5957         (set_real_maximum_length): Tweek.
5958         * diagnostic.h (output_last_position): Declare.
5959
5960 2000-09-25  Kazu Hirata  <kazu@hxi.com>
5961
5962         * config/i386/i386.c: Fix formatting.
5963
5964 2000-09-24  Alan Lehotsky  <alehotsky@cygnus.com>
5965
5966         * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
5967         UNITS_PER_WORD is small.
5968
5969 2000-09-25  Joseph S. Myers  <jsm28@cam.ac.uk>
5970
5971         * c-common.c (format_char_info): Add flags2; update comments.
5972         (print_char_table, scan_char_table, time_char_table): Split some
5973         flags out into flags2.
5974         (check_format_info): Use flags2 for those flags, for identifying
5975         the initial character of a scanf scanset, and for identifying
5976         printf formats where the '0' flag is ignored with precision.
5977
5978 2000-09-25  Hans-Peter Nilsson  <hp@axis.com>
5979
5980         Changes below marked "here" add TABs on either or both sides,
5981         covering start of line, up to any operand for all noted .*ASM.*_OP
5982         definitions.  All callers changed.
5983         * tm.texi: Make documented *_ASM.*_OP:s include spacing
5984         (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
5985         BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5986         ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5987         ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
5988         Fix typos in description for LONG_LONG_TYPE_SIZE and
5989         FINI_SECTION_ASM_OP.
5990         * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
5991         why these defaults don't have leading spacing.
5992         * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
5993         * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5994         UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
5995         * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
5996         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
5997         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
5998         * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
5999         * varasm.c (ASM_STABS_OP): Here.
6000         * xcoffout.h (ASM_STABS_OP): Here.
6001         * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
6002         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
6003         INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
6004         STRING_ASM_OP): Here.
6005         * config/freebsd.h (IDENT_ASM_OP): Here.
6006         * config/linux-aout.h (SET_ASM_OP): Here.
6007         * config/linux.h (SET_ASM_OP): Here.
6008         * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6009         INT_ASM_OP): Here.
6010         * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
6011         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
6012         * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
6013         * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6014         INT_ASM_OP): Here.
6015         * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
6016         SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
6017         INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
6018         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
6019         FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
6020         * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6021         CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
6022         * config/a29k/udi.h (INT_ASM_OP): Here.
6023         * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
6024         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
6025         SET_ASM_OP): Here.
6026         * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
6027         READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6028         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6029         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
6030         ASM_STABD_OP): Here.
6031         * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
6032         COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
6033         CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6034         BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
6035         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
6036         SIZE_ASM_OP, STRING_ASM_OP): Here.
6037         * config/alpha/vms.h (LINK_SECTION_ASM_OP,
6038         READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
6039         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
6040         * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
6041         (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
6042         * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
6043         Here.
6044         * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6045         BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
6046         * config/arm/coff.h (INT_ASM_OP): Here.
6047         * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
6048         * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
6049         * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
6050         INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
6051         * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
6052         * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6053         ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
6054         STRING_ASM_OP): Here.  Update documentation copy in comments.
6055         * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
6056         * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
6057         DATA_SECTION_ASM_OP): Here.
6058         * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
6059         Here.
6060         * config/convex/convex.h (TEXT_SECTION_ASM_OP,
6061         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
6062         * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6063         BSS_SECTION_ASM_OP): Here.
6064         * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6065         BSS_SECTION_ASM_OP): Here.
6066         * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6067         Here.
6068         * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
6069         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
6070         * config/h8300/h8300.h (ASM_WORD_OP): Here.
6071         * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6072         BSS_SECTION_ASM_OP): Here.
6073         * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
6074         * config/i386/bsd.h (ASM_BYTE_OP): Here.
6075         * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
6076         * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
6077         * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
6078         Here.
6079         * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
6080         * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
6081         Here.
6082         * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
6083         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6084         * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
6085         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
6086         SET_ASM_OP): Here.
6087         * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
6088         * config/i386/netbsd.h (INT_ASM_OP): Here.
6089         * config/i386/openbsd.h (INT_ASM_OP): Here.
6090         * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
6091         IDENT_ASM_OP): Here.
6092         * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
6093         ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
6094         LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
6095         SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
6096         * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
6097         SHARED_BSS_SECTION_ASM_OP): Here.
6098         * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
6099         * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
6100         DATA_SECTION_ASM_OP): Here.
6101         * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6102         CONST_SECTION_ASM_OP): Here.
6103         * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
6104         * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6105         BSS_SECTION_ASM_OP): Here.
6106         * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
6107         * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
6108         * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
6109         BSS_ASM_OP): Here, but use trailing spaces.
6110         * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
6111         DATA_SECTION_ASM_OP): Here.
6112         * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
6113         Here.
6114         * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
6115         DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
6116         * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6117         TDESC_SECTION_ASM_OP): Here.
6118         * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
6119         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6120         * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6121         Here.
6122         * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6123         BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
6124         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6125         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
6126         * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
6127         COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
6128         FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6129         SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
6130         * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
6131         * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
6132         * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
6133         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
6134         SET_ASM_OP): Here.
6135         * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
6136         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6137         * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
6138         * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
6139         * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
6140         * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
6141         * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
6142         * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6143         GLOBAL_ASM_OP): Here.
6144         * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
6145         BSS_SECTION_ASM_OP): Here.
6146         * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
6147         * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6148         ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
6149         DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
6150         SKIP_ASM_OP): Here.
6151         * config/m68k/newsgas.h (SET_ASM_OP): Here.
6152         * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
6153         FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
6154         * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
6155         SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
6156         SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
6157         but use trailing spaces.
6158         * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
6159         DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
6160         FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
6161         Here.
6162         * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
6163         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
6164         * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6165         CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
6166         DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6167         IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
6168         GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
6169         BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
6170         CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
6171         SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
6172         VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6173         PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
6174         ASM_BYTE_OP): Here.
6175         * config/m88k/openbsd.h (SET_ASM_OP): Here.
6176         * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6177         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
6178         * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
6179         UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
6180         DTORS_SECTION_ASM_OP): Here.
6181         * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
6182         DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6183         * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
6184         BSS_SECTION_ASM_OP): Here.
6185         * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
6186         * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
6187         * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
6188         POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
6189         CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
6190         DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
6191         * config/mips/mips.c (ABICALLS_ASM_OP): Here.
6192         * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
6193         Here.
6194         * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
6195         Here.
6196         * config/mips/osfrose.h (SET_ASM_OP): Here.
6197         * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
6198         * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
6199         * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
6200         * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6201         Here.
6202         * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
6203         * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
6204         * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
6205         * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
6206         * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
6207         * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6208         Here.
6209         * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6210         Here.
6211         * config/rs6000/rs6000.h (SET_ASM_OP): Here.
6212         * config/rs6000/sol2.h (ASM_STABN_OP): Here.
6213         * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
6214         Here.
6215         * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
6216         UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
6217         * config/sparc/linux.h (COMMON_ASM_OP): Here.
6218         * config/sparc/linux64.h (COMMON_ASM_OP,
6219         UNALIGNED_DOUBLE_INT_ASM_OP): Here.
6220         * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
6221         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6222         * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
6223         * config/sparc/pbd.h (ASM_INT_OP): Here.
6224         * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
6225         * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
6226         DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
6227         * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
6228         UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
6229         * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
6230         UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
6231         UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
6232         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
6233         CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6234         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6235         EH_FRAME_SECTION_ASM_OP): Here.
6236         * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
6237         * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6238         Here.
6239         * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6240         Here.
6241         * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
6242         TCOMMON_ASM_OP): Here.
6243         * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6244         Here.
6245         * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6246         ASM_BYTE_OP): Here.
6247
6248 2000-09-25  Richard Henderson  <rth@cygnus.com>
6249
6250         * expmed.c (store_bit_field): Adjust last change to not consider
6251         any word-sized field naturally aligned.
6252
6253 2000-09-24  Richard Henderson  <rth@cygnus.com>
6254
6255         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6256         TFmode unordered compares properly.  Revalidate integer compare
6257         operands.
6258         (alpha_emit_setcc): New.
6259         (alpha_emit_conditional_move): Revalidate integer compare operands.
6260         * config/alpha/alpha-protos.h: Update.
6261         * config/alpha/alpha.md (cmpdi): Allow general operands.
6262         (sne): Use alpha_emit_setcc.
6263         (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
6264         (sunordered, sordered): New.
6265
6266 2000-09-24  Richard Henderson  <rth@cygnus.com>
6267
6268         * config/ia64/ia64-protos.h: Update.
6269         * config/ia64/ia64.c (call_multiple_values_operation): Remove.
6270         (ia64_expand_call): New.
6271         (ia64_expand_prologue): Emit an alloc if we need extra input
6272         registers.
6273         (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
6274         instruction if true.
6275         (struct reg_flags): Add is_sibcall.
6276         (rtx_needs_barrier): A sibcall does not use CFM et al.  Ignore USEs.
6277         (emit_insn_group_barriers): Set flags.is_sibcall.  Remove hacks
6278         for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
6279         * config/ia64/ia64.h (PREDICATE_CODES): Update.
6280         * config/ia64/ia64.md (call): Use ia64_expand_call.
6281         (call_value): Likewise.
6282         (sibcall, sibcall_value): New.
6283         (call patterns): Remove extra expanders; tidy.
6284         (sibcall_epilogue): New.
6285         (set_bsp): Remove the extra USE.  Put the operand inside the UNSPEC.
6286
6287 2000-09-24  Richard Henderson  <rth@cygnus.com>
6288
6289         * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
6290
6291         * sibcall.c (skip_pic_restore): New.
6292         (identify_call_return_value): Use it.
6293
6294 2000-09-24  Mark Mitchell  <mark@codesourcery.com>
6295
6296         * c-tree.texi: Moved here from cp/ir.texi.  Documented nested
6297         functions.  Generalize to handle both C and C++.
6298         * Makefile.in (c-tree.info): New target.
6299         (info): Add c-tree.info.
6300
6301 Sun Sep 24 09:15:48 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6302
6303         * expr.c (store_field): If BITSIZE is negative, use size of type.
6304         (expand_expr, case COMPONENT_EXPR): Likewise.
6305
6306 Sun 24-Sep-2000 11:40:23 BST  Neil Booth  <NeilB@earthling.net>
6307
6308         * cpplex.c: Update TODO comment.
6309         * cpplib.c (do_error, do_warning): Merge common code of
6310         do_error and do_warning into do_diagnostic.  Use it.
6311         (do_diagnostic): New function.
6312         * cpplib.h: Fix comment typo.
6313
6314 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
6315
6316         * c-common.c (check_format_info): Warn for a wide character string
6317         used as a non-wide format argument.
6318
6319 2000-09-24  Joseph S. Myers  <jsm28@cam.ac.uk>
6320
6321         * builtins.def (BUILT_IN_LLABS): Add.
6322         * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
6323         * c-common.c (c_common_nodes_builtins): Create builtin functions
6324         __builtin_llabs, and plain llabs unless no_nonansi_builtins
6325         outside of C99 mode.
6326         (expand_tree_builtin): Handle BUILT_IN_LLABS.
6327
6328 Sat 23-Sep-2000 22:39:18 BST  Neil Booth  <NeilB@earthling.net>
6329
6330         * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
6331         CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
6332         * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
6333         _cpp_free_toklist): No need to worry about extra dummy token
6334         at the start of token lists any more.
6335         (trigraph_ok): Only warn outside comments.
6336         (skip_block_comment): Set and clear lexing_comment.
6337         (skip_line_comment): Take a cpp_reader not cpp_buffer.
6338         Set and clear lexing_comment.
6339         (parse_number): Handle leading '.' indicated by pfile->seen_dot.
6340         (check_long_token): Delete.
6341         (lex_percent, lex_dot): New subroutines of lex_token to
6342         handle lexing of '.' and '%' without lookback.
6343         (lex_token): Use lex_dot and lex_percent.
6344         (lex_line): Don't check for LIST_OFFSET.
6345         (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
6346         * cpplib.c (_cpp_parse_assertion): Similarly.
6347         (cpp_push_buffer): Initialize extra_char.
6348         * cpplib.h (LIST_OFFSET): Delete.
6349         (struct cpp_buffer): New member extra_char.
6350         (struct lexer_state): New members lexing_comment and seen_dot.
6351
6352 2000-09-23  Jason Merrill  <jason@redhat.com>
6353
6354         * config/rs6000/x-aix41 (CLIB): Define here.
6355         * config/rs6000/t-aix43: Not here.
6356         * config/rs6000/t-aix41: Or here.  Remove.
6357         * configure.in: Don't use it.
6358
6359 2000-09-22  Jason Merrill  <jason@redhat.com>
6360
6361         * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
6362         * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
6363         * config.in: Regenerate.
6364
6365         * configure.in: Fix checks for assembler features when using a
6366         one-tree assembler that has not yet been built.
6367         Fix --disable-threads.
6368
6369 2000-09-19  Geoff Keating  <geoffk@cygnus.com>
6370
6371         * stmt.c (expand_asm_operands): Allow # in constraints.
6372
6373 2000-09-22  Jason Merrill  <jason@redhat.com>
6374
6375         * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
6376
6377         * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
6378         function-local names.
6379
6380 2000-09-22  Brad Lucier <lucier@math.purdue.edu>
6381             Mark Mitchell  <mark@codesourcery.com>
6382
6383         * toplev.c (warn_disabled_optimization): Declare new warning flag.
6384         * flags.h (warn_disabled_optimization): Add it here.
6385         * gcse.c (gcse_main): Add warning when disabled.
6386         * invoke.texi: Document -Wdisabled-optimization.
6387
6388 2000-09-21  Jason Merrill  <jason@redhat.com>
6389
6390         * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
6391
6392         * dwarf2out.c (tree_add_const_value_attribute): New fn.
6393         (gen_variable_die): Call it for non-definitions.
6394
6395         * dwarf2out.c (die_struct): Add die_mark field.
6396         (mark_dies, unmark_dies): New fns.
6397         (clear_die_sizes): Remove.
6398         (print_die): Check die_symbol rather than die_offset.
6399         (build_abbrev_table, output_pubnames, output_aranges): Check
6400         die_mark rather than die_offset.
6401         (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
6402         Call mark_dies.
6403
6404 Thu 21-Sep-2000 18:19:05 BST  Neil Booth  <NeilB@earthling.net>
6405
6406         * cppfiles.c (lookup_include_file): Rename to open_file.
6407         Always create a splay tree value, even on syscall failures.
6408         Negative entries indicated by fd == -2.
6409         Re-open files closed in the meantime.
6410         (_cpp_fake_include): Create a negative splay tree entry.
6411         (find_include_file, cpp_read_file): Update for function name
6412         change.
6413         * gcc.gd/cpp/mi4.c: Testcase.
6414
6415 2000-09-21  Nick Clifton  <nickc@redhat.com>
6416
6417         * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
6418         ARM and THUMB modes.
6419
6420         * config/mcore/mcore.c: Fix compile time warnings.
6421         * config/mcore/mcore-protos.h: Fix compile time warnings.
6422
6423 2000-09-20  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
6424
6425         * configure.in: Correct test of gcc_cv_glibc.
6426         * configure: Rebuilt.
6427         * config.in: Rebuilt.
6428
6429 2000-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6430
6431         * builtins.c (expand_builtin_fputs): Also expand when length!=1.
6432         (expand_builtin): Handle BUILT_IN_FWRITE.
6433
6434         * builtins.def (BUILT_IN_FWRITE): New entry.
6435
6436         * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
6437
6438 Wed Sep 20 15:39:14 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6439
6440         * gcc.c (modify_target): New variable and struct.
6441         (process_command): Handle MODIFY_TARGET_NAME.
6442         * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
6443         * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
6444
6445         * c-decl.c (finish_decl): Add else's to avoid referencing
6446         TYPE_DOMAIN of an ERROR_MARK.
6447
6448 Wed Sep 20 21:44:31 2000  Denis Chertykov  <denisc@overta.ru>
6449
6450         * config/avr/avr.c (adjust_insn_length): Adjust lengths of
6451         `reload_in*' insns.
6452
6453 2000-09-19  Marek Michalkiewicz  <marekm@linux.org.pl>
6454
6455         * config/avr/avr.md (neghi2): Add alternative for input and output
6456         operands in different registers, as in negsi2.
6457         (*negsi2): Remove '*' from the name.  Use "movw" if available.
6458
6459 2000-09-19  Jim Wilson  <wilson@cygnus.com>
6460
6461         * config/ia64/crtbegin.asm (__dso_handle): Delete use of
6462         HAVE_GAS_HIDDEN macro.
6463
6464 Tue 19-Sep-2000 22:38:57 BST  Neil Booth  <NeilB@earthling.net>
6465
6466         * cpplex.c (lex_line): Drop the EOF token for unknown
6467         directives in assembler.
6468
6469 2000-09-19  David Edelsohn  <edelsohn@gnu.org>
6470
6471         * configure.in: Allow enable_threads_flag value of "aix".  Define
6472         thread_file as "aix" for AIX 4.3 and above.
6473         * configure: Regenerated.
6474
6475         * gthr-aix.h: New file.
6476
6477         * rs6000/t-aix43: Replace soft-float multilib with pthread.
6478         Remove 403 processor multilib match.  Fix rios2 processor multilib
6479         match.
6480
6481         * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
6482         to return to appropriate csect.
6483
6484 2000-09-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6485
6486         * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
6487         functions.
6488         (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
6489         (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
6490         BUILT_IN_PRINTF.
6491
6492         * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
6493         New entries.
6494
6495         * c-common.c (init_function_format_info): Handle __builtin_printf.
6496         Set `check_function_format_ptr'.
6497         (c_common_nodes_and_builtins): Set `puts_ftype' and
6498         `printf_ftype'.  Declare __builtin_putchar, __builtin_puts,
6499         __builtin_printf and printf.
6500
6501         * tree.c, tree.h (check_function_format_ptr): Declare.
6502
6503 Tue 19-Sep-2000 18:26:57 BST  Neil Booth  <NeilB@earthling.net>
6504
6505         * cppfiles.c (read_include_file): Take no special action for
6506         zero-length files.
6507
6508 2000-09-19  Bernd Schmidt  <bernds@redhat.co.uk>
6509
6510         * final.c (insn_current_reference_address): Use INSN_SHUID of seq
6511         rather than that of branch.
6512         (shorten_branches): Don't increment insn_current_address twice.
6513
6514         Undo most of the Wed Jan 27 23:39:53 1999 patch:
6515         * loop.h (struct induction): Delete members derived, ix and last_use.
6516         (struct loop_ivs): Delete members first_increment_giv and
6517         last_increment_giv.
6518         * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
6519         recombine_givs): Delete functions.
6520         (find_and_verify_loops): Don't initialize cont_dominator.
6521         (strength_reduce): Lose code to try to find bivs that can be
6522         expressed as givs of another biv, and to convert biv increments
6523         into givs.
6524         Lose loop_scan_start variable, always use loop->scan_start.
6525         Don't call recombine_givs.  Don't handle derived givs.
6526         (record_giv): Don't initialize derived and last_use fields.
6527         (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
6528         givs.
6529         * unroll.c (derived_regs): Delete static variable.
6530         (unroll_loop): Don't initialize it.
6531         (copy_loop_body): Lose code to handle derived givs.
6532         (find_splittable_givs): Don't check for givs made from biv
6533         increments.
6534         Don't set derived_regs.
6535
6536         Fix misapplied earlier patch:
6537         * config/sh/sh.md (floatsisf_ie): Reenable.  Remove explicit reference
6538         to fpul.
6539         (floatsisf2): Generate floatsisf_ie by default.
6540         (floatsisf_i4): Conditional on TARGET_SH4.
6541
6542         (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
6543         predicate for the expanders.
6544
6545 2000-09-19  Richard Henderson  <rth@cygnus.com>
6546
6547         * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
6548         in addition to pentium and pentiumpro symbols.
6549         (CPP_CPU_DEFAULT_SPEC): Likewise.
6550
6551         * c-typeck.c (c_expand_asm_operands): Restore the output tree
6552         after expanding.
6553
6554         * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
6555         if the tree has side effects.
6556         (warn_if_unused_value): Do not warn about void constructs.
6557
6558         * c-decl.c (poplevel): Invoke warn_about_unused_variables.
6559
6560         * unroll.c (copy_loop_body): Update LABEL_NUSES before
6561         calling invert_jump.
6562
6563 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
6564
6565         * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
6566         into anything.
6567
6568 2000-09-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6569
6570         * Makefile.in (c-common.o): Depend on diagnostic.h.
6571
6572         * c-common.c: Include diagnostic.h.
6573         (tfaff): Delete.
6574         (status_warning): New function.
6575         (check_format_info, maybe_read_dollar_number, check_format_types,
6576         finish_dollar_format_checking, check_function_format): Accept a
6577         `status' parameter.  All callers changed.
6578
6579         * c-common.h (check_function_format): Accept a `status' parameter.
6580
6581         * c-typeck.c: Update call to `check_function_format'.
6582
6583 2000-09-18  Richard Henderson  <rth@cygnus.com>
6584
6585         * c-decl.c (c_expand_body): Call mark_varargs before
6586         expand_function_start.
6587
6588 2000-09-18  Geoff Keating  <geoffk@cygnus.com>
6589
6590         * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
6591         * config/rs6000/eabi-ci.asm: Likewise.
6592
6593 2000-09-18  Richard Henderson  <rth@cygnus.com>
6594
6595         * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
6596         for BImode.
6597
6598 2000-09-18  Jim Wilson  <wilson@cygnus.com>
6599
6600         * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
6601         before passing it to fold_rtx_mult_add.
6602
6603         * unroll.c (final_giv_value): Pass increment through
6604         extend_value_for_giv before passing it to emit_iv_add_mult.
6605
6606         * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
6607         paradoxical subreg, then directly substitute the replacement and
6608         return.
6609
6610 Mon 18-Sep-2000 22:12:44 BST  Neil Booth  <NeilB@earthling.net>
6611
6612         * cpp.texi: Update documentation, including some clarifications,
6613         the treatment of various newline combinations, and space between
6614         backslash and newline.
6615
6616 Mon Sep 18 21:00:47 2000  J"orn Rennecke <amylaar@redhat.co.uk>
6617
6618         * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
6619         Replace ASM_OUTPUT_LABELREF with assemble_name.
6620
6621 Mon Sep 18 20:26:50 2000  J"orn Rennecke <amylaar@redhat.co.uk>
6622
6623         * sh.c (addsubcosts): CONST is not cheap.
6624         (find_barrier): For Sh1, take alignment after jumps into account.
6625
6626 2000-09-15  Andrew Haley  <aph@redhat.com>
6627
6628         * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
6629         remove all SETs of SUBREGs of hard registers.
6630         * function.c (purge_hard_subreg_sets): New function.
6631         (purge_single_hard_subreg_set): New function.
6632         * rtl.h: (purge_hard_subreg_sets): New function.
6633
6634 2000-09-18  Richard Henderson  <rth@cygnus.com>
6635
6636         * config/ia64/ia64-protos.h: Update.
6637         * config/ia64/ia64.c (signed_inequality_operator): New.
6638         (ia64_expand_compare): New.
6639         (ia64_register_move_cost): Handle PR_REGS moves.
6640         (ia64_secondary_reload_class): Require a GR when moving to a PR.
6641         (struct reg_write_state): Add written_by_and/or.
6642         (struct reg_flags): Add is_and/or.
6643         (rws_update): Set them.
6644         (rws_access_regno): Test them to allow parallel comparisons.
6645         (rtx_needs_barrier): Recognize parallel comparisons.
6646         (emit_insn_group_barriers): Set prev_insn after a call stop bit.
6647         Call recog_memoized; ignore pred_rel_mutex.
6648         (emit_predicate_relation_info): Don't call find_basic_blocks here.
6649         (ia64_reorg): Do it here instead.
6650         * config/ia64/ia64.h: s/CCmode/BImode/g
6651         (MODES_TIEABLE_P): Don't tie BImode.
6652         (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
6653         (CONST_COSTS): Pick sensible values for CONST_INT based on context.
6654         (RTX_COSTS): Make multiply 4 insns.
6655         (MEMORY_MOVE_COST): New.
6656         (PREDICATE_CODES): Update.
6657         * config/ia64/ia64.md: s/CCmode/BImode/g
6658         (movcci, movbi): New.
6659         (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
6660         (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
6661         (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
6662         (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
6663         (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
6664         (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
6665         (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
6666         (mulsi, muldi): Use xmpy not xma.
6667         (cmpbi): New.
6668         (movcc, movcc_internal): Remove.
6669         (branch expanders): Use ia64_expand_compare.
6670         (setcc expanders): Likewise.
6671         (cmov insns): Use move_operand and ia64_move_ok.
6672         (pred_rel_mutex): Use unspec not unspec_volatile.  Prevent the
6673         scheduler from moving it past a use.
6674         * config/ia64/build.hacks: Remove.
6675
6676 Mon 18-Sep-2000 19:21:35 BST  Neil Booth  <NeilB@earthling.net>
6677
6678         * cpphash.h (HASHSTEP): Take character rather than pointer
6679         to character.
6680         (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
6681
6682         * cpphash.c (cpp_loookup): Update for new HASHSTEP.
6683
6684         * cpplex.c (auto_expand_name_space, trigraph_replace,
6685         backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
6686         IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
6687         BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
6688         KNOWN_DIRECTIVE): Delete.
6689
6690         (handle_newline, check_long_token, skip_escaped_newlines,
6691         unterminated): New functions.
6692         (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
6693
6694         (parse_identifier): Was parse_name, new implementation.
6695         (skip_line_comment, skip_block_comment, skip_whitespace,
6696         parse_number, parse_string, trigraph_ok, save_comment,
6697         adjust_column, _cpp_get_line): New implementations.
6698
6699         (lex_token): New function.  Lexes a token at a time, looking
6700         forwards.  Contains most of the guts of the old lex_line.
6701         (lex_line): New implementation, using lex_token to obtain
6702         individual tokens.
6703         (cpp_scan_buffer): Use the token's line, not the list's line.
6704
6705         * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
6706          New implementations.
6707         (do_assert): Don't bother setting the answer's list's line.
6708         (cpp_push_buffer): Initialise new pfile and read_ahead members
6709         of struct cpp_buffer.
6710
6711         * cpplib.h (cppchar_t): New typedef.
6712         (struct cpp_buffer): read_ahead, pfile and col_adjust are
6713         new members.
6714         (struct lexer_state): New structure that determines the state
6715         and behaviour of the lexer.
6716         (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
6717         (struct cpp_reader): New member "state". Rename
6718         multiline_string_line and multiline_string_column. Delete
6719         col_adjust, in_lex_line members.
6720         (CPP_BUF_COLUMN): Update.
6721
6722 2000-09-18  Richard Henderson  <rth@cygnus.com>
6723
6724         * combine.c (simplify_comparison): Shift a NOT out of a single
6725         bit test.
6726
6727         * combine.c (if_then_else_cond): Canonicalize BImode true to
6728         STORE_FLAG_VALUE.
6729         * explow.c (trunc_int_for_mode): Likewise.
6730
6731         * combine.c (combine_simplify_rtx): Use gen_unary to distribute
6732         the NOT for De Morgan's rule.
6733         * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
6734         of a comparison to the reverse comparison.
6735
6736         * combine.c (try_combine): Allow split to create a single insn.
6737
6738         * machmode.def: Add BImode.  Add a column for bitsize.
6739         * machmode.h (DEF_MACHMODE): Adjust for extra column.
6740         (GET_MODE_BITSIZE): Use it.
6741         * rtl.c (DEF_MACHMODE): Adjust for extra column.
6742         (mode_bitsize): New.
6743         (mode_mask_array): Use bitsize.
6744         * combine.c (combine_simplify_rtx): Require inner and outer
6745         modes to match on nonzero_bits optimizations.
6746
6747 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
6748
6749         * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
6750         its entry in spill_reg_store.
6751         * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
6752         * sh.c (reg_no_subreg_operand): New function.
6753         * sh-protos.h (reg_no_subreg_operand): Declare it.
6754         * sh.h (PREDICATE_CODES): Add it.
6755         * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
6756         input operand that needs to be in fpul.
6757         (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
6758         * sh.c (find_barrier): Take into account that machine_dependent_reorg
6759         might add new insns.
6760
6761 2000-09-18  Alexandre Oliva  <aoliva@redhat.com>
6762
6763         * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
6764         MAYBE_DEAD.
6765         (sh_expand_epilogue): Take the PIC register into account when
6766         computing the frame size.
6767
6768         * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
6769         * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
6770         LABEL_REFs with a PIC-safe unspec.
6771
6772 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
6773
6774         * c-common.c (check_format_info): Properly save the argument
6775         number and parameter for $ operand number formats in case width
6776         and precision arguments are also used.  Allow printf width and
6777         precision arguments to have operand numbers even if none was
6778         specified for the main format, since this is OK for %*.*m.  Only
6779         object to missing $ operand number if the format used requires an
6780         argument.
6781
6782 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
6783
6784         * c-common.c (format_char_info): Add 'W' flag to comment.
6785         (print_char_table, scan_char_table): Use it.
6786         (check_format_info): Use the 'W' flag to determine whether a
6787         format argument is written into.
6788
6789 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
6790
6791         * c-common.c (check_format_types): Reorganise and clean up,
6792         checking earlier for ERROR_MARKs and making cur_type into its
6793         TYPE_MAIN_VARIANT where convenient.
6794
6795 2000-09-18  Joseph S. Myers  <jsm28@cam.ac.uk>
6796
6797         * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
6798
6799 2000-09-18  Bernd Schmidt  <bernds@redhat.co.uk>
6800
6801         * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
6802
6803         * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
6804         * i386.c (struct builtin_description): New.
6805         (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
6806         (mmx_reg_operand): Declare MODE arg as unused.
6807         (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
6808         ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
6809         ix86_expand_binop_builtin, ix86_expand_store_builtin,
6810         ix86_init_builtins, ix86_expand_builtin): New functions.
6811         * i386.h (ix86_builtins): New enumeration.
6812         (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
6813         * i386.md (attr length_immediate): 0 for mmx/sse types.
6814         (attr prefix_0f): 1 for mmx/sse types.
6815         (setcc_2): Remove "*" so we get gen_setcc_2.
6816         (emms): Account for changed register numbering.  Set "memory" attr
6817         to unknown.
6818         (sfence): Set "memory" attr to unknown.
6819
6820 2000-09-18  Andreas Jaeger  <aj@suse.de>
6821
6822         * configure.in: Define _GNU_SOURCE only when using the GNU C
6823         Library.
6824         * configure: Regenerated.
6825         * config.in: Regenerated.
6826
6827 2000-09-17  Mark Mitchell  <mark@codesourcery.com>
6828
6829         * cppinit.c (cpp_init): Don't use ANSI prototypes.
6830         * flow.c (flow_dump_loop): Likewise.
6831         (flow_loops_dump): Likewise.
6832
6833         * c-typeck.c (c_start_case): Fix typo.
6834
6835 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6836
6837         * c-decl.c (grokdeclarator): Don't give a warning about defaulting
6838         to int for plain complex which defaults to complex double.  Do
6839         warn about defaulting to complex double if pedantic.  Warn about
6840         complex integer types if pedantic.  Warn about complex types if
6841         pedantic and not in C99 mode.
6842         * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
6843         for complex conjugation.
6844
6845 2000-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6846
6847         * contrib.texi: Update my entry.
6848
6849 Sun Sep 17 18:48:32 2000  Denis Chertykov  <denisc@overta.ru>
6850
6851         * config/avr/avr.md (mcu_enhanced): New attribute.
6852         (mcu_mega): Likewise.
6853         (extendhisi2): Use mcu_enhanced.
6854         (zero_extendhisi2): Likewise.
6855         (call_insn): Use mcu_enhanced and mcu_mega.
6856         (call_value_insn): Likewise.
6857         (*sbrx_branch): Use mcu_mega.
6858         (*sbrx_and_branchsi): Likewise.
6859         (*sbrx_and_branchhi): Likewise.
6860         (*tablejump_lib): Likewise.
6861
6862 Sun Sep 17 10:46:17 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6863
6864         * alias.c (true_dependence): Allow non-unchanging read to conflict
6865         with unchanging write.
6866
6867         * expr.c (store_constructor_field): Accept ALIAS_SET arg.
6868         (store_constructor): Pass alias_set to it.
6869
6870         * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
6871         TYPE_MAIN_VARIANT of ERROR_MARK.
6872         * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
6873
6874         * simplify-rtx.c (simplify_unary_operation): Add cases
6875         FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
6876
6877 2000-09-17  Bernd Schmidt  <bernds@redhat.co.uk>
6878
6879         * expr.h (emit_library_call, emit_library_call_value): Delete
6880         declarations.
6881         * rtl.h (enum libcall_type): New.
6882         (emit_library_call, emit_library_call_value): Change fn_type arg to
6883         be of type enum libcall_type.
6884         * calls.c: Likewise for the function definitions.  Several callers
6885         throughout changed to use the new enumeration appropriately.
6886         (emit_library_call_value_1): Likewise.  Put back code to make libcall
6887         blocks of equal form, but only use it for the two new higher
6888         enumeration values.
6889
6890 2000-09-16  Mark Mitchell  <mark@codesourcery.com>
6891
6892         Convert the C front-end to use function-at-a-time mode.
6893         * c-common.h: Include splay-tree.h.
6894         (C_DECLARED_LABEL_FLAG): New macro.
6895         (struct language_function): Add x_scope_stmt_stack and
6896         x_function_name_declared_p.
6897         (RECHAIN_STMTS): Move definition.
6898         (lang_statment_code_p): Likewise.
6899         (lang_expand_stmt): Likewise.
6900         (lang_expand_decl_stmt): New variable.
6901         (lang_expand_function_end): Likewise.
6902         (current_scope_stmt_stack): New function.
6903         (add_decl_stmt): Likewise.
6904         (add_scope_stmt): Likewise.
6905         (mark_stmt_tree): Likewise.
6906         (struct c_lang_decl): New structure.
6907         (DECL_SAVED_TREE): Define.
6908         (c_mark_lang_decl): New function.
6909         (c_expand_start_cond): Change prototype.
6910         (c_finish_then): New function.
6911         (c_finish_else): Likewise.
6912         (current_function_name_declared): Remove.
6913         (set_current_function_name_declared): Likewise.
6914         (mark_c_language_function): Declare.
6915         (case_compare): Likewise.
6916         (c_add_case_label): Likewise.
6917         (c_expand_expr): Likewise.
6918         (c_safe_from_p): Likewise.
6919         * c-common.c (lang_expand_function_end): New variable.
6920         (struct if_elt): Add if_stmt.
6921         (c_expand_start_cond): Add the if-statement to the statement-tree,
6922         rather than generating RTL.
6923         (c_finish_then): New function.
6924         (c_expand_start_else): Don't generate RTL.
6925         (c_finish_else): New function.
6926         (c_expand_expr_stmt): Don't generate RTL.
6927         (statement_code_p): Add SCOPE_STMT.
6928         (case_compare): New function.
6929         (c_add_case_label): Likewise.
6930         (mark_stmt_tree): Likewise.
6931         (c_mark_lang_decl): Likewise.
6932         (mark_c_language_function): Likewise.
6933         (c_expand_expr): Likewise.
6934         (c_safe_from_p): Likewise.
6935         * c-decl.c (c_stmt_tree): New variable
6936         (c_scope_stmt_stack): Likewise.
6937         (c_function_name_declared_p): Likewise.
6938         (lang_expand_expr_stmt): Remove.
6939         (poplevel): Don't call output_inline_function for nested
6940         functions.
6941         (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
6942         `extern' function.
6943         (redeclaration_error_message): Change means of computing whether
6944         or not a function is nested.
6945         (lookup_label): Don't call label_rtx.
6946         (init_decl_processing): Add more GC roots.
6947         (start_decl): Add DECL_STMTs to the statement-tree, rather than
6948         calling rest_of_decl_compilation.
6949         (finish_decl): Don't call expand_decl.
6950         (store_parm_decls): Begin the statement-tree, but don't generate
6951         RTL.
6952         (finish_function): Tie off the statement-tree.  Call c_expand_body
6953         if appropriate.
6954         (c_expand_body): New function.
6955         (push_c_function_context): Save more information.
6956         (pop_c_function_contxt): Likewise.
6957         (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
6958         (lang_mark_tree): Mark it.
6959         (current_stmt_tree): Adjust.
6960         (current_scope_stmt_stack): New function.
6961         (do_case): Remove.
6962         (set_current_name_declared): Likewise.
6963         (c_begin_compound_stmt): Define.
6964         (c_expand_decl_stmt): Likewise.
6965         * c-lang.c: Include rtl.h and expr.h.
6966         (lang_init): Set more language-specific hooks.
6967         * c-lex.c: Include expr.h.
6968         * c-parse.in: Changes throughout to add statements to the
6969         statement-tree, rather than generating RTL after every statement.
6970         * c-semantics.c (lang_expand_decl_stmt): Define.
6971         (add_decl_stmt): New function.
6972         (add_scope_stmt): Likewise.
6973         (finish_stmt_tree): Tweak.
6974         (genrtl_expr_stmt): Likewise.
6975         (genrtl_decl_stmt): Handle local labels, and call
6976         lang_expand_decl_stmt if required.
6977         (genrtl_for_stmt): Fix line-number handling.
6978         (genrtl_case_label): Handle cleanups.
6979         (genrtl_asm_stmt): Don't call combine_strings.
6980         (genrtl_compound_stmt): Simplify.
6981         (expand_stmt): Handle SCOPE_STMTs.
6982         * c-tree.h (struct lang_decl): New structure.
6983         (C_DECLARED_LABEL_FLAG): Remove.
6984         (c_begin_compound_stmt): Declare.
6985         (c_expand_decl_stmt): Likewise.
6986         (c_expand_start_case): Rename to c_start_case.
6987         (c_finish_case): New function.
6988         * c-typeck.c (start_init): Tweak setting of
6989         constructor_incremental.
6990         (c_expand_asm_operands): Tweak error-handling.  Add to the
6991         statement-tree.
6992         (c_expand_return): Add to the statement-tree.
6993         (c_expand_start_case): Rename to ...
6994         (c_start_case): ... this.
6995         (struct c_switch): New type.
6996         (switch_stack): New variable.
6997         (do_case): Simplify.
6998         (c_finish_case): New function.
6999         * dependence.c: Include expr.h.
7000         (enum dependence_type): Change spelling of enumerals.
7001         (check_node_dependence): Adjust.
7002         * expr.h (lang_safe_from_p): Declare.
7003         (safe_from_p): Likewise.
7004         * expr.c (lang_safe_from_p): New variable.
7005         (safe_from_p): Give it external linkage.  Use lang_safe_from_p.
7006         * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
7007         * toplev.c (rest_of_decl_compilation): Robustify.
7008         * tree.c (contains_placeholder_p): Likewise.
7009         * Makefile.in: Update dependencies.
7010         * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
7011         * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
7012         (objc_expand_function_end): New function.
7013         (finish_method_def): Use it.
7014         (init_objc): Initialize more language-specific hooks.
7015         * objc/Make-lang.in: Update dependencies.
7016
7017 2000-09-16  Geoffrey Keating  <geoffk@cygnus.com>
7018
7019         * configure.in: Define macros that affect features before
7020         testing for features.  Don't define _XOPEN_SOURCE.
7021         * configure: Regenerated.
7022         * config.in: Regenerated.
7023
7024 Sat Sep 16 19:42:50 EDT 2000  John Wehle  (john@feith.com)
7025
7026         * rtlanal.c (rtx_varies_p): Volatile asms vary.
7027         (rtx_unstable_p): Restructure code.  Volatile asms
7028         are unstable.
7029
7030 Sat Sep 16 14:35:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7031
7032         * function.h (no_debugging_symbols): New field.
7033         * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
7034         Initialize no_debugging_symbols.
7035         (output_inline_function): Save and restore write_symbols and set from
7036         no_debugging_symbols.
7037         * toplev.c (rest_of_compilation): Call save_for_inline.
7038         * tree.h: Update comment.
7039
7040         * stor-layout.c (place_field): Don't do anything if field or
7041         its type are ERROR_MARK.
7042
7043 Sat Sep 16 19:14:00 2000  Laurynas Biveinis <lauras@softhome.net>
7044
7045         * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
7046         (read_include_file): Ensure inc->mmaped is initialized.
7047
7048 2000-09-16  Richard Henderson  <rth@cygnus.com>
7049
7050         * cppiles.c (purge_cache): Use PTR not caddr_t.
7051
7052 2000-09-16  Hans-Peter Nilsson  <hp@axis.com>
7053
7054         * gcc.c: In description for %{<S}, say the option removed is -S.
7055         * invoke.texi (Spec Files): Ditto.
7056
7057 2000-09-16  Andreas Jaeger  <aj@suse.de>
7058
7059         * configure.in: Always define _GNU_SOURCE to make interfaces
7060         visible that were hidden by only defining _GNU_SOURCE.
7061         * configure: Regenerated.
7062
7063 Sat 16-Sep-2000 08:13:45 BST  Neil Booth  <NeilB@earthling.net>
7064
7065         * cpplex.c (push_macro_context): Set an argument's level after
7066         calling parse_args.  We could loop infinitely otherwise.
7067
7068 2000-09-15  Tom Tromey  <tromey@cygnus.com>
7069
7070         * configure, config.in: Rebuilt.
7071         * configure.in: Check for iconv.h.  Define _XOPEN_SOURCE.
7072
7073 2000-09-15  Greg McGary  <greg@mcgary.org>
7074
7075         * cppmacro.c (check_trad_stringification): Check token
7076         text pointers against limit before dereferencing.
7077
7078 2000-09-15  Joseph S. Myers  <jsm28@cam.ac.uk>
7079
7080         * c-common.c (format_wanted_type): New structure.
7081         (check_format_types): New function.
7082         (check_format_info): Pass all checking of types of format
7083         arguments, including width and precision arguments, to this new
7084         function.
7085
7086 2000-09-15  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7087
7088         * BUGS: Remove file.
7089
7090 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
7091
7092         * config/alpha/alpha.c (override_options): ev6 cache latencies
7093         from Richard Henderson.  Don't allow -mmemory-latency=L0.
7094
7095         * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
7096         (TARGET_OPTIONS): Add tune=.
7097         (alpha_tune_string): Declare.
7098         * config/alpha/alpha.c (override_options): Add cpu_table.
7099         Use alpha_cpu_string first to set both alpha_cpu and target_flags
7100         and then alpha_tune_string to set alpha_cpu only.
7101         Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
7102         * config/alpha/elf.h (ASM_FILE_START): Likewise.
7103         * config/alpha/osf.h (ASM_FILE_START): Likewise.
7104         * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
7105
7106 Fri Sep 15 19:45:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7107
7108         * i386-protos.h (no_comparison_operator, uno_comparison_operator):
7109         Remove.
7110         (ix86_comparison_operator, ix86_cc_mode): Declare
7111         * i386.h (CCGC, CCGCO): New modes.
7112         (SELECT_CC_MODE): Move offline to ....
7113         * i386.c (ix86_cc_mode): .... here; use new modes.
7114         (ix86_comparison_operator): New.
7115         (fcmov_comparison_operator): Ensure proper mode.
7116         (put_condition_mode): More sanity checking.
7117         (ix86_match_ccmode): Handle new modes.
7118         (ix86_expand_fp_compare): GEU requires CCmode.
7119         (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
7120         doing it by hand.
7121         * i386.md (cmp?i_ccz_1): Remove
7122         (cmp?i_ccno_1): Use ix86_match_ccmode.
7123         (cmp?i_minus_1): New.
7124         (cmpsi_1): New expander.
7125         (cmpqi_ext_1): Use match_ccmode
7126         (cmpqi_ext_3): New expander.
7127         (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
7128         (cmpqi_ext_4): Use match_ccmode.
7129         (add?i_?): Use match_ccmode.
7130         (add?i_6): New.
7131         (test?i_ccz_1): Remove
7132         (test?i_1): New.
7133         (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
7134         (testqi_ext_0): Use ix86_match_ccmode.
7135         (*xorqi_cc_ext_1): Use ix86_match_ccmode.
7136         (xorqi_cc_ext_1): New expander.
7137         (shift patterns): Use CCGOCmode for all shifts except for sar.
7138         (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
7139         (setcc_3, jcc_3, miv?icc_c): Remove.
7140
7141 2000-09-15  Will Cohen  <wcohen@redhat.com>
7142
7143         * dwarf2out.c (add_const_value_attribute): Changed array into a
7144         xmalloced object, so it exists after function exit.
7145         (free_AT): Added case for dw_val_class_float to free allocated
7146         memory.
7147
7148 2000-09-15  Kazu Hirata  <kazu@hxi.com>
7149
7150         * config/i386/i386.md: Fix a comment typo.
7151         * gcc.c: Fix formatting.
7152
7153 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
7154
7155         * optabs.c (emit_libcall_block): If target is a user variable,
7156         copy to a temporary first.
7157         * expr.c (convert_move): When generating a libcall, make a libcall
7158         block.
7159         * calls.c (emit_library_call_value_1): Don't create a libcall
7160         sequence here; our caller will in most cases do it.
7161
7162         * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
7163         MACH into FPUL.
7164         (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
7165         * sh.md (reload_outsf): Generate recognizable patterns for
7166         TARGET_SH3E.
7167         (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
7168         fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
7169         fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
7170         truncdfsf2_i4): Change not to use explicit references to fpul.
7171         (floatsisf2_ie): Remove USE of fpscr.
7172         (floatsisf2): Change default expansion to match this.
7173         (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
7174         unused patterns.
7175
7176 2000-09-15  Richard Henderson  <rth@cygnus.com>
7177
7178         * expmed.c (store_bit_field): Consider naturally aligned
7179         memory for direct reference.
7180
7181 2000-09-15  Richard Henderson  <rth@cygnus.com>
7182
7183         * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
7184         AND addresses into alias set 0.
7185         (alpha_expand_unaligned_store): Likewise.
7186         (alpha_expand_unaligned_load_words): Likewise.
7187         (alpha_expand_unaligned_store_words): Likewise.
7188
7189 2000-09-15  Bernd Schmidt  <bernds@redhat.co.uk>
7190
7191         * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
7192         * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
7193         is defined.
7194         * config/mips/mips.c (mips_va_arg): Args passed by reference have a
7195         rsize of UNITS_PER_WORD.
7196
7197 Fri 15-Sep-2000 06:49:07 BST  Neil Booth  <NeilB@earthling.net>
7198
7199         * cpplex.c (ON_REST_ARG): Correct the test.
7200         (maybe_paste_with_next): Duplicate a token that fail pasting,
7201         and clear its PASTE_LEFT flag, so that nested pasting attempts
7202         do not occur.
7203
7204 2000-09-14  Richard Henderson  <rth@cygnus.com>
7205
7206         * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
7207         * cse.c (rtx_cost): Likewise.
7208         * optabls.c (expand_binop): Likewise.
7209         (expand_twoval_binop, prepare_cmp_insn): Likewise.
7210         * regclass.c (copy_cost): Likewise.
7211         * reload1.c (reload_cse_move2add): Likewise.
7212
7213 2000-09-14  Joseph S. Myers  <jsm28@cam.ac.uk>
7214
7215         * c-parse.in (reswords): Add _Complex.
7216
7217 2000-09-14  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
7218
7219         * gcc.1: Delete documentation for -undef preprocessor option.
7220
7221 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7222
7223         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7224         STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
7225         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
7226         Remove undefine before config/elfos.h.
7227         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
7228
7229 2000-09-14  Kazu Hirata  <kazu@hxi.com>
7230
7231         * invoke.texi (H8/300 Options): Add -ms2600.
7232         * config/h8300.c (h8300_init_once): Output an error when -ms2600
7233         is used without -ms.
7234         * config/h8300.h (TARGET_MAC): New.
7235         (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
7236         (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
7237         machine other than H8/S2600.
7238         * config/h8300.md: Accept mac instructions on the H8/S2600 instead
7239         of the H8/S2000.
7240
7241 2000-09-14  Alexandre Oliva  <aoliva@redhat.com>, Bernd Schmidt  <bernds@redhat.co.uk>
7242
7243         * reload.c (find_reloads_address_1): Generate reloads for auto_inc
7244         pseudos that refer to the original pseudos, not only to their
7245         equivalent memory locations.
7246
7247 Thu Sep 14 12:10:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7248
7249         * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
7250         when making new MEM.
7251
7252         * Makefile.in (LN): Remove duplicate definition.
7253
7254 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
7255
7256         From Joern Rennecke:
7257         * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
7258         on an insn and function_invariant_p returns nonzero for the source,
7259         add a REG_EQUAL note.
7260
7261 Thu Sep 14 00:51:57 EDT 2000  John Wehle  (john@feith.com)
7262
7263         * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
7264         conflict with frame_pointer_rtx.
7265
7266 2000-09-13  Kazu Hirata  <kazu@hxi.com>
7267
7268         * loop.c: Fix formatting.
7269         * loop.h: Likewise.
7270
7271 2000-09-13  Richard Henderson  <rth@cygnus.com>
7272
7273         * config/ia64/ia64.md (divsf3): New.
7274         (divsf3_internal_lat, divsf3_internal_thr): New.
7275         (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
7276         (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
7277         (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
7278         (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
7279         (nmadddf4_alts, nmadddf4_trunc): New.
7280         (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
7281         (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
7282         (multf3_truncsf_alts, multf3_truncdf_alts): New.
7283         (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
7284         (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
7285         (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
7286         (nmaddtf4_truncdf_alts): New.
7287         (recip_approx): Don't predicate.
7288
7289 2000-09-13  Richard Henderson  <rth@cygnus.com>
7290
7291         * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
7292
7293 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7294
7295         * flags.h (flag_dump_rtl_in_asm): Declare.
7296         * toplev.c (flag_dump_rtl_in_asm): Define.
7297         (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
7298         if -dP is specified.
7299         * rtl.h (print_rtx_head): Declare.
7300         * print-rtl.c (print_rtx_head): Define.
7301         (print_rtx): Print the string pointed to by print_rtx_head
7302         at beginning of each dump line.
7303         (print_rtl): Likewise.
7304         (print_rtl_single): Likewise.
7305         * final.c (final_scan_insn): Dump the insn in the assembly
7306         file for debugging.
7307         * gcc.1: Document -dP option.
7308         * invoke.texi (Debugging Options): Likewise.
7309
7310 2000-09-13  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7311
7312         * md.texi (Machine Constraints): Document the 68HC11 constraints.
7313         * install.texi (Configurations): Document the 68HC11&68HC12 port.
7314         * invoke.texi (Option Summary, M68hc1x Options): Document the options.
7315
7316 Tue Sep 12 13:51:13 2000  Denis Chertykov  <denisc@overta.ru>
7317
7318         * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
7319         * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
7320         (*clrstrqi): Likewise.
7321         (xorhi3,xorsi3,absqi2): Likewise.
7322         (one_cmplhi2,one_cmplsi2): Likewise.
7323         (addsi3): Two stupid constraint alternatives removed.
7324         (extendhisi2): Use `movw' for enhanced avr cores.
7325         (zero_extendhisi2): Likewise.
7326
7327 Wed Sep 13 02:31:23 EDT 2000  John Wehle  (john@feith.com)
7328
7329         * alias.c (find_base_term): Use frame_pointer_rtx
7330         when handling an ADDRESSOF.
7331
7332         * cse.c (canon_hash): Handle USE of BLKmode memory.
7333         (cse_insn): Outgoing arguments for a libcall don't
7334         affect any recorded expressions.
7335
7336 2000-09-12  Tom Tromey  <tromey@cygnus.com>
7337
7338         * configure, config.in: Rebuilt.
7339         * configure.in: Check for iconv, nl_langinfo, langinfo.h.
7340
7341 2000-09-12  Jakub Jelinek  <jakub@redhat.com>
7342
7343         * c-lex.c (lex_string): Use charwidth to compute bytemask.
7344         * expr.c (expand_expr): Don't optimize constant array references
7345         initialized with wide string constants.
7346
7347 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
7348
7349         * loop.c (note_set_pseudo_multiple_uses): Correct.
7350
7351 2000-09-12  Jim Wilson  <wilson@cygnus.com>
7352
7353         * ifcvt.c (noce_process_if_block): If A and B are the same, and no
7354         else block, and X has side-effects, then fail.
7355
7356 2000-09-12  Greg McGary  <greg@mcgary.org>
7357
7358         * config/mips/mips-protos.h
7359         (trap_cmp_op, mips_gen_conditional_trap): New func decls.
7360         * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
7361         (PREDICATE_CODES): Add "trap_cmp_op".
7362         * config/mips/mips.c
7363         (trap_cmp_op, mips_gen_conditional_trap): New functions.
7364         * config/mips/mips.md (trap, conditional_trap): New patterns.
7365
7366 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
7367
7368         * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
7369         pointer.
7370
7371 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7372
7373         * builtins.c (built_in_decls): New array.
7374         (expand_builtin_fputs): New function.
7375         (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
7376
7377         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
7378
7379         * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
7380
7381         * tree.h (built_in_decls): New array.
7382
7383 Tue Sep 12 08:53:57 2000  Jeffrey A Law  (law@cygnus.com)
7384
7385         * convex.md: Use "+" instead of "=" for outputs wrapped in a
7386         STRICT_LOW_PART.
7387         * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
7388
7389 2000-09-12  Kazu Hirata  <kazu@hxi.com>
7390
7391         * haifa-sched.c: Fix formatting.
7392
7393         * genattrtab.c: Fix formatting.
7394
7395         * unroll.c: Fix formatting.
7396
7397 2000-09-12  Bruce Korb  <bkorb@gnu.org>
7398
7399         * fixinc/fixfixes.c: make a type for the fix procedure & use it,
7400         remove obsolete code
7401         * fixinc/fixincl.c: Use PARAMS, not _P_.  Add no-op default to switch.
7402         * fixinc/fixincl.tpl: make non-exported arrays static scope
7403         * fixinc/fixincl.x: regenerate
7404         * fixinc/fixlib.h: Use PARAMS, not _P_
7405         * fixinc/fixtests.c: make a type for the test proc & use it
7406         * fixinc/server.h: Use PARAMS, not _P_
7407
7408 2000-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7409
7410         * c-typeck.c (process_init_element): Avoid union init warnings on
7411         floating point zero.  Don't crash on unions containing structs.
7412
7413 2000-09-12  Alexandre Oliva  <aoliva@redhat.com>
7414
7415         * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
7416         general_movsrc_operand, and remove CONST_INT from
7417         general_movdst_operand.
7418
7419 2000-09-12  Bernd Schmidt  <bernds@redhat.co.uk>
7420
7421         * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
7422         if a reference to non-fixed hardreg is seen.  Otherwise, count hard
7423         regs with a higher cost.
7424         (preferrable): Deal with cases where either cost or regcost is
7425         MAX_COST.
7426         (cse_insn): Use MAX_COST rather than 10000.  Always initialize
7427         regcost values.
7428         (COSTS_N_INSNS): Move definition...
7429         * rtl.h: ...here.
7430         (MAX_COST): New macro.
7431         * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
7432         constant.
7433
7434 2000-09-11  Mark Mitchell  <mark@codesourcery.com>
7435
7436         * c-common.h (genrtl_clear_out_block): Remove.
7437         * c-semantics.c (genrtl_clear_out_block): Remove.
7438         (genrtl_while_stmt): Don't call it.
7439         (genrtl_for_stmt): Likewise.
7440
7441 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
7442
7443         * cppfiles.c: Move all default-#defines to top of file.
7444         (open_include_file): Replace by lookup_include_file.
7445         (read_with_read, read_file): Merged into read_include_file.
7446         (stack_include_file, purge_cache): New functions.
7447         (close_cached_fd): Delete.
7448         (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
7449         Cache the in-memory buffer, not the file descriptor.
7450
7451         * cpphash.h (struct include_file): Add buffer, st, refcnt,
7452         mapped fields.
7453         (xcnew): New utility macro.
7454         (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
7455         * cpplib.h (struct cpp_buffer): Remove mapped field.
7456
7457 2000-09-11  Zack Weinberg  <zack@wolery.cumb.org>
7458
7459         * cpplex.c (parse_string): Accept backslash space newline as a
7460         line continuation.
7461         (lex_line): Likewise.
7462         (_cpp_get_token): Remove hard limit on macro nesting.
7463
7464 2000-09-12  Philipp Thomas  <pthomas@suse.de>
7465
7466         * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
7467         * configure: Rebuilt.
7468
7469 2000-09-13  Michael Hayes  <mhayes@cygnus.com>
7470
7471         * flow.c (split_block): Fix update of registers live at
7472         end of split block.
7473
7474 Tue Sep 12 01:51:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7475
7476         * i386.md (add?i_3, add?i_5): New.
7477         (add?i_4): Rename from add?i_3;  Fix compare pattern.
7478         (sub?i_3, xor?i_3, ior?i_3): New.
7479
7480         * genrecog.c (write_tree): Output code to clear insn_extract cache.
7481         * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
7482         instead of extract_insn and extract_constrain_insn_cache instead of
7483         extract_insn and constrain_operands.
7484         * recog.c (extract_insn_cached, extract_constrain_insn_cached):
7485         New functions.
7486         (extract_insn): Clear which_alternative.
7487         (constrain_operands): Set which_alternative to -1 when failed.
7488         * recog.h (extract_constrain_insn_cached, extract_insn_cached):
7489         Declare.
7490
7491 2000-09-11  Matthew Hiller  <hiller@redhat.com>
7492
7493         * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
7494         on operand 0 to '+'.
7495         (movstricthi): Likewise.
7496
7497 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
7498
7499         * loop.h (LOOP_IVS): New macro.
7500         (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
7501         (struct loop_ivs): New.
7502         (struct loop_info): Add ivs field.
7503         (reg_iv_type, reg_iv_info): Delete prototype.
7504         (reg_biv_class, loop_iv_list): Likewise.
7505         * loop.c (record_biv, find_life_end): Pass loop argument.
7506         (reg_iv_type): Remove global array and use
7507         field in loop_regs structure within loop_ivs structure.
7508         (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
7509         (first_increment_giv, last_increment_giv): Use entry in
7510         loop_ivs structure.
7511         (record_initial): Pass ivs pointer.
7512         * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
7513
7514 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
7515
7516         * loop.h (LOOP_REGS): New macro.
7517         (struct loop_regs): New.
7518         (struct loop_info): Add regs field.
7519         * loop.c (set_in_loop): Remove global array and store
7520         in loop_regs structure as part of loop_info structure.
7521         (n_times_set, may_not_optimize): Likewise.
7522         (reg_single_usage, moved_once): Likewise.
7523         (count_one_set): Add regs argument.
7524         (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
7525         (set_pseudo_multiple_uses): Pass regs pointer.
7526
7527 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
7528
7529         * unroll.c (iteration_info): Subsume into loop_iterations.
7530         * loop.h (loop_info): New field iv.
7531
7532 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
7533
7534         * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
7535         (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
7536         (flow_loops_update): New prototype.
7537         (flow_loops_find): Add flags to prototype.
7538         (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
7539         * flow.c (flow_loop_pre_header_scan): New.
7540         (flow_loop_dump): Dump pre-header root and trace and exit dominators.
7541         (flow_loop_free): Free pre-header root and trace and exit dominators.
7542         (flow_loops_find): New argument flags.
7543         (flow_loops_update): New function.
7544         * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
7545
7546 2000-09-12  Michael Hayes  <mhayes@cygnus.com>
7547
7548         * basic-block.h (split_block, update_bb_for_insn): New prototypes.
7549         * flow.c (split_block, update_bb_for_insn): New functions.
7550
7551 2000-09-11  Richard Henderson  <rth@cygnus.com>
7552
7553         * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
7554
7555 2000-09-11  Richard Henderson  <rth@cygnus.com>
7556
7557         * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
7558         * config/ia64/ia64.c (fr_nonimmediate_operand): New.
7559         (ia64_override_options): Prevent optimizing division for both
7560         latency and throughput.
7561         (rtx_needs_barrier): Handle frcpa.
7562         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
7563         (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
7564         (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
7565         (TARGET_SWITCHES): Add -minline-divide-min-latency and
7566         -minline-divide-max-throughput.
7567         (PREDICATE_CODES): Update.
7568         * config/ia64/ia64.md (extendsidi2): Remove * from f case.
7569         (zero_extendsidi2): Likewise.  Fix typo in f case insn.
7570         (extendsfdf2): Add cases for gr<->fr and fr<->mem.
7571         (extendsftf2): Likewise.
7572         (extenddftf2): Likewise.
7573         (fix_trunctfdi2_alts): New.
7574         (fixuns_trunctfdi2_alts): New.
7575         (madd*4): Rename from madd*3.
7576         (divsi3, modsi3, udivsi3, umodsi3): New.
7577         (divsi3_internal): New.
7578         (divdi3, moddi3, udivdi3, umoddi3): New.
7579         (divdi3_internal_lat, divdi3_internal_thr): New.
7580         (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
7581         (recip_approx): New.
7582
7583 2000-09-11  Alexandre Oliva  <aoliva@redhat.com>
7584
7585         * print-rtl.c (debug_call_placeholder_verbose): New variable.
7586         (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
7587         set.
7588         * integrate.c (copy_rtx_and_substitute): Don't share
7589         LEAF_REG_REMAPpable registers with the inlined function.  Don't
7590         share the function value with calling sequences.
7591
7592 2000-09-11  Jakub Jelinek  <jakub@redhat.com>
7593
7594         * c-decl.c (do_case): Fix a typo.
7595
7596         * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
7597         to a if the comparison is floating mode and not -ffast-math.
7598         * simplify-rtx.c (simplify_ternary_operation): Likewise.
7599
7600 Mon Sep 11 20:07:48 2000  J"orn Rennecke <amylaar@redhat.co.uk>
7601
7602         * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
7603         gen_ic_invalidate_line.
7604
7605 2000-09-11  Philip Blundell  <pb@futuretv.com>
7606
7607         * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
7608
7609 Mon Sep 11 10:48:41 2000  Ulrich Drepper <drepper@redhat.com>
7610
7611         * install.texi (LANGUAGES): Update to include new languages.
7612         * INSTALL: Rebuilt.
7613
7614 2000-09-11  DJ Delorie  <dj@redhat.com>
7615
7616         * gcc.c (main): Don't warn about unused -B prefixes
7617         (unused_prefix_warnings): remove
7618
7619 2000-09-11  Kazu Hirata  <kazu@hxi.com>
7620
7621         * final.c: Fix formatting.
7622
7623         * integrate.c: Fix formatting.
7624
7625 2000-09-11  Geoff Keating  <geoffk@cygnus.com>
7626
7627         * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
7628
7629 2000-09-11  Bernd Schmidt  <bernds@redhat.co.uk>
7630
7631         * reload.c (regno_clobbered_p): Fix thinko in previous change.
7632
7633 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7634
7635         * gcc.1: Document 68hc11 specific options.
7636
7637 2000-09-10  Geoff Keating  <geoffk@cygnus.com>
7638
7639         * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
7640         (TARGET_LONG_DOUBLE_128): Define.
7641         (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
7642         (LONG_DOUBLE_TYPE_SIZE): Redefine.
7643         (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
7644         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
7645         of __LONG_DOUBLE_128__.
7646         (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
7647         passed.
7648         (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
7649         (CPP_SYSV_DEFAULT_SPEC): Define.
7650         (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
7651         (INIT_TARGET_OPTABS): Define.
7652
7653         * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
7654         (RS6000_UITRUNC): Likewise.
7655         (INIT_TARGET_OPTABS): New macro.
7656         * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
7657         (trunc_defined): Delete.
7658         (output_prolog): Don't output .extern definitions for fp->int
7659         conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
7660         * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
7661         (trunc_defined): Delete.
7662         (RS6000_ITRUNC): Moved to aix.h.
7663         (RS6000_UITRUNC): Likewise.
7664         * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
7665         only emit a libcall.
7666         (fixuns_truncdfsi2): Delete.
7667         (trunc_call): Delete.
7668         (trunc_call_rtl): Delete.
7669
7670 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
7671
7672         * varasm.c (make_decl_rtl): Restore leading star on
7673         DECL_ASSEMBLER_NAME set for decls with an asmspec.
7674
7675 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
7676
7677         * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
7678         won't give a spurious error for '#pragma pack()'.  Simplify
7679         control flow for readability.  'reset' action is not necessary.
7680
7681 2000-09-10  Zack Weinberg  <zack@wolery.cumb.org>
7682
7683         * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
7684         SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
7685         LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
7686         DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
7687
7688         * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
7689         profile.c, sdbout.c, tradcif.y, tree.c:
7690         Include defaults.h if not already included.
7691         Don't define the above macros.
7692
7693         * Makefile.in: Update dependencies.
7694
7695 2000-09-10  Mark Mitchell  <mark@codesourcery.com>
7696
7697         * c-common.h (add_stmt): Change prototype.
7698         (RECHAIN_STMTS): New macro.
7699         (CASE_LABEL_DECL): Likewise.
7700         (genrtl_case_label): Change prototype.
7701         (c_expand_start_case): Remove prototype.
7702         (build_case_label): Change prototype.
7703         (decl_constant_value): Declare.
7704         * c-common.c (check_case_value): Handle C++'s extensions to C
7705         semantics.
7706         * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
7707         field.
7708         * c-parse.in (stmt): Adjust handling of return statements and case
7709         laels.
7710         * c-semantics.c (add_stmt): Return the new statement.
7711         (genrtl_return_stmt): Take the RETURN_STMT as input, not the
7712         returned expression.  Directly generate RTL, rather than calling
7713         c_expand_return.
7714         (genrtl_switch_stmt): Don't call c_expand_start_case.
7715         (build_case_label): Take the LABEL_DECL as input, too.
7716         (genrtl_case_label): Just call add_case_node.
7717         (expand_stmt): Adjust calls to genrtl_return_stmt and
7718         genrtl_case_label.
7719         * c-tree.h (c_expand_start_case): Declare.
7720         * c-typeck.c (decl_constant_value): Give it external linkage.
7721         (c_expand_return): Don't call expand_return or expand_null_return;
7722         use genrtl_return_stmt instead.
7723         * stmt.c (struct nesting): Remove num_ranges field.
7724         (add_case_node): Give it external linkage.
7725         (expand_start_case): Don't set num_ranges.
7726         (expand_start_case_dummy): Don't clear it.
7727         (pushcase): Rely on add_case_node to handle `default' labels.
7728         (add_case_node): Handle `default' labels.
7729         * tree.c (tree_int_cst_compare): New function.
7730         * tree.h (tree_int_cst_compare): Declare.
7731         (add_case_node): Likewise.
7732
7733 2000-09-10  Richard Henderson  <rth@cygnus.com>
7734
7735         * c-parse.in: Revert last change.
7736         (init_reswords): Do not enter disabled keywords into the ridpointers
7737         table, modulo objc weirdness.
7738         (_yylex): Return the canonical spelling for a keyword.
7739
7740 2000-09-10  Philip Blundell  <philb@gnu.org>
7741
7742         * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
7743         * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
7744
7745 Sun Sep 10 14:30:28 EDT 2000  John Wehle  (john@feith.com)
7746
7747         * alias.c (find_base_term): Handle ADDRESSOF.
7748         (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
7749
7750 2000-09-10  Denis Chertykov  <denisc@overta.ru>
7751
7752         * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
7753         outputting templates with many lines.
7754
7755 2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7756
7757         * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
7758         to decide whether 64-bit support must be generated.
7759
7760 2000-09-10  Richard Henderson  <rth@cygnus.com>
7761
7762         * c-parse.in (asm patterns): Fix volatile check.
7763
7764 2000-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7765
7766         * cppmacro.c (check_trad_stringification): New function.
7767         (save_expansion): If -Wtraditional, warn about stringification of
7768         macro arguments.
7769
7770 2000-09-11  Michael Hayes  <mhayes@cygnus.com>
7771
7772         * loop.h (struct loop_mem_info): Move from loop.c
7773         (struct loop_info): Add fields store_mems, mems, mems_idx,
7774         mems_allocated, unknown_address_altered,
7775         unknown_constant_address_altered, num_mem_sets, and
7776         first_loop_store_insn.
7777
7778         * loop.c (loop_store_mems): Replace with field in loop_info struct.
7779         (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
7780         (unknown_address_altered, unknown_constant_address_altered): Likewise.
7781         (num_mem_sets): Likewise.
7782         (replace_loop_mems, replace_loop_regs): New.
7783         (struct loop_replace_args): New.
7784         (load_mems): Use replace_loop_mems.
7785         (try_copy_prop): Use replace_loop_regs.
7786         (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
7787
7788 2000-09-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7789
7790         * configure.in: Recognize m6811-elf and m6812-elf.
7791         * configure: Regenerate.
7792
7793 2000-09-09  Geoff Keating  <geoffk@cygnus.com>
7794
7795         * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
7796         to operand_subword.
7797
7798 2000-09-10  Michael Hayes  <mhayes@cygnus.com>
7799
7800         * loop.c (struct movables): New.
7801         (num_movables): Move into struct movables.
7802         (the_movables): Change type to struct movables.
7803         (ignore_some_movables): Change struct movable arg to struct movables.
7804         (force_movables, combine_movables, regs_match_p): Likewise.
7805         (rtx_equal_for_loop_p, move_movables): Likewise.
7806         (scan_loop): Change movables to be of type struct movables.
7807         Replace last_movable with field in movables structure.
7808
7809 2000-09-08  Zack Weinberg  <zack@wolery.cumb.org>
7810
7811         * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
7812         (init_pragma): Avoid warning if pfile happens to be unused.
7813         * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS.  Never
7814         define init_pragma to nothing.  Always prototype
7815         init_pragma.  Prototype dispatch_pragma if !USE_CPPLIB.
7816
7817         * c-lex.c (process_directive): Always call dispatch_pragma.
7818         Initialize entering_c_header to 0.
7819
7820 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7821
7822         * config/m68hc11/m68hc11.md: New file, machine description for
7823         68HC11 & 68HC12.
7824         * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
7825         * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
7826         * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
7827         * config/m68hc11/m68hc11-protos.h: New file.
7828         * config/m68hc11/m68hc11-crt0.S: New file, startup code.
7829         * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
7830         * config/m68hc11/xm-m68hc11.h: New file, target defs.
7831         * config/m68hc11/larith.asm: New file, libgcc routines.
7832
7833 2000-09-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7834
7835         * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
7836         (FPBIT_FUNCS): Add _usi_to_sf.
7837         * config/fp-bit.c (usi_to_float): New function.
7838         * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
7839         (usi_to_float): Add appropriate #define.
7840
7841 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
7842
7843         * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
7844         new functions.
7845         * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
7846         * i386.md (attr "type"): Add sse and mmx types.
7847         (attr "memory"): Handle them without a crash.
7848         (movsi_1, movdi_2): Allow MMX regs.
7849         (movdi splits): Don't split moves involving MMX regs.
7850         (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
7851         (movv4sf_internal, movv4si_internal, movv8qi_internal,
7852         movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
7853         movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
7854         sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
7855         sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
7856         sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
7857         addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
7858         divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
7859         sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
7860         sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
7861         vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
7862         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
7863         cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
7864         addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
7865         subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
7866         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
7867         mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
7868         mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
7869         eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
7870         smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
7871         lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
7872         mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
7873         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
7874         mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
7875         mmx_clrdi): New patterns.
7876
7877 2000-09-08  Richard Earnshaw  <rearnsha@arm.com>
7878
7879         * arm.c: Don't include tm.h directly.
7880
7881 Fri Sep  8 14:34:56 MET DST 2000  Jan Hubicka  <jh@suse.cz>
7882
7883         * recog.c (validate_replace_rtx_1): Fix confusion about equality
7884         testing; simplify subregs of constants and nested subregs.
7885
7886 2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7887
7888         * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
7889
7890 2000-09-08  Bernd Schmidt  <bernds@redhat.co.uk>
7891
7892         * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
7893         VEC_CONCAT.
7894         * rtl.texi (description of USE): Add note about possible pitfalls
7895         with this rtx.
7896         From Richard Henderson:
7897         * reload1.c (choose_reload_regs): Compute need_mode properly.
7898
7899 2000-09-07  Richard Henderson  <rth@cygnus.com>
7900
7901         * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
7902         (__modsi3, __umodsi3): Likewise.
7903         (__udivsi3): Likewise.  Normalize the TFmode values.
7904
7905 2000-09-07  Geoff Keating  <geoffk@cygnus.com>
7906
7907         * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
7908         with a prototype.
7909         * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
7910         warning.
7911
7912 Fri Sep  8 03:26:38 2000  J"orn Rennecke <amylaar@redhat.co.uk>
7913
7914         * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
7915         (cmpeqdi_t): Add output pattern.
7916         (cmpeqdi_t+1): Don't split when not optimizing.
7917         Restore proper splitting operation.
7918
7919 2000-09-07  Richard Henderson  <rth@cygnus.com>
7920
7921         * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
7922         do not call dispatch_pragma.
7923
7924 2000-09-07  Jim Wilson  <wilson@cygnus.com>
7925
7926         * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
7927         to CLASS_CANNOT_CHANGE_MODE.
7928         * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
7929         mode classes are different.
7930
7931 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
7932
7933         * cpplib.h (struct cpp_options): Add user_label_prefix member,
7934         left out of commit which removed cppulp.c.
7935
7936 2000-09-07  Richard Henderson  <rth@cygnus.com>
7937
7938         * bb-reorder.c (fixup_reorder_chain): Add jump in new block
7939         after switch for CASE_DROPS_THROUGH.
7940
7941 2000-09-07  Richard Henderson  <rth@cygnus.com>
7942
7943         * loop.c (strength_reduce): Call check_ext_dependant_givs.
7944         Properly extend the biv initial value for the giv.
7945         (record_biv): Zero ext_dependant.
7946         (record_giv): New argument ext_val.  Update all callers.
7947         (general_induction_var): Likewise.
7948         (consec_sets_giv): Likewise.
7949         (simplify_giv_expr): Likewise.  Fill in ext_val if we find
7950         a sign-extend, zero-extend, or truncate.
7951         (combine_givs_p): Make sure modes are compatible.
7952         (check_ext_dependant_givs): New.
7953         (extend_value_for_giv): New.
7954         * loop.h (struct induction): Add ext_dependant.
7955         * unroll.c (iteration_info): Extend the biv initial value for the giv.
7956         (find_splittable_givs): Likewise.
7957         (final_giv_value): Likewise.
7958
7959 2000-09-07  Zack Weinberg  <zack@wolery.cumb.org>
7960
7961         * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
7962         REGISTER_TARGET_PRAGMAS is defined.  Duplicate some
7963         definitions from cpplib.h.
7964         * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
7965         already done it.
7966         * tm.texi: Document HANDLE_PRAGMA as no longer supported.  Add
7967         documentation for REGISTER_TARGET_PRAGMAS.
7968
7969         * c-lex.c: Include cpplib.h before c-pragma.h.  Define a
7970         default-pragma callback to implement -Wunknown-pragmas if
7971         USE_CPPLIB.
7972         * c-parse.in: Move all includes to top of file.
7973         * c-pragma.c: Include cpplib.h before c-pragma.h.  Include
7974         tm_p.h.
7975         (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
7976         warning.
7977         (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
7978
7979         * arm.h, arm-protos.h, arm.c,
7980           c4x.h, c4x-protos.h, c4x.c,
7981           h8300.h, h8300-protos.h, h8300.c,
7982           i370.h, i370-protos.h, i370.c,
7983           i960.h, i960-protos.h, i960.c,
7984           sh.h, sh-protos.h, sh.c,
7985           v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
7986         pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
7987
7988         * d30v.h: Don't mention HANDLE_PRAGMA in comment.  Add
7989         multiple include guard.
7990         * i370.md (untyped_call): Use GEN_CALL.
7991         (umodsi3): Remove unused variable.
7992         * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
7993         * v850.c (output_move_single, output_move_double): Constify
7994         return value.
7995         (print_operand): Constify a char *.
7996         * v850.h (struct small_memory_info): Constify name member.
7997
7998 2000-09-07  Kazu Hirata  <kazu@hxi.com>
7999
8000         * config/h8300.h: Fix comment typos.
8001         * config/h8300/h8300.md: Likewise.
8002         * config/h8300/lib1funcs.asm: Likewise.
8003
8004 Thu 07-Sep-2000 21:29:00 BST  Neil Booth  <NeilB@earthling.net>
8005
8006         * Makefile.in: Remove references to cppulp.{c,o}.
8007         * cppinit.c (initialize_builtins, cpp_start_read,
8008         cpp_handle_option): Update to use cpp_options structure.
8009         * cppulp.c: Remove.
8010
8011 2000-09-07  Joseph S. Myers  <jsm28@cam.ac.uk>
8012
8013         * c-common.c (time_char_table): Allow %#b and %#h.
8014
8015 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8016
8017         * reorg.c (find_end_label): If the basic block reorder pass moves the
8018         return insn to some other place try to locate it again and put our
8019         end_of_function_label there.
8020         * reorg.c (relax_delay_slots): Check if find_end_label created a
8021         new label that invalidates the current optimazation.
8022
8023 2000-09-07  Catherine Moore  <clm@redhat.com>
8024
8025         * unroll.c (unroll_loop): Check for unconditional jumps
8026         to loop continuation.  Delete if n_iterations is 1.
8027         (ujump_to_loop_cont): New routine.
8028
8029 2000-09-07  Bernd Schmidt  <bernds@redhat.co.uk>
8030
8031         * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
8032         MODE_VECTOR_FLOAT.
8033         * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
8034         to handle multiword modes correctly.  All callers and the declaration
8035         changed.
8036
8037 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
8038
8039         * c-common.h (prep_stmt): Declare.
8040         (lang_expand_stmt): Likewise.
8041         * c-decl.c (lang_expand_stmt): Remove.
8042         * c-semantics.c (lang_expand_stmt): Define.
8043         (prep_stmt): New function.
8044         (expand_stmt): Handle common statement types here.
8045
8046 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
8047
8048         * configure.in (sh-*-linux*): Added.
8049         * configure: Rebuilt.
8050         * config/sh/t-linux: New file.
8051         * config/sh/sh.h (USERMODE_BIT): Define.
8052         (TARGET_USERMODE): Likewise.
8053         (TARGET_SWITCHES): New switches for the bits above.
8054         (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
8055         * config/sh/linux.h: New file.
8056         * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
8057         underscore on linux.
8058         (L_sdivsi3, L_udivsi3): Define for linux.
8059         (L_ic_invalidate): Define.
8060         * invoke.texi (SH Options): Document -musermode.
8061
8062 2000-09-07  Alexandre Oliva  <aoliva@redhat.com>
8063
8064         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
8065         CSE unless generating PIC.
8066
8067         * config/sh/sh.md (symPLT_label2reg): Force the initialization of
8068         the PIC register.
8069
8070 2000-09-06  H.J. Lu  (hjl@gnu.org)
8071
8072         * Makefile.in (clean_s1): Depend on stage_b.
8073         (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
8074         stage2. They are used for "make compare".
8075
8076 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
8077
8078         Move statement-tree facilities from C++ to C front-end.
8079         * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
8080         (void_zero_node): New macro.
8081         (struct stmt_tree_s): New type.
8082         (stmt_tree): New typedef.
8083         (struct language_function): New type.
8084         (last_tree): New macro.
8085         (last_expr_type): Likewise.
8086         (walk_tree_fn): New typedef.
8087         (current_stmt_tree): New function.
8088         (begin_stmt_tree): Likewise.
8089         (add_stmt): Likewise.
8090         (finish_stmt_tree): Likewise.
8091         (statement_code_p): Likewise.
8092         (lang_statement_code_p): New variable.
8093         (walk_stmt_tree): New function.
8094         (STMT_IS_FULL_EXPR_P): New macro.
8095         * c-common.c (lang_statement_code_p): New variable.
8096         (c_common_nodes_and_builtins): Initialize void_zero_node.
8097         (statement_code_p): New function.
8098         (walk_stmt_tree): Likewise.
8099         * c-decl.c (language_function): Rename to ...
8100         (c_language_function): ... this.  Include language_function.
8101         (push_c_function_context): Adjust accordingly.
8102         (pop_c_function_context): Likewise.
8103         (mark_c_function_context): Likewise.
8104         (current_stmt_tree): Define.
8105         * c-semantics.c (begin_stmt_tree): New function.
8106         (add_stmt): Likewise.
8107         (prune_unused_decls): Likewise.
8108         (finish_stmt_tree): Likewise.
8109
8110 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8111
8112         * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
8113
8114 2000-09-06  Kazu Hirata  <kazu@hxi.com>
8115
8116         * calls.c: Fix formatting.
8117
8118 2000-09-06  Graham Stott  <grahams@cygnus.co.uk>
8119
8120         * config/i386/i386.h (ADDRESS_COST): Fix typo.
8121
8122 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
8123
8124         Integrated preprocessor.
8125
8126         * Makefile.in: Remove all references to c-parse.gperf,
8127         c-gperf.h, and c-parse.h.  Remove -d from yacc command line
8128         generating c-parse.c.  Update dependencies.
8129         * c-parse.gperf, c-gperf.h: Delete.
8130
8131         * c-common.c: Don't define parse_options, cpp_token, yy_cur,
8132         yy_lim, or yy_get_token.  Don't define get_directive_line if
8133         USE_CPPLIB.
8134         * c-common.h: Add multiple include guard.  Define RID values
8135         for every keyword in C, C++, and Objective C.  Put all the
8136         modifiers first.
8137         (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
8138         * c-decl.c (c_decode_option): Handle -lang-objc here.
8139         (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
8140         (grokdeclarator): Adjust for new RID scheme.
8141         (extract_interface_info): New stub.
8142         * c-lang.c: Don't declare yy_cur or parse_options.
8143         (lang_init_options): Call cpp_init.  Don't call
8144         cpp_options_init.
8145         (lang_init): Don't call check_newline if USE_CPPLIB.
8146
8147         * c-lex.c: Don't include c-parse.h.  Do include timevar.h.
8148         Elide lots of unnecessary code if USE_CPPLIB.  Delete code
8149         rendered unnecessary by new architecture.  Move routines not
8150         shared with C++ to c-parse.in.  Maintain a local idea of the
8151         line number.    Handle C++ as well as C.
8152         [USE_CPPLIB]: Declare and register callbacks for #ident and
8153         for entering/leaving files.
8154         (init_c_lex, c_lex): Are now the entry points to this file.
8155         (check_newline): Break out directive handling to
8156         process_directive.
8157         (read_ucs, is_extended_char, utf8_extend_token): Moved here
8158         from C++ front end.
8159         (readescape, parse_float): Overhaul.
8160         (lex_number, lex_string, lex_charconst): Break out of c_lex
8161         (n'ee yylex).
8162         (get_fileinfo, update_header_times, dump_one_header,
8163         dump_time_statistics): New and/or moved here from C++.
8164         Support per-file data needed by C++ and per-header timing
8165         statistics (C++ only, at the moment).
8166         * c-lex.h: Update prototypes.  Add multiple include guard.
8167         * c-tree.h (struct lang_identifier): Add rid_code field.
8168         (C_IS_RESERVED_WORD, C_RID_CODE): New.
8169
8170         * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
8171         reinit_parse_for_function and/or position_after_white_space.
8172         (save_filename, save_lineno): Look ahead before saving.
8173         (label -> identifier ':'): Save file and line before shifting ':'.
8174         (reservedwords): No need to call get_identifier.
8175         (init_parse, finish_parse, yyerror, yylex, yyprint,
8176         make_pointer_declarator): Are now here for C/ObjC.
8177         (rid_to_yy): Conversion table from RID constants to Yacc codes.
8178
8179         * c-pragma.c: Rewrite parsing logic to fit with cpplib's
8180         #pragma registry.  Provide dummy implementation of that
8181         interface if !USE_CPPLIB.
8182         * c-pragma.h: Update to match.
8183
8184         * flags.h: Add multiple include guard.
8185         (flag_detailed_statistics): Moved here from C++.
8186         * toplev.c: Define flag_detailed_statistics.
8187
8188         * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
8189         #if USE_CPPLIB.
8190         * timevar.def (TV_CPP, TV_LEX): New.
8191         * timevar.h: Add multiple include guard.
8192
8193         * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
8194         #if USE_CPPLIB.
8195         * objc/objc-act.c: Don't mention yy_cur or parse_options.
8196         Initialize cpplib properly.  Force lineno to 0 after first
8197         call to check_newline.  Don't handle -lang-objc here.
8198         Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
8199
8200 2000-09-06  David Edelsohn  <edelsohn@gnu.org>
8201
8202         * rs6000.md: Correct function unit definitions for cr_logical and
8203         mtjmpr.
8204         (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
8205         and use portable method for >=0 and floating point >=.  Remove
8206         associated matchers.
8207
8208 2000-09-06  Mark Mitchell  <mark@codesourcery.com>
8209
8210         * extend.texi: Mark named return value extension as deprecated.
8211
8212 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
8213
8214         * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
8215         the result.
8216
8217 2000-09-06  Gabriel Dos Reis  <gdr@codesourcery.com>
8218
8219         * toplev.c (display_help): Fix thinko in documentation.
8220
8221         * diagnostic.h (output_buffer::indent_skip): New fields.
8222         (output_indentation): New macro.
8223
8224         * diagnostic.c (output_indent): New function.
8225         (output_set_prefix, clear_diagnostic_info): Use.
8226         (output_emit_prefix): Predict future indentation.
8227
8228 2000-09-06  DJ Delorie  <dj@redhat.com>
8229
8230         * Makefile.in (stage_*): add more dependencies to ensure parallel
8231         builds build correctly
8232
8233 2000-09-06  Manfred Hollstein  <manfredh@redhat.com>
8234
8235         * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
8236         not bootstrap-lean_f.
8237
8238 2000-09-06  Andreas Schwab  <schwab@suse.de>
8239
8240         * mklibgcc.in: Emit rule for libgcc-stage-start.
8241         * Makefile.in (stage1-start, stage2-start, stage3-start,
8242         stage4-start): Don't handle libgcc here, use libgcc.mk instead.
8243
8244 2000-09-06  Bernd Schmidt  <bernds@redhat.co.uk>
8245
8246         * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
8247         (update_equiv_regs): Likewise, except for the mn10200 kludge.
8248         (combine_regs): Likewise.
8249
8250         * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
8251         * cse.c: Include "basic-block.h".
8252         (struct table_elt): New field REGCOST.
8253         (CHEAP_REG): Delete macro.
8254         (COST): Return 0 for REGs.
8255         (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
8256         (notreg_cost): Return 0 for appropriate SUBREGs.
8257         (COSTS_N_INSNS): Return N * 2.
8258         (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
8259         SUBREGs.
8260         (CHEAPER): Use new function preferrable.
8261         (insert): Initialize REGCOST member.
8262         (find_best_addr): Use approx_reg_cost for estimation of register
8263         usage.
8264         (cse_insn): Likewise.
8265         * loop.c (iv_add_mult_cost): New function.
8266         (add_cost, shift_cost, mult_cost): Delete variables.
8267         (init_loop): Don't initialize add_cost; reduce copy_cost by half.
8268         (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
8269         Make code that detects autoinc opportunities slightly less optimistic.
8270         (simplify_giv_expr): If expression contains other reg that is also a
8271         giv, only increment benefit if this is the only use of that reg.
8272         (consec_sets_giv): Take that change into account.
8273         (combine_givs): Slightly more verbose output.
8274
8275         * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
8276         not the cost of an equivalent shift.
8277         * sh-protos.h (addsubcosts): Declare.
8278         * sh.c (addsubcosts): New function.
8279         * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
8280         (RTX_COSTS): Tweak.  Use addsubcosts.
8281         (ADDRESS_COST): Return higher cost for reg+reg addressing.
8282
8283 2000-09-06  Geoff Keating  <geoffk@cygnus.com>
8284
8285         * config/rs6000/rs6000.c (validate_condition_mode): New function.
8286         (branch_comparison_operator): Call validate_condition_mode to
8287         abort rather than returning 0.
8288         (branch_positive_comparison_operator): New function.
8289         (scc_comparison_operator): Call validate_condition_mode to abort
8290         rather than returning 0.
8291         (ccr_bit): Call validate_condition_mode.  Update for
8292         new branch scheme.
8293         (print_operand): Delete %C modifier.  Update %E case
8294         to use EQ bit not SO bit.
8295         (rs6000_reverse_condition): New function.
8296         (rs6000_generate_compare): New function.
8297         (rs6000_emit_sCOND): New function.
8298         (rs6000_emit_cbranch): New function.
8299         (output_cbranch): The length of a long branch insn is
8300         now only 8 bytes.  Add validate_condition_mode.  Use
8301         rs6000_reverse_condition.  Remove cror generation.
8302
8303         * config/rs6000/rs6000.h: Update comments.
8304         (PREDICATE_CODES): Add new predicate.  Update codes used
8305         by branch_comparison_operator and scc_comparison_operator.
8306         * config/rs6000/rs6000-protos.h: Add prototypes for
8307         new external functions.
8308         * config/rs6000/rs6000.md: Add new scheduling parameters
8309         for cr_logical instructions.  Change length of branch
8310         instructions.
8311         (bCOND patterns): Call rs6000_emit_cbranch.
8312         (sCOND patterns): Call rs6000_emit_sCOND.
8313         (branch patterns): Change lengths to 4.
8314         (cr logical patterns): New.
8315
8316 2000-09-06  Richard Henderson  <rth@cygnus.com>
8317
8318         * config/i386/i386.md (call_pop): Fix test for setting
8319         current_function_uses_pic_offset_table.
8320         (call, call_value_pop, call_value): Likewise.
8321
8322 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
8323
8324         * timevar.c (timevar_add): Delete.
8325         (timevar_get): Also count time since the selected timer was
8326         last updated.  Do not examine the timevar stack if the
8327         selected timer is standalone.
8328
8329 2000-09-05  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
8330
8331         * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
8332
8333 2000-09-05  Jason Merrill  <jason@redhat.com>
8334
8335         * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
8336         for 'extern' arrays.
8337
8338 2000-09-05  Richard Henderson  <rth@cygnus.com>
8339
8340         * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
8341         Eliminate final copy from non-trapping case.
8342         (__divdf3, __divsf3): Likewise.
8343
8344 2000-09-05  Richard Henderson  <rth@cygnus.com>
8345
8346         * config/ia64/ia64.md (mulhi3): Fix typo last change.
8347         * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
8348
8349 2000-09-03  Donn Terry  <donn@interix.com>,  Laurynas Biveinis  <lauras@softhome.net>
8350
8351         * Makefile.in: Restructure bootstrap stages to allow clean
8352         restart after failure.
8353
8354 2000-09-05  Richard Henderson  <rth@cygnus.com>
8355
8356         * config/ia64.md (movsi and movdi patterns): Allow moves from
8357         8-bit constants to AR registers.
8358
8359 2000-09-05  Richard Henderson  <rth@cygnus.com>
8360
8361         * config/ia64/ia64.md (mulhi3): New.
8362
8363 2000-09-05  Richard Henderson  <rth@cygnus.com>
8364
8365         * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
8366         * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
8367         Optimization Guide, minimum latency alternative.
8368         (__moddi3, __udivdi3, __umoddi3): Likewise.
8369         (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
8370
8371 2000-09-05  Bruce Korb  <bkorb@gnu.org>
8372
8373         * fixinc/fixincl.c (load_file): always read header files
8374         with sizes that are a multiple of the page size.
8375         & use libiberty's getpagesize for determining that.
8376
8377 2000-09-05  Alexandre Oliva  <aoliva@redhat.com>
8378
8379         * gcse.c (hash_string_1): Add prototype.
8380         * cse.c (canon_hash_string): Likewise.
8381
8382 2000-09-04  Craig Newell  <CraigN@ieee.org>
8383
8384         * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
8385
8386 2000-09-04  Andreas Schwab  <schwab@suse.de>
8387
8388         * Makefile.in (STAGESTUFF): Remove libgcc.
8389         (stage1-start, stage2-start, stage3-start): Copy the contents of
8390         the libgcc directory explicitly.
8391         (mostlyclean): Clean libgcc.
8392
8393 2000-09-04  Andrew Haley  <aph@redhat.com>
8394
8395         * dwarf2out.c: (stack_adjust_offset): New prototype.
8396
8397 Wed Jan  1 00:23:59 MET 1997  Jan Hubicka  <jh@suse.cz>
8398
8399         * combine.c (make_extraction): Fix rtx_cost comparison to
8400         match the comment.
8401
8402 Wed Jan  1 00:17:32 MET 1997  Jan Hubicka  <jh@suse.cz>
8403
8404         * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
8405         umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
8406         Add '*' to insn pattern name.
8407
8408 2000-09-04  Jakub Jelinek  <jakub@redhat.com>
8409
8410         * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
8411         use posn - 1 to index into tokens array.
8412         (maybe_paste_with_next): Adjust caller.
8413
8414 2000-09-03  Geoff Keating  <geoffk@cygnus.com>
8415
8416         * invoke.texi: Document the -mvxworks option for rs6000 ELF.
8417
8418         * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
8419         (REGNO_REG_CLASS): Use symbolic register
8420         names.
8421
8422 2000-09-03  Richard Earnshaw  <rearnsha@arm.com>
8423
8424         * arm.c (final_prescan_insn): If the form of a jump insn isn't
8425         recognized, don't try to conditionally execute it.
8426
8427 Sun Sep  3 13:10:56 2000  Denis Chertykov  <denisc@overta.ru>
8428
8429         * config/avr/avr.md ("*tablejump_lib"): New pattern.
8430         (call_value_insn): Right length claculation.
8431         (call_insn): Likewise.
8432
8433 2000-09-02  Marek Michalkiewicz  <marekm@linux.org.pl>
8434
8435         * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
8436         gas_output_limited_string, gas_output_ascii, output_movqi,
8437         output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
8438         out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
8439         out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
8440         ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
8441         lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
8442         out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
8443         Add "const" as needed to remove warnings.
8444
8445         * config/avr/avr.c (avr_override_options, avr_init_once,
8446         function_prologue, function_epilogue, frame_pointer_required_p,
8447         class_likely_spilled_p, order_regs_for_local_alloc,
8448         avr_address_cost, avr_ret_register): Use K&R style arguments.
8449         (initial_elimination_offset, gas_output_limited_string):
8450         Remove ATTRIBUTE_UNUSED from the used arguments.
8451         (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
8452         Use local variables src, dest, base to access operands[].
8453         Rename reg_dest to reg_src if that's what it is.
8454         (output_movhi, output_movsisf): Optimize loading 8-bit immediate
8455         constants to LD_REGS if reg_was_0.
8456         (output_reload_insisf): Change arg 3 to insn length and set it.
8457         (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
8458         access to 16-bit I/O register pairs.
8459         (avr_address_cost): Lower cost for the above case.
8460         (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
8461         may be clobbered, also for LD_REGS.
8462         (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
8463         with a CONST_INT.
8464
8465         * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
8466
8467         * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
8468         macro to test_hard_reg_class function.
8469         (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
8470         for loading immediate constants to LD_REGS.
8471         (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
8472
8473
8474 Sat Sep  2 13:58:23 2000  Marek Michalkiewicz <marekm@linux.org.pl>
8475
8476         * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
8477         * config/avr/libgcc.S: Lost part of the previous patch.
8478
8479 2000-08-31  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
8480
8481         * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
8482         object before calling pthread_mutex_init.
8483
8484 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>
8485
8486         * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
8487         config/sh/crtn.asm: New files.
8488         * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
8489         (crt1.o, crti.o, crtn.o): New targets.
8490         * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
8491         sh/t-elf.
8492         * configure: Rebuilt.
8493         * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8494         STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
8495         * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
8496         Undefine for config/elfos.h to redefine.
8497         (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
8498
8499 2000-09-02  Alexandre Oliva  <aoliva@redhat.com>, Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8500
8501         * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
8502         legitimize_pic_address, output_pic_addr_const): Declare.
8503         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
8504         (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
8505         (TARGET_SWITCHES): New switch -mprefergot.
8506         (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
8507         (PIC_OFFSET_TABLE_REGNUM): Define.
8508         (GOT_SYMBOL_TABLE): Likewise.
8509         (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
8510         (ENCODE_SECTION_INFO): Define.
8511         (FINALIZE_PIC): New macros.
8512         (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
8513         (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
8514         * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
8515         (prepare_move_operands): Call emit_pic_move or
8516         emit_pic_const_move if appropriate.
8517         (output_far_jump): For PIC, use braf and output long offset.
8518         (machine_dependent_reorg):
8519         (sh_expand_prologue): Save and initialize the PIC register.
8520         (sh_expand_epilogue): Restore it.
8521         (initial_elimination_offset): Account for it.
8522         (nonpic_symbol_mentioned_p): New function.
8523         (legitimize_pic_address): Likewise.
8524         (output_pic_addr_const): Likewise.
8525         * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
8526         (call, call_value): Use them.
8527         (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
8528         symPLT_label2reg): New expands.
8529         * invoke.texi (SH Options): Document -mprefergot.
8530
8531 2000-09-01  Alexandre Oliva  <aoliva@redhat.com>
8532
8533         * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
8534         * gcse.c (hash_string_1): New function.
8535         (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
8536         (expr_equiv_p) <ASM_OPERANDS>: Likewise.
8537         * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
8538         (canon_hash_string): New function.
8539         (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
8540         (exp_equiv_p) <ASM_OPERANDS>: Likewise.
8541         (fold_rtx): Use ASM_OPERANDS accessor macros.
8542         * emit-rtl.c (copy_insn_1): Likewise.
8543         * integrate.c (copy_rtx_and_substitute): Likewise.
8544         * stmt.c (expand_asm_operands): Likewise.  Give an
8545         ASM_OPERANDS rtx the mode of the output reg being set from it.
8546
8547 2000-09-01  Fred Fish  <fnf@be.com>
8548
8549         * fix-header.c (write_rbrac): Add putc and getc to list of
8550         functions to protect against prior definition as a macro.
8551
8552 2000-09-01  Joseph S. Myers  <jsm28@cam.ac.uk>
8553
8554         * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
8555         (c_size_type_node): Define.
8556         * c-decl.c (init_decl_processing): Initialize c_size_type_node.
8557         * c-common.c (enum format_lengths, enum format_std_version,
8558         format_length_info, format_type_detail, BADLEN, NOLENGTHS,
8559         format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
8560         T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
8561         T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
8562         T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
8563         TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
8564         format_types): Define.
8565         (format_char_info, print_char_table, scan_char_table,
8566         time_char_table): Rearrange for new organization of information
8567         about format length modifiers and standard versions.
8568         (T_ST): Redefine to use c_size_type_node.
8569         (check_format_info): Obtain information about length modifiers and
8570         standard versions from tables.  Adjust warning message wordings.
8571         Use the name from the user's program for `ll' and `hh' length
8572         modifiers in warning messages.  Use more informative names for
8573         wanted types where available (for wchar_t, wint_t, size_t, signed
8574         size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
8575
8576 2000-09-01  Jim Wilson  <wilson@cygnus.com>
8577
8578         * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
8579         * combine.c (distribute_notes): Handle REG_NORETURN.
8580         * rtl.c (reg_note_name): Add REG_NORETURN.
8581         * rtl.h (enum reg_note): Likewise.
8582
8583         * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
8584         ia64_file_start.
8585         * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
8586         (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
8587         (emit_predicate_relation_info): Handle conditional calls with
8588         REG_NORETURN.
8589         * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
8590         instead of ia64_file_start.
8591         * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
8592         * config/ia64/ia64.md (safe_across_calls_all,
8593         save_across_calls_normal): New patterns.
8594
8595         * loop.c (check_final_value): Check for biv use before checking for
8596         giv use.  Check for both biv and giv uses.  Always set last_giv_use
8597         if there is a giv use.
8598
8599 2000-09-01  Richard Henderson  <rth@cygnus.com>
8600
8601         * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
8602         (madddi3): Likewise.
8603         (maddsi3): New.
8604
8605 Fri Sep  1 10:59:47 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8606
8607         * expr.c (clear_storage): Don't use emit_move_insn unless
8608         either BLKmode or proper size.
8609         (store_constructor): Don't call clear_storage if REG of wrong size.
8610
8611         * flow.c (init_propagate_block_info): Don't mark frame dead at end
8612         of function if returns wiht stack pointer depressed.
8613
8614 2000-09-01  Andrew Haley  <aph@redhat.com>
8615
8616         * dwarf2out.c (stack_adjust_offset): New function.
8617         (dwarf2out_stack_adjust): Break out stack adjust logic into
8618         new stack_adjust_offset function.  Look inside parallels and
8619         sequences for stack adjustments.
8620
8621 2000-08-31  Jeff Law <law@cygnus.com>
8622
8623         * arm.md: Use no_new_pseudos to determine when it is safe
8624         to create new pseudo registers.
8625
8626         * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
8627         when we can safely allocate new registers.
8628
8629 2000-08-31  Geoffrey Keating  <geoffk@cygnus.com>
8630
8631         * stmt.c (expand_asm_operands): Twiddle generating_concat_p
8632         so that CONCATs are not generated for ASMs.
8633         * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
8634         not generating_concat_p.
8635         * function.c (pop_function_context_from): Reset
8636         generating_concat_p.
8637         (prepare_function_start): Likewise.
8638         * rtl.c (generating_concat_p): Define.
8639         * rtl.h (generating_concat_p): Declare.
8640         * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
8641
8642 2000-08-22  Philipp Thomas  <pthomas@suse.de>
8643             Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
8644
8645         * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
8646         for translation.
8647
8648 2000-08-30  Greg McGary  <greg@mcgary.org>
8649
8650         * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
8651         * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
8652         * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
8653
8654 2000-08-30  Greg McGary  <greg@mcgary.org>
8655
8656         * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
8657         (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
8658         (TREE_INT_CST): New macro.
8659         * varasm.c (const_hash, compare_constant_1, record_constant_1):
8660         Use new macro TREE_INT_CST.
8661
8662 Wed 30-Aug-2000 23:18:59 BST  Neil Booth  <NeilB@earthling.net>
8663
8664         * contrib.texi: Add self.
8665
8666 2000-08-30  Alexandre Oliva  <aoliva@redhat.com>
8667
8668         * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
8669         (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
8670         and labels.
8671
8672 2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
8673
8674         * fixinc/gnu-regex.c: Don't define `const'.
8675
8676 Tue Aug 29 22:09:59 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8677
8678         * expr.c (store_constructor): Allow variable bounds of array type.
8679         (expand_expr): Don't blow up if type is ERROR_MARK.
8680         * varasm.c (output_constructor): Don't access lower bound of array
8681         type unless need it if index is supplied (so it can be a variable
8682         if no index is supplied).
8683         Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
8684         Other minor cleanups.
8685
8686 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
8687
8688         * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
8689         for compilations in stage 1 and subsequent stages, respectively.
8690         * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
8691         * configure: Rebuilt.
8692         * x-vax, x-vax-gcc: Deleted.
8693
8694 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
8695
8696         * c-common.c (declare_function_name): Use func_id_node,
8697         function_id_node, and pretty_function_id_node.  Do not make
8698         __func__ visible at file scope.
8699         * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
8700         CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
8701         (function_id_node, pretty_function_id_node, func_id_node): New
8702         macros.
8703         * c-decl.c (init_decl_processing): Initialize function_id_node,
8704         pretty_function_id_node, and func_id_node.
8705         (c_make_fname_decl): Correct comment.
8706
8707         * tree.h (struct tree_identifier): Constify pointer member.
8708
8709         * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
8710         * c-pragma.h (struct weak_syms): Constify name and value members.
8711         (add_weak): Constify arguments.
8712
8713         * calls.c (special_function_p): Constify a char *.
8714         (expand_call): Remove variable which is initialized and then
8715         never used.
8716         * dependence.c (struct def_use, struct induction, struct subscript):
8717         Constify 'variable' member.
8718         (get_low_bound, have_induction_variable): Constify char * argument.
8719         (find_induction_variable): Add braces to avoid dangling else.
8720         (classify_dependence): Constify char * arrays.
8721         * profile.c (output_func_start_profiler): Constify a char *.
8722         * stor-layout.c (finalize_record_size): Constify a char *.
8723         * tree.c (is_attribute_p): Constify a char *.
8724         * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
8725
8726         * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
8727         for comprehensibility.  Do not call get_identifier if we did
8728         not change the DECL_ASSEMBLER_NAME of the decl.  Use alloca to
8729         create temporary string constants, not ggc_alloc_string.  No
8730         need to copy result of ASM_FORMAT_PRIVATE_NAME.  Use const
8731         char * to hold IDENTIFIER_POINTERs.
8732
8733 2000-08-29  Richard Henderson  <rth@cygnus.com>
8734
8735         * config/ia64/ia64.md (muldi3): Use grfr_register_operand
8736         for the inputs.
8737
8738 2000-08-29  Richard Henderson  <rth@cygnus.com>
8739
8740         * reload.c (push_secondary_reload): Allow class == reload_class
8741         if we're using a reload_in/out pattern.
8742
8743         * config/ia64/ia64.md (reload_inti): Use a TImode scratch.  Use
8744         the half that does not conflict with the reload register.
8745         (reload_outti): Likewise.
8746
8747 2000-08-29  Kazu Hirata  <kazu@hxi.com>
8748
8749         * reload.c: Fix formatting.
8750
8751         * stmt.c: Fix formatting.
8752
8753         * gcc.c: Fix formatting.
8754
8755 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
8756
8757         * flags.h (time_report, mem_report): New global flags.
8758         * toplev.c: Define time_report and mem_report.
8759         (f_options): Add -ftime-report and -fmem-report.
8760         (compile_file): Turn on time_report if quiet_flag is off.
8761         Call ggc_print_statistics at very end if mem_report is on.
8762         * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
8763
8764         * ggc-common.c (ggc_print_statistics): Rename to
8765         ggc_print_common_statistics; all callers changed.  Scale
8766         quantities above 10K to kilobytes and above 10M to megabytes.
8767         * ggc-page.c (ggc_page_print_statistics): Rename to
8768         ggc_print_statistics.  Report memory consumed by internal data
8769         structures for each allocation bucket.  Scale quantities above
8770         10K to kilobytes and above 10M to megabytes.
8771         * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
8772         Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
8773         Define tally_leaves always.
8774         (ggc_print_statistics): New function.
8775         * ggc.h: Adjust for renamed functions.
8776
8777 Wed Aug 30 00:11:42 2000  Denis Chertykov  <denisc@overta.ru>
8778
8779         * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
8780         output_movsisf instead of which_alternative.
8781
8782         * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
8783
8784 Tue Aug 29 22:29:58 2000  Denis Chertykov  <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
8785
8786         * config/avr/avr-protos.h: (avr_output_ascii) Removed.
8787         (avr_progmem_p): New prototype.
8788         (output_movsisf): Prototype declaration changed.
8789         (output_movqi): New prototype.
8790         (output_movhi): New prototype.
8791         (call_insn_operand): Likewise.
8792         (final_prescan_insn): Likewise.
8793         (avr_simplify_comparision_p): Likewise.
8794         (avr_normalize_condition): Likewise.
8795         (compare_eq_p): Likewise.
8796         (out_shift_with_cnt): Likewise.
8797         (const_int_pow2_p): Likewise.
8798         (output_reload_inhi): Prototype declaration changed.
8799
8800         * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
8801         (ldi_reg_rtx): New. rtx for r31.
8802         (avr_init_stack): Initialize as "__stack".
8803         (function_prologue): Use it.
8804         Replace all TARGET_ENHANCED with AVR_ENHANCED.
8805         (avr_mcu_name): Initialize as "avr2".
8806         (avr_enhanced_p, avr_mega_p): New variables.
8807         (mcu_types, avr_override_options): Handle all known MCU types.
8808         Also handle avr1 (only preprocess, assemble and link).
8809         (print_operand): Using of `%K' in output template removed.
8810         (out_movqi_r_mr): Optimized.
8811         (out_movhi_r_mr): Likewise.
8812         (output_movqi): New function.
8813         (output_movhi): Likewise.
8814         (out_movsi_r_mr): Optimized.
8815         (output_movsisf): Compute insn length for `adjust_insn_length'
8816         (out_movqi_mr_r): Optimized.
8817         (out_movhi_mr_r): Optimized.
8818         (adjust_insn_length): Use output_movsisf, output_movqi,
8819         output_movhi for insn length adjusting.
8820         (reg_unused_after): Use dead_or_set_p.
8821         (preferred_reload_class): Now havn't any restriction.
8822         (reg_was_0): New function.
8823         (io_address_p): Likewise.
8824         (const_int_pow2_p): Likewise.
8825         (output_reload_inhi): Likewise.
8826         (output_reload_insisf): Likewise.
8827
8828         * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
8829         (LIB_SPEC): Use -lc for all supported devices.
8830         (LIBGCC_SPEC): Use -lgcc for all supported devices.
8831         (AVR_MEGA): Define as avr_mega_p.
8832         (AVR_ENHANCED): New, define as avr_enhanced_p.
8833         (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
8834         (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
8835         (CRT_BINUTILS_SPECS): Handle all known MCU types.
8836         Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
8837         (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
8838         (ASM_SPEC): Pass -mmcu=... to the assembler.
8839         Change all -DAVR_* to -D__AVR_*__.
8840         (INIT_TARGET_OPTABS), config/avr/libgcc.S:
8841         Rename library functions to start with two underscores.
8842         (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
8843         alignment.
8844         (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
8845         (SUPPORTS_WEAK): Likewise.
8846         (LDI_REG_REGNO): New. Register r31 will be used as temporary
8847         register for loading constants to r0-r14.
8848
8849         * config/avr/avr.md: Replace all TARGET_ENHANCED with
8850         AVR_ENHANCED.
8851         (*mov_r_sp): Removed. Handled by output_movhi.
8852         (*mov_sp_r): Likewise.
8853         (*mov_sp_r_no_interrupts): Likewise
8854         (*mov_sp_r_tiny): Likewise.
8855         (*movqi): Use output_movqi.
8856         (*reload_inqi): New.
8857         (*movhi): Use output_movhi.
8858         (*reload_inhi): New.
8859         (*negsi2): Optimized.
8860         (*negsf2): Likewise.
8861         Added peepholes (define_peephole2) for loading constants to r0-r14
8862         and for using `cpse' command.
8863
8864         * config/avr/libgcc.S: Rename library functions to start with two
8865         underscores.
8866         Add support for enhanced core.
8867         (_moqhi3): Fix typo, now _modqi3.
8868         (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
8869         (__prologue_saves__): Remove test for stack adjust by 0.
8870         (__tablejump__): New.
8871
8872         * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
8873         Add multilib support.
8874
8875 Tue Aug 29 15:17:54 EDT 2000  John Wehle  (john@feith.com)
8876
8877         * loop.c (prescan_loop): Don't check unknown_address_altered
8878         when deciding if insert_loop_mem is safe.  Add BLKmode MEMs
8879         to loop_store_mems as necessary.
8880         (loop_invariant_p): Don't check unknown_address_altered
8881         or unknown_constant_address_altered.
8882
8883 2000-08-29  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
8884
8885         * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
8886
8887 2000-08-29  Zack Weinberg  <zack@wolery.cumb.org>
8888
8889         * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
8890         print just the filename.
8891         * cpplex.c (_cpp_run_directive): Add additional argument, the
8892         name to give the synthetic buffer.  This defaults to
8893         translated "<command line>".
8894         * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
8895         Adjust to match.
8896         (_cpp_define_builtin): New function.
8897         * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
8898         * cpphash.h: Update prototypes.
8899
8900         * tradcpp.c (main): Process -D and -U simultaneously, in the
8901         order they appeared on the command line.
8902
8903 2000-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8904
8905         * c-decl.c (define_label): Call warning_with_file_and_line and
8906         error_with_file_and_line instead of plain warning or error.
8907
8908         * c-parse.in (label): Use save_filename/save_lineno to ensure
8909         correct values for calls to define_label.
8910
8911 2000-08-29  Mark Mitchell  <mark@codesourcery.com>
8912
8913         * calls.c (expand_call): Don't create a VAR_DECL just to throw it
8914         away.
8915         * expr.c (expand_expr, case TARGET_EXPR): Don't call
8916         mark_addressable.
8917         * tree.h (get_file_function_name): Remove two duplicate
8918         declarations.
8919
8920 2000-08-28  Kazu Hirata  <kazu@hxi.com>
8921
8922         * tree.c: Fix formatting.
8923
8924         * xcoffout.c: Fix formatting.
8925
8926 2000-08-28  Jason Merrill  <jason@redhat.com>
8927
8928         * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
8929
8930 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
8931
8932         * dwarf2out.c (dwarf2out_finish): Don't bother calling
8933         break_out_includes if it won't do anything.
8934
8935 2000-08-28  Richard Henderson  <rth@cygnus.com>
8936
8937         * reload.c (push_secondary_reload): Revert 2000-08-16 change.
8938         (find_reloads): Likewise.
8939         * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
8940         (reload_inhi): Likewise.
8941
8942 2000-08-28  Richard Henderson  <rth@cygnus.com>
8943
8944         * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
8945         (call_insn_operand): Don't expect a surrounding mem.
8946         (constant_call_address_operand): Likewise.
8947         * config/i386/i386.h (PREDICATE_CODES): Update.
8948         * config/i386/i386.md (call patterns): Move the match_operand
8949         for the call destination inside the mem.
8950
8951 2000-08-28  Richard Henderson  <rth@cygnus.com>
8952
8953         * local-alloc.c (requires_inout): Don't use reserved range for
8954         EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
8955         * recog.c (asm_operand_ok): Likewise.
8956         (preprocess_constraints, constrain_operands): Likewise.
8957         * regclass.c (record_reg_classes): Likewise.
8958         * reload.c (find_reloads): Likewise.
8959         * reload1.c (maybe_fix_stack_asms): Likewise.
8960         (reload_cse_simplify_operands): Likewise.
8961         * stmt.c (expand_asm_operands): Likewise.
8962
8963         * md.texi: Update constraints documentation.
8964         * tm.texi (EXTRA_CONSTRAINT): Update.
8965
8966 2000-08-28  Daniel Berlin  <dberlin@redhat.com>
8967
8968         * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
8969         (print_die): If we don't know the offset of the
8970         target die, try the symbol.  Add a trailing newline.
8971         (reverse_all_dies): New fn.
8972         (dwarf2out_finish): Call it.
8973         (break_out_includes): Reorganize for clarity.
8974         (add_sibling_attributes): Don't call reverse_die_lists.
8975         (output_comp_unit): Rename from output_comdat_comp_unit.  Use for
8976         primary CU, too.
8977         * flags.h: Add flag_eliminate_dwarf2_dups.
8978         * toplev.c (f_options): Support -feliminate-dwarf2-dups.
8979
8980 2000-08-28  Jason Merrill  <jason@redhat.com>
8981
8982         * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
8983         * dwarf2out.c: #include "md5.h".
8984         (DIE_LABEL_PREFIX): New macro.
8985         (dw_val_struct): Add 'external' flag to val_die_ref.
8986         (add_AT_die_ref, AT_ref): Adjust.
8987         (AT_ref_external, set_AT_ref_external): New fns.
8988         (build_abbrev_table): Call set_AT_ref_external.
8989         (value_format): Call AT_ref_external.
8990         (die_struct): Add die_symbol field.
8991         (new_die): Clear it.
8992         (dwarf_tag_name): Handle BINCL/EINCL.
8993         (dwarf2out_start_source_file): Add BINCL DIE.
8994         (dwarf2out_end_source_file): Add EINCL DIE.
8995         (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
8996         (loc_checksum, attr_checksum, die_checksum): New fns.
8997         (is_type_die, is_comdat_die, is_symbol_die): New fns.
8998         (compute_section_prefix, assign_symbol_names): New fns.
8999         (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
9000         (output_die): Call output_die_symbol and AT_ref_external.
9001         (output_comdat_comp_unit): New fn, split out from...
9002         (dwarf2out_finish): ...here.  Also call add_sibling_attributes for
9003         secondary CUs.
9004         (output_pubnames, output_aranges): Abort if we see entries from
9005         secondary CUs.
9006         * toplev.h: Declare file_name_nondirectory.
9007         * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
9008         (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
9009         (debug_start_source_file): Call dwarf2out_start_source_file
9010         regardless of debug verbosity.
9011         (debug_end_source_file): Similarly.
9012         * tree.h: Declare clean_symbol_name.
9013         * tree.c (clean_symbol_name): Split out from...
9014         (get_file_function_name_long): ...here.
9015
9016         * dwarf2out.c (new_loc_descr): Use calloc.
9017         (splice_child_die): Remove the die from the right parent.
9018         (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
9019
9020 Mon Aug 28 19:02:13 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9021
9022         * toplev.c (decode_g_option): Don't give warning for unknown -g
9023         option; return 0 instead.
9024         (main): If -g option is not recognized by front end or
9025         language-independent code, give warning.
9026
9027 2000-08-28  Greg McGary  <greg@mcgary.org>
9028
9029         * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
9030         * config/i386/i386.c (ix86_expand_compare): Remove `static'.
9031         * config/i386/i386.md (trap, conditional_trap): New insn & expand.
9032
9033 2000-08-27  Greg McGary  <greg@mcgary.org>
9034
9035         * cpplex.c (parse_string): Don't look for backslash
9036         before first char in `namebuf'.
9037         * loop.c (strength_reduce): Skip NOTEs.
9038
9039 2000-08-27  Jason Merrill  <jason@redhat.com>
9040
9041         * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
9042         DECL_EXTERNAL on a local extern.  Don't set DECL_IGNORED_P or
9043         TREE_ASM_WRITTEN, either.
9044         (finish_decl): Adjust.
9045
9046 2000-08-28  Philipp Thomas  <pthomas@suse.de>
9047
9048         * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
9049         they have been incorporated into the gettext CVS. Change the text to
9050         reflect the current status of NLS. Add instructions for accessing
9051         the gettext CVS and add the patch from Martin v. Loewis.
9052
9053 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
9054
9055         * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
9056         by using gen_lowpart_common.
9057         (movdi_internal64+6): Likewise.
9058
9059 2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
9060
9061         * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
9062         Document.
9063
9064         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
9065         numbers to the ranges used by GDB.
9066
9067 2000-08-25  Richard Henderson  <rth@cygnus.com>
9068
9069         * config/ia64/ia64.h (struct machine_function): Add n_varargs.
9070         * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
9071         (ia64_expand_prologue): Likewise.
9072         (ia64_setup_incoming_varargs): Set it.  Properly skip the current
9073         argument for stdargs.
9074
9075 2000-08-25  Jason Merrill  <jason@redhat.com>
9076
9077         * integrate.c (expand_inline_function): Pull out the original decl.
9078
9079 2000-08-25  Jim Wilson  <wilson@cygnus.com>
9080
9081         * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
9082
9083         * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
9084
9085 2000-08-25  Greg McGary  <greg@mcgary.org>
9086
9087         * flow.c (dump_edge_info): Use ARRAY_SIZE.
9088         * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
9089
9090 2000-08-25  Richard Earnshaw  <rearnsha@arm.com>
9091
9092         * arm.h (STRUCT_VALUE): Define to 0, not NULL.
9093
9094 Fri Aug 25 12:52:49 EDT 2000  John Wehle  (john@feith.com)
9095
9096         * i386.c (ix86_find_base_term): New.
9097         * i386-protos.h (ix86_find_base_term): Prototype.
9098         * i386.h (FIND_BASE_TERM): Define.
9099         * alias.c (find_base_term): Use it.
9100         * tm.texi (FIND_BASE_TERM): Document it.
9101
9102         * alias.c (true_dependence, write_dependence_p): Unchanging
9103         memory can't conflict with non-unchanging memory.
9104
9105         * alias.c (memrefs_conflict_p): A BLKmode reference
9106         to a symbol (or CONST_INT address) always conflicts
9107         with a reference to another symbol.
9108
9109 2000-08-25  Joseph S. Myers  <jsm28@cam.ac.uk>
9110
9111         * c-common.c (time_char_table): Don't allow width and flags with
9112         "z" format.
9113
9114 2000-08-25  Jakub Jelinek  <jakub@redhat.com>
9115
9116         * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
9117         way as LT and LTU when the second operand has 0 in low word.
9118
9119 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
9120
9121         * basic-block.h (struct loop): Rename `exits' field to
9122         `exit_edges'.  Add `entry_edges' and `num_entries' fields.
9123
9124         * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
9125         (flow_loop_entry_edges_find): Add.
9126         (flow_edge_list_print): Rename from flow_exits_print.
9127         (flow_loops_find): Call flow_loop_entry_edges_find.
9128         (flow_loop_dump): Dump entry_edges list.
9129         (flow_loops_free): Free entry_edges.
9130
9131 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
9132
9133         * loop.c (loop_dump_aux, debug_loop): New functions.
9134         (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
9135
9136         * flow.c (flow_loops_dump): Add callback parameter.
9137         (flow_loop_dump): Add callback parameter and call it.  Move
9138         loop note debugging code to loop_dump_aux.
9139
9140         * basic-block.h (flow_loop_dump): Add callback parameter
9141         (flow_loops_dump): Likewise.
9142
9143         * toplev.c (rest_of_compilation): Add NULL callback function pointer
9144         to call to flow_loops_dump.
9145
9146 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
9147
9148         * loop.c (count_loop_regs_set): Replace start and end arguments
9149         with loop argument.  All callers udated.
9150
9151 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
9152
9153         * loop.c (constant_high_bytes): Delete.
9154
9155 2000-08-26  Michael Hayes  <mhayes@cygnus.com>
9156
9157         * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
9158         and NOTE_INSN_LOOP_VTOP to...
9159         (find_and_verify_loops) ...here.
9160
9161 Fri Aug 25 04:21:13 2000  Alexandre Oliva  <aoliva@redhat.com>
9162
9163         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
9164         (fini_dummy, init_dummy): Use it.
9165
9166 Fri 25-Aug-2000 08:03:27 BST  Neil Booth  <NeilB@earthling.net>
9167
9168         * cpplex.c (is_macro_disabled): Caller has already checked
9169         that we're not a preprocessed file.
9170
9171 2000-08-24  Mark Mitchell  <mark@codesourcery.com>
9172
9173         * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
9174         (c-iterate.o): Remove target.
9175         * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
9176         * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
9177         (finish_decl): Don't handle iterators.
9178         (grokdeclarator): Likewise.
9179         * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
9180         * gcc/c-gperf.h: Regenerated.
9181         * gcc/c-iterate.c: Removed.
9182         * gcc/c-lex.c (init_lex): Don't handle iterators.
9183         * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
9184         (compstmt_primary_start): Remove push_iterator_stack call.
9185         (stmt): Don't allow iterator statements.  Replace iterator_expand
9186         with expand_expr_stmt.
9187         (all_iter_stmt): Remove.
9188         (all_iter_stmt_simple): Likewise.
9189         (all_iter_stmt_with_decl): Likewise.
9190         * gcc/c-tree.h (ITERATOR_P): Remove.
9191         (ITERATOR_BOUND_P): Likewise.
9192         (init_iterators): Remove declaration.
9193         (iterator_expand): Likewise.
9194         (iterator_for_loop_start): Likewise.
9195         (iterator_for_loop_end): Likewise.
9196         (iterator_for_loop_record): Likewise.
9197         (push_iterator_stack): Likewise.
9198         (pop_iterator_stack): Likewise.
9199         * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
9200         (readonly_warning): Likewise.
9201         * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
9202
9203 2000-08-24  Jim Wilson  <wilson@cygnus.com>
9204
9205         * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
9206         Copy type in a TYPE_DECL, just like pushdecl does.
9207
9208 2000-08-24  Richard Henderson  <rth@cygnus.com>
9209
9210         * toplev.c (main): Enable flag_reorder_blocks at -O2.
9211
9212 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
9213
9214         * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
9215         asked for one page, allocate GGC_QUIRE_SIZE of them and put
9216         the extras on the free list.
9217         (release_pages): Clean up.
9218         (ggc_set_mark): Don't adjust G.allocated here...
9219         (sweep_pages): ... do it here.
9220
9221 2000-08-24  Zack Weinberg  <zack@wolery.cumb.org>
9222
9223         * cppfiles.c (read_include_file): Rearrange initializations.
9224
9225 2000-08-24  Richard Henderson  <rth@cygnus.com>
9226
9227         * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
9228
9229         * config/ia64/ia64-protos.h: Update.
9230         * config/ia64/ia64.c (gr_register_operand): New.
9231         (fr_register_operand, grfr_register_operand): New.
9232         (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
9233         (grfr_reg_or_8bit_operand): New.
9234         (gr_reg_or_0_operand): Rename from reg_or_0_operand and
9235         use gr_register_operand.
9236         (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
9237         (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
9238         (gr_reg_or_8bit_and_adjusted_operand): Likewise.
9239         (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
9240         (fr_reg_or_fp01_operand): Likewise.
9241         (not_postinc_memory_operand): New.
9242         (ia64_split_timode): Remove unused variables.
9243         (rtx_needs_barrier): Check arguments to cmpxchg.
9244         (builtin_description): Remove.
9245         (bdesc_2argsi, bdesc_2argdi): Remove.
9246         (ia64_init_builtins): Declare all builtins directly.
9247         (ia64_expand_fetch_and_op): Rewrite to be called from
9248         ia64_expand_builtin directly.  Use expand_binop and co.
9249         (ia64_expand_op_and_fetch): Likewise.
9250         (ia64_expand_compare_and_swap): Likewise.
9251         (ia64_expand_binop_builtin): Remove.
9252         (ia64_expand_lock_test_and_set): New.
9253         (ia64_expand_lock_release): New.
9254         (ia64_expand_builtin): Use them.
9255         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
9256         (EXTRA_CONSTRAINT): Use it.
9257         (PREDICATE_CODES): Update.
9258         * config/ia64/ia64.md (*): Use gr_register_operand and co.
9259         (mf): Indicate that we set memory as well as use it.
9260         (fetchadd_acq_si): Show memory being modified as well.
9261         (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
9262         (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
9263         (lock_test_and_set_si, lock_test_and_set_di): Remove.
9264         (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
9265         (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
9266         (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
9267         (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
9268         (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
9269         (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
9270         (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
9271         (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
9272         * config/ia64/ia64intrin.h (*): Cast result to the appropriate
9273         return type.  Pretty print definitions.
9274
9275 2000-08-24  Jim Wilson  <wilson@cygnus.com>
9276
9277         * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
9278         we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
9279
9280 2000-08-24  Jason Merrill  <jason@redhat.com>
9281
9282         * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
9283         AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
9284         (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
9285         get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
9286
9287 2000-08-24  Greg McGary  <greg@mcgary.org>
9288
9289         * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
9290         and extendtab within their proper array boundaries.
9291         * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
9292         for the entire array.
9293
9294         * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
9295         * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
9296         * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
9297         * config/fr30/fr30.c (fr30_print_operand): Likewise.
9298         * config/i386/dgux.c (output_options): Likewise.
9299         * config/i386/dgux.h (ASM_FILE_START): Likewise.
9300         * config/m88k/m88k.c (output_options): Likewise.
9301         * config/m88k/m88k.h (ASM_FILE_START): Likewise.
9302         * config/mcore/mcore.c (mcore_output_inline_const_forced,
9303         layout_mcore_frame, handle_structs_in_regs): Likewise.
9304         * config/mips/mips.c (output_block_move): Likewise.
9305         * config/rs6000/rs6000.c (rs6000_override_options,
9306         rs6000_file_start): Likewise.
9307         * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
9308         * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
9309         * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
9310         * builtins.c (expand_builtin_setjmp): Likewise.
9311         * expr.c (safe_from_p): Likewise.
9312         * flow.c (life_analysis): Likewise.
9313         * fold-const.c (size_int_type_wide): Likewise.
9314         * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
9315         * genattrtab.c (make_length_attrs): Likewise.
9316         * genopinit.c (gen_insn): Likewise.
9317         * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
9318         * global.c (global_alloc): Likewise.
9319         * local-alloc.c (find_free_reg): Likewise.
9320         * mips-tdump.c (print_symbol): Likewise.
9321         * mips-tfile.c (parse_def, parse_input): Likewise.
9322         * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
9323         * stmt.c (expand_nl_goto_receiver): Likewise.
9324         * stor-layout.c (set_sizetype): Likewise.
9325         * varasm.c (decode_reg_name): Likewise.
9326         * toplev.c (decode_f_option, decode_W_option,
9327         set_target_switch, print_switch_values): Likewise.
9328         (NUM_ELEM): Remove macro.
9329         (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
9330
9331 2000-08-24  Greg McGary  <greg@mcgary.org>
9332
9333         * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
9334         (MAIN_NAME_P, main_identifier_node): New macros.
9335         * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
9336         * c-decl.c (start_decl, grokdeclarator, start_function,
9337         store_parm_decls, finish_function): Use MAIN_NAME_P.
9338         * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
9339         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9340         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9341         * config/pdp11/pdp11.c (output_function_prologue): Likewise.
9342
9343 2000-08-24  Greg McGary  <greg@mcgary.org>
9344
9345         * cppfiles.c (actual_directory): Don't write beyond `dir'
9346         when it contains "".
9347         * real.c (asctoeg): Stay within bounds of etens[][].
9348
9349 2000-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9350
9351         * dependence.c (dependence_string, direction_string,
9352         dump_one_node, dump_node_dependence): Hide unused identifiers.
9353         (get_low_bound, normalize_coefficients): Match definition to
9354         static prototype.
9355         (get_one_coefficient): Initialize variables `value0_is_idx' and
9356         `value1_is_idx'.
9357         (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
9358         (ziv_test): Delete variable `idx', use parameter `sub' instead.
9359         (direction_merge): Avoid automatic aggregate initialization.
9360         (have_dependence_p): Use `src' not `dest' to set `src_idx'.
9361         Initialize variables `dest_idx' and `src_idx'.
9362         (end_dependence_analysis): Avoid C89 style function definition.
9363
9364 2000-08-24  Joseph S. Myers  <jsm28@cam.ac.uk>
9365
9366         * c-common.c (time_char_table): Don't allow width with %F.
9367         (check_format_info): Don't allow "Z" length with scanf.
9368
9369 2000-08-24  Gabriel Dos Reis  <gdr@codesourcery.com>
9370
9371         * diagnostic.c (finish_diagnostic): Define.
9372         (output_do_printf): Use wrap_text instead of output_add_string.
9373         (default_print_error_function): Avoid embedded '\n'.
9374
9375         * diagnostic.h (flush_diagnostic_buffer): Declare.
9376
9377 2000-08-23  Alexandre Oliva  <aoliva@redhat.com>
9378
9379         * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
9380
9381 2000-08-23  Hans-Peter Nilsson  <hp@axis.com>
9382
9383         * Makefile.in (GCC_PASSES): Add specs.
9384
9385 2000-08-23  Jim Wilson  <wilson@cygnus.com>
9386
9387         * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
9388         * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
9389         EHANDLER nor UHANDLER bit is set.
9390         (__get_except_table): Likewise.
9391
9392 2000-08-23  Nick Clifton  <nickc@redhat.com>
9393
9394         * config/arm/lib1funcs.asm: Replace upper case condition codes
9395         with lower case versions.
9396
9397         * config/arm/arm.h (STRUCT_VALUE): Define.
9398         (STRUCT_VALUE_REGNUM): Delete.
9399
9400 2000-08-23  Zack Weinberg  <zack@wolery.cumb.org>
9401
9402         * cpphash.h (IN_I): New flag for directive table.
9403         * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
9404         #pragma with IN_I.
9405         (_cpp_check_directive): If -fpreprocessed, execute directives
9406         marked with IN_I.  Issue no warnings in this case.
9407         * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
9408
9409 2000-08-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9410
9411         * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
9412         %u.
9413         (check_format_info): Support printf 'I' flag; warn about it with
9414         -pedantic.
9415
9416 2000-08-23  Richard Earnshaw  (rearnsha@arm.com)
9417
9418         * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
9419         barrier can't be ignored by the alias analysis code.
9420
9421 2000-08-12  Eli Zaretskii  <eliz@is.elta.co.il>
9422
9423         * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
9424         works inside fixincl.
9425
9426 Wed Aug 23 04:55:48 2000  Alexandre Oliva  <aoliva@redhat.com>
9427
9428         * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
9429         simplify_relational_operation() unless both operands are of
9430         VOIDmode.
9431         * cse.c (fold_rtx): Likewise.
9432
9433 Tue Aug 22 23:53:27 EDT 2000  John Wehle  (john@feith.com)
9434
9435         * rtlanal.c (rtx_unstable_p): The pic register is stable
9436         (within one function) and the actual rtx should be used
9437         when checking the registers.
9438         (rtx_addr_can_trap_p): Pic memory addresses can't trap.
9439
9440         * alias.c (true_dependence, write_dependence_p): Fix
9441         bug in previous patch.
9442
9443         * i386.c (ix86_GOT_alias_set): New.
9444         (legitimize_pic_address): Use it.
9445
9446         * rtlanal.c (rtx_unstable_p): An unchanging MEM is
9447         only stable if its address is stable.
9448         (rtx_varies_p): An unchanging MEM can't vary if
9449         its address doesn't vary.
9450
9451 2000-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9452
9453         * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
9454
9455 2000-08-22  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
9456
9457         * vax.h (ASM_SPEC): Pass `-J' to assembler.
9458         * x-vax-gcc: New file for bootstrapping with gcc.
9459         * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
9460         * configure.in: Use x-vax-gcc with gcc.
9461         * configure: Rebuilt.
9462
9463 Tue Aug 22 21:21:05 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
9464
9465         * toplev.c (rest_of_compilation): Rebuild label notes after
9466         post-reload splitting pass if new labels have been created.
9467
9468 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
9469
9470         * diagnostic.h (output_buffer_state): New macro.
9471         * diagnostic.c (diagnostic_for_decl, sorry,
9472         default_print_error_function, output_do_verbatim,
9473         report_diagnostic, report_problematic_module): Use it.
9474         (wrap_text): Tweak.
9475         (output_format): Use wrap_text instead of maybe_wrap_text.
9476
9477 2000-08-22  Nick Clifton  <nickc@redhat.com>
9478
9479         * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
9480         Common code for ARM divide and modulus functions.
9481         (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
9482         ARM_DIV_MOD_BODY.
9483         (FUNC_END): New macro: Common code at the end of the division and
9484         modulo functions.
9485         (THUMB_FUNCTION_START): New macro:  Common code at the start of
9486         Thumb functions.
9487         (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
9488
9489 Tue Aug 22 20:34:52 2000  Kaz Kojima <kkojima@rr.iij4u.or.jp>
9490
9491         * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
9492
9493         * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
9494         sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
9495         const0_rtx.
9496
9497 2000-08-22  Nick Clifton  <nickc@redhat.com>
9498
9499         * config/arm/lib1funcs.asm (__umodsi3): Before performing any
9500         restorative additions, test for bottom bits of IP being set,
9501         rather than relying upon the RORs not matching.
9502         (__modsi3): Ditto.
9503
9504 2000-08-22  David Edelsohn  <edelsohn@gnu.org>
9505
9506         * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
9507         text_section() as appropriate instead of emitting text csect
9508         pseudo-op directly.
9509         (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
9510         (UNIQUE_SECTION): Define macro.
9511         (ASM_OUTPUT_SECTION_NAME): Define macro.
9512         * rs6000.c (rs6000_override_options): Disable -ffunction-sections
9513         on AIX if debugging and -fdata-sections always.
9514
9515 2000-08-22  Steven King  <sxking@uswest.net>
9516
9517         * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
9518         machinery.
9519         (LDBL_MAX): Same here.
9520
9521 2000-08-22  Richard Henderson  <rth@cygnus.com>
9522
9523         * flow.c (tidy_fallthru_edge): Update b->end properly.
9524
9525 2000-08-22  Stan Cox  <scox@redhat.com>
9526
9527         * Makefile.in (OBJS): Add dependence.o.
9528         * dependence.c: New file.
9529
9530 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>, John David Anglin  <dave.anglin@nrc.ca>
9531
9532         * calls.c (check_sibcall_argument_overlap_1): Adjust for
9533         ARGS_GROW_DOWNWARD.
9534         (check_sibcall_argument_overlap): Likewise.
9535
9536 2000-08-22  Alexandre Oliva  <aoliva@redhat.com>
9537
9538         * invoke.texi (SH Options): Document -m4-nofpu,
9539         -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
9540         -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
9541
9542 2000-08-22  Joseph S. Myers  <jsm28@cam.ac.uk>
9543
9544         * c-common.c (check_format_info): Give the 'some locales' warning
9545         for strftime %Ey rather than the unconditional 'only last 2 digits
9546         of year' one.
9547
9548 2000-08-22  Richard Henderson  <rth@cygnus.com>
9549
9550         * alias.c (init_alias_analysis): Do not register
9551         struct_value_incoming_rtx or static_chain_rtx as pointing
9552         to stack memory.
9553
9554 Tue Aug 22 01:44:43 2000  Jeffrey A Law  (law@cygnus.com)
9555
9556         * protoize.c (munge_compile_params): Fix typo and formatting buglets.
9557
9558 2000-08-22  Gabriel Dos Reis  <gdr@codesourcery.com>
9559
9560         * diagnostic.h (report_problematic_module): Declare.
9561         * diagnostic.c (report_problematic_module): New function.
9562         (report_error_function): Tweak.
9563
9564 Tue Aug 22 02:31:26 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9565
9566         * stmt.c (expand_goto_internal, fixup_gotos): Only check
9567         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
9568
9569 2000-08-21  Richard Henderson  <rth@cygnus.com>
9570
9571         * flow.c (calculate_global_regs_live): Mark frame pointer live
9572         everywhere before reload.
9573
9574 2000-08-21  Jim Wilson  <wilson@cygnus.com>
9575
9576         * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
9577         INTEL_EXTENDED_IEEE_FORMAT.
9578         (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support.  Unconditionally
9579         clear last two bytes of output FP value.
9580
9581 2000-08-21  Graham Stott  <grahams@cygnus.co.uk>
9582
9583         * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
9584
9585 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
9586
9587         * unroll.c (loop_find_equiv_value): If ret is modified between
9588         insn and loop_start, ret might not be equivalent to reg.
9589
9590 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9591
9592         * c-common.c (init_dollar_format_checking,
9593         maybe_read_dollar_number, finish_dollar_format_checking): New
9594         functions.
9595         (dollar_arguments_used, dollar_arguments_count,
9596         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
9597         New variables.
9598         (check_format_info): Support $ formats for scanf and printf width
9599         and precision.  Always increment format_chars to advance past the
9600         '*' of precision, not just when the format parameters are
9601         available to check.
9602
9603 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9604
9605         * mips.c (block_move_loop, expand_block_move,
9606         function_arg_partial_nregs, save_restore_insns, function_prologue,
9607         mips_expand_prologue, RA_MASK): Avoid using the `U' integer
9608         constant suffix.
9609         (function_arg_advance, function_arg): Match argument to format
9610         specifier `%p'.
9611
9612 2000-08-21  Nix  <nix@esperi.demon.co.uk>
9613
9614         * gcc.c (do_spec_1): Implement %j spec flag.
9615         Remove dead comment.
9616
9617         * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
9618         * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
9619         * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
9620         * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
9621
9622         * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
9623         writable) instead of hardcoded value.
9624
9625         * toplev.c (compile_file): Output to a file even if -fsyntax-only.
9626
9627         * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
9628         MKTEMP_EACH_FILE.
9629
9630         * gcc.c (cc1_options): Do not process -o or run the assembler if
9631         -fsyntax-only.
9632         * objc/lang-spec.h: Likewise.
9633
9634 2000-08-21  Eli Zaretskii  <eliz@is.elta.co.il>
9635
9636         * fixinc/fixincl.c (fix_with_system): Pipe the output of
9637         "external" fixes through `cat', to avoid truncating the input
9638         file by redirection.
9639
9640 2000-08-21  Jakub Jelinek  <jakub@redhat.com>
9641
9642         * config/i386/i386.md (lea_general_1): Copy insn condition to split
9643         condition.
9644         (lea_general_2, lea_general_3): Likewise.
9645
9646 2000-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9647
9648         * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
9649         warnings to user code.
9650
9651         * c-lex.c (readescape, yylex): Likewise.
9652
9653         * c-typeck.c (store_init_value, process_init_element): Likewise
9654         (c_expand_start_case): Format.
9655
9656 2000-08-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9657
9658         * mips/linux.h (LINK_SPEC): Use %(endian_spec).
9659
9660         * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
9661         and linker_endian_spec to endian_spec.
9662         (ENDIAN_SPEC): Add %{EB} and %{EL}.
9663         (LINK_SPEC): Remove %{EB} and %{EL}.
9664         (ASM_SPEC): Likewise.  Use %(endian_spec).
9665
9666 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9667
9668         * c-tree.h (flag_hosted): Move declaration from here...
9669         * c-common.h (flag_hosted): ... to here.
9670         (flag_noniso_default_format_attributes): New declaration.
9671         * c-decl.c (flag_noniso_default_format_attributes): New variable.
9672         (c_decode_option): Set it appropriately for options choosing
9673         language standard variant.
9674         * c-common.c (init_function_format_info): Only provide default
9675         format attributes if flag_hosted.  Only provide the gettext
9676         formats if flag_noniso_default_format_attributes.  Update
9677         comments.
9678         (check_format_info): Disable treatment of %a as a scanf flag in
9679         C99 mode.
9680
9681 2000-08-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9682
9683         * c-common.c (scan_char_table): Add 'w' to flags for all formats
9684         except 'n'.
9685         (check_format_info): Set 'wide' for scanf format widths.  Warn for
9686         a zero scanf width.  Make the check for writing into a constant
9687         object at the first level of indirection; at later levels, warn if
9688         any type qualifiers are encountered.
9689
9690 Mon Aug 21 07:41:12 2000  Jeffrey A Law  (law@cygnus.com)
9691
9692         * reload.c (reload_inner_reg_of_subreg): New function broken out of
9693         push_reload.
9694         (push_reload): Use reload_inner_reg_of_subreg.
9695         (combine_reloads): Do not combine reloads if the input reload
9696         is a SUBREG in which the inner part will need reloading.
9697
9698         * global.c (global_alloc): Avoid passing dumpfile argument to
9699         reload routines.
9700         * toplev.c (rest_of_compilation): Likewise.
9701         * reload.h (reload): Remove dumpfile argument.  Callers changed.
9702         (debug_reload, debug_reload_to_stream): Move prototypes here.
9703         * rtl.h  (reload): Remove dumpfile argument.
9704         * reload.c (debug_reload): Remove prototype.
9705         (debug_reload_to_stream): Likewise.
9706         * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
9707         instead.
9708
9709 2000-08-21  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
9710
9711         * diagnostic.c (context_as_prefix): Export.
9712         (need_error_newline): Remove.
9713         (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
9714         (error_module_changed, record_last_error_module,
9715         error_function_changed, record_last_error_function): New functions.
9716         (initialize_diagnostics): Default intialize
9717         lang_diagnostic_starter, lang_diagnostic_finalizer.
9718         (init_output_buffer): Tweak.
9719         (file_name_as_prefix): New function.
9720         (announce_function, default_print_error_function,
9721         report_error_function, set_diagnostic_context): Tweak.
9722
9723 2000-08-21  Richard Earnshaw  <rearnsha@arm.com>
9724
9725         * flow.c (init_propagate_block_info): Handle SUBREG in a jump
9726         condition expression.
9727
9728 2000-08-20  Richard Henderson  <rth@cygnus.com>
9729
9730         * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
9731
9732 2000-08-20  Zack Weinberg  <zack@wolery.cumb.org>
9733
9734         * cppinit.c (cpp_init): Set global flag when called.
9735         (cpp_reader_init): Bomb out if cpp_init hasn't been called.
9736
9737 Sun Aug 20 01:41:35 2000  Dennis Chernoivanov  <cdi@sparc.spb.su>
9738
9739         * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
9740         before `process_directive' so that newlines won't be missed
9741         for directives.
9742         (cpp_printf): Increment `print->lineno' when newline is emitted.
9743
9744         * cppmain.c (cb_ident): Likewise.
9745         (cb_define): Likewise.
9746         (cb_undef): Likewise.
9747         (cb_include): Likewise.
9748         (cb_def_pragma): Likewise.
9749         (dump_macros_helper): Likewise.
9750
9751 2000-08-20  Richard Henderson  <rth@cygnus.com>
9752
9753         * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
9754         assigned before a loop.
9755
9756         * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
9757         (ashrsi3, lshrsi3): Likewise.
9758
9759 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
9760
9761         * c-lang.c: #include diagnostic.h
9762         (c_tree_printer): New function.
9763         (lang_init): Initialize lang_printer.
9764
9765         * Makefile.in (c-lang.o): Depends on diagnostic.h
9766
9767 2000-08-20  Gabriel Dos Reis  <gdr@codesourcery.com>
9768
9769         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
9770
9771         * diagnostic.c (default_diagnostic_starter,
9772         default_diagnostic_finalizer): New functions.
9773         (diagnostic_for_asm, diagnostic_for_decl): Tweak.
9774         (pedwarn, pedwarn_with_file_and_line, error,
9775         error_with_file_and_line, fatal, warning,
9776         warning_with_file_and_line): Adjust call to report_diagnostic.
9777         (report_diagnostic): Rework.
9778         (set_diagnostic_context): New function.
9779
9780         * diagnostic.h (struct diagnostic_context): New data structure.
9781         (diagnostic_message, diagnostic_argument_list,
9782         diagnostic_file_location, diagnostic_line_location,
9783         diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
9784         diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
9785         (set_diagnostic_context): Declare.
9786         (report_diagnostic): Change prototype.
9787
9788 Sun 20-Aug-2000 09:25:45 BST  Neil Booth  <NeilB@earthling.net>
9789
9790         * fix-header.c (main): Initialize cpplib.
9791
9792 2000-08-19  Michael Meissner  <meissner@redhat.com>
9793
9794         * ifcvt.c (find_if_block): Do not assume that a THEN block has any
9795         instructions in it before checking for indirect jumps.
9796
9797         * ifcvt.c (find_if_block): Do not consider a THEN block that ends
9798         in a indirect jump as a potential for conditional execution.
9799
9800         * d30v.h (d30v_init_expanders): Don't declare here.
9801         * d30v-protos.h (d30v_init_expanders): Declare here with a valid
9802         prototype.
9803
9804 Sat 19-Aug-2000 21:11:45 BST  Neil Booth  <NeilB@earthling.net>
9805
9806         * cpp.texi: Add @section for assertions.
9807
9808 Sat Aug 19 12:37:08 EDT 2000  John Wehle  (john@feith.com)
9809
9810         * loop.c (scan_loop): Use CONST_CALL_P instead of
9811         checking for REG_LIBCALL / REG_RETVAL.
9812
9813 Sat Aug 19 09:18:47 2000  Jeffrey A Law  (law@cygnus.com)
9814
9815         * reload1.c (reload_as_needed): Accept dumpfile argument,
9816         pass it to emit_reload_insns.
9817         (emit_reload_insns): Add new dumpfile argument.  If non-null
9818         then dump the reloads for each insn into the dumpfile.
9819         (reload): Pass dumpfile to reload_as_needed.
9820
9821         * invoke.texi: Clean up linux-gnu vs linux comments.
9822
9823 2000-08-19  Richard Henderson  <rth@cygnus.com>
9824
9825         * config/ia64/ia64.c (reg_or_5bit_operand): New.
9826         (ia64_depz_field_mask): New.
9827         * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
9828         (PREDICATE_CODES): Update.
9829         * config/ia64/ia64.md: Update commentary.
9830         (depz_internal): New.
9831         (ashlsi3): Implement directly.
9832         (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
9833         (ashldi3): Use shladd.
9834         * config/ia64/ia64-protos.h: Update.
9835
9836 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
9837
9838         * toplev.c (independent_decode_option): Always process -g.
9839         Remove third argument, now unused.  Adjust caller to match.
9840
9841 2000-08-18  Richard Henderson  <rth@cygnus.com>
9842
9843         * combine.c (make_compound_operation): Break after creating
9844         the extraction.
9845
9846 2000-08-18  Zack Weinberg  <zack@wolery.cumb.org>
9847
9848         * cpplib.c (cpp_register_pragma_space): Just return if the
9849         namespace is already registered.
9850
9851 2000-08-18  Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton  <nickc@redhat.com>
9852
9853         * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
9854         constant amount.  Do not generate ROTL instruction.
9855
9856 Fri Aug 18 16:22:20 2000  Alexandre Oliva  <aoliva@redhat.com>
9857
9858         * config/sh/elf.h: Do not include sh/sh.h.
9859         * config/sh/rtems.h: Likewise.
9860         * config/sh/rtemself.h: Do not include sh/elf.h.
9861         * configure.in: Get them included with `tm_file's.
9862         * configure: Rebuilt.
9863
9864         * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
9865         * config/sh/sh.c (fpscr_set_from_mem): Use them.
9866
9867 Fri Aug 18 14:23:18 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9868
9869         * stor-layout.c (compute_record_type): Don't use mode of single
9870         field as mode of record if not integer mode of same type.
9871
9872         * regmove.c (perhaps_ends_bb_p): New function.
9873         (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
9874         (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
9875         (fixup_match_1): Likewise.
9876         (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
9877         avoid signed/unsigned warnings.
9878
9879         * function.c (fixup_var_refs_1, case MEM): Update CODE after
9880         updating X.
9881
9882 Fri 18-Aug-2000 18:33:45 BST  Neil Booth  <NeilB@earthling.net>
9883
9884         * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
9885         (_cpp_trigraph_map): Declaration moved from cpplex.c
9886
9887         * cppinit.c: Define _cpp_trigraph_map.  Use UCHAR_MAX + 1
9888         instead of 256.  Use consistent test for designated initializers.
9889         (cpp_init): Initialize trigraph_map.
9890         (initialize_standard_includes, parse_option):  Use memcmp
9891         instead of strncmp.
9892
9893         * cpplex.c (init_trigraph_map): Remove.
9894         (trigraph_ok, trigraph_replace, lex_line): Refer to
9895         _cpp_trigraph_map.
9896
9897         * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
9898         (do_unassert): Remove unused "next" local.
9899
9900         * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
9901
9902 2000-08-18  Emmanuel Marty  <emarty@suntech.fr>
9903
9904         * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
9905         insn.
9906
9907 2000-08-17  Richard Henderson  <rth@cygnus.com>
9908
9909         * config/ia64/ia64.c (spill_restore_mem): Handle emitting
9910         the first insn in a sequence.
9911
9912 Thu Aug 17 22:40:05 EDT 2000  John Wehle  (john@feith.com)
9913
9914         * alias.c (true_dependence, write_dependence_p): A read
9915         involving a label_ref or the constant pool doesn't create
9916         a dependency.
9917
9918         * rtl.h (unchanging): Improve documentation.
9919
9920 2000-08-17  Rodney Brown  <RodneyBrown@mynd.com>
9921
9922         * cse.c (insert_regs): Remove unused `regno'.
9923
9924 2000-08-17  Neil Booth  <NeilB@earthling.net>
9925
9926         * (cppinit.c) merge_include_chains: Use remove_dup_dir,
9927         remove_dup_dirs.  If qtail == brack, remove brack not
9928         qtail.
9929         (remove_dup_dir, remove_dup_dirs): New functions.
9930
9931 2000-08-17  Neil Booth  <NeilB@earthling.net>
9932
9933         * cppinit.c (cpp_cleanup): Free include dir chains.
9934         * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
9935         (do_unassert): Free the assert with _cpp_free_definition.
9936         * cppmacro.c (_cpp_free_definition): Free memory allocated for
9937         assertions.  Make the node a T_VOID node.
9938
9939 2000-08-17  Neil Booth  <NeilB@earthling.net>
9940
9941         * cppinit.c (path_include, append_include_chain):
9942         Remove 2nd parameter (struct cpp_pending *).
9943         (path_include, initialize_standard_includes, cpp_handle_option):
9944         Update callers appropriately.
9945         (cpp_handle_option): Use pend.
9946
9947 2000-08-17  Neil Booth  <NeilB@earthling.net>
9948
9949         * cppinit.c (sort_options): Remove, put functionality in
9950         cpp_init.
9951         (cpp_init): New.
9952         (initialize_builtins): Free memory.
9953         (cpp_start_read): Move init_IStable to cpp_init.
9954
9955         * cpplib.h (cpp_init): New prototype.
9956         * cppmain.c (main): Call cpp_init.
9957
9958 Thu Aug 17 13:20:32 EDT 2000  John Wehle  (john@feith.com)
9959
9960         * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
9961         (rtx_unstable_p, rtx_varies_p): Process vectors.
9962
9963 2000-08-16  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9964
9965         * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
9966         references to GLOBAL symbols.  Use LOCAL where appropriate.
9967
9968 2000-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9969
9970         * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
9971         use t-aix41 when host == target.
9972
9973 2000-08-16  Richard Henderson  <rth@cygnus.com>
9974
9975         * reload.c (push_secondary_reload): Revert last change.
9976         If we use a reload_in/out pattern, make the when the same
9977         as the primary reload.
9978         (find_reloads): Likewise.
9979
9980 2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
9981
9982         * configure.in (libstdcxx-v3): Fix test.
9983         * configure: Regenerate.
9984
9985 Wed Aug 16 08:10:32 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9986
9987         * calls.c (calls_function_1, expand_call): Only test
9988         TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
9989         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9990
9991 2000-08-16  Richard Henderson  <rth@cygnus.com>
9992
9993         * combine.c (simplify_shift_const): Revert previous two
9994         changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
9995         before the main loop.
9996
9997 2000-08-15  Richard Henderson  <rth@cygnus.com>
9998
9999         * combine.c (simplify_shift_const): Bound shift count when
10000         combining shifts.
10001
10002 Tue Aug 15 17:33:05 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10003
10004         * calls.c (ECF_SP_DEPRESSED): New macro.
10005         (calls_function_1): Treat calling sp-depressed function as alloca.
10006         (emit_call_1): Don't adjust SP if calling sp-depressed function.
10007         (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
10008         If sp-depressed, ensure block saves and restores SP.
10009         * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
10010         for INTEGER_TYPE.
10011         * function.c (keep_stack_depressed): New function.
10012         (thread_prologue_and_epilogue_insns): Call it.
10013         * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
10014         to print DECL_OFFSET_ALIGN.
10015         Print no-force-blk and transparent-union flags properly.
10016         * stmt.c (expand_goto_internal): Don't restore stack if last block
10017         and function returns with sp depressed.
10018         (fixup_gotos): Likewise.
10019         (save_stack_pointer): New function, from code in expand_decl.
10020         (expand_decl): Call new function.
10021         * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
10022         (TYPE_RETURNS_STACK_DEPRESSED): New macro.
10023         (save_stack_pointer): New declaration.
10024
10025         * diagnostic.c (fatal_function): New variable.
10026         (set_fatal_function): New function.
10027         (fatal): Call it.
10028         * diagnostic.h (set_fatal_function): New declaration.
10029
10030 2000-08-15  William Cohen  <wcohen@redhat.com>
10031
10032         * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
10033         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
10034         (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
10035
10036 2000-08-15  Richard Henderson  <rth@cygnus.com>
10037
10038         * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
10039
10040 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
10041
10042         * arm.c (arm_function_ok_for_sibcall): New function.
10043         * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
10044         * arm.md (call expanders): Don't check here for calls that can't
10045         be sibling calls.
10046
10047 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
10048
10049         * arm.md (splits generating cond_exec): Disable.
10050
10051 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
10052
10053         * arm/linux-elf.h (text_section): Delete declaration.
10054
10055 2000-08-15  Richard Earnshaw <rearnsha@arm.com>
10056
10057         ARM support for unordered FP operations.
10058         * arm-protos.h (arm_comparison_operator): Declare.
10059         * arm.c (arm_comparison_operator): New function.
10060         (arm_select_cc_mode): Add unordered comparison codes.
10061         (get_arm_condition_code): Likewise.
10062         (arm_final_prescan_insn): Can't handle unordered jumps that can't
10063         be done in one insn.
10064         * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
10065         * arm.md (all uses of comparison_operator): Replace with
10066         arm_comparison_operator.
10067         (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
10068         expands.
10069         (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
10070         patterns.
10071
10072 Tue Aug 15 00:36:36 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10073
10074         * gthr-posix.h: Conditionally include <sched.h>; include
10075         <config.h> from libobjc/.
10076
10077 2000-08-14  Richard Henderson  <rth@cygnus.com>
10078
10079         * config/i386/i386.c (legitimize_pic_address): Use Pmode
10080         for all CONSTs.
10081
10082 2000-08-14  Richard Henderson  <rth@cygnus.com>
10083
10084         * configure.in (ia64-*): Set float_format for i386 long double.
10085
10086         * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
10087         as we would for i386 XFmode.
10088         (PUT_REAL): Likewise.
10089         (endian, ereal_atof, real_value_truncate): Likewise.
10090         (ereal_isneg, toe64, etens, make_nan): Likewise.
10091         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
10092
10093         * config/ia64/ia64-protos.h: Update.
10094         * config/ia64/ia64.c (general_tfmode_operand): New.
10095         (destination_tfmode_operand): New.
10096         (tfreg_or_fp01_operand): New.
10097         (ia64_split_timode): New.
10098         (spill_tfmode_operand): New.
10099         (ia64_expand_prologue): Use TFmode not XFmode.
10100         (ia64_expand_epilogue): Likewise.
10101         (ia64_function_arg): Likewise.
10102         (ia64_function_arg_advance): Likewise.
10103         (ia64_return_in_memory): Likewise.
10104         (ia64_function_value): Likewise.
10105         (ia64_print_operand): Likewise.
10106         (ia64_register_move_cost): Set GR<->FR to 5.
10107         (ia64_secondary_reload_class): Get GR for TImode memory op.
10108         * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
10109         (ROUND_TYPE_ALIGN): Remove.
10110         (LONG_DOUBLE_TYPE_SIZE): Set to 128.
10111         (INTEL_EXTENDED_IEEE_FORMAT): Define.
10112         (HARD_REGNO_NREGS): Use TFmode, not XFmode.
10113         (HARD_REGNO_MODE_OK): Likewise.  Disallow TImode in FRs.
10114         (MODES_TIEABLE_P): Use TFmode, not XFmode.
10115         (CLASS_MAX_NREGS): Likewise.
10116         (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
10117         (PREDICATE_CODES): Update.
10118         * config/ia64/ia64.md (movti): New.
10119         (movti_internal): Use a clobber for memory alternatives.
10120         (reload_inti, reload_outti): New.
10121         (movsfcc_astep): Predicate properly.
10122         (movdfcc_astep): Likewise.
10123         (movxf): Remove.
10124         (movtf): New.
10125         (extendsftf2, extenddftf2): New.
10126         (trunctfsf2, trunctfdf2): New.
10127         (floatditf2, fix_trunctfdi2): New.
10128         (floatunsditf2, fixuns_trunctfdi2): New.
10129         (addtf3, subtf3, multf3, abstf2): New.
10130         (negtf2, nabstf2, mintf3, maxtf3): New.
10131         (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
10132         (cmptf): New.
10133         (fr_spill): Use TFmode, not XFmode.
10134         (fr_restore): Likewise.
10135         * config/ia64/lib1funcs.asm (__divtf3): New.
10136         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
10137
10138 2000-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10139
10140         * cse.c (fold_rtx): Avoid empty body in an if-statement.
10141
10142         * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
10143         `U' integer constant suffix.
10144
10145         * dwarf2out.c (add_subscript_info): Avoid empty body in an
10146         else-statement.
10147
10148         * sparc/sol2.h (__enable_execute_stack): Prototype.
10149
10150 2000-08-14  David Edelsohn  <edelsohn@gnu.org>
10151
10152         * collect2.c: Remove use of AIX import file.
10153
10154         * longlong.h: Test ARCH_PWR not ARCH_POWER.
10155
10156         * rs6000.c (print_operand, case 'E'): Add else.
10157
10158 2000-08-14  Richard Henderson  <rth@cygnus.com>
10159
10160         * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
10161         (movdi_symbolic): New.
10162
10163 2000-08-14  Jim Wilson  <wilson@cygnus.com>
10164
10165         * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
10166         to GNU as.  For Intel as, pass -M const_gp and -M no_plabel.
10167         * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
10168         to GNU as.
10169
10170 2000-08-14  Richard Henderson  <rth@cygnus.com>
10171
10172         * expr.c (emit_group_load): Don't force constants into registers.
10173         Special case source already in the correct mode.
10174
10175 2000-08-14  Zack Weinberg  <zack@wolery.cumb.org>
10176
10177         * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
10178         * fixinc/inclhack.def: Likewise.
10179         * fixinc/mkfixinc.sh: Likewise.
10180         * configure: Regenerate.
10181         * fixinc/fixincl.x: Regenerate.
10182         * install.texi: Document equivalence of linux and linux-gnu.
10183
10184 Mon Aug 14 18:51:44 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10185
10186         * cse.c (insert_regs): Also in REG case: When finding an invalid
10187         value, and we make a new quantity, make sure that it won't be
10188         mistaken by for a valid one by mention_regs.
10189
10190 2000-08-13  Ralf Gütlein <ralf.guetlein@aranea.de>
10191
10192         * h8300.md: Remove obsolete peepholes.
10193
10194 2000-08-13  Kazu Hirata  <kazu@hxi.com>
10195
10196         * invoke.texi (H8/300 Options): Fix typos.
10197         * config/h8300.c: Fix formatting.
10198         * config/h8300.h: Fix comment typos.
10199         (OVERRIDE_OPTIONS): Fix formatting.
10200
10201         * function.c: Fix formatting.
10202
10203         * cse.c: Fix formatting.
10204
10205 2000-08-13  Geoff Keating  <geoffk@cygnus.com>
10206
10207         * flow.c (attempt_auto_inc): Remove unused variable `bb'.
10208         (attempt_auto_inc): Suppress parentheses warning.
10209         * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
10210         * loop.c (load_mems): Remove `u' suffix in two places.
10211         * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
10212         hex constants.
10213         * config/rs6000/rs6000.h: Likewise.
10214         * config/rs6000/sol-c0.c: Prototype some functions.  Remove the
10215         __eabi dummy routine.
10216         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
10217         variable `buf_ptr'.
10218
10219         * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
10220         not put stuff in .sdata unnecessarily.
10221         (rs6000_unique_section): New function.
10222         * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
10223         * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
10224
10225         * c-typeck.c (build_array_ref): Don't complain about non-lvalue
10226         arrays in C99.  Don't try to look at DECL_REGISTER of a
10227         COMPONENT_REF.  Don't complain twice about the same error.
10228
10229         * fixinc/inclhack.def (aix_pthread): New fix.
10230         (aix_sysmachine): New fix.
10231         * fixinc/fixincl.x: Regenerate.
10232
10233         * expr.c (expand_expr): Call convert_modes when turning a large
10234         multiply into a small one.
10235
10236 2000-08-12  Geoff Keating  <geoffk@cygnus.com>
10237
10238         * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
10239         the tree structure an exponent rather than an explicit alignment
10240         so it doesn't overflow.
10241         (SET_DECL_OFFSET_ALIGN): New macro.
10242         * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
10243         rather than DECL_OFFSET_ALIGN.
10244         (place_field): Likewise.
10245         * expmed.c (store_bit_field): Abort on align==0 to avoid
10246         antisocial machine behaviour.
10247
10248 2000-08-12  Richard Henderson  <rth@cygnus.com>
10249
10250         * sibcall.c (uses_addressof): Accept both addressof and
10251         current_function_internal_arg_pointer inside a mem.
10252         (optimize_sibling_and_tail_recursive_call): Fail tail recursion
10253         if current_function_uses_addressof.
10254         * stmt.c (expand_return): Kill tail recursion and HAVE_return
10255         optimizations.
10256
10257 2000-08-11  Richard Henderson  <rth@cygnus.com>
10258
10259         * config/ia64/ia64.md (addsi3): Remove expander.
10260         (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
10261         (*addsi3_shladd): New.
10262
10263 2000-08-11  Richard Henderson  <rth@cygnus.com>
10264
10265         * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
10266         (do_restore): Likewise.
10267         (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
10268         (ia64_expand_prologue, ia64_expand_epilogue): Use them.
10269         (rtx_needs_barrier): Track actual bit manipulation for
10270         ar.unat moves, gr_spill, and gr_restore.
10271         (emit_insn_group_barriers): Special case gr_spill/gr_restore.
10272         (process_set): Don't handle varargs spills.
10273         * config/ia64/ia64.md (gr_spill): Accept cfa offset.  Emit
10274         .mem.offset here instead of in process_set.
10275         (gr_restore): Likewise.
10276
10277 2000-08-11  Richard Henderson  <rth@cygnus.com>
10278
10279         * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
10280
10281 2000-08-11  Mark Elbrecht  <snowball3@bigfoot.com>
10282
10283         * gcc.texi (The Configuration File): Document
10284         COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
10285         UPDATE_PATH_HOST_CANONICALIZATION.
10286
10287 2000-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10288
10289         * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
10290         unprototyped function pointer casts on integer constants.
10291
10292 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
10293
10294         * fixproto: Recognize DOS paths with drive letters as absolute paths.
10295
10296 2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
10297
10298         * extend.texi (Volatiles): Fix typos.
10299
10300 2000-08-11  Kazu Hirata  <kazu@hxi.com>
10301
10302         * flow.c: Fix formatting.
10303
10304 2000-08-11  Richard Henderson  <rth@cygnus.com>
10305
10306         * reload.c (push_secondary_reload): When invoking a reload_{in,out}
10307         pattern, always allocate a tertiary scratch register.
10308
10309         * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
10310         (reload_inhi): Likewise.
10311
10312 2000-08-11  Richard Henderson  <rth@cygnus.com>
10313
10314         * function.c (put_reg_into_stack): Allow type to be NULL.
10315         (schedule_fixup_var_refs): Likewise.
10316         (gen_mem_addressof): Allow decl to be NULL.
10317         (put_addressof_into_stack): Likewise.
10318
10319         * flow.c (merge_blocks_nomove): Be more careful about
10320         locating the beginning of block A.
10321
10322         * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
10323
10324 Thu Aug 10 22:47:09 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10325
10326         * configure.in:
10327         * configure:
10328         * gthr-posix.h:
10329         * config.in: Reverted the check for <sched.h>.
10330
10331 2000-08-10  Chris Demetriou  <cgd@sibyte.com>
10332
10333         * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
10334         macros define the name of CTOR and DTOR sections.
10335         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
10336         DTOR_LIST_END): Change to use attributes to specify
10337         sections.
10338         * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
10339         (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
10340         DTOR_LIST_END): Same as in mips/elf.h.
10341
10342 2000-08-10  Drew Moseley  <dmoseley@redhat.com>
10343
10344         * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
10345         disabling just crt0.o.
10346
10347 2000-08-10  Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton  <nickc@cygnus.com>
10348
10349         * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
10350         (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
10351         (EXTRA_SPECS): Add them.
10352         * arm/lib1funcs.asm: Support builds for interworking.
10353         Use macros to eliminate duplicated pieces of code.
10354
10355 2000-08-10  Kazu Hirata  <kazu@hxi.com>
10356
10357         * h8300.c (expand_a_rotate): New.
10358         (emit_a_rotate): Likewise.
10359         (h8300_adjust_insn_length): Add support for the rotate insns.
10360         * h8300.md (rotlqi3): New.
10361         (*rotlqi3_1): Likewise.
10362         (rotlhi3): Likewise.
10363         (*rotlhi3_1): Likewise.
10364         (rotlhi3): Likewise.
10365         (*rotlhi3_1): Likewise.
10366         * h8300-proto.h: Add prototypes for expand_a_rotate and
10367         emit_a_rotate.
10368
10369         * h8300.c: Fix comment typos.
10370         (dosize): Declare the variable amount as unsigned.
10371         (get_shift_alg): Fix a comparison between signed and unsigned.
10372         (emit_a_shift): Likewise.
10373         (h8300_adjust_insn_length): Simplify the code.
10374
10375         * c-decl.c: Fix formatting.
10376
10377 2000-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10378
10379         * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
10380         warning about non-traditional numeric constant suffixes.
10381
10382         * cppexp.c (parse_number): Likewise.
10383
10384         * invoke.texi: (-Wtraditional): Document new behavior.
10385
10386 Thu Aug 10 00:11:04 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10387
10388         * gthr-posix.h: Include auto-host.h. Conditionally include
10389         <sched.h>.
10390         * configure.in: Check for the <sched.h> header file.
10391         * config.in: Added define for HAVE_SCHED_H.
10392
10393 2000-08-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10394
10395         * c-typeck.c (process_init_element): For -Wtraditional, warn about
10396         initialization of unions.
10397
10398         * invoke.texi (-Wtraditional): Document new behavior.
10399
10400 2000-08-09  Zack Weinberg  <zack@wolery.cumb.org>
10401
10402         * configure.in (--enable-c-cpplib): Uncomment.  Use AC_DEFINE
10403         instead of extra_c_flags.
10404         (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
10405         * configure: Regenerate.
10406         * config.in: Regenerate.
10407
10408         * cpperror.c (cpp_type2name): New function.
10409         * cpplex.c (lex_line): If we issued an error for an invalid
10410         preprocessing directive, discard that logical line.
10411         * cpplib.c (do_line): Call a hook function if the current file
10412         is renamed by #line.
10413         (do_ident): Pass the contents of the string, not the entire
10414         token, to the callback function.
10415         * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
10416         (cb.rename_file): New hook function.
10417         (cb.ident): Adjust prototype.
10418         (cpp_type2name): Prototype.
10419         * cppmacro.c (dump_macro_args): Correct precedence lossage.
10420
10421         * cppmain.c (cb_ident): Update for changed interface.
10422         (cb_rename_file): New function.
10423         (main): Set rename callback.
10424
10425 2000-08-09  Alexandre Oliva  <aoliva@redhat.com>
10426
10427         * caller-save.c (mark_referenced_regs): Mark partially-overwritten
10428         multi-word registers.
10429
10430 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10431
10432         * c-common.c (combine_strings, check_format_info): Refer to ISO C
10433         or ISO C89 instead of ANSI C.
10434         * c-decl.c (grokdeclarator, xref_tag, finish_struct,
10435         build_enumerator, do_case): Likewise.
10436         * c-lex.c (parse_float, yylex): Likewise.
10437         * c-parse.in: Likewise.
10438         * c-typeck.c (common_type, build_array_ref, build_binary_op,
10439         build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
10440         build_c_cast, convert_for_assignment, set_init_index,
10441         set_init_label, c_expand_start_case): Likewise.
10442         * toplev.c (documented_lang_options, display_help): Likewise.
10443
10444 2000-08-08  Kazu Hirata  <kazu@hxi.com>
10445
10446         * h8300.c: Fix formatting.
10447         * h8300.h: Likewise.
10448         * h8300.md: Likewise.
10449         (movsi_h8300hs): Fix formatting of the resulting assembly code.
10450
10451         * reload1.c: Fix formatting.
10452
10453 2000-08-08  Rodney Brown  <RodneyBrown@mynd.com>
10454
10455         * alpha/alpha.c (alpha_emit_xfloating_libcall):
10456         Use GEN_CALL_VALUE define.
10457         * alpha/alpha.md (untyped_call): Use GEN_CALL define.
10458         * clipper/clipper.md (untyped_call): Likewise.
10459         * dsp16xx/dsp16xx.md (untyped_call): Likewise.
10460         * fx80/fx80.md (untyped_call): Likewise.
10461         * mips/mips.md (untyped_call): Likewise.
10462         * ns32k/ns32k.md (untyped_call): Likewise.
10463         * pa/pa.md (untyped_call): Likewise.
10464         * romp/romp.md (untyped_call): Likewise.
10465         * sparc/sparc.md (untyped_call): Likewise.
10466
10467 2000-08-08  Jason Eckhardt  <jle@cygnus.com>
10468
10469         * config/i860/i860.c (singlemove_string): Do not generate assembler
10470         pseudo instructions that must be expanded (that is, with signed
10471         constants larger than 16 bits).
10472
10473 2000-08-08  Richard Henderson  <rth@cygnus.com>
10474
10475         * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
10476         PROP_AUTOINC at -O0.  Don't collect alias info at -O0.
10477         (init_propagate_block_info): Don't kill memory stores at -O0.
10478         (mark_set_1, mark_used_regs): Likewise.
10479
10480 2000-08-08  David Edelsohn  <edelsohn@gnu.org>
10481
10482         * rs6000.c (optimization_options): Decorate 'level' as
10483         ATTRIBUTE_UNUSED.
10484         (mask64_operand): Remove sign-extend thinko.
10485         (rldic_operand): New function.
10486         (load_multiple_operation): regno's are unsigned ints.
10487         (store_multiple_operation): Likewise.
10488         (lmw_operation): Likewise.
10489         (stmw_operation): Likewise.
10490         (includes_lshift_p): shift_mask is unsigned int.
10491         (includes_lshift64_p): New function.
10492         (addrs_ok_for_quad_peep): unsigned int reg1.
10493         (print_operand): Consistently add "else" after
10494         output_operand_lossage().
10495         (print_operand, case 'b'): Fold in case 'W'.
10496         (print_operand, case 'W'): Print rldic MB value.
10497         (output_epilogue): Update Objective-C language string.
10498         (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
10499         * rs6000.h (PREDICATE_CODES): Add rldic_operand.
10500         * rs6000.md (ashldi3): Add rldic instruction.
10501         (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
10502         (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
10503         modifier.
10504
10505 2000-08-08  Richard Henderson  <rth@cygnus.com>
10506
10507         * config/ia64/ia64-protos.h: Remove duplicates.  Update
10508         for massive code rearrangements.
10509         * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
10510         (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
10511         (ia64_local_regs, ia64_need_regstk): Remove.
10512         (ar_ccv_reg_operand): New.
10513         (ia64_gp_save_reg): New.
10514         (struct ia64_frame_info): Combine most of the size elements;
10515         add new gr save elements.
10516         (find_gr_spill): New.
10517         (next_scratch_gr_reg): New.
10518         (mark_reg_gr_used_mask): New.
10519         (ia64_compute_frame_size): Rewrite.  Allocate special AR regs
10520         to GR backing store regs when possible.
10521         (ia64_initial_elimination_offset): New.
10522         (ia64_rap_fp_offset): Remove.
10523         (save_restore_insns): Remove.
10524         (setup_spill_pointers): New.
10525         (finish_spill_pointers): New.
10526         (spill_restore_mem): New.
10527         (do_spill, do_restore): New.
10528         (ia64_expand_prologue): Rewrite to use them.
10529         (ia64_expand_epilogue): Likewise.
10530         (ia64_direct_return): Update for current_frame_info changes.
10531         (ia64_function_prologue): Simplify .prologue emission.  Emit
10532         .spill when needed.
10533         (ia64_setup_incoming_varargs): Don't ever emit rtl.
10534         (ia64_dbx_register_number): New.
10535         (ia64_initialize_trampoline): New.
10536         (ia64_secondary_reload_class): Request GR_REGS for integer
10537         arithmetic destined for FR_REGS.
10538         (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
10539         (ia64_mark_machine_status): Mark ia64_gp_save.
10540         (rws_access_regno): Rename from rws_access_reg; don't treat
10541         predicates specially.
10542         (rws_access_reg): New.  Update all callers.
10543         (rtx_needs_barrier): Remove dead unspecs.
10544         (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
10545         (ia64_encode_section_info): Silence signed/unsigned warnings.
10546         (spill_offset, sp_offset, spill_offset_emitted): Remove.
10547         (tmp_reg, tmp_saved): Remove.
10548         (process_set): Rewrite to expect complicated bits via
10549         REG_FRAME_RELATED_EXPR.
10550         (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
10551         in the use of ar.ccv; never set RTX_UNCHANGING_P.
10552         (ia64_expand_op_and_fetch): Likewise.
10553         (ia64_expand_compare_and_swap): Likewise.
10554         (ia64_expand_builtin): Likewise.
10555         * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
10556         (FIRST_PSEUDO_REGISTER): Update.
10557         (AR_M_REGNO_P): Update.
10558         (FIXED_REGS): Don't mark three local registers as used.
10559         (EXTRA_CC_MODES): New.
10560         (SELECT_CC_MODE): New.
10561         (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
10562         (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
10563         (FRAME_GROWS_DOWNWARD): Unset.
10564         (STARTING_FRAME_OFFSET): Zero.
10565         (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
10566         (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
10567         (HARD_FRAME_POINTER_REGNUM): New.
10568         (CAN_DEBUG_WITHOUT_FP): Define.
10569         (TRAMPOLINE_TEMPLATE): Remove.
10570         (TRAMPOLINE_SIZE): Lower to 32.
10571         (TRAMPOLINE_ALIGNMENT): Lower to 64.
10572         (INITIALIZE_TRAMPOLINE): Defer to out of line function.
10573         (PREDICATE_CODES): Update.
10574         (struct machine_function): Add ia64_gp_save.
10575         * config/ia64/ia64.md: Purge unused unspecs.
10576         (movsi patterns): Allow moves to/from AR_M_REGS.
10577         (movdi patterns): Allow moves to/from p0.
10578         (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
10579         (gr_spill, gr_restore): Indicate ar.unat read/written.
10580         (nonlocal_goto): Don't pass old frame_pointer.
10581         (nonlocal_goto_receiver): Remove.
10582         (exception_receiver): New.
10583         (builtin_setjmp_setup): New.
10584         (builtin_setjmp_receiver): New.
10585         * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
10586         (__ia64_nonlocal_goto): Bundle.  Don't kill r7.
10587         (__ia64_restore_stack_nonlocal): Likewise.
10588         (__ia64_trampoline): New.
10589         * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
10590         function.
10591         * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
10592
10593 2000-08-08  Richard Henderson  <rth@cygnus.com>
10594
10595         * frame.h (ia64_frame_state): Add my_psp.
10596         * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
10597         (__throw): Pass it in.  Don't clobber r7.
10598         * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
10599         (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
10600         and nothing to do with sp.
10601         (normalize_reg_loc): Use frame->my_psp.
10602         (frame_translate): Handle frame-pointer-less functions.  Set
10603         spill_base correctly, in absence of being told.
10604         (__build_ia64_frame_state): New sp argument.  Fill in frame->my_sp.
10605         (__ia64_backtrace_helper): New sp argument.  Use
10606         builtin_return_address instead of label addresses.
10607         (print_record) [mem_stack_v]: No size member.
10608
10609 2000-08-08  Richard Henderson  <rth@cygnus.com>
10610
10611         * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
10612
10613 2000-08-08  Richard Henderson  <rth@cygnus.com>
10614
10615         * tm.texi (LOCAL_REGNO): Document.
10616         * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
10617         (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
10618         * reload1.c (reload): Likewise when considering nonlocal labels.
10619
10620         * config/ia64/ia64.h (LOCAL_REGNO): New.
10621         * config/sparc/sparc.h (LOCAL_REGNO): New.
10622
10623 2000-08-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10624
10625         * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
10626
10627 2000-08-07  Nick Clifton  <nickc@redhat.com>
10628
10629         * config/mips/mips.c: Fix compile time warning messages.
10630         * config/mips/mips-protos.h: Add prototype for equality_op.
10631
10632         * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
10633
10634 2000-08-07  Graham Stott  <grahams@cygnus.co.uk>
10635
10636         * mn10300.md: Use nonimmediate_operand instead of general_operand
10637         on output operands.
10638
10639         * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
10640
10641 2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
10642
10643         * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
10644         * sh.c (expand_block_move): Break long lines.
10645         (expand_ashiftrt, fpscr_set_from_mem): Likewise.
10646         * sh.md (mulsi3): Likewise.
10647         (movdi): Adjust spacing.
10648
10649 2000-08-07  Richard Henderson  <rth@cygnus.com>
10650
10651         * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
10652         * expr.c (emit_group_store): Don't set it.
10653
10654 2000-08-07  Kazu Hirata  <kazu@hxi.com>
10655
10656         * invoke.texi (Options for Debugging Your Program or GCC): Remove
10657         duplicate entries for 'w' and 'z'.
10658
10659         * flow.c: Fix a comment typo.
10660
10661 Sun Aug  6 23:47:35 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10662
10663         * c-parse.in: Changed the language string for Objective-C to "GNU
10664         Objective-C".
10665
10666 Sun Aug  6 11:54:03 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10667
10668         * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
10669         to improve the Posix thread support for Objective-C.
10670
10671 2000-08-06  Joseph S. Myers  <jsm28@cam.ac.uk>
10672
10673         * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
10674         CTI_UNSIGNED_PTRDIFF_TYPE.
10675         (signed_size_type_node): Define.
10676         (unsigned_ptrdiff_type_node): Define.
10677         * c-decl.c (init_decl_processing): Create the
10678         signed_size_type_node and unsigned_ptrdiff_type_node types.
10679         * c-common.c (T_SC): Define.
10680         (T_SST): Define.
10681         (T_UPD): Define.
10682         (print_char_table): Use T_SST for %zd, %zi, %zn.  Use T_UPD for
10683         %to, %tu, %tx, %tX.  Allow %hhn (T_SC).  Add "c" to the flags for
10684         %s and %p.
10685         (scan_char_table): Use T_SC for %hhd, %hhi, %hhn.  Use T_SST for
10686         %zd, %zi, %zn.  Use T_UPD for %to, %tu, %tx, %tX.  Add "c" to the
10687         flags for %c, %s and %[.
10688         (check_format_info): Only allow leniency for signedness of targets
10689         of character pointers (when pedantic) for formats flagged with
10690         "c", so for strings but not for %hh formats.  When pedantic, don't
10691         allow character pointers to substitute for void pointers if a
10692         second level of indirection is present.
10693
10694 2000-08-06  Kazu Hirata  <kazu@hxi.com>
10695
10696         * invoke.texi (Options for Debugging Your Program or GCC): Update
10697         the names of dump files.
10698
10699         * h8300.c (dosize): Rearrange code for conciseness.
10700         (split_adds_subs): Likewise.
10701
10702         * loop.c: Fix formatting.
10703
10704         * dwarf2out.c: Fix formatting.
10705
10706         * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
10707
10708         * expr.c: Fix formatting.
10709
10710 2000-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10711
10712         * rs6000.c (rs6000_maybe_dead): Prototype.
10713
10714 2000-08-06  Richard Henderson  <rth@cygnus.com>
10715
10716         * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
10717         HAVE_nonlocal_goto as well.
10718         * config/i960/i960.md (nonlocal_goto): Don't do it here.
10719         * config/pj/pj.md (nonlocal_goto): Likewise.
10720
10721 2000-08-07  Michael Hayes  <mhayes@cygnus.com>
10722
10723         * loop.c (try_swap_copy_prop): New function.
10724         (load_mems): Rename copies to load_copies and add new regset
10725         store_copies.  Check for sets of shadow registers and mark
10726         in store_copies.   Call try_swap_copy_prop for registers
10727         marked in store_copies.
10728
10729 Sun Aug  6 00:54:42 2000  Ovidiu Predescu  <ovidiu@cup.hp.com>
10730
10731         * objc/objc-act.c: New command line option -fconstant-string-class
10732         to allow specifying a user defined constant string class,
10733         different from NXConstantString.
10734
10735         * toplev.c: Moved the Objective-C specific options to
10736         objc/lang-options.h.
10737
10738         * objc/lang-options.h: Moved the Objective-C specific options from
10739         toplev.c. Added -fconstant-string-class.
10740
10741 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
10742
10743         * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
10744         DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
10745         __CTOR_LIST__ from func_ptr array to just func_ptr, to
10746         avoid extra alignment imposed on arrays.
10747         * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
10748         DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
10749
10750         * mips.h: Clean up comments and spacing near MASKs.
10751         (TARGET_UNIX_ASM): Delete.
10752         (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
10753         MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
10754         values contiguous.
10755
10756 2000-08-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10757
10758         * c-common.c (print_char_table): Add entries for the X/Open '
10759         format flag (print decimals with locale's thousands grouping
10760         character).  Make %C expect wint_t.
10761         (check_format_info): If pedantic, warn when the %n$ operand
10762         number form is used.  Allow for the ' flag; warn about it if
10763         pedantic.
10764
10765 2000-08-05  Zack Weinberg  <zack@wolery.cumb.org>
10766
10767         * i386.h (FUNCTION_OK_FOR_SIBCALL):  Not OK if DECL's return
10768         type is a float mode, cfun->decl's return type is not, and
10769         TARGET_FLOAT_RETURNS_IN_80387.
10770
10771 2000-08-04  Andreas Schwab  <schwab@suse.de>
10772
10773         * cppmain.c (cb_def_pragma): Skip the first two tokens from the
10774         token list, which are always `#' and `pragma'.
10775
10776 2000-08-04  Zack Weinberg  <zack@wolery.cumb.org>
10777
10778         * tree.c (tree_expr_nonnegative_p): Move to...
10779         * fold-const.c: ... here.  Also handle BIND_EXPR and RTL_EXPR.
10780         (rtl_expr_nonnegative_p): New.
10781         * tree.h: Add prototype for rtl_expr_nonnegative_p.
10782
10783         * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
10784         CONST_DOUBLE_CHAIN: Move to...
10785         * rtl.h: ...here.  Use XCINT/XCEXP.
10786
10787         * Makefile.in: Remove toplev.o from OBJS.  Add rule to make
10788         libbackend.a; add libbackend.a to STAGESTUFF.  Add BACKEND
10789         variable.  Use BACKEND when linking cc1, not OBJS.  Add BACKEND
10790         to VOL_FILES.
10791
10792         * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
10793
10794 2000-08-05  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10795
10796         * config/c4x/c4x.md (return_indirect_internal): New.
10797         * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
10798
10799 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10800
10801         * c-common.c (time_char_table): Mark up formats added in C99 and
10802         make other corrections.  %D and %g were added in C99.  %Og is an
10803         extension.  %EX is permitted.  %R, %T, %n, %r, %t were added in
10804         C99.  %e was added in C99.  %Oj is an extension.  %G and %z are in
10805         C99 rather than GNU extensions, but %OG and %Oz are extensions.
10806         %h was added in C99.  %C was added in C99.  %OY and %OC are
10807         extensions.  Add the C99 format %F.
10808         (check_format_info): If pedantic and not in C99 mode, warn for C99
10809         formats, %E and %O.
10810
10811 Fri Aug  4 23:01:58 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
10812
10813         * function.c (schedule_fixup_var_refs): New function, broken out
10814         of put_reg_into_stack.
10815         (put_reg_into_stack): Use it.
10816         (put_var_into_stack): In CONCAT case, fixup up references for
10817         components only after fixing up references to the whole concat.
10818
10819 2000-08-04  Rodney Brown  <RodneyBrown@pmsc.com>
10820
10821         * alias.c (mark_constant_function): Use INSN_P.
10822         (init_alias_analysis): Likewise.
10823         * combine.c (combine_instructions): Use INSN_P.
10824         (can_combine_p): Likewise.
10825         (try_combine): Likewise.
10826         (distribute_notes): Likewise.
10827         (distribute_links): Likewise.
10828         * cse.c (cse_around_loop): Use INSN_P.
10829         (invalidate_skipped_block): Likewise.
10830         (cse_set_around_loop): Likewise.
10831         (cse_end_of_basic_block): Likewise.
10832         (delete_trivially_dead_insns): Likewise.
10833         * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
10834         (unshare_all_rtl_1): Likewise.
10835         (next_cc0_user): Likewise.
10836         (try_split make_insn_raw): Likewise.
10837         (remove_unnecessary_notes): Likewise.
10838         * final.c (shorten_branches): Use INSN_P.
10839         (leaf_renumber_regs): Likewise.
10840         (leaf_renumber_regs_insn): Likewise.
10841         * flow.c (find_label_refs): Use INSN_P.
10842         (verify_wide_reg): Likewise.
10843         (notice_stack_pointer_modification): Likewise.
10844         (count_or_remove_death_notes): Likewise.
10845         (verify_flow_info): Likewise.
10846         (clear_log_links): Likewise.
10847         * function.c (fixup_var_refs_insns): Use INSN_P.
10848         (compute_insns_for_mem): Likewise.
10849         * gcse.c (alloc_gcse_mem): Use INSN_P.
10850         (compute_sets): Likewise.
10851         (compute_hash_table): Likewise.
10852         (classic_gcse): Likewise.
10853         (cprop): Likewise.
10854         (insert_insn_end_bb): Likewise.
10855         (delete_null_pointer_checks_1): Likewise.
10856         * global.c (expand_preferences): Use INSN_P.
10857         (build_insn_chain): Likewise.
10858         * graph.c (node_data): Use INSN_P.
10859         * haifa-sched.c (priority): Use INSN_P.
10860         (rm_line_notes): Likewise.
10861         (rm_other_notes): Likewise.
10862         (find_insn_reg_weight): Likewise.
10863         (init_target_units): Likewise.
10864         (schedule_block): Likewise.
10865         (compute_block_forward_dependences): Likewise.
10866         (debug_dependencies): Likewise.
10867         (set_priorities): Likewise.
10868         * integrate.c (function_cannot_inline_p): Use INSN_P.
10869         (save_parm_insns): Likewise.
10870         (copy_insn_list): Likewise.
10871         * jump.c (mark_all_labels): Use INSN_P.
10872         (never_reached_warning): Likewise.
10873         * lcm.c (optimize_mode_switching): Use INSN_P.
10874         * local-alloc.c (validate_equiv_mem): Use INSN_P.
10875         (memref_used_between_p): Likewise.
10876         (update_equiv_regs): Likewise.
10877         (block_alloc): Likewise.
10878         (no_conflict_p): Likewise.
10879         * loop.c (scan_loop): Use INSN_P.
10880         (find_and_verify_loops): Likewise.
10881         (count_loop_regs_set): Likewise.
10882         (loop_reg_used_before_p): Likewise.
10883         (strength_reduce): Likewise.
10884         (recombine_givs): Likewise.
10885         (check_dbra_loop): Likewise.
10886         (load_mems): Likewise.
10887         (try_copy_prop): Likewise.
10888         * print-rtl.c (print_rtx): Use INSN_P.
10889         * recog.c (find_single_use): Use INSN_P.
10890         * reg-stack.c (stack_regs_mentioned): Use INSN_P.
10891         (next_flags_user): Likewise.
10892         (swap_rtx_condition): Likewise.
10893         * regmove.c (mark_flags_life_zones): Use INSN_P.
10894         (optimize_reg_copy_1): Likewise.
10895         (optimize_reg_copy_2): Likewise.
10896         (optimize_reg_copy_3): Likewise.
10897         (reg_is_remote_constant_p): Likewise.
10898         (fixup_match_2): Likewise.
10899         (regmove_optimize): Likewise.
10900         (fixup_match_1): Likewise.
10901         * regrename.c (build_def_use): Use INSN_P.
10902         (replace_reg_in_block): Likewise.
10903         (consider_use): Likewise.
10904         * reload.c (find_equiv_reg): Use INSN_P.
10905         * reload1.c (reload): Use INSN_P.
10906         (maybe_fix_stack_asms): Likewise.
10907         (calculate_needs_all_insns): Likewise.
10908         (reload_as_needed): Likewise.
10909         (emit_output_reload_insns): Likewise.
10910         (delete_address_reloads_1): Likewise.
10911         (reload_cse_regs_1): Likewise.
10912         (reload_combine): Likewise.
10913         (reload_cse_move2add): Likewise.
10914         * reorg.c (redundant_insn): Use INSN_P.
10915         (dbr_schedule): Likewise.
10916         * resource.c (find_dead_or_set_registers): Use INSN_P.
10917         (mark_target_live_regs): Likewise.
10918         * rtlanal.c (reg_used_between_p): Use INSN_P.
10919         (reg_referenced_between_p): Likewise.
10920         (reg_set_between_p): Likewise.
10921         (reg_set_p): Likewise.
10922         (single_set): Likewise.
10923         (multiple_sets): Likewise.
10924         (find_last_value): Likewise.
10925         (reg_set_last): Likewise.
10926         (find_reg_note): Likewise.
10927         (find_regno_note): Likewise.
10928         * sibcall.c (sequence_uses_addressof): Use INSN_P.
10929         * simplify-rtx.c (cselib_process_insn): Use INSN_P.
10930         * ssa.c (find_evaluations): Use INSN_P.
10931         (rename_block): Likewise.
10932         (rename_equivalent_regs): Likewise.
10933         * unroll.c (loop_find_equiv_value): Use INSN_P.
10934         (set_dominates_use): Likewise.
10935         * varasm.c (mark_constant_pool): Use INSN_P.
10936         (mark_constants): Likewise.
10937         * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
10938         (alphaev4_next_group): Likewise.
10939         (alphaev5_next_group): Likewise.
10940         * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
10941         (c4x_rptb_rpts_p): Likewise.
10942         * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
10943         * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
10944         (rs6000_adjust_priority): Likewise.
10945         * config/sh/sh.c (sh_loop_align): Use INSN_P.
10946         (machine_dependent_reorg): Likewise.
10947         (split_branches): Likewise.
10948         * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
10949
10950 Fri Aug  4 11:43:49 2000  John Wehle  (john@feith.com)
10951
10952         * combine.c (recog_for_combine): Remove the old notes
10953         prior to attempting to recognize the new pattern.
10954         (distribute_notes): Ignore REG_NONNEG notes.
10955
10956 2000-08-04  Chandrakala Chavva  <cchavva@redhat.com>
10957
10958         * varasm.c (output_constructor): Add .align 0 for packed vars.
10959
10960 2000-08-04  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
10961
10962         * configure.in: Use default thread_file even when enable_threads is
10963         yes or dce because hpux10.20 pa port uses MULTILIB implementation.
10964         * configure: Rebuilt.
10965
10966         * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
10967
10968 2000-08-04  Donn Terry (donnte@microsoft.com)
10969
10970         * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
10971
10972 2000-08-04  Mark Elbrecht  <snowball3@bigfoot.com>
10973
10974         * i386/x-djgpp: Delete code that conditionally modifies target_alias.
10975         Delete code that conditionally modifies 'version'.
10976         Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
10977         * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
10978         * gcc.c (main): Use it.
10979         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
10980         * prefix.c (update_path): Use it.
10981         * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
10982         (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
10983         (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
10984         code.
10985         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
10986         (SUBTARGET_SWITCHES): Adjust.
10987         (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
10988         defining.
10989         (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
10990
10991 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10992
10993         * c-common.h (flag_isoc94): Declare.
10994         * c-decl.c (flag_isoc94): Define.
10995         (c_decode_option): Set flag_isoc94 as appropriate.
10996         * c-common.c (T_PD, T_IM, T_UIM): Define.
10997         (format_char_info): Add tlen and jlen.
10998         (print_char_table): Add entries for %t and %j.  Allow %zn.  Allow
10999         %F.  Allow %lf.
11000         (scan_char_table): Add entries for %t and %j.  Allow %F.  Allow
11001         %l[.
11002         (time_char_table): Add NULL entries for %t and %j.
11003         (check_format_info): Allow for %t and %j.  Warn for %F if pedantic
11004         and not C99.  Warn for %lc, %ls and %l[ if pedantic and not C94.
11005         Warn for printf %lf if pedantic and not C99.  Don't warn for empty
11006         precision.  Allow precision argument to be unsigned int.  If
11007         pedantic, warn for %p passed an argument not a pointer to possibly
11008         qualified void or a possibly qualified character type, and for
11009         pointer targets of the wrong sign, except for character pointers.
11010
11011 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11012
11013         * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
11014         * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
11015         (wint_type_node): Define.
11016         * c-decl.c (WINT_TYPE): Define.
11017         (init_decl_processing): Create the wint_type_node type.
11018         * c-common.c (T_WI): Define.
11019         (print_char_table): Use T_WI for %lc format.
11020
11021 2000-08-04  Bruce Korb  <bkorb@gnu.org>
11022
11023         * fixinc/:  Verified that the MSDOS patch does not break
11024         the UNIX functionality and applied the next three patches
11025         from July:
11026
11027 2000-07-28  Eli Zaretskii  <eliz@is.elta.co.il>
11028
11029         * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
11030         output file with the temporary one by appending ".X" to generate
11031         the temporary fuile's name.  If the output file already has an
11032         extension, replace it with ".X".
11033
11034         * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
11035         not $DESTDIR, to find applyfix.  Use sprintf instead of snprintf;
11036         reallocate the command buffer while copying the command-line
11037         argument.  Redirect the output directly to the temporary file,
11038         instead of going through another temporary file.
11039         (process): Close the temporary file before unlinking it.
11040         (machine_matches) [__MSDOS__]: If the machine doesn't match, set
11041         the FD_SKIP_TEST flag.  Pay attention to the FD_MACH_IFNOT flag.
11042         (run_compiles): Pass p_fixd argument to machine_matches, as it
11043         expects.
11044
11045         * fixinc/fixincl.sh: Export ORIGDIR.  If $DJDIR is set in the
11046         environment, assume there are no symlinks in the include
11047         directory.  When cleaning up the DONE files, look for them
11048         case-insensitively.  Don't try to remove symlinks if they aren't
11049         there.
11050
11051         * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
11052         all callers changed.  Declare pz "const char *", to avoid compiler
11053         warnings.
11054
11055         * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
11056         Change prototype of make_raw_shell_str.
11057
11058 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
11059
11060         * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
11061         (initialize) [__MSDOS__]: Use tempnam.
11062         (initialize): Don't use SIGPIPE if it is not defined.
11063
11064         * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
11065         return stdout.
11066
11067 2000-07-25  Bruce Korb  <bkorb@gnu.org>
11068
11069         * fixinc/fix*.[ch]: substantially reworked to make it possible
11070         to run this program without using fork(2) or pipe(2) (i.e. in
11071         a DOS environment).
11072
11073 2000-08-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11074
11075         * cppdefault.h (WINT_TYPE): Define.
11076         * cppinit.c (builtin_array): Define __WINT_TYPE__.
11077         * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
11078         * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
11079
11080 Fri Aug  4 06:53:46 2000  Clinton Popetz  <cpopetz@cygnus.com>
11081
11082         * (mips_legitimate_address_p): Don't allow register+offset
11083         if the offset is large and negative, and we are compiling
11084         for 64 bit registers.
11085
11086 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11087
11088         * gencodes.c (main): Define CODE_FOR_nothing as the last possible
11089         insn_code_number + 1.
11090
11091 2000-08-04  Kazu Hirata  <kazu@hxi.com>
11092
11093         * h8300.c (function_prologue): Rearrange code for conciseness.
11094         (function_epilogue): Likewise.
11095         * h8300.h (OK_FOR_U): Fix formatting.
11096
11097         * cse.c: Fix a comment typo. Fix formatting.
11098
11099 2000-08-03  Richard Henderson  <rth@cygnus.com>
11100
11101         * config/i386/i386.md (return_indirect_internal): New.
11102         * config/i386/i386.c (ix86_expand_epilogue): Use it.
11103
11104 2000-08-03  Zack Weinberg  <zack@wolery.cumb.org>
11105
11106         * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
11107         before the name.
11108         (lex_line): Glue @ onto the beginning of identifiers and
11109         string constants, in Objective-C mode.
11110         (output_token, spell_token): Handle CPP_OSTRING.
11111         (can_paste, maybe_paste_with_next): Handle pasting @ onto the
11112         beginning of a NAME or a STRING, in objc mode.
11113
11114         * cpplib.c (get_define_node): Do not permit identifiers that
11115         begin with @ to be #defined.
11116         * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
11117         * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
11118
11119         * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
11120         * c-tree.h (build_objc_string): Delete prototype.
11121         * objc/objc-tree.def: Delete OBJC_STRING_CST.
11122         * c-lex.c (yylex): Use build_string for all three kinds of strings.
11123
11124         * c-parse.in, objc/objc-act.c: Update commentary.
11125
11126 2000-08-03  Mark Mitchell  <mark@codesourcery.com>
11127
11128         * extend.texi: Fix typo in last change.
11129
11130         * extend.texi: Add commentary on statement-expressions and their
11131         interactions with C++.
11132
11133 2000-08-03  Nick Clifton  <nickc@cygnus.com>
11134
11135         * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
11136         * dwarf.h (LANG_JAVA): Change value to 0x000b.
11137
11138 2000-08-03  Anthony Green  <green@cygnus.com>
11139
11140         * dwarf2out.c (gen_compile_unit_die): Add java language support.
11141         (add_bound_info): Check for java language.
11142         (is_java): New function.
11143         * dwarfout.c (output_compile_unit_die): Ditto.
11144         * dwarf.h (dwarf_source_language): Add java source language type.
11145         * dwarf2.h (dwarf_source_language): Ditto.
11146
11147 Thu Aug  3 20:32:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11148
11149         * reg-stack.c (subst_stack_regs_pat):  Use replace_reg to swap
11150         operands.
11151
11152         * i386.c (ix86_expand_branch): Mode of comparison in
11153         IF_THEN_ELSE is VOIDmode.
11154
11155 Thu Aug  3 10:05:53 2000  Akiko Matsushita <matusita@sra.co.jp>
11156
11157         * gengenrtl.c, rtl.c: Avoid #elif.
11158
11159 2000-08-03  Michael Poole  <poole@troilus.org>
11160
11161         * tm.texi (Register Classes): Clarify order of sub-initializers
11162         in REG_CLASS_CONTENTS.
11163
11164 Thu Aug  3 15:53:03 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
11165
11166         From SAITOH Masanobu:
11167         * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
11168
11169 2000-08-03  David Billinghurst  <David.Billinghurst@riotinto.com.au>
11170
11171         * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
11172         is not supported by tradcpp and isn't actually needed for cygwin.
11173
11174 2000-08-03  Kazu Hirata  <kazu@hxi.com>
11175
11176         * h8300.c: Fix a comment typo.
11177         * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
11178
11179         * jump.c: Fix formatting.
11180
11181         * toplev.c: Fix formatting.
11182
11183 Thu Aug  3 01:05:32 2000  Jeffrey A Law  (law@cygnus.com)
11184
11185         * flow.c (find_auto_inc): Verify that we've got a REG before
11186         peeking at its regno.  Fail, don't abort if we can't find
11187         the increment of the desired register.
11188
11189         * pa.md (shadd height reduction patterns/splitters): Remove.
11190
11191 2000-08-02  Jim Wilson  <wilson@cygnus.com>
11192
11193         * config/ia64/ia64-protos.h (flag_ssa): Declare.
11194         * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
11195
11196 2000-08-02  Mark Mitchell  <mark@codesourcery.com>
11197
11198         * dce.c: Remove all uses of assert.
11199         * dwarf2out.c: Likewise.
11200         * dwarfout.c: Likewise.
11201         * ssa.c: Likewise.
11202
11203 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
11204
11205         * gcc.h (lang_specific_driver): Constify second argument.
11206         * gcc.c (translate_options, process_command, main): Likewise.
11207         Constify variables to match.  Cast second argument to
11208         pexecute.
11209
11210         * cppspec.c, gccspec.c: Adjust type of second argument to
11211         lang_specific_driver, and update code as necessary.
11212
11213 2000-08-02  Jakub Jelinek  <jakub@redhat.com>
11214
11215         * loop.c (scan_loop): Ensure update_end label does not
11216         go away until reg_scan_update is run.
11217
11218 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
11219
11220         * c-common.h: Prototype min_precision and c_build_qualified_type here...
11221         * c-tree.h: ... not here.
11222         * errors.h: Prototype fancy_abort.
11223
11224         * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
11225         HOST_BITS_PER_WIDE_INT == 64 ifdef block.
11226         * regrename.c (regrename_optimize): Make control flow explicit.
11227         (replace_reg_in_block): Initialize reg_use to 0.
11228
11229         * i386.c (legitimate_address_p): Rename error label to
11230         report_error to avoid namespace clash.
11231
11232 2000-08-02  Kazu Hirata  <kazu@hxi.com>
11233
11234         * fold-const.c: Fix formatting.
11235
11236 Wed Aug  2 16:26:15 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11237
11238         * i386.c (legitimate_address_p): Accept other bases than
11239         pic_offset_table_rtx for GOTOFF constructs.
11240
11241 Wed Aug  2 15:59:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11242
11243         * i386.md (shift to lea splitter): Use const_int_operand.
11244
11245 2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
11246
11247         * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
11248         cppspec.c: Do not use 'legal' or 'illegal' in error messages
11249         and comments.
11250
11251         * cppmain.c (cb_define, cb_undef): Don't generate any output
11252         if not done_initializing.
11253         * cpplex.c (maybe_paste_with_next): When the token after a ##
11254         is an omitted rest argument, only delete the token before it
11255         if that token is a comma.  Do not warn about bogus token
11256         pastes for , ## rest_arg.
11257
11258         * cpp.texi: Update.
11259         * cpp.1: Regenerate.
11260
11261 2000-08-02  Fred Fish  <fnf@be.com>
11262
11263         * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
11264         when user gives -p option.  Add init_term_dyn.o for BeOS 5.0
11265         and later.
11266
11267         * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
11268         Be directories to search path.
11269
11270         Remove support for __declspec(dllimport) and __declspec(dllexport).
11271         This is leftover cruft from the earlier BeOS gcc port when BeOS
11272         used Microsoft's PE object file format.
11273         * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
11274         * config/i386/t-beos (winnt.o): Remove Makefile frag.
11275         * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
11276         (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
11277         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11278         (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
11279         (REDO_SECTION_INFO_P): Remove.
11280         (ASM_EXPORT_DECL): Remove.
11281         (ASM_DECLARE_FUNCTION_NAME): Remove.
11282         (ASM_DECLARE_OBJECT_NAME): Remove.
11283         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
11284         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
11285         (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
11286         (STRIP_NAME_ENCODING): Remove.
11287
11288         Remove support for obsolete version of BeOS that is no longer
11289         supported by Be.
11290         * configure.in (i*86-*-beospe*): Remove.
11291         * config/i386/beos-pe.h: Remove.
11292
11293 2000-08-01  Jeffrey Oldham  <oldham@codesourcery.com>
11294             Mark Mitchell <mark@codesourcery.com>
11295
11296         * Makefile.in (OBJS): Added dce.o.
11297         (ssa.o): Updated target to include ssa.h.
11298         (flow.o): Likewise.
11299         (toplev.o): Likewise.
11300         (dce.o): Created target.
11301         * basic-block.h: Added comments.
11302         (INVALID_BLOCK): Added definition.
11303         (connect_infinite_loops_to_exit): Added declaration.
11304         Moved SSA declarations to ssa.h.
11305         * flow.c: Added inclusion of ssa.h.
11306         (struct depth_first_search_dsS, depth_first_search_ds):
11307         Added definitions.
11308         (compute_immediate_postdominators): Added definition.
11309         (connect_infinite_loops_to_exit): Likewise.
11310         (flow_dfs_compute_reverse_init): Likewise.
11311         (flow_dfs_compute_reverse_add_bb): Likewise.
11312         (flow_dfs_compute_reverse_execute): Likewise.
11313         (flow_dfs_compute_reverse_finish): Likewise.
11314         * rtl.h (rtx/in_struct): Added use to determine insn necessity.
11315         (LABEL_P): Added definition.
11316         (JUMP_P): Likewise.
11317         (NOTE_P): Likewise.
11318         (BARRIER_P): Likewise.
11319         (JUMP_TABLE_DATA_P): Likewise.
11320         (INSN_DEAD_CODE_P): Likewise.
11321         * ssa.c: Replaced inclusions with ssa.h inclusion.
11322         (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
11323         (rename_registers): Removed unnecessary variables.
11324         * ssa.h: Created by moving declarations from ssa.c and
11325         basic-block.h.
11326         * timevar.def: Defined TV_DEAD_CODE_ELIM.
11327         * toplev.c: Added ssa.h inclusion.
11328         (dump_file_index): Added DFI_dce.
11329         (dump_file): Added "dce" entry.
11330         Defined flag_ssa.
11331         (f_options): Added dce entry.
11332         * invoke.texi: Document -fdce.  Emphasize experimental status of
11333         -fssa.
11334         * dce.c: New file.
11335
11336 2000-08-01  Zack Weinberg  <zack@wolery.cumb.org>
11337
11338         * cpperror.c (v_message): Split into _cpp_begin_message and
11339         v_message macro.  All callers updated.
11340         (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
11341         checks here.
11342
11343         * cppfiles.c (cpp_syshdr_flags): New function.
11344         (read_include_file): Don't call cpp_output_tokens.  Call
11345         enter_file hook.
11346         * cppinit.c (dump_macros_helper): Moved to cppmain.c.
11347         (cpp_reader_init): Don't initialize token_buffer.  Call
11348         _cpp_init_internal_pragmas.
11349         (cpp_cleanup): Don't clear token_buffer.
11350         (cpp_start_read): Don't worry about output from -D processing.
11351         Don't call cpp_output_tokens.
11352         (cpp_finish): Don't dump macros here.  Don't call
11353         cpp_output_tokens.
11354         * cppmacro.c (_cpp_dump_definition): Rename
11355         cpp_dump_definition.  Write directly to a FILE *.
11356         (dump_funlike_macro): Delete.
11357         (dump_macro_args): New.
11358
11359         * cpplex.c (TOKEN_LEN): Convert to inline function.
11360         (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
11361         cpp_scan_line, _cpp_dump_list): Delete.
11362         (cpp_printf, cpp_output_list): New.
11363         (output_line_command): Don't worry about entering or leaving files.
11364         (cpp_scan_buffer): Just output each token as we hit it.
11365         (process_directive): Don't call cpp_output_tokens.
11366         (_cpp_glue_header_name): Don't use token_buffer.
11367         (output_token, dump_param_spelling): Write directly to a FILE *.
11368
11369         * cpplib.c (pass_thru_directive, dump_macro_name,
11370         pragma_dispatch, do_pragma_gcc): Delete.
11371         (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
11372         do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
11373         functions.
11374         (do_error, do_warning, pragma_dependency): Call
11375         _cpp_begin_message, then cpp_output_list.
11376         (cpp_register_pragma, cpp_register_pragma_space,
11377         _cpp_init_internal_pragmas): New.
11378         (do_pragma): Walk the pragmas table here.
11379         (do_pragma_once, do_pragma_poison, do_pragma_system_header,
11380         do_pragma_dependency): Return void.
11381         (do_pragma_implementation): Moved to cppmain.c.
11382
11383         * cpplib.h: Update prototypes.
11384          (struct cpp_reader): Remove printer, token_buffer,
11385         token_buffer_size, and limit.  Add struct cb, and pragmas.
11386         (struct cpp_printer): Remove last_id and written.
11387         (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
11388         CPP_ADJUST_WRITTEN): Delete.
11389         * cpphash.h: Update prototypes.
11390         (ufputs): New wrapper.
11391
11392         * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
11393         cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
11394         (main): Set up callbacks.  Register #pragma implementation.
11395         Dump macros from here.
11396
11397 2000-08-01  Geoff Keating  <geoffk@cygnus.com>
11398
11399         * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
11400         * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
11401         * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
11402         insns if they have a REG_MAYBE_DEAD note attached.
11403         * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
11404         (rs6000_emit_load_toc_table): TOC loads may go dead.
11405
11406 2000-08-01  Jim Wilson  <wilson@cygnus.com>
11407
11408         * config/ia64/ia64.c (ia64_function_arg): Fix last change.  Verify
11409         type exists before using it.  Use number of words as alignment
11410         otherwise.
11411         (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
11412         ia64_va_arg): Propagate ia64_function_args changes here.
11413
11414 2000-08-01  Richard Henderson  <rth@cygnus.com>
11415
11416         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
11417         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11418
11419 2000-08-01  Bernd Schmidt  <bernds@cygnus.co.uk>
11420
11421         From Joern Rennecke:
11422         * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
11423         * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
11424         unless TARGET_SH3E is set.
11425         * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
11426
11427         * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
11428         (ashlsi3_std): New pattern.
11429         (ashlsi3 expander): Use it for TARGET_SH3.
11430         * sh.c (gen_ashift): Use it instead of ashlsi3_k.
11431
11432 Tue Aug  1 12:34:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11433
11434         * loop.c (canonicalize_condition):  Use destination, not source to
11435         determine SET's mode.
11436
11437 2000-07-31  Mark Mitchell  <mark@codesourcery.com>
11438
11439         * flow.c (clear_log_links): Fix typo.
11440
11441 Mon Jul 31 22:19:24 2000  Jeffrey A Law  (law@cygnus.com)
11442
11443         * loop.c (check_dbra_loop): Make change from July 17, 2000 work
11444         on targets which need more than one insn for a compare/cbranch
11445         operation.
11446
11447 2000-07-31  Jim Wilson  <wilson@cygnus.com>
11448
11449         * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
11450         when computing offset.
11451
11452 Mon Jul 31 20:35:50 2000  Denis Chertykov  <denisc@overta.ru>
11453
11454         * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
11455
11456 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
11457
11458         * flow.c (clear_log_links): Nuke global_live_at_start and
11459         global_live_at_end data, since if the log_links stuff is invalid
11460         so is global_live_at_*.
11461
11462 2000-07-31  Richard Henderson  <rth@cygnus.com>
11463
11464         * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
11465
11466 2000-07-31  Jakub Jelinek  <jakub@redhat.com>
11467
11468         * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
11469         (_cpp_get_token): Don't macro expand a just pasted token if it
11470         was pasted at no_expand_level.
11471
11472 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
11473
11474         * cppmacro.c (find_param, count_params, save_expansion):
11475         Permit 'defined' as a macro parameter name.
11476
11477 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
11478
11479         * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
11480         xcpp to cpp throughout.
11481         (native): Remove unnecessary dependency on cpp.
11482
11483         * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
11484         tradcpp to tradcpp0.
11485         (.i spec): Add missing output-file spec to cc1 command line.
11486         * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
11487
11488 2000-07-31  Zack Weinberg  <zack@wolery.cumb.org>
11489
11490         * c-decl.c (mesg_implicit_function_declaration): Init to -1.
11491         (implicit_decl_warning): New function.
11492         (implicitly_declare): Use it.
11493         * c-typeck.c (build_external_ref): Use implicit_decl_warning
11494         to complain about implicit decls of builtins.
11495
11496         * c-lang.c (lang_init): Set mesg_implicit_function_declaration
11497         based on pedantic && flag_isoc99, if not already set.
11498         * c-tree.h: Declare mesg_implicit_function_declaration.
11499         Prototype implicit_decl_warning.
11500
11501 2000-07-30  Jeffrey D. Oldham  <oldham@codesourcery.com>
11502
11503         * Makefile.in (ssa.o): Updated header files in dependences.
11504         * basic-block.h: Added compute_immediate_postdominators declaration.
11505         * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
11506         definition.
11507         * flow.c (compute_immediate_dominators): Updated comment.
11508         (compute_immediate_postdominators): Added definition.
11509         * rtl.h (HARD_REGISTER_P): Added definition.
11510         * ssa.c: Include additional header files.
11511         (assert): Added definition.
11512         (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
11513         include select hard registers.
11514         (ssa_rename_to_insert): Likewise.
11515         (ssa_rename_from_initialize): Likewise.
11516         (ssa_rename_from_lookup): Likewise.
11517         (original_register): Likewise.
11518         (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
11519         include select hard reigsters.
11520         (ssa_rename_from_traverse): Likewise.
11521         (ssa_rename_from_free): Likewise.
11522         (ssa_rename_from_print): Likewise.
11523         (ssa_rename_from_print_1): Likewise.
11524         (ssa_rename_from_hash_function): Likewise.
11525         (ssa_rename_from_equal): Likewise.
11526         (ssa_rename_from_delete): Likewise.
11527         (simplify_to_immediate_dominators): Removed in favor of
11528         flow.c:compute_immediate_dominators.
11529         (find_evaluations_1): Modified to work with hard registers.
11530         (insert_phi_node): Likewise.
11531         (insert_phi_nodes): Likewise.
11532         (struct rename_set_data): Updated prev_reg comment.
11533         (create_delayed_rename): Modified to work with hard registers.
11534         (RENAME_NO_RTX): Updated comment.
11535         (apply_delayed_renames): Modified to work with hard registers.
11536         (rename_insn_1): Likewise and added handling of CLOBBER rtls.
11537         (rename_block): Updated to use revised ssa_rename_to interface.
11538         (rename_registers): Updated to use revised ssa_rename_to and
11539         ssa_rename_from interface.
11540         (convert_to_ssa): Revised to use compute_immediate_dominators and
11541         deal with hard registers.
11542         (make_regs_equivalent_over_bad_edges): Modified to work with hard
11543         registers.  Added check for illegal unification of hard register.
11544         (make_equivalent_phi_alternatives_equivalent): Modified to work
11545         with hard registers.
11546         (compute_conservative_reg_partition): Likewise.
11547         (coalesce_if_unconflicting): Modified to work with hard registers
11548         and check for conflicting hard registers.
11549         (mark_phi_and_copy_regs): Revised loop to work only on pseudo
11550         registers.
11551         (rename_equivalent_regs_in_insn): Modified to work with hard
11552         registers.
11553         (record_canonical_element_1): Added definition.
11554         (check_hard_regs_in_partition): Added definition.
11555         (convert_from_ssa): Added data structure deallocation and check
11556         for illegal hard register unification.
11557         (conflict_hard_regs_p): Added definition.
11558         * toplev.c (rest_of_compilation): Added comment.
11559
11560 2000-07-31  Anthony Green  <green@redhat.com>
11561
11562         * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
11563
11564 2000-07-31  Jason McMullan  <jmcmullan@linuxcare.com>
11565
11566         * builtins.c (expand_builtin_apply): Don't defer pop during
11567         argument setup.
11568
11569 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11570
11571         * calls.c (combine_pending_stack_adjustment_and_call): Only use
11572         preferred_unit_stack_boundary when it is > 1.
11573
11574 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11575
11576         * c-common.c (init_function_format_info): Add C99 format functions
11577         in C99 mode.
11578
11579         * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
11580         void' or 'register void' as being the special case of 'void' alone
11581         in a parameter list.
11582
11583         * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
11584         discarding qualifiers into a plain warning.
11585
11586 2000-07-31  Kazu Hirata  <kazu@hxi.com>
11587
11588         * combine.c: Fix formatting.
11589
11590         * h8300.md: Fix formatting.
11591
11592         * local-alloc.c: Fix formatting.
11593
11594         * h8300.c (get_shift_alg): Remove the variable alg.
11595         (emit_a_shift): Rearrange code to improve readability.
11596
11597         * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
11598
11599         * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
11600         HImode on all architectures and a combination of HImode and SImode
11601         on H8/300H and H8/S.
11602
11603         * h8300.c (split_adds_subs): Rearrange code for conciseness.
11604
11605 Mon Jul 31 12:27:55 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11606
11607         * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
11608         in my last checkin.
11609
11610 Mon Jul 31 10:41:01 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11611
11612         * recog.c (extract_insn): Set operand_mode according to
11613         operand if match_operand is VOIDmode.
11614
11615 Mon Jul 31 10:36:38 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11616
11617         * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
11618
11619 2000-07-31  Geoff Keating  <geoffk@cygnus.com>
11620
11621         * c-parse.in (extdefs): Call ggc_collect between external
11622         definitions.
11623
11624 2000-07-30  Michael Hayes  <mhayes@cygnus.com>
11625             Richard Henderson  <rth@cygnus.com>
11626
11627         * Makefile.in (OBJS): Add doloop.o.
11628         * doloop.c: New file.
11629
11630         * final.c (insn_current_reference_address): Return 0 before final.
11631         * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
11632         * jump.c (any_uncondjump_p): Likewise.
11633         * loop.c (indirect_jump_in_function): Make static.
11634         (strength_reduce): Call doloop_optimize.
11635         (insert_bct, instrument_loop_bct): Remove.
11636         * loop.h (doloop_optimize): Prototype.
11637         * recog.c (split_all_insns): Split all INSN_P.
11638         * toplev.c (flag_branch_on_count_reg): Default on.
11639
11640         * config/c4x/c4x.c (c4x_optimization_options): Don't set
11641         flag_branch_on_count_reg.
11642         * config/i386/i386.c (override_options): Likewise.
11643         * config/rs6000/rs6000.c (optimization_options): Likewise.
11644
11645         * config/i386/i386.md (decrement_and_branch_on_count): Remove.
11646         (doloop_end): New.
11647         (dbra_ge): Remove, as well as all it's splitters.
11648
11649         * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
11650         (doloop_end): New.
11651
11652         * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
11653         (ia64_register_move_cost): Declare.
11654         * config/ia64/ia64.c (ar_lc_reg_operand): New.
11655         (struct ia64_frame_info): Add ar_size.
11656         (ia64_compute_frame_size): Set it.
11657         (save_restore_insns): Save and restore ar.lc.
11658         (ia64_register_move_cost): New, moved from header file.  Handle
11659         application registers.
11660         (REG_AR_PFS, REG_AR_EC): Remove.  Replace with AR_*_REGNUM numbers.
11661         (emit_insn_group_barriers): Special case doloop_end_internal.
11662         (ia64_epilogue_uses): Mark ar.lc live at end.
11663         * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
11664         (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
11665         (FIRST_PSEUDO_REGISTER): Make room.
11666         (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
11667         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
11668         (REG_ALLOC_ORDER): Update.
11669         (HARD_REGNO_MODE_OK): Update.
11670         (REGISTER_NAMES): Update.
11671         (enum reg_class): Add AR_M_REGS and AR_I_REGS.
11672         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
11673         (REGNO_REG_CLASS): Update.
11674         (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
11675         (REGISTER_MOVE_COST): Move out of line.
11676         (PREDICATE_CODES): Update.
11677         * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
11678         (addsi3_plus1_alt, adddi3_plus1_alt): New.
11679         (shladd_elim splitter): Allow constants in the predicate.
11680         (doloop_end, doloop_end_internal): New.
11681
11682 2000-07-30  Richard Henderson  <rth@cygnus.com>
11683
11684         * genattrtab.c (struct insn_def): Add lineno member.
11685         (struct insn_ent): Likewise.
11686         (struct attr_desc): Likewise.
11687         (struct delay_desc): Likewise.
11688         (struct function_unit_op): Likewise.
11689         (struct function_unit): Likewise.
11690         (check_attr_value): Use message_with_line.
11691         (check_defs): Likewise.
11692         (expand_units): Likewise.
11693         (check_attr_test): Take a lineno argument.
11694         (gen_attr): Likewise.
11695         (gen_insn): Likewise.
11696         (gen_delay): Likewise.
11697         (gen_unit): Likewise.
11698         (main): Give it to them.
11699         (convert_set_attr_alternative): Take an insn_def argument
11700         instead of num_alt and insn_index.
11701         (convert_set_attr): Likewise.
11702         (write_test_expr): Protect INSN_ADDRESSES load
11703         with INSN_ADDRESSES_SET_P.
11704
11705 2000-07-30  Richard Henderson  <rth@cygnus.com>
11706
11707         * flow.c (init_propagate_block_info): Use pc_set.
11708
11709 Sun Jul 30 20:58:34 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11710
11711         * i386.md (*lea_general_[123]) New insns and splits.
11712         (addsi3 to lea splitter): Handle other modes too.
11713         (shlsi3 to lea splitter): Likewise.
11714         (addhi_1_lea, shlhi_1_lea): New patterns.
11715         (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
11716
11717 Sun Jul 30 20:51:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11718
11719         * recog.c (general_operand, nonimmediate_operand): Accept
11720         any mode for VOIDmode CONSTANT_P operands.
11721
11722 Sun Jul 30 20:42:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11723
11724         * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
11725         instead of replace_rtx.
11726         * recog.c (validate_replace_rtx_subexp): New function.
11727         * recog.h (validate_replace_rtx_subexp): Declare.
11728
11729 Sun Jul 30 20:38:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11730
11731         * combine.c (simplify_set, make_extraction, make_compound_operation
11732         make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
11733         as force_to_mode argument.
11734
11735 Sun Jul 30 20:30:41 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11736
11737         * combine.c (if_then_else_cond): Be sure that mode fits in
11738         HOST_WIDE_INT.
11739
11740 Sun Jul 30 20:27:36 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11741
11742         * combine.c (record_promoted_value):  Allow bitsize of mode
11743         to be equivalent to HOST_BITS_PER_WISE_INT.
11744
11745 Sun Jul 30 20:25:21 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11746
11747         * function.c (assign_stack_local_1, assign_stack_temp_for_type):
11748         Do not call gen_mode_alignment when mode is BLKmode.
11749
11750 Sun Jul 30 20:21:54 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11751
11752         * loop.c (express_from_1): Fix call of simplify_gen_binary.
11753
11754 Sun Jul 30 20:08:37 MET DST 2000  Jan Hubicka  <jh@suse.cz>
11755
11756         * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
11757         VOIDmode implies both operands to be VOIDmode.
11758         (simplify_ternary_operation): Compute properly the mode of comparison.
11759         * combine.c (combine_simplify_rtx): Likewise.
11760
11761 2000-07-25  Michael Hayes  <mph@paradise.net.nz>
11762
11763         * basic-block.h (struct loops): New field rc_order.
11764         * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
11765         (flow_loops_free): Free rc_order.
11766         (flow_depth_first_order_compute): New parameter rc_order.
11767         (flow_loops_find): Allocate rc_order and swap usage with
11768         dfs_order.
11769
11770 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11771            Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11772
11773         * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
11774         (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
11775         (nodb_call, return_from_epilogue): Likewise.
11776         (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
11777         * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
11778         * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
11779         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
11780         (c4x_valid_type_attribute_p): Likewise.
11781         * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
11782         (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
11783
11784 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11785
11786         * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
11787         and loadhi_big_constant if applicable.
11788         * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
11789         and add new splitter.s
11790
11791 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11792
11793         * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
11794
11795 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11796
11797         * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
11798
11799 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11800
11801         * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
11802
11803 2000-07-30  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
11804
11805         * config/c4x/libgcc.S (divqf3): Improve accuracy.
11806
11807 2000-07-27  Mark Mitchell  <mark@codesourcery.com>
11808
11809         Put phi nodes after NOTE_INSN_BASIC_BLOCK.
11810         * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
11811         * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
11812         (get_prev_bb_note): Likewise.
11813         (remove_scope_notes): Likewise.
11814         * flow.c (commit_one_edge_insertion): Likewise.
11815         (merge_blocks_nomove): Likewise.
11816         (verify_flow_info): Likewise.
11817         * gcse.c (insert_insn_end_bb): Likewise.
11818         * reg-stack.c (emit_swap_insn): Likewise.
11819         * ssa.c (first_insn_after_basic_block_note): New function.
11820         (insert_phi_node): Use it.
11821         (rename_block): Likewise.
11822         (eliminate_phi): Likewise.
11823         (make_regs_equivalent_over_bad_edges): Likewise.
11824         (make_equivalent_phi_alternatives_equivalent): Likewise.
11825         (for_each_successor_phi): Likewise.
11826         (convert_from_ssa): Modify phi-node deletion algorithm.
11827
11828 2000-07-29  Andreas Jaeger  <aj@suse.de>
11829
11830         * configure.in (mips*-*-linux*): Use mips*el to check for little
11831         endian MIPS, add tmake_file.
11832
11833         * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
11834         (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
11835         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
11836
11837 2000-07-28  Richard Henderson  <rth@cygnus.com>
11838
11839         * config/ia64/ia64.c (ia64_print_operand): Fix typos.
11840         Sign extend mode size before negating.
11841
11842 2000-07-28  Richard Henderson  <rth@cygnus.com>
11843
11844         * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
11845
11846 2000-07-28  Bernd Schmidt  <bernds@cygnus.co.uk>
11847
11848         * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
11849         (cse_insn): Likewise.
11850         (addr_affects_sp_p): Likewise.
11851         * expr.c (move_by_pieces): Likewise.
11852         (clear_by_pieces): Likewise.
11853         * gcse.c (oprs_unchanged_p): Likewise.
11854         * haifa-sched.c (sched_analyze_2): Likewise.
11855         * recog.c (offsettable_address_p): Likewise.
11856         * regclass.c (record_address_regs): Likewise.
11857         * reload.c (find_reusable_reload): Likewise.
11858         (push_reload): Likewise.
11859         (operands_match_p): Likewise.
11860         (decompose): Likewise.
11861         (find_reloads_address_1): Likewise.
11862         (find_inc_amount): Likewise.
11863         * reload1.c (elimination_effects): Likewise.
11864         * resource.c (mark_set_resources): Likewise.
11865         * flow.c (attempt_auto_inc): New function; mostly broken out
11866         of find_auto_inc.
11867         (find_auto_inc): Split into two functions and enhanced to
11868         generate POST_MODIFY.
11869         * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
11870         * rtl.h (count_all_occurrences):  Declare.
11871         (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
11872         defined.
11873         * rtlanal.c (count_all_occurrences): New function.
11874         * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
11875         HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
11876
11877         * config/ia64/ia64-protos.h (destination_operand): Declare.
11878         * config/ia64/ia64.c (destination_operand): New function.
11879         (ia64_print_operand): Handle POST_MODIFY.
11880         (rtx_needs_barrier): Likewise.
11881         * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
11882         (HAVE_POST_MODIFY_REG): Define to 1.
11883         (MAX_REGS_PER_ADDRESS): Change to 2.
11884         (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
11885         (LEGITIMATE_ADDRESS_REG): New helper macro.
11886         (LEGITIMATE_ADDRESS_DISP): Likewise.
11887         (PREDICATE_CODES): Add entry for destination_operand.
11888         * config/ia64/ia64.md (all mov patterns): Use destination_operand
11889         predicate for operand 0.
11890
11891 2000-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11892
11893         * dwarf2out.c: Indent #error directive.
11894
11895         * gbl-ctors.h: Fix typo in comment.
11896         (__do_global_ctors): Prototype.
11897
11898         * gcse.c (record_one_set, pre_delete): Remove unused variables.
11899
11900         * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
11901         (print_operand): Initialize variable `t'.
11902
11903 2000-07-27  Aldy Hernandez  <aldyh@redhat.com>
11904
11905         * config/arm/arm.md ("call_value"): removed constraints.
11906         Constraints are ignored in expanders.
11907         (*call_value_reg): split =rf into various constraints.
11908         (*call_value_mem): same
11909         (*call_value_symbol): same
11910         (*sibcall_value_insn): same
11911
11912 2000-07-28  Philipp Thomas  <pthomas@suse.de>
11913
11914         * install.texi (--enable-nls): Change the description of the NLS
11915         related configure options to match the current state.
11916         (--with-included-gettext): Likewise.
11917         (--enable-maintainer-mode): New description added.
11918         * extend.texi (-fstrict-prototype): Add missing '.'.
11919
11920 2000-07-27  Jim Wilson  <wilson@cygnus.com>
11921
11922         * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
11923         DECL_INITIAL (decl) == NULL_TREE.
11924
11925 2000-07-27  Alexandre Oliva  <aoliva@redhat.com>
11926
11927         * Makefile.in (INSN_ATTR_H): New macro.  Replace all dependencies
11928         on insn-attr.h with it.
11929         * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
11930         * insn-addr.h: New header.
11931         (insn_addresses_): Renamed from insn_addresses.
11932         (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
11933         INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
11934         INSN_ADDRESSES_NEW): New macros.
11935         * genattrtab.c (write_test_expr): Use new macros.
11936         * final.c (insn_addresses, init_insn_lengths): Likewise.
11937         (align_fuzz, shorten_branches): Likewise.
11938         (final): Likewise.  Do not reject new insns if their addresses
11939         have been added to INSN_ADDRESSES.
11940         * config/arm/arm.c, config/avr/avr.c: Use new macros.
11941         * config/h8300/h8300.c, config/i370/i370.c: Likewise.
11942         * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
11943         * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
11944         * config/sh/sh.c: Likewise.
11945         (output_branchy_insn): Use INSN_ADDRESSES_NEW.
11946
11947         * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
11948
11949 2000-07-27  Andrew Cagney  <cagney@b1.cygnus.com>
11950
11951         * gcc.c (struct prefix_list): Add member priority.
11952         (enum path_prefix_priority): Declare.
11953         (add_prefix): Replace ``first'' with ``priority''.  Append new
11954         entry but keep list in priority order.
11955         (process_command): Update.  Pass PREFIX_PRIORITY_B_OPT or
11956         PREFIX_PRIORITY_LAST to add_prefix.
11957         (process_command): Move include kludge - foo/stageN - to before
11958         foo/include.
11959
11960 2000-07-27  Jason Merrill  <jason@redhat.com>
11961
11962         * dwarf2out.c (gen_typedef_die): Abort if we get identical
11963         TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
11964
11965 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
11966
11967         * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
11968         * tree.h (get_alias_set, lang_get_alias_set): Prototype.
11969
11970 2000-07-27  Joseph S. Myers  <jsm28@cam.ac.uk>
11971
11972         * c-decl.c (finish_function): Don't treat 'main' specially unless
11973         flag_hosted.  In C99 mode, return 0 from 'main' unless
11974         DEFAULT_MAIN_RETURN is otherwise defined.
11975
11976         * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
11977         parameters defaulting to int in an old-style function definition.
11978
11979 2000-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11980
11981         * c-parse.in (string): For -Wtraditional, warn about string
11982         concatenation only once per line.
11983
11984 Thu Jul 27 09:25:17 2000  Akiko Matsushita  <matusita@sra.co.jp>
11985
11986         * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
11987         for HI-UX/WE2 systems.
11988
11989 2000-07-24  Bruce Korb  <bkorb@gnu.org>
11990
11991         * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
11992         defining the __xxx_TYPE__ macros.
11993         * fixincl/fixincl.tpl(gnu_type_map): now obsolete
11994         * fixincl/fixlib.h: don't need to include "tm.h" anymore
11995         * fixincl/inclhack.def(type_map): now obsolete
11996
11997 Thu Jul 27 11:54:17 2000  Andrew Cagney  <cagney@b1.cygnus.com>
11998
11999         * cpp.texi: Append a trailing full-stop to xrefs where needed.
12000
12001 2000-07-26  Dave Pitts  <dpitts@cozx.com>
12002
12003         * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
12004         routine constants.
12005         (mvs_hash_alias): New function.
12006         (mvs_add_alias): Change argument spacing.
12007         (mvs_need_alias): Change aliasing criteria. Added documentation.
12008         (mvs_get_alias): Change to use hashed name. The hashed name prevents
12009         CSECT name collisions.
12010         (mvs_check_alias): Likewise.
12011         (handle_pragma): Change documentation.
12012         * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
12013         mode from SImode to DImode.
12014         (iorhi3): Changed LTORG size for insn.
12015
12016 Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
12017
12018         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
12019         mem if the address is a mode_dependent_address_p.
12020
12021 2000-07-26  Kazu Hirata  <kazu@hxi.com>
12022
12023         * h8300.c (print_operand): Print ":8" when the 'R' operand is
12024         suitable for 8-bit absolute.
12025         * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
12026         (OK_FOR_U): Add a case for the 8-bit constant address on the
12027         H8/300H.
12028
12029 Wed Jul 26 19:26:21 2000  Hans-Peter Nilsson  <hp@axis.com>
12030
12031         * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
12032         && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
12033         ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
12034         lack of implemented alignment.
12035
12036 2000-07-26  Geoffrey Keating  <geoffk@cygnus.com>
12037
12038         * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
12039         cross-compiling between 64-bit and 32-bit machines.
12040
12041 2000-07-27  Richard Henderson  <rth@cygnus.com>
12042
12043         * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
12044         (movhicc_astep, movhi_internal_astep): New.
12045         (movsicc_astep, movsi_internal_astep): New.
12046         (movdicc_astep, movdi_internal_astep): New.
12047         (movsfcc_astep, movsf_internal_astep): New.
12048         (movdfcc_astep, movdf_internal_astep): New.
12049         (movxfcc_astep, movxf_internal_astep): New.
12050         (cmovdi_internal_astep, cmovsi_internal_astep): New.
12051         Unify the cmov[ds]i splitters.
12052
12053 2000-07-27  Rodney Brown  <RodneyBrown@pmsc.com>
12054
12055         * real.c (asctoeg): Rename `error' label to unexpected_char_error
12056
12057 2000-07-26  Nick Clifton  <nickc@cygnus.com>
12058
12059         * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
12060         __arm__.  Allow it to be defined by CPP_ISA_SPEC in arm.h
12061
12062         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
12063         well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
12064
12065 2000-07-26  Alexandre Oliva  <aoliva@redhat.com>
12066
12067         * c-decl.c (finish_enum): Convert enumerations that fit in an
12068         `int' to `int'.
12069         (build_enumerator): In pedantic mode, cast to `int' those that
12070         don't.
12071
12072 2000-07-25  Rodney Brown  <RodneyBrown@pmsc.com>
12073
12074         * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
12075
12076 Tue Jul 25 23:08:33 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
12077
12078         * sh.md (cmpgtdi_t): Must be split.
12079         (cmpgtdi_t+1): New splitter.
12080
12081 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
12082
12083         * cpplib.c (_cpp_check_directive): Issue -Wtraditional
12084         warnings for indented directives even if we are skipping.
12085
12086 2000-07-25  Nathan Sidwell  <nathan@codesourcery.com>
12087
12088         * invoke.texi (strict-prototypes): Remove.
12089         * extend.texi (Deprecated Features): Add strict-prototypes.
12090         (Backwards Compatibility): New node.
12091
12092 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
12093
12094         * config/i386/i386.md (andsi_1+1): Allow HImode.
12095         (andsi_1+2): Require q_regs_operand.
12096
12097 2000-07-25  Jakub Jelinek  <jakub@redhat.com>
12098
12099         * config/i386/i386.md (call_pop): Check operands[0],
12100         not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
12101         (call): Likewise.
12102         (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
12103         (call_value): Likewise.
12104
12105 2000-07-25  Zack Weinberg  <zack@wolery.cumb.org>
12106
12107         * toplev.c (pipe_closed): Delete.
12108         (crash_signal): New.  Generate ICE for a fatal signal.
12109         (float_signal): Call crash_signal outside a float-handler
12110         block, not abort.
12111         (main): Install crash_signal as handler for core-dumping signals.
12112
12113 2000-07-25  David Edelsohn  <edelsohn@gnu.org>
12114
12115         * rs6000.c (print_operand, case 'T'): New case.
12116
12117         * rs6000.md (call_indirect_aix32): Convert to expander of
12118         scheduled instructions.
12119         (call_indirect_aix64): Likewise.
12120         (call_value_indirect_aix{32,64}): Likewise.
12121         (call, call_value): Invoke expanders for AIX.  Fall through to
12122         matchers for SysV.
12123         (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
12124         (call_value_indirect_nonlocal_aix{32,64}): New patterns.
12125         (call_nonlocal_aix32): Remove CALL_LONG alternative.  Operand 1
12126         only "g" constraint.
12127         (call_nonlocal_aix64): Likewise.
12128         (call_value_nonlocal_aix{32,64}): Likewise.
12129         (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
12130         operands.
12131         (call_value_nonlocal_sysv): New pattern.
12132         (indirect_jump{si,di}): Use new 'T' modifier.
12133         (tablejump{si,di} matchers): Likewise.
12134         (return_internal_{si,di}): Likewise.
12135         (return_eh_{si,di}): Likewise.
12136
12137 2000-07-24  Richard Henderson  <rth@cygnus.com>
12138
12139         * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
12140         * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
12141         * config/ia64/ia64.md (movdi_internal): Use it.
12142
12143 2000-07-24  Zack Weinberg  <zack@wolery.cumb.org>
12144
12145         * cppexp.c: Warn about unary + if -Wtraditional.
12146         * cpplex.c (lex_line): Always set BOL on the first token of a line.
12147
12148 2000-07-24  Michael Meissner  <meissner@redhat.com>
12149
12150         * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
12151         unsupported macro.
12152
12153 2000-07-24  Nick Clifton  <nickc@cygnus.com>
12154
12155         * config/arm/arm.c (emit_multi_reg_push): Generate a
12156         REG_FRAME_RELEATED_NOTE that is compatable with the code in
12157         dwarf2out_debug_frame_expr.
12158
12159 2000-07-24  Jason Merrill  <jason@redhat.com>
12160
12161         * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
12162         UNALIGNED_INT_ASM_OP.
12163         (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
12164         a location expression.
12165         (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff.  Don't
12166         assume indirect access if we're saving the CFA address exactly.
12167
12168         * Makefile.in (bootstrap): Move -BstageN/ to the end.
12169
12170 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
12171
12172         * tradcpp.c (main): Update max_include_len for cpp_include_defaults
12173         as well.
12174
12175 2000-07-24  Michael Meissner  <meissner@redhat.com>
12176
12177         * invoke.texi (D30V Options): Add d30v options.
12178
12179 Mon Jul 24 02:04:52 2000  Jeffrey A Law  (law@cygnus.com)
12180
12181         * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
12182         needed by our gcse pass anymore.
12183         (free_pre_mem): Corresponding changes.
12184         (compute_pre_data): Do not call compute_transpout anymore.
12185
12186         * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
12187         (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
12188         changes.
12189
12190         * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
12191         (compute_pre_data): Do it here instead.
12192
12193         * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
12194         'temp_bitmap'.
12195         (pre_delete): Corresponding changes.
12196
12197 2000-07-23  Mark Mitchell  <mark@codesourcery.com>
12198
12199         * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
12200         to figure out whether or not a variable has already been emitted.
12201
12202 Sun Jul 23 14:49:12 2000  Jason Eckhardt  <jle@cygnus.com>
12203
12204         * config/i860/i860.md (untyped_call expander): Use GEN_CALL
12205         instead of gen_call.
12206
12207 Sun Jul 23 11:52:03 2000  George Helffrich (george@gly.bris.ac.uk)
12208
12209         * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
12210
12211 2000-07-23  Kazu Hirata  <kazu@hxi.com>
12212
12213         * h8300.c: Fix formatting.
12214
12215 2000-07-23  Joseph S. Myers  <jsm28@cam.ac.uk>
12216
12217         * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
12218         for `long' switch expression into a plain warning.
12219
12220         * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
12221         (yylex): Don't pedwarn for "inline" in C99 mode.
12222
12223         * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
12224         with %p.
12225         * ggc-page.c (debug_print_page_list, alloc_page, free_page,
12226         ggc_alloc): Likewise.
12227         * bb-reorder.c (dump_scope_forest_1): Likewise.
12228
12229 2000-07-22  Aldy Hernandez  <aldyh@redhat.com>
12230
12231         * reload.c (find_reloads_toplev): Add new parameter
12232         "address_reloaded".
12233         (find_reloads): Add new parameter to find_reloads_toplev calls.
12234
12235 2000-07-22  Jeffrey Oldham  <oldham@codesourcery.com>
12236
12237         * collect2.c (main): Typo fixed.
12238         * diagnostic.c: Typo fixed.
12239         * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
12240         * eh-common.h: Typo fixed.
12241         * emit-rtl.c (start_sequence): Typo fixed.
12242         * flow.c (find_label_refs): Typo fixed.
12243         (calculate_global_regs_live): Typo fixed.
12244         (mark_regno_cond_dead): Typo fixed.
12245         (create_edge_list): Typos fixed.
12246         (verify_edge_list): Typo fixed.
12247         * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
12248         * loop.c (strength_reduce): Typo in function name fixed.
12249         * rtl.h: Added comments.  Typo in function name fixed.
12250         * rtlanal.c: Typo in function name fixed.
12251         (insn_dependant_p): Rename to ...
12252         (insn_dependent_p): ... this.
12253         (computed_jumo_p): Typo fixed.
12254
12255 2000-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12256
12257         * system.h (__FUNCTION__): Wrap definition in #ifndef.
12258
12259 2000-07-21  David Edelsohn  <edelsohn@gnu.org>
12260
12261         * rs6000.h (SIZE_TYPE): Define.
12262
12263 2000-07-21  Mark Mitchell  <mark@codesourcery.com>
12264
12265         * ssa.c (rename_insn_1): Don't rename registers that are
12266         CLOBBERed.
12267
12268 2000-07-21  Zack Weinberg  <zack@wolery.cumb.org>
12269
12270         * diagnostic.c (trim_filename, fancy_abort): Moved here from
12271         rtl.c.
12272         (fatal_function, set_fatal_function): Removed.
12273         (fatal): Don't prepare for or call the fatal_function.
12274         (diagnostic_lock, error_recursion): New.
12275         (diagnostic_for_decl, report_diagnostic): Guard against
12276         re-entering the error reporting routines.
12277         (fancy_abort): Assume function is not NULL.
12278
12279         * errors.c (fancy_abort): New.  Assume function is not NULL.
12280         * tradcpp.c (fancy_abort): Assume function is not NULL.
12281
12282         * system.h: Provide default definition of __FUNCTION__.
12283         * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
12284         Always use __FUNCTION__ in definition of abort.
12285         * tree.h: Likewise.
12286         * varray.h: Likewise.
12287         * toplev.h: Likewise.  Don't prototype set_fatal_function.
12288
12289 2000-07-20  Geoff Keating  <geoffk@cygnus.com>
12290
12291         * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
12292         in 64-bit mode.
12293         * glimits.h: Don't do #if defined for ARCH_PPC.
12294
12295         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
12296         constants of size no larger than a pointer should go in the TOC.
12297         Add 'MODE' parameter.
12298         (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
12299         ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
12300         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
12301         * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
12302         * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
12303         * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
12304         (rs6000_legitimize_address): Likewise.
12305         (rs6000_emit_move): Likewise.
12306         (rs6000_select_rtx_section): Likewise.
12307         (output_toc): Deal properly with outputting small constants like
12308         HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
12309         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
12310         MODE parameter.  Put small constants in the TOC.
12311
12312         * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
12313         easy in SImode.
12314         (rs6000_emit_move): When reload calls us with an illegitimate
12315         address, exit early.  Move the change_address calls to one place
12316         at the end of the routine.  Merge the SImode and DImode expanders.
12317         When called by reload to put an integer into a FP register, force
12318         it to memory.
12319
12320         * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
12321         field.
12322         (rs6000_hash_constant): Hash mode too.
12323         (toc_hash_function): Allow for key_mode.
12324         (toc_hash_eq): Structures are different if key_mode differs.
12325         (output_toc): Add 'mode' parameter.  Save key_mode.
12326         * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
12327         Pass 'mode' parameter.
12328         * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
12329
12330         * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
12331         for vtable references.
12332
12333         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
12334         choice, don't put integer values in FP regs.
12335
12336 Thu Jul 20 18:13:52 2000  Jeffrey A Law  (law@cygnus.com)
12337
12338         * flow.c (verify_flow_info): Revamp code to verify that the
12339         head and end of each basic block are in the insn chain.
12340
12341 Thu Jul 20 18:02:35 2000  Michael Matz <matzmich@cs.tu-berlin.de>
12342
12343         * gcse.c (record_one_set): Prepend instead of append onto
12344         reg_set_table, making it O(n) instead O(n^2).
12345         * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
12346         Use a queue instead of a stack as worklist.
12347
12348 2000-07-20  Kazu Hirata  <kazu@hxi.com>
12349
12350         * h8300.c (two_insn_adds_subs_operand): Fix a typo.
12351         * h8300.h (OK_FOR_T): New.
12352         (EXTRA_CONSTRAINT): Support OK_FOR_T.
12353         * h8300.md: Use inc/dec.[wl] for increment/decrement
12354         by 1 and 2 in HI and SI modes.
12355
12356 2000-07-20  Jim Wilson  <wilson@cygnus.com>
12357
12358         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
12359         larger than 14 bits.
12360
12361 2000-07-20  Zack Weinberg  <zack@wolery.cumb.org>
12362
12363         * cppmacro.c (CAN_PASTE_AFTER): New macro.
12364         (count_params): Don't set GNU_REST_ARGS on anything.
12365         (save_expansion): Set PASTE_LEFT only on tokens for which
12366         CAN_PASTE_AFTER is true, or which are named operators.
12367
12368         * cpplex.c (parse_args): Distinguish between a rest argument
12369         given one empty argument, and a rest argument given zero arguments.
12370         (maybe_paste_with_next): Look for VOID_REST tag, and trigger
12371         deletion of previous token based on that.
12372         (get_raw_token): Flatten some control structure.
12373
12374         * cpplib.h (CPP_LAST_EQ): Correct.
12375         (VOID_REST): New token flag.
12376         (GNU_REST_ARGS): Delete.
12377
12378         * tradcpp.c (main): Don't munge -D options.
12379         (make_definition): Bring -D handling in line with cpplib.
12380         (do_define): Strip all leading whitespace from macro definitions.
12381
12382 2000-07-20  David Billinghurst <David.Billinghurst@riotinto.com.au>
12383
12384         * Makefile.in (tradcpp): Depend on intl.o and version.o.
12385
12386 2000-07-20  Bruce Korb  <bkorb@gnu.org>
12387
12388         * fixincl/check.tpl: strip the platform specific types before testing
12389         * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
12390         * fixincl/fixincl.tpl: use platform specific types
12391         * fixincl/fixlib.h: include the platform specific types
12392         * fixincl/inclhack.def(gnu_types): don't supply the types
12393         * fixincl/fixincl.x: regen
12394
12395 2000-07-19  Jim Wilson  <wilson@cygnus.com>
12396
12397         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
12398         GR_REGS.
12399
12400 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
12401
12402         * tradcpp.c (rescan): Do not recognize directives when the #
12403         is indented.
12404
12405 2000-07-19  Zack Weinberg  <zack@wolery.cumb.org>
12406
12407         Implement C++ named operators.
12408
12409         * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
12410         of operators allowed in #if and having an _EQ variant.  Add
12411         CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
12412         (cpp_token flags): Add NAMED_OP.
12413         (enum node_type): Add T_OPERATOR.
12414         (struct cpp_hashnode): Add code slot to value union.
12415         * cpphash.h (spec_nodes): Remove n_defined.
12416
12417         * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
12418         (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
12419         (is_macro_disabled): Tweak error messages.
12420
12421         * cpplib.c (get_define_node): Disallow all named operators as
12422         macro names.  Tweak error messages.
12423         (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
12424
12425         * cppinit.c (builtin_array): Add entries for the named operators.
12426         * cppexp.c (lex): Check for CPP_DEFINED token.
12427         (priority table): Add entries for CPP_MIN and CPP_MAX.
12428         (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
12429
12430 2000-07-19  Bernd Schmidt  <bernds@cygnus.co.uk>
12431
12432         * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
12433         larger than the array of cuids.
12434         (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
12435         cuids.
12436
12437 2000-07-19  Bruce Korb  <bkorb@gnu.org>
12438
12439         * fixinc/fixincl.c:  Convert to using a table of environment variables
12440         and activate the auto-edit marker on the fixed output files.
12441         * fixinc/fixlib.h:  Define the environment table
12442         * fixinc/fixincl.sh: export the ${INPUT} dir
12443         * fixinc/check.tpl: likewise
12444
12445 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
12446
12447         * gcc.c (.h spec): Fix typo.
12448
12449 Wed Jul 19 01:22:15 CEST 2000  Marc Espie  <espie@cvs.openbsd.org>
12450
12451         * Makefile.in: Fix tradcif.c path.
12452
12453 2000-07-18  Zack Weinberg  <zack@wolery.cumb.org>
12454
12455         * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
12456           macros, not five.
12457
12458         * cpphash.h (TOKEN_NAME): New macro.
12459         (_cpp_spell_operator): Deleted.
12460         (token_spellings): Now _cpp_token_spellings.
12461
12462         * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
12463         * cpplex.c: Use OP and TK macros when expanding the
12464         TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
12465         store the stringification of the enumeration name (CPP_CHAR,
12466         etc.) in the name slot of token_spellings.
12467         Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
12468         token_spellings directly.
12469         * cpplib.c: Use TOKEN_SPELL.
12470
12471         * cpplex.c (_cpp_push_token): If the token being pushed back
12472         is the previous token in this context, just subtract one from
12473         context->posn.
12474         * cppmacro.c (save_expansion): Clear aux field when storing a
12475         placemarker.
12476
12477 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
12478
12479         * cpplex.c (cpp_scan_buffer): Output line command even at the stop
12480         buffer, provided it is not NULL.
12481
12482 2000-07-18  Alexandre Oliva  <aoliva@redhat.com>
12483
12484         * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
12485         case of invalid volatile re-declaration.
12486
12487 2000-07-18  Jakub Jelinek  <jakub@redhat.com>
12488
12489         * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
12490         (expand_call): Adjust caller.
12491
12492 2000-07-17  Gabriel Dos Reis  <gdr@codesourcery.com>
12493
12494         * diagnostic.h (report_diagnostic): Change prototype.
12495
12496         * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
12497         diagnostic_for_decl):  Change prototype.
12498         (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
12499         error, warning, error_with_file_and_line,
12500         warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
12501         Adjust call to report_diagnostic, diagnostic_for_decl.
12502         (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
12503         (output_verbatim, verbatim): Adjust call to output_do_verbatim.
12504
12505         * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
12506         varaible argument list.
12507
12508 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
12509
12510         * cpphash.c: Don't include hashtab.h.  Most macro-handling code
12511         moved to cppmacro.c.
12512         (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
12513         dump_hash_helper): Delete.
12514         (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
12515         cpp_forall_identifiers): New. Implement specialized version of
12516         Vlad's expandable hash table.
12517         (cpp_lookup): Use new functions.
12518         (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
12519         implementation.
12520         * cppmacro.c: New file.
12521         * cppinit.c (dump_macros_helper): New.
12522         (cpp_finish): Iterate over the identifier table directly.
12523         * cpplex.c (parse_name): Calculate the hash of the identifier
12524         while we scan it.  Use _cpp_lookup_with_hash when we can.
12525
12526         * cpphash.h: Update prototypes.
12527         (xcnewvec, HASHSTEP): New helper macros.
12528         * cpplib.h: Update prototypes.
12529         * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
12530         (cppmacro.o): New rule.
12531         (cpphash.o): Update deps.
12532
12533         * cppmain.c: Do not set pfile->printer if no_output is on.
12534
12535 2000-07-15  Neil Booth  <neilb@earthling.net>
12536
12537         * cpplib.c: Change all directive-handler functions to return
12538         void, not int.
12539         * cpphash.h: Update typedefs.
12540
12541 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
12542
12543         * configure: Regenerate.
12544
12545         * extend.texi (Extended Asm): Mention that a memory clobber
12546         does not count as a side-effect.
12547
12548         * unroll.c (copy_loop_body): Fix one instance of using host
12549         arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
12550         cross-compile.
12551
12552         * tlink.c (scan_linker_output): Tweak for output of AIX ld.
12553
12554 2000-07-17  Richard Henderson  <rth@cygnus.com>
12555
12556         * config/ia64/ia64.md (movdi): Split out load address code.
12557         New post-reload splitter for symbolic operands.
12558         (movdi_internal): Abort if we didn't split symbolic operands
12559         when we should have.
12560         * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
12561         (ia64_reorg): Split insns when not optimizing.
12562         * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
12563
12564 Mon Jul 17 23:43:26 MET DST 2000  Jan Hubicka  <jh@suse.cz>
12565
12566         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
12567         instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
12568
12569 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
12570
12571         * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
12572
12573 2000-07-17  Jason Merrill  <jason@redhat.com>
12574
12575         * Makefile.in (clean): Remove libgcc directory.
12576
12577         * configure.in (-Wno-long-long check): Use higher-level macros.
12578
12579 2000-07-17  Zack Weinberg  <zack@wolery.cumb.org>
12580
12581         * simplify-rtx.c (simplify_binary_operation): Recognize
12582            (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
12583         (simplify_ternary_operation):  Do not examine MODE_BITSIZE of
12584            a CONST_INT, it will always be zero.
12585
12586 2000-07-17  Chandrakala Chavva   <cchavva@cygnus.com>
12587
12588         * loop.c (check_dbra_loop) : Return if more than one condition is
12589         present to control the loop.
12590
12591 Mon Jul 17 08:26:35 2000  Clinton Popetz  <cpopetz@cygnus.com>
12592
12593         * mips.c (mips_expand_prologue): Don't calculate the last argument
12594         register unless we need it.  When we are calculating this, make
12595         sure FUNCTION_ARG is giving us a REG.
12596
12597 2000-07-17  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12598
12599         * flow.c (libcall_dead_p): Use single_set to verify the insn
12600         has only one set and get for analysis.
12601         (propagate_one_insn): Don't pass the PATTERN of the insn.
12602
12603 2000-07-17  Mark Klein <mklein@dis.com>
12604
12605          * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
12606
12607 2000-07-17  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
12608
12609         * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
12610         * configure.in (TARGET_GETGROUPS_T): Evaluate.
12611         * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
12612         of second argument of getgroups.
12613         * configure, config.in: Rebuilt.
12614
12615 2000-07-17  Geoffrey Keating  <geoffk@cygnus.com>
12616
12617         * simplify-rtx.c (simplify_relational_operation): Two signed
12618         values with equal high words are less/greater than each other if
12619         their low words are less/greater when considered as unsigned.
12620
12621 Mon Jul 17 02:37:06 2000  Marc Espie <espie@openbsd.org>
12622
12623         * configure.in (vax-*-openbsd):  Change to new style configuration,
12624         add collect2/float_format information.
12625         * configure:  Rebuilt.
12626         * config/vax/openbsd1.h:  New.
12627         * config/vax/openbsd.h:  New.
12628         * config/vax/t-openbsd:  New.
12629
12630 2000-07-17  Chip Salzenberg  <chip@valinux.com>
12631
12632         * c-common.c (shorten_compare): Quiet warnings about unsigned
12633         comparisons with zero when they occur in a system header.
12634
12635 2000-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
12636
12637         * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
12638         update to describe current practice.
12639
12640         * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
12641
12642         * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
12643         references to C9X.  Change references to -fstd and -flang-isoc9x
12644         to refer to -std.
12645
12646         * c-common.c (scan_char_table): Allow "z" length modifiers on
12647         diouxXn formats.
12648         (check_format_info): Use TYPE_DOMAIN on the type matched against
12649         for "z" formats, to retrieve the language size_t rather than the
12650         internal one.
12651
12652         * c-common.c (check_format_info): Do not make a pedantic objection
12653         to the 'L' length modifier if used with a floating point type
12654         character.
12655
12656         * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
12657         constants in C99 mode.
12658
12659 2000-07-17  Kazu Hirata  <kazu@hxi.com>
12660
12661         * h8300.md: Fix the format of mac.
12662         (movsi_h8300hs): Output a tab after stmac instead of a space.
12663
12664         * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
12665         profitable adds/subs sequences.
12666
12667         * fold-const.c: Fix comment typos.
12668
12669 2000-07-16  Laurynas Biveinis  <lauras@softhome.net>
12670
12671         * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
12672
12673 2000-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12674
12675         * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
12676
12677 2000-07-16  Neil Booth  <NeilB@earthling.net>
12678
12679         * cpplex.c: Update comments.
12680         * README.Portability: Small update.
12681
12682 2000-07-16  Neil Booth  <NeilB@earthling.net>
12683
12684         * README.Portability:  Small update.
12685
12686 2000-07-15  Richard Henderson  <rth@cygnus.com>
12687
12688         * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
12689         * config/ia64/ia64.c (ia64_move_ok): New function.
12690         * config/ia64/ia64.md (movqi, movqi_internal): Use it.
12691         (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
12692
12693 2000-07-15  Zack Weinberg  <zack@wolery.cumb.org>
12694
12695         * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
12696         immediately following a paste operator.
12697         * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
12698         (cpp_reader_init): Call it, if HOST_EBCDIC.
12699         (cpp_handle_options): Do not sort option list here.
12700         (handle_option): Rename to cpp_handle_option and export.
12701         * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
12702         _cpp_get_token directly.
12703         (cpp_scan_line): Return 0 at EOF, 1 otherwise.
12704         * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
12705         * cpplib.h: Prototype cpp_handle_option.  Update prototype of
12706         cpp_scan_line.
12707
12708 2000-07-15  Richard Henderson  <rth@cygnus.com>
12709
12710         * fold-const.c (extract_muldiv): Don't optimize past an unsigned
12711         cast around an expression.  Tidy other unsigned tests.
12712
12713 2000-07-15  Gabriel Dos Reis  <gdr@codesourcery.com>
12714
12715         * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
12716         v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
12717         (v_message_with_decl): Rename to ...
12718         (format_with_decl): ... this. Tweak
12719         (diagnostic_for_decl): New function.
12720         (fatal_io_error): Use verbatim in lieu of notice.
12721         (announce_function): Use verbatim.
12722         (default_print_error_function): Likewise.
12723         (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
12724         infratructure.
12725
12726 2000-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12727
12728         * mips.c (function_arg_pass_by_reference): Don't do automatic
12729         aggregate initialization.
12730         (machine_dependent_reorg): Initialize variable `mode'.
12731
12732         * mips.md (absdi2): Change variable `regno1' to unsigned int.
12733         (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
12734         conflicts with sys/param.h macro of the same name.
12735         (reload_outdi): Likewise.
12736
12737 2000-07-15  Michael Meissner  <meissner@redhat.com>
12738
12739         * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
12740         == CONST + INCREMENT, don't overwrite the tree node for FOO++,
12741         create a new node instead.
12742
12743 2000-07-15  Neil Booth  <NeilB@earthling.net>
12744
12745         * README.Portability: Correct example about calling a function
12746         through a pointer to function.  Format wide paragraphs.
12747
12748 2000-07-15  Michael Meissner  <meissner@redhat.com>
12749
12750         * README.Portability: Update integer suffixes and function
12751         prototype sections.
12752
12753 2000-07-15  Neil Booth  <NeilB@earthling.net>
12754
12755         * README.Portability: Small update.
12756
12757 2000-07-15  Neil Booth  <NeilB@earthling.net>
12758
12759         * README.Portability: New file.
12760
12761 Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
12762
12763         * INSTALL: Give special instructions for building GCC on Irix 6.
12764         * config/mips/x-iris6 (CC): Don't set it.
12765         (OLDCC): Likewise.
12766
12767 2000-07-14  Jason Merrill  <jason@redhat.com>
12768
12769         * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
12770         register in the stack and later in another register, use the new
12771         register.
12772
12773 Fri Jul 14 10:25:53 2000  Clinton Popetz  <cpopetz@cygnus.com>
12774
12775         * config/mips/mips.md: (absdi2): Handle sign_extend for
12776         second operand.
12777
12778 2000-07-14  Nathan Sidwell  <nathan@codesourcery.com>
12779
12780         * cpplib.c (do_pragma_dependency): Tidy warning messages.
12781
12782 2000-07-14  Zack Weinberg  <zack@wolery.cumb.org>
12783
12784         * .cvsignore: Correct typo.
12785
12786 2000-07-13  Mark Mitchell  <mark@codesourcery.com>
12787
12788         * .cvsignore: Add generated YACC files.
12789         * objc/.cvsignore: New file.
12790
12791 2000-07-14  Neil Booth  <NeilB@earthling.net>
12792
12793         * cpplex.c (adjust_column): New funcion.
12794         (skip_whitespace): Use it.
12795         (skip_block_comment): Use it, and warn about /*/* with
12796         -Wcomments.
12797
12798 2000-07-14  Neil Booth  <NeilB@earthling.net>
12799
12800         * cpphash.c (struct macro_info): Add new members.
12801         (_cpp_free_definition): Delete the macro directly.
12802         (count_params): Return void, with first token of
12803         expansion in struct macro_info on success.
12804         (parse_define): Return int.  Hoist syntax checking from
12805         save_macro_expansion.  Leave call to save_expansion to
12806         _cpp_create_definition.
12807         (alloc_macro): Needs just 2 arguments.
12808         (free_macro): Delete.
12809         (save_expansion): Don't perform syntax check.
12810         (_cpp_create_definition): Call save_expansion.
12811
12812 2000-07-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12813
12814         * genrecog.c (write_header): Split long string.
12815
12816         * cpphash.c (macro_info): Don't use the `signed' keyword.
12817
12818         * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
12819
12820 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
12821
12822         * calls.c (stored_args_map): New variable.
12823         (check_sibcall_argument_overlap_1): New.
12824         (check_sibcall_argument_overlap): New.
12825         (expand_call): Initialize stored_args_map.
12826         Call check_sibcall_argument_overlap.
12827
12828 2000-07-13  Bruce Korb  <bkorb@gnu.org>
12829
12830         * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
12831         (emit_gnu_type): utility procedure for gnu_type_fix
12832         (gnu_type_fix): implement various pre-processor guards around
12833         standard types so these types can be defined over and over
12834         * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
12835         types alluded to above will have GNU-compliant base types
12836         * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
12837         * fixinc/inclhack.def: add test_text entries and utilize the new
12838         "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
12839         * fixinc/fixincl.x: regenerate
12840
12841 2000-07-12  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12842
12843         * diagnostic.c (vline_wrapper_message_with_location,
12844         v_message_with_file_and_line, v_error_with_file_and_file,
12845         v_error_for_asm, v_warning_for_asm, vfatal,
12846         v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
12847         vsorry, verror, vwarning, vpedwarn): Remove.
12848         (diagnostic_for_asm): New function.
12849         (pedwarn, error, warning, pedwarn_with_file_and_line,
12850         error_with_file_and_line, warning_with_file_and_line, sorry,
12851         error_for_asm, warning_for_asm, fatal): Reimplement.
12852         (finish_diagnostic): Clear diagnostic info as well.
12853
12854 2000-07-13  Neil Booth  <NeilB@earthling.net>
12855
12856         * c-common.h (flag_digraphs): New.
12857         * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
12858         * c-lex.c (yylex): Use flag_digraphs to decide whether to
12859         honour digraphs.
12860
12861 2000-07-13  Zack Weinberg  <zack@wolery.cumb.org>
12862
12863         * gcc.c (do_spec_1): Add new %B operator.
12864         (set_input): Prepare for %B.
12865
12866         (link_command_spec): Move up with the other tm.h-
12867         overrideable specs.  Factor out the portion conditional on
12868         LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
12869         (struct compiler): Just have a single spec string.  All users
12870         updated.
12871         (default_compilers): Remove unnecessary braces.
12872         (static_specs): Update.
12873
12874         (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
12875         named specs.
12876         (C and assembly specs): Use the new named specs, as appropriate.
12877
12878         * objc/lang-specs.h: Use the new named specs.
12879         Remove unnecessary braces.
12880
12881 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
12882
12883         * gcc.c (execute): If a subprocess gets a fatal signal, report
12884         strsignal() of the signal number, and ask for a bug report.
12885         Do not do this for SIGPIPE if there's already been an error.
12886
12887         * tradcpp.c: Don't include signal.h.  Don't catch SIGPIPE.
12888         Delete pipe_closed.
12889
12890         * tradcif.c: Remove.
12891
12892 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
12893
12894         * final.c (profile_function): Do not emit profile counters in
12895         the data section, if NO_PROFILE_COUNTERS is defined.
12896         * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
12897         FUNCTION_PROFILER.
12898
12899         * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
12900         (FUNCTION_PROFILER): Just emit a call to mcount.
12901
12902 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
12903
12904         * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
12905
12906         * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
12907         cpplib.c, cpplib.h: Eradicate all traces of code dependent on
12908         traditional, lang_chill, or lang_fortran.
12909
12910         * cppfiles.c: #undef strcmp to suppress warning about macros
12911         used without arguments.
12912         (_cpp_execute_include): Use f, not fname, in "No include path"
12913         error.
12914         (_cpp_pop_file_buffer): New function.
12915         * cpplib.c: Don't include <sys/mman.h>.
12916         (cpp_push_buffer): Set line_base and lineno in new buffer.
12917         (cpp_pop_buffer): Use _cpp_pop_file_buffer.
12918
12919         * cpplex.c: Move all prototypes and structure declarations to the
12920         top of the file.  Properly parenthesise some macro arguments.
12921         (cpp_scan_line): New function.
12922         (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
12923         don't need to walk up the stack counting.
12924
12925 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12926
12927         * c-common.c (combine_strings): Emit a pedantic warning when a
12928         string length is greater than the minimum ANSI C is required
12929         to support.
12930
12931 Wed Jul 12 13:24:30 2000  Jeffrey A Law  (law@cygnus.com)
12932
12933         * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
12934         * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
12935
12936 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12937
12938         * c-decl.c (define_label): Warn about identifier conflicts with
12939         labels in traditional C.
12940
12941         * c-parse.in (unop +): Warn about the unary plus operator for
12942         traditional C.
12943
12944         * c-typeck.c (store_init_value): Warn about automatic aggregate
12945         initialization for traditional C.
12946
12947         * invoke.texi (-Wtraditional): Document new warnings.
12948
12949 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
12950
12951         * Makefile.in (c-errors.o): Fix thinko in dependency.
12952
12953 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
12954
12955         * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
12956         -traditional, -ftraditional, or -traditional-cpp was given.
12957         Do not pass -traditional to the preprocessor.
12958         (.S spec): Likewise.  Don't bother defining __ASSEMBLER__, the
12959         preprocessor does it automatically.
12960         * objc/lang-specs.h: Likewise.  Don't bother defining __OBJC__.
12961
12962         * ch/lang-specs.h: Always use tradcpp.  Do not pass
12963         -traditional, -trigraphs, or -pedantic to the preprocessor.
12964         * f/lang-specs.h (.F spec): Likewise.  Don't bother defining
12965         _LANGUAGE_FORTRAN.
12966
12967 2000-07-12  Zack Weinberg  <zack@wolery.cumb.org>
12968
12969         * cppexp.c (LOGICAL): Delete macro.
12970         (_cpp_parse_expr): Do not use UNARY for unary +.  Implement ||
12971         and && directly.
12972
12973         * cpphash.c (HASHSIZE): Increase to 4096.
12974         (struct hashdummy): Add hash field.
12975         (eq_HASHNODE): Compare unreduced hashes, then lengths, then
12976         the string values using memcmp.
12977         (cpp_lookup): Set dummy.hash.
12978
12979 Wed Jul 12 13:15:16 2000  Marc Espie <espie@openbsd.org>
12980
12981         * configure.in (m88k-openbsd): Express configuration using new fragment
12982         style.
12983         * configure: Rebuilt.
12984         * m88k/aout-dbx.h: New.
12985         * m88k/openbsd.h: New.
12986         * m88k/xm-openbsd.h: New.
12987
12988 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12989
12990         * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
12991
12992 2000-07-12  Richard Henderson  <rth@cygnus.com>
12993
12994         * reload.c (push_secondary_reload): Make sure to add the new
12995         reload at the end, after acquiring secondary memory.
12996
12997 2000-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12998
12999         * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
13000
13001         * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
13002         lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
13003
13004         * c-parse.in (stmt): Delete unused variables.
13005
13006         * convert.c (convert_to_vector): Likewise.
13007
13008         * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
13009
13010         * tree.c (finish_vector_type): Prototype.
13011
13012 2000-07-12  Bruce Korb  <bkorb@gnu.org>
13013
13014         * fixinc/fixfixes.c: use xmalloc
13015         * fixinc/fixincl.c(initialize): set program name for xmalloc
13016         * fixinc/fixlib.c(must_malloc): obsolete
13017         (is_cxx_header): no longer used - disabled
13018         (skip_quote): inserted and disabled for future use
13019         * fixinc/fixlib.h: reflects above
13020         * fixinc/fixtests.c: removed dinkleberries
13021
13022 2000-07-12  Neil Booth  <NeilB@earthling.net>
13023
13024         * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
13025         * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
13026
13027         * cpphash.c: (struct macro_info, alloc_macro, free_macro,
13028         struct toklist_dummy): New.
13029         (cpp_free_definition): Free macros with free_macro.
13030         (count_params): Don't save paramter spellings.  Save macro
13031         information in a struct macro_info.
13032         (parse_define): Don't allocate a token list.
13033         (save_expansion): Allocate the macro's token list, and
13034         save parameter spellings if necessary.  Use TOKEN_SPELL.
13035         (cpp_create_definition): Make list const.
13036
13037 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
13038
13039         * c-typeck.c (pedwarn_c99): Move to
13040         * c-errors.c: ... Here.
13041         * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
13042         * diagnostic.c (verror, vwarning, vpedwarn): Make static.
13043         * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
13044         (c-errors.o): List dependency.
13045
13046 2000-07-12  Mark Mitchell  <mark@codesourcery.com>
13047
13048         * c-parse.c: Remove.
13049         * c-parse.h: Likewise.
13050         * c-parse.y: Likewise.
13051         * objc/objc-parse.c: Likewise.
13052         * objc/objc-pasre.y: Likewise.
13053
13054 2000-07-11  Rodney Brown  <RodneyBrown@pmsc.com>
13055
13056         * gcc.texi: Fix minor typos
13057         * extend.texi: Fix minor typos
13058
13059 2000-07-11  Marc Espie <espie@openbsd.org>
13060
13061         * collect2.c (main): Recognize .lo as object files.
13062
13063 2000-07-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
13064
13065         * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
13066         true.
13067
13068         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
13069         with MAP_ANONYMOUS and MAP_ANON.
13070         * configure, config.in: Rebuilt.
13071
13072 2000-07-12  Gabriel Dos Reis  <gdr@codesourcery.com>
13073
13074         * diagnostic.c (save_output_state): Remove.
13075         (restore_output_state): Likewise.
13076         (clear_text_info): New function.
13077         (clear_diagnostic_info): Likewise.
13078         (output_text_length, is_starting_newline, output_prefix,
13079         line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
13080         prefixing_policy, output_buffer_ptr_to_format_args): New macros
13081         (set_real_maximum_length, output_set_maximum_length,
13082         output_set_prefix, output_get_prefix, output_set_maximum_length,
13083         output_destroy_prefix, init_output_buffer,
13084         reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
13085         output_add_newline, output_add_character, output_add_space,
13086         output_append_r, output_append, wrap_text, output_format,
13087         output_do_printf, output_printf, output_do_verbatim,
13088         output_verbatim, verbatim): Use them.
13089         (output_clear): Split into cleat_text_info and
13090         clear_diagnostic_info.
13091         (struct output_state): Move to...
13092
13093         * diagnostic.h: ...Here
13094         (struct output_buffer): Adjust.
13095
13096 2000-07-11  Zack Weinberg  <zack@wolery.cumb.org>
13097
13098         * cpplex.c (parse_name): No longer inline (premature optimization).
13099         (do_pop_context): Fold into pop_context.
13100         (pop_context): Returns int.
13101         (lex_next): Hoist test for end of directive into pop_context.
13102         (push_macro_context): Returns int; takes just reader and token.
13103         Hoist test for excessive nesting to caller.
13104         (push_arg_context): Returns void; takes just reader and token.
13105         Do not call stringify_arg or get_raw_token.
13106         (get_raw_token): Convert tail recursion through push_arg_context
13107         to a loop at this level.  Call stringify_arg here if appropriate.
13108         (maybe_paste_with_next): Convert tail recursion to a while loop.
13109         Hoist test of paste_level to caller.
13110
13111         (stringify_arg): Push arg context at beginning.
13112         (cpp_get_token): Split out core into _cpp_get_token.  Call
13113         process_directive here.  Throw away CPP_PLACEMARKER tokens.
13114         (_cpp_get_token): Convert tail recursion through
13115         push_macro_context to a loop at this level.
13116         (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
13117         _cpp_get_raw_token): Use _cpp_get_token.
13118         (_cpp_skip_rest_of_line): Drop the context stack directly; do
13119         not call pop_context.
13120         (_cpp_run_directive): Call lex_next directly.
13121
13122         * cpphash.h: Prototype _cpp_get_token.
13123         * cppexp.c (lex): Use it.
13124         * cpphash.c (parse_define): Use it.
13125         * cpplib.c (get_define_node, do_undef, parse_include,
13126         read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
13127         do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
13128         parse_ifdef, validate_else): Use it.
13129         (cpp_push_buffer): Tweak error message; abort if anyone tries
13130         to push a buffer while macro expansions are stacked.
13131
13132 2000-07-11  Donn Terry  <donnte@microsoft.com>
13133
13134         * cpplex.c (free_macro_args, save_token): Cast arg of free
13135         and/or xrealloc to PTR.
13136         (_cpp_init_input_buffer): Clear all fields of the base context.
13137
13138 Tue Jul 11 15:28:21 CDT 2000  Clinton Popetz  <cpopetz@cygnus.com>
13139
13140         * gensupport.c (process_rtx): Make rtl checking stop
13141         complaining about the define_insn while it is being
13142         converted from a define_insn_and_split.
13143
13144 Tue Jul 11 16:26:17 2000  Clinton Popetz  <cpopetz@cygnus.com>
13145
13146         * config/mips/mips.c (simple_memory_operand): Access the
13147         INTVAL of the address, not it's containing MEM.
13148
13149 2000-07-11  Bruce Korb  <bkorb@gnu.org>
13150
13151         * fixinc/fixtests.c(double_slash): obsolete
13152         (else_endif_label): likewise
13153         * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
13154         (libc1_ifdefd_memx): correct initial comment
13155         and omit the #if/#endif pair from the memxxx declarations
13156         * fixinc/fixincl.x: regen
13157
13158 2000-07-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13159
13160         * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
13161
13162 2000-07-11  Neil Booth  <NeilB@earthling.net>
13163
13164         * cpp.texi: Update.
13165
13166 2000-07-11  Neil Booth  <NeilB@earthling.net>
13167
13168         * cppinit.c: (cpp_reader_init): Allow digraphs by default.
13169         (handle_option): Set digraphs according to standard.
13170         Merge OPT_lang_c89 handler with OPT_std_c89.
13171
13172         * cpplex.c: (lex_line, can_paste): Honour digraphs in
13173         accordance with the digraphs flag.
13174
13175         * cpplib.h: (struct cpp_options): New option digraphs.
13176
13177 2000-07-10  Hans-Peter Nilsson  <hp@axis.com>
13178             Bruce Korb  <bkorb@gnu.org>
13179
13180         * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
13181         * fixinc/fixincl.x: Regenerate.
13182         * fixinc/tests/base/testing.h: Add testcase.
13183
13184 2000-07-10  Richard Henderson  <rth@cygnus.com>
13185
13186         * config/ia64/ia64.c (got_symbolic_operand): New.
13187         (symbolic_operand, move_operand): Revert 0701 change.
13188         * config/ia64/ia64.h (PREDICATE_CODES): Update.
13189         * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
13190         * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
13191         split the offset into a 14-bit low part instead of a 13-bit low part.
13192         (load_fptr): Mark the mem as unchanging.
13193         (load_symptr): Use got_symbolic_operand.
13194
13195 2000-07-10  Nick Clifton  <nickc@cygnus.com>
13196
13197         * libgcc2.c (next_stack_level): Cast result of computation to
13198         (void **) so that the assignment does not generate a warning.
13199
13200 2000-07-10  Chandrakala Chavva  <cchavva@redhat.com>
13201
13202         * flags.h : Add new variable flag_single_precision_constant.
13203         * toplev.c (display_help) : Add -fsingle-precision-constant option.
13204         (flag_single_precision_constant): New.
13205         * c-lex.c (yylex): Convert floating point constant to single
13206         precision constant.
13207         * invoke.texi : Add documentation for this new option.
13208
13209 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
13210
13211         * diagnostic.c (output_octal): Second parameter is unsigned.
13212         (output_long_octal): Likewise.
13213         (output_hexadecimal): Likewise.
13214         (output_long_hexadecimal): Likewise.
13215         (output_format): Adjust arguments extraction. Tweak.
13216         (output_verbatim, verbatim): End variable argument list.
13217         (report_diagnostic): Improve documentation.
13218
13219 2000-07-10  Benjamin Chelf  <chelf@codesourcery.com>
13220
13221         * c-common.h (build_stmt): Declare.
13222         (build_continue_stmt): Likewise.
13223         (build_break_stmt): Likewise.
13224         (build_return_stmt): Likewise.
13225
13226         * c-decl.c (do_case): Rewrite to do what previously done in
13227         c-parse.in.
13228
13229         * c-semantics.c (build_stmt): Define.
13230         (build_return_stmt): Likewise.
13231         (build_break_stmt): Likewise.
13232         (build_continue_stmt): Likewise.
13233         (build_case_label): Likewise.
13234
13235         * c-parse.in (BREAK): Change to build tree, then generate RTL.
13236         (CONTINUE): Likewise.
13237         (RETURN): Likewise.
13238         (CASE): Likewise.
13239         (DEFAULT): Likewise.
13240
13241         * c-parse.y: Regenerate.
13242         * c-pasre.c: Likewise.
13243
13244 2000-07-09  Jason Merrill  <jason@redhat.com>
13245
13246         * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
13247
13248         * tree.h (STRIP_NOPS): Check for error_mark_node.
13249         (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
13250         (dwarf2out_*): Remove duplicate declarations.
13251
13252         * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
13253         DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
13254
13255 2000-07-10  Gabriel Dos Reis  <gdr@codesourcery.com>
13256
13257         * diagnostic.c (wrap_text): New function.
13258         (maybe_wrap_text): Likewise.
13259         (output_add_string): Use it.
13260         (output_format): Likewise.
13261         (count_error): Use verbatim instead of notice.
13262         (report_error_function): Likewise. Don't use plain fprintf.
13263         (finish_diagnostic): New function.
13264         (output_do_verbatim): Tweak.  Commonalize functionalities in
13265         output_verbatim and verbatim.
13266         (output_verbatim): Adjust.
13267         (verbatim): Likewise.
13268         (report_diagnostic): Define.
13269
13270         * diagnostic.h (report_diagnostic): Prototype.
13271
13272 2000-07-09  Zack Weinberg  <zack@wolery.cumb.org>
13273
13274         * cppexp.c (_cpp_parse_expr): Don't use unary plus.
13275
13276 2000-07-09  Neil Booth  <NeilB@earthling.net>
13277
13278         * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
13279         IShspace, ISspace: Update.
13280
13281         * cppinit.c: ISTABLE: Update.
13282         V: New.
13283
13284         * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
13285         (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
13286         (skip_block_comment, skip_line_comment, parse_string,
13287         lex_line): Use is_vspace rather than IS_NEWLINE.
13288         (skip_whitespace, lex_line): Clean up to use is_nvspace.
13289         (lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
13290         gets a BOL flag.
13291         (lex_next): Unconditionally stop if within a directive.
13292         Treat directives within macro invocations as directives
13293         (after parse_args emits error), not as the argument.
13294
13295 2000-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
13296
13297         * diagnostic.c (diagnostic_args): New macro.
13298         (diagnostic_msg): Likewise.
13299         (output_formatted_integer): Likewise.
13300         (output_state): New data type.
13301         (digit_buffer): Make global.
13302         (output_add_integer): Rename to output_decimal. Squeeze
13303         digit_buffer.
13304         (output_long_decimal, output_unsigned_decimal,
13305         output_long_unsigned_decimal, output_octal, output_long_octal,
13306         output_hexadecimal, output_long_hexadecimal): New functions.
13307         (output_append_r): New function.
13308         (output_append): Tweak.
13309         (output_flush_on): Rename to output_to_stream.
13310         (output_format): Change prototype.  Improve documentation. Handle
13311         more format specifiers.
13312         (build_location_prefix): Rename to context_as_prefix.
13313         (output_notice): Rename to output_do_printf.
13314         (output_printf): Tweak.
13315         (line_wrapper_printf): Likewise.
13316         (vline_wrapper_message_with_location): Adjust call to renamed
13317         functions.
13318         (v_message_with_decl): Likewise.
13319         (default_print_error_function): Likewise.
13320         (save_output_state): New function.
13321         (restore_output_state): Likewise.
13322         (output_do_verbatim): Likewise.
13323         (output_verbatim): Define.
13324         (verbatim): Likewise.
13325
13326         * diagnostic.h (printer_fn): Change return type from void to int.
13327         Improve documentation.
13328         (output_add_integer): Rename to output_decimal.
13329         (output_flush_on, output_format): Don't export.
13330         (output_verbatim, verbatim): Declare.
13331
13332 2000-07-08  Toon Moene  <toon@moene.indiv.nluug.nl>
13333
13334         * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
13335         Check whether c divides op1 exactly if operation is not
13336         multiplication.
13337
13338 2000-07-08  Richard Henderson  <rth@cygnus.com>
13339
13340         * final.c (final): Do not abort when reg-stack introduces
13341         a new insn.
13342
13343 2000-07-08  Zack Weinberg  <zack@wolery.cumb.org>
13344
13345         * cpplib.h (struct cpp_name): Now struct cpp_string.
13346         (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
13347         CPP_HEADER_NAME): Change to type S.
13348         (struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
13349         field, a cpp_hashnode *.  All references to val.name updated
13350         to use val.str or val.node as appropriate.
13351         (struct cpp_reader): Add spec_nodes field.
13352         (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
13353
13354         * cpphash.h (struct spec_nodes): New.
13355         (enum spell_type): Reorder.  Only SPELL_STRING tokens use
13356         val.str.  All references to 'spelling > SPELL_NONE' updated to
13357         match.
13358
13359         (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
13360         pfile->buffer->inc are not NULL before dereferencing them.
13361
13362         * cpplex.c (parse_name): Take a pointer to the current token,
13363         plus current position and limit as args; return the new
13364         position; don't copy the text of a name into the string
13365         buffer, instead call cpp_lookup and store the node pointer.
13366         If extending a token, copy out the text of the old into a
13367         scratch buffer, append the new, look that up and store the new
13368         node pointer.  Inline.
13369         (maybe_paste_with_next): If the result of paste is a NAME,
13370         then look up the pasted text and store its node pointer.
13371         (lex_line): Adjust for new parse_name interface.
13372         Check for L"str", L'str' using spec_nodes->n_L.
13373         (spell_token): SPELL_IDENT tokens have their spelling in
13374         val.node->name.  Handle SPELL_STRING tokens that don't have
13375         string delimiters.
13376         (_cpp_expand_name_space,
13377         (can_paste): Check for L ## "str" using spec_nodes->n_L.
13378         (cpp_get_token, special_symbol): No need to call cpp_lookup.
13379         (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
13380         return 1=equal 0=not, not a tristate.
13381
13382         * cpphash.c (var_args_str): Delete.
13383         (find_param): Compare node fields directly.
13384         (is__va_args__): Use CPP_PEDANTIC.  Just compare
13385         token->val.node with spec_nodes->n__VA_ARGS__.
13386         (dump_funlike_macro): Don't use var_args_str.
13387
13388         * cpplib.c (_cpp_check_directive): Just walk through
13389         spec_nodes->dirs comparing pointers.
13390         (get_define_node, do_pragma_poison, detect_if_not_defined,
13391         parse_ifdef): The identifier has already been looked up.
13392         (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
13393         node.
13394         (do_if): Only call detect_if_not_defined at beginning of file.
13395         (_cpp_parse_assertion): Only copy string pointers for
13396         SPELL_STRING tokens.
13397         (pragma_dispatch): Take a node pointer and examine its name
13398         field.
13399         (_cpp_init_stacks): Also initialize the spec_nodes structure.
13400
13401         * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
13402         _cpp_init_macros.
13403         (cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
13404         reverse order from the corresponding _cpp_init_* routines.
13405
13406         * cppexp.c (parse_number, parse_charconst, parse_defined,
13407         lex): Check val.node->type instead of calling cpp_defined.
13408         Use spec_nodes entries where appropriate.
13409
13410         * fix-header.c, scan-decls.c: Update for interface changes.
13411
13412 2000-07-08  Geoffrey Keating  <geoffk@cygnus.com>
13413
13414         * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
13415         emitting aux_truncdfsf2.
13416
13417 2000-07-03  Donn Terry  (donnte@microsoft.com)
13418
13419         * cppinit.c (print_help): split overlong line into ISO C89
13420         maximum chunks.
13421
13422 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
13423
13424         * cppexp.c: Update all code for new lexer interface.
13425         (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
13426         (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
13427         * cpplex.c (token_names): Trim leading CPP_ from names; make
13428         the strings unsigned.
13429         (_cpp_spell_operator): New.
13430         (is_macro_disabled): Disable all macros if rescanning
13431         preprocessed text.
13432         (_cpp_get_directive_token): Remove.
13433
13434         * cppinit.c: Don't set no_macro_expand.
13435         * cpplib.c (read_line_number, do_line): Check only for EOF,
13436         not VSPACE.
13437         * cpphash.h: Update prototypes.
13438         * cpplib.h (CPP_VSPACE): Remove.
13439         (struct cpp_reader): Remove no_macro_expand.
13440
13441 2000-07-08  Neil Booth  <NeilB@earthling.net>
13442
13443         * cpphash.c (is__va_args__): New function.
13444         (count_params): Fix line reported in error messages.  Use
13445         is__va_args__.  Don't return ')' on error.  Flag GNU style
13446         rest args macro definitions.
13447         (parse_define): Check macro name is not __VA_ARGS__.
13448         (save_expansion): Check identifier in non-varargs-macro is
13449         not __VA_ARGS__.  Don't flag GNU_VARARGS.
13450         * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
13451         (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
13452          than per-token GNU_VARARGS.
13453         * cpplib.h (GNU_VARARGS): Remove.
13454         (GNU_REST_ARGS): New.
13455
13456 Sat Jul  8 01:38:25 MET DST 2000  Jan Hubicka  <jh@suse.cz>
13457
13458         * i386.md (call_pop, call, call_value_pop): Do not set
13459         current_function_uses_pic_offset_table for calls to static
13460         functions or indirect calls.
13461
13462 2000-07-07  Jim Wilson  <wilson@cygnus.com>
13463
13464         * config/ia64/ia64.c (rws_access_reg): New local write_count.  If
13465         is_predicate_reg, then take max write_count of register pair.
13466
13467 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13468
13469         * tradcpp.c (main): Rename label `include' to `add_include' to
13470         avoid conflicts with variable `include' in traditional C.
13471
13472 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
13473
13474         * integrate.c (copy_insn_list): Remove REG_LABEL notes.
13475
13476 2000-07-07  Jakub Jelinek  <jakub@redhat.com>
13477
13478         * sibcall.c (uses_addressof): Add INMEM argument, check for
13479         current_function_internal_arg_pointer outside of MEM rtxs in addition
13480         to ADDRESSOFs.
13481         (sequence_uses_addressof): Update caller.
13482
13483 2000-07-07  Zack Weinberg  <zack@wolery.cumb.org>
13484
13485         * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
13486         and friends.
13487
13488 2000-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13489
13490         * system.h (UNION_INIT_ZERO): New macro for initializing union
13491         members in structs.
13492
13493         * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
13494
13495 2000-07-07  Neil Booth  <NeilB@earthling.net>
13496
13497         * cpp.texi: Update.
13498
13499 Fri Jul  7 07:47:35 2000  Jeffrey A Law  (law@cygnus.com)
13500
13501         * final.c (final): Detect out of bounds array access to
13502         the insn_lengths array.
13503
13504 2000-07-07  Kazu Hirata  <kazu@hxi.com>
13505
13506         * fold-const.c (fold): Fix a comment typo.
13507
13508 2000-07-07  Neil Booth  <NeilB@earthling.net>
13509
13510         * cpp.texi: Update to new lexer.
13511
13512 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
13513
13514         * tradcpp.c: New file.
13515         * tradcif.y: New file.
13516         * tradcif.c: New generated file.
13517
13518         * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
13519         $(srcdir)/tradcif.c.  Add tradcpp to STAGESTUFF and
13520         dependencies of C.  Install tradcpp from install-common, in
13521         $(libsubdir).
13522
13523 2000-07-06  Zack Weinberg  <zack@wolery.cumb.org>
13524
13525         * cppinit.c: Include cppdefault.h.  Refer to
13526         cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
13527         to GCC_INCLUDE_DIR and its length.
13528         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
13529         USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
13530         STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT):  Move to
13531         cppdefault.h.
13532         (include_defaults_array): Move to cppdefault.c.
13533
13534         * cppdefault.h: New file.
13535         * cppdefault.c: New file.
13536
13537         * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
13538         (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
13539         (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
13540         this file.
13541
13542 Thu Jul  6 18:30:36 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13543
13544         * reload.c (push_reload): When seeing if can reuse a register,
13545         check extra registers against widest of INMODE and OUTMODE.
13546
13547 2000-07-06  Neil Booth  <NeilB@earthling.net>
13548
13549         * cpplib.c: (_cpp_parse_assertion):  Perform hash lookups
13550         based on full length of predicate.
13551
13552 2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
13553
13554         * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
13555         [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
13556
13557 2000-07-05  Kazu Hirata  <kazu@hxi.com>
13558
13559         * h8300-proto.h: Fix formatting.
13560         * h8300.c: Likewise.
13561         * h8300.h: Likewise.
13562
13563 2000-07-05  Jim Wilson  <wilson@cygnus.com>
13564
13565         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
13566         CCmode.
13567
13568 2000-07-05  Rodney Brown  <RodneyBrown@pmsc.com>
13569
13570         * invoke.texi: Fix minor typos
13571         * md.texi: Fix minor typos
13572
13573 2000-07-05  Zack Weinberg  <zack@wolery.cumb.org>
13574
13575         * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
13576
13577 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
13578
13579         * cpplex.c: Don't include sys/mman.h.
13580         (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
13581
13582         * cpplib.c: Include sys/mman.h and obstack.h.
13583         (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
13584         obstack.
13585         (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
13586         (_cpp_unwind_if_stack): Now static, unwind_if_stack.  Don't
13587         bother freeing if stack entries (they will be freed with their buffer).
13588         (do_endif): Free if stack entries from the buffer obstack.
13589         (push_conditional): Allocate if stack entries from the buffer obstack.
13590
13591         (find_answer): Rename to _cpp_find_answer.
13592         (do_assert, do_unassert): Update.
13593
13594         * cpphash.h: Update prototypes.
13595         (xobnew): New convenience macro.
13596         * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
13597         Update comments.
13598         (struct cpp_hashnode): Remove disabled field.
13599
13600         * cppinit.c: Don't include hashtab.h or splay-tree.h.
13601         (report_missing_guard): Moved to cppfiles.c.
13602         (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
13603         cpp_init_includes.
13604         (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
13605         cpp_cleanup_includes.  Don't destroy hashtab or
13606         all_include_files here.
13607         (cpp_finish): Use _cpp_report_missing_guards.
13608
13609         * cppfiles.c (report_missing_guard): Moved from cppinit.c.
13610         (_cpp_init_include_table): Rename _cpp_init_includes.
13611         (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
13612
13613         * cppexp.c (parse_assertion): Update for new name of
13614         find_answer.
13615
13616         * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
13617
13618 2000-07-04  Zack Weinberg  <zack@wolery.cumb.org>
13619
13620         * cpplib.c (do_ident): s/VSPACE/EOF/
13621
13622 2000-07-05  Neil Booth  <NeilB@earthling.net>
13623
13624         * cpplex.c: Fix trigraph replacement within strings.
13625
13626 2000-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13627
13628         * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
13629
13630         * xcoffout.c (assign_type_number): Constify.
13631         (xcoffout_source_file): Add static prototype.  Don't needlessly
13632         cast away const-ness.
13633
13634 2000-07-04  Jason Merrill  <jason@redhat.com>
13635
13636         * frame.h (frame_state): Move base_offset to end.
13637
13638 Mon Jul  3 21:31:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
13639
13640         * calls.c (emit_library_call_value_1): Revert previous change.
13641
13642 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
13643
13644         * fix-header.c (struct partial_proto): Remove unnecessary fields.
13645         (recognized_extern, recognized_function, read_scan_file):
13646         Update for new scheme.
13647         (check_protection): It's still a multiple include guard even
13648         if it doesn't always trigger.
13649         * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
13650         new scheme.
13651         * scan.h: Declare struct cpp_token.  Update prototypes.
13652
13653 2000-07-03  Neil Booth  <neilb@earthling.net>
13654             Zack Weinberg  <zack@wolery.cumb.org>
13655
13656         Complete overhaul of the lexer and macro expander.
13657
13658         * cpphash.c (object_defn, funct_defn, push_macro_expansion,
13659         arg, arglist, argdata, reflist, collect_objlike_expansion,
13660         collect_funlike_expansion, collect_params,
13661         warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
13662         unsafe_chars, macarg, compare_defs, special_symbol,
13663         scan_arguments, stringify, funlike_macroexpand,
13664         _cpp_quote_string, monthnames): Delete.
13665         (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
13666         _cpp_create_definition, _cpp_dump_definition,
13667         dump_hash_helper): Adjust.
13668         (find_param, count_params, parse_define, var_args_str,
13669         check_macro_redefinition, save_expansion): New.
13670
13671         * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
13672         parse_string, output_line_command, trigraph_replace,
13673         lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
13674         cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
13675         cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
13676         _cpp_skip_rest_of_line): Modify.
13677
13678         (maybe_macroexpand, skip_comment, copy_comment, skip_string,
13679         find_position, null_warning, bump_column, expand_name_space,
13680         pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
13681         _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
13682         _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
13683         _cpp_prescan): Delete.
13684
13685         (dump_param_spelling, process_directive, lex_next,
13686         is_macro_disabled, stringify_arg, expand_context_stack,
13687         output_token, make_string_token, alloc_number_token,
13688         special_symbol, duplicate_token, maybe_paste_with_next,
13689         can_paste, prevent_macro_expansion, restore_macro_expansion,
13690         get_temp_token, release_temp_tokens, quote_string,
13691         token_names, token_spellings, _cpp_expand_name_space,
13692         _cpp_glue_header_name, _cpp_reserve_name_space,
13693         digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
13694         placemarker_token, eof_token, cpp_context, macro_args,
13695         get_raw_token, parse_arg, parse_args, save_token,
13696         push_arg_context, push_macro_context, pop_context,
13697         do_pop_context, free_macro_args, _cpp_get_line,
13698         _cpp_run_directive): New.
13699
13700         * cpplib.c (validate_else, parse_include, push_conditional,
13701         pass_thru_directive, read_line_number, parse_ifdef,
13702         detect_if_not_defined, _cpp_check_directive, do_define,
13703         do_undef, do_include, do_import, do_include_next, do_error,
13704         do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
13705         top_pragmas, do_pragma_gcc, do_pragma_implementation,
13706         do_pragma_poison, do_pragma_system_header,
13707         do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
13708         dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
13709         do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
13710         cpp_defined): Update for new scheme.
13711         (strtoul_for_line, get_define_node, dump_macro_name,
13712         _cpp_check_linemarker, _cpp_parse_assertion): New.
13713         (_cpp_handle_directive, do_pragma_default): Delete.
13714
13715         * cpphash.h (struct predicate): Now struct answer.
13716         (enum spell_type, struct token_spelling, struct directive,
13717         directive_handler): New.
13718         Update prototypes.  Remove unused macros.
13719         * cpplib.h: Update prototypes.  Remove unused macros,
13720         structure definitions, and fields.
13721
13722         * cpperror.c (print_containing_files, v_message): Adjust.
13723         * cppexp.c (parse_assertion, lex, parse_escape,
13724         _cpp_parse_expr): Adjust.
13725         * cppfiles.c (open_include_file, _cpp_execute_include,
13726         _cpp_compare_file_date, cpp_read_file, read_include_file):
13727         Adjust.
13728         * cppinit.c (dump_special_to_buffer): Delete.
13729         (append_include_chain, merge_include_chains, cpp_reader_init,
13730         cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
13731         cpp_finish, handle_option, print_help): Adjust.
13732         * cppmain.c (main): Adjust.
13733
13734 2000-07-03  Zack Weinberg  <zack@wolery.cumb.org>
13735
13736         * cppspec.c (lang_specific_driver): Use double quotes in error
13737         message.
13738
13739 Mon Jul  3 16:53:43 2000  Clinton Popetz  <cpopetz@cygnus.com>
13740
13741         * calls.c (emit_library_call_value_1): Use valreg instead
13742         of hard_libcall_value.
13743
13744 2000-07-03  Geoff Keating  <geoffk@cygnus.com>
13745
13746         * config/rs6000/rs6000.c (rs6000_emit_move): New function.
13747         * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
13748         * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
13749         (movhi): Likewise.
13750         (movqi): Likewise.
13751         (movdf): Likewise.
13752         (movsf): Likewise.
13753         (movdi): Likewise.
13754         (movti): Likewise.
13755
13756         * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
13757         mode instead of wider_mode is being used.
13758
13759 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
13760
13761         * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
13762         of 'r'. Use q_regs_operand.
13763         (andsi_1+2): Use q_regs_operand.
13764
13765 2000-07-03  Jakub Jelinek  <jakub@redhat.com>
13766
13767         * builtins.c (get_memory_rtx): Always put into alias set 0.
13768
13769 2000-07-03  Nick Clifton  <nickc@cygnus.com>
13770
13771         * config/arm/arm.md: Fix post increment and pre increment
13772         peepholes so that they do not generate UNPREDICATBLE opcodes.
13773         (ie ones where the increment clobbers the source/destination).
13774
13775 2000-07-01  Marek Michalkiewicz  <marekm@linux.org.pl>
13776
13777         * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
13778         change too big for -mtiny-stack" a warning, if larger than 63.
13779         (out_set_stack_ptr): Change the logic so -mno-interrupts is
13780         always safe to use on possible future devices.
13781         (function_prologue): Write SPH before SPL, for consistency.
13782         If interrupt_func_p true, we know we have enabled interrupts.
13783         (avr_num_arg_regs): New function.  Round up to even number of
13784         bytes if no -mpack-args or if calling a libgcc function.
13785         (function_arg, function_arg_advance): Use it.
13786         (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
13787         Output "movw" if available.
13788         (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
13789         of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
13790         (asm_output_section_name): Add blanks for consistent output.
13791         (encode_section_info): Set TREE_READONLY for progmem data to
13792         avoid gas warnings about changed section attributes.
13793         (avr_hard_regno_mode_ok): Force non-QImode data to start in
13794         even numbered registers on devices with "movw".
13795         * config/avr/avr.h (MASK_*): Define bits for target_flags.
13796         (TARGET_SWITCHES): Mark help strings for translation.
13797         Add new -mpack-args and -menhanced switches.
13798         (TARGET_OPTIONS): Mark help strings for translation.
13799         (progmem_section): Add section attributes.
13800         * config/avr/avr.md (*movhi, call_insn, call_value_insn):
13801         Output "movw" if available.
13802         (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
13803         New patterns.
13804         * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
13805         call convention (arguments aligned on even registers).
13806         (_cleanup, _exit): Make weak symbols libc can override.
13807
13808 2000-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13809
13810         * fp-bit.h: New file.
13811
13812         * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
13813         Comment #endif statements.
13814         (__thenan_sf, __thenan_df): Add missing braces around initializer.
13815
13816 Mon Jul  3 00:32:47 2000  Jeffrey A Law  (law@cygnus.com)
13817
13818         * gcse.c (compute_pre_data): Compute ae_kill using other local
13819         properties instead of calling compute_ae_kill.
13820
13821         * alias.c (init_alias_analysis): Do not call
13822         prologue_epilogue_contains until after reload has completed.
13823
13824 2000-07-02  Benjamin Chelf  <chelf@codesourcery.com>
13825
13826         * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
13827         (genrtl_finish_compound_stmt): Likewise.
13828         (genrtl_compound_stmt): Change to return void.
13829
13830         * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
13831         move code from here to ...
13832         (genrtl_compound_stmt): ... here.
13833         (genrtl_finish_compound_stmt): Remove.
13834         (expand_stmt): Add comment.
13835
13836 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org>
13837
13838         * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
13839         and VOID_TYPE_P.
13840
13841 2000-07-02  Jakub Jelinek  <jakub@redhat.com>
13842
13843         * cpplib.h (struct cpp_reader): New field include_depth.
13844         (struct cpp_printer): Rename last_bsd to last_id.
13845         * cppfiles.c (read_include_file): Bump include_depth.
13846         * cpplex.c (cpp_pop_buffer): Decrement include_depth.
13847         (output_line_command): Output correct #line if a header
13848         is including itself and is not protected against multiple inclusion.
13849         Use include_depth instead of buffer_stack_depth, last_id instead of
13850         last_bsd.
13851         * cppinit.c (cpp_start_read): Initialize last_id instead of
13852         last_bsd.
13853
13854 2000-07-01  Benjamin Chelf  <chelf@codesourcery.com>
13855
13856         * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
13857         (c-semantics.o): New target.
13858
13859         * c-common.h (TREE_LANG_FLAG_?): Added documentation.
13860         (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
13861         (genrtl_clear_out_block): Likewise.
13862         (genrtl_goto_stmt): Likewise.
13863         (genrtl_expr_stmt): Likewise.
13864         (genrtl_decl_stmt): Likewise.
13865         (genrtl_if_stmt): Likewise.
13866         (genrtl_while_stmt): Likewise.
13867         (genrtl_do_stmt): Likewise.
13868         (genrtl_return_stmt): Likewise.
13869         (genrtl_for_stmt): Likewise.
13870         (genrtl_break_stmt): Likewise.
13871         (genrtl_continue_stmt): Likewise.
13872         (genrtl_scope_stmt): Likewise.
13873         (genrtl_switch_stmt): Likewise.
13874         (genrtl_case_label): Likewise.
13875         (genrtl_begin_compound_stmt): Likewise.
13876         (gerntl_finish_compound_stmt): Likewise.
13877         (genrtl_compound_stmt): Likewise.
13878         (genrtl_asm_stmt): Likewise.
13879         (genrtl_decl_cleanup): Likewise.
13880         (DECL_ANON_UNION_ELEMS): Likewise.
13881         (emit_local_var): Likewise.
13882         (make_rtl_for_local_static): Likewise.
13883         (expand_cond): Likewise.
13884         (expand_stmt): Likewise.
13885         (c_expand_return): Likewise.
13886         (c_expand_start_case): Likewise.
13887         (do_case): Likewise.
13888         (COMPOUND_STMT_NO_SCOPE): Likewise.
13889         (c_expand_asm_operands): Likewise.
13890         (NEW_FOR_SCOPE_P): New macro.
13891         (expand_expr_stmt_fn): New type.
13892
13893         (set_current_function_name_declared): Likewise.
13894         (current_function_name_declared): Likewise.
13895         (lang_expand_stmt): Likewise.
13896         (stmts_are_full_exprs_p): Likewise.
13897         (anon_aggr_type_p): Likewise.
13898         (lang_expand_expr_stmt): Likewise.
13899         (build_case_label): Likewise.
13900
13901         * c-decl.c (lang_expand_expr_stmt): Initialize.
13902         (stmts_are_full_exprs_p): Define.
13903         (current_function_name_declared): Likewise.
13904         (do_case): Likewise.
13905         (lang_expand_stmt): Likewise.
13906         (set_current_function_name_declared): Likewise.
13907         (anon_aggr_type_p): Likewise.
13908
13909         * c-semantics.c: New file.
13910         (expand_cond): Moved from cp/semantics.c.
13911         (genrtl_do_pushlevel): Likewise.
13912         (genrtl_clear_out_block): Likewise.
13913         (genrtl_goto_stmt): Likewise.
13914         (genrtl_expr_stmt): Likewise.
13915         (genrtl_decl_stmt): Likewise.
13916         (genrtl_if_stmt): Likewise.
13917         (genrtl_while_stmt): Likewise.
13918         (genrtl_do_stmt): Likewise.
13919         (genrtl_return_stmt): Likewise.
13920         (genrtl_for_stmt): Likewise.
13921         (genrtl_break_stmt): Likewise.
13922         (genrtl_continue_stmt): Likewise.
13923         (genrtl_scope_stmt): Likewise.
13924         (genrtl_switch_stmt): Likewise.
13925         (genrtl_case_label): Likewise.
13926         (genrtl_begin_compound_stmt): Likewise.
13927         (genrtl_finish_compound_stmt): Likewise.
13928         (genrtl_compound_stmt): Likewise.
13929         (genrtl_asm_stmt): Likewise.
13930         (genrtl_decl_cleanup): Likewise.
13931         (make_rtl_for_local_static): Moved from cp/decl.c.
13932         (emit_local_var): Likewise.
13933         (expand_stmt): Define.
13934
13935         * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
13936         (c_expand_return): Likewise.
13937         (c_expand_start_case): Likewise.
13938
13939 2000-07-01  Richard Henderson  <rth@cygnus.com>
13940
13941         * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
13942         with the low 13 bits set.
13943         (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
13944         * config/ia64/ia64.md (movdi): Likewise.  Expand a CONST with one
13945         of the low 13 bits into a CONST plus an adddi3.
13946         (load_symptr): Set RTX_UNCHANGING_P.
13947
13948 See ChangeLog.3 for earlier changes.