1 2000-12-06 Michael Matz <matzmich@cs.tu-berlin.de>
3 * gcse.c (compute_pre_data): Kill trapping expressions in
4 destination blocks of abnormal edges.
6 2000-12-05 Richard Sandiford <r.sandiford@redhat.com>
8 * config/mn10300/mn10300.c (mn10300_print_reg_list): Added.
9 (mn10300_get_live_callee_saved_regs): Likewise.
10 (mn10300_gen_multiple_store): Likewise.
11 (store_multiple_operation): Likewise.
12 (expand_prologue): Use mn10300_gen_multiple_store().
13 * config/mn10300/mn10300-protos.h (mn10300_print_reg_list): Added.
14 (mn10300_get_live_callee_saved_regs): Likewise.
15 (mn10300_gen_multiple_store): Likewise.
16 (store_multiple_operation): Likewise.
17 * config/mn10300/mn10300.md (store_movm): Use a MATCH_PARALLEL
18 tied to store_multiple_operation().
20 Tue Dec 5 20:09:14 2000 Jeffrey A Law (law@cygnus.com)
22 * builtins.c (expand_builtin_setjmp_setup): Set
23 current_function_has_nonlocal_label.
25 2000-12-05 Neil Booth <neilb@earthling.net>
27 * cppfiles.c (stack_include_file): Push zero-length buffers
28 in case of failure. Return void, as we don't fail any more.
29 (read_include_file): Check for files we shouldn't re-read.
30 Don't return an error code; errors are implied by marking the
32 (_cpp_execute_include): Move the recursion and in-macro checks
33 here. Update for stack_include_file not failing.
34 * cpplib.c (cpp_push_buffer): Always succeed, since
35 _cpp_execute_include performs the recursion check. Tidy up.
36 * cpplib.h (cpp_push_buffer): Update prototype.
38 2000-12-05 Alexandre Oliva <aoliva@redhat.com>
40 * sched-vis.c (visual_tbl_line_length): New variable.
41 (get_visual_tbl_length): Set it.
42 (visualize_stall_cycles): Don't let stalls overrun
43 visual_tbl_line_length.
45 2000-12-05 Geoffrey Keating <geoffk@redhat.com>
47 * global.c (global_conflicts): Allow for a REG_UNUSED note
48 with a different mode to the REG set in the insn.
50 2000-12-05 Kaveh R. Ghazi <ghazi@teal.rutgers.edu>
52 * Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.
54 * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS).
56 2000-12-05 Bruce Korb <bkorb@gnu.org>
58 * fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and
61 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
63 * fixinc/mkfixinc.sh: Run fixinc on netbsd.
64 * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files,
65 to cope with aliased copies.
66 * fixinc/fixincl.x: Regenerate.
68 2000-12-05 Bernd Schmidt <bernds@redhat.co.uk>
70 * sched-vis.c: Guard with #ifdef INSN_SCHEDULING.
71 * sched-rgn.c: Likewise.
72 (rgn_print_insn): Fix output.
74 2000-12-05 Bruce Korb <bkorb@gnu.org>
76 * fixinc/Makefile.*: make these more consistent
77 * fixinc/mkfixincl.sh: enable BeOS fixincludes
79 2000-12-05 Richard Henderson <rth@redhat.com>
81 * stmt.c (warn_if_unused_value): Move side effects test earlier.
83 2000-12-05 Alan Modra <alan@linuxcare.com.au>
85 * bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
88 2000-12-05 Richard Henderson <rth@redhat.com>
90 * flow.c (calculate_global_regs_live): Only force stack pointer
91 live before reload. Force pic register live before reload.
92 (insn_dead_p): Don't protect pic references from deletion.
94 2000-12-05 Joseph S. Myers <jsm28@cam.ac.uk>
96 * invoke.texi: Add support for using texi2pod.pl. Don't use
99 2000-12-04 Nick Clifton <nickc@redhat.com>
101 * config/arm/arm.c (arm_override_options): Test 'insn_flags' not
102 'tune_flags' for XScale nature.
103 Remove spurious test of HARD_FLOAT and XScale flags.
105 * config/arm/arm.md (umulsidi3adddi): Restore "=&r" register
106 contraint, accidentally changed during XScale contribution.
108 * config/arm/lib1funcs.asm (interwork_call_via_, call_via_): Do
109 not create these functions if the target architecture does not
110 support Thumb instructions.
112 2000-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
114 * ONEWS: New file with the current contents of NEWS up to EGCS
116 * NEWS: Generate automatically from online release notes from EGCS
117 1.0 to GCC 2.95.2, using ../contrib/gennews.
119 2000-12-04 Neil Booth <neilb@earthling.net>
121 * tradcif.y: Move lexptr to top of file. Add rule to handle
122 assertions in conditional expressions.
123 * tradcpp.c (parse_answer): Assertions do not need to go to
124 end of line in conditional directives.
125 (parse_assertion): Get first character of identifiers correct.
126 (test_assertion): New function.
127 * tradcpp.h (test_assertion): New prototype.
129 2000-12-01 Rodney Brown <RodneyBrown@mynd.com>
131 * config.gcc: Fix typo for UnixWare 7.
133 2000-12-03 Phil Edwards <pme@sources.redhat.com>
135 * invoke.texi: Replace `pedwarns' with clearer text.
137 2000-12-04 Bruce Korb <bkorb@gnu.org>
139 * fixinc/Makefile.*(clean): don't clean autogenerated files.
140 (mainainer-clean): clean autogenerated files
142 2000-12-04 DJ Delorie <dj@redhat.com>
144 * md.texi: Add overview, clarify match_dup and define_expand.
146 2000-12-04 DJ Delorie <dj@redhat.com>
148 * print-tree.c (print_node): Target-specific builtins print
151 2000-12-04 Jason Merrill <jason@redhat.com>
153 * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
156 * diagnostic.c (report_problematic_module): s/function/module/.
158 * c-lex.h: Remove decl for check_newline.
160 2000-12-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
162 * README.APOLLO: Remove obsolete file.
164 2000-12-04 Neil Booth <neilb@earthling.net>
166 * cppinternals.texi: New file.
168 2000-12-04 Neil Booth <neilb@earthling.net>
170 * cppfiles.c (cpp_make_system_header): Take 2 booleans,
171 and operate on current buffer.
172 (cpp_read_file): Rename _cpp_read_file.
173 * cpplib.c (do_line, do_pragma_system_header): Update calls to
174 cpp_make_system_header.
175 * fix-header.c: Similarly.
176 * cpphash.h (_cpp_read_file): Move from...
177 * cpplib.h: ... here.
178 * cppinit.c (do_includes, cpp_start_read): Update appropriately.
180 2000-12-03 Kaveh R. Ghazi <ghazi@teal.rutgers.edu>
182 * builtins.c (expand_builtin_strspn, expand_builtin_strcspn):
183 Handle another transformation.
185 2000-12-03 Nick Clifton <nickc@redhat.com>
187 * config.gcc: Add support for StrongARM targets.
188 * config/arm/t-strongarm-elf: New file.
189 * config/arm/t-strongarm-coff: New file.
190 * config/arm/t-strongarm-pe: New file.
191 * config/arm/strongarm-pe.h: New file.
193 2000-12-03 Nick Clifton <nickc@redhat.com>
195 * NEWS: Mention XScale has been added.
196 * config.gcc: Add support for XScale targets.
197 * config/arm/arm.h: Add support for XScale processor.
198 * config/arm/arm.c: Add support for XScale processor.
199 * config/arm/arm.md: Add support for XScale processor.
200 * config/arm/t-xscale-elf: New file.
201 * config/arm/t-xscale-coff: New file.
202 * config/arm/xscale-elf.h: New file.
203 * config/arm/xscale-coff.h: New file.
205 2000-12-03 Richard Henderson <rth@redhat.com>
207 * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges
208 unless exception handling is enabled, and if not using sjlj.
210 * builtins.c (expand_builtin_setjmp_setup): New.
211 (expand_builtin_setjmp_receiver): New.
212 (expand_builtin_setjmp): Split out _setup and _receiver functions.
213 Move argument parsing in from ...
214 (expand_builtin): ... here.
215 * except.c (receive_exception_label): Branch around receiver
216 unless new-style exceptions. Call expand_builtin_setjmp_receiver.
217 (start_dynamic_handler): Call expand_builtin_setjmp_setup.
218 * expr.h: Update builtin setjmp decls.
220 2000-12-03 Bruce Korb <bkorb@gcc.org>
222 * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
223 build machine name. Default to the target.
225 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
227 * Makefile.in: use $(build_canonical), not $(canonical_build).
229 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
231 * Makefile.in (OBJS): Add sched-rgn.o.
232 (sched-rgn.o): New rule. * haifa-sched.c (sched_verbose): No
234 (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
235 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
236 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
237 MAX_BLOCKAGE_COST): Move to sched-int.h.
238 (MAX_RGN_BLOCKS, MAX_RGN_INSNS, INSN_REF_COUNT, FED_BY_SPEC_LOAD,
239 IS_LOAD_INSN, struct haifa_edge, edge_table, NEXT_IN, NEXT_OUT,
240 FROM_BLOCK, TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES,
241 OUT_EDGES, edgelst, struct region, nr_regions, rgn_table,
242 rgn_bb_table, block_to_bb, containing_rgn, RGN_NR_BLOCKS,
243 RGN_BLOCKS, BLOCK_TO_BB, BB_TO_BLOCK, CONTAINING_RGN,
244 debug_regions, find_single_block_region, find_rgns, too_large,
245 init_regions, current_nr_blocks, current_blocks, bitset, bitlst,
246 bitlst_table_last, bitlst_table_size, bitlst_table, bitset_member,
247 extract_bitlst, bblst, struct candidate, candidate_table,
248 bblst_table, bblst_size, bblst_last, IS_VALID, IS_SPECULATIVE,
249 SRC_PROB, target_bb, split_edges, compute_trg_info,
250 debug_candidate, debug_candidates, bbset, bbset_size, dom,
251 IS_RGN_ENTRY, IS_DOMINATED, prob, GET_SRC_PROB, edgeset,
252 rgn_nr_edges, rgn_edges, edgeset_size, edgeset_bitsize,
253 EDGE_TO_BIT, edge_to_bit, pot_split, ancestor_edges,
254 compute_dom_prob_ps, ABS_VALUE, INSN_PROBABILITY,
255 IS_SPECULATIVE_INSN, INSN_BB, MIN_DIFF_PRIORITY, MIN_PROBABILITY,
256 MIN_PROB_DIFF, check_live_1, update_live_1, check_live,
257 update_live, set_spec_fed, is_pfree, find_conditional_protection,
258 is_conditionally_protected, may_trap_exp, haifa_classify_insn,
259 is_prisky, is_exception_free, add_branch_dependences,
260 propagate_deps, compute_block_backward_dependences,
261 debug_dependencies, is_cfg_nonregular, build_control_flow,
262 new_edge, bb_deps, BITSET_UNION, BITSET_INTER, BITSET_DIFFER,
263 BITSET_INVERT, BITSET_ADD, BITSET_REMOVE, debug_regions,
264 UPDATE_LOOP_RELATIONS, INSN_TRAP_CLASS, WORST_CLASS, IS_REACHABLE,
265 CONST_BASED_ADDRESS_P, free_pending_lists, sched_target_n_insns,
266 target_n_insns, sched_n_insns, init_ready_list, deaths_in_region,
267 can_schedule_ready_p, new_ready, schedule_more_p, rgn_print_insn,
268 rgn_rank, region_sched_info): Move to sched-rgn.c.
269 (debug_reg_vector): Delete useless function.
270 (get_bb_head_tail): Likewise.
271 (insn_issue_delay, insn_cost, ready_add, get_block_head_tail,
272 no_real_insns_p, rm_line_notes, save_line_notes,
273 restore_line_notes, rm_redundant_line_notes, sched_init): No
275 (rm_line_notes, save_line_notes, restore_line_notes,
276 schedule_block, set_priorities): Change argument to be a real
277 basic block, not one of haifa's "bb"s. All callers changed
278 (rm_other_notes): Initialize note_list here, not in
280 (sched_finish): New function, called from schedule_insn. * *
281 sched-int.h (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
282 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
283 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
284 MAX_BLOCKAGE_COST): Moved here from haifa-sched.c.
285 (get_block_head_tail, no_real_insns_p, rm_line_notes,
286 save_line_notes, restore_line_notes, rm_redundant_line_notes,
287 rm_other_notes, insn_issue_delay, set_priorities, schedule_block,
288 sched_init, sched_finish, ready_add, insn_cost): Declare.
290 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
291 Bruce Korb <bkorb@gnu.org>
293 * Makefile.in: pass $(build_canonical) to mkfixinc.sh.
294 * fixinc/mkfixinc.sh: accept build system name as an argument.
295 Use it for choosing the fix build method. Use the target for
296 selecting special fix rules.
298 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
300 * Makefile.in (OBJS): Add sched-deps.o.
301 (sched-deps.o): New rule.
302 * haifa-sched.c (struct deps, struct haifa_insn_data): Moved to
304 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved to
306 (SIZE_FOR_MODE): Delete unused macro.
307 (reg_known_equiv_p, reg_known_value, reg_pending_clobbers,
308 reg_pending_sets, reg_pending_sets_all, true_dependency_cache,
309 anti_dependency_cache, output_dependency_cache,
310 forward_dependency_cache): Variables moved to sched-deps.c.
311 (add_dependence, remove_dependence, find_insn_list,
312 find_insn_mem_list, add_insn_mem_dependence, flush_pending_lists,
313 sched_analyze_insn, sched_analyze_1, sched_analyze_2,
314 sched_analyze, group_leader, compute_forward_dependences,
315 init_deps, free_deps, init_dependency_caches, free_dependency_caches):
316 Functions moved to sched-deps.c.
317 (schedule_region): Call init_deps_global and finish_deps_global
318 instead of directly manipulating dependency data structures.
319 * sched-deps.c: New file.
320 (init_deps_global, finish_deps_global): New functions.
321 * sched-int.h (struct haifa_insn_data, struct deps): Moved here from
324 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved here
327 * Makefile.in (OBJS): Add sched-vis.o.
328 (sched-vis.o): New rule.
329 * haifa-sched.c (get_unit_last_insn): New function.
330 (sched_dump, insn_unit, actual_hazard_this_instance): No longer
332 (schedule_block): Call visualize_alloc and visualize_free. Delete
333 spurious return statement.
334 (init_target_units, insn_print_units, get_visual_tbl_length,
335 init_block_visualization, print_block_visualization, safe_concat,
336 visualize_scheduled_inns, visualize_no_unit, visualize_stall_cycles,
337 print_exp, print_value, print_pattern, print_insn, target_units,
338 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines, visual_tbl,
339 n_vis_no_unit, vis_no_unit): Move scheduling visualization
340 functions/variables...
341 * sched-vis.c: ...here. New file.
342 (visualize_alloc, visualize_free): New functions.
343 (visualize_scheduled_insns, visualize_stall_cycles,
344 print_block_visualization): Lose basic block argument. All callers
346 (visualize_scheduled_insns): Use new function get_unit_last_insn.
347 * sched-int.h (current_sched_info, sched_dump): Declare.
348 (init_target_units, insn_print_units, init_block_visualization,
349 print_block_visualization, visualize_scheduled_inns,
350 visualize_no_unit, visualize_stall_cycles, visualize_alloc,
351 visualize_free): Declare functions.
353 * sched-int.h: New file.
354 * Makefile.in (haifa-sched.o): Depend on it.
355 * haifa-sched.c: Include it.
356 (no_real_insns_p): New function.
357 (current_sched_info): New static variable.
358 (__inline, HAIFA_INLINE): Moved to sched-int.h.
359 (get_block_head_tail): Minor cleanup.
360 (init_ready_list, can_schedule_ready_p, new_ready, schedule_more_p,
361 rgn_print_insn, rgn_rank): New functions, broken out of
362 rank_for_schedule, schedule_insn and schedule_block, where they
363 are now called through function pointers in current_sched_info.
364 (queue_insn, schedule_insn, queue_to_ready, debug_ready_list,
365 print_insn): To display uid and block number, call the print_insn
366 function pointer in current_schedule_info.
367 (region_sched_info): New static variable.
368 (sched_target_n_insns, sched_n_insns, target_n_insns): New global
369 variables, moved out of schedule_block.
370 (schedule_block): Return void. All callers changed.
371 Move some of the setup code into schedule_region. Get head/tail
372 from current_sched_info, and update it when done.
373 (schedule_region): Slightly rearranged, some code moved here from
374 schedule_block. Call no_real_insns_p to avoid doing work for a
375 block that consists only of notes and labels.
376 (schedule_insns): Initialize current_sched_info.
378 2000-12-03 Neil Booth <neilb@earthling.net>
380 * cppmacro.c (funlike_invocation_p): Re-disable macros enabled
381 by contexts drops AFTER argument pre-expansion, so that they
382 remain enabled during argument pre-expansion.
383 (_cpp_pop_context): Unconditionally re-enable a macro when
384 dropping a context level.
386 2000-12-03 Manfred Hollstein <manfredh@redhat.com>
388 * arm/t-linux (MULTILIB_OPTIONS): Comment.
389 (MULTILIB_DIRNAMES): Likewise.
390 (EXTRA_MULTILIB_PARTS): Likewise.
392 (INSTALL_LIBGCC): Likewise.
394 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
396 * builtins.c (expand_builtin_strcat, expand_builtin_strncat,
397 expand_builtin_strspn, expand_builtin_strcspn): New functions.
398 (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
399 BUILT_IN_STRSPN and BUILT_IN_STRCSPN.
401 * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
402 BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries.
404 * c-common.c (c_common_nodes_and_builtins): Declare builtin
405 strcat, strncat, strspn and strcspn.
406 (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'.
408 * extend.texi (strcat, strcspn, strncat, strspn): Document new
411 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
413 * builtins.c (expand_builtin_strcmp): Use const*_rtx when
414 expanding strcmp at compile-time. Add another transformation.
415 (expand_builtin_strncmp): Add more transformations. Call
416 expand_builtin_memcmp, not expand_builtin_strcmp, under
417 appropriate conditions if HAVE_cmpstrsi.
419 2000-12-02 David Edelsohn <edelsohn@gnu.org>
421 * rs6000.md (anddi3_internal[23]): Prefer rldic? over andis
423 (cr logic): Really make operands sequential.
425 2000-12-02 Geoffrey Keating <geoffk@redhat.com>
427 * c-common.c (combine_strings): When the ISO C standard specifies
428 the maximum length of a string, it doesn't include the trailing
431 * cpplib.c (do_ifdef): Add check_eol() call.
432 (do_ifndef): Likewise.
434 2000-12-02 Daniel Berlin <dberlin@redhat.com>
435 Bruce Korb <bkorb@gnu.org>
437 * fixinc/*: global substitute /__MSDOS__/SEPARATE_FIX_PROC/
438 * fixinc/mkfixinc.sh: prepare to use Makefile.BEOS for *-*-beos*
439 * fixinc/Makefile.DOS: define SEPARATE_FIX_PROC for build
440 * fixinc/fixfix.c(wrap_fix): avoid wrapping files that
441 use the "__need_" hackery. It breaks them.
442 * fixinc/fixincl.c(process - SEPARATE_FIX_PROC):
443 Sometimes on DOS and BeOS the temp output file cannot be opened.
444 Skip the file noisily. Ought to be fixed instead.
446 2000-12-02 Bruce Korb <bkorb@gnu.org>
448 From: 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
450 * fixfixes.c (emit_gnu_type, format_write): Prototype.
451 (format_write, char_macro_use_fix, char_macro_def_fix): Use gcc's
452 custom uppercase ctype macros.
453 * fixincl.c (do_version): Make static and add ATTRIBUTE_NORETURN.
454 Use gcc's custom uppercase ctype macros.
456 (machine_matches): Add static prototype and constify variable.
457 (create_file, test_test, egrep_test): Add static prototype.
458 (quoted_file_exists): Likewise, and constify parameters.
459 (extract_quoted_files, internal_fix, start_fixer, fix_applies,
460 write_replacement, test_for_changes): Add static prototype.
461 (write_replacement, test_for_changes): Delete excess argument to
463 * fixtests.c (test): Make static.
464 * server.c (load_data, sig_handler, server_setup, find_shell): Add
466 (sig_handler): Mark parameter with ATTRIBUTE_UNUSED.
468 2000-12-02 Bruce Korb <bkorb@gnu.org>
470 * fixnc/mkfixinc.sh(msdosdjgpp): remove from fixincludes exception list
471 (per Laurynas Biveinis <lauras@softhome.net>)
473 2000-12-02 Richard Earnshaw <rearnsha@arm.com>
475 * arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
477 (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
478 (REGNO_OK_FOR_FOR_BASE_P): Delete.
479 (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
480 both strict and non-strict uses.
481 (REG_MODE_OK_FOR_BASE_P): Define in terms of above.
482 (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
483 (REG_OK_FOR_INDEX_P): Define in terms of above.
484 (REG_OK_FOR_BASE_P): Delete.
485 (REG_OK_FOR_PRE_POST_P): Delete.
486 (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
487 (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
488 (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
489 (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
490 (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes. Use ARM
491 specific variants rather than general ones. Use ARM_REG_OK_FOR_BASE_P
492 in pre/post increment cases.
493 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
494 (ARM_LEGITIMIZE_ADDRESS): Similarly.
495 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
496 * arm.c (legitimate_pic_address): Similarly.
498 2000-12-02 Neil Booth <neilb@earthling.net>
500 * tradcpp.c (struct answer, parse_assertion, parse_answer,
501 canonicalize_text, find_answer): New.
502 (do_assert, do_unassert): Provide appropriate function bodies.
503 (union hashval): New member answers.
505 2000-11-23 Marek Michalkiewicz <marekm@linux.org.pl>
507 * config/avr/avr.md: Document UNSPEC usage.
508 (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
509 Make operand 0 input only, clobber it. Use UNSPEC, not a bogus
510 MEM for program memory word reference. Do not add the label to
511 the table index in each of the asm output templates, instead ...
512 (casesi): ... do it in RTL. Adjust to match the above change.
514 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
516 * c-common.c (PTRDIFF_TYPE): Provide default here, ...
517 * c-decl.c: ... not here.
519 * haifa-sched.c (sched_dump): Renamed from dump. All users changed.
520 (old_max_uid): New variable.
521 (compute_forward_dependences): Renamed from
522 compute_block_forward_dependences; changed to accept block head and
523 tail instead of block number. Caller changed.
524 (free_deps, init_dependency_caches, free_dependency_caches,
525 init_regions, sched_init): New functions, split out from
526 schedule_insns and compute_block_backward_dependences.
528 2000-12-02 Neil Booth <neilb@earthling.net>
530 * cppexp.c (parse_number): Update diagnostic test.
532 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
534 * reload1.c (free_for_value_p): New function, frontend to
535 reload_reg_free_for_value_p. All callers of the latter now call
536 this function with an additional mode argument.
538 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
540 * install.texi (Configurations): Remove obsolete documentation for
543 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
545 * install.texi (Installation): Remove obsolete description for
546 libstdc++ which is now an integral part of GCC.
548 2000-12-01 Jim Blandy <jimb@redhat.com>
550 * dbxout.c (dbxout_parms): Correctly describe parameters passed by
551 invisible reference in registers, but then spilled to the stack.
552 Remove code to emit a second stab for such parameters; it attempts
553 to describe the value's location by introducing a synthetic C++
554 `reference' type, and then saying the stack slot has that
555 reference type. This loses type information (breaking GDB's
556 `ptype' command, among other things) just to describe a location
557 which stabs can represent correctly in other ways.
559 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
561 * final.c (output_addr_const) <PLUS>: Don't assume at least one
562 operand is a CONST_INT.
564 * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
565 (machine_dependent_reorg): Split all insns.
566 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
567 reg_class_contents[SIBCALL_REGS].
568 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
569 * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
570 call_value_pcrel, call, call_value, sibcall): Match even when
572 (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
574 (sibcalli): Likewise.
576 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
578 * c-common.c (warn_format, warn_format_y2k,
579 warn_format_extra_args, warn_format_nonliteral): Define.
580 (check_format_info): Check warn_format_nonliteral and
581 warn_format_extra_args.
582 (check_format_info_main): Check warn_format_y2k.
583 (set_Wformat): New function.
584 * c-common.h (warn_format_y2k, warn_format_extra_args,
585 warn_format_nonliteral, set_Wformat): Declare.
586 * c-decl.c (warn_format): Remove definition.
587 (c_decode_option): Handle -Wformat-nonliteral,
588 -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
590 * invoke.texi: Document these new options and -Wformat=2.
591 * toplev.c (documented_lang_options): Add these new options.
593 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
595 * builtins.def (BUILT_IN_IMAXABS): Add.
596 * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
597 * c-common.c (c_common_nodes_and_builtins): Create builtin
598 functions __builtin_imaxabs, and plain imaxabs unless
599 flag_no_nonansi_builtin outside C99 mode.
600 (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
601 * extend.texi: Document builtin imaxabs.
603 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
605 * c-common.c: Include "defaults.h".
606 (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
607 (c_common_nodes_and_builtins): Create string_type_node,
608 const_string_type_node, wint_type_node, intmax_type_node,
609 uintmax_type_node, default_function_type, ptrdiff_type_node and
610 unsigned_ptrdiff_type_node.
611 * c-common.h (identifier_global_value): Declare.
612 * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
613 (init_decl_processing): Don't create string_type_node,
614 const_string_type_node, wint_type_node, intmax_type_node,
615 uintmax_type_node, default_function_type, ptrdiff_type_node and
616 unsigned_ptrdiff_type_node.
617 (identifier_global_value): New function.
619 2000-12-01 Neil Booth <neilb@earthling.net>
621 * cppinit.c (initialize): Forgotten prototype.
622 * cpplex.c (_cpp_lex_token): Loop until not skipping.
623 Always clear PREV_WHITE upon meeting a new line.
624 * cpplib.c (end_directive): Set pfile->skipping after
626 * cpplib.h (cpp_reader): Remove macro_pos.
627 * cppmacro.c (cpp_get_line): Don't do anything special inside
629 (parse_arg): Add PREV_WHITE if a token appears after new lines.
630 (funlike_invocation_p): Save and restore the output position
631 over a successful check for a '('.
632 (enter_macro_context): Delete uses of macro_pos.
633 (cpp_get_token): Don't use pfile->skipping.
635 2000-12-01 Phil Edwards <pme@sources.redhat.com>
637 * diagnostic.c: Fix typos in comments.
638 * diagnostic.h: Likewise.
640 2000-11-30 Phil Edwards <pme@sources.redhat.com>
642 * rtl.texi (Machine Modes): Document BImode and OImode.
644 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
646 * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
649 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
651 * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
652 incomplete element type.
653 (grokparms): Before checking for incomplete parameter type, check
654 the type isn't error_mark_node.
656 2000-12-01 Jakub Jelinek <jakub@redhat.com>
658 * builtins.c (target_char_cast): New function.
659 (expand_builtin_strchr): Use it.
660 (expand_builtin_strrchr): Use it.
661 (builtin_memset_read_str): New function.
662 (expand_builtin_memset): Use target_char_cast.
663 Try to optimize memset with second argument non-zero using
666 2000-11-30 Marek Michalkiewicz <marekm@linux.org.pl>
668 * install.texi (avr): Replace incomplete list of supported MCU
669 types with a link to the current one ...
670 * invoke.texi (AVR Options): ... here. Update -mmcu= to list
671 all supported MCU types. Document -minit-stack= default.
672 Document new options -mno-tablejump, -mtiny-stack.
673 * md.texi (AVR family): Fix typo in 'w' constraint letter
674 description. Document 'q'. Update 'O'.
676 2000-12-01 Bernd Schmidt <bernds@redhat.co.uk>
678 * combine.c (cant_combine_insn_p): Only disallow insns involving
679 hard regs if they are reg-reg moves.
680 (try_combine, can_combine_p, combinable_i3pat): Delete old
681 SMALL_REGISTER_CLASSES tests.
683 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
685 * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
686 whether X is a CONST_INT.
687 (addsubcosts): Likewise.
689 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
691 (ARG_POINTER_REGNUM): Set to AP_REG.
693 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
695 * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
696 splits): Only match on TARGET_SH4.
698 * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
701 2000-11-30 Richard Henderson <rth@redhat.com>
703 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
704 * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
706 2000-11-30 Richard Henderson <rth@redhat.com>
708 * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
709 (DO_SELECT_SECTION): New.
710 (SELECT_SECTION): Use it.
711 (UNIQUE_SECTION_P): New.
712 (UNIQUE_SECTION): New.
714 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
716 * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
717 from va_list before using it.
719 2000-11-30 Michael Matz <matzmich@cs.tu-berlin.de>
721 * flow.c (make_edge): Early out, if no flags to set.
722 (calculate_global_regs_live): Clear out garbage only when necessary.
724 * simplify-rtx.c (varray_type used_regs): New.
725 (clear_table): Use it to only clear necessary items.
726 (cselib_lookup, cselib_record_set): Remember newly set items.
727 (cselib_update_varray_sizes, cselib_init): Initialize and grow
730 * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
731 Move clearing of dead regs out of insn-loop.
733 2000-11-30 Richard Henderson <rth@redhat.com>
735 * calls.c (expand_call): Emit queued insns before creating
736 the tail recursion sequence.
738 2000-11-30 J. David Anglin <dave.anglin@nrc.ca>
739 Bruce Korb <bkorb@gnu.org>
741 * fixinc/inclhack.def(): prevent dual double definition protection
742 * fixinc/fixincl.x: regenerate
744 2000-11-29 Loren J. Rittle <ljrittle@acm.org>
746 * fixinc/Makefile.in (fixincl.x): Explicitly state the
747 location of the generated file.
749 2000-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
751 * README.FRESCO: Remove obsolete file.
753 2000-11-30 Mark Kettenis <kettenis@gnu.org>
755 * configure.in: Reorganize handling of *-*-gnu*, to share target
756 specific make details with Linux. Update comments to clarify
757 the distinction between GNU/Linux and GNU/Hurd.
758 * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
759 TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
760 config/t-linux for the Hurd.
762 2000-11-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
764 * config/mn10200/udivmod.c, config/mn10200/divmod.c,
765 config/mn10200/udivmodsi4.c: Moved from here.
766 * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
767 * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
768 C division functions.
769 * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
771 Thu Nov 30 01:12:52 2000 Jeffrey A Law (law@cygnus.com)
773 * pa.md (conditional moves): Avoid holes in operand list.
774 (mod, umod patterns): Similarly.
775 (variable extract/shift patterns): Similarly.
777 2000-11-30 Neil Booth <neilb@earthling.net>
779 * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
780 maybe_objc_check_decl, build_objc_string_object,
781 objc_declare_alias, objc_declare_class, build_message_expr,
782 build_protocol_expr, build_selector_expr, build_encode_expr,
783 get_class_ivars, start_class, start_protocol): Remove
784 redundant code, assuming doing_objc_thang is true.
786 2000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
788 * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
789 (record_unscaled_index_insn_codes): Likewise.
790 (unscaled_index_insn_codes): Delete.
791 (max_unscaled_index_insn_codes_uid): Delete.
792 (output_function_prologue, output_function_epilogue, pa_reorg):
793 Don't use the unscaled index insn hack.
795 * pa.md: Remove hack from all index insns to reverse the operand
796 order of frame and stack pointer references incorrectly created
799 * function.h (emit_status): Delete member regno_pointer_flag and
800 rename regno_pointer_flag_length to regno_pointer_align_length.
801 Delete define for REGNO_POINTER_FLAG.
802 * integrate.h (inline_remap): Delete member regno_pointer_flag.
803 Add member x_regno_reg_rtx.
804 * rtl.h (rtx_def): Use frame_related bit to indicate register is
805 a pointer in REG expressions. Define REG_POINTER macro.
806 * alias.c (find_base_value, find_base_term): Use REG_POINTER
807 instead of REGNO_POINTER_FLAG.
808 * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
809 * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
810 of regno_pointer_flag_length. Remove code which refers to
812 (mark_reg_pointer): Use REG_POINTER.
813 (free_emit_status): Remove code which refers to regno_pointer_flag.
814 (init_emit, mark_emit_status): Likewise.
815 * flow.c (dump_flow_info): Likewise.
816 * function.c (preserve_temp_slots): Likewise.
817 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
818 Use x_regno_reg_rtx instead of regno_pointer_flag for function
819 pointer determination in map.
820 * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
821 * predict.c (estimate_probability): Likewise.
822 * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
823 * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
824 regno_pointer_flag for function pointer determination in map.
825 * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
827 * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
829 (restore_unscaled_index_insn_codes): Revise comment.
831 * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
833 2000-11-30 Joseph S. Myers <jsm28@cam.ac.uk>
835 * extend.texi: Update documentation for attributes.
837 2000-11-29 David O'Brien <obrien@FreeBSD.org>
839 * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
840 (ASM_DECLARE_OBJECT_NAME): Same.
841 (ASM_FILE_END): Same.
842 (ASM_FINISH_DECLARE_OBJECT): Same.
843 (ASM_IDENTIFY_GCC): Same.
844 (ASM_IDENTIFY_LANGUAGE): Same.
845 (ASM_OUTPUT_CONSTRUCTOR): Same.
846 (ASM_OUTPUT_DEF): Same.
847 (ASM_OUTPUT_DESTRUCTOR): Same.
848 (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
849 (ASM_OUTPUT_SECTION_NAME): Same.
850 (ASM_WEAKEN_LABEL): Same.
851 (BSS_SECTION_ASM_OP): Same.
852 (COMMON_ASM_OP): Same.
853 (CONST_SECTION_ASM_OP): Same.
854 (CONST_SECTION_FUNCTION): Same.
855 (CTORS_SECTION_ASM_OP): Same.
856 (DTORS_SECTION_ASM_OP): Same.
858 (FINI_SECTION_ASM_OP): Same.
859 (IDENT_ASM_OP): Same.
860 (IDENT_ASM_OP): Same.
861 (INIT_SECTION_ASM_OP): Same.
863 (MAX_OFILE_ALIGNMENT): Same.
864 (SBSS_SECTION_ASM_OP): Same.
865 (SDATA_SECTION_ASM_OP): Same.
866 (SECTION_FUNCTION_TEMPLATE): Same.
867 (SELECT_SECTION): Same.
868 (SE_CONST_SECTION): Same.
871 (STRING_ASM_OP): Same.
872 (STRING_LIMIT): Same.
874 (TYPE_OPERAND_FMT): Same.
876 2000-11-29 Neil Booth <neilb@earthling.net>
878 * c-decl.c (c_decode_option): Don't handle -lang-objc.
879 * objc/lang-options.h: Remove -lang-objc.
880 * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
881 * objc/objc-act.c (lang_init_options): Set c_language.
883 2000-11-29 Jakub Jelinek <jakub@redhat.com>
885 * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
888 2000-11-29 Neil Booth <neilb@earthling.net>
890 * c-pragma.c (init_pragma): Update for parse_in type change.
892 2000-11-29 Laurynas Biveinis <lauras@softhome.net>
894 * configure.in: recognize DOS-style absolute paths.
896 2000-11-29 Jakub Jelinek <jakub@redhat.com>
898 * expr.h (store_by_pieces): Add prototype.
899 (can_store_by_pieces): Likewise.
900 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
901 (can_store_by_pieces): New.
902 (store_by_pieces): New.
903 (clear_by_pieces): New.
904 (clear_by_pieces_1): New.
905 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
906 arbitrary compiler generated constants into memory block.
907 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
908 * builtins.c (c_readstr): New.
909 (builtin_memcpy_read_str): New.
910 (expand_builtin_memcpy): If src is string constant and
911 emit_block_move would move it by pieces, compute integer constants
912 from the string and store it into memory block instead.
913 (builtin_strncpy_read_str): New.
914 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
915 not return INTEGER_CST, don't optimize.
916 If N is larger than strlen(src) + 1, try to copy the string
917 including padding with store_by_pieces.
918 (expand_builtin_strcmp): If both arguments have side effects, don't
920 (expand_builtin_fputs): If STR has side effects, don't optimize.
922 2000-11-29 Richard Earnshaw <rearnsha@arm.com>
924 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
925 Add use of link register.
927 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
929 * extend.texi: Update documentation for default format attributes.
931 Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
933 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
934 a list, to keep track of the sections.
936 2000-11-28 Nick Clifton <nickc@redhat.com>
938 * config/arm/arm.md (pic_load_addr): Split into
939 pic_load_addr_arm and pic_load_addr_thumb.
941 * config/arm/arm.c (legitimize_pic_address): Generate either
942 ARM or Thumb versions of pic_load_addr.
943 (arm_finalize_pic): Generate either ARM or Thumb versions of
946 2000-11-28 Richard Henderson <rth@redhat.com>
948 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
949 after sibcall do_pending_stack_adjust.
951 Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
953 * jump.c (delete_insn): Check that REG_LABEL note actually contains
956 2000-11-28 Neil Booth <neilb@earthling.net>
958 * c-common.h: Remove flag_digraphs.
959 * c-decl.c: Remove flag_digraphs.
960 (c_decode_option): Don't set it.
961 * c-lex.c (init_c_lex): Don't do anything for digraphs.
963 2000-11-28 Richard Henderson <rth@redhat.com>
965 * c-parse.in (finish_parse): Update for parse_in type change.
968 2000-11-28 Neil Booth <neilb@earthling.net>
970 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
971 indicating whether to scan all buffers on the stack or
973 * cppinit.c (do_includes): Update.
974 * cppmain.c (main): Update.
975 * cpplib.h: Update prototype.
977 2000-11-28 Richard Henderson <rth@redhat.com>
979 * genoutput.c (validate_insn_operands): New.
982 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
983 (divmoddi_internal): Likewise.
984 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
985 * config/i960/i960.md (branch patterns): Likewise.
986 * config/ia64/ia64.md (tbit_and_0): Likewise.
987 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
988 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
989 * config/mips/mips.md (divmodsi4_internal): Likewise.
990 (divmoddi4_internal): Likewise.
991 * config/rs6000/rs6000.md (call patterns): Likewise.
992 * config/sh/sh.md (movsi_y): Likewise.
993 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
995 2000-11-28 Richard Henderson <rth@redhat.com>
997 * config.gcc: Kill residual pyramid support.
999 2000-11-28 Neil Booth <neilb@earthling.net>
1001 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
1002 * c-decl.c (c_decode_option): Update to match.
1003 * c-lex.c (init_c_lex, yyparse): Update to match.
1004 * c-lang.c (lang_init_options): Use cpp_create_reader.
1005 * cppinit.c (cpp_init): Rename initialize.
1006 (cpp_reader_init): Rename cpp_create_reader. Create the
1007 reader. Initialize cpplib if appropriate.
1008 * cpplib.h (cpp_create_reader) New prototype.
1009 (cpp_init, cpp_reader_init): Delete prototypes.
1010 * cppmain.c (general_init, setup_callbacks): New functions.
1012 * fix-header.c (scan_in): Change type to cpp_reader *.
1013 (read_scan_file): Update for new cpplib interface and scan_in type.
1015 * cp/decl.c (parse_in): Change to cpp_reader *.
1016 (lang_decode_option): Update.
1017 * cp/lex.c (lang_init_options): Use new cpplib interface.
1018 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
1019 * cp/spew.c (read_token): Update.
1020 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
1022 2000-11-28 Jakub Jelinek <jakub@redhat.com>
1024 * loop.c (load_mems): Avoid using next_label to find end_label. If
1025 jumping outside of the loop (other than loop end), don't hoist MEMs
1028 2000-11-28 Jan Hubicka <jh@suse.cz>
1030 * calls.c (expand_call): Don't disable tail recursion based
1033 2000-11-28 Neil Booth <neilb@earthling.net>
1035 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
1036 (struct directive): Drop 4th argument from handlers.
1037 (do_define, do_line, do_include, do_undef, do_else, do_elif,
1038 do_endif): Similarly.
1039 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
1040 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
1041 (make_definition, make_undef): Take a const char*.
1042 (make_assertion): New function.
1043 (struct directive_table): Update.
1044 (main): Handle -A command line argument.
1045 (handle_directive): Drop fourth handler argument.
1047 2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
1049 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
1050 is anything but REG or MEM, but look inside STRICT_LOW_PART.
1052 Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1054 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
1055 (IS_ABSOLUTE_PATHNAME): New macro.
1056 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
1058 2000-11-28 Jakub Jelinek <jakub@redhat.com>
1060 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
1062 2000-11-27 Jim Wilson <wilson@redhat.com>
1064 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
1066 2000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
1068 * extend.texi (Nested Functions): Update URL of Usenix paper.
1070 2000-11-27 Mark Mitchell <mark@codesourcery.com>
1072 * function.c (free_after_compilation): Clear x_clobber_return_insn.
1074 2000-11-27 Neil Booth <neilb@earthling.net>
1076 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
1077 command line options.
1078 (cpp_handle_option): Similarly.
1079 * cpplib.h (struct cpp_options): Remove warn_paste.
1080 * cppmacro.c (paste_tokens): Apart from assembler, make
1081 unpasteable token warning mandatory.
1083 2000-11-27 Neil Booth <neilb@earthling.net>
1085 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
1086 (main): Allocate a pending directive set of these. Use it.
1087 Merge handling of -D and -U. Update handling of pending
1088 directives. Free the memory after use.
1090 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
1092 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
1093 (struct propagate_block_info): Add new member cond_local_set.
1094 (propagate_block): Accept new arg cond_local_set. All callers
1096 (init_propagate_block_info): Likewise.
1097 (calculate_global_regs_live): Allocate & free cond_local_set. Always
1098 rescan if there's overlap between cond_local_set and new_live_at_end.
1099 (mark_set_1): Set bits either in cond_local_set or local_set, as
1101 * basic-block.h (struct basic_block_def): New field cond_local_set.
1102 (propagate_block, init_propagate_block_info): Update prototypes.
1104 Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
1106 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
1109 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
1111 * arm.c (select_dominance_cc_mode): Handle new way that combine
1112 canonicalizes conditional compares.
1113 (arm_select_cc_mode): Likewise.
1114 * arm.md: Garbage collect some dead code.
1115 (cmp_and, cmp_ior): New patterns.
1116 (splitter for conditional move with inverted false): Use cond_exec
1117 and handle unordered comparisons.
1119 Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
1121 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
1122 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
1123 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
1124 ix86_force_to_memory and ix86_free_from_memory.
1126 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
1128 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
1129 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
1130 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
1131 one_cmpldi2): Merge with splitters to create define_insn_and_split
1132 patterns. Remove redundant splits.
1133 (peephole2 for add:SI of invalid immediate): New.
1134 (peephole2 for minus:SI of invalid immediate): New.
1135 (peephole2 for ior:SI of invalid immediate): New.
1136 (peephole for merge of move and compare): Convert ot peephole2.
1137 (addsf3, adddf3): Mark as commutative.
1139 * arm.md (thumb peephole for merging stack adjustments): Convert to
1142 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
1144 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
1146 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
1147 (reload_cse_simplify_operands): Do nothing about operands where both
1148 the operand and the match_operand fail to give us a mode.
1149 * simplify-rtx.c (wrap_constant): New function.
1150 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
1151 CONST describing the proper mode.
1152 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
1154 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
1155 htab_find_slot_with_hash.
1156 (cselib_lookup): Likewise.
1158 Based on a patch from Geoff Keating <geoffk@redhat.com>:
1159 * loop.c (basic_induction_var): If a REG is set from something
1160 that is not a biv, then the REG is not a biv. Even if it is
1161 earlier set from something that is a biv.
1163 2000-11-27 Alexandre Oliva <aoliva@redhat.com>
1165 * configure.in (extra_objs): Enclose extra_headers in quotes.
1166 * configure: Rebuilt.
1168 2000-11-27 Neil Booth <neilb@earthling.net>
1170 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
1171 Combine into the new function cb_change_file.
1172 (init_c_lex): Update.
1173 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
1174 (cpp_syshdr_flags): Delete.
1175 * cpphash.h (_cpp_do_file_change): New prototype.
1176 Move struct cpp_buffer here from...
1177 * cpplib.h (struct cpp_buffer): ... here.
1178 (enum cpp_fc_reason, struct cpp_file_loc,
1179 struct_cpp_file_change, change_file): New.
1180 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
1181 * cpplib.c (do_line): Update for new cb_change_file callback.
1182 (_cpp_do_file_change): New function.
1183 (_cpp_pop_buffer): Update to use it.
1184 * cppmain.c (move_printer): Delete.
1185 (main): Set up single callback cb_change_file.
1186 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
1187 (cb_change_file): New.
1188 * fix-header.c (cur_file, cb_change_file): New.
1189 (recognized_function, read_scan_file): Update.
1190 * scan-decls.c (scan_decls): Update.
1191 * scan.h (recognized_function): Update prototype.
1193 2000-11-26 Mark Mitchell <mark@codesourcery.com>
1195 * tree.h (mark_tree_hashtable): New function.
1196 * tree.c (mark_tree_hashtable_entry): New function.
1197 (mark_tree_hashtable): Likewise.
1199 2000-11-27 Michael Meissner <meissner@redhat.com>
1201 * d30v-protos.h (srelational_si_operator): Correctly spell
1203 (urelational_si_operator): Ditto.
1204 (relational_si_operator): Ditto.
1205 (d30v_expand_prologue): Add prototype.
1206 (d30v_expand_epilogue): Ditto.
1208 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
1210 * d30v.md (movcccc_*): Delete now unused patterns.
1211 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
1213 (define_cond_exec): Use 'b' to select branch flags.
1215 2000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1217 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
1219 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
1221 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
1223 * c-common.c (c_common_nodes_and_builtins): Declare builtin
1224 strncpy and strncmp.
1226 * extend.texi (strncmp, strncpy): Document new builtins.
1228 2000-11-26 Mark Mitchell <mark@codesourcery.com>
1230 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
1231 a list, to keep track of the sections.
1232 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
1233 parameter provided will always be a canonical string.
1235 2000-11-26 Neil Booth <neilb@earthling.net>
1237 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
1240 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
1242 * makefile.vms: Remove EGCS references.
1244 2000-11-26 Ulrich Drepper <drepper@redhat.com>
1246 * dwarf2out.c (output_file_names): New function. Compute minimal
1247 combination of directory and file name table and emit them.
1248 (output_line_info): Remove code to emit directory and file name
1249 table and call output_file_names instead.
1250 (file_info_cmp): Helper function to sort directory names.
1252 2000-11-26 Neil Booth <neilb@earthling.net>
1254 * cpplib.h (struct cpp_reader): Remove lang_asm.
1255 (struct cpp_options): Remove c89. New members lang,
1257 * cppexp.c (parse_number): Use them.
1258 * cpphash.h (VALID_SIGN): Use them.
1259 * cppinit.c (set_lang, cpp_start_read): Update.
1260 * cpplex.c (parse_string, _cpp_lex_token): Update.
1261 * cpplib.c (_cpp_handle_directive): Update.
1262 * cppmacro.c (parse_args): Update.
1263 * cppmain.c (scan_buffer): Update.
1265 Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1267 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
1270 2000-11-26 Neil Booth <neilb@earthling.net>
1272 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
1273 * c-decl.c: Remove parse_in declaration.
1274 * c-lang.c: Similarly.
1275 * c-lex.c: Similarly.
1276 * c-parse.in: Similarly.
1277 * c-pragma.c: Similarly.
1278 * configure.in: Similarly.
1279 * cp/Make-lang.in: Similarly.
1280 * cp/spew.c: Similarly.
1281 * cp/decl2.c: Remove check for lang-c++ option.
1282 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
1283 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
1284 * c-lex.h: Add declaration of parse_in.
1285 * cppinit.c: Call set_lang after allocating pfile->pending.
1286 * configure: Regenerate.
1288 2000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
1290 * combine.c (try_combine): Remove redundant test.
1292 2000-11-25 Richard Henderson <rth@redhat.com>
1294 * c-common.h (DECL_C_HARD_REGISTER): New.
1295 * c-decl.c (finish_decl): Set it for asm register variables.
1296 * c-semantics.c (emit_local_var): Test it when instantiating one.
1298 2000-11-25 Richard Henderson <rth@redhat.com>
1300 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
1301 lineno for the start of the function.
1303 2000-11-25 Richard Henderson <rth@redhat.com>
1305 * dwarf2out.c (file_table, file_table_allocated): Remove.
1306 (file_table_allocated): Remove.
1307 (struct file_table): New.
1308 (decl_file_table, line_file_table): New.
1309 (print_dwarf_line_table): Use them.
1310 (size_of_line_prolog): Likewise.
1311 (output_line_info): Likewise.
1312 (add_src_coords_attributes): Likewise.
1313 (gen_subprogram_die): Likewise.
1314 (gen_variable_die): Likewise.
1315 (dwarf2out_add_library_unit_info): Likewise.
1316 (dwarf2out_line): Likewise.
1317 (lookup_filename): Take a struct file_table argument.
1318 (init_file_table): New.
1319 (dwarf2out_init): Use it.
1321 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
1323 * invoke.texi: Update sequence points references.
1325 2000-11-25 Neil Booth <neilb@earthling.net>
1327 * c-common.c: Remove USE_CPPLIB conditional inclusions.
1328 * c-common.h: Similarly.
1329 * c-decl.c: Similarly.
1330 * c-lang.c: Similarly.
1331 * c-lex.c: Similarly.
1332 * c-parse.in: Similarly.
1333 * c-pragma.c: Similarly.
1334 * c-pragma.h: Similarly.
1336 * toplev.c: Similarly.
1337 * cp/cp-tree.h: Similarly.
1338 * cp/decl2.c: Similarly.
1339 * cp/lang-specs.h: Similarly.
1340 * cp/lex.c: Similarly.
1341 * cp/lex.h: Similarly.
1342 * cp/spew.c: Similarly.
1343 * java/lang-options.h: Similarly.
1344 * objc/lang-specs.h: Similarly.
1345 * objc/objc-act.c: Similarly.
1347 * configure.in: Remove configure option.
1348 * config.in: Regenerate.
1349 * configure: Regenerate.
1351 2000-11-25 Richard Henderson <rth@redhat.com>
1353 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
1354 Revert 2000-11-22 change.
1356 2000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
1358 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
1361 2000-11-25 Philipp Thomas <pthomas@suse.de>
1362 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
1363 * configure: Rebuilt.
1365 2000-11-25 Jakub Jelinek <jakub@redhat.com>
1367 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
1368 Handle CONST_INT as second argument.
1369 * config/sparc/sparc.c (set_extends): Remove first argument.
1370 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
1372 (sparc_check_64): Abort if first argument is not REG.
1373 If it is DImode REG, look at the lower register of the register
1376 * config/sparc/sparc.c (load_pic_register, restore_regs,
1377 output_return, sparc_v8plus_shift, sparc_function_profiler,
1378 sparc_function_block_profiler, sparc_block_profiler): Fix output
1381 2000-11-25 Alexandre Oliva <aoliva@redhat.com>
1383 * config/sh/sh.h (TARGET_NONE): New.
1384 (TARGET_SWITCHES): For all variant-selecting switch, use
1385 TARGET_NONE to reset all other variant-selecting switch. Added
1386 empty strings to avoid warnings.
1387 (TARGET_DEFAULT): Set to SH1_BIT.
1389 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
1392 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
1393 (sibcall_pcrel): New insn_and_split.
1394 (sibcall, sibcall_value, sibcall_epilogue): New expands.
1396 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
1397 symPLT_label2reg, call, call_value): Don't set
1398 current_function_uses_pic_offset_table.
1399 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
1400 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
1401 takes it into account.
1402 (FINALIZE_PIC): Delete, useless.
1403 (LEGITIMATE_CONSTANT_P): Delete, unused.
1404 * config/sh/sh.c (sh_expand_prologue): Don't use
1405 current_function_uses_pic_offset_table. Don't special-case
1406 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
1408 (sh_expand_epilogue, initial_elimination_offset): Don't
1409 special case PIC_OFFSET_TABLE_REGNUM.
1411 2000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
1413 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
1414 * config/sh/sh.md (UNSPEC_CALLER): New constant.
1415 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
1416 (call_pcrel, call_value_pcrel): New insn_and_splits.
1417 (call, call_value): Use them.
1418 (call_site): New expand.
1419 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
1420 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
1421 Output call_site label.
1422 (PREDICATE_CODES): Added symbol_ref_operand.
1423 * config/sh/sh.c (symbol_ref_operand): Define.
1424 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
1425 to CALL_INSNs in the split sequence.
1427 2000-11-24 Nick Clifton <nickc@redhat.com>
1429 * config.gcc (v850-*-*): Define c_target_objs and
1432 * config/v850/t-v850: Define how to build v850-c.o
1434 * config/v850/v850.h (struct data_area_stack_element): Move
1435 definition here from v850.c.
1437 * config/v850v850.c: Include gcc.h to avoid compile time
1439 (push_data_area): Move to v850-c.c.
1440 (pop_data_area): Move to v850-c.c.
1441 (mark_current_function_as_interrupt): Move to v850-c.c.
1442 (GHS_default_section_names): Allow to be exported.
1443 (GHS_current_section_names): Allow to be exported.
1444 (data_area_stack_elements): Allow to be exported.
1445 (ghs_pragma_section): Move to v850-c.c.
1446 (ghs_pragma_interrupt): Move to v850-c.c.
1447 (ghs_pragma_starttda): Move to v850-c.c.
1448 (ghs_pragma_startsda): Move to v850-c.c.
1449 (ghs_pragma_startzda): Move to v850-c.c.
1450 (ghs_pragma_endtda): Move to v850-c.c.
1451 (ghs_pragma_endsda): Move to v850-c.c.
1452 (ghs_pragma_endzda): Move to v850-c.c.
1454 * config/v850/v850-c.c: New file: Contains v850 specific
1455 pragma parsing functions.
1457 2000-11-24 Nick Clifton <nickc@redhat.com>
1459 * config.gcc (extra_objs): Remove duplicate description.
1460 (c_target_objs): New variable. Contains target specific
1461 object files for the gcc C compiler only.
1462 (cxx_target_objs): New variable. Contains target specific
1463 object files for the gxx C++ compiler only.
1465 * configure.in (c_target_objs): Substitute in the makefile.
1466 (cxx_target_objs): Substitute in the makefile.
1467 * configure: Regenerate.
1469 * Makefile.in (C_TARGET_OBJS): Define and initialise from
1471 (CXX_TARGET_OBJS): Define and initialise from
1473 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
1475 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
1477 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
1478 about how the use of the 'c_lex' function requires the use of
1479 the target specific, language specific object files feature of
1480 the configuration mechanism.
1482 Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1484 * gcc.c (process_command): Use F_OK, not R_OK.
1486 2000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
1488 * flow.c (print_rtl_and_abort): Remove ANSIism.
1490 Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
1492 * config/sh/sh.h (GENERAL_REGISTER_P,
1493 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
1494 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
1496 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
1497 * config/sh/sh.c: Use new macros.
1498 * config/sh/sh.md: Likewise.
1500 Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
1502 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
1503 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
1506 Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
1508 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
1510 (machine_dependent_reorg): Wrong optimization based on
1511 NOTICE_UPDATE_CC removed.
1513 Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
1515 * jump.c (delete_computation): Re-instate deletion of feeding insn.
1516 (delete_insn): Look for REG_LABEL notes.
1517 (redirect_tablejump): Delete feeding insns.
1519 2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
1521 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
1522 call_value_pop_1): Make sure operand numbers are contiguous.
1524 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
1526 * reload1.c (conflicts_with_override): New function.
1527 (emit_input_reload_insns): Use it to tighten test for validity
1528 of substituting into output of previous insn.
1530 * haifa-sched.c (struct ready_list): New.
1531 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
1533 (schedule_insn): Replace args READY and N_READY with a pointer to a
1534 ready_list; return void. Use the new functions to access the ready
1535 list. All callers changed.
1536 (queue_to_ready, debug_ready_list): Likewise.
1537 (schedule_block): Initialize a ready_list structure. Use new
1538 functions to access it.
1539 (max_priority): Remove unused variable.
1540 (schedule_insn): Don't set it.
1542 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
1544 * combine.c (cant_combine_insn_p): New function.
1545 (try_combine): Use it.
1547 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
1548 * c-common.c (c-obstack.c): Include "obstack.h".
1549 (struct reverse_tree): Delete.
1550 (reverse_list, reverse_max_depth): Delete.
1551 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
1552 (struct tlist, struct tlist_cache): New.
1553 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
1554 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
1555 warn_for_collisions, warn_for_collisions_1, new_tlist): New
1557 (verify_sequence_points): Rewritten.
1558 * fold-const.c (fold): Don't lose possibly important sequence
1559 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
1561 2000-11-24 Richard Sandiford <rsandifo@redhat.com>
1563 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
1564 when reversing a register-to-register copy. Reversal now disabled
1565 when the previous instruction has a REG_EQUIV.
1567 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
1569 * c-parse.in (unary_expr): Move VA_ARG from here ...
1570 (primary): ... to here.
1572 2000-11-23 Graham Stott <grahams@redhat.com>
1574 * expr.c (store_constructor): If a field is non addressable and
1575 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
1577 2000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
1579 * flow.c (print_rtl_and_abort): New function.
1580 (verify_wide_reg, verify_local_live_at_start): Try to dump more
1581 information before aborting.
1583 2000-11-23 Alexandre Oliva <aoliva@redhat.com>
1585 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
1586 is narrower than requested mode.
1587 (gen_highpart): Abort if register mode is narrower than
1590 2000-11-23 Graham Stott <grahams@redhat.com>
1592 * cse.c (cse_insn): Initialise all regcost variables.
1593 Fix a typo add missing '='.
1594 Only compare costs if there is a replacement insn.
1596 Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
1598 * final.c (output_addr_const) [LABEL_REF]: Simplify.
1599 [MINUS]: Enclose non-CONST_INTs in parentheses.
1600 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
1601 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
1602 * varasm.c (decode_rtx_const) [CONST]: If it's not something
1603 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
1604 instead of abort()ing.
1605 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
1606 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
1607 formerly handled in output_pic_addr_const.
1608 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
1609 operands of MINUS in CONSTs so that decode_rtx_const() will
1612 Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
1614 * config/sh/sh.md (mova_const): New pattern.
1615 (GOTaddr2picreg): Use it.
1616 * config/sh/sh.c (broken_move): Match it.
1617 (mova_p): Don't match it.
1618 (machine_dependent_reorg): Adjust it.
1620 Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
1622 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
1623 Moved most register-number #defines...
1624 * config/sh/sh.md (define_constants): ... here. Use macros to
1625 refer to registers and unspecs.
1626 * config/sh/sh.c: Likewise.
1628 Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
1630 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
1631 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
1632 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1633 (splay-tree.o, hash.o): Likewise.
1635 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
1636 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
1637 (hashtab.o): Likewise.
1638 (gcov.o): Depend on $(CONFIG_H).
1639 * configure.in: #include insn-codes.h in tm.h.
1641 2000-11-22 Nick Clifton <nickc@redhat.com>
1643 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
1644 const char * to avoid a compile time warning.
1646 * config/arm/arm.md (define_constants): Define symbolic names for
1647 the link register, last integer register and the fake CC register.
1648 Update patterns to use these symbolic names.
1650 2000-11-22 Neil Booth <neilb@earthling.net>
1652 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
1653 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
1655 2000-11-22 Richard Henderson <rth@redhat.com>
1657 * haifa-sched.c (sched_analyze_1): Don't special-case calls
1658 for clobbering registers.
1659 (sched_analyze_2): Likewise.
1660 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
1662 2000-11-22 Chris Demetriou <cgd@sibyte.com>
1663 Neil Booth <neilb@earthling.net>
1665 * gcc.c (validate_switches): Validate multiple switches named
1666 in '|' (or) expressions in specs.
1667 (handle_braces): If more than 1 alternative in a '|' spec
1668 matches, call do_spec1 just once.
1670 2000-11-22 Michael Meissner <meissner@redhat.com>
1672 * d30v.h (TARGET_SWITCHES): Add documentation strings.
1673 (TARGET_OPTIONS): Ditto.
1674 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
1677 Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
1679 * pa.c (hppa_encode_label): Account for addition of encoding
1680 character when allocating persistent space for the new label
1683 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1685 * Makefile.in, config.gcc, configure.in: Expunge remaining
1686 traces of facility for running MD files through C preprocessor.
1688 2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
1690 * gcov.texi: Add magic comments for texi2pod.pl.
1691 * Makefile.in: Add rules to generate and install gcov.1.
1692 * gcov.1: New (generated) file.
1694 2000-11-21 Richard Henderson <rth@redhat.com>
1696 * regrename.c (scan_rtx_reg): Terminate the chain rather than
1697 abort on mark_read with NO_REGS.
1699 2000-11-21 Mike Stump <mrs@wrs.com>
1701 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
1702 compilation with older compilers, such as /bin/cc on SunOS.
1703 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
1705 2000-11-21 Richard Henderson <rth@redhat.com>
1707 * varasm.c (record_constant): Pad the constructed
1708 constant_descriptor appropriately.
1710 Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
1712 * rtl.h (traverse_md_constants): Declare.
1713 (struct md_constant): Define.
1714 * Makefile.in (HOST_RTL): Add hashtab.o .
1715 (OBJS): Add hashtab.o .
1716 (hashtab.o): New rule.
1717 (rtl.o): Depends on HASHTAB_H.
1718 * rtl.c (hashtab.h): #include.
1719 (md_constants): New static variable.
1720 (def_hash, def_name_eq_p, read_constants): New static functions.
1721 (traverse_md_constants): New function.
1722 (read_name): Do constant expansion.
1723 (read_rtx): Recognize define_constants.
1724 * gencodes.c (print_md_constant): New function.
1725 (main): Emit #defines for all constant definitions encountered.
1726 * md.texi (Constant Definitions): New node.
1727 * gensupport.c (xcalloc): New function.
1729 2000-11-21 Richard Henderson <rth@redhat.com>
1731 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
1732 * config/alpha/alpha-protos.h: Declare it.
1733 * config/alpha/alpha.md (abstf_internal): Use it.
1734 (negtf_internal): Likewise.
1735 (andnotdi3): Unstar the name.
1736 (movtf_internal): Add o/G alternative.
1738 2000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
1740 * stringpool.c (stringpool_statistics): Also report number and
1741 percentage of entries which are identifiers.
1743 2000-11-21 Diego Novillo <dnovillo@redhat.com>
1745 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
1746 visited before visiting it.
1748 2000-11-21 Nick Clifton <nickc@redhat.com>
1750 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
1751 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
1753 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
1755 2000-11-21 Richard Henderson <rth@redhat.com>
1757 * c-common.c (c_unsafe_for_reeval): New function.
1758 (add_c_tree_codes): Register it.
1759 * c-common.h: Declare it.
1760 * tree.c (lang_unsafe_for_reeval): New hook.
1761 (unsafe_for_reeval): Call it.
1762 * tree.h: Declare it.
1764 2000-11-21 Richard Henderson <rth@redhat.com>
1766 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
1769 2000-11-21 Neil Booth <neilb@earthling.net>
1771 * do_includes: Revert to using cpp_read_file.
1773 2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
1775 * loop.c (consec_sets_giv): If the reg we're examining is anything
1776 but UNKNOWN_INDUCT, do nothing.
1777 Reset the reg's type to UNKNOWN_INDUCT before returning.
1779 Mostly from Vladimir Makarov (vmakarov@redhat.com)
1780 * ia64.md (attr itanium_class): Define insn types as described in
1782 (all insn patterns): Use itanium_class, not type attributes.
1783 Occasionally split alternatives as necessary.
1784 (attr type): Compute from new attr itanium_class.
1786 2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1788 * tradcpp.c (output_line_command): Mark system headers as such in
1791 2000-11-21 Jakub Jelinek <jakub@redhat.com>
1793 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
1794 support in as as well.
1795 * configure: Regenerate.
1797 2000-11-20 Richard Henderson <rth@redhat.com>
1799 * c-lex.c (orig_filename): New variable.
1800 (init_c_lex): Set it. Move call to cpp_start_read ...
1801 (yyparse): ... here. New function.
1802 * c-parse.in (yyparse_1): Rename the parser entry point.
1803 * c-tree.h: Declare it.
1805 2000-11-21 Jakub Jelinek <jakub@redhat.com>
1807 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
1808 integer constant, use type of op1 for comparison.
1810 2000-11-20 Stan Shebs <shebs@apple.com>
1812 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
1813 * config/rs6000/x-darwin: New file, Darwin host fragment.
1814 * config.gcc (powerpc-*-darwin*): New host.
1815 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
1816 overridden by a config file.
1818 2000-11-20 Neil Booth <neilb@earthling.net>
1820 * cppmacro.c (paste_tokens): Rename from paste_payloads.
1821 Change token type after pasting spellings.
1822 (paste_all_tokens): Use it.
1823 * gcc.dg/cpp/paste2.c: Update test.
1824 * objc/execute/paste.m: New test.
1826 2000-11-20 Richard Henderson <rth@redhat.com>
1828 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
1829 dwarf_subscr_data_formats bits.
1830 * dwarfout.c (simple_type_size_in_bits): Handle a type with
1831 no computed size as size zero.
1832 (field_byte_offset): Likewise.
1833 (subscript_data_attribute): Handle a range with no upper bound.
1835 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1837 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
1839 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
1841 * c-typeck.c (build_conditional_expr): When merging type
1842 qualifiers for conditional expressions between a pointer and a
1843 pointer to a void type, merge the qualifiers on the target types
1844 rather than the pointer type. Remove obsolete conditioned out
1847 2000-11-20 Neil Booth <neilb@earthling.net>
1849 * c-lang.c (lang_init_options): Update call to
1851 * cppmain.c (main): Similarly.
1852 * fix-header.c (read_scan_file): Similarly.
1853 * cp/lex.c (lang_init_options): Similarly.
1854 * objc/objc-act.c (lang_init_options): Similarly.
1855 * cppexp.c (parse_number): Only warn for unextended C89.
1856 * cppinit.c (set_lang): New function.
1857 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
1858 (COMMAND_LINE_OPTIONS): New option std=c++98.
1859 (cpp_handle_option): Use set_lang.
1860 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
1861 * cppib.h (enum_c_lang): New enumeration. Update comments.
1863 2000-11-20 Will Cohen <wcohen@redhat.com>
1865 * calls.c (expand_call): Clear target only when target is in
1866 hard register and current_function_check_memory_usage is set.
1868 2000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
1870 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
1872 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
1874 2000-11-19 Richard Henderson <rth@redhat.com>
1876 * crtstuff.c (force_to_data): Use array size 1 not 0.
1878 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
1879 no computed size as size zero.
1880 (field_byte_offset): Likewise.
1882 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
1884 * config.gcc: Fix another typo.
1886 2000-11-19 Richard Henderson <rth@redhat.com>
1888 * c-decl.c (grokdeclarator): Support flexible array members.
1889 Use open-ended ranges for these and zero-length arrays.
1890 * c-typeck.c (push_init_level): Validate the context of
1891 initialization of a zero-length array.
1892 * tree.c (int_fits_type_p): Be prepared for missing bounds.
1893 * varasm.c (array_size_for_constructor): New.
1894 (output_constructor): Use it for arrays of unspecified length.
1895 * extend.texi (Zero Length): Mention C99 flexible array members.
1896 Document initialization in a top-level struct as valid.
1898 2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
1900 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
1902 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
1903 stdarg and varargs functions.
1905 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
1907 * gcc.c (process_command): Define 'j' variable when
1908 MODIFY_TARGET_NAME is defined.
1910 2000-11-19 Richard Henderson <rth@redhat.com>
1912 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
1914 2000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1916 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
1917 calculation and allocation.
1919 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1921 * builtins.c (c_getstr): Constify variable.
1922 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
1923 * conflict.c (const_conflict_graph_arc): New typedef.
1924 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
1925 * cppmacro.c (builtin_macro): Likewise.
1926 * dwarf2out.c (output_comp_unit): Constify variable.
1927 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
1928 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
1929 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
1931 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
1932 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
1933 * varasm.c (const_str_htab_hash, const_str_htab_eq,
1934 compare_constant_1, record_constant_1): Constify.
1936 2000-11-18 Richard Henderson <rth@redhat.com>
1938 * c-decl.c (grokdeclarator): Special case the creation of an
1939 index for a zero-length array.
1940 * tree.c (build_index_type): Revert Oct 20 change.
1942 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
1944 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
1945 * config/avr/avr.c (jump_tables_size): New variable.
1946 (function_prologue): Initialize it as 0.
1947 (function_epilogue): Add it to function_size.
1948 (avr_output_addr_vec_elt): New function. Count words in jump
1949 tables in jump_tables_size. Move code ...
1950 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
1951 Call avr_output_addr_vec_elt instead.
1952 * config/avr/avr.md (tablejump): Remove disabled define_expand.
1954 2000-11-18 Mark Mitchell <mark@codesourcery.com>
1956 * configure.in: Make --enable-new-gxx-abi the default.
1957 * configure: Likewise.
1959 2000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1961 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
1963 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
1964 Move extern function declarations to tradcpp.h.
1966 * tradcpp.c: Likewise.
1968 * tradcpp.h: New file.
1970 2000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
1972 * c-decl.c (check_for_loop_decls): New function.
1973 * c-parse.in (for_init_stmt): New.
1974 (select_or_iter_stmt): Use for_init_stmt.
1975 * c-tree.h (check_for_loop_decls): New declaration.
1977 2000-11-18 Neil Booth <neilb@earthling.net>
1979 * cppinit.c: Update comments.
1980 (cpp_reader_init): Make -imacro and -include use the standard
1981 #include "" search path.
1982 (do_includes): New function.
1984 2000-11-18 Ben Elliston <bje@redhat.com>
1986 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
1987 out of a branch delay slot.
1989 2000-11-17 Richard Henderson <rth@redhat.com>
1991 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
1992 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
1993 (ASM_FILE_START): Only write out ecoff .file directive if
1994 emitting mdebug debugging.
1996 2000-11-17 Richard Henderson <rth@redhat.com>
1998 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
1999 whether as accepts .file/.loc and produces dwarf2 line info.
2000 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
2001 the assembler supports it.
2002 * config.in, configure: Regenerate.
2004 2000-11-17 Richard Henderson <rth@redhat.com>
2006 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
2008 2000-11-17 Jim Wilson <wilson@redhat.com>
2010 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
2011 Don't clear need_barrier is next_insn is a CALL_INSN, or has
2012 instruction type B or UNKNOWN.
2014 2000-11-17 Neil Booth <neilb@earthling.net>
2016 * cpperror.c (print_file_and_line): Don't display line number if 0.
2018 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
2020 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
2021 digit_vector and digit_string.
2022 * stringpool.c (digit_vector): New.
2023 (ggc_alloc_string): Use digit_string.
2025 * stmt.c (digit_strings): Delete.
2026 (init_stmt): Do not initialize digit_strings.
2027 (expand_asm_operands): Use ggc.h's digit_string macro.
2028 * toplev.c (mark_file_stack): Delete.
2029 (compile_file): Don't call init_tree_codes.
2030 (main): No need to make the file stack a GC root.
2031 * tree.c (init_tree_codes): Delete.
2032 * tree.h (init_tree_codes): Delete.
2034 * c-lex.c: Don't include ggc.h.
2035 (mark_splay_tree_node, mark_splay_tree): Delete.
2036 (init_c_lex): No need to ggc_strdup string constant. Don't add
2037 file_info_tree to GGC roots.
2038 (cb_enter_file, cb_rename_file): No need to ggc_strdup
2041 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
2043 * dbxout.c (dbxout_init),
2044 dwarf2out.c (dwarf2out_line),
2045 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
2046 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
2047 xcoffout.c (xcoffout_source_file),
2048 i386.c (load_pic_register):
2049 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
2051 * except.c (create_rethrow_ref),
2052 profile.c (init_edge_profiler),
2053 toplev.c (compile_file),
2054 varasm.c (named_section, assemble_static_space,
2055 assemble_trampoline_template, output_constant_def, force_const_mem),
2056 i386.c (load_pic_register),
2057 ia64.c (ia64_encode_section_info),
2058 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
2059 rs6000_emit_prologue, rs6000_emit_epilogue),
2060 rs6000.md (load_toc_aix_si, load_toc_aix_di):
2061 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
2063 * profile.c (output_func_start_profiler),
2065 i386.c (load_pic_register): No need to ggc_strdup string constant.
2067 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
2069 * Makefile.in (config.status): Depend on config.gcc.
2070 * configure.in <for machine in $build $host $target>: Move
2071 contents of loop into config.gcc, removing autoconf quoting.
2072 Fix changequote bug for alpha*-*-vxworks*.
2073 * configure: Regenerate.
2076 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
2078 * c-parse.in (if_prefix): Find the filename and line number at
2079 $-2 and $-1 respectively.
2080 * diagnostic.c (error_recursion): Add missing newline, use
2081 fputs, translate string.
2083 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
2085 * stringpool.c: New file.
2086 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
2087 (ggc_alloc_string): Now in stringpool.o.
2088 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
2089 * ggc.h: Delete prototype of ggc_add_string_root. #define
2090 ggc_add_string_root and ggc_mark_string to nothing. Prototype
2091 init_stringpool and stringpool_statistics.
2092 (ggc_alloc_string): Returns a const char *.
2093 * tree.c (hash_table, do_identifier_warnings): Delete.
2094 (init_obstacks): Don't initialize the identifier hash table.
2095 (get_identifier, maybe_get_identifier, start_identifier_warnings,
2096 set_identifier_size): Now in stringpool.c.
2097 * tree.h (struct tree_string): Constify pointer field.
2098 (approx_sqrt): Prototype.
2100 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
2102 * toplev.c (approx_sqrt): New function.
2103 (compile_file): Call stringpool_statistics if mem_report is on.
2104 (main): Call init_stringpool.
2106 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
2107 (process_directive), c-typeck.c (constructor_asmspec, struct
2108 initializer_stack, start_init), except.c (create_rethrow_ref),
2109 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
2110 (built_in_filename), varasm,c (in_named_name,
2111 assemble_static_space, struct constant_descriptor, struct
2112 deferred_string, struct pool_constant, force_const_mem),
2113 i386.c (pic_label_name, global_offset_table_name), rs6000.c
2114 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
2116 * c-common.c (combine_strings): Combine strings in scratch
2117 buffer, then pass to build_string.
2118 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
2119 output_func_start_profiler), stmt.c (init_stmt), alpha.c
2120 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
2121 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
2122 rs6000.c (rs6000_encode_section_info): Create string in
2123 scratch buffer, then pass to ggc_alloc_string.
2125 * stmt.c (expand_asm_operands): If we must adjust the
2126 constraint strings, do so by creating a new one, not by
2127 modifying the old one in place. Constify some char *s.
2128 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
2129 argument. Create string in scratch buffer, then pass to
2131 * config/pa/pa-protos.h: Update prototype.
2132 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
2133 hppa_encode_label takes only one argument.
2135 2000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2137 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
2140 * cpplib.c (glue_header_name): Likewise.
2142 * fixincl.c (run_compiles, start_fixer): Likewise.
2144 * fixlib.c (load_file_data): Likewise.
2146 * mkdeps.c (munge): Likewise.
2148 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
2150 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
2151 trailing ';'. Fix formatting.
2153 2000-11-16 Jim Wilson <wilson@redhat.com>
2155 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
2156 Shift masks left by one to avoid conflict.
2158 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
2161 2000-11-16 Nick Clifton <nickc@redhat.com>
2163 * config/arm/arm.c (output_arm_prologue): Note nested functions.
2164 (arm_expand_prologue): For nested functions preserve the
2165 static chain register during stack frame creation.
2167 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
2168 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
2169 with a stack frame there is a 4 byte gap between the arg
2170 pointer and the hard frame pointer (used to preserve the
2171 static chain register during stack frame creation).
2173 2000-11-16 DJ Delorie <dj@redhat.com>
2175 * rtl.c (read_rtx): Provide suitable names for unnamed
2176 define_insn and define_insn_and_split patterns, based on file
2179 2000-11-15 Neil Booth <neilb@earthling.net>
2181 * cpplib.c (start_directive, end_directive): New functions.
2182 (_cpp_handle_directive, run_directive): Use them.
2183 (_cpp_handle_directive): Don't -Wtraditional on indented
2185 (_cpp_push_buffer): Don't re-clear was_skipping.
2186 * cpplib.h (struct cpp_reader): New member la_saved.
2187 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
2190 gcc.dg/cpp/_Pragma1.c: Update.
2191 gcc.dg/cpp/_Pragma2.c: New test.
2193 2000-11-15 Mark Mitchell <mark@codesourcery.com>
2195 * toplev.c (wrapup_global_declarations): Don't write out
2196 artificial static variables that aren't needed.
2198 2000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
2200 * ia64.c (struct group): New structure.
2201 (last_group): New static array.
2202 (group_idx): New static variable.
2203 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
2204 New static functions.
2205 (emit_insn_group_barriers): Initialize and keep track of group_idx
2207 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
2208 Replace all calls to emit_insn_after that emit a group barrier to use
2209 emit_group_barrier_after.
2210 * ia64.h (MASK_B_STEP): New.
2211 (other MASK_XXX macros): Renumbered.
2212 (TARGET_B_STEP): New.
2213 (TARGET_SWITCHES): Add -mb-step.
2215 2000-11-15 Fred Fish <fnf@be.com>
2217 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
2218 machines for which fixincludes is not needed.
2219 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
2221 2000-11-15 Jason Merrill <jason@redhat.com>
2223 * diagnostic.c (finish_abort): New fn.
2224 (fancy_abort, error_recursion): Use it.
2225 * toplev.c (crash_signal): Likewise.
2226 * diagnostic.h: Declare it.
2228 2000-11-13 Andrew Haley <aph@redhat.com>
2230 * tree.c (build_type_no_quals): New function.
2231 * tree.h (build_type_no_quals): Declare.
2232 * c-common.c (c_get_alias_set): When considering type
2233 compatibility for pointer types, ignore cv-qualifiers anywhere in
2236 2000-11-15 Graham Stott <grahams@redhat.com>
2238 * regrename.c (scan_rtx_rtx): Skip to the next chain on
2239 encountering a terminated chain.
2241 2000-11-14 Mark Mitchell <mark@codesourcery.com>
2243 * configure.in: Move check for V3 above check for C++ header-file
2245 * configure: Regenerated.
2247 2000-11-14 DJ Delorie <dj@redhat.com>
2249 * config/v850/v850.c: Remove obstacks.
2251 Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
2253 * config/avr/avr.c (avr_case_values_threshold): New.
2254 (avr_override_options): Set it depending on options, make it large
2255 when not optimizing to work around "unable to generate reloads".
2257 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
2258 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
2259 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
2260 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
2261 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
2262 (avr_case_values_threshold): Declare as extern int.
2263 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
2265 * config/avr/avr.md (tablejump): Removed.
2266 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
2267 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
2268 index in the table, not multiplied by 2.
2269 (casesi): Change to match the above insns. Always enable.
2271 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
2272 Change to expect the word address of the table, multiply it by 2
2273 here and not in the caller. Change "adiw" to faster "inc".
2275 2000-11-14 Neil Booth <neilb@earthling.net>
2277 * cppexp.c (parse_defined): Call cpp_get_token not
2280 * cpplex.c (cpp_output_line): Similarly.
2281 * cpplib.c (glue_header_name, do_line, do_ident,
2282 parse_answer, parse_assertion): Similarly.
2283 (_cpp_handle_diretive): Don't save to lookaheads
2284 when processing directives.
2285 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
2287 (funlike_invocation_p): Don't save to lookaheads
2288 when pre-expanding arguments.
2289 (_cpp_get_token): Delete.
2290 (cpp_get_token): Merge contents of _cpp_get_token.
2292 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2294 * builtins.c (expand_builtin_setjmp): Set
2295 current_function_calls_setjmp.
2296 (expand_builtin_longjmp): Set current_function_calls_longjmp.
2298 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
2299 (do_builtin_setjmp_setup): New insn.
2301 Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2303 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
2304 (int_fits_type_p): For variable bounds, call force_fit_type.
2306 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2308 * varasm.c (struct deferred_string): New structure.
2309 (const_str_htab): New variable.
2310 (STRHASH): New macro.
2311 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
2312 constr_str_htab_eq, const_str_htab_del): New functions.
2313 (output_constant_def): Add DEFER argument, defer string
2314 constants until mark_constant_pool time if requested.
2315 (mark_constant_pool): Walk the insn chain even if const_str_htab is
2317 (mark_constants): If a SYMBOL_REF for deferred string is found,
2318 output it and remove from hash table.
2319 (output_addressed_constants): Set DEFER to 0 in call to
2320 output_constant_def.
2321 * rtl.h (STRING_POOL_ADDRESS_P): Define.
2322 (output_constant_def): Adjust prototype.
2323 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
2325 2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
2327 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
2328 signed types if flag_trapv.
2330 2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
2332 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
2335 2000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
2337 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
2339 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2341 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
2342 to array of pool_constnat pointers.
2343 (struct pool_constant): Add next_sym and label members.
2344 (struct pool_sym): Remove.
2345 (init_varasm_status): Change pool_sym into pool_constant.
2346 (mark_pool_constant): Mark pc->label string as well.
2347 (mark_pool_sym_hash_table): Remove.
2348 (mark_varasm_status): Remove it from caller as well.
2349 (free_varasm_status): Don't free pool_sym structures.
2350 (force_const_mem): Don't allocate pool_sym structure, instead
2351 fill pool->label and chain it into rtx_sym hash table.
2352 (find_pool_constant, mark_constant_pool): Use pool_constant instead
2355 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2357 * reload1.c (emit_input_reload_insns): Honour forcing of constants
2358 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
2360 2000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
2362 * dominance.c: New file.
2363 * Makefile.in (OBJS): Add dominance.o.
2365 * flow.c (compute_flow_dominators): Remove.
2366 (compute_immediate_dominators): Remove.
2367 (compute_immediate_postdominators): Remove.
2368 * basic-block.h: Remove their prototypes.
2369 (calculate_dominance_info): Add prototype.
2371 * dce.c (eliminate_dead_code): Change calls to above functions.
2372 Don't compute dominators but only immediate dominators.
2373 * flow.c (flow_loops_find): Change callers.
2374 * gcse.c (compute_code_hoist_data): Likewise.
2375 * haifa-sched.c (schedule_insns): Likewise.
2376 * ifcvt.c (if_convert): Likewise.
2377 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
2380 2000-11-14 Richard Henderson <rth@redhat.com>
2382 * stmt.c (warn_if_unused_value): Don't warn if the expression
2385 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
2386 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
2388 2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2390 * loop.c (basic_induction_var): Revert accidental checkin.
2392 2000-11-13 Hans-Peter Nilsson <hp@axis.com>
2394 * c-lex.c (cb_leave_file): Harmonize conditions and order of
2395 statements to those of process_directive for (action == act_pop).
2397 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
2399 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
2402 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2404 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
2407 2000-11-13 Neil Booth <neilb@earthling.net>
2409 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
2410 cases return without MI check.
2411 * cpplib.c (do_diagnostic): Take boolean of whether to
2412 print the directive name.
2413 (do_error, do_warning): Update.
2414 (do_pragma_dependency): Use it.
2415 * cpplib.h (VARARGS_FIRST): Delete.
2416 (struct cpp_token): Delete integer.
2417 * cppmacro.c (enter_macro_context): Move disabled check
2419 (_cpp_get_token): Simplify into a single loop.
2421 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
2423 * configure.in: Use 'test -f' not '[ -e'.
2424 * configure: Regenerated.
2426 2000-11-13 DJ Delorie <dj@redhat.com>
2428 * config/mn10300/mn10300.md (store_movm): Note which registers are
2429 really used or clobbered.
2431 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2433 * c-parse.in (ends_in_label): Remove from %union and %type.
2434 (decls, stmts, lineno_stmt_or_labels, xstmts,
2435 lineno_stmt_or_label, stmt_or_label): Remove.
2436 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
2437 lineno_stmt_decl_or_labels_ending_decl,
2438 lineno_stmt_decl_or_labels_ending_label,
2439 lineno_stmt_decl_or_labels_ending_error,
2440 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
2441 lineno_stmt, lineno_label): New.
2442 (compstmt_nostart): Use compstmt_contents_nonempty.
2444 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2446 * c-common.c (boolean_increment): New function.
2447 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
2448 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
2449 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
2450 (boolean_increment): Declare.
2451 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
2452 * c-decl.c (init_decl_processing): Create boolean nodes.
2453 (finish_struct): Allow for _Bool bitfields.
2454 * c-parse.in (reswords): Add _Bool.
2455 (rid_to_yy): Allow for RID_BOOL.
2456 * c-typeck.c (default_conversion): Make booleans promote to int.
2457 (convert_arguments, build_unary_op, build_modify_expr,
2458 convert_for_assignment): Allow for booleans.
2459 * ginclude/stdbool.h: Make conforming to C99.
2461 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2463 * c-parse.in (c99_block_start, c99_block_end,
2464 c99_block_lineno_labeled_stmt): New.
2465 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
2466 (stmt): Split off selection and iteration statements into...
2467 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
2469 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2471 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
2474 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
2476 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
2477 Rewrite to avoid use of match_dup. Don't try to tie registers that
2478 are not in the same mode.
2480 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2482 * invoke.texi: Update lists of languages and suffixes supported.
2484 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2486 * configure.in: Take toplevel configure arguments from the
2487 environment to create configargs.h and substitute
2488 gcc_config_arguments, taking account of any existing configargs.h
2490 * configure: Regenerate.
2491 * gccbug.in: Include toplevel configure arguments in gccbug.
2493 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
2495 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
2496 union to make it well-aligned. Update all uses.
2498 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2500 * c-parse.in (initelt): Give appropriate pedantic warnings,
2501 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
2503 (designator): If pedantic, pedwarn for a designator specifying a
2505 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
2507 * extend.texi: Document the C99 syntax as the preferred syntax,
2508 and the pre-2.5 syntax as obsolete. Mention use of designator
2509 lists for nested subobjects.
2511 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
2513 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
2514 Add ATTRIBUTE_PRINTF.
2515 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
2516 Add ATTRIBUTE_PRINTF*.
2518 2000-11-12 Mark Mitchell <mark@codesourcery.com>
2520 * function.c (assign_parms): When calling put_var_into_stack, make
2521 sure that there are no hidden pending sequences.
2523 2000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2525 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
2526 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
2529 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
2531 * c-common.c (c_common_nodes_and_builtins): Declare index and
2532 rindex when nonansi builtins are allowed.
2534 * extend.texi (index, rindex): Document new builtins.
2536 2000-11-12 Mark Mitchell <mark@codesourcery.com>
2538 * configure.in: Turn on libstdc++ V3 by default.
2539 * configure: Regenerated.
2541 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
2543 2000-11-12 Jakub Jelinek <jakub@redhat.com>
2545 * reload1.c (set_label_offsets): Go inside of PARALLELs.
2547 2000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
2549 * invoke.texi: Clean up option summary.
2551 2000-11-12 Nick Clifton <nickc@redhat.com>
2553 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
2554 of #include headers.
2556 2000-11-12 Marc Espie <espie@openbsd.org>
2558 * configure.in: Fix filds test.
2561 2000-11-12 Mark Mitchell <mark@codesourcery.com>
2563 * jump.c (delete_computation): Don't assume that just becuase an
2564 instruction sets a register, that register is dead.
2566 2000-11-12 Neil Booth <neilb@earthling.net>
2568 * cppexp.c: Don't worry about pfile->skipping.
2569 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
2570 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
2571 for handled directives.
2572 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
2573 and releasing lookaheads.
2574 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
2575 (do_else, do_elif, push_conditional): Update logic.
2576 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
2577 (unwind_if_stack): Inline into cpp_pop_buffer.
2578 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
2579 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
2580 multiple-include optimisation.
2581 * cpplib.h (struct cpp_buffer): New member was_skipping.
2582 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
2583 works because skipping == 0 in directives.
2584 (_cpp_release_lookahead): Renamed from release_lookahead.
2585 (cpp_get_token): No need to check skipping as _cpp_get_token does
2586 this for us. No need to handle MI optimisation.
2588 Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
2590 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
2591 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
2592 * fixinc/fixincl.x: Regenerated.
2594 2000-11-11 Bruce Korb <bkorb@gnu.org>
2596 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
2597 (avoid_wchar_t_type): ditto
2598 * fixinc/fixinc.irix: obsoleted
2600 2000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
2602 * configure.in: Don't add $outputs to all_lang_makefiles. Add
2603 $srcdir/$s/Makefile.in if it exists.
2604 * configure: Regenerate.
2606 Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
2608 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
2610 2000-11-11 Jason Merrill <jason@redhat.com>
2612 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
2613 give the parm a register and then call put_var_into_stack.
2614 * stmt.c (expand_decl): Likewise.
2616 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2618 * gcc.texi: Adjust wording.
2620 2000-11-11 Mark Mitchell <mark@codesourcery.com>
2622 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
2623 * fininc/fixincl.x: Regenerated.
2625 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2627 * invoke.texi: Correct spelling of -foptimize-register-move.
2629 2000-11-11 Neil Booth <neilb@earthling.net>
2631 Remove CPP_PLACEMARKERs.
2633 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
2634 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
2635 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
2637 * cpplib.h: Remove CPP_PLACEMARKER.
2638 (struct lexer_state): Rename skip_newlines to next_bol.
2639 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
2640 Simplify prev_white handling as a result.
2641 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
2642 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
2643 (parse_args): Similarly. Update argument count tests.
2644 (enter_macro_context): Return 2 to indicate an empty macro.
2645 (replace_args): Don't bother pre-expanding an empty argument.
2646 Handle placemarkers and ## extension during pre-expansion.
2647 (cpp_get_token): Handle empty macro expansions. Don't worry
2648 about CPP_PLACEMARKERs.
2649 (_cpp_create_definition): Empty macros are now empty.
2650 (cpp_macro_defintion): Don't special case empty macros.
2651 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
2652 * c-lex.c: Similarly.
2654 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
2656 * gcc.texi, invoke.texi: Add new section discussing language
2657 standards; link to it where appropriate; refer to ISO C instead of
2660 2000-11-11 Alexandre Oliva <aoliva@redhat.com>
2662 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
2665 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
2668 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2670 * gcc.texi, gcov.texi: Update dates and version numbers.
2672 2000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
2674 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
2675 flex and bison, specifically, first in a unified build and
2676 then installed on the system.
2677 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
2678 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
2681 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
2682 cppdefault.o): Remove pointless sed munging of source file
2685 2000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
2687 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
2688 for address reloads. Push replacements for REG_INC notes.
2689 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
2691 * reload1.c (choose_reload_regs): Registers set in the insn can't be
2692 used for RELOAD_OTHER reloads.
2694 2000-11-10 Mark Mitchell <mark@codesourcery.com>
2696 * c-dump.h: New file.
2698 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2700 * alpha.c (check_float_value): Use memcpy, not bcopy.
2701 * arm.c (output_move_double): Likewise.
2703 * m88k.c (legitimize_operand): Likewise.
2704 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
2705 * m88k.md: Likewise.
2706 * mips.c (override_options): Likewise.
2707 * mips.md: Likewise.
2708 * romp.c (output_fpops): Likewise.
2709 * rs6000.c (rs6000_override_options): Likewise.
2711 * vax.c (check_float_value): Likewise.
2713 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
2714 * expmed.c (synth_mult): Likewise.
2715 * final.c (add_bb_string): Likewise.
2716 * genattr.c (main): Likewise.
2717 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
2719 * jump.c (thread_jumps): Likewise.
2720 * prefix.c (save_string): Likewise.
2721 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
2722 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
2723 * reload1.c (reload, eliminate_regs): Likewise.
2725 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2727 * gcc.texi (Service): Update to reflect current practice and
2728 location of the GNU service directory.
2730 2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
2732 * regrename.c (build_def_use): Mark contents of REG_INC notes as
2733 needing replacement.
2735 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
2736 a no-op move if regs are equal.
2737 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
2738 when calling jump after post-reload splitting.
2740 2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
2742 * c-tree.texi: Fix typos.
2743 * extend.texi: Likewise
2744 * gcov.texi: Likewise
2745 * rtl.texi: Likewise
2748 2000-11-09 Hans-Peter Nilsson <hp@axis.com>
2750 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
2751 in_system_header and flags[1] before dereferencing flags[2].
2753 2000-11-09 Matthew Hiller <hiller@redhat.com>
2755 * reload1.c (reload_combine): Fixed calculation of
2756 first_index_reg, last_index_reg.
2758 2000-11-09 Mark Mitchell <mark@codesourcery.com>
2760 * c-dump.c (dequeue_and_dump): Dump function bodies.
2762 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2763 (c-dump.o): New target.
2764 * c-common.h (flag_dump_translation_unit): New variable.
2765 (C_TYPE_QUALS): New macro.
2766 (strip_array_types): New function.
2767 (DECL_C_BIT_FIELD): New macro.
2768 (SET_DECL_C_BIT_FIELD): Likewise.
2769 (CLEAR_DECL_C_BIT_FIELD): Likewise.
2770 (dump_info_p): New typedef.
2771 (dump_tree_fn): Likewise.
2772 (lang_dump_tree): New variable.
2773 (dump_node_to_file): New function.
2774 * c-common.c (flag_dump_translation_unit): Define it.
2775 (strip_array_types): New function.
2776 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
2777 * c-lang.c (finish_file): Call dump_node_to_file if
2778 flag_dump_translation_unit.
2779 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
2780 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
2781 * c-dump.c: New file.
2783 2000-11-09 Christopher Faylor <cgf@cygnus.com>
2785 * config/i386/cygwin.h: Add mingw startfile prefix.
2787 2000-11-09 Richard Henderson <rth@redhat.com>
2789 * flow.c (invalidate_mems_from_set): Split out from ...
2790 (mark_set_1): ... here.
2791 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
2792 instead of turning insn into a NOTE_INSN_DELETED.
2794 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
2796 * extend.texi, invoke.texi: Move documentation of builtin versions
2797 of C library functions to one place and update.
2799 2000-11-09 Richard Henderson <rth@redhat.com>
2801 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
2802 the types themselves to discover type equivalence.
2804 2000-11-09 Mike Stump <mrs@wrs.com>
2806 * Makefile.in (distclean): Remove a few extra leftovers.
2808 2000-11-09 Richard Henderson <rth@redhat.com>
2810 * recog.c (validate_replace_rtx_1): Consider subregs when
2811 replacing a register with a constant inside a sign/zero_extend.
2813 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2815 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
2817 * c-decl.c (finish_struct): When a structure is completed,
2818 check all its variant types for completeness.
2820 2000-11-09 Neil Booth <neilb@earthling.net>
2822 * cpphash.c: Move cpp_defined here from cpplib.c.
2823 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
2824 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
2825 * cppmacro.c (cpp_get_token): Update comments, no need now
2826 to catch the CPP_EOF meaning EOL case.
2828 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
2830 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
2831 is more than that provided, copy to a temporary.
2833 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
2835 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
2836 interpreting $out as a macro assignment.
2837 * Makefile.in (T_TARGET): New auxiliary macro and target.
2838 (all): Add a target right in the beginning, so that we don't build
2839 T_TARGET by default.
2841 2000-11-09 Graham Stott <grahams@redhat.com>
2843 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
2844 order for -mintel-syntax. Remove comment now that the operand
2845 order has been checked.
2846 (mmx_pextrw): Likewise.
2847 (mmx_pshufw): Likewise.
2849 2000-11-09 Jakub Jelinek <jakub@redhat.com>
2851 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
2852 (c_getstr): New function.
2853 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
2854 If both arguments are constant string, optimize out.
2855 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
2856 (expand_builtin_strpbrk): Use c_getstr, do nothing if
2857 -fcheck-memory-usage.
2858 (expand_builtin_fputs): Likewise.
2859 (expand_builtin_strcmp): Add MODE argument.
2860 Use even if !HAVE_cmpstrsi.
2861 Optimize the case when both arguments are constant strings.
2862 (expand_builtin): Adjust expand_builtin_strcmp caller.
2863 Call expand_builtin_strchr and expand_builtin_strrchr.
2864 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
2866 * builtins.def (BUILT_IN_STRRCHR): Add.
2868 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2870 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
2872 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
2874 * calls.c (expand_call, emit_library_call_value_1), collect2.c
2875 (scan_prog_file), config/a29k/a29k.c (print_operand),
2876 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
2877 instead of bcopy ().
2878 * real.h: Use memcmp () instead of bcmp ().
2879 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
2880 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
2881 ultrasparc_sched_init, ultrasparc_sched_reorder),
2882 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
2883 instead of bzero ().
2884 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
2885 instead of rindex ().
2886 * configure.in: Don't check for bzero, bcmp, index or rindex.
2887 * configure, config.in: Regenerate.
2888 * system.h: Don't include declarations for bzero, bcmp, index or
2890 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
2891 bzero, bcmp, index or rindex.
2893 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
2895 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
2896 include and library paths from -mcygwin case. Parameterize some
2897 declarations to avoid warnings. Use standard locations for include and
2900 2000-11-08 Nick Clifton <nickc@redhat.com>
2902 * config/arm/arm.md (mulsidi3adddi): Change output operand
2903 constraint from "=&" to "+&".
2904 (umulsidi3adddi): Change output operand constraint from "=&" to
2907 2000-11-08 Richard Henderson <rth@redhat.com>
2909 * flow.c (init_propagate_block_info): Protect the rtx stored in
2910 mem_set_list from modification by find_auto_inc.
2911 (mark_set_1): Likewise.
2913 2000-11-08 Neil Booth <neilb@earthling.net>
2915 Move directive handling into the lexer itself.
2917 * cpplex.c (_cpp_lex_token): Handle directives directly.
2918 In the case of a directive interrupting a function-like
2919 macro invocation, use extra_char since read_ahead is
2920 used to store the '#'. Return a CPP_EOF in this case.
2921 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
2922 (cpp_get_token): Don't handle directives here.
2923 * cpplib.h: Remove CPP_DHASH token type.
2925 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
2927 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
2928 formed using PRE_MODIFY too.
2930 2000-11-08 Mark Mitchell <mark@codesourcery.com>
2932 * c-tree.texi (VAR_DECL): Describe representation of GCC's
2933 extension for placing variables in particular registers.
2935 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
2936 unprototyped C functions with no parameters.
2938 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2940 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
2941 before passing to fprintf.
2943 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2945 * function.c (expand_function_start): Cast GET_MODE_SIZE to
2946 HOST_WIDE_INT before negating it.
2948 2000-11-08 Jakub Jelinek <jakub@redhat.com>
2950 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
2951 passed in multiple non-contiguous locations.
2953 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2955 * README.gnat: Remove file.
2957 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
2959 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
2962 2000-11-07 Richard Henderson <rth@redhat.com>
2964 * dwarfout.c (INSN_LABEL_FMT): Remove.
2965 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2966 (dwarfout_label): Remove.
2967 * dwarfout.h: Remove it's prototype.
2968 * dwarf2out.c (INSN_LABEL_FMT): Remove.
2969 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
2970 (dwarf2out_label): Remove.
2971 * dwarf2out.h: Remove it's prototype.
2972 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
2974 2000-11-07 Richard Henderson <rth@redhat.com>
2976 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
2977 search on the unwind region section.
2979 * config/ia64/ia64.md (movbi): Add r/r alternative.
2980 (cmovdi_internal_astep): Describe all combinations of register
2981 classes for sources & destinations; remove matching constraints.
2982 (cmovdi_internal): Likewise.
2984 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
2986 2000-11-07 Richard Henderson <rth@redhat.com>
2988 * c-lang.c (start_cdtor, finish_cdtor): New functions.
2989 (finish_file): Use them in building constructor/destructor functions.
2991 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
2992 LD_FINI_SWITCH): Move ...
2993 * config/alpha/osf.h: ... here.
2994 * config/alpha/alpha-interix.h: Don't undef them.
2996 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
2998 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
2999 included in libgcc.a.
3001 (dp-bit.c): Likewise.
3002 (fp-bit.c): Likewise.
3004 2000-11-07 Nick Clifton <nickc@redhat.com>
3006 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
3007 (INTERNAL_ASM_OP): Add missing tab.
3009 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
3011 * alias.c (init_alias_analysis), calls.c (expand_call,
3012 emit_library_call_value_1), combine.c (init_reg_last_arrays),
3013 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
3014 (init_output_buffer, set_diagnostic_context), dwarf2out.c
3015 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
3016 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
3017 function.c (assign_parms), gcse.c (compute_can_copy,
3018 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
3019 compute_hash_table, compute_set_hash_table,
3020 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
3021 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
3022 clear_units, schedule_block), integrate.c (initialize_for_inline,
3023 expand_inline_function), jump.c (thread_jumps), local-alloc.c
3024 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
3025 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
3026 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
3027 record_reg_classes, allocate_reg_info), reload.c
3028 (get_secondary_mem, remove_address_replacements, find_reloads),
3029 reload1.c (reload, set_initial_label_offsets, finish_spills,
3030 reload_as_needed, choose_reload_regs_init,
3031 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
3032 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
3033 (rename_registers), stmt.c (expand_end_case), unroll.c
3034 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
3035 () instead of bzero ().
3037 2000-11-07 Neil Booth <neilb@earthling.net>
3039 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
3041 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3043 * c-common.c (combine_strings): Only warn about long strings for C.
3045 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
3047 * combine.c (distribute_notes): Fix typo in last change.
3049 2000-11-07 Geoff Keating <geoffk@redhat.com>
3051 * config/rs6000/rs6000.md (movdi_internal32+1): Use
3052 operand_subreg_force rather than gen_rtx_SUBREG.
3053 (movdi_internal32+2): Likewise.
3055 2000-11-07 Philip Blundell <philb@gnu.org>
3057 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
3058 * config/arm/linux-aout.h: Likewise.
3059 * configure: Regenerate.
3061 2000-11-07 Philipp Thomas <pthomas@suse.de>
3063 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
3064 accepted my the gettext maintainer.
3066 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3068 * builtins.c (expand_builtin_strpbrk): New function.
3069 (expand_builtin): Handle BUILT_IN_STRPBRK.
3071 * builtins.def (BUILT_IN_STRPBRK): New entry.
3073 * c-common.c (c_common_nodes_and_builtins): Declare builtin
3076 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
3078 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
3079 * POTFILES.in: Add config/alpha/freebsd.h
3080 * configure.in: Add alpha*-freebsd support.
3081 * configure: Regenerate.
3083 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
3085 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
3086 copy of ptr_type_node rather than ptr_type_node itself.
3088 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
3090 * combine.c (recog_for_combine): Allocate uninitialized vector with
3092 * recog.c (apply_change_group): Likewise.
3094 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
3096 * flow.c (verify_local_live_at_start): Back out last change.
3097 * combine.c (distribute_notes): When parts of a hard reg are
3098 neither set nor referenced in PLACE, search backwards for a
3099 place to put a REG_UNUSED note; if none found, ask for flow
3102 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
3104 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
3105 with (clobber (match_scratch...)).
3107 2000-11-06 Neil Booth <neilb@earthling.net>
3109 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
3112 2000-11-06 Neil Booth <neilb@earthling.net>
3114 * tradcpp.c (special_symbol): Assign an null string rather
3115 than writing to an unallocated buffer.
3117 2000-11-06 Neil Booth <neilb@earthling.net>
3119 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
3122 2000-11-06 Neil Booth <neilb@earthling.net>
3124 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
3125 tok.val.arg_no as appropriate.
3126 * cppexp.c (lex): Similarly.
3127 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
3128 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
3129 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
3130 cpp_macro_definition): Similarly.
3131 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
3133 2000-11-06 Jakub Jelinek <jakub@redhat.com>
3135 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
3136 operands[1] is constant, calculate the sum and generate movdi.
3137 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
3138 (subsi3): Use SImode in call to arith_4096_operand.
3140 2000-11-06 Jakub Jelinek <jakub@redhat.com>
3142 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
3143 adjust %o1, not %o0 if the return type is large structure.
3145 2000-11-06 Jakub Jelinek <jakub@redhat.com>
3147 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
3148 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
3150 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
3152 * expmed.c (expand_divmod): For signed divide by 2, prefer
3153 a branch and fewer shifts if branches are very cheap.
3155 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
3157 * Makefile.in: Remove all targets related to building
3158 distributions and diffs, or INSTALL.
3159 * INSTALL, install1.texi: Remove.
3160 * configure.in: Remove mention of distdir.
3161 * configure: Regenerate.
3162 * objc/Make-lang.in: Remove mention of distdir.
3164 2000-11-04 Neil Booth <neilb@earthling.net>
3166 * cpp.texi: Update for _Pragma.
3168 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
3170 * gcc.texi (Contributing): Update URL for projects web page.
3172 2000-11-04 Neil Booth <neilb@earthling.net>
3174 * cpplex.c (parse_string): Don't allow multiline strings in
3175 #include family directives.
3177 2000-11-04 Neil Booth <neilb@earthling.net>
3179 * cpplib.c (do_line): Only warn pedantically if not reading
3182 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
3184 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
3187 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
3189 * builtins.c (expand_builtin_strlen): Remove unused mode
3191 * gcc.c (process_command): Remove unused variable.
3192 * fold-const.c: Include expr.h.
3193 * recog.c: Include reload.h.
3194 * Makefile.in (recog.o, fold-const.o): Update deps.
3196 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
3198 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
3200 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
3202 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
3204 (STARTFILE_SPEC): Likewise.
3205 (LINK_SPEC): Likewise.
3207 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3209 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
3210 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
3211 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
3213 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
3215 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
3216 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
3217 perm_calloc, get_identifier, maybe_get_identifier,
3218 real_value_from_int_cst, simple_cst_equal), varasm.c
3219 (assemble_name, assemble_real, immed_real_const_1,
3220 compare_constant_1, decode_rtx_const, output_constant_pool): Use
3221 strrchr () instead of rindex (). Use memcmp () instead of bcmp
3222 (). Use memcpy () instead of bcopy (). Use memset () instead of
3225 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
3227 * cppfiles.c (open_file): If already read, then don't reopen.
3228 Immediately close an empty file.
3230 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
3232 * expr.h (fold_builtin): Move declaration...
3233 * tree.h (fold_builtin): ... here.
3235 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
3237 * flow.c (verify_local_live_at_start): Allow hard regs to die.
3239 2000-11-02 Neil Booth <neilb@earthling.net>
3242 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
3243 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
3244 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
3245 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
3246 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3247 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
3248 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
3249 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
3250 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
3251 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
3252 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
3253 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
3254 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
3255 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
3256 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
3257 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
3258 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
3259 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
3260 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
3261 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
3262 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
3263 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
3264 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
3265 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
3266 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
3267 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
3268 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
3269 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
3270 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
3271 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
3272 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
3273 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
3274 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
3275 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
3276 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
3277 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
3278 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
3279 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
3280 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
3281 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
3282 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
3283 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
3284 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
3285 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
3286 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
3287 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
3288 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
3289 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
3290 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
3291 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
3292 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
3293 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
3294 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
3295 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
3296 vax/vaxv.h, vax/vms.h, we32k/we32k.h
3298 Replace -A() with -A=, the new assertion syntax.
3300 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
3302 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
3304 In REG_DEAD handling: When handling parts of multi-hard-reg hard
3305 registers, increment the loop counter by the size of the parts;
3306 use recursion to handle individual parts.
3308 2000-11-02 Neil Booth <neilb@earthling.net>
3310 * configure.in: Make integrated CPP the default.
3311 * configure: Regenerate.
3313 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
3315 * reload.c (find_equiv_reg): Test all hard registers for membership
3316 in the requested class.
3318 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
3320 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
3321 process_command, main), gcov.c (open_files, output_data), tlink.c
3322 (frob_extension, scan_linker_output), toplev.c
3323 (file_name_nondirectory): Use strchr () and strrchr () instead of
3324 index () and rindex ().
3326 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
3328 * c-common.c (get_flag_spec, check_format_info_main,
3329 check_format_types): Use strchr () instead of index (). Compare
3330 against error_mark_node instead of comparing the TREE_CODE against
3333 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
3337 * c-lex.c (init_c_lex): Update cpp_start_read call.
3338 (cb_ident): Update for new callback prototype.
3339 (cb_def_pragma): Update for new cpp_get_token prototype.
3340 (c_lex): Similarly. Use cpp_get_line.
3342 * c-parse.in (finish_parse): Update for new cpp_finish
3345 * cp/lex.c (finish_parse): Similarly.
3347 2000-11-01 Geoff Keating <geoffk@cygnus.com>
3349 * machmode.def: Add V16QImode.
3351 2000-11-01 Richard Henderson <rth@redhat.com>
3353 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
3354 from rtl_for_decl_location.
3355 (add_location_or_const_value_attribute): Likewise.
3357 2000-11-01 Neil Booth <neilb@earthling.net>
3359 * cpplib.c (run_directive): Use correct line number for output
3360 of _Pragma. Remember any in-progress directive.
3362 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
3364 2000-11-01 Richard Henderson <rth@redhat.com>
3366 * stmt.c (expand_start_null_loop): Set continue_label.
3368 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
3370 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
3371 (expand_builtin_constant_p): Move parts of the code into
3372 fold_builtin_constant_p.
3373 (expand_builtin_strlen): Move parts of the code into fold_builtin.
3374 * expr.h (fold_builtin): Declare.
3375 * fold-const.c (fold): Handle builtin calls.
3377 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
3379 2000-11-01 Richard Henderson <rth@redhat.com>
3381 * stmt.c (expand_start_null_loop): New.
3382 (expand_end_null_loop): New.
3383 * c-semantics.c (genrtl_do_stmt): Use them.
3384 * tree.h: Declare them.
3386 2000-11-01 Richard Henderson <rth@redhat.com>
3388 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
3390 2000-11-01 Neil Booth <neilb@earthling.net>
3392 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
3393 * cp/spew.c: Similarly.
3394 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
3395 * cppmacro.c (stringify_arg): Similarly.
3396 * cpplib.h (CPP_BACKSLASH): Delete.
3398 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3400 * builtins.c (expand_builtin_strstr): New function.
3401 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
3403 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
3405 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
3408 2000-10-31 Richard Henderson <rth@redhat.com>
3410 * config/i386/i386.c (fcmov_comparison_operator): Check for
3411 CCFPmode or CCFPUmode instead of CCmode.
3412 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
3413 unordered operations as well.
3415 2000-10-31 Richard Henderson <rth@redhat.com>
3417 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
3418 of integer_zero_node.
3420 2000-10-31 Richard Henderson <rth@redhat.com>
3422 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
3424 2000-10-31 Nick Clifton <nickc@redhat.com>
3426 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
3427 -fdata-sections to override the section attribute of a DECL.
3429 2000-10-31 Chris Demetriou <cgd@sibyte.com>
3431 * libgcc2.c (__shtab): Remove __shtab variable.
3432 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
3433 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
3436 2000-10-31 Jim Wilson <wilson@redhat.com>
3438 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
3439 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
3440 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
3441 instead of ASM_OUTPUT_INTERNAL_LABEL.
3442 (dwarf2out_end_block, dwarf2out_label): Likewise.
3443 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
3444 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
3446 2000-10-31 Richard Henderson <rth@redhat.com>
3448 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
3449 (size_of_locs): Set it.
3450 (output_loc_operands): Use it to compute branch displacement.
3451 (int_loc_descriptor): New.
3452 (mem_loc_descriptor): Dereference memory in the proper size.
3453 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
3454 (loc_descriptor_from_tree): New.
3455 (rtl_for_decl_location): Break out from ...
3456 (add_location_or_const_value_attribute): ... here.
3457 (add_bound_info): Use loc_descriptor_from_tree.
3459 2000-10-31 Neil Booth <neilb@earthling.net>
3461 * cpp.texi: Update for new command line assertion syntax.
3462 * cpplib.c (cpp_define): Simplify a bit.
3463 (cpp_assert, cpp_unassert): Use handle_assertion.
3464 (handle_assertion): New function; accept new command line
3466 * testsuite/gcc.dg/cpp/assert3.c: New tests.
3468 2000-10-31 Neil Booth <neilb@earthling.net>
3470 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
3471 undefined. Remove #ifdef check.
3472 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
3473 Define STDC_0_IN_SYSTEM_HEADERS to 1.
3475 2000-10-31 Jan Hubicka <jh@suse.cz>
3476 Jakub Jelinek <jakub@redhat.com>
3478 * config/i386/i386.h: Clarify CCNOmode description in comment.
3479 (EXTRA_CC_MODES): Remove CCRCmode.
3480 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
3481 (put_condition_code, ix86_match_ccmode): Likewise.
3482 (ix86_cc_mode): Likewise. Fix comment.
3483 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
3484 * config/i386/i386.md: Add unspec 12 description.
3485 (adddi3 split): Use unspec 12 instead of CCRCmode.
3486 (addsi3_carry_rc): Remove.
3487 (addsi3_cc, addqi3_cc): New patterns.
3488 (addsi_3): Swap operands, match CCZmode.
3489 (addsi_4): Rewritten.
3490 (addsi_5): Renamed from addsi_6.
3492 (addhi_3): Swap operands, match CCZmode.
3493 (addhi_4): Rewritten.
3494 (addhi_5): Renamed from addhi_6.
3496 (addqi_3): Swap operands, match CCZmode.
3497 (addqi_4): Rewritten.
3498 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
3499 (subsi3_carry_rc): Removed.
3500 (iorqi_3): Use =q constraint for clobber.
3501 (xorqi_cc_2): Likewise.
3502 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
3503 (x86_movsicc_0_m1_rc): Removed.
3504 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
3506 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
3508 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
3509 and decrement of complex types.
3511 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3513 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
3514 builtin fputs, ensure we still evaluate the stream in case it
3517 2000-10-31 Jakub Jelinek <jakub@redhat.com>
3519 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
3522 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
3524 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
3525 (fp_extended_operand, emit_fpscr_use): Likewise.
3526 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
3527 (fpul_operand): New function.
3528 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
3529 fp_extended_operand. Add fpul_operand.
3530 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
3531 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
3532 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
3533 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
3534 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
3535 (divdf3_i): Likewise.
3536 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
3537 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
3538 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
3539 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
3540 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
3542 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
3544 * config/i386/i386.c (ix86_init_builtins): Correct return type
3545 building v4hi_ftype_v4hi_int_int tree node.
3546 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
3547 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
3549 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
3551 (mmx__uavgv8qi3): Correct insn mnemonic.
3552 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
3553 (mmx_punpckhwd): Correct insn mnemonic.
3554 (mmx_punpckhdq): Likewise.
3555 (mmx_punpcklwd): Likewise.
3556 (mmx_punpckldq): Likewise.
3557 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
3558 Renumber case labels to match the _mm_prefetch constants defined in
3561 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
3562 if the splitter didn't emit new insns.
3563 Make sure we call cleanup_subreg_operands even when splitting the last
3564 insn in a basic block.
3566 * invoke.texi (Debugging Options): Describe -do.
3567 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
3568 (dump_file): Likewise.
3569 (rest_of_compilation): Split .greg dump into .greg and .postreload.
3571 2000-10-30 Neil Booth <neilb@earthling.net>
3573 * cppfiles.c (stack_include_file): Check for stacked contexts
3575 * cpphash.h (_cpp_do__Pragma): New prototype.
3576 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
3578 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
3579 escaped newlines if !(buffer->from_stage3).
3580 (_cpp_lex_token): Warn about missing newlines iff
3581 !buffer->from_stage3.
3583 * cpplib.c (get__Pragma_string, destringize,
3584 _cpp_do__Pragma): New functions.
3585 (run_directive): Set output_line for _Pragma to avoid line
3586 markers in output. Set from_stage3 and prevent macro expansion
3587 for _Pragma and command-line options. Check buffer exhaustion.
3588 (cpp_push_buffer): Don't check for stacked macro contexts, as
3589 this is perfectly legitimate for _Pragma. Move the check to
3590 stack_include_file instead. Set from_stage3 iff buffer is
3593 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
3594 unsigned. New boolean from_stage3.
3595 (struct spec_nodes): Add n__Pragma.
3597 * cppmacro.c (enter_macro_context): Flip sense of return value.
3598 (_cpp_get_token): Handle _Pragma operator.
3600 2000-10-30 Phil Edwards <pme@sources.redhat.com>
3602 * gcc.texi: The C++ standard isn't "draft" anymore.
3604 2000-10-30 Mark Mitchell <mark@codesourcery.com>
3606 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
3608 2000-10-29 Neil Booth <neilb@earthling.net>
3610 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
3612 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
3614 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
3615 fixinc/inclhack.def: Change comments mentioning C9X to refer to
3618 * invoke.texi: Document that -V will only work for very similar
3619 versions of driver and compiler.
3621 2000-10-29 Neil Booth <neilb@earthling.net>
3623 * cppmacro.c (_cpp_create_definition): Optimize the case of
3624 a macro defined to itself.
3626 2000-10-29 Neil Booth <neilb@earthling.net>
3628 * cpplex.c (save_comment): Don't store new lines in C++ comments.
3630 2000-10-29 Michael Hayes <mhayes@redhat.com>
3632 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
3634 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
3636 * cpphash.c (cpp_forall_identifiers): Add context variable
3637 for callback routine.
3638 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
3640 (main): Call cpp_forall_identifiers with null context.
3641 * cpplib.h (cpp_forall_identifiers): Update prototype.
3643 * cppmain.c: Make `parse_in' and `print' static.
3645 2000-10-28 Alan Modra <alan@linuxcare.com.au>
3647 * c-decl.c (finish_function): Clear c_function_name_declared_p.
3649 2000-10-28 Richard Henderson <rth@redhat.com>
3651 * regrename.c (scan_rtx_address): Frob action, not class,
3652 when trying to disable optimization.
3654 2000-10-28 Mark Mitchell <mark@codesourcery.com>
3656 * c-semantics.c (make_rtl_for_local_static): Don't clobber
3657 DECL_ASSEMBLER_NAME.
3659 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
3661 * configure.in: Determine and substitute gcc_version_full.
3662 * configure: Regenerate.
3663 * gccbug.in: Use it to give full version. Don't allow
3666 2000-10-28 Richard Henderson <rth@redhat.com>
3668 * recog.c (split_all_insns): Run cleanup_subreg_operands
3671 * regrename.c (regrename_optimize): Verify that all registers of
3672 a multiple register mode are available.
3673 (scan_rtx_address): Accept the mode of the address; all callers
3676 * cpplib.c (run_directive): Fix prototype.
3678 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
3680 * reload.c (find_reloads): Distinguish "wins" so that we know whether
3681 a given operand won because of a matching constraint or not; then use
3682 that information to compute goal_alternative_matched properly.
3683 * reload1.c (choose_reload_regs): Never set reload_override_in for an
3686 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
3687 accurate value for MULT.
3688 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
3689 2% or > 98% before using static branch prediction bits.
3691 2000-10-28 Neil Booth <neilb@earthling.net>
3695 * cpplib.c (struct answer): New.
3696 (struct if_stack): Use cpp_lexer_pos rather than line and col.
3697 Rename cmacro mi_cmacro.
3698 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
3699 IN_I): New directive and flags.
3700 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
3701 parse_answer, parse_assertion, find_answer): New functions.
3702 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
3703 (lex_macro_node): New function to replace parse_ifdef and
3706 (_cpp_handle_directive): New function, combines _cpp_check_directive
3707 and _cpp_check_linemarker.
3709 (do_define, do_undef, parse_include, do_include, do_import,
3710 do_include_next, read_line_number, do_line, do_ident, do_pragma,
3711 do_pragma_once, do_pragma_poison, do_pragma_dependency):
3712 Update for new token getting interface.
3714 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
3715 : Update for new multiple-include optimisation technique.
3716 (do_elif): Don't forget to invalidate controlling macros.
3718 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
3719 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
3720 Functions to handle assertions with the new token interface.
3721 (do_assert, do_unassert): Use them.
3723 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
3726 (_cpp_init_stacks): Register directive names. Don't register special
3729 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
3730 new position recording regime.
3731 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
3732 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
3733 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
3734 (cpp_type2name): Move to cpplex.c.
3736 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
3737 (parse_defined): Update to handle new multiple include optimisation
3738 method. Remove poisoned identifier warning.
3739 (parse_assertion, TYPE_NAME): Delete.
3740 (lex): Update for multiple include optimisation, removal of
3741 CPP_DEFINED, to use _cpp_test_assertion for assertions and
3743 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
3744 (op_as_text): New function, to wrap cpp_token_as_text.
3746 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
3747 Update for MI optimisation.
3748 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
3749 segfault on diagnostic.
3750 (_cpp_compare_file_date): Take a token rather than 3 args.
3751 (cpp_read_file): Work correctly for zero-length files.
3753 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
3754 _cpp_init_hashtable and _cpp_cleanup_hashtable.
3755 (cpp_lookup): Place identifiers at front of identifier pool
3756 for _cpp_lookup_with_hash.
3757 (_cpp_lookup_with_hash): Require identifiers to be at the front of
3758 the identifier pool. Commit the memory if not already in the
3761 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
3762 Initialise various members of cpp_reader, memory pools, and the
3764 (cpp_printer_init): Delete.
3765 (cpp_cleanup): Update.
3766 (struct builtin, builtin_array, initialize_builtins): Update for new
3767 hashnode definition and builtin handling.
3768 (cpp_start_read, cpp_finish): Don't take or initialise a
3771 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
3772 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
3773 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
3774 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
3775 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
3776 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
3777 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
3778 struct toklist, struct cpp_context, struct specnodes,
3779 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
3780 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
3781 enum builtin_type, cpp_can_paste): New.
3782 (struct cpp_token): Delete line and col members.
3783 (struct cpp_buffer): New member output_lineno.
3784 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
3785 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
3786 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
3787 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
3788 base_context, context, directive, mi_state, mi_if_not_defined,
3789 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
3790 mlstring_pos, macro_buffer, macro_buffer_len.
3791 Delete members mls_line, mls_column, token_list, potential_control_macro,
3792 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
3793 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
3794 save_parameter_spellings, need_newline, .
3795 Change type of date, time and spec_nodes members.
3796 Change prototypes for include and ident callbacks.
3797 (struct cpp_hashnode): Change type of name. Remove union members
3798 expansion and code. Add members macro, operator and builtin.
3800 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
3801 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
3802 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
3803 cpp_stop_lookahead): New prototypes.
3804 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
3806 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
3807 Move from cpphash.h.
3809 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
3810 ufputs): Move to cpplib.h.
3811 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
3812 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
3813 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
3814 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
3815 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
3816 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
3817 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
3818 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
3819 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
3820 _cpp_parse_assertion, _cpp_find_answer): Delete.
3821 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
3822 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
3823 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
3824 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
3825 _cpp_handle_directive, DSC): New.
3826 (struct include_file): New member defined.
3828 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
3829 _cpp_compare_file_date): Update.
3830 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
3831 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
3832 _cpp_cleanup_hashtable.
3834 * Makefile.in: Remove cppoutput.c.
3836 * cppoutput.c: Delete
3838 * fixheader.c (read_scan_file): Update for new cpp_get_token
3840 (recognized_function): New argument LINE.
3842 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
3843 new cpp_get_token prototype.
3845 * scan.h (recognized_function): Update prototype.
3847 * po/POTFILES.in: Remove cppoutput.c.
3849 2000-10-27 Mark Mitchell <mark@codesourcery.com>
3851 * c-typeck.c (check_init_type_bitfields): Remove.
3852 (constructor_incremental): Likewise.
3853 (struct constructor_stack): Remove incremental bit.
3854 (struct initializer_stack): Likewise.
3855 (start_init): Don't play with constructor_incremental.
3856 (finish_init): Likewise.
3857 (really_start_incremental_init): Likewise.
3858 (push_init_level): Likewise.
3859 (pop_init_level): Likewise.
3860 (output_init_level): Likewise.
3861 (output_pending_init_elements): Likewise.
3863 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
3865 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
3866 Improve error messages. Correct parsing of
3867 #pragma pack(pop [,id]). Do not check the user-supplied
3868 alignment if we're popping.
3870 * gcc.dg/pack-test-1.c: New test case.
3871 * gcc.dg/pack-test-2.c: New test case.
3872 * gcc.dg/pack-test-1.h: New file.
3874 2000-10-27 Neil Booth <neilb@earthling.net>
3878 2000-10-27 Kelley Cook <kelley.cook@home.com>
3880 * invoke.texi: Document -mintel-syntax
3882 2000-10-27 Richard Henderson <rth@redhat.com>
3884 * invoke.texi: Document -frename-registers. Add it to -O3.
3885 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
3886 (enum dump_file_index, dump_file): Update order.
3887 (main): Set flag_rename_registers at -O3.
3889 2000-10-27 Richard Henderson <rth@redhat.com>
3891 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
3892 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3893 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
3894 * config/alpha/alpha.md (call_osf_1): Use it.
3895 (call_value_osf_1): Likewise.
3897 * config/ia64/ia64.c: Revert 10-23 patch.
3898 (ia64_hard_regno_rename_ok): New.
3899 * config/ia64/ia64-protos.h: Declare it.
3900 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
3902 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
3903 Richard Henderson <rth@redhat.com>
3905 * regrename.c: Rewrite to handle multi-register modes and
3906 cond_exec instructions.
3907 * Makefile.in (regrename.o): Update dependancies.
3908 * recog.h (struct operand_alternative): Add is_address.
3909 * recog.c (preprocess_constraints) [case 'p']: Set it.
3911 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
3913 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
3914 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
3915 top level. Kill oldstyle_subdirs. Do not include
3916 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
3917 $outputs. Do not run configure.lang from config.status.
3918 Rearrange warning-flag logic to correspond to what the
3919 makefile wants. Put special vax stage1 options in
3920 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
3921 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
3922 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
3923 switch is given, nothing otherwise.
3924 * configure.lang: Delete.
3926 * Makefile.in: Expunge all traces of extra_c_objs,
3927 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
3928 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
3929 warning options via a three level scheme so that -pedantic and
3930 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
3931 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
3932 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
3933 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
3934 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
3935 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
3936 generation rules. Wrap all rules that change the current
3937 directory in parentheses; pmake doesn't spawn a new shell for
3938 each command. Expunge all references to $(P). When one
3939 command depends on another and they're run all at once, use &&
3940 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
3941 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
3944 * objc/Make-lang.in: Wrap all rules that change the current
3945 directory in parentheses. Expunge all references to $(P).
3946 When one command depends on another and they're run all at
3947 once, use && to separate them, not ;. Add OUTPUT_OPTION to
3948 all object-file generation rules. Delete obsolete variables.
3949 * objc/Makefile.in: Delete.
3951 2000-10-27 Jakub Jelinek <jakub@redhat.com>
3953 * calls.c (expand_call): If sibcall_failure is set during pass 1,
3954 clear tail_call_insns as well.
3956 2000-10-27 Nick Clifton <nickc@redhat.com>
3958 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
3961 2000-10-26 Richard Henderson <rth@redhat.com>
3963 * calls.c (expand_call): Supress sibcall if we have a
3964 BLKmode return in registers.
3966 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
3968 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
3971 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
3973 * tree.c (make_node, case 't'): Set alignment to that of
3975 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
3977 2000-10-25 Mark Mitchell <mark@codesourcery.com>
3979 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
3980 * configure.in (enable-libstdcxx-v3): Arrange to have
3981 HAVE_LIBSTDCXX_V3 substituted into the output files.
3983 2000-10-25 Richard Henderson <rth@redhat.com>
3985 * recog.c (constrain_operands): Initialize which_alternative
3986 before no alternatives early exit.
3988 * cse.c (find_comparison_args): Check that we can reverse a
3989 comparison if needed before accepting the substitution.
3991 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
3993 * simplify-rtx.c (simplify_relational_operation): Sign extend
3994 low words before sign extending to high words.
3996 2000-10-25 Nick Clifton <nickc@redhat.com>
3998 * config/mcore/mcore.c: Include config.h before system.h.
4000 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
4002 * config/mcore/mcore.md (return): Force function epilogue to
4003 always be generated to work around epilogue suppression bug in
4006 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
4008 * c-decl.c (grokdeclarator): Move warning for qualified void
4009 return types with -pedantic to when the function type is
4010 constructed. At -W, warn in general for qualified function return
4011 types, except for volatile void.
4012 * invoke.texi: Document this new warning at -W.
4014 2000-10-25 Neil Booth <neilb@earthling.net>
4016 * cpp.texi: Update with implementation-defined behavior and
4019 2000-10-25 Jakub Jelinek <jakub@redhat.com>
4021 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
4022 incomplete type force it into alias set 0.
4024 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
4026 * alias.c: Include basic-block.h.
4027 (loop_p): New function.
4028 (mark_constant_function): Use it.
4029 * Makefile.in (alias.o): Update dependencies.
4031 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
4033 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
4036 2000-10-24 Jim Wilson <wilson@cygnus.com>
4038 * expmed.c (store_bit_field): Move integer pun code down after
4039 code that calls emit_move_insn for entire register move.
4040 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
4041 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
4043 2000-10-24 Richard Henderson <rth@cygnus.com>
4045 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
4046 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
4048 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
4050 * gcse.c (cprop_insn): do not propagate constants into jump_insn
4051 for machines with CC0 more than once.
4053 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
4055 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
4056 pseudos just like memory.
4058 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
4060 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
4061 when deleting libcall sequence collapsed to a single instruction.
4063 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
4065 * expr.c (do_store_flag): Don't crash if either side of a
4066 comparison is error_mark_node.
4068 2000-10-24 Jakub Jelinek <jakub@redhat.com>
4070 * sibcall.c (purge_mem_unchanging_flag): New function.
4071 (optimize_sibling_and_tail_recursive_calls): Call it.
4073 2000-10-24 Philipp Thomas <pthomas@suse.de>
4075 * Makefile.in (check-po): New target for doing checks in the po
4076 subdir if all languages configured.
4077 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
4078 configure if NLS is enabled.
4079 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
4080 otherwise leave empty.
4081 * configure: Regenerate.
4083 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
4085 * i386.c (print_operand): Handle new 'A' formatting code.
4086 387 opcodes need suffixes even with -mintel-syntax.
4087 Check for explicit size override (codes 'b', 'w' and 'k').
4088 (print_operand_address): Check if register prefix is needed when
4089 emitting `ds' segment override.
4090 * i386.h: Add comment about new 'A' formatting code.
4091 * i386.md (jump and call patterns): Emit absolute references using %A.
4093 2000-10-23 Richard Henderson <rth@cygnus.com>
4095 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
4096 output registers as fixed.
4097 (ia64_function_epilogue): Undo output fixation.
4099 2000-10-23 Richard Henderson <rth@cygnus.com>
4101 * config/alpha/alpha.md: Add names for all unnamed insns; use
4102 define_insn_and_split in some obvious places.
4104 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
4105 (zero_extendqisi2, zero_extendqidi2): Likewise.
4106 (zero_extendhisi2, zero_extendhidi2): Likewise.
4107 (abs splitters): Fix match_scratch operand number.
4108 (bcc_reverse): Swap pc & label instead of non-canonical compare.
4110 2000-10-23 Jim Wilson <wilson@cygnus.com>
4112 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
4114 * ia64.md (cmpsi_adjusted): Use %r3.
4115 (cmpdi_adjusted): Likewise.
4117 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
4119 * config/i386/att.h (ASM_FILE_START): Define.
4121 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
4123 * config/i386/linux.h (ASM_FILE_START): Define.
4125 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
4127 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
4128 since this (only) drags in a crt0.o reference that the .ld files
4131 2000-10-23 Geoff Keating <geoffk@cygnus.com>
4133 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
4134 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
4135 reloads just like an RELOAD_FOR_OUTPUT would.
4137 * local-alloc.c (update_equiv_regs): Add an abort(). When
4138 deleting or moving insns, update reg_equiv[regno].init_insns.
4140 2000-10-23 Mark Mitchell <mark@codesourcery.com>
4142 * c-tree.texi: Improve documentation for IF_STMTs and related
4143 conditional statements.
4145 2000-10-22 Mark Mitchell <mark@codesourcery.com>
4147 * expr.c (do_preexpand_calls): Remove.
4148 (same_from_p): Don't use CALL_EXPR_RTL.
4149 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
4150 (preexpand_calls): Remove.
4151 * tree.c (first_rtl_op): Remove CALL_EXPR case.
4152 (unsave_expr_1): Likewise.
4153 * tree.def (CALL_EXPR): Give it only two slots.
4154 * tree.h (CALL_EXPR_RTL): Remove.
4156 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
4158 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
4159 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
4162 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
4164 * calls.c (combine_pending_stack_adjustment_and_call): Don't
4165 adjust stack when unadjusted_alignment ends up as zero.
4167 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
4169 * fixinc/genfixes: Remove EGCS reference.
4170 * install.texi: Remove EGCS reference.
4171 * INSTALL: Regenerate.
4173 2000-10-22 Mark Mitchell <mark@codesourcery.com>
4175 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
4177 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
4179 * diagnostic.c: Remove EGCS reference in comment.
4181 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4183 * loop.c (strength_reduce): Fix error in last change.
4185 2000-10-20 David Edelsohn <edelsohn@gnu.org>
4187 * Makefile.in (SHLIB_NM_FLAGS): New.
4188 (libgcc.mk): Pass it.
4189 * mklibgcc.in (libgcc.map): Use it.
4191 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
4192 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
4194 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4196 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
4198 * sparc.c (load_pic_register): Delete unused varaible.
4200 * libgcc2.c (__addvsi3): Delete unused variable.
4202 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
4203 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
4204 __negvdi2): Prototype.
4206 * ssa.c (apply_delayed_renames): Avoid undefined operation.
4208 * toplev.c (display_target_options): Make static to match
4209 prototype. Delete empty declaration.
4211 2000-10-20 Tom Tromey <tromey@cygnus.com>
4213 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
4214 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
4216 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4218 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
4220 (expand_expr_unaligned, case ARRAY_REF): Check that index is
4221 a constant before comparing it; use tree_low_cst.
4222 * tree.c (save_expr): Set TREE_READONLY.
4223 (substitute_expr): Return inside of NON_LVALUE_EXPR.
4224 (build, build1): Set TREE_READONLY if all operands are.
4225 (build_index_type): If upper bound is a negative number, lower
4226 bound is zero and sizetype is unsigned, use upper bound of one and
4229 2000-10-20 David Edelsohn <edelsohn@gnu.org>
4231 * gcc.c (process_command, main): Use "because" instead of
4232 "since" in error messages.
4234 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4236 * stor-layout.c (compute_record_mode): Use tree_low_cst.
4237 Don't use mode of field for record unless sizes are the same.
4238 (layout_type, case ARRAY_TYPE): Remove special bounds handling
4239 previously added for Ada; also change to using host_integerp
4242 * loop.c (strength_reduce): Show when new register made for
4243 giv is known to be a pointer and its aligment if so and known.
4244 (loop_dump_aux): Show VERBOSE parameter unused.
4246 * gcse.c (set_hash_table_size): Now unsigned.
4247 * sdbout.c (template_name_p): Add "const" to avoid warnings.
4248 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
4249 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
4250 (sdbout_end_epilogue): Remove variable NAME.
4251 * system.h (getopt): Add default definition.
4252 * config/alpha/alpha.c (print_operand): Don't continue processing
4253 after issuing error.
4254 (summarize_insn): Avoid use of UL in constant.
4256 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
4258 * fold-const.c (force_fit_type): Unsigned values can overflow
4259 if they are sizetype.
4260 (int_const_binop): Don't use cache if overflows.
4262 2000-10-20 Richard Henderson <rth@cygnus.com>
4264 * function.c (locate_and_pad_parm): Zero alignment_pad.
4266 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
4267 perform substitutions, and apply_change_group to see if it worked.
4269 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4271 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
4273 * combine.c (struct undo): Change int to unsigned int.
4274 (do_SUBST_INT): Args are unsigned int.
4275 (make_extraction, force_to_mode): Use proper type when forming mask.
4276 (make_field_assignment): Likewise.
4278 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
4280 * c-common.c (check_format_info_recurse): Extract string constant
4281 initializers from non-volatile constant arrays and check them as
4283 * c-typeck.c (decl_constant_value): Don't check pedantic or check
4284 for DECL_MODE (decl) != BLKmode.
4285 (decl_constant_value_for_broken_optimization): New function which
4286 includes these checks.
4287 (default_conversion, convert_for_assignment, digest_init): Use
4288 decl_constant_value_for_broken_optimization instead of
4289 decl_constant_value.
4291 2000-10-20 Mark Mitchell <mark@codesourcery.com>
4293 * tree.h (DECL_ALIGN_UNIT): New macro.
4295 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
4297 * config/avr/avr-protos.h (avr_output_bld): New.
4298 (out_shift_with_cnt): Add t_len argument.
4299 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
4300 (output_movqi, output_movhi, output_movsisf): Optimize loading
4301 any constant with exactly one bit set to NO_LD_REGS.
4302 (out_shift_with_cnt): Optimize output code for size or speed,
4303 depending on optimize_size. Handle small shift counts as well
4304 (if not hand-optimized in ?sh??i3_out). Shifts can be done
4305 with or without a scratch register, with help of __tmp_reg__
4306 or __zero_reg__ if necessary. Add T_LEN argument to pass the
4307 length of TEMPLATE in words, return total insn length in *LEN.
4308 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
4309 out_shift_with_cnt to work with the above change.
4310 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
4311 lshrsi3_out): Likewise. Optimize more known shift count cases.
4312 Remove cases already well optimized in out_shift_with_cnt.
4313 (avr_output_bld): New function.
4314 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
4315 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
4316 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
4317 Add reload_completed to insn condition - only for peepholes.
4318 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
4319 in a register or memory.
4320 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
4321 Do not require a scratch register.
4322 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
4323 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
4324 Optimize shifts by known count using a scratch register, but only
4325 if one is still available after register allocation.
4327 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4329 * t-vax: New file. Don't build modules from libgcc1.c.
4331 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
4333 * alias.c: (mark_constant_function): Don't check pure functions.
4334 Initialize and end alias analysis.
4335 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
4336 Don't make a special exception for recursion. Handle
4337 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
4338 unless it's volatile.
4340 * local-alloc.c (equivalence): New structure.
4341 (reg_equiv): Define.
4342 (contains_replace_regs): Remove array and use
4344 (memref_referenced_p): Likewise.
4345 (no_equiv): Likewise.
4346 (update_equiv_regs): Likewise.
4348 (equiv_init_varies_p,
4349 equiv_init_movable_p): New functions.
4350 (update_equiv_regs): Use them. Use rtx_varies_p
4351 instead of function_invariant_p. Process insns
4352 from end to beginning. Allow a REG_EQUIV insn
4353 within the same loop as a use to be moved, also
4354 allow it to be moved out of a loop. Update
4355 REG_DEAD notes when substituting into an insn.
4357 2000-10-19 Jim Wilson <wilson@cygnus.com>
4359 * c-decl.c (start_decl): Check for error_mark_node type before using
4361 (finish_decl): Likewise. Don't give an error if decl type is
4362 already error_mark_node.
4364 * haifa-sched.c (compute_trg_info): Add explanatory comments.
4365 New local update_blocks. Use update_blocks to remove duplicates
4366 when computing update blocks. Check for bblst_table overflow.
4367 (schedule_block): Add explanatory comment. Reduce bblst_size by
4369 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
4372 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
4374 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
4376 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
4378 * expmed.c: Minor corrections in comments.
4379 * invoke.texi: Added desciption for the new option -ftrapv.
4381 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
4383 * libgcc2.c: Added the missing #endif.
4385 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
4387 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
4389 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
4391 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
4392 Use smulv_optab for -ftrapv.
4393 (expand_mult_highpart): Use unsigned multiply.
4394 (expand_divmod): Special-case division by -1.
4395 For EXACT_DIV_EXPR, do right shift first, then the multiply.
4396 For complex divide, use abs with unsigned result.
4397 * expr.c (force_operand): Use unsigned multiply.
4398 (expand_expr): Use overflow-trapping optabs for signed types if
4400 If flag_trapv, don't generate a recursive call with EXPAND_SUM
4401 if the type is signed and the original call wasn't EXPAND_SUM or
4403 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
4404 (negv_optab, absv_optab): Declare.
4405 * flags.h (flag_trapv): Declare.
4406 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
4407 smulv_optab, sdivv_optab, negv_optab and absv_optab.
4408 (gen_insn): Interpret '$P' as requiring an integer mode,
4409 including partial integer modes.
4410 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
4411 (product_cheap_p): Use unsigned expand_mult.
4412 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
4413 (negv_optab, absv_optab): Define.
4414 (expand_binop): Use overflow-trapping optabs for signed types if
4416 Handle negv_optab libe neg_optab.
4417 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
4418 Use overflow-trapping optabs for signed result if flag_trapv.
4419 (expand_complex_abs): Use overflow-trapping optabs for signed types if
4421 Don't open-code complex absolute-value operation for flag_trapv.
4422 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
4423 sdivv_optab, negv_optab and absv_optab.
4424 * toplev.c (flag_trapv): Define.
4425 (lang_independent_options f_options): Include flag_trapv.
4426 * tree.h (TYPE_TRAP_SIGNED): Define.
4427 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
4428 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
4430 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
4431 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
4433 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
4434 David V. Henkel-Wallace <gumby@cygnus.com>
4436 * config/i386/t-netware: Bring in from the Red Hat tree.
4437 * config/i386/netware.h: Likewise.
4438 * config/netware.h: Likewise.
4439 * config/rs6000/netware.h: Delete.
4440 * configure.in: Add i[34567]86-*-netware.
4441 * configure: Hand-edit to match configure.in change.
4443 2000-10-18 Mark Mitchell <mark@codesourcery.com>
4445 * c-common.h (flag_no_builtin): Declare.
4446 (flag_no_nonansi_builtin): Likewise.
4447 (c_common_nodes_and_builtins): Change prototype.
4448 * c-common.c (flag_no_builtin): New variable.
4449 (flag_no_nonansi_builtin): Likewise.
4450 (c_common_nodes_and_builtins): Remove parameters. Adjust
4452 * c-decl.c (flag_no_builtin): Remove.
4453 (flag_no_nonansi_builtin): Likewise.
4454 (init_decl_processing): Adjust call to
4455 c_common_nodes_and_builtins.
4457 2000-10-18 Marc Espie <espie@openbsd.org>
4459 * tm.texi (LIBGCC_SPEC): Synch with reality.
4461 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
4463 * c-common.c (check_format_types): Check for writing through a
4464 NULL pointer argument.
4466 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
4468 * tm.texi (Exception Region Output): Document
4469 DWARF_CIE_DATA_ALIGNMENT.
4470 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
4472 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
4473 DWARF_CIE_DATA_ALIGNMENT.
4475 2000-10-18 Michael Hayes <mhayes@cygnus.com>
4477 * basic-block.h (struct loop): Delete fields pre_header_root
4478 and pre_header_trace and replace with pre_header_edges
4479 and num_pre_header_edges.
4480 * flow.c (flow_loop_dump): Dump pre_header_edges.
4481 (flow_loops_free): Free pre_header_edges.
4482 (flow_loop_pre_header_scan): Calculate pre_header_edges.
4484 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4486 * contrib.texi: Update references to steering committee members
4487 and Jeff Law's entry.
4489 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
4491 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
4492 (maybe_read_dollar_number, check_format_info_main): Use them for
4493 pedantic warning messages.
4495 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
4497 * c-common.c (check_format_info_main): Minor cleanup: move
4498 variables into inner scopes; initialize declarations where
4499 appropriate; don't hardcode "scanf" name on warning for zero
4502 2000-10-17 Mark Mitchell <mark@codesourcery.com>
4504 * c-common.c (back_end_hook): New variable.
4505 * c-common.h (back_end_hook): Declare it.
4506 * c-lang.c (finish_file): Use it.
4508 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
4511 2000-10-18 Jan Hubicka <jh@suse.cz>
4513 * i386.c (ix86_comparison_operator, put_condition_code,
4514 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
4515 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
4516 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
4517 * i386.md (adddi and negdi splitter): Use CCRCmode.
4518 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
4519 (subsi3_carry): add '*'
4520 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
4521 (cmp to add peep2): Use CCRCmode; swap operands.
4523 2000-10-18 Kazu Hirata <kazu@hxi.com>
4525 * h8300.c: Fix a comment typo.
4526 (round_frame_size): New.
4527 (compute_saved_regs): Likewise.
4530 (push_order): Remove.
4531 (pop_order): Likewise.
4532 (function_prologue): Rearrange code for readability.
4533 (function_epilogue): Likewise.
4535 * config/h8300/h8300.md: Remove an unnecessary sign_extend
4536 expander that is used when not optimizing. Output a tab after
4537 each assembly insns.
4539 * reorg.c: Fix formatting.
4541 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
4543 * reload1.c (move2add_note_store): Check for simple
4544 auto-inc in destination.
4546 2000-10-17 Michael Chastain <chastain@redhat.com>
4548 * config/i386/i386-aout.h: define INT_ASM_OP.
4550 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
4552 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
4554 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
4556 * i370.md: Fix spelling typo.
4558 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4560 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
4561 Fixes execute/20001017-1.c on powerpc-linux-gnu.
4563 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
4564 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
4567 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
4568 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
4570 * rs6000/aix.h: ...to here.
4571 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
4573 2000-10-17 Jakub Jelinek <jakub@redhat.com>
4575 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
4577 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
4578 sure linker can relax even the delay slot mov %g1,%o7, fix output
4581 2000-10-17 Kazu Hirata <kazu@hxi.com>
4583 * config/h8300/h8300.md: Remove an unnecessary zero_extend
4584 expander that is used when not optimizing. Output a tab after
4585 each assembly insns.
4587 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
4589 * gcc.c: New options --target-help.
4590 (process_command): Added code to parse this new option.
4591 * toplev.c (display_target_options): New function to support the
4593 * cppinit.c (new_pending_directive) : New option OPT_target__help.
4594 (cpp_handle_option): Support this new option.
4595 * invoke.texi: Added notes about --target-help option.
4597 2000-10-17 Graham Stott <grahams@redhat.com>
4599 * config/i386/i386.md (testqi_1): Add missing operand prefix
4601 * config/i386/i386-protos.h: Add missing prototype.
4603 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
4605 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
4606 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
4607 using -mintel-syntax.
4609 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
4611 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
4612 (format_types): Use it for printf.
4613 (maybe_read_dollar_number): Add parameter for the kind of format
4614 involved. Warn for multiple use for arguments if this is
4615 inappropriate for the kind of format involved.
4616 (check_format_info_main): Update calls to maybe_read_dollar_number.
4618 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4620 * inclhack.def (hpux_maxint): Also apply fix to values.h.
4621 * fixincl.x: Rebuilt.
4623 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
4625 * genrecog.c (write_switch): Return the first condition that needs a
4628 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
4630 * c-tree.h (warn_sequence_point): Move declaration to...
4631 * c-common.h (warn_sequence_point): ... here.
4632 * c-decl.c (warn_sequence_point): Move definition to...
4633 * c-common.c (warn_sequence_point): ... here.
4634 (struct reverse_tree): New.
4635 (reverse_list, reverse_max_depth): New static variables.
4636 (build_reverse_tree, common_ancestor, modify_ok
4637 verify_sequence_points): New functions.
4638 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
4639 * c-typeck.c (check_modify_expr): Delete.
4640 (build_modify_expr): Don't call it.
4642 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
4644 * c-common.h (warn_missing_format_attribute): New variable.
4645 * c-decl.c (warn_missing_format_attribute): New variable.
4646 (c_decode_option): Decode -Wmissing-format-attribute and
4647 -Wno-missing-format-attribute.
4648 * c-common.c (check_function_format): If
4649 -Wmissing-format-attribute, give a warning where a vprintf or
4650 vscanf function is called by a function without its own printf or
4652 * toplev.c (documented_lang_options): Add
4653 -Wmissing-format-attribute.
4654 * invoke.texi: Document -Wmissing-format-attribute.
4656 2000-10-17 Marc Espie <espie@openbsd.org>
4658 * invoke.texi (-shared): Insist on requiring code generation flags
4659 to be used along with -shared, and document the subtle failure that
4660 may occur otherwise.
4662 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4664 * pa.md (return_internal): Move `use' after `return'.
4666 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
4668 * machmode.def: Correct comment.
4670 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
4672 * print-rtl.c (print_rtx_head): Constify.
4673 * rtl.h (print_rtx_head): Similarly.
4675 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
4676 Constify char * return value.
4678 (output_64bit_and, output_64bit_ior): Constify char * return value.
4679 (pa_can_combine_p): Make static.
4680 (function_arg): Decorate unused `named' argument. Fix comment typo.
4681 (function_arg_partial_nregs): Decorate unused `named' argument.
4683 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
4685 * c-common.c (format_check_results): New structure.
4686 (finish_dollar_format_checking): Adjust to take a
4687 format_check_results * parameter.
4688 (check_format_info, check_format_info_recurse,
4689 check_format_info_main): Split check_format_info into three
4690 functions, the main checking going in check_format_info_main.
4691 Recurse when any reduction of the format string argument towards a
4692 string literal is done; go down both branches of a conditional
4693 expression. Don't warn for extra format arguments or empty format
4694 strings if they only occur in some branches of a conditional
4697 2000-10-16 Kazu Hirata <kazu@hxi.com>
4699 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
4701 2000-10-16 Jakub Jelinek <jakub@redhat.com>
4703 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
4705 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
4707 * i386.md (*movsi_or): Switch operand order for intel syntax.
4709 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
4713 * gcc.texi (Contributing): Update.
4715 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
4717 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
4718 appropriate assembler dialect.
4720 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
4722 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
4724 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
4726 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
4727 constants 1 and 2 to NO_LD_REGS.
4729 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4731 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
4733 * objc/Make-lang.in (objc-parse.c): Likewise.
4735 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
4737 * arm.c: Include obstack.h
4738 (minipool_obstack, minipool_startobj): Define.
4739 (arm_add_gc_roots): Initialize them.
4740 (create_fix_barrier): Use our new obstack.
4741 (push_minipool_barrier, push_minipool_fix): Likewise.
4742 (arm_reorg): Release obstack memory.
4744 2000-10-13 Jakub Jelinek <jakub@redhat.com>
4746 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
4747 (prologue, exception_receiver, builtin_setjmp_receiver): New
4749 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
4750 * config/sparc/sparc-protos.h (finalize_pic): Remove.
4751 (load_pic_register): New prototype.
4752 * config/sparc/sparc.c (pic_setup_code): Remove.
4753 (finalize_pic): Rename to...
4754 (load_pic_register): ...this function.
4755 Don't look for nonlocal_goto_receivers and emit pic setup code
4756 directly. Don't check current_function_uses_pic_offset_table.
4758 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
4760 * tree.h (struct obstack): Declare.
4762 2000-10-12 Mark Mitchell <mark@codesourcery.com>
4765 * Makefile.in (ggc-callbacks.o): Remove target.
4766 (flow.o): Depend on GGC_H.
4767 * alias.c (init_alias_analysis):
4768 Remove ggc_p conditionals.
4769 (end_alias_analysis): Likewise.
4770 * basic-block.h (init_flow): New function.
4771 (allocate_reg_life_data): Declare.
4772 * bb-reorder.c (function_obstack): Replace with ...
4773 (flow_obstack): ... new variable.
4774 (fixup_reorder_chain): Use it.
4775 * c-decl.c (ggc_p): Remove.
4776 (caller-save.c): Don't call oballoc/obfree.
4778 undobuf): Remove storage.
4779 (try_combine): Don't call oballoc.
4780 (undo_all): Don't call obfree.
4781 * cse.c (insert): Use xmalloc, not
4783 (cse_main): Adjust accordingly.
4784 * dwarf2out.c (save_rtx): Remove
4786 (dwarf2out_init): Remove ggc_p conditionals.
4787 * emit-rtl.c (rtl_obstack): Remove.
4788 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
4789 (make_insn_raw): Likewise.
4790 (emit_insn_before): Likewise.
4791 (emit_insn_after): Likewise.
4792 (emit_insn): Likewise.
4793 (gen_sequence): Likewise.
4794 (copy_insn_1): Remove handling of `b' RTL components.
4795 (init_emit_once): Remove ggc_p conditionals.
4796 * except.c (create_rethrow_ref): Don't fool with obstacks.
4797 (add_partial_entry): Likewise.
4798 (call_get_eh_context): Likewise.
4799 (begin_protect_partials): Likewise.
4800 (protect_with_terminate): Likewise.
4802 (plus_constant_wide): Likewise.
4803 * expr.c (init_expr_once):
4805 (emit_block_move): Likewise.
4806 (clear_storage): Likewise.
4807 (expand_expr): Likewise.
4808 * flow.c (function_obstack): Remove.
4809 (flow_obstack): New variable.
4810 (flow_firstobj): Likewise.
4811 (create_base_block): Use the flow_obstack.
4812 (split_block): Likewise.
4813 (split_edge): Likewise.
4814 (calculate_global_regs_live): Likewise.
4815 (allocate_bb_life_data): Make it static. Likewiwse.
4816 (init_flow): New function.
4817 (size_int_type_wide): Remove ggc_p conditionals.
4819 (push_function_context_to): Don't call save_tree_status.
4820 (pop_function_context_from): Or restore_tree_status.
4821 (assign_stack_local_1): Don't call push_obstacks.
4822 (find_fixup_replacement): Use xmalloc.
4823 (fixup_var_refs_insns): Free the storage.
4824 (insns_for_mem_walk): Don't mess with obstacks.
4825 (instantiate_decls): Likewise.
4826 (trampoline_address): Likewise.
4827 (expand_function_end): Likewise.
4828 * function.h (sturct function):
4829 Remove obstack-related variables.
4830 (save_tree_status): Don't declare.
4831 (restore_tree_status): Likewise.
4832 * gcse.c (compute_can_copy):
4833 Don't call oballoc/obfree.
4834 * genattrtab.c (operate_exp): Remove
4836 (simplify_cond): Likewise.
4837 (simplify_test_exp): Don't mess with obstacks.
4838 (optimize_attrs): Likewise.
4839 * gengenrtl.c (gendef): Don't include
4841 * ggc-callbacks.c (ggc_p): Remove.
4842 * ggc-none.c (ggc_p): Remove.
4843 * ggc.h (ggc_p): Don't declare.
4844 * integrate.c (save_for_inline): Don't mess with obstacks.
4845 (integrate_decl_tree): Likewise.
4846 (output_inline_function): Likewise.
4848 (init_EXPR_INSN_LIST_cache): Likewise.
4849 * loop.c (temp_obstack):
4851 (rtl_obstack): Likewise.
4852 (init_loop): Don't mess with obstacks.
4853 (reg_address_cost): Free BIVs and GIVs.
4854 (check_insns_for_bivs): Use xmalloc, not oballoc.
4855 (find_mem_givs): Likewise.
4856 (record_biv): Likewise.
4857 (general_induction_var): Likewise.
4858 (product_cheap_p): Likewse.
4859 * optabs.c (init_one_libfunc): Remove
4861 * print-tree.c (debug_tree): Don't use
4863 (print_node): Likewise.
4864 * profile.c (output_func_start_profiler):
4865 Remove call to temporary_allocation.
4867 (eliminate_regs_in_insn): Don't mess with obstacks.
4869 (mark_target_live_regs): Use xmalloc.
4870 (free_resource_info): Free the memory.
4871 * rtl.c (rtl_obstack):
4873 (rtvec_alloc): Don't mess with obstacks.
4874 (rtx_alloc): Likewise.
4876 (copy_rtx): Don't handle `b' cases.
4877 (read_rtx): Use a local rtl_obstack.
4878 * rtl.h (oballoc): Remove.
4880 (pop_obstacks): Likewise.
4881 (push_obstacks): Likewise.
4882 (allocate_bb_life_data): Likewise.
4883 (allocate_reg_life_data): Likewise.
4884 (rtx_free): Likewise.
4885 * sdbout.c (sdbout_queue_anonymous_type):
4886 Use tree_cons, not saveable_tree_cons.
4888 (cselib_init): Don't mess with obstacks.
4890 (mark_block_nesting): Mark the label_chain.
4891 (epxand_label): Use ggc_alloc, not oballoc.
4892 (clear_last_expr): Don't mess with obstacks.
4893 (expand_decl_cleanup): Likewise.
4894 (expand_dcc_cleanup): Likewise.
4895 (expand_dhc_cleanup): Likewise.
4896 (expand_anon_union_decl): Likewise.
4897 (add_case_node): Use xmalloc, not oballoc.
4898 (free_case_nodes): New function.
4899 (expand_end_case): Call it.
4900 * stor-layout.c (layout_type): Don't
4902 (layout_type): Likewise.
4903 * toplev.c (wrapup_global_declarations):
4905 (compile_file): Remove ggc_p conditionals.
4906 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
4907 (decode_f_option): Remove ggc_p conditionals.
4909 (function_maybepermanent_obstack): Remove.
4910 (maybepermanent_obstack): Likewise.
4911 (function_obstack): Likewise.
4912 (tmeporary_obstack): Likewise.
4913 (momentary_obstack): Likewise.
4914 (temp_decl_obstack): Likewise.
4915 (saveable_obstack): Likewise.
4916 (rtl_obstack): Likewise.
4917 (current_obstack): Likewise.
4918 (expression_obstack): Likewise.
4919 (struct obstack_stack): Likewise.
4920 (obstack_stack): Likewise.
4921 (obstack_stack_obstack): Likewise.
4922 (maybepermanent_firstobj): Likewise.
4923 (temporary_firstobj): Likewise.
4924 (momentary_firstobj): Likewise.
4925 (temp_decl_firstobj): Likewise.
4926 (momentary_function_firstobj): Likewise.
4927 (all_types_permanent): Likewise.
4928 (struct momentary_level): Likewise.
4929 (momentary_stack): Likewise.
4930 (init_obstacks): Remove initialization of removed obstacks.
4931 (save_tree_status): Remove.
4932 (restore_tree_status): Likewise.
4933 (temporary_allocation): Liekwise.
4934 (end_temporary_allocation): Liekwise.
4935 (resume_temporary_allocation): Likewise.
4936 (saveable_allocation): Likewise.
4937 (push_obstacks): Likewise.
4938 (push_obstacks_nochange): Likewise.
4939 (pop_obstacks): Likewise.
4940 (allocation_temporary_p): Likewise.
4941 (permanent_allocation): Likewise.
4942 (preserve_data): Likewise.
4943 (preserve_initializer): Likewise.
4944 (rtl_in_current_obstack): Likewise.
4945 (rtl_in_saveable_obstack): Likewise.
4946 (oballoc): Likewise.
4948 (savealloc): Likewise.
4949 (expralloc): Likewise.
4950 (print_obstack_name): Likewise.
4951 (debug_obstack): Likewise.
4952 (object_permanent_p): Likewise.
4953 (push_momentary): Likewise.
4954 (perserve_momentary): Likewise.
4955 (clear_momentary): Likewise.
4956 (pop_momentary): Likewise.
4957 (pop_momentary_nofree): Likewise.
4958 (suspend_momentary): Likewise.
4959 (resume_momentary): Likewise.
4960 (make_node): Don't set TREE_PERMANENT.
4961 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
4962 Don't set TREE_PERMANENT.
4963 (get_identifier): Remove ggc_p conditionals.
4964 (build_string): Likewise.
4965 (make_tree_vec): Likewise.
4966 (build_decl_list): Remove.
4967 (build_expr_list): Likewise.
4968 (tree_cons): Remove ggc_p conditionals.
4969 (decl_tree_cons): Remove.
4970 (expr_tree_cons): Likewise.
4971 (perm_tree_cons): Likewise.
4972 (temp_tree_cons): Likewise.
4973 (saveable_tree_cons): Likewise.
4974 (build1): Remove ggc_p conditionals.
4975 (build_parse_node): Likewise.
4976 (build_type_attribute_variant): Don't mess with obstacks.
4977 (build_type_copy): Likewise.
4978 (type_hash_canon): Likewise.
4979 (build_pointer_type): Likewise.
4980 (build_reference_type): Likewise.
4981 (build_index_type): Likewise.
4982 (build_range_type): Likewise.
4983 (dump_tree_statistics): Don't print obstack information.
4985 (struct tree_common): Remove permanent_flag.
4986 (TREE_PERMANENT): Remove.
4987 (TREE_SET_PERMANENT): Likewise.
4988 (TYPE_OBSTACK): Likewise.
4989 (struct tree_type): Remove obstack.
4991 (savealloc): Likewise.
4992 (build_decl_list): Likewise.
4993 (build_expr_list): Likewise.
4994 (perm_tree_cons): Likewise.
4995 (temp_tree_cons): Likewise.
4996 (saveable_tree_cons): Likewise.
4997 (decl_tree_cons): Likewise.
4998 (expr_tree_cons): Likewise.
4999 (suspend_momentary): Likewise.
5000 (allocation_temporary_p): Likewise.
5001 (resume_momentary): Likewise.
5002 (push_obstacks_nochange): Likewise.
5003 (permanent_allocation): Likewise.
5004 (push_momentary): Likewise.
5005 (clear_momentary): Likewise.
5006 (pop_momentary): Likewise.
5007 (end_temporary_allocation): Likewise.
5008 (pop_obstacks): Likewise.
5009 (push_obstacks): Likewise.
5010 (pop_momentary_nofree): LIkewise.
5011 (preserve_momentary): Likewise.
5012 (saveable_allocation): Likewise.
5013 (temporary_allocation): Likewise.
5014 (resume_temporary_allocation): Likewise.
5015 (perserve_initializer): Likewise.
5016 (debug_obstack): Likewise.
5017 (rtl_in_current_obstack): Likewise.
5018 (rtl_in_saveable_obstack): Likewise.
5020 * varasm.c (current_obstack): Remove.
5021 (saveable_obstack): Remove.
5022 (rtl_obstack): Remove.
5023 (immed_double_const): Don't mess with obstacks.
5024 (immed_real_cons): Likewise.
5025 (output_constant_def): Likewise.
5026 (init_varasm_status): Use xcalloc.
5027 (mark_pool_constant): Mark the pool constant itself.
5028 (free_varasm_status): Free memory.
5029 (decode_rtx_const): Call bzero directly, rather than expanding it
5031 (record_rtx_const): Don't mess with obstacks.
5032 (force_const_mem): Likewise.
5033 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
5035 (aof_pic_entry): Likewise.
5036 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5037 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
5038 * config/pa/pa.c (saveable_obstack): Remove.
5039 (rtl_obstack): Likewise.
5040 (current_obstack): Likewise.
5041 (output_call): Don't mess with obstacks.
5042 (hppa_encode_label): Remove ggc_p conditionals.
5043 * config/romp/romp.c (get_symref): Don't mess with obstacks.
5044 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
5045 (rs6000_encode_section_info): Likewise.
5046 * config/sh/sh.c (get_fpscr_rtx): Likewise.
5048 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
5050 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
5051 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
5052 (addsi3_carry): Canonicalize.
5053 (addqi_5): Remove '*'.
5054 (sbb pattern): Canonicalize.
5056 * i386.md (cmp to inc/add peep2): New.
5058 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
5060 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
5063 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
5065 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
5066 * README.TRAD, TESTS.FLUNK: Remove.
5068 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
5070 * c-common.c (decl_attributes): Don't allow strftime formats with
5071 first_arg_num nonzero.
5072 (check_format_info): Set wanted_type and wanted_type_name to zero
5073 before they are possibly assigned and used.
5075 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
5077 * c-common.c (scanf_flag_specs): Add flags ' and I.
5078 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
5079 or the ^ and # flags together.
5080 (scan_char_table): Handle the ' and I flags.
5081 (format_types): Add ' and I flags for scanf.
5083 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
5085 * c-common.c (print_char_table): Use the unpromoted type for
5086 lengths "h" and "hh" with conversions dioxXu.
5087 (check_format_types): Apply the default argument promotions where
5088 the wanted type is not a pointer target.
5090 2000-10-11 Michael Meeks <mmeeks@gnu.org>
5091 Joseph S. Myers <jsm28@cam.ac.uk>
5093 * c-typeck.c (check_modify_expr): New function.
5094 (build_modify_expr): Call it if warn_sequence_point.
5095 * c-decl.c (warn_sequence_point): New variable.
5096 (c_decode_option): Handle -Wsequence-point and
5097 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
5098 * c-tree.h (warn_sequence_point): Declare.
5099 * invoke.texi (-Wsequence-point): Document.
5100 * toplev.c (documented_lang_options): Add -Wsequence-point and
5101 -Wno-sequence-point.
5102 Original work by Michael Meeks, 16 Jun 1998.
5104 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5106 * tree.c (get_narrower): Don't look at precision of field if
5109 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
5111 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
5112 declaration for data with "progmem" attribute.
5114 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
5116 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
5117 Correct insn length if shift count is a memory operand.
5118 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
5119 (*iorhi3_clobber): Change lo8 to hi8.
5120 (zero_extendhisi2): Change %B0 to %A1.
5121 (ashlhi3, ashrhi3): Correct insn length.
5122 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
5123 from "clobber" to "set_n" in some alternatives.
5125 2000-10-10 Jakub Jelinek <jakub@redhat.com>
5127 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
5128 remove its insn_chain structure as well.
5130 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
5132 * dbxout.c (dbxout_source_line): Remove extra tab.
5134 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
5136 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
5138 2000-10-09 Richard Henderson <rth@cygnus.com>
5140 * Makefile.in (LANG_LIB2FUNCS): Remove.
5141 (LIB2FUNCS): Remove _pure.
5142 (LIB2ADD): Remove LANG_LIB2FUNCS.
5143 (stage_a): Don't set LANG_LIB2FUNCS.
5144 * libgcc2.c (__terminate): Mark noreturn.
5145 (__pure_virtual): Remove.
5146 * mklibgcc.in: Remove LIB2ADD .txt processing.
5148 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
5150 * arm.md (push_multi): Revert unintended change.
5152 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
5154 * arm.c: Miscellaneous white space and comment clean-ups. No
5158 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5160 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
5161 STRING_CST by calling combine_strings.
5163 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
5165 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
5166 (thumb_output_move_mem_multiple): Support new insn format.
5167 * arm.md (movmem12b): Use SSA compatible format.
5168 (movmem8b): Likewise.
5170 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
5172 * arm.md (predicable): New attribute, default to "no".
5173 (all patterns): Mark as predicable if appropriate.
5174 (conditional execution splits): Split using predication format.
5175 (define_cond_exec): Define.
5176 * arm.c (arm_print_operand): handle insn predicate.
5178 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5180 * README.NS32K: Remove file.
5182 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5184 * README-bugs: Remove file.
5186 2000-10-08 Philipp Thomas <pthomas@suse.de>
5187 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
5189 * configure: Rebuilt.
5191 2000-10-08 Philipp Thomas <pthomas@suse.de>
5192 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
5193 disable catalog building if no suitable program was found.
5194 Move warning message from here
5195 (AM_GNU_GETTEXT): To here.
5196 * configure: Rebuilt.
5198 2000-10-08 Philipp Thomas <pthomas@suse.de>
5199 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
5200 different cache variables.
5201 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
5202 uses different cache variables.
5203 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
5204 * configure: Regenerated.
5206 2000-10-08 Richard Henderson <rth@cygnus.com>
5208 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
5209 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
5210 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
5213 * config/t-linux (SHLIB_EXT): New.
5214 (SHLIB_LINK): Use the entire build command, with substitutions.
5215 (SHLIB_LIBS): Remove.
5216 * config/alpha/t-osf4: Likewise.
5217 * config/mips/t-iris6: Likewise.
5218 * config/sparc/t-sol2: Likewise, but move shlib stuff...
5219 * config/sparc/t-slibgcc-sld: ...here.
5220 * config/sparc/t-slibgcc: New file.
5222 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
5224 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
5225 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
5227 (intmax_type_node, uintmax_type_node): Define.
5228 * c-common.c (decl_attributes): If pedantic, warn if `mode'
5229 attributes create a type wider than intmax_t.
5230 (T_IM, T_UIM): Define properly.
5231 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
5233 (init_decl_processing): Initialize intmax_type_node and
5235 * c-lex.c (lex_number): When pedantic and warning for integer
5236 constants that are too large, in C99 mode warn for those that have
5237 a type wider than long long.
5239 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
5241 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
5242 FMT_FLAG_FANCY_PERCENT_OK): Define.
5243 (format_char_info): Add flag "4" to comment.
5244 (format_flag_spec, format_flag_pair): New structures.
5245 (format_kind_info): Add additional fields to control format
5247 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
5248 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
5250 (time_char_table): Use "4" flag to handle %Ey.
5251 (format_types): Add entries for new fields.
5252 (get_flag_spec): New function.
5253 (check_format_info): Increase size of flag_chars[] to 256.
5254 Control format checking using the new fields of a format_kind_info
5255 and the new tables; remove all conditionals on printf_format_type,
5256 scanf_format_type or strftime_format_type. Handle all details of
5257 bad combinations of flags (including width, precision and strftime
5258 modifiers) through data rather than ad hoc code. Handle all
5259 details of standard versions in which flags appeared through
5260 data. Use the "4" flag.
5262 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
5264 * config/h8300/h8300.md: Remove the memory alternative and correct
5265 the insn lengths in the templates for sign extention and zero
5268 2000-10-07 Richard Henderson <rth@cygnus.com>
5270 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
5271 * flow.c (make_edges): Revert last change.
5273 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
5275 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
5277 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
5279 * config/alpha/elf.h: Standardize the formatting.
5281 2000-10-06 David O'Brien <obrien@FreeBSD.org>
5283 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
5286 2000-10-06 Richard Henderson <rth@cygnus.com>
5288 * function.c (diddle_return_value): Examine
5289 current_function_return_rtx instead of the DECL_RESULT.
5290 (expand_function_end): Handle reloading DECL_RESULT from memory
5291 into a hard register. Query promote_mode for sign of mismatched
5294 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5296 * haifa-sched.c (schedule_insns): Fix typo in freeing
5297 forward_dependency_cache.
5299 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
5301 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
5302 `TARGET_SH2' as a condition.
5304 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
5306 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
5307 forward_dependency_cache): New variables.
5308 (add_dependence, remove_dependence): Use anti_dependency_cache and
5309 output_dependency_cache.
5310 (compute_block_forward_dependences): Use forward_dependency_cache.
5311 (schedule_insns): Allocate and free memory for anti/output/forward
5312 dependencies caches.
5314 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
5316 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
5317 `! TARGET_SH1'. Reindent.
5319 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5321 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
5322 Move functions from here ...
5324 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
5326 (c_expand_builtin): New function.
5327 (init_function_format_info): Don't set `check_function_format_ptr'.
5328 (c_common_nodes_and_builtins): Set built_in_class type for
5329 printf/__builtin_printf to BUILT_IN_FRONTEND.
5330 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
5332 * c-common.h (build_function_call): Declare.
5334 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
5335 to `lang_expand_expr' rather than `expand_builtin'.
5337 * tree.c (check_function_format_ptr): Delete.
5339 * tree.h (check_function_format_ptr): Likewise.
5341 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
5343 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
5344 DW_OP_bregx when cfa->reg > 31.
5346 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
5349 2000-10-05 Richard Henderson <rth@cygnus.com>
5351 * c-decl.c (warn_missing_noreturn): Remove.
5352 (c_expand_body): Don't set or check can_reach_end.
5353 * c-tree.h (warn_missing_noreturn): Move ...
5354 * flags.h: ... here.
5355 (can_reach_end): Remove.
5356 * flow.c (check_function_return_warnings): New.
5357 (make_edges): No edge to exit for noreturn sibcalls.
5358 * function.c (expand_function_end): Save the return value
5359 clobber instruction.
5360 (mark_function_status): Mark it.
5361 * function.h (struct function): Add x_clobber_return_insn.
5362 * jump.c (can_reach_end): Remove.
5363 (calculate_can_reach_end): Remove.
5364 (jump_optimize_1): Don't call it.
5365 * output.h (check_function_return_warnings): Declare.
5366 * toplev.c (warn_missing_noreturn): Move from c-decl.c
5367 (rest_of_compilation): Call check_function_return_warnings.
5369 2000-10-05 Richard Henderson <rth@cygnus.com>
5371 * Makefile.in (NM_FOR_TARGET): New.
5372 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
5373 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
5374 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
5375 shared library build on that and EXTRA_MULTILIB_PARTS.
5376 * mkmap-flat.awk: New file.
5377 * mkmap-symver.awk: New file.
5378 * libgcc-std.ver: New file.
5379 * config/libgcc-glibc.ver: New file.
5380 * config/ia64/libgcc-ia64.ver: New file.
5381 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5382 (SHLIB_LINK): Add --version-script.
5383 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
5384 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5385 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
5386 (SHLIB_LINK): Add -M.
5388 2000-10-05 Richard Henderson <rth@cygnus.com>
5390 * Makefile.in (LIB2FUNCS): Add _clz.
5391 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
5392 (__clz_tab): Put in its own unit, non-static.
5393 * libgcc2.h: Always include longlong.h.
5395 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
5396 a zero instead of -1.
5397 (count_trailing_zeros): Likewise.
5399 2000-10-05 Richard Henderson <rth@cygnus.com>
5401 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
5402 when second op1 is const0_rtx. Validate op0 as a register.
5403 * config/alpha/alpha.md (setcc_internal): Don't allow constants
5404 in the first argument of the compare.
5405 (setcc_swapped_internal): Likewise.
5406 (setne_internal): Likewise.
5408 2000-10-05 Geoff Keating <geoffk@cygnus.com>
5410 * tree.c (tree_size): New function split out of copy_node.
5411 (make_node): Remove obstack handling. Use tree_size.
5412 (copy_node): Use tree_size.
5413 * tree.h: Prototype tree_size.
5415 2000-10-05 Richard Henderson <rth@cygnus.com>
5417 * diagnostic.c (output_format): Add missing break.
5419 2000-10-05 Jim Wilson <wilson@cygnus.com>
5421 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
5422 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
5423 sequence insn to INSN, and delete last sequence insn.
5425 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
5427 * gcc.c (main): Include generated configargs.h header
5428 and use arguments in '-v' output.
5430 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5432 * gcc.c: Move data on prefixes forward in file and reorganize.
5433 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
5434 Always define, but make null if no value.
5435 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
5436 and "md_startfile_prefix_1".
5437 (main): Check whether md_exec_prefix and the others are the
5438 null string rather than whether the macro is defined.
5440 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
5442 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
5443 from PSImode to SImode.
5445 2000-10-05 Jakub Jelinek <jakub@redhat.com>
5447 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
5448 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
5449 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
5452 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5454 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
5455 negation in proper type.a
5457 2000-10-04 Richard Henderson <rth@cygnus.com>
5459 * configure.in (enable-shared): New.
5460 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
5461 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
5462 * mklibgcc.in: Use them to link shared a libgcc.
5463 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
5464 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
5465 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
5466 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
5468 * configure.in (alpha-osf*): Use t-osf and x-osf.
5469 * config/alpha/t-osf: New file.
5470 * config/alpha/t-osf4: New file.
5471 * config/alpha/x-osf: New file.
5472 * config/alpha/x-alpha: Remove file.
5474 2000-10-04 Will Cohen <wcohen@redhat.com>
5476 * c-typeck.c (process_init_element): Added warning for zero-length
5479 * extend.texi (Zero Length): State that static initializers for
5480 zero-length arrays are not allowed.
5482 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
5484 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
5487 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5489 * config/float-c4x.h: New.
5490 * configure.in (c4x-*): Set float_format to c4x.
5491 * configure: Regenerate.
5493 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5495 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
5496 compilation for solaris versions 2.7 and greater.
5498 2000-10-02 Marc Espie <espie@openbsd.org>
5500 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
5501 instead of redefining from scratch.
5503 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
5505 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
5507 2000-10-01 Mark Mitchell <mark@codesourcery.com>
5509 * config/ns32k/genix.h: Remove.
5510 * config/ns32k/x-genix: Likewise.
5511 * config/ns32k/xm-genix.h: Likewise.
5512 * config/fx80: Remove all filee in directory.
5513 * config/pyr: Likewise.
5514 * config/tahoe: Likewise.
5515 * config/gmicro: Likewise.
5516 * config/spur: Likewise.
5517 * configure.in: Remove configury bits for above targets.
5518 * configure: Regenerated.
5520 * configure.in: Don't configure chill by default.
5521 * configure: Regenerated.
5523 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
5524 (lang_mark_false_label_stack): Remove.
5525 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
5526 <top level> string in GC area.
5527 (mark_splay_tree_node): New function.
5528 (mark_splay_tree): Likewise.
5529 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
5531 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
5532 * ggc-common.c (lang_mark_false_label_stack): Change type.
5533 * ggc.h (ggc_alloc_string): Add comment.
5534 (ggc_strdup): New function.
5536 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
5538 * config/avr/avr.h (BRANCH_COST): Define as 0.
5540 * config/pdp11/pdp11.c: #include "tree.h" added.
5542 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
5544 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
5545 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
5546 with known shift count.
5547 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
5548 New alternative for shift count 2 with no scratch register.
5549 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
5550 "set_n" for shift counts 1 and 2.
5552 2000-09-30 Geoff Keating <geoffk@cygnus.com>
5554 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
5555 the mask value from the individual SET operations.
5556 (return_internal_si): Move the USE after the RETURN.
5557 (return_internal_di): Likewise.
5558 (return_and_restore_fpregs_si): Likewise.
5559 (return_and_restore_fpregs_di): Likewise.
5560 (return_eh_si): Likewise.
5561 (return_eh_di): Likewise.
5562 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
5564 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
5565 Don't generate a PARALLEL around a single operation movsi_to_cr.
5566 Generate the RETURN first in any PARALLELs.
5568 * rtlanal.c (single_set_1): Use fatal_insn to display the
5569 invalid insn. Check for more cases when a USE or CLOBBER occurs
5571 * Makefile.in: Update dependencies for rtlanal.o.
5573 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
5575 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
5577 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
5579 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
5580 Consistently use @email for formatting email addresses.
5582 2000-09-29 Richard Henderson <rth@cygnus.com>
5584 * cse.c (notreg_cost): New argument outer.
5585 (COST): Pass in SET to notreg_cost
5587 (fold_rtx): Use COST_IN. Prefer constants when costs
5590 2000-09-29 David Edelsohn <edelsohn@gnu.org>
5592 * fixinc/inclhack.def (broken_cabs): Generalize regex.
5593 * fixinc/fixincl.x: Regenerate.
5595 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5597 * loop.c (check_final_value): A GIV is not replaceable if used
5600 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
5602 * version.c: Bump to gcc-2.97.
5604 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
5606 * final.c (final_scan_insn): Remove extra extract_insn call;
5607 Use caching for constrain_operands.
5608 (cleanup_subreg_operands): Use caching for extract_insn.
5609 * recog.c (constrain_operands_cached): New.
5610 * recog.h (constrain_operands_cached): Declare.
5611 * i386.c (ix86_attr_length_immediate_default,
5612 ix86_attr_length_address_default, ix86_agi_dependant): Cache
5615 * recog.c (asm_noperands): Tweak.
5616 (extract_insn): Do not call asm_noperads for non-asm instructions.
5618 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
5620 * recog.c (recog_memoized): Rename to recog_memoized_1.
5621 * recog.h (recog_memoized): Rename to recog_memoized_1.
5622 (recog_memoized): New macro.
5623 * rtl.h (single_set): Rename to single_set_1
5624 (single_set): New macro.
5625 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
5628 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
5629 Do not use match_dup of input operands at outputs.
5630 Use register_operand for memory expression.
5631 (rep_movsi): Put use last, canonicalize.
5632 Use register_operand for memory expression.
5633 (rep_movqi): Put use last.
5634 Use register_operand for memory expression.
5635 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
5636 of input operands at outputs. Use register_operand for memory
5638 (rep_stossi): Put use last; canonicalize; fix match_dup in
5639 the address expression
5640 (rep_stosqi): Likewise.
5641 (memcmp expander): Update calls.
5642 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
5645 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
5647 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
5649 2000-09-28 David O'Brien <obrien@FreeBSD.org>
5651 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
5652 Contains the old contents of config/i386/freebsd.h
5653 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
5654 Contains the old contents of config/i386/freebsd-elf.h
5655 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
5656 config/i386/freebsd.h.
5657 * configure.in: Adjust for above changes.
5658 * po/POTFILES.in: Likewise.
5659 * po/en_GB.po: Likewise.
5660 * po/gcc.pot: Likewise.
5661 * configure: Rebuilt.
5663 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5665 * doloop.c (doloop_modify): Prevent delete_insn() from
5666 deleting too much. Prefer loop->top over loop->start as
5667 target for the new JUMP insn.
5668 (doloop_valid_p): Ignore loop with exit_count != 0.
5670 2000-09-28 Philipp Thomas <pthomas@suse.de>
5672 * invoke.texi (i386 Options): Add athlon to table of possible
5675 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
5677 * diagnostic.h (output_clear_message_text): New function.
5678 (output_message_text): New macro.
5680 * diagnostic.c (clear_text_info): Rename to
5681 output_clear_message_text.
5682 (output_clear): Adjust.
5683 (output_finish): Rename to output_finalize_message. Tweek.
5684 (output_to_stream): Adjust.
5686 2000-09-28 Neil Booth <neilb@earthling.net>
5688 * cpperror.c (_cpp_begin_message): Do the test for suppression
5689 of warnings and pedantic warnings before the "is a warning an
5691 * cppinit.c (cpp_handle_option): Remove surplus \n.
5692 * cpplex.c (ON_REST_ARG): Delete.
5693 (skip_block_comment): Initialise prevc.
5694 (parse_args): Improve error messages.
5695 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
5697 * cpplib.c (cpp_push_buffer): Fix grammar in message.
5698 * cppmain.c (main): Set callbacks for #ident and #pragma
5699 only if no_output option is false.
5700 (do_pragma_implementation): Only call the #pragma handler
5701 if it is set in the cpp_reader structure.
5703 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
5705 * integrate.c (copy_insn_list): if an ignored return value
5706 is being clobbered, skip cloning that into the inline copy.
5708 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
5710 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
5711 use @uref for formatting URLs.
5713 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
5715 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
5718 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
5720 * gcc.c (cpp_options): Add spec for -ftabstop=.
5721 (invoke_as): New spec that handles invoking as.
5722 Update specs to handle -save-temps and -traditional.
5723 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
5725 * cp/lang-specs.h, objc/lang-specs.h: Update to use
5726 invoke_as, and handle -save-temps and -traditional (if
5729 2000-09-26 Jakub Jelinek <jakub@redhat.com>
5731 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
5733 (function_arg_slotno): Accept TImode/CTImode.
5734 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
5737 2000-09-26 Michael Hayes <mhayes@cygnus.com>
5739 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
5742 2000-09-25 Jim Wilson <wilson@cygnus.com>
5744 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
5745 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
5746 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
5747 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
5749 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
5751 * cpplex.c (parse_args): Don't set VOID_REST flag.
5752 (CONTEXT_VARARGS): New flag.
5753 (maybe_paste_with_next): Set context earlier in loop. Use
5754 it. Do varargs test with CONTEXT_VARARGS flag.
5755 (push_arg_context): Set CONTEXT_VARARGS flag if we're
5756 pushing an argument context for a varargs argument.
5757 * cpplib.h (VOID_REST): Delete.
5758 * gcc.dg/cpp/vararg1.c: Add test case.
5760 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
5762 * flags.h: Declare warning flag warn_system_headers.
5763 * toplev.c: Define it.
5764 (W_options): Add option -Wsystem-headers.
5765 * diagnostic.c (count_error): Test warn_system_headers.
5766 * invoke.texi: Add description for -Wsystem-headers.
5767 * cpplib.h (cpp_options): New member warn_system_headers.
5768 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
5769 CPP_IN_SYSTEM_HEADER.
5770 * cpplib.c (do_import, do_pragma_once): Likewise.
5771 * cpperror.c (_cpp_begin_message): Test warn_system_headers
5772 and CPP_IN_SYSTEM_HEADER.
5773 * cppinit.c (handle_option): Recognize -Wsystem_headers.
5774 (print_help): Describe -Wsystem_headers.
5775 * cpplex.c (lex_line): Reorganize condition so that warnings
5776 about C++ comments in system headers can be enabled. Remove
5777 label do_line_comment.
5779 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
5781 * cpplex.c (save_comment): Only store the initial '/'
5783 (lex_token): Combine handling of the two comment types.
5784 Pass everything but the initial '/' to save_comment.
5786 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
5788 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
5789 _cpp_can_paste): New library-internal prototypes.
5790 * cpplex.c (dump_param_spelling, output_line_command,
5791 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
5792 cpp_printf, cpp_output_list): Move to cppoutput.c.
5793 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
5794 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
5796 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
5797 dump_param_spelling, output_line_command, cpp_scan_buffer,
5798 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
5800 * Makefile.in: Add cppoutput.c.
5801 * po/POTFILES.in: Add cppoutput.c.
5803 2000-09-25 Richard Henderson <rth@cygnus.com>
5805 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
5806 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
5807 split until after reload.
5808 (rotlsi3, rotldi3): New.
5810 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
5812 * diagnostic.c (output_last_position): Define.
5813 (set_real_maximum_length): Tweek.
5814 * diagnostic.h (output_last_position): Declare.
5816 2000-09-25 Kazu Hirata <kazu@hxi.com>
5818 * config/i386/i386.c: Fix formatting.
5820 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
5822 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
5823 UNITS_PER_WORD is small.
5825 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
5827 * c-common.c (format_char_info): Add flags2; update comments.
5828 (print_char_table, scan_char_table, time_char_table): Split some
5829 flags out into flags2.
5830 (check_format_info): Use flags2 for those flags, for identifying
5831 the initial character of a scanf scanset, and for identifying
5832 printf formats where the '0' flag is ignored with precision.
5834 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
5836 Changes below marked "here" add TABs on either or both sides,
5837 covering start of line, up to any operand for all noted .*ASM.*_OP
5838 definitions. All callers changed.
5839 * tm.texi: Make documented *_ASM.*_OP:s include spacing
5840 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
5841 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5842 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5843 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
5844 Fix typos in description for LONG_LONG_TYPE_SIZE and
5845 FINI_SECTION_ASM_OP.
5846 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
5847 why these defaults don't have leading spacing.
5848 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
5849 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5850 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
5851 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
5852 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
5853 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
5854 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
5855 * varasm.c (ASM_STABS_OP): Here.
5856 * xcoffout.h (ASM_STABS_OP): Here.
5857 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
5858 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
5859 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
5860 STRING_ASM_OP): Here.
5861 * config/freebsd.h (IDENT_ASM_OP): Here.
5862 * config/linux-aout.h (SET_ASM_OP): Here.
5863 * config/linux.h (SET_ASM_OP): Here.
5864 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5866 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
5867 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
5868 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
5869 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5871 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
5872 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
5873 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
5874 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
5875 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
5876 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5877 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
5878 * config/a29k/udi.h (INT_ASM_OP): Here.
5879 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
5880 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
5882 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
5883 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5884 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5885 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
5886 ASM_STABD_OP): Here.
5887 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
5888 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
5889 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5890 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
5891 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
5892 SIZE_ASM_OP, STRING_ASM_OP): Here.
5893 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
5894 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
5895 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
5896 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
5897 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
5898 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
5900 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5901 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
5902 * config/arm/coff.h (INT_ASM_OP): Here.
5903 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5904 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
5905 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
5906 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
5907 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
5908 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5909 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
5910 STRING_ASM_OP): Here. Update documentation copy in comments.
5911 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
5912 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
5913 DATA_SECTION_ASM_OP): Here.
5914 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
5916 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
5917 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5918 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5919 BSS_SECTION_ASM_OP): Here.
5920 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5921 BSS_SECTION_ASM_OP): Here.
5922 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5924 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
5925 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
5926 * config/h8300/h8300.h (ASM_WORD_OP): Here.
5927 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5928 BSS_SECTION_ASM_OP): Here.
5929 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
5930 * config/i386/bsd.h (ASM_BYTE_OP): Here.
5931 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
5932 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
5933 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
5935 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
5936 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
5938 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
5939 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5940 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
5941 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
5943 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
5944 * config/i386/netbsd.h (INT_ASM_OP): Here.
5945 * config/i386/openbsd.h (INT_ASM_OP): Here.
5946 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
5947 IDENT_ASM_OP): Here.
5948 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
5949 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
5950 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
5951 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
5952 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
5953 SHARED_BSS_SECTION_ASM_OP): Here.
5954 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
5955 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5956 DATA_SECTION_ASM_OP): Here.
5957 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
5958 CONST_SECTION_ASM_OP): Here.
5959 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
5960 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5961 BSS_SECTION_ASM_OP): Here.
5962 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
5963 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
5964 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
5965 BSS_ASM_OP): Here, but use trailing spaces.
5966 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
5967 DATA_SECTION_ASM_OP): Here.
5968 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
5970 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
5971 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
5972 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5973 TDESC_SECTION_ASM_OP): Here.
5974 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
5975 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5976 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
5978 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5979 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
5980 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5981 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
5982 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
5983 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
5984 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
5985 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
5986 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
5987 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
5988 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
5989 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
5991 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
5992 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
5993 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
5994 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
5995 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
5996 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
5997 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
5998 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
5999 GLOBAL_ASM_OP): Here.
6000 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
6001 BSS_SECTION_ASM_OP): Here.
6002 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
6003 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6004 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
6005 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
6007 * config/m68k/newsgas.h (SET_ASM_OP): Here.
6008 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
6009 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
6010 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
6011 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
6012 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
6013 but use trailing spaces.
6014 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
6015 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
6016 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
6018 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
6019 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
6020 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6021 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
6022 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6023 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
6024 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
6025 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
6026 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
6027 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
6028 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6029 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
6031 * config/m88k/openbsd.h (SET_ASM_OP): Here.
6032 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6033 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
6034 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
6035 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
6036 DTORS_SECTION_ASM_OP): Here.
6037 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
6038 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6039 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
6040 BSS_SECTION_ASM_OP): Here.
6041 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
6042 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
6043 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
6044 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
6045 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
6046 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
6047 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
6048 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
6050 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
6052 * config/mips/osfrose.h (SET_ASM_OP): Here.
6053 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
6054 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
6055 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
6056 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6058 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
6059 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
6060 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
6061 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
6062 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
6063 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6065 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6067 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
6068 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
6069 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
6071 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
6072 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
6073 * config/sparc/linux.h (COMMON_ASM_OP): Here.
6074 * config/sparc/linux64.h (COMMON_ASM_OP,
6075 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
6076 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
6077 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
6078 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
6079 * config/sparc/pbd.h (ASM_INT_OP): Here.
6080 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
6081 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
6082 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
6083 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
6084 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
6085 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
6086 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
6087 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
6088 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
6089 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
6090 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
6091 EH_FRAME_SECTION_ASM_OP): Here.
6092 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
6093 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6095 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6097 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
6098 TCOMMON_ASM_OP): Here.
6099 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
6101 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
6104 2000-09-25 Richard Henderson <rth@cygnus.com>
6106 * expmed.c (store_bit_field): Adjust last change to not consider
6107 any word-sized field naturally aligned.
6109 2000-09-24 Richard Henderson <rth@cygnus.com>
6111 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
6112 TFmode unordered compares properly. Revalidate integer compare
6114 (alpha_emit_setcc): New.
6115 (alpha_emit_conditional_move): Revalidate integer compare operands.
6116 * config/alpha/alpha-protos.h: Update.
6117 * config/alpha/alpha.md (cmpdi): Allow general operands.
6118 (sne): Use alpha_emit_setcc.
6119 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
6120 (sunordered, sordered): New.
6122 2000-09-24 Richard Henderson <rth@cygnus.com>
6124 * config/ia64/ia64-protos.h: Update.
6125 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
6126 (ia64_expand_call): New.
6127 (ia64_expand_prologue): Emit an alloc if we need extra input
6129 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
6130 instruction if true.
6131 (struct reg_flags): Add is_sibcall.
6132 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
6133 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
6134 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
6135 * config/ia64/ia64.h (PREDICATE_CODES): Update.
6136 * config/ia64/ia64.md (call): Use ia64_expand_call.
6137 (call_value): Likewise.
6138 (sibcall, sibcall_value): New.
6139 (call patterns): Remove extra expanders; tidy.
6140 (sibcall_epilogue): New.
6141 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
6143 2000-09-24 Richard Henderson <rth@cygnus.com>
6145 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
6147 * sibcall.c (skip_pic_restore): New.
6148 (identify_call_return_value): Use it.
6150 2000-09-24 Mark Mitchell <mark@codesourcery.com>
6152 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
6153 functions. Generalize to handle both C and C++.
6154 * Makefile.in (c-tree.info): New target.
6155 (info): Add c-tree.info.
6157 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6159 * expr.c (store_field): If BITSIZE is negative, use size of type.
6160 (expand_expr, case COMPONENT_EXPR): Likewise.
6162 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
6164 * cpplex.c: Update TODO comment.
6165 * cpplib.c (do_error, do_warning): Merge common code of
6166 do_error and do_warning into do_diagnostic. Use it.
6167 (do_diagnostic): New function.
6168 * cpplib.h: Fix comment typo.
6170 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
6172 * c-common.c (check_format_info): Warn for a wide character string
6173 used as a non-wide format argument.
6175 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
6177 * builtins.def (BUILT_IN_LLABS): Add.
6178 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
6179 * c-common.c (c_common_nodes_builtins): Create builtin functions
6180 __builtin_llabs, and plain llabs unless no_nonansi_builtins
6181 outside of C99 mode.
6182 (expand_tree_builtin): Handle BUILT_IN_LLABS.
6184 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
6186 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
6187 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
6188 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
6189 _cpp_free_toklist): No need to worry about extra dummy token
6190 at the start of token lists any more.
6191 (trigraph_ok): Only warn outside comments.
6192 (skip_block_comment): Set and clear lexing_comment.
6193 (skip_line_comment): Take a cpp_reader not cpp_buffer.
6194 Set and clear lexing_comment.
6195 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
6196 (check_long_token): Delete.
6197 (lex_percent, lex_dot): New subroutines of lex_token to
6198 handle lexing of '.' and '%' without lookback.
6199 (lex_token): Use lex_dot and lex_percent.
6200 (lex_line): Don't check for LIST_OFFSET.
6201 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
6202 * cpplib.c (_cpp_parse_assertion): Similarly.
6203 (cpp_push_buffer): Initialize extra_char.
6204 * cpplib.h (LIST_OFFSET): Delete.
6205 (struct cpp_buffer): New member extra_char.
6206 (struct lexer_state): New members lexing_comment and seen_dot.
6208 2000-09-23 Jason Merrill <jason@redhat.com>
6210 * config/rs6000/x-aix41 (CLIB): Define here.
6211 * config/rs6000/t-aix43: Not here.
6212 * config/rs6000/t-aix41: Or here. Remove.
6213 * configure.in: Don't use it.
6215 2000-09-22 Jason Merrill <jason@redhat.com>
6217 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
6218 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
6219 * config.in: Regenerate.
6221 * configure.in: Fix checks for assembler features when using a
6222 one-tree assembler that has not yet been built.
6223 Fix --disable-threads.
6225 2000-09-19 Geoff Keating <geoffk@cygnus.com>
6227 * stmt.c (expand_asm_operands): Allow # in constraints.
6229 2000-09-22 Jason Merrill <jason@redhat.com>
6231 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
6233 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
6234 function-local names.
6236 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
6237 Mark Mitchell <mark@codesourcery.com>
6239 * toplev.c (warn_disabled_optimization): Declare new warning flag.
6240 * flags.h (warn_disabled_optimization): Add it here.
6241 * gcse.c (gcse_main): Add warning when disabled.
6242 * invoke.texi: Document -Wdisabled-optimization.
6244 2000-09-21 Jason Merrill <jason@redhat.com>
6246 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
6248 * dwarf2out.c (tree_add_const_value_attribute): New fn.
6249 (gen_variable_die): Call it for non-definitions.
6251 * dwarf2out.c (die_struct): Add die_mark field.
6252 (mark_dies, unmark_dies): New fns.
6253 (clear_die_sizes): Remove.
6254 (print_die): Check die_symbol rather than die_offset.
6255 (build_abbrev_table, output_pubnames, output_aranges): Check
6256 die_mark rather than die_offset.
6257 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
6260 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
6262 * cppfiles.c (lookup_include_file): Rename to open_file.
6263 Always create a splay tree value, even on syscall failures.
6264 Negative entries indicated by fd == -2.
6265 Re-open files closed in the meantime.
6266 (_cpp_fake_include): Create a negative splay tree entry.
6267 (find_include_file, cpp_read_file): Update for function name
6269 * gcc.gd/cpp/mi4.c: Testcase.
6271 2000-09-21 Nick Clifton <nickc@redhat.com>
6273 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
6274 ARM and THUMB modes.
6276 * config/mcore/mcore.c: Fix compile time warnings.
6277 * config/mcore/mcore-protos.h: Fix compile time warnings.
6279 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6281 * configure.in: Correct test of gcc_cv_glibc.
6282 * configure: Rebuilt.
6283 * config.in: Rebuilt.
6285 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6287 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
6288 (expand_builtin): Handle BUILT_IN_FWRITE.
6290 * builtins.def (BUILT_IN_FWRITE): New entry.
6292 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
6294 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6296 * gcc.c (modify_target): New variable and struct.
6297 (process_command): Handle MODIFY_TARGET_NAME.
6298 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
6299 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
6301 * c-decl.c (finish_decl): Add else's to avoid referencing
6302 TYPE_DOMAIN of an ERROR_MARK.
6304 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
6306 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
6309 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
6311 * config/avr/avr.md (neghi2): Add alternative for input and output
6312 operands in different registers, as in negsi2.
6313 (*negsi2): Remove '*' from the name. Use "movw" if available.
6315 2000-09-19 Jim Wilson <wilson@cygnus.com>
6317 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
6318 HAVE_GAS_HIDDEN macro.
6320 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
6322 * cpplex.c (lex_line): Drop the EOF token for unknown
6323 directives in assembler.
6325 2000-09-19 David Edelsohn <edelsohn@gnu.org>
6327 * configure.in: Allow enable_threads_flag value of "aix". Define
6328 thread_file as "aix" for AIX 4.3 and above.
6329 * configure: Regenerated.
6331 * gthr-aix.h: New file.
6333 * rs6000/t-aix43: Replace soft-float multilib with pthread.
6334 Remove 403 processor multilib match. Fix rios2 processor multilib
6337 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
6338 to return to appropriate csect.
6340 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6342 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
6344 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
6345 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
6348 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
6351 * c-common.c (init_function_format_info): Handle __builtin_printf.
6352 Set `check_function_format_ptr'.
6353 (c_common_nodes_and_builtins): Set `puts_ftype' and
6354 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
6355 __builtin_printf and printf.
6357 * tree.c, tree.h (check_function_format_ptr): Declare.
6359 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
6361 * cppfiles.c (read_include_file): Take no special action for
6364 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
6366 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
6367 rather than that of branch.
6368 (shorten_branches): Don't increment insn_current_address twice.
6370 Undo most of the Wed Jan 27 23:39:53 1999 patch:
6371 * loop.h (struct induction): Delete members derived, ix and last_use.
6372 (struct loop_ivs): Delete members first_increment_giv and
6374 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
6375 recombine_givs): Delete functions.
6376 (find_and_verify_loops): Don't initialize cont_dominator.
6377 (strength_reduce): Lose code to try to find bivs that can be
6378 expressed as givs of another biv, and to convert biv increments
6380 Lose loop_scan_start variable, always use loop->scan_start.
6381 Don't call recombine_givs. Don't handle derived givs.
6382 (record_giv): Don't initialize derived and last_use fields.
6383 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
6385 * unroll.c (derived_regs): Delete static variable.
6386 (unroll_loop): Don't initialize it.
6387 (copy_loop_body): Lose code to handle derived givs.
6388 (find_splittable_givs): Don't check for givs made from biv
6390 Don't set derived_regs.
6392 Fix misapplied earlier patch:
6393 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
6395 (floatsisf2): Generate floatsisf_ie by default.
6396 (floatsisf_i4): Conditional on TARGET_SH4.
6398 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
6399 predicate for the expanders.
6401 2000-09-19 Richard Henderson <rth@cygnus.com>
6403 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
6404 in addition to pentium and pentiumpro symbols.
6405 (CPP_CPU_DEFAULT_SPEC): Likewise.
6407 * c-typeck.c (c_expand_asm_operands): Restore the output tree
6410 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
6411 if the tree has side effects.
6412 (warn_if_unused_value): Do not warn about void constructs.
6414 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
6416 * unroll.c (copy_loop_body): Update LABEL_NUSES before
6417 calling invert_jump.
6419 2000-09-18 Geoff Keating <geoffk@cygnus.com>
6421 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
6424 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6426 * Makefile.in (c-common.o): Depend on diagnostic.h.
6428 * c-common.c: Include diagnostic.h.
6430 (status_warning): New function.
6431 (check_format_info, maybe_read_dollar_number, check_format_types,
6432 finish_dollar_format_checking, check_function_format): Accept a
6433 `status' parameter. All callers changed.
6435 * c-common.h (check_function_format): Accept a `status' parameter.
6437 * c-typeck.c: Update call to `check_function_format'.
6439 2000-09-18 Richard Henderson <rth@cygnus.com>
6441 * c-decl.c (c_expand_body): Call mark_varargs before
6442 expand_function_start.
6444 2000-09-18 Geoff Keating <geoffk@cygnus.com>
6446 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
6447 * config/rs6000/eabi-ci.asm: Likewise.
6449 2000-09-18 Richard Henderson <rth@cygnus.com>
6451 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
6454 2000-09-18 Jim Wilson <wilson@cygnus.com>
6456 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
6457 before passing it to fold_rtx_mult_add.
6459 * unroll.c (final_giv_value): Pass increment through
6460 extend_value_for_giv before passing it to emit_iv_add_mult.
6462 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
6463 paradoxical subreg, then directly substitute the replacement and
6466 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
6468 * cpp.texi: Update documentation, including some clarifications,
6469 the treatment of various newline combinations, and space between
6470 backslash and newline.
6472 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
6474 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
6475 Replace ASM_OUTPUT_LABELREF with assemble_name.
6477 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
6479 * sh.c (addsubcosts): CONST is not cheap.
6480 (find_barrier): For Sh1, take alignment after jumps into account.
6482 2000-09-15 Andrew Haley <aph@redhat.com>
6484 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
6485 remove all SETs of SUBREGs of hard registers.
6486 * function.c (purge_hard_subreg_sets): New function.
6487 (purge_single_hard_subreg_set): New function.
6488 * rtl.h: (purge_hard_subreg_sets): New function.
6490 2000-09-18 Richard Henderson <rth@cygnus.com>
6492 * config/ia64/ia64-protos.h: Update.
6493 * config/ia64/ia64.c (signed_inequality_operator): New.
6494 (ia64_expand_compare): New.
6495 (ia64_register_move_cost): Handle PR_REGS moves.
6496 (ia64_secondary_reload_class): Require a GR when moving to a PR.
6497 (struct reg_write_state): Add written_by_and/or.
6498 (struct reg_flags): Add is_and/or.
6499 (rws_update): Set them.
6500 (rws_access_regno): Test them to allow parallel comparisons.
6501 (rtx_needs_barrier): Recognize parallel comparisons.
6502 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
6503 Call recog_memoized; ignore pred_rel_mutex.
6504 (emit_predicate_relation_info): Don't call find_basic_blocks here.
6505 (ia64_reorg): Do it here instead.
6506 * config/ia64/ia64.h: s/CCmode/BImode/g
6507 (MODES_TIEABLE_P): Don't tie BImode.
6508 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
6509 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
6510 (RTX_COSTS): Make multiply 4 insns.
6511 (MEMORY_MOVE_COST): New.
6512 (PREDICATE_CODES): Update.
6513 * config/ia64/ia64.md: s/CCmode/BImode/g
6514 (movcci, movbi): New.
6515 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
6516 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
6517 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
6518 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
6519 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
6520 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
6521 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
6522 (mulsi, muldi): Use xmpy not xma.
6524 (movcc, movcc_internal): Remove.
6525 (branch expanders): Use ia64_expand_compare.
6526 (setcc expanders): Likewise.
6527 (cmov insns): Use move_operand and ia64_move_ok.
6528 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
6529 scheduler from moving it past a use.
6530 * config/ia64/build.hacks: Remove.
6532 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
6534 * cpphash.h (HASHSTEP): Take character rather than pointer
6536 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
6538 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
6540 * cpplex.c (auto_expand_name_space, trigraph_replace,
6541 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
6542 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
6543 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
6544 KNOWN_DIRECTIVE): Delete.
6546 (handle_newline, check_long_token, skip_escaped_newlines,
6547 unterminated): New functions.
6548 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
6550 (parse_identifier): Was parse_name, new implementation.
6551 (skip_line_comment, skip_block_comment, skip_whitespace,
6552 parse_number, parse_string, trigraph_ok, save_comment,
6553 adjust_column, _cpp_get_line): New implementations.
6555 (lex_token): New function. Lexes a token at a time, looking
6556 forwards. Contains most of the guts of the old lex_line.
6557 (lex_line): New implementation, using lex_token to obtain
6559 (cpp_scan_buffer): Use the token's line, not the list's line.
6561 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
6562 New implementations.
6563 (do_assert): Don't bother setting the answer's list's line.
6564 (cpp_push_buffer): Initialise new pfile and read_ahead members
6565 of struct cpp_buffer.
6567 * cpplib.h (cppchar_t): New typedef.
6568 (struct cpp_buffer): read_ahead, pfile and col_adjust are
6570 (struct lexer_state): New structure that determines the state
6571 and behaviour of the lexer.
6572 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
6573 (struct cpp_reader): New member "state". Rename
6574 multiline_string_line and multiline_string_column. Delete
6575 col_adjust, in_lex_line members.
6576 (CPP_BUF_COLUMN): Update.
6578 2000-09-18 Richard Henderson <rth@cygnus.com>
6580 * combine.c (simplify_comparison): Shift a NOT out of a single
6583 * combine.c (if_then_else_cond): Canonicalize BImode true to
6585 * explow.c (trunc_int_for_mode): Likewise.
6587 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
6588 the NOT for De Morgan's rule.
6589 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
6590 of a comparison to the reverse comparison.
6592 * combine.c (try_combine): Allow split to create a single insn.
6594 * machmode.def: Add BImode. Add a column for bitsize.
6595 * machmode.h (DEF_MACHMODE): Adjust for extra column.
6596 (GET_MODE_BITSIZE): Use it.
6597 * rtl.c (DEF_MACHMODE): Adjust for extra column.
6598 (mode_bitsize): New.
6599 (mode_mask_array): Use bitsize.
6600 * combine.c (combine_simplify_rtx): Require inner and outer
6601 modes to match on nonzero_bits optimizations.
6603 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
6605 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
6606 its entry in spill_reg_store.
6607 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
6608 * sh.c (reg_no_subreg_operand): New function.
6609 * sh-protos.h (reg_no_subreg_operand): Declare it.
6610 * sh.h (PREDICATE_CODES): Add it.
6611 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
6612 input operand that needs to be in fpul.
6613 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
6614 * sh.c (find_barrier): Take into account that machine_dependent_reorg
6615 might add new insns.
6617 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
6619 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
6621 (sh_expand_epilogue): Take the PIC register into account when
6622 computing the frame size.
6624 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
6625 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
6626 LABEL_REFs with a PIC-safe unspec.
6628 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6630 * c-common.c (check_format_info): Properly save the argument
6631 number and parameter for $ operand number formats in case width
6632 and precision arguments are also used. Allow printf width and
6633 precision arguments to have operand numbers even if none was
6634 specified for the main format, since this is OK for %*.*m. Only
6635 object to missing $ operand number if the format used requires an
6638 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6640 * c-common.c (format_char_info): Add 'W' flag to comment.
6641 (print_char_table, scan_char_table): Use it.
6642 (check_format_info): Use the 'W' flag to determine whether a
6643 format argument is written into.
6645 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6647 * c-common.c (check_format_types): Reorganise and clean up,
6648 checking earlier for ERROR_MARKs and making cur_type into its
6649 TYPE_MAIN_VARIANT where convenient.
6651 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
6653 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
6655 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
6657 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
6659 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
6660 * i386.c (struct builtin_description): New.
6661 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
6662 (mmx_reg_operand): Declare MODE arg as unused.
6663 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
6664 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
6665 ix86_expand_binop_builtin, ix86_expand_store_builtin,
6666 ix86_init_builtins, ix86_expand_builtin): New functions.
6667 * i386.h (ix86_builtins): New enumeration.
6668 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
6669 * i386.md (attr length_immediate): 0 for mmx/sse types.
6670 (attr prefix_0f): 1 for mmx/sse types.
6671 (setcc_2): Remove "*" so we get gen_setcc_2.
6672 (emms): Account for changed register numbering. Set "memory" attr
6674 (sfence): Set "memory" attr to unknown.
6676 2000-09-18 Andreas Jaeger <aj@suse.de>
6678 * configure.in: Define _GNU_SOURCE only when using the GNU C
6680 * configure: Regenerated.
6681 * config.in: Regenerated.
6683 2000-09-17 Mark Mitchell <mark@codesourcery.com>
6685 * cppinit.c (cpp_init): Don't use ANSI prototypes.
6686 * flow.c (flow_dump_loop): Likewise.
6687 (flow_loops_dump): Likewise.
6689 * c-typeck.c (c_start_case): Fix typo.
6691 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
6693 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
6694 to int for plain complex which defaults to complex double. Do
6695 warn about defaulting to complex double if pedantic. Warn about
6696 complex integer types if pedantic. Warn about complex types if
6697 pedantic and not in C99 mode.
6698 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
6699 for complex conjugation.
6701 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
6703 * contrib.texi: Update my entry.
6705 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
6707 * config/avr/avr.md (mcu_enhanced): New attribute.
6708 (mcu_mega): Likewise.
6709 (extendhisi2): Use mcu_enhanced.
6710 (zero_extendhisi2): Likewise.
6711 (call_insn): Use mcu_enhanced and mcu_mega.
6712 (call_value_insn): Likewise.
6713 (*sbrx_branch): Use mcu_mega.
6714 (*sbrx_and_branchsi): Likewise.
6715 (*sbrx_and_branchhi): Likewise.
6716 (*tablejump_lib): Likewise.
6718 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6720 * alias.c (true_dependence): Allow non-unchanging read to conflict
6721 with unchanging write.
6723 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
6724 (store_constructor): Pass alias_set to it.
6726 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
6727 TYPE_MAIN_VARIANT of ERROR_MARK.
6728 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
6730 * simplify-rtx.c (simplify_unary_operation): Add cases
6731 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
6733 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
6735 * expr.h (emit_library_call, emit_library_call_value): Delete
6737 * rtl.h (enum libcall_type): New.
6738 (emit_library_call, emit_library_call_value): Change fn_type arg to
6739 be of type enum libcall_type.
6740 * calls.c: Likewise for the function definitions. Several callers
6741 throughout changed to use the new enumeration appropriately.
6742 (emit_library_call_value_1): Likewise. Put back code to make libcall
6743 blocks of equal form, but only use it for the two new higher
6746 2000-09-16 Mark Mitchell <mark@codesourcery.com>
6748 Convert the C front-end to use function-at-a-time mode.
6749 * c-common.h: Include splay-tree.h.
6750 (C_DECLARED_LABEL_FLAG): New macro.
6751 (struct language_function): Add x_scope_stmt_stack and
6752 x_function_name_declared_p.
6753 (RECHAIN_STMTS): Move definition.
6754 (lang_statment_code_p): Likewise.
6755 (lang_expand_stmt): Likewise.
6756 (lang_expand_decl_stmt): New variable.
6757 (lang_expand_function_end): Likewise.
6758 (current_scope_stmt_stack): New function.
6759 (add_decl_stmt): Likewise.
6760 (add_scope_stmt): Likewise.
6761 (mark_stmt_tree): Likewise.
6762 (struct c_lang_decl): New structure.
6763 (DECL_SAVED_TREE): Define.
6764 (c_mark_lang_decl): New function.
6765 (c_expand_start_cond): Change prototype.
6766 (c_finish_then): New function.
6767 (c_finish_else): Likewise.
6768 (current_function_name_declared): Remove.
6769 (set_current_function_name_declared): Likewise.
6770 (mark_c_language_function): Declare.
6771 (case_compare): Likewise.
6772 (c_add_case_label): Likewise.
6773 (c_expand_expr): Likewise.
6774 (c_safe_from_p): Likewise.
6775 * c-common.c (lang_expand_function_end): New variable.
6776 (struct if_elt): Add if_stmt.
6777 (c_expand_start_cond): Add the if-statement to the statement-tree,
6778 rather than generating RTL.
6779 (c_finish_then): New function.
6780 (c_expand_start_else): Don't generate RTL.
6781 (c_finish_else): New function.
6782 (c_expand_expr_stmt): Don't generate RTL.
6783 (statement_code_p): Add SCOPE_STMT.
6784 (case_compare): New function.
6785 (c_add_case_label): Likewise.
6786 (mark_stmt_tree): Likewise.
6787 (c_mark_lang_decl): Likewise.
6788 (mark_c_language_function): Likewise.
6789 (c_expand_expr): Likewise.
6790 (c_safe_from_p): Likewise.
6791 * c-decl.c (c_stmt_tree): New variable
6792 (c_scope_stmt_stack): Likewise.
6793 (c_function_name_declared_p): Likewise.
6794 (lang_expand_expr_stmt): Remove.
6795 (poplevel): Don't call output_inline_function for nested
6797 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
6799 (redeclaration_error_message): Change means of computing whether
6800 or not a function is nested.
6801 (lookup_label): Don't call label_rtx.
6802 (init_decl_processing): Add more GC roots.
6803 (start_decl): Add DECL_STMTs to the statement-tree, rather than
6804 calling rest_of_decl_compilation.
6805 (finish_decl): Don't call expand_decl.
6806 (store_parm_decls): Begin the statement-tree, but don't generate
6808 (finish_function): Tie off the statement-tree. Call c_expand_body
6810 (c_expand_body): New function.
6811 (push_c_function_context): Save more information.
6812 (pop_c_function_contxt): Likewise.
6813 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
6814 (lang_mark_tree): Mark it.
6815 (current_stmt_tree): Adjust.
6816 (current_scope_stmt_stack): New function.
6818 (set_current_name_declared): Likewise.
6819 (c_begin_compound_stmt): Define.
6820 (c_expand_decl_stmt): Likewise.
6821 * c-lang.c: Include rtl.h and expr.h.
6822 (lang_init): Set more language-specific hooks.
6823 * c-lex.c: Include expr.h.
6824 * c-parse.in: Changes throughout to add statements to the
6825 statement-tree, rather than generating RTL after every statement.
6826 * c-semantics.c (lang_expand_decl_stmt): Define.
6827 (add_decl_stmt): New function.
6828 (add_scope_stmt): Likewise.
6829 (finish_stmt_tree): Tweak.
6830 (genrtl_expr_stmt): Likewise.
6831 (genrtl_decl_stmt): Handle local labels, and call
6832 lang_expand_decl_stmt if required.
6833 (genrtl_for_stmt): Fix line-number handling.
6834 (genrtl_case_label): Handle cleanups.
6835 (genrtl_asm_stmt): Don't call combine_strings.
6836 (genrtl_compound_stmt): Simplify.
6837 (expand_stmt): Handle SCOPE_STMTs.
6838 * c-tree.h (struct lang_decl): New structure.
6839 (C_DECLARED_LABEL_FLAG): Remove.
6840 (c_begin_compound_stmt): Declare.
6841 (c_expand_decl_stmt): Likewise.
6842 (c_expand_start_case): Rename to c_start_case.
6843 (c_finish_case): New function.
6844 * c-typeck.c (start_init): Tweak setting of
6845 constructor_incremental.
6846 (c_expand_asm_operands): Tweak error-handling. Add to the
6848 (c_expand_return): Add to the statement-tree.
6849 (c_expand_start_case): Rename to ...
6850 (c_start_case): ... this.
6851 (struct c_switch): New type.
6852 (switch_stack): New variable.
6853 (do_case): Simplify.
6854 (c_finish_case): New function.
6855 * dependence.c: Include expr.h.
6856 (enum dependence_type): Change spelling of enumerals.
6857 (check_node_dependence): Adjust.
6858 * expr.h (lang_safe_from_p): Declare.
6859 (safe_from_p): Likewise.
6860 * expr.c (lang_safe_from_p): New variable.
6861 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
6862 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
6863 * toplev.c (rest_of_decl_compilation): Robustify.
6864 * tree.c (contains_placeholder_p): Likewise.
6865 * Makefile.in: Update dependencies.
6866 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
6867 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
6868 (objc_expand_function_end): New function.
6869 (finish_method_def): Use it.
6870 (init_objc): Initialize more language-specific hooks.
6871 * objc/Make-lang.in: Update dependencies.
6873 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
6875 * configure.in: Define macros that affect features before
6876 testing for features. Don't define _XOPEN_SOURCE.
6877 * configure: Regenerated.
6878 * config.in: Regenerated.
6880 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
6882 * rtlanal.c (rtx_varies_p): Volatile asms vary.
6883 (rtx_unstable_p): Restructure code. Volatile asms
6886 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6888 * function.h (no_debugging_symbols): New field.
6889 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
6890 Initialize no_debugging_symbols.
6891 (output_inline_function): Save and restore write_symbols and set from
6892 no_debugging_symbols.
6893 * toplev.c (rest_of_compilation): Call save_for_inline.
6894 * tree.h: Update comment.
6896 * stor-layout.c (place_field): Don't do anything if field or
6897 its type are ERROR_MARK.
6899 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
6901 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
6902 (read_include_file): Ensure inc->mmaped is initialized.
6904 2000-09-16 Richard Henderson <rth@cygnus.com>
6906 * cppiles.c (purge_cache): Use PTR not caddr_t.
6908 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
6910 * gcc.c: In description for %{<S}, say the option removed is -S.
6911 * invoke.texi (Spec Files): Ditto.
6913 2000-09-16 Andreas Jaeger <aj@suse.de>
6915 * configure.in: Always define _GNU_SOURCE to make interfaces
6916 visible that were hidden by only defining _GNU_SOURCE.
6917 * configure: Regenerated.
6919 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
6921 * cpplex.c (push_macro_context): Set an argument's level after
6922 calling parse_args. We could loop infinitely otherwise.
6924 2000-09-15 Tom Tromey <tromey@cygnus.com>
6926 * configure, config.in: Rebuilt.
6927 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
6929 2000-09-15 Greg McGary <greg@mcgary.org>
6931 * cppmacro.c (check_trad_stringification): Check token
6932 text pointers against limit before dereferencing.
6934 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
6936 * c-common.c (format_wanted_type): New structure.
6937 (check_format_types): New function.
6938 (check_format_info): Pass all checking of types of format
6939 arguments, including width and precision arguments, to this new
6942 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6944 * BUGS: Remove file.
6946 2000-09-15 Jakub Jelinek <jakub@redhat.com>
6948 * config/alpha/alpha.c (override_options): ev6 cache latencies
6949 from Richard Henderson. Don't allow -mmemory-latency=L0.
6951 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
6952 (TARGET_OPTIONS): Add tune=.
6953 (alpha_tune_string): Declare.
6954 * config/alpha/alpha.c (override_options): Add cpu_table.
6955 Use alpha_cpu_string first to set both alpha_cpu and target_flags
6956 and then alpha_tune_string to set alpha_cpu only.
6957 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
6958 * config/alpha/elf.h (ASM_FILE_START): Likewise.
6959 * config/alpha/osf.h (ASM_FILE_START): Likewise.
6960 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
6962 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
6964 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
6966 (ix86_comparison_operator, ix86_cc_mode): Declare
6967 * i386.h (CCGC, CCGCO): New modes.
6968 (SELECT_CC_MODE): Move offline to ....
6969 * i386.c (ix86_cc_mode): .... here; use new modes.
6970 (ix86_comparison_operator): New.
6971 (fcmov_comparison_operator): Ensure proper mode.
6972 (put_condition_mode): More sanity checking.
6973 (ix86_match_ccmode): Handle new modes.
6974 (ix86_expand_fp_compare): GEU requires CCmode.
6975 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
6977 * i386.md (cmp?i_ccz_1): Remove
6978 (cmp?i_ccno_1): Use ix86_match_ccmode.
6979 (cmp?i_minus_1): New.
6980 (cmpsi_1): New expander.
6981 (cmpqi_ext_1): Use match_ccmode
6982 (cmpqi_ext_3): New expander.
6983 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
6984 (cmpqi_ext_4): Use match_ccmode.
6985 (add?i_?): Use match_ccmode.
6987 (test?i_ccz_1): Remove
6989 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
6990 (testqi_ext_0): Use ix86_match_ccmode.
6991 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
6992 (xorqi_cc_ext_1): New expander.
6993 (shift patterns): Use CCGOCmode for all shifts except for sar.
6994 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
6995 (setcc_3, jcc_3, miv?icc_c): Remove.
6997 2000-09-15 Will Cohen <wcohen@redhat.com>
6999 * dwarf2out.c (add_const_value_attribute): Changed array into a
7000 xmalloced object, so it exists after function exit.
7001 (free_AT): Added case for dw_val_class_float to free allocated
7004 2000-09-15 Kazu Hirata <kazu@hxi.com>
7006 * config/i386/i386.md: Fix a comment typo.
7007 * gcc.c: Fix formatting.
7009 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
7011 * optabs.c (emit_libcall_block): If target is a user variable,
7012 copy to a temporary first.
7013 * expr.c (convert_move): When generating a libcall, make a libcall
7015 * calls.c (emit_library_call_value_1): Don't create a libcall
7016 sequence here; our caller will in most cases do it.
7018 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
7020 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
7021 * sh.md (reload_outsf): Generate recognizable patterns for
7023 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
7024 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
7025 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
7026 truncdfsf2_i4): Change not to use explicit references to fpul.
7027 (floatsisf2_ie): Remove USE of fpscr.
7028 (floatsisf2): Change default expansion to match this.
7029 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
7032 2000-09-15 Richard Henderson <rth@cygnus.com>
7034 * expmed.c (store_bit_field): Consider naturally aligned
7035 memory for direct reference.
7037 2000-09-15 Richard Henderson <rth@cygnus.com>
7039 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
7040 AND addresses into alias set 0.
7041 (alpha_expand_unaligned_store): Likewise.
7042 (alpha_expand_unaligned_load_words): Likewise.
7043 (alpha_expand_unaligned_store_words): Likewise.
7045 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
7047 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
7048 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
7050 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
7051 rsize of UNITS_PER_WORD.
7053 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
7055 * cpplex.c (ON_REST_ARG): Correct the test.
7056 (maybe_paste_with_next): Duplicate a token that fail pasting,
7057 and clear its PASTE_LEFT flag, so that nested pasting attempts
7060 2000-09-14 Richard Henderson <rth@cygnus.com>
7062 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
7063 * cse.c (rtx_cost): Likewise.
7064 * optabls.c (expand_binop): Likewise.
7065 (expand_twoval_binop, prepare_cmp_insn): Likewise.
7066 * regclass.c (copy_cost): Likewise.
7067 * reload1.c (reload_cse_move2add): Likewise.
7069 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
7071 * c-parse.in (reswords): Add _Complex.
7073 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7075 * gcc.1: Delete documentation for -undef preprocessor option.
7077 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7079 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
7080 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
7081 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
7082 Remove undefine before config/elfos.h.
7083 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
7085 2000-09-14 Kazu Hirata <kazu@hxi.com>
7087 * invoke.texi (H8/300 Options): Add -ms2600.
7088 * config/h8300.c (h8300_init_once): Output an error when -ms2600
7089 is used without -ms.
7090 * config/h8300.h (TARGET_MAC): New.
7091 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
7092 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
7093 machine other than H8/S2600.
7094 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
7097 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
7099 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
7100 pseudos that refer to the original pseudos, not only to their
7101 equivalent memory locations.
7103 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7105 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
7106 when making new MEM.
7108 * Makefile.in (LN): Remove duplicate definition.
7110 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
7112 From Joern Rennecke:
7113 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
7114 on an insn and function_invariant_p returns nonzero for the source,
7115 add a REG_EQUAL note.
7117 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
7119 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
7120 conflict with frame_pointer_rtx.
7122 2000-09-13 Kazu Hirata <kazu@hxi.com>
7124 * loop.c: Fix formatting.
7127 2000-09-13 Richard Henderson <rth@cygnus.com>
7129 * config/ia64/ia64.md (divsf3): New.
7130 (divsf3_internal_lat, divsf3_internal_thr): New.
7131 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
7132 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
7133 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
7134 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
7135 (nmadddf4_alts, nmadddf4_trunc): New.
7136 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
7137 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
7138 (multf3_truncsf_alts, multf3_truncdf_alts): New.
7139 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
7140 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
7141 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
7142 (nmaddtf4_truncdf_alts): New.
7143 (recip_approx): Don't predicate.
7145 2000-09-13 Richard Henderson <rth@cygnus.com>
7147 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
7149 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7151 * flags.h (flag_dump_rtl_in_asm): Declare.
7152 * toplev.c (flag_dump_rtl_in_asm): Define.
7153 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
7154 if -dP is specified.
7155 * rtl.h (print_rtx_head): Declare.
7156 * print-rtl.c (print_rtx_head): Define.
7157 (print_rtx): Print the string pointed to by print_rtx_head
7158 at beginning of each dump line.
7159 (print_rtl): Likewise.
7160 (print_rtl_single): Likewise.
7161 * final.c (final_scan_insn): Dump the insn in the assembly
7163 * gcc.1: Document -dP option.
7164 * invoke.texi (Debugging Options): Likewise.
7166 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7168 * md.texi (Machine Constraints): Document the 68HC11 constraints.
7169 * install.texi (Configurations): Document the 68HC11&68HC12 port.
7170 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
7172 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
7174 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
7175 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
7176 (*clrstrqi): Likewise.
7177 (xorhi3,xorsi3,absqi2): Likewise.
7178 (one_cmplhi2,one_cmplsi2): Likewise.
7179 (addsi3): Two stupid constraint alternatives removed.
7180 (extendhisi2): Use `movw' for enhanced avr cores.
7181 (zero_extendhisi2): Likewise.
7183 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
7185 * alias.c (find_base_term): Use frame_pointer_rtx
7186 when handling an ADDRESSOF.
7188 * cse.c (canon_hash): Handle USE of BLKmode memory.
7189 (cse_insn): Outgoing arguments for a libcall don't
7190 affect any recorded expressions.
7192 2000-09-12 Tom Tromey <tromey@cygnus.com>
7194 * configure, config.in: Rebuilt.
7195 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
7197 2000-09-12 Jakub Jelinek <jakub@redhat.com>
7199 * c-lex.c (lex_string): Use charwidth to compute bytemask.
7200 * expr.c (expand_expr): Don't optimize constant array references
7201 initialized with wide string constants.
7203 2000-09-13 Michael Hayes <mhayes@cygnus.com>
7205 * loop.c (note_set_pseudo_multiple_uses): Correct.
7207 2000-09-12 Jim Wilson <wilson@cygnus.com>
7209 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
7210 else block, and X has side-effects, then fail.
7212 2000-09-12 Greg McGary <greg@mcgary.org>
7214 * config/mips/mips-protos.h
7215 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
7216 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
7217 (PREDICATE_CODES): Add "trap_cmp_op".
7218 * config/mips/mips.c
7219 (trap_cmp_op, mips_gen_conditional_trap): New functions.
7220 * config/mips/mips.md (trap, conditional_trap): New patterns.
7222 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
7224 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
7227 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7229 * builtins.c (built_in_decls): New array.
7230 (expand_builtin_fputs): New function.
7231 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
7233 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
7235 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
7237 * tree.h (built_in_decls): New array.
7239 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
7241 * convex.md: Use "+" instead of "=" for outputs wrapped in a
7243 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
7245 2000-09-12 Kazu Hirata <kazu@hxi.com>
7247 * haifa-sched.c: Fix formatting.
7249 * genattrtab.c: Fix formatting.
7251 * unroll.c: Fix formatting.
7253 2000-09-12 Bruce Korb <bkorb@gnu.org>
7255 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
7256 remove obsolete code
7257 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
7258 * fixinc/fixincl.tpl: make non-exported arrays static scope
7259 * fixinc/fixincl.x: regenerate
7260 * fixinc/fixlib.h: Use PARAMS, not _P_
7261 * fixinc/fixtests.c: make a type for the test proc & use it
7262 * fixinc/server.h: Use PARAMS, not _P_
7264 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7266 * c-typeck.c (process_init_element): Avoid union init warnings on
7267 floating point zero. Don't crash on unions containing structs.
7269 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
7271 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
7272 general_movsrc_operand, and remove CONST_INT from
7273 general_movdst_operand.
7275 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
7277 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
7278 if a reference to non-fixed hardreg is seen. Otherwise, count hard
7279 regs with a higher cost.
7280 (preferrable): Deal with cases where either cost or regcost is
7282 (cse_insn): Use MAX_COST rather than 10000. Always initialize
7284 (COSTS_N_INSNS): Move definition...
7286 (MAX_COST): New macro.
7287 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
7290 2000-09-11 Mark Mitchell <mark@codesourcery.com>
7292 * c-common.h (genrtl_clear_out_block): Remove.
7293 * c-semantics.c (genrtl_clear_out_block): Remove.
7294 (genrtl_while_stmt): Don't call it.
7295 (genrtl_for_stmt): Likewise.
7297 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
7299 * cppfiles.c: Move all default-#defines to top of file.
7300 (open_include_file): Replace by lookup_include_file.
7301 (read_with_read, read_file): Merged into read_include_file.
7302 (stack_include_file, purge_cache): New functions.
7303 (close_cached_fd): Delete.
7304 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
7305 Cache the in-memory buffer, not the file descriptor.
7307 * cpphash.h (struct include_file): Add buffer, st, refcnt,
7309 (xcnew): New utility macro.
7310 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
7311 * cpplib.h (struct cpp_buffer): Remove mapped field.
7313 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
7315 * cpplex.c (parse_string): Accept backslash space newline as a
7317 (lex_line): Likewise.
7318 (_cpp_get_token): Remove hard limit on macro nesting.
7320 2000-09-12 Philipp Thomas <pthomas@suse.de>
7322 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
7323 * configure: Rebuilt.
7325 2000-09-13 Michael Hayes <mhayes@cygnus.com>
7327 * flow.c (split_block): Fix update of registers live at
7330 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
7332 * i386.md (add?i_3, add?i_5): New.
7333 (add?i_4): Rename from add?i_3; Fix compare pattern.
7334 (sub?i_3, xor?i_3, ior?i_3): New.
7336 * genrecog.c (write_tree): Output code to clear insn_extract cache.
7337 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
7338 instead of extract_insn and extract_constrain_insn_cache instead of
7339 extract_insn and constrain_operands.
7340 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
7342 (extract_insn): Clear which_alternative.
7343 (constrain_operands): Set which_alternative to -1 when failed.
7344 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
7347 2000-09-11 Matthew Hiller <hiller@redhat.com>
7349 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
7350 on operand 0 to '+'.
7351 (movstricthi): Likewise.
7353 2000-09-12 Michael Hayes <mhayes@cygnus.com>
7355 * loop.h (LOOP_IVS): New macro.
7356 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
7357 (struct loop_ivs): New.
7358 (struct loop_info): Add ivs field.
7359 (reg_iv_type, reg_iv_info): Delete prototype.
7360 (reg_biv_class, loop_iv_list): Likewise.
7361 * loop.c (record_biv, find_life_end): Pass loop argument.
7362 (reg_iv_type): Remove global array and use
7363 field in loop_regs structure within loop_ivs structure.
7364 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
7365 (first_increment_giv, last_increment_giv): Use entry in
7367 (record_initial): Pass ivs pointer.
7368 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
7370 2000-09-12 Michael Hayes <mhayes@cygnus.com>
7372 * loop.h (LOOP_REGS): New macro.
7373 (struct loop_regs): New.
7374 (struct loop_info): Add regs field.
7375 * loop.c (set_in_loop): Remove global array and store
7376 in loop_regs structure as part of loop_info structure.
7377 (n_times_set, may_not_optimize): Likewise.
7378 (reg_single_usage, moved_once): Likewise.
7379 (count_one_set): Add regs argument.
7380 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
7381 (set_pseudo_multiple_uses): Pass regs pointer.
7383 2000-09-12 Michael Hayes <mhayes@cygnus.com>
7385 * unroll.c (iteration_info): Subsume into loop_iterations.
7386 * loop.h (loop_info): New field iv.
7388 2000-09-12 Michael Hayes <mhayes@cygnus.com>
7390 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
7391 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
7392 (flow_loops_update): New prototype.
7393 (flow_loops_find): Add flags to prototype.
7394 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
7395 * flow.c (flow_loop_pre_header_scan): New.
7396 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
7397 (flow_loop_free): Free pre-header root and trace and exit dominators.
7398 (flow_loops_find): New argument flags.
7399 (flow_loops_update): New function.
7400 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
7402 2000-09-12 Michael Hayes <mhayes@cygnus.com>
7404 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
7405 * flow.c (split_block, update_bb_for_insn): New functions.
7407 2000-09-11 Richard Henderson <rth@cygnus.com>
7409 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
7411 2000-09-11 Richard Henderson <rth@cygnus.com>
7413 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
7414 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
7415 (ia64_override_options): Prevent optimizing division for both
7416 latency and throughput.
7417 (rtx_needs_barrier): Handle frcpa.
7418 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
7419 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
7420 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
7421 (TARGET_SWITCHES): Add -minline-divide-min-latency and
7422 -minline-divide-max-throughput.
7423 (PREDICATE_CODES): Update.
7424 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
7425 (zero_extendsidi2): Likewise. Fix typo in f case insn.
7426 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
7427 (extendsftf2): Likewise.
7428 (extenddftf2): Likewise.
7429 (fix_trunctfdi2_alts): New.
7430 (fixuns_trunctfdi2_alts): New.
7431 (madd*4): Rename from madd*3.
7432 (divsi3, modsi3, udivsi3, umodsi3): New.
7433 (divsi3_internal): New.
7434 (divdi3, moddi3, udivdi3, umoddi3): New.
7435 (divdi3_internal_lat, divdi3_internal_thr): New.
7436 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
7437 (recip_approx): New.
7439 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
7441 * print-rtl.c (debug_call_placeholder_verbose): New variable.
7442 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
7444 * integrate.c (copy_rtx_and_substitute): Don't share
7445 LEAF_REG_REMAPpable registers with the inlined function. Don't
7446 share the function value with calling sequences.
7448 2000-09-11 Jakub Jelinek <jakub@redhat.com>
7450 * c-decl.c (do_case): Fix a typo.
7452 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
7453 to a if the comparison is floating mode and not -ffast-math.
7454 * simplify-rtx.c (simplify_ternary_operation): Likewise.
7456 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
7458 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
7459 gen_ic_invalidate_line.
7461 2000-09-11 Philip Blundell <pb@futuretv.com>
7463 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
7465 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
7467 * install.texi (LANGUAGES): Update to include new languages.
7470 2000-09-11 DJ Delorie <dj@redhat.com>
7472 * gcc.c (main): Don't warn about unused -B prefixes
7473 (unused_prefix_warnings): remove
7475 2000-09-11 Kazu Hirata <kazu@hxi.com>
7477 * final.c: Fix formatting.
7479 * integrate.c: Fix formatting.
7481 2000-09-11 Geoff Keating <geoffk@cygnus.com>
7483 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
7485 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
7487 * reload.c (regno_clobbered_p): Fix thinko in previous change.
7489 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7491 * gcc.1: Document 68hc11 specific options.
7493 2000-09-10 Geoff Keating <geoffk@cygnus.com>
7495 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
7496 (TARGET_LONG_DOUBLE_128): Define.
7497 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
7498 (LONG_DOUBLE_TYPE_SIZE): Redefine.
7499 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
7500 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
7501 of __LONG_DOUBLE_128__.
7502 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
7504 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
7505 (CPP_SYSV_DEFAULT_SPEC): Define.
7506 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
7507 (INIT_TARGET_OPTABS): Define.
7509 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
7510 (RS6000_UITRUNC): Likewise.
7511 (INIT_TARGET_OPTABS): New macro.
7512 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
7513 (trunc_defined): Delete.
7514 (output_prolog): Don't output .extern definitions for fp->int
7515 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
7516 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
7517 (trunc_defined): Delete.
7518 (RS6000_ITRUNC): Moved to aix.h.
7519 (RS6000_UITRUNC): Likewise.
7520 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
7521 only emit a libcall.
7522 (fixuns_truncdfsi2): Delete.
7523 (trunc_call): Delete.
7524 (trunc_call_rtl): Delete.
7526 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
7528 * varasm.c (make_decl_rtl): Restore leading star on
7529 DECL_ASSEMBLER_NAME set for decls with an asmspec.
7531 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
7533 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
7534 won't give a spurious error for '#pragma pack()'. Simplify
7535 control flow for readability. 'reset' action is not necessary.
7537 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
7539 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
7540 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
7541 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
7542 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
7544 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
7545 profile.c, sdbout.c, tradcif.y, tree.c:
7546 Include defaults.h if not already included.
7547 Don't define the above macros.
7549 * Makefile.in: Update dependencies.
7551 2000-09-10 Mark Mitchell <mark@codesourcery.com>
7553 * c-common.h (add_stmt): Change prototype.
7554 (RECHAIN_STMTS): New macro.
7555 (CASE_LABEL_DECL): Likewise.
7556 (genrtl_case_label): Change prototype.
7557 (c_expand_start_case): Remove prototype.
7558 (build_case_label): Change prototype.
7559 (decl_constant_value): Declare.
7560 * c-common.c (check_case_value): Handle C++'s extensions to C
7562 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
7564 * c-parse.in (stmt): Adjust handling of return statements and case
7566 * c-semantics.c (add_stmt): Return the new statement.
7567 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
7568 returned expression. Directly generate RTL, rather than calling
7570 (genrtl_switch_stmt): Don't call c_expand_start_case.
7571 (build_case_label): Take the LABEL_DECL as input, too.
7572 (genrtl_case_label): Just call add_case_node.
7573 (expand_stmt): Adjust calls to genrtl_return_stmt and
7575 * c-tree.h (c_expand_start_case): Declare.
7576 * c-typeck.c (decl_constant_value): Give it external linkage.
7577 (c_expand_return): Don't call expand_return or expand_null_return;
7578 use genrtl_return_stmt instead.
7579 * stmt.c (struct nesting): Remove num_ranges field.
7580 (add_case_node): Give it external linkage.
7581 (expand_start_case): Don't set num_ranges.
7582 (expand_start_case_dummy): Don't clear it.
7583 (pushcase): Rely on add_case_node to handle `default' labels.
7584 (add_case_node): Handle `default' labels.
7585 * tree.c (tree_int_cst_compare): New function.
7586 * tree.h (tree_int_cst_compare): Declare.
7587 (add_case_node): Likewise.
7589 2000-09-10 Richard Henderson <rth@cygnus.com>
7591 * c-parse.in: Revert last change.
7592 (init_reswords): Do not enter disabled keywords into the ridpointers
7593 table, modulo objc weirdness.
7594 (_yylex): Return the canonical spelling for a keyword.
7596 2000-09-10 Philip Blundell <philb@gnu.org>
7598 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
7599 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
7601 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
7603 * alias.c (find_base_term): Handle ADDRESSOF.
7604 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
7606 2000-09-10 Denis Chertykov <denisc@overta.ru>
7608 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
7609 outputting templates with many lines.
7611 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7613 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
7614 to decide whether 64-bit support must be generated.
7616 2000-09-10 Richard Henderson <rth@cygnus.com>
7618 * c-parse.in (asm patterns): Fix volatile check.
7620 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7622 * cppmacro.c (check_trad_stringification): New function.
7623 (save_expansion): If -Wtraditional, warn about stringification of
7626 2000-09-11 Michael Hayes <mhayes@cygnus.com>
7628 * loop.h (struct loop_mem_info): Move from loop.c
7629 (struct loop_info): Add fields store_mems, mems, mems_idx,
7630 mems_allocated, unknown_address_altered,
7631 unknown_constant_address_altered, num_mem_sets, and
7632 first_loop_store_insn.
7634 * loop.c (loop_store_mems): Replace with field in loop_info struct.
7635 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
7636 (unknown_address_altered, unknown_constant_address_altered): Likewise.
7637 (num_mem_sets): Likewise.
7638 (replace_loop_mems, replace_loop_regs): New.
7639 (struct loop_replace_args): New.
7640 (load_mems): Use replace_loop_mems.
7641 (try_copy_prop): Use replace_loop_regs.
7642 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
7644 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7646 * configure.in: Recognize m6811-elf and m6812-elf.
7647 * configure: Regenerate.
7649 2000-09-09 Geoff Keating <geoffk@cygnus.com>
7651 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
7654 2000-09-10 Michael Hayes <mhayes@cygnus.com>
7656 * loop.c (struct movables): New.
7657 (num_movables): Move into struct movables.
7658 (the_movables): Change type to struct movables.
7659 (ignore_some_movables): Change struct movable arg to struct movables.
7660 (force_movables, combine_movables, regs_match_p): Likewise.
7661 (rtx_equal_for_loop_p, move_movables): Likewise.
7662 (scan_loop): Change movables to be of type struct movables.
7663 Replace last_movable with field in movables structure.
7665 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
7667 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
7668 (init_pragma): Avoid warning if pfile happens to be unused.
7669 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
7670 define init_pragma to nothing. Always prototype
7671 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
7673 * c-lex.c (process_directive): Always call dispatch_pragma.
7674 Initialize entering_c_header to 0.
7676 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7678 * config/m68hc11/m68hc11.md: New file, machine description for
7680 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
7681 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
7682 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
7683 * config/m68hc11/m68hc11-protos.h: New file.
7684 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
7685 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
7686 * config/m68hc11/xm-m68hc11.h: New file, target defs.
7687 * config/m68hc11/larith.asm: New file, libgcc routines.
7689 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7691 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
7692 (FPBIT_FUNCS): Add _usi_to_sf.
7693 * config/fp-bit.c (usi_to_float): New function.
7694 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
7695 (usi_to_float): Add appropriate #define.
7697 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
7699 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
7701 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
7702 * i386.md (attr "type"): Add sse and mmx types.
7703 (attr "memory"): Handle them without a crash.
7704 (movsi_1, movdi_2): Allow MMX regs.
7705 (movdi splits): Don't split moves involving MMX regs.
7706 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
7707 (movv4sf_internal, movv4si_internal, movv8qi_internal,
7708 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
7709 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
7710 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
7711 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
7712 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
7713 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
7714 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
7715 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
7716 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
7717 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
7718 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
7719 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
7720 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
7721 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
7722 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
7723 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
7724 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
7725 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
7726 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
7727 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
7728 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
7729 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
7730 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
7731 mmx_clrdi): New patterns.
7733 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
7735 * arm.c: Don't include tm.h directly.
7737 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
7739 * recog.c (validate_replace_rtx_1): Fix confusion about equality
7740 testing; simplify subregs of constants and nested subregs.
7742 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7744 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
7746 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
7748 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
7750 * rtl.texi (description of USE): Add note about possible pitfalls
7752 From Richard Henderson:
7753 * reload1.c (choose_reload_regs): Compute need_mode properly.
7755 2000-09-07 Richard Henderson <rth@cygnus.com>
7757 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
7758 (__modsi3, __umodsi3): Likewise.
7759 (__udivsi3): Likewise. Normalize the TFmode values.
7761 2000-09-07 Geoff Keating <geoffk@cygnus.com>
7763 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
7765 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
7768 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
7770 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
7771 (cmpeqdi_t): Add output pattern.
7772 (cmpeqdi_t+1): Don't split when not optimizing.
7773 Restore proper splitting operation.
7775 2000-09-07 Richard Henderson <rth@cygnus.com>
7777 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
7778 do not call dispatch_pragma.
7780 2000-09-07 Jim Wilson <wilson@cygnus.com>
7782 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
7783 to CLASS_CANNOT_CHANGE_MODE.
7784 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
7785 mode classes are different.
7787 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
7789 * cpplib.h (struct cpp_options): Add user_label_prefix member,
7790 left out of commit which removed cppulp.c.
7792 2000-09-07 Richard Henderson <rth@cygnus.com>
7794 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
7795 after switch for CASE_DROPS_THROUGH.
7797 2000-09-07 Richard Henderson <rth@cygnus.com>
7799 * loop.c (strength_reduce): Call check_ext_dependant_givs.
7800 Properly extend the biv initial value for the giv.
7801 (record_biv): Zero ext_dependant.
7802 (record_giv): New argument ext_val. Update all callers.
7803 (general_induction_var): Likewise.
7804 (consec_sets_giv): Likewise.
7805 (simplify_giv_expr): Likewise. Fill in ext_val if we find
7806 a sign-extend, zero-extend, or truncate.
7807 (combine_givs_p): Make sure modes are compatible.
7808 (check_ext_dependant_givs): New.
7809 (extend_value_for_giv): New.
7810 * loop.h (struct induction): Add ext_dependant.
7811 * unroll.c (iteration_info): Extend the biv initial value for the giv.
7812 (find_splittable_givs): Likewise.
7813 (final_giv_value): Likewise.
7815 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
7817 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
7818 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
7819 definitions from cpplib.h.
7820 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
7822 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
7823 documentation for REGISTER_TARGET_PRAGMAS.
7825 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
7826 default-pragma callback to implement -Wunknown-pragmas if
7828 * c-parse.in: Move all includes to top of file.
7829 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
7831 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
7833 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
7835 * arm.h, arm-protos.h, arm.c,
7836 c4x.h, c4x-protos.h, c4x.c,
7837 h8300.h, h8300-protos.h, h8300.c,
7838 i370.h, i370-protos.h, i370.c,
7839 i960.h, i960-protos.h, i960.c,
7840 sh.h, sh-protos.h, sh.c,
7841 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
7842 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
7844 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
7845 multiple include guard.
7846 * i370.md (untyped_call): Use GEN_CALL.
7847 (umodsi3): Remove unused variable.
7848 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
7849 * v850.c (output_move_single, output_move_double): Constify
7851 (print_operand): Constify a char *.
7852 * v850.h (struct small_memory_info): Constify name member.
7854 2000-09-07 Kazu Hirata <kazu@hxi.com>
7856 * config/h8300.h: Fix comment typos.
7857 * config/h8300/h8300.md: Likewise.
7858 * config/h8300/lib1funcs.asm: Likewise.
7860 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
7862 * Makefile.in: Remove references to cppulp.{c,o}.
7863 * cppinit.c (initialize_builtins, cpp_start_read,
7864 cpp_handle_option): Update to use cpp_options structure.
7867 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
7869 * c-common.c (time_char_table): Allow %#b and %#h.
7871 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7873 * reorg.c (find_end_label): If the basic block reorder pass moves the
7874 return insn to some other place try to locate it again and put our
7875 end_of_function_label there.
7876 * reorg.c (relax_delay_slots): Check if find_end_label created a
7877 new label that invalidates the current optimazation.
7879 2000-09-07 Catherine Moore <clm@redhat.com>
7881 * unroll.c (unroll_loop): Check for unconditional jumps
7882 to loop continuation. Delete if n_iterations is 1.
7883 (ujump_to_loop_cont): New routine.
7885 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
7887 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
7889 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
7890 to handle multiword modes correctly. All callers and the declaration
7893 2000-09-06 Mark Mitchell <mark@codesourcery.com>
7895 * c-common.h (prep_stmt): Declare.
7896 (lang_expand_stmt): Likewise.
7897 * c-decl.c (lang_expand_stmt): Remove.
7898 * c-semantics.c (lang_expand_stmt): Define.
7899 (prep_stmt): New function.
7900 (expand_stmt): Handle common statement types here.
7902 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
7904 * configure.in (sh-*-linux*): Added.
7905 * configure: Rebuilt.
7906 * config/sh/t-linux: New file.
7907 * config/sh/sh.h (USERMODE_BIT): Define.
7908 (TARGET_USERMODE): Likewise.
7909 (TARGET_SWITCHES): New switches for the bits above.
7910 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
7911 * config/sh/linux.h: New file.
7912 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
7913 underscore on linux.
7914 (L_sdivsi3, L_udivsi3): Define for linux.
7915 (L_ic_invalidate): Define.
7916 * invoke.texi (SH Options): Document -musermode.
7918 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
7920 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
7921 CSE unless generating PIC.
7923 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
7926 2000-09-06 H.J. Lu (hjl@gnu.org)
7928 * Makefile.in (clean_s1): Depend on stage_b.
7929 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
7930 stage2. They are used for "make compare".
7932 2000-09-06 Mark Mitchell <mark@codesourcery.com>
7934 Move statement-tree facilities from C++ to C front-end.
7935 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
7936 (void_zero_node): New macro.
7937 (struct stmt_tree_s): New type.
7938 (stmt_tree): New typedef.
7939 (struct language_function): New type.
7940 (last_tree): New macro.
7941 (last_expr_type): Likewise.
7942 (walk_tree_fn): New typedef.
7943 (current_stmt_tree): New function.
7944 (begin_stmt_tree): Likewise.
7945 (add_stmt): Likewise.
7946 (finish_stmt_tree): Likewise.
7947 (statement_code_p): Likewise.
7948 (lang_statement_code_p): New variable.
7949 (walk_stmt_tree): New function.
7950 (STMT_IS_FULL_EXPR_P): New macro.
7951 * c-common.c (lang_statement_code_p): New variable.
7952 (c_common_nodes_and_builtins): Initialize void_zero_node.
7953 (statement_code_p): New function.
7954 (walk_stmt_tree): Likewise.
7955 * c-decl.c (language_function): Rename to ...
7956 (c_language_function): ... this. Include language_function.
7957 (push_c_function_context): Adjust accordingly.
7958 (pop_c_function_context): Likewise.
7959 (mark_c_function_context): Likewise.
7960 (current_stmt_tree): Define.
7961 * c-semantics.c (begin_stmt_tree): New function.
7962 (add_stmt): Likewise.
7963 (prune_unused_decls): Likewise.
7964 (finish_stmt_tree): Likewise.
7966 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7968 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
7970 2000-09-06 Kazu Hirata <kazu@hxi.com>
7972 * calls.c: Fix formatting.
7974 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
7976 * config/i386/i386.h (ADDRESS_COST): Fix typo.
7978 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
7980 Integrated preprocessor.
7982 * Makefile.in: Remove all references to c-parse.gperf,
7983 c-gperf.h, and c-parse.h. Remove -d from yacc command line
7984 generating c-parse.c. Update dependencies.
7985 * c-parse.gperf, c-gperf.h: Delete.
7987 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
7988 yy_lim, or yy_get_token. Don't define get_directive_line if
7990 * c-common.h: Add multiple include guard. Define RID values
7991 for every keyword in C, C++, and Objective C. Put all the
7993 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
7994 * c-decl.c (c_decode_option): Handle -lang-objc here.
7995 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
7996 (grokdeclarator): Adjust for new RID scheme.
7997 (extract_interface_info): New stub.
7998 * c-lang.c: Don't declare yy_cur or parse_options.
7999 (lang_init_options): Call cpp_init. Don't call
8001 (lang_init): Don't call check_newline if USE_CPPLIB.
8003 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
8004 Elide lots of unnecessary code if USE_CPPLIB. Delete code
8005 rendered unnecessary by new architecture. Move routines not
8006 shared with C++ to c-parse.in. Maintain a local idea of the
8007 line number. Handle C++ as well as C.
8008 [USE_CPPLIB]: Declare and register callbacks for #ident and
8009 for entering/leaving files.
8010 (init_c_lex, c_lex): Are now the entry points to this file.
8011 (check_newline): Break out directive handling to
8013 (read_ucs, is_extended_char, utf8_extend_token): Moved here
8015 (readescape, parse_float): Overhaul.
8016 (lex_number, lex_string, lex_charconst): Break out of c_lex
8018 (get_fileinfo, update_header_times, dump_one_header,
8019 dump_time_statistics): New and/or moved here from C++.
8020 Support per-file data needed by C++ and per-header timing
8021 statistics (C++ only, at the moment).
8022 * c-lex.h: Update prototypes. Add multiple include guard.
8023 * c-tree.h (struct lang_identifier): Add rid_code field.
8024 (C_IS_RESERVED_WORD, C_RID_CODE): New.
8026 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
8027 reinit_parse_for_function and/or position_after_white_space.
8028 (save_filename, save_lineno): Look ahead before saving.
8029 (label -> identifier ':'): Save file and line before shifting ':'.
8030 (reservedwords): No need to call get_identifier.
8031 (init_parse, finish_parse, yyerror, yylex, yyprint,
8032 make_pointer_declarator): Are now here for C/ObjC.
8033 (rid_to_yy): Conversion table from RID constants to Yacc codes.
8035 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
8036 #pragma registry. Provide dummy implementation of that
8037 interface if !USE_CPPLIB.
8038 * c-pragma.h: Update to match.
8040 * flags.h: Add multiple include guard.
8041 (flag_detailed_statistics): Moved here from C++.
8042 * toplev.c: Define flag_detailed_statistics.
8044 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
8046 * timevar.def (TV_CPP, TV_LEX): New.
8047 * timevar.h: Add multiple include guard.
8049 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
8051 * objc/objc-act.c: Don't mention yy_cur or parse_options.
8052 Initialize cpplib properly. Force lineno to 0 after first
8053 call to check_newline. Don't handle -lang-objc here.
8054 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
8056 2000-09-06 David Edelsohn <edelsohn@gnu.org>
8058 * rs6000.md: Correct function unit definitions for cr_logical and
8060 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
8061 and use portable method for >=0 and floating point >=. Remove
8062 associated matchers.
8064 2000-09-06 Mark Mitchell <mark@codesourcery.com>
8066 * extend.texi: Mark named return value extension as deprecated.
8068 2000-09-06 Geoff Keating <geoffk@cygnus.com>
8070 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
8073 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
8075 * toplev.c (display_help): Fix thinko in documentation.
8077 * diagnostic.h (output_buffer::indent_skip): New fields.
8078 (output_indentation): New macro.
8080 * diagnostic.c (output_indent): New function.
8081 (output_set_prefix, clear_diagnostic_info): Use.
8082 (output_emit_prefix): Predict future indentation.
8084 2000-09-06 DJ Delorie <dj@redhat.com>
8086 * Makefile.in (stage_*): add more dependencies to ensure parallel
8087 builds build correctly
8089 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
8091 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
8092 not bootstrap-lean_f.
8094 2000-09-06 Andreas Schwab <schwab@suse.de>
8096 * mklibgcc.in: Emit rule for libgcc-stage-start.
8097 * Makefile.in (stage1-start, stage2-start, stage3-start,
8098 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
8100 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
8102 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
8103 (update_equiv_regs): Likewise, except for the mn10200 kludge.
8104 (combine_regs): Likewise.
8106 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
8107 * cse.c: Include "basic-block.h".
8108 (struct table_elt): New field REGCOST.
8109 (CHEAP_REG): Delete macro.
8110 (COST): Return 0 for REGs.
8111 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
8112 (notreg_cost): Return 0 for appropriate SUBREGs.
8113 (COSTS_N_INSNS): Return N * 2.
8114 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
8116 (CHEAPER): Use new function preferrable.
8117 (insert): Initialize REGCOST member.
8118 (find_best_addr): Use approx_reg_cost for estimation of register
8120 (cse_insn): Likewise.
8121 * loop.c (iv_add_mult_cost): New function.
8122 (add_cost, shift_cost, mult_cost): Delete variables.
8123 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
8124 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
8125 Make code that detects autoinc opportunities slightly less optimistic.
8126 (simplify_giv_expr): If expression contains other reg that is also a
8127 giv, only increment benefit if this is the only use of that reg.
8128 (consec_sets_giv): Take that change into account.
8129 (combine_givs): Slightly more verbose output.
8131 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
8132 not the cost of an equivalent shift.
8133 * sh-protos.h (addsubcosts): Declare.
8134 * sh.c (addsubcosts): New function.
8135 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
8136 (RTX_COSTS): Tweak. Use addsubcosts.
8137 (ADDRESS_COST): Return higher cost for reg+reg addressing.
8139 2000-09-06 Geoff Keating <geoffk@cygnus.com>
8141 * config/rs6000/rs6000.c (validate_condition_mode): New function.
8142 (branch_comparison_operator): Call validate_condition_mode to
8143 abort rather than returning 0.
8144 (branch_positive_comparison_operator): New function.
8145 (scc_comparison_operator): Call validate_condition_mode to abort
8146 rather than returning 0.
8147 (ccr_bit): Call validate_condition_mode. Update for
8149 (print_operand): Delete %C modifier. Update %E case
8150 to use EQ bit not SO bit.
8151 (rs6000_reverse_condition): New function.
8152 (rs6000_generate_compare): New function.
8153 (rs6000_emit_sCOND): New function.
8154 (rs6000_emit_cbranch): New function.
8155 (output_cbranch): The length of a long branch insn is
8156 now only 8 bytes. Add validate_condition_mode. Use
8157 rs6000_reverse_condition. Remove cror generation.
8159 * config/rs6000/rs6000.h: Update comments.
8160 (PREDICATE_CODES): Add new predicate. Update codes used
8161 by branch_comparison_operator and scc_comparison_operator.
8162 * config/rs6000/rs6000-protos.h: Add prototypes for
8163 new external functions.
8164 * config/rs6000/rs6000.md: Add new scheduling parameters
8165 for cr_logical instructions. Change length of branch
8167 (bCOND patterns): Call rs6000_emit_cbranch.
8168 (sCOND patterns): Call rs6000_emit_sCOND.
8169 (branch patterns): Change lengths to 4.
8170 (cr logical patterns): New.
8172 2000-09-06 Richard Henderson <rth@cygnus.com>
8174 * config/i386/i386.md (call_pop): Fix test for setting
8175 current_function_uses_pic_offset_table.
8176 (call, call_value_pop, call_value): Likewise.
8178 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
8180 * timevar.c (timevar_add): Delete.
8181 (timevar_get): Also count time since the selected timer was
8182 last updated. Do not examine the timevar stack if the
8183 selected timer is standalone.
8185 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8187 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
8189 2000-09-05 Jason Merrill <jason@redhat.com>
8191 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
8192 for 'extern' arrays.
8194 2000-09-05 Richard Henderson <rth@cygnus.com>
8196 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
8197 Eliminate final copy from non-trapping case.
8198 (__divdf3, __divsf3): Likewise.
8200 2000-09-05 Richard Henderson <rth@cygnus.com>
8202 * config/ia64/ia64.md (mulhi3): Fix typo last change.
8203 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
8205 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
8207 * Makefile.in: Restructure bootstrap stages to allow clean
8208 restart after failure.
8210 2000-09-05 Richard Henderson <rth@cygnus.com>
8212 * config/ia64.md (movsi and movdi patterns): Allow moves from
8213 8-bit constants to AR registers.
8215 2000-09-05 Richard Henderson <rth@cygnus.com>
8217 * config/ia64/ia64.md (mulhi3): New.
8219 2000-09-05 Richard Henderson <rth@cygnus.com>
8221 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
8222 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
8223 Optimization Guide, minimum latency alternative.
8224 (__moddi3, __udivdi3, __umoddi3): Likewise.
8225 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
8227 2000-09-05 Bruce Korb <bkorb@gnu.org>
8229 * fixinc/fixincl.c (load_file): always read header files
8230 with sizes that are a multiple of the page size.
8231 & use libiberty's getpagesize for determining that.
8233 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
8235 * gcse.c (hash_string_1): Add prototype.
8236 * cse.c (canon_hash_string): Likewise.
8238 2000-09-04 Craig Newell <CraigN@ieee.org>
8240 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
8242 2000-09-04 Andreas Schwab <schwab@suse.de>
8244 * Makefile.in (STAGESTUFF): Remove libgcc.
8245 (stage1-start, stage2-start, stage3-start): Copy the contents of
8246 the libgcc directory explicitly.
8247 (mostlyclean): Clean libgcc.
8249 2000-09-04 Andrew Haley <aph@redhat.com>
8251 * dwarf2out.c: (stack_adjust_offset): New prototype.
8253 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
8255 * combine.c (make_extraction): Fix rtx_cost comparison to
8258 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
8260 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
8261 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
8262 Add '*' to insn pattern name.
8264 2000-09-04 Jakub Jelinek <jakub@redhat.com>
8266 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
8267 use posn - 1 to index into tokens array.
8268 (maybe_paste_with_next): Adjust caller.
8270 2000-09-03 Geoff Keating <geoffk@cygnus.com>
8272 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
8274 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
8275 (REGNO_REG_CLASS): Use symbolic register
8278 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
8280 * arm.c (final_prescan_insn): If the form of a jump insn isn't
8281 recognized, don't try to conditionally execute it.
8283 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
8285 * config/avr/avr.md ("*tablejump_lib"): New pattern.
8286 (call_value_insn): Right length claculation.
8287 (call_insn): Likewise.
8289 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
8291 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
8292 gas_output_limited_string, gas_output_ascii, output_movqi,
8293 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
8294 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
8295 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
8296 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
8297 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
8298 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
8299 Add "const" as needed to remove warnings.
8301 * config/avr/avr.c (avr_override_options, avr_init_once,
8302 function_prologue, function_epilogue, frame_pointer_required_p,
8303 class_likely_spilled_p, order_regs_for_local_alloc,
8304 avr_address_cost, avr_ret_register): Use K&R style arguments.
8305 (initial_elimination_offset, gas_output_limited_string):
8306 Remove ATTRIBUTE_UNUSED from the used arguments.
8307 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
8308 Use local variables src, dest, base to access operands[].
8309 Rename reg_dest to reg_src if that's what it is.
8310 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
8311 constants to LD_REGS if reg_was_0.
8312 (output_reload_insisf): Change arg 3 to insn length and set it.
8313 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
8314 access to 16-bit I/O register pairs.
8315 (avr_address_cost): Lower cost for the above case.
8316 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
8317 may be clobbered, also for LD_REGS.
8318 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
8321 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
8323 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
8324 macro to test_hard_reg_class function.
8325 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
8326 for loading immediate constants to LD_REGS.
8327 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
8330 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
8332 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
8333 * config/avr/libgcc.S: Lost part of the previous patch.
8335 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8337 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
8338 object before calling pthread_mutex_init.
8340 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
8342 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
8343 config/sh/crtn.asm: New files.
8344 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
8345 (crt1.o, crti.o, crtn.o): New targets.
8346 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
8348 * configure: Rebuilt.
8349 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8350 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
8351 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
8352 Undefine for config/elfos.h to redefine.
8353 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
8355 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
8357 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
8358 legitimize_pic_address, output_pic_addr_const): Declare.
8359 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
8360 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
8361 (TARGET_SWITCHES): New switch -mprefergot.
8362 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
8363 (PIC_OFFSET_TABLE_REGNUM): Define.
8364 (GOT_SYMBOL_TABLE): Likewise.
8365 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
8366 (ENCODE_SECTION_INFO): Define.
8367 (FINALIZE_PIC): New macros.
8368 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
8369 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
8370 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
8371 (prepare_move_operands): Call emit_pic_move or
8372 emit_pic_const_move if appropriate.
8373 (output_far_jump): For PIC, use braf and output long offset.
8374 (machine_dependent_reorg):
8375 (sh_expand_prologue): Save and initialize the PIC register.
8376 (sh_expand_epilogue): Restore it.
8377 (initial_elimination_offset): Account for it.
8378 (nonpic_symbol_mentioned_p): New function.
8379 (legitimize_pic_address): Likewise.
8380 (output_pic_addr_const): Likewise.
8381 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
8382 (call, call_value): Use them.
8383 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
8384 symPLT_label2reg): New expands.
8385 * invoke.texi (SH Options): Document -mprefergot.
8387 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
8389 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
8390 * gcse.c (hash_string_1): New function.
8391 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
8392 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
8393 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
8394 (canon_hash_string): New function.
8395 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
8396 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
8397 (fold_rtx): Use ASM_OPERANDS accessor macros.
8398 * emit-rtl.c (copy_insn_1): Likewise.
8399 * integrate.c (copy_rtx_and_substitute): Likewise.
8400 * stmt.c (expand_asm_operands): Likewise. Give an
8401 ASM_OPERANDS rtx the mode of the output reg being set from it.
8403 2000-09-01 Fred Fish <fnf@be.com>
8405 * fix-header.c (write_rbrac): Add putc and getc to list of
8406 functions to protect against prior definition as a macro.
8408 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
8410 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
8411 (c_size_type_node): Define.
8412 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
8413 * c-common.c (enum format_lengths, enum format_std_version,
8414 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
8415 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
8416 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
8417 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
8418 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
8419 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
8420 format_types): Define.
8421 (format_char_info, print_char_table, scan_char_table,
8422 time_char_table): Rearrange for new organization of information
8423 about format length modifiers and standard versions.
8424 (T_ST): Redefine to use c_size_type_node.
8425 (check_format_info): Obtain information about length modifiers and
8426 standard versions from tables. Adjust warning message wordings.
8427 Use the name from the user's program for `ll' and `hh' length
8428 modifiers in warning messages. Use more informative names for
8429 wanted types where available (for wchar_t, wint_t, size_t, signed
8430 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
8432 2000-09-01 Jim Wilson <wilson@cygnus.com>
8434 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
8435 * combine.c (distribute_notes): Handle REG_NORETURN.
8436 * rtl.c (reg_note_name): Add REG_NORETURN.
8437 * rtl.h (enum reg_note): Likewise.
8439 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
8441 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
8442 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
8443 (emit_predicate_relation_info): Handle conditional calls with
8445 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
8446 instead of ia64_file_start.
8447 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
8448 * config/ia64/ia64.md (safe_across_calls_all,
8449 save_across_calls_normal): New patterns.
8451 * loop.c (check_final_value): Check for biv use before checking for
8452 giv use. Check for both biv and giv uses. Always set last_giv_use
8453 if there is a giv use.
8455 2000-09-01 Richard Henderson <rth@cygnus.com>
8457 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
8458 (madddi3): Likewise.
8461 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8463 * expr.c (clear_storage): Don't use emit_move_insn unless
8464 either BLKmode or proper size.
8465 (store_constructor): Don't call clear_storage if REG of wrong size.
8467 * flow.c (init_propagate_block_info): Don't mark frame dead at end
8468 of function if returns wiht stack pointer depressed.
8470 2000-09-01 Andrew Haley <aph@redhat.com>
8472 * dwarf2out.c (stack_adjust_offset): New function.
8473 (dwarf2out_stack_adjust): Break out stack adjust logic into
8474 new stack_adjust_offset function. Look inside parallels and
8475 sequences for stack adjustments.
8477 2000-08-31 Jeff Law <law@cygnus.com>
8479 * arm.md: Use no_new_pseudos to determine when it is safe
8480 to create new pseudo registers.
8482 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
8483 when we can safely allocate new registers.
8485 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
8487 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
8488 so that CONCATs are not generated for ASMs.
8489 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
8490 not generating_concat_p.
8491 * function.c (pop_function_context_from): Reset
8492 generating_concat_p.
8493 (prepare_function_start): Likewise.
8494 * rtl.c (generating_concat_p): Define.
8495 * rtl.h (generating_concat_p): Declare.
8496 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
8498 2000-08-22 Philipp Thomas <pthomas@suse.de>
8499 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
8501 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
8504 2000-08-30 Greg McGary <greg@mcgary.org>
8506 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
8507 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
8508 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
8510 2000-08-30 Greg McGary <greg@mcgary.org>
8512 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
8513 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
8514 (TREE_INT_CST): New macro.
8515 * varasm.c (const_hash, compare_constant_1, record_constant_1):
8516 Use new macro TREE_INT_CST.
8518 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
8520 * contrib.texi: Add self.
8522 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
8524 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
8525 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
8528 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8530 * fixinc/gnu-regex.c: Don't define `const'.
8532 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8534 * expr.c (store_constructor): Allow variable bounds of array type.
8535 (expand_expr): Don't blow up if type is ERROR_MARK.
8536 * varasm.c (output_constructor): Don't access lower bound of array
8537 type unless need it if index is supplied (so it can be a variable
8538 if no index is supplied).
8539 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
8540 Other minor cleanups.
8542 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8544 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
8545 for compilations in stage 1 and subsequent stages, respectively.
8546 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
8547 * configure: Rebuilt.
8548 * x-vax, x-vax-gcc: Deleted.
8550 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
8552 * c-common.c (declare_function_name): Use func_id_node,
8553 function_id_node, and pretty_function_id_node. Do not make
8554 __func__ visible at file scope.
8555 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
8556 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
8557 (function_id_node, pretty_function_id_node, func_id_node): New
8559 * c-decl.c (init_decl_processing): Initialize function_id_node,
8560 pretty_function_id_node, and func_id_node.
8561 (c_make_fname_decl): Correct comment.
8563 * tree.h (struct tree_identifier): Constify pointer member.
8565 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
8566 * c-pragma.h (struct weak_syms): Constify name and value members.
8567 (add_weak): Constify arguments.
8569 * calls.c (special_function_p): Constify a char *.
8570 (expand_call): Remove variable which is initialized and then
8572 * dependence.c (struct def_use, struct induction, struct subscript):
8573 Constify 'variable' member.
8574 (get_low_bound, have_induction_variable): Constify char * argument.
8575 (find_induction_variable): Add braces to avoid dangling else.
8576 (classify_dependence): Constify char * arrays.
8577 * profile.c (output_func_start_profiler): Constify a char *.
8578 * stor-layout.c (finalize_record_size): Constify a char *.
8579 * tree.c (is_attribute_p): Constify a char *.
8580 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
8582 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
8583 for comprehensibility. Do not call get_identifier if we did
8584 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
8585 create temporary string constants, not ggc_alloc_string. No
8586 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
8587 char * to hold IDENTIFIER_POINTERs.
8589 2000-08-29 Richard Henderson <rth@cygnus.com>
8591 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
8594 2000-08-29 Richard Henderson <rth@cygnus.com>
8596 * reload.c (push_secondary_reload): Allow class == reload_class
8597 if we're using a reload_in/out pattern.
8599 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
8600 the half that does not conflict with the reload register.
8601 (reload_outti): Likewise.
8603 2000-08-29 Kazu Hirata <kazu@hxi.com>
8605 * reload.c: Fix formatting.
8607 * stmt.c: Fix formatting.
8609 * gcc.c: Fix formatting.
8611 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
8613 * flags.h (time_report, mem_report): New global flags.
8614 * toplev.c: Define time_report and mem_report.
8615 (f_options): Add -ftime-report and -fmem-report.
8616 (compile_file): Turn on time_report if quiet_flag is off.
8617 Call ggc_print_statistics at very end if mem_report is on.
8618 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
8620 * ggc-common.c (ggc_print_statistics): Rename to
8621 ggc_print_common_statistics; all callers changed. Scale
8622 quantities above 10K to kilobytes and above 10M to megabytes.
8623 * ggc-page.c (ggc_page_print_statistics): Rename to
8624 ggc_print_statistics. Report memory consumed by internal data
8625 structures for each allocation bucket. Scale quantities above
8626 10K to kilobytes and above 10M to megabytes.
8627 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
8628 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
8629 Define tally_leaves always.
8630 (ggc_print_statistics): New function.
8631 * ggc.h: Adjust for renamed functions.
8633 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
8635 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
8636 output_movsisf instead of which_alternative.
8638 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
8640 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
8642 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
8643 (avr_progmem_p): New prototype.
8644 (output_movsisf): Prototype declaration changed.
8645 (output_movqi): New prototype.
8646 (output_movhi): New prototype.
8647 (call_insn_operand): Likewise.
8648 (final_prescan_insn): Likewise.
8649 (avr_simplify_comparision_p): Likewise.
8650 (avr_normalize_condition): Likewise.
8651 (compare_eq_p): Likewise.
8652 (out_shift_with_cnt): Likewise.
8653 (const_int_pow2_p): Likewise.
8654 (output_reload_inhi): Prototype declaration changed.
8656 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
8657 (ldi_reg_rtx): New. rtx for r31.
8658 (avr_init_stack): Initialize as "__stack".
8659 (function_prologue): Use it.
8660 Replace all TARGET_ENHANCED with AVR_ENHANCED.
8661 (avr_mcu_name): Initialize as "avr2".
8662 (avr_enhanced_p, avr_mega_p): New variables.
8663 (mcu_types, avr_override_options): Handle all known MCU types.
8664 Also handle avr1 (only preprocess, assemble and link).
8665 (print_operand): Using of `%K' in output template removed.
8666 (out_movqi_r_mr): Optimized.
8667 (out_movhi_r_mr): Likewise.
8668 (output_movqi): New function.
8669 (output_movhi): Likewise.
8670 (out_movsi_r_mr): Optimized.
8671 (output_movsisf): Compute insn length for `adjust_insn_length'
8672 (out_movqi_mr_r): Optimized.
8673 (out_movhi_mr_r): Optimized.
8674 (adjust_insn_length): Use output_movsisf, output_movqi,
8675 output_movhi for insn length adjusting.
8676 (reg_unused_after): Use dead_or_set_p.
8677 (preferred_reload_class): Now havn't any restriction.
8678 (reg_was_0): New function.
8679 (io_address_p): Likewise.
8680 (const_int_pow2_p): Likewise.
8681 (output_reload_inhi): Likewise.
8682 (output_reload_insisf): Likewise.
8684 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
8685 (LIB_SPEC): Use -lc for all supported devices.
8686 (LIBGCC_SPEC): Use -lgcc for all supported devices.
8687 (AVR_MEGA): Define as avr_mega_p.
8688 (AVR_ENHANCED): New, define as avr_enhanced_p.
8689 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
8690 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
8691 (CRT_BINUTILS_SPECS): Handle all known MCU types.
8692 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
8693 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
8694 (ASM_SPEC): Pass -mmcu=... to the assembler.
8695 Change all -DAVR_* to -D__AVR_*__.
8696 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
8697 Rename library functions to start with two underscores.
8698 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
8700 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
8701 (SUPPORTS_WEAK): Likewise.
8702 (LDI_REG_REGNO): New. Register r31 will be used as temporary
8703 register for loading constants to r0-r14.
8705 * config/avr/avr.md: Replace all TARGET_ENHANCED with
8707 (*mov_r_sp): Removed. Handled by output_movhi.
8708 (*mov_sp_r): Likewise.
8709 (*mov_sp_r_no_interrupts): Likewise
8710 (*mov_sp_r_tiny): Likewise.
8711 (*movqi): Use output_movqi.
8712 (*reload_inqi): New.
8713 (*movhi): Use output_movhi.
8714 (*reload_inhi): New.
8715 (*negsi2): Optimized.
8716 (*negsf2): Likewise.
8717 Added peepholes (define_peephole2) for loading constants to r0-r14
8718 and for using `cpse' command.
8720 * config/avr/libgcc.S: Rename library functions to start with two
8722 Add support for enhanced core.
8723 (_moqhi3): Fix typo, now _modqi3.
8724 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
8725 (__prologue_saves__): Remove test for stack adjust by 0.
8726 (__tablejump__): New.
8728 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
8729 Add multilib support.
8731 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
8733 * loop.c (prescan_loop): Don't check unknown_address_altered
8734 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
8735 to loop_store_mems as necessary.
8736 (loop_invariant_p): Don't check unknown_address_altered
8737 or unknown_constant_address_altered.
8739 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8741 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
8743 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
8745 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
8746 print just the filename.
8747 * cpplex.c (_cpp_run_directive): Add additional argument, the
8748 name to give the synthetic buffer. This defaults to
8749 translated "<command line>".
8750 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
8752 (_cpp_define_builtin): New function.
8753 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
8754 * cpphash.h: Update prototypes.
8756 * tradcpp.c (main): Process -D and -U simultaneously, in the
8757 order they appeared on the command line.
8759 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8761 * c-decl.c (define_label): Call warning_with_file_and_line and
8762 error_with_file_and_line instead of plain warning or error.
8764 * c-parse.in (label): Use save_filename/save_lineno to ensure
8765 correct values for calls to define_label.
8767 2000-08-29 Mark Mitchell <mark@codesourcery.com>
8769 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
8771 * expr.c (expand_expr, case TARGET_EXPR): Don't call
8773 * tree.h (get_file_function_name): Remove two duplicate
8776 2000-08-28 Kazu Hirata <kazu@hxi.com>
8778 * tree.c: Fix formatting.
8780 * xcoffout.c: Fix formatting.
8782 2000-08-28 Jason Merrill <jason@redhat.com>
8784 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
8786 2000-08-28 Daniel Berlin <dberlin@redhat.com>
8788 * dwarf2out.c (dwarf2out_finish): Don't bother calling
8789 break_out_includes if it won't do anything.
8791 2000-08-28 Richard Henderson <rth@cygnus.com>
8793 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
8794 (find_reloads): Likewise.
8795 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
8796 (reload_inhi): Likewise.
8798 2000-08-28 Richard Henderson <rth@cygnus.com>
8800 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
8801 (call_insn_operand): Don't expect a surrounding mem.
8802 (constant_call_address_operand): Likewise.
8803 * config/i386/i386.h (PREDICATE_CODES): Update.
8804 * config/i386/i386.md (call patterns): Move the match_operand
8805 for the call destination inside the mem.
8807 2000-08-28 Richard Henderson <rth@cygnus.com>
8809 * local-alloc.c (requires_inout): Don't use reserved range for
8810 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
8811 * recog.c (asm_operand_ok): Likewise.
8812 (preprocess_constraints, constrain_operands): Likewise.
8813 * regclass.c (record_reg_classes): Likewise.
8814 * reload.c (find_reloads): Likewise.
8815 * reload1.c (maybe_fix_stack_asms): Likewise.
8816 (reload_cse_simplify_operands): Likewise.
8817 * stmt.c (expand_asm_operands): Likewise.
8819 * md.texi: Update constraints documentation.
8820 * tm.texi (EXTRA_CONSTRAINT): Update.
8822 2000-08-28 Daniel Berlin <dberlin@redhat.com>
8824 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
8825 (print_die): If we don't know the offset of the
8826 target die, try the symbol. Add a trailing newline.
8827 (reverse_all_dies): New fn.
8828 (dwarf2out_finish): Call it.
8829 (break_out_includes): Reorganize for clarity.
8830 (add_sibling_attributes): Don't call reverse_die_lists.
8831 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
8833 * flags.h: Add flag_eliminate_dwarf2_dups.
8834 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
8836 2000-08-28 Jason Merrill <jason@redhat.com>
8838 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
8839 * dwarf2out.c: #include "md5.h".
8840 (DIE_LABEL_PREFIX): New macro.
8841 (dw_val_struct): Add 'external' flag to val_die_ref.
8842 (add_AT_die_ref, AT_ref): Adjust.
8843 (AT_ref_external, set_AT_ref_external): New fns.
8844 (build_abbrev_table): Call set_AT_ref_external.
8845 (value_format): Call AT_ref_external.
8846 (die_struct): Add die_symbol field.
8847 (new_die): Clear it.
8848 (dwarf_tag_name): Handle BINCL/EINCL.
8849 (dwarf2out_start_source_file): Add BINCL DIE.
8850 (dwarf2out_end_source_file): Add EINCL DIE.
8851 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
8852 (loc_checksum, attr_checksum, die_checksum): New fns.
8853 (is_type_die, is_comdat_die, is_symbol_die): New fns.
8854 (compute_section_prefix, assign_symbol_names): New fns.
8855 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
8856 (output_die): Call output_die_symbol and AT_ref_external.
8857 (output_comdat_comp_unit): New fn, split out from...
8858 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
8860 (output_pubnames, output_aranges): Abort if we see entries from
8862 * toplev.h: Declare file_name_nondirectory.
8863 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
8864 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
8865 (debug_start_source_file): Call dwarf2out_start_source_file
8866 regardless of debug verbosity.
8867 (debug_end_source_file): Similarly.
8868 * tree.h: Declare clean_symbol_name.
8869 * tree.c (clean_symbol_name): Split out from...
8870 (get_file_function_name_long): ...here.
8872 * dwarf2out.c (new_loc_descr): Use calloc.
8873 (splice_child_die): Remove the die from the right parent.
8874 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
8876 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8878 * toplev.c (decode_g_option): Don't give warning for unknown -g
8879 option; return 0 instead.
8880 (main): If -g option is not recognized by front end or
8881 language-independent code, give warning.
8883 2000-08-28 Greg McGary <greg@mcgary.org>
8885 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
8886 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
8887 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
8889 2000-08-27 Greg McGary <greg@mcgary.org>
8891 * cpplex.c (parse_string): Don't look for backslash
8892 before first char in `namebuf'.
8893 * loop.c (strength_reduce): Skip NOTEs.
8895 2000-08-27 Jason Merrill <jason@redhat.com>
8897 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
8898 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
8899 TREE_ASM_WRITTEN, either.
8900 (finish_decl): Adjust.
8902 2000-08-28 Philipp Thomas <pthomas@suse.de>
8904 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
8905 they have been incorporated into the gettext CVS. Change the text to
8906 reflect the current status of NLS. Add instructions for accessing
8907 the gettext CVS and add the patch from Martin v. Loewis.
8909 2000-08-27 Geoff Keating <geoffk@cygnus.com>
8911 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
8912 by using gen_lowpart_common.
8913 (movdi_internal64+6): Likewise.
8915 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
8917 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
8920 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
8921 numbers to the ranges used by GDB.
8923 2000-08-25 Richard Henderson <rth@cygnus.com>
8925 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
8926 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
8927 (ia64_expand_prologue): Likewise.
8928 (ia64_setup_incoming_varargs): Set it. Properly skip the current
8929 argument for stdargs.
8931 2000-08-25 Jason Merrill <jason@redhat.com>
8933 * integrate.c (expand_inline_function): Pull out the original decl.
8935 2000-08-25 Jim Wilson <wilson@cygnus.com>
8937 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
8939 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
8941 2000-08-25 Greg McGary <greg@mcgary.org>
8943 * flow.c (dump_edge_info): Use ARRAY_SIZE.
8944 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
8946 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
8948 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
8950 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
8952 * i386.c (ix86_find_base_term): New.
8953 * i386-protos.h (ix86_find_base_term): Prototype.
8954 * i386.h (FIND_BASE_TERM): Define.
8955 * alias.c (find_base_term): Use it.
8956 * tm.texi (FIND_BASE_TERM): Document it.
8958 * alias.c (true_dependence, write_dependence_p): Unchanging
8959 memory can't conflict with non-unchanging memory.
8961 * alias.c (memrefs_conflict_p): A BLKmode reference
8962 to a symbol (or CONST_INT address) always conflicts
8963 with a reference to another symbol.
8965 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
8967 * c-common.c (time_char_table): Don't allow width and flags with
8970 2000-08-25 Jakub Jelinek <jakub@redhat.com>
8972 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
8973 way as LT and LTU when the second operand has 0 in low word.
8975 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8977 * basic-block.h (struct loop): Rename `exits' field to
8978 `exit_edges'. Add `entry_edges' and `num_entries' fields.
8980 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
8981 (flow_loop_entry_edges_find): Add.
8982 (flow_edge_list_print): Rename from flow_exits_print.
8983 (flow_loops_find): Call flow_loop_entry_edges_find.
8984 (flow_loop_dump): Dump entry_edges list.
8985 (flow_loops_free): Free entry_edges.
8987 2000-08-26 Michael Hayes <mhayes@cygnus.com>
8989 * loop.c (loop_dump_aux, debug_loop): New functions.
8990 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
8992 * flow.c (flow_loops_dump): Add callback parameter.
8993 (flow_loop_dump): Add callback parameter and call it. Move
8994 loop note debugging code to loop_dump_aux.
8996 * basic-block.h (flow_loop_dump): Add callback parameter
8997 (flow_loops_dump): Likewise.
8999 * toplev.c (rest_of_compilation): Add NULL callback function pointer
9000 to call to flow_loops_dump.
9002 2000-08-26 Michael Hayes <mhayes@cygnus.com>
9004 * loop.c (count_loop_regs_set): Replace start and end arguments
9005 with loop argument. All callers udated.
9007 2000-08-26 Michael Hayes <mhayes@cygnus.com>
9009 * loop.c (constant_high_bytes): Delete.
9011 2000-08-26 Michael Hayes <mhayes@cygnus.com>
9013 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
9014 and NOTE_INSN_LOOP_VTOP to...
9015 (find_and_verify_loops) ...here.
9017 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
9019 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
9020 (fini_dummy, init_dummy): Use it.
9022 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
9024 * cpplex.c (is_macro_disabled): Caller has already checked
9025 that we're not a preprocessed file.
9027 2000-08-24 Mark Mitchell <mark@codesourcery.com>
9029 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
9030 (c-iterate.o): Remove target.
9031 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
9032 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
9033 (finish_decl): Don't handle iterators.
9034 (grokdeclarator): Likewise.
9035 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
9036 * gcc/c-gperf.h: Regenerated.
9037 * gcc/c-iterate.c: Removed.
9038 * gcc/c-lex.c (init_lex): Don't handle iterators.
9039 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
9040 (compstmt_primary_start): Remove push_iterator_stack call.
9041 (stmt): Don't allow iterator statements. Replace iterator_expand
9042 with expand_expr_stmt.
9043 (all_iter_stmt): Remove.
9044 (all_iter_stmt_simple): Likewise.
9045 (all_iter_stmt_with_decl): Likewise.
9046 * gcc/c-tree.h (ITERATOR_P): Remove.
9047 (ITERATOR_BOUND_P): Likewise.
9048 (init_iterators): Remove declaration.
9049 (iterator_expand): Likewise.
9050 (iterator_for_loop_start): Likewise.
9051 (iterator_for_loop_end): Likewise.
9052 (iterator_for_loop_record): Likewise.
9053 (push_iterator_stack): Likewise.
9054 (pop_iterator_stack): Likewise.
9055 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
9056 (readonly_warning): Likewise.
9057 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
9059 2000-08-24 Jim Wilson <wilson@cygnus.com>
9061 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
9062 Copy type in a TYPE_DECL, just like pushdecl does.
9064 2000-08-24 Richard Henderson <rth@cygnus.com>
9066 * toplev.c (main): Enable flag_reorder_blocks at -O2.
9068 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
9070 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
9071 asked for one page, allocate GGC_QUIRE_SIZE of them and put
9072 the extras on the free list.
9073 (release_pages): Clean up.
9074 (ggc_set_mark): Don't adjust G.allocated here...
9075 (sweep_pages): ... do it here.
9077 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
9079 * cppfiles.c (read_include_file): Rearrange initializations.
9081 2000-08-24 Richard Henderson <rth@cygnus.com>
9083 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
9085 * config/ia64/ia64-protos.h: Update.
9086 * config/ia64/ia64.c (gr_register_operand): New.
9087 (fr_register_operand, grfr_register_operand): New.
9088 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
9089 (grfr_reg_or_8bit_operand): New.
9090 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
9091 use gr_register_operand.
9092 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
9093 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
9094 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
9095 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
9096 (fr_reg_or_fp01_operand): Likewise.
9097 (not_postinc_memory_operand): New.
9098 (ia64_split_timode): Remove unused variables.
9099 (rtx_needs_barrier): Check arguments to cmpxchg.
9100 (builtin_description): Remove.
9101 (bdesc_2argsi, bdesc_2argdi): Remove.
9102 (ia64_init_builtins): Declare all builtins directly.
9103 (ia64_expand_fetch_and_op): Rewrite to be called from
9104 ia64_expand_builtin directly. Use expand_binop and co.
9105 (ia64_expand_op_and_fetch): Likewise.
9106 (ia64_expand_compare_and_swap): Likewise.
9107 (ia64_expand_binop_builtin): Remove.
9108 (ia64_expand_lock_test_and_set): New.
9109 (ia64_expand_lock_release): New.
9110 (ia64_expand_builtin): Use them.
9111 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
9112 (EXTRA_CONSTRAINT): Use it.
9113 (PREDICATE_CODES): Update.
9114 * config/ia64/ia64.md (*): Use gr_register_operand and co.
9115 (mf): Indicate that we set memory as well as use it.
9116 (fetchadd_acq_si): Show memory being modified as well.
9117 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
9118 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
9119 (lock_test_and_set_si, lock_test_and_set_di): Remove.
9120 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
9121 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
9122 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
9123 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
9124 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
9125 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
9126 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
9127 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
9128 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
9129 return type. Pretty print definitions.
9131 2000-08-24 Jim Wilson <wilson@cygnus.com>
9133 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
9134 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
9136 2000-08-24 Jason Merrill <jason@redhat.com>
9138 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
9139 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
9140 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
9141 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
9143 2000-08-24 Greg McGary <greg@mcgary.org>
9145 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
9146 and extendtab within their proper array boundaries.
9147 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
9148 for the entire array.
9150 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
9151 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
9152 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
9153 * config/fr30/fr30.c (fr30_print_operand): Likewise.
9154 * config/i386/dgux.c (output_options): Likewise.
9155 * config/i386/dgux.h (ASM_FILE_START): Likewise.
9156 * config/m88k/m88k.c (output_options): Likewise.
9157 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
9158 * config/mcore/mcore.c (mcore_output_inline_const_forced,
9159 layout_mcore_frame, handle_structs_in_regs): Likewise.
9160 * config/mips/mips.c (output_block_move): Likewise.
9161 * config/rs6000/rs6000.c (rs6000_override_options,
9162 rs6000_file_start): Likewise.
9163 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
9164 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
9165 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
9166 * builtins.c (expand_builtin_setjmp): Likewise.
9167 * expr.c (safe_from_p): Likewise.
9168 * flow.c (life_analysis): Likewise.
9169 * fold-const.c (size_int_type_wide): Likewise.
9170 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
9171 * genattrtab.c (make_length_attrs): Likewise.
9172 * genopinit.c (gen_insn): Likewise.
9173 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
9174 * global.c (global_alloc): Likewise.
9175 * local-alloc.c (find_free_reg): Likewise.
9176 * mips-tdump.c (print_symbol): Likewise.
9177 * mips-tfile.c (parse_def, parse_input): Likewise.
9178 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
9179 * stmt.c (expand_nl_goto_receiver): Likewise.
9180 * stor-layout.c (set_sizetype): Likewise.
9181 * varasm.c (decode_reg_name): Likewise.
9182 * toplev.c (decode_f_option, decode_W_option,
9183 set_target_switch, print_switch_values): Likewise.
9184 (NUM_ELEM): Remove macro.
9185 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
9187 2000-08-24 Greg McGary <greg@mcgary.org>
9189 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
9190 (MAIN_NAME_P, main_identifier_node): New macros.
9191 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
9192 * c-decl.c (start_decl, grokdeclarator, start_function,
9193 store_parm_decls, finish_function): Use MAIN_NAME_P.
9194 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
9195 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9196 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9197 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
9199 2000-08-24 Greg McGary <greg@mcgary.org>
9201 * cppfiles.c (actual_directory): Don't write beyond `dir'
9202 when it contains "".
9203 * real.c (asctoeg): Stay within bounds of etens[][].
9205 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9207 * dependence.c (dependence_string, direction_string,
9208 dump_one_node, dump_node_dependence): Hide unused identifiers.
9209 (get_low_bound, normalize_coefficients): Match definition to
9211 (get_one_coefficient): Initialize variables `value0_is_idx' and
9213 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
9214 (ziv_test): Delete variable `idx', use parameter `sub' instead.
9215 (direction_merge): Avoid automatic aggregate initialization.
9216 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
9217 Initialize variables `dest_idx' and `src_idx'.
9218 (end_dependence_analysis): Avoid C89 style function definition.
9220 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
9222 * c-common.c (time_char_table): Don't allow width with %F.
9223 (check_format_info): Don't allow "Z" length with scanf.
9225 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
9227 * diagnostic.c (finish_diagnostic): Define.
9228 (output_do_printf): Use wrap_text instead of output_add_string.
9229 (default_print_error_function): Avoid embedded '\n'.
9231 * diagnostic.h (flush_diagnostic_buffer): Declare.
9233 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
9235 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
9237 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
9239 * Makefile.in (GCC_PASSES): Add specs.
9241 2000-08-23 Jim Wilson <wilson@cygnus.com>
9243 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
9244 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
9245 EHANDLER nor UHANDLER bit is set.
9246 (__get_except_table): Likewise.
9248 2000-08-23 Nick Clifton <nickc@redhat.com>
9250 * config/arm/lib1funcs.asm: Replace upper case condition codes
9251 with lower case versions.
9253 * config/arm/arm.h (STRUCT_VALUE): Define.
9254 (STRUCT_VALUE_REGNUM): Delete.
9256 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
9258 * cpphash.h (IN_I): New flag for directive table.
9259 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
9261 (_cpp_check_directive): If -fpreprocessed, execute directives
9262 marked with IN_I. Issue no warnings in this case.
9263 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
9265 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
9267 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
9269 (check_format_info): Support printf 'I' flag; warn about it with
9272 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
9274 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
9275 barrier can't be ignored by the alias analysis code.
9277 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
9279 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
9280 works inside fixincl.
9282 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
9284 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
9285 simplify_relational_operation() unless both operands are of
9287 * cse.c (fold_rtx): Likewise.
9289 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
9291 * rtlanal.c (rtx_unstable_p): The pic register is stable
9292 (within one function) and the actual rtx should be used
9293 when checking the registers.
9294 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
9296 * alias.c (true_dependence, write_dependence_p): Fix
9297 bug in previous patch.
9299 * i386.c (ix86_GOT_alias_set): New.
9300 (legitimize_pic_address): Use it.
9302 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
9303 only stable if its address is stable.
9304 (rtx_varies_p): An unchanging MEM can't vary if
9305 its address doesn't vary.
9307 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9309 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
9311 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9313 * vax.h (ASM_SPEC): Pass `-J' to assembler.
9314 * x-vax-gcc: New file for bootstrapping with gcc.
9315 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
9316 * configure.in: Use x-vax-gcc with gcc.
9317 * configure: Rebuilt.
9319 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9321 * toplev.c (rest_of_compilation): Rebuild label notes after
9322 post-reload splitting pass if new labels have been created.
9324 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
9326 * diagnostic.h (output_buffer_state): New macro.
9327 * diagnostic.c (diagnostic_for_decl, sorry,
9328 default_print_error_function, output_do_verbatim,
9329 report_diagnostic, report_problematic_module): Use it.
9331 (output_format): Use wrap_text instead of maybe_wrap_text.
9333 2000-08-22 Nick Clifton <nickc@redhat.com>
9335 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
9336 Common code for ARM divide and modulus functions.
9337 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
9339 (FUNC_END): New macro: Common code at the end of the division and
9341 (THUMB_FUNCTION_START): New macro: Common code at the start of
9343 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
9345 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
9347 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
9349 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
9350 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
9353 2000-08-22 Nick Clifton <nickc@redhat.com>
9355 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
9356 restorative additions, test for bottom bits of IP being set,
9357 rather than relying upon the RORs not matching.
9360 2000-08-22 David Edelsohn <edelsohn@gnu.org>
9362 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
9363 text_section() as appropriate instead of emitting text csect
9365 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
9366 (UNIQUE_SECTION): Define macro.
9367 (ASM_OUTPUT_SECTION_NAME): Define macro.
9368 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
9369 on AIX if debugging and -fdata-sections always.
9371 2000-08-22 Steven King <sxking@uswest.net>
9373 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
9375 (LDBL_MAX): Same here.
9377 2000-08-22 Richard Henderson <rth@cygnus.com>
9379 * flow.c (tidy_fallthru_edge): Update b->end properly.
9381 2000-08-22 Stan Cox <scox@redhat.com>
9383 * Makefile.in (OBJS): Add dependence.o.
9384 * dependence.c: New file.
9386 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
9388 * calls.c (check_sibcall_argument_overlap_1): Adjust for
9390 (check_sibcall_argument_overlap): Likewise.
9392 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
9394 * invoke.texi (SH Options): Document -m4-nofpu,
9395 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
9396 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
9398 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
9400 * c-common.c (check_format_info): Give the 'some locales' warning
9401 for strftime %Ey rather than the unconditional 'only last 2 digits
9404 2000-08-22 Richard Henderson <rth@cygnus.com>
9406 * alias.c (init_alias_analysis): Do not register
9407 struct_value_incoming_rtx or static_chain_rtx as pointing
9410 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
9412 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
9414 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
9416 * diagnostic.h (report_problematic_module): Declare.
9417 * diagnostic.c (report_problematic_module): New function.
9418 (report_error_function): Tweak.
9420 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9422 * stmt.c (expand_goto_internal, fixup_gotos): Only check
9423 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
9425 2000-08-21 Richard Henderson <rth@cygnus.com>
9427 * flow.c (calculate_global_regs_live): Mark frame pointer live
9428 everywhere before reload.
9430 2000-08-21 Jim Wilson <wilson@cygnus.com>
9432 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
9433 INTEL_EXTENDED_IEEE_FORMAT.
9434 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
9435 clear last two bytes of output FP value.
9437 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
9439 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
9441 2000-08-21 Jakub Jelinek <jakub@redhat.com>
9443 * unroll.c (loop_find_equiv_value): If ret is modified between
9444 insn and loop_start, ret might not be equivalent to reg.
9446 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
9448 * c-common.c (init_dollar_format_checking,
9449 maybe_read_dollar_number, finish_dollar_format_checking): New
9451 (dollar_arguments_used, dollar_arguments_count,
9452 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
9454 (check_format_info): Support $ formats for scanf and printf width
9455 and precision. Always increment format_chars to advance past the
9456 '*' of precision, not just when the format parameters are
9459 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9461 * mips.c (block_move_loop, expand_block_move,
9462 function_arg_partial_nregs, save_restore_insns, function_prologue,
9463 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
9465 (function_arg_advance, function_arg): Match argument to format
9468 2000-08-21 Nix <nix@esperi.demon.co.uk>
9470 * gcc.c (do_spec_1): Implement %j spec flag.
9471 Remove dead comment.
9473 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
9474 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
9475 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
9476 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
9478 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
9479 writable) instead of hardcoded value.
9481 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
9483 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
9486 * gcc.c (cc1_options): Do not process -o or run the assembler if
9488 * objc/lang-spec.h: Likewise.
9490 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
9492 * fixinc/fixincl.c (fix_with_system): Pipe the output of
9493 "external" fixes through `cat', to avoid truncating the input
9494 file by redirection.
9496 2000-08-21 Jakub Jelinek <jakub@redhat.com>
9498 * config/i386/i386.md (lea_general_1): Copy insn condition to split
9500 (lea_general_2, lea_general_3): Likewise.
9502 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9504 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
9505 warnings to user code.
9507 * c-lex.c (readescape, yylex): Likewise.
9509 * c-typeck.c (store_init_value, process_init_element): Likewise
9510 (c_expand_start_case): Format.
9512 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9514 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
9516 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
9517 and linker_endian_spec to endian_spec.
9518 (ENDIAN_SPEC): Add %{EB} and %{EL}.
9519 (LINK_SPEC): Remove %{EB} and %{EL}.
9520 (ASM_SPEC): Likewise. Use %(endian_spec).
9522 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
9524 * c-tree.h (flag_hosted): Move declaration from here...
9525 * c-common.h (flag_hosted): ... to here.
9526 (flag_noniso_default_format_attributes): New declaration.
9527 * c-decl.c (flag_noniso_default_format_attributes): New variable.
9528 (c_decode_option): Set it appropriately for options choosing
9529 language standard variant.
9530 * c-common.c (init_function_format_info): Only provide default
9531 format attributes if flag_hosted. Only provide the gettext
9532 formats if flag_noniso_default_format_attributes. Update
9534 (check_format_info): Disable treatment of %a as a scanf flag in
9537 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
9539 * c-common.c (scan_char_table): Add 'w' to flags for all formats
9541 (check_format_info): Set 'wide' for scanf format widths. Warn for
9542 a zero scanf width. Make the check for writing into a constant
9543 object at the first level of indirection; at later levels, warn if
9544 any type qualifiers are encountered.
9546 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
9548 * reload.c (reload_inner_reg_of_subreg): New function broken out of
9550 (push_reload): Use reload_inner_reg_of_subreg.
9551 (combine_reloads): Do not combine reloads if the input reload
9552 is a SUBREG in which the inner part will need reloading.
9554 * global.c (global_alloc): Avoid passing dumpfile argument to
9556 * toplev.c (rest_of_compilation): Likewise.
9557 * reload.h (reload): Remove dumpfile argument. Callers changed.
9558 (debug_reload, debug_reload_to_stream): Move prototypes here.
9559 * rtl.h (reload): Remove dumpfile argument.
9560 * reload.c (debug_reload): Remove prototype.
9561 (debug_reload_to_stream): Likewise.
9562 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
9565 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
9567 * diagnostic.c (context_as_prefix): Export.
9568 (need_error_newline): Remove.
9569 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
9570 (error_module_changed, record_last_error_module,
9571 error_function_changed, record_last_error_function): New functions.
9572 (initialize_diagnostics): Default intialize
9573 lang_diagnostic_starter, lang_diagnostic_finalizer.
9574 (init_output_buffer): Tweak.
9575 (file_name_as_prefix): New function.
9576 (announce_function, default_print_error_function,
9577 report_error_function, set_diagnostic_context): Tweak.
9579 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
9581 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
9582 condition expression.
9584 2000-08-20 Richard Henderson <rth@cygnus.com>
9586 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
9588 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
9590 * cppinit.c (cpp_init): Set global flag when called.
9591 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
9593 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
9595 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
9596 before `process_directive' so that newlines won't be missed
9598 (cpp_printf): Increment `print->lineno' when newline is emitted.
9600 * cppmain.c (cb_ident): Likewise.
9601 (cb_define): Likewise.
9602 (cb_undef): Likewise.
9603 (cb_include): Likewise.
9604 (cb_def_pragma): Likewise.
9605 (dump_macros_helper): Likewise.
9607 2000-08-20 Richard Henderson <rth@cygnus.com>
9609 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
9610 assigned before a loop.
9612 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
9613 (ashrsi3, lshrsi3): Likewise.
9615 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
9617 * c-lang.c: #include diagnostic.h
9618 (c_tree_printer): New function.
9619 (lang_init): Initialize lang_printer.
9621 * Makefile.in (c-lang.o): Depends on diagnostic.h
9623 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
9625 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
9627 * diagnostic.c (default_diagnostic_starter,
9628 default_diagnostic_finalizer): New functions.
9629 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
9630 (pedwarn, pedwarn_with_file_and_line, error,
9631 error_with_file_and_line, fatal, warning,
9632 warning_with_file_and_line): Adjust call to report_diagnostic.
9633 (report_diagnostic): Rework.
9634 (set_diagnostic_context): New function.
9636 * diagnostic.h (struct diagnostic_context): New data structure.
9637 (diagnostic_message, diagnostic_argument_list,
9638 diagnostic_file_location, diagnostic_line_location,
9639 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
9640 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
9641 (set_diagnostic_context): Declare.
9642 (report_diagnostic): Change prototype.
9644 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
9646 * fix-header.c (main): Initialize cpplib.
9648 2000-08-19 Michael Meissner <meissner@redhat.com>
9650 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
9651 instructions in it before checking for indirect jumps.
9653 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
9654 in a indirect jump as a potential for conditional execution.
9656 * d30v.h (d30v_init_expanders): Don't declare here.
9657 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
9660 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
9662 * cpp.texi: Add @section for assertions.
9664 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
9666 * loop.c (scan_loop): Use CONST_CALL_P instead of
9667 checking for REG_LIBCALL / REG_RETVAL.
9669 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
9671 * reload1.c (reload_as_needed): Accept dumpfile argument,
9672 pass it to emit_reload_insns.
9673 (emit_reload_insns): Add new dumpfile argument. If non-null
9674 then dump the reloads for each insn into the dumpfile.
9675 (reload): Pass dumpfile to reload_as_needed.
9677 * invoke.texi: Clean up linux-gnu vs linux comments.
9679 2000-08-19 Richard Henderson <rth@cygnus.com>
9681 * config/ia64/ia64.c (reg_or_5bit_operand): New.
9682 (ia64_depz_field_mask): New.
9683 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
9684 (PREDICATE_CODES): Update.
9685 * config/ia64/ia64.md: Update commentary.
9686 (depz_internal): New.
9687 (ashlsi3): Implement directly.
9688 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
9689 (ashldi3): Use shladd.
9690 * config/ia64/ia64-protos.h: Update.
9692 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
9694 * toplev.c (independent_decode_option): Always process -g.
9695 Remove third argument, now unused. Adjust caller to match.
9697 2000-08-18 Richard Henderson <rth@cygnus.com>
9699 * combine.c (make_compound_operation): Break after creating
9702 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
9704 * cpplib.c (cpp_register_pragma_space): Just return if the
9705 namespace is already registered.
9707 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
9709 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
9710 constant amount. Do not generate ROTL instruction.
9712 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
9714 * config/sh/elf.h: Do not include sh/sh.h.
9715 * config/sh/rtems.h: Likewise.
9716 * config/sh/rtemself.h: Do not include sh/elf.h.
9717 * configure.in: Get them included with `tm_file's.
9718 * configure: Rebuilt.
9720 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
9721 * config/sh/sh.c (fpscr_set_from_mem): Use them.
9723 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9725 * stor-layout.c (compute_record_type): Don't use mode of single
9726 field as mode of record if not integer mode of same type.
9728 * regmove.c (perhaps_ends_bb_p): New function.
9729 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
9730 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
9731 (fixup_match_1): Likewise.
9732 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
9733 avoid signed/unsigned warnings.
9735 * function.c (fixup_var_refs_1, case MEM): Update CODE after
9738 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
9740 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
9741 (_cpp_trigraph_map): Declaration moved from cpplex.c
9743 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
9744 instead of 256. Use consistent test for designated initializers.
9745 (cpp_init): Initialize trigraph_map.
9746 (initialize_standard_includes, parse_option): Use memcmp
9749 * cpplex.c (init_trigraph_map): Remove.
9750 (trigraph_ok, trigraph_replace, lex_line): Refer to
9753 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
9754 (do_unassert): Remove unused "next" local.
9756 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
9758 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
9760 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
9763 2000-08-17 Richard Henderson <rth@cygnus.com>
9765 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
9766 the first insn in a sequence.
9768 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
9770 * alias.c (true_dependence, write_dependence_p): A read
9771 involving a label_ref or the constant pool doesn't create
9774 * rtl.h (unchanging): Improve documentation.
9776 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
9778 * cse.c (insert_regs): Remove unused `regno'.
9780 2000-08-17 Neil Booth <NeilB@earthling.net>
9782 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
9783 remove_dup_dirs. If qtail == brack, remove brack not
9785 (remove_dup_dir, remove_dup_dirs): New functions.
9787 2000-08-17 Neil Booth <NeilB@earthling.net>
9789 * cppinit.c (cpp_cleanup): Free include dir chains.
9790 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
9791 (do_unassert): Free the assert with _cpp_free_definition.
9792 * cppmacro.c (_cpp_free_definition): Free memory allocated for
9793 assertions. Make the node a T_VOID node.
9795 2000-08-17 Neil Booth <NeilB@earthling.net>
9797 * cppinit.c (path_include, append_include_chain):
9798 Remove 2nd parameter (struct cpp_pending *).
9799 (path_include, initialize_standard_includes, cpp_handle_option):
9800 Update callers appropriately.
9801 (cpp_handle_option): Use pend.
9803 2000-08-17 Neil Booth <NeilB@earthling.net>
9805 * cppinit.c (sort_options): Remove, put functionality in
9808 (initialize_builtins): Free memory.
9809 (cpp_start_read): Move init_IStable to cpp_init.
9811 * cpplib.h (cpp_init): New prototype.
9812 * cppmain.c (main): Call cpp_init.
9814 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
9816 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
9817 (rtx_unstable_p, rtx_varies_p): Process vectors.
9819 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
9821 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
9822 references to GLOBAL symbols. Use LOCAL where appropriate.
9824 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9826 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
9827 use t-aix41 when host == target.
9829 2000-08-16 Richard Henderson <rth@cygnus.com>
9831 * reload.c (push_secondary_reload): Revert last change.
9832 If we use a reload_in/out pattern, make the when the same
9833 as the primary reload.
9834 (find_reloads): Likewise.
9836 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
9838 * configure.in (libstdcxx-v3): Fix test.
9839 * configure: Regenerate.
9841 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9843 * calls.c (calls_function_1, expand_call): Only test
9844 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
9845 * function.c (thread_prologue_and_epilogue_insns): Likewise.
9847 2000-08-16 Richard Henderson <rth@cygnus.com>
9849 * combine.c (simplify_shift_const): Revert previous two
9850 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
9851 before the main loop.
9853 2000-08-15 Richard Henderson <rth@cygnus.com>
9855 * combine.c (simplify_shift_const): Bound shift count when
9858 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9860 * calls.c (ECF_SP_DEPRESSED): New macro.
9861 (calls_function_1): Treat calling sp-depressed function as alloca.
9862 (emit_call_1): Don't adjust SP if calling sp-depressed function.
9863 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
9864 If sp-depressed, ensure block saves and restores SP.
9865 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
9867 * function.c (keep_stack_depressed): New function.
9868 (thread_prologue_and_epilogue_insns): Call it.
9869 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
9870 to print DECL_OFFSET_ALIGN.
9871 Print no-force-blk and transparent-union flags properly.
9872 * stmt.c (expand_goto_internal): Don't restore stack if last block
9873 and function returns with sp depressed.
9874 (fixup_gotos): Likewise.
9875 (save_stack_pointer): New function, from code in expand_decl.
9876 (expand_decl): Call new function.
9877 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
9878 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
9879 (save_stack_pointer): New declaration.
9881 * diagnostic.c (fatal_function): New variable.
9882 (set_fatal_function): New function.
9884 * diagnostic.h (set_fatal_function): New declaration.
9886 2000-08-15 William Cohen <wcohen@redhat.com>
9888 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
9889 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
9890 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
9892 2000-08-15 Richard Henderson <rth@cygnus.com>
9894 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
9896 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9898 * arm.c (arm_function_ok_for_sibcall): New function.
9899 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
9900 * arm.md (call expanders): Don't check here for calls that can't
9903 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9905 * arm.md (splits generating cond_exec): Disable.
9907 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9909 * arm/linux-elf.h (text_section): Delete declaration.
9911 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
9913 ARM support for unordered FP operations.
9914 * arm-protos.h (arm_comparison_operator): Declare.
9915 * arm.c (arm_comparison_operator): New function.
9916 (arm_select_cc_mode): Add unordered comparison codes.
9917 (get_arm_condition_code): Likewise.
9918 (arm_final_prescan_insn): Can't handle unordered jumps that can't
9919 be done in one insn.
9920 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
9921 * arm.md (all uses of comparison_operator): Replace with
9922 arm_comparison_operator.
9923 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
9925 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
9928 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
9930 * gthr-posix.h: Conditionally include <sched.h>; include
9931 <config.h> from libobjc/.
9933 2000-08-14 Richard Henderson <rth@cygnus.com>
9935 * config/i386/i386.c (legitimize_pic_address): Use Pmode
9938 2000-08-14 Richard Henderson <rth@cygnus.com>
9940 * configure.in (ia64-*): Set float_format for i386 long double.
9942 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
9943 as we would for i386 XFmode.
9944 (PUT_REAL): Likewise.
9945 (endian, ereal_atof, real_value_truncate): Likewise.
9946 (ereal_isneg, toe64, etens, make_nan): Likewise.
9947 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
9949 * config/ia64/ia64-protos.h: Update.
9950 * config/ia64/ia64.c (general_tfmode_operand): New.
9951 (destination_tfmode_operand): New.
9952 (tfreg_or_fp01_operand): New.
9953 (ia64_split_timode): New.
9954 (spill_tfmode_operand): New.
9955 (ia64_expand_prologue): Use TFmode not XFmode.
9956 (ia64_expand_epilogue): Likewise.
9957 (ia64_function_arg): Likewise.
9958 (ia64_function_arg_advance): Likewise.
9959 (ia64_return_in_memory): Likewise.
9960 (ia64_function_value): Likewise.
9961 (ia64_print_operand): Likewise.
9962 (ia64_register_move_cost): Set GR<->FR to 5.
9963 (ia64_secondary_reload_class): Get GR for TImode memory op.
9964 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
9965 (ROUND_TYPE_ALIGN): Remove.
9966 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
9967 (INTEL_EXTENDED_IEEE_FORMAT): Define.
9968 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
9969 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
9970 (MODES_TIEABLE_P): Use TFmode, not XFmode.
9971 (CLASS_MAX_NREGS): Likewise.
9972 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
9973 (PREDICATE_CODES): Update.
9974 * config/ia64/ia64.md (movti): New.
9975 (movti_internal): Use a clobber for memory alternatives.
9976 (reload_inti, reload_outti): New.
9977 (movsfcc_astep): Predicate properly.
9978 (movdfcc_astep): Likewise.
9981 (extendsftf2, extenddftf2): New.
9982 (trunctfsf2, trunctfdf2): New.
9983 (floatditf2, fix_trunctfdi2): New.
9984 (floatunsditf2, fixuns_trunctfdi2): New.
9985 (addtf3, subtf3, multf3, abstf2): New.
9986 (negtf2, nabstf2, mintf3, maxtf3): New.
9987 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
9989 (fr_spill): Use TFmode, not XFmode.
9990 (fr_restore): Likewise.
9991 * config/ia64/lib1funcs.asm (__divtf3): New.
9992 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
9994 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9996 * cse.c (fold_rtx): Avoid empty body in an if-statement.
9998 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
9999 `U' integer constant suffix.
10001 * dwarf2out.c (add_subscript_info): Avoid empty body in an
10004 * sparc/sol2.h (__enable_execute_stack): Prototype.
10006 2000-08-14 David Edelsohn <edelsohn@gnu.org>
10008 * collect2.c: Remove use of AIX import file.
10010 * longlong.h: Test ARCH_PWR not ARCH_POWER.
10012 * rs6000.c (print_operand, case 'E'): Add else.
10014 2000-08-14 Richard Henderson <rth@cygnus.com>
10016 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
10017 (movdi_symbolic): New.
10019 2000-08-14 Jim Wilson <wilson@cygnus.com>
10021 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
10022 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
10023 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
10026 2000-08-14 Richard Henderson <rth@cygnus.com>
10028 * expr.c (emit_group_load): Don't force constants into registers.
10029 Special case source already in the correct mode.
10031 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
10033 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
10034 * fixinc/inclhack.def: Likewise.
10035 * fixinc/mkfixinc.sh: Likewise.
10036 * configure: Regenerate.
10037 * fixinc/fixincl.x: Regenerate.
10038 * install.texi: Document equivalence of linux and linux-gnu.
10040 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10042 * cse.c (insert_regs): Also in REG case: When finding an invalid
10043 value, and we make a new quantity, make sure that it won't be
10044 mistaken by for a valid one by mention_regs.
10046 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
10048 * h8300.md: Remove obsolete peepholes.
10050 2000-08-13 Kazu Hirata <kazu@hxi.com>
10052 * invoke.texi (H8/300 Options): Fix typos.
10053 * config/h8300.c: Fix formatting.
10054 * config/h8300.h: Fix comment typos.
10055 (OVERRIDE_OPTIONS): Fix formatting.
10057 * function.c: Fix formatting.
10059 * cse.c: Fix formatting.
10061 2000-08-13 Geoff Keating <geoffk@cygnus.com>
10063 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
10064 (attempt_auto_inc): Suppress parentheses warning.
10065 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
10066 * loop.c (load_mems): Remove `u' suffix in two places.
10067 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
10069 * config/rs6000/rs6000.h: Likewise.
10070 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
10071 __eabi dummy routine.
10072 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
10073 variable `buf_ptr'.
10075 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
10076 not put stuff in .sdata unnecessarily.
10077 (rs6000_unique_section): New function.
10078 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
10079 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
10081 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
10082 arrays in C99. Don't try to look at DECL_REGISTER of a
10083 COMPONENT_REF. Don't complain twice about the same error.
10085 * fixinc/inclhack.def (aix_pthread): New fix.
10086 (aix_sysmachine): New fix.
10087 * fixinc/fixincl.x: Regenerate.
10089 * expr.c (expand_expr): Call convert_modes when turning a large
10090 multiply into a small one.
10092 2000-08-12 Geoff Keating <geoffk@cygnus.com>
10094 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
10095 the tree structure an exponent rather than an explicit alignment
10096 so it doesn't overflow.
10097 (SET_DECL_OFFSET_ALIGN): New macro.
10098 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
10099 rather than DECL_OFFSET_ALIGN.
10100 (place_field): Likewise.
10101 * expmed.c (store_bit_field): Abort on align==0 to avoid
10102 antisocial machine behaviour.
10104 2000-08-12 Richard Henderson <rth@cygnus.com>
10106 * sibcall.c (uses_addressof): Accept both addressof and
10107 current_function_internal_arg_pointer inside a mem.
10108 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
10109 if current_function_uses_addressof.
10110 * stmt.c (expand_return): Kill tail recursion and HAVE_return
10113 2000-08-11 Richard Henderson <rth@cygnus.com>
10115 * config/ia64/ia64.md (addsi3): Remove expander.
10116 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
10117 (*addsi3_shladd): New.
10119 2000-08-11 Richard Henderson <rth@cygnus.com>
10121 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
10122 (do_restore): Likewise.
10123 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
10124 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
10125 (rtx_needs_barrier): Track actual bit manipulation for
10126 ar.unat moves, gr_spill, and gr_restore.
10127 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
10128 (process_set): Don't handle varargs spills.
10129 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
10130 .mem.offset here instead of in process_set.
10131 (gr_restore): Likewise.
10133 2000-08-11 Richard Henderson <rth@cygnus.com>
10135 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
10137 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
10139 * gcc.texi (The Configuration File): Document
10140 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
10141 UPDATE_PATH_HOST_CANONICALIZATION.
10143 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10145 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
10146 unprototyped function pointer casts on integer constants.
10148 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
10150 * fixproto: Recognize DOS paths with drive letters as absolute paths.
10152 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
10154 * extend.texi (Volatiles): Fix typos.
10156 2000-08-11 Kazu Hirata <kazu@hxi.com>
10158 * flow.c: Fix formatting.
10160 2000-08-11 Richard Henderson <rth@cygnus.com>
10162 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
10163 pattern, always allocate a tertiary scratch register.
10165 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
10166 (reload_inhi): Likewise.
10168 2000-08-11 Richard Henderson <rth@cygnus.com>
10170 * function.c (put_reg_into_stack): Allow type to be NULL.
10171 (schedule_fixup_var_refs): Likewise.
10172 (gen_mem_addressof): Allow decl to be NULL.
10173 (put_addressof_into_stack): Likewise.
10175 * flow.c (merge_blocks_nomove): Be more careful about
10176 locating the beginning of block A.
10178 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
10180 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
10185 * config.in: Reverted the check for <sched.h>.
10187 2000-08-10 Chris Demetriou <cgd@sibyte.com>
10189 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
10190 macros define the name of CTOR and DTOR sections.
10191 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
10192 DTOR_LIST_END): Change to use attributes to specify
10194 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
10195 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
10196 DTOR_LIST_END): Same as in mips/elf.h.
10198 2000-08-10 Drew Moseley <dmoseley@redhat.com>
10200 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
10201 disabling just crt0.o.
10203 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
10205 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
10206 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
10207 (EXTRA_SPECS): Add them.
10208 * arm/lib1funcs.asm: Support builds for interworking.
10209 Use macros to eliminate duplicated pieces of code.
10211 2000-08-10 Kazu Hirata <kazu@hxi.com>
10213 * h8300.c (expand_a_rotate): New.
10214 (emit_a_rotate): Likewise.
10215 (h8300_adjust_insn_length): Add support for the rotate insns.
10216 * h8300.md (rotlqi3): New.
10217 (*rotlqi3_1): Likewise.
10218 (rotlhi3): Likewise.
10219 (*rotlhi3_1): Likewise.
10220 (rotlhi3): Likewise.
10221 (*rotlhi3_1): Likewise.
10222 * h8300-proto.h: Add prototypes for expand_a_rotate and
10225 * h8300.c: Fix comment typos.
10226 (dosize): Declare the variable amount as unsigned.
10227 (get_shift_alg): Fix a comparison between signed and unsigned.
10228 (emit_a_shift): Likewise.
10229 (h8300_adjust_insn_length): Simplify the code.
10231 * c-decl.c: Fix formatting.
10233 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10235 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
10236 warning about non-traditional numeric constant suffixes.
10238 * cppexp.c (parse_number): Likewise.
10240 * invoke.texi: (-Wtraditional): Document new behavior.
10242 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
10244 * gthr-posix.h: Include auto-host.h. Conditionally include
10246 * configure.in: Check for the <sched.h> header file.
10247 * config.in: Added define for HAVE_SCHED_H.
10249 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10251 * c-typeck.c (process_init_element): For -Wtraditional, warn about
10252 initialization of unions.
10254 * invoke.texi (-Wtraditional): Document new behavior.
10256 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
10258 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
10259 instead of extra_c_flags.
10260 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
10261 * configure: Regenerate.
10262 * config.in: Regenerate.
10264 * cpperror.c (cpp_type2name): New function.
10265 * cpplex.c (lex_line): If we issued an error for an invalid
10266 preprocessing directive, discard that logical line.
10267 * cpplib.c (do_line): Call a hook function if the current file
10268 is renamed by #line.
10269 (do_ident): Pass the contents of the string, not the entire
10270 token, to the callback function.
10271 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
10272 (cb.rename_file): New hook function.
10273 (cb.ident): Adjust prototype.
10274 (cpp_type2name): Prototype.
10275 * cppmacro.c (dump_macro_args): Correct precedence lossage.
10277 * cppmain.c (cb_ident): Update for changed interface.
10278 (cb_rename_file): New function.
10279 (main): Set rename callback.
10281 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
10283 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
10284 multi-word registers.
10286 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
10288 * c-common.c (combine_strings, check_format_info): Refer to ISO C
10289 or ISO C89 instead of ANSI C.
10290 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
10291 build_enumerator, do_case): Likewise.
10292 * c-lex.c (parse_float, yylex): Likewise.
10293 * c-parse.in: Likewise.
10294 * c-typeck.c (common_type, build_array_ref, build_binary_op,
10295 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
10296 build_c_cast, convert_for_assignment, set_init_index,
10297 set_init_label, c_expand_start_case): Likewise.
10298 * toplev.c (documented_lang_options, display_help): Likewise.
10300 2000-08-08 Kazu Hirata <kazu@hxi.com>
10302 * h8300.c: Fix formatting.
10303 * h8300.h: Likewise.
10304 * h8300.md: Likewise.
10305 (movsi_h8300hs): Fix formatting of the resulting assembly code.
10307 * reload1.c: Fix formatting.
10309 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
10311 * alpha/alpha.c (alpha_emit_xfloating_libcall):
10312 Use GEN_CALL_VALUE define.
10313 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
10314 * clipper/clipper.md (untyped_call): Likewise.
10315 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
10316 * fx80/fx80.md (untyped_call): Likewise.
10317 * mips/mips.md (untyped_call): Likewise.
10318 * ns32k/ns32k.md (untyped_call): Likewise.
10319 * pa/pa.md (untyped_call): Likewise.
10320 * romp/romp.md (untyped_call): Likewise.
10321 * sparc/sparc.md (untyped_call): Likewise.
10323 2000-08-08 Jason Eckhardt <jle@cygnus.com>
10325 * config/i860/i860.c (singlemove_string): Do not generate assembler
10326 pseudo instructions that must be expanded (that is, with signed
10327 constants larger than 16 bits).
10329 2000-08-08 Richard Henderson <rth@cygnus.com>
10331 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
10332 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
10333 (init_propagate_block_info): Don't kill memory stores at -O0.
10334 (mark_set_1, mark_used_regs): Likewise.
10336 2000-08-08 David Edelsohn <edelsohn@gnu.org>
10338 * rs6000.c (optimization_options): Decorate 'level' as
10340 (mask64_operand): Remove sign-extend thinko.
10341 (rldic_operand): New function.
10342 (load_multiple_operation): regno's are unsigned ints.
10343 (store_multiple_operation): Likewise.
10344 (lmw_operation): Likewise.
10345 (stmw_operation): Likewise.
10346 (includes_lshift_p): shift_mask is unsigned int.
10347 (includes_lshift64_p): New function.
10348 (addrs_ok_for_quad_peep): unsigned int reg1.
10349 (print_operand): Consistently add "else" after
10350 output_operand_lossage().
10351 (print_operand, case 'b'): Fold in case 'W'.
10352 (print_operand, case 'W'): Print rldic MB value.
10353 (output_epilogue): Update Objective-C language string.
10354 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
10355 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
10356 * rs6000.md (ashldi3): Add rldic instruction.
10357 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
10358 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
10361 2000-08-08 Richard Henderson <rth@cygnus.com>
10363 * config/ia64/ia64-protos.h: Remove duplicates. Update
10364 for massive code rearrangements.
10365 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
10366 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
10367 (ia64_local_regs, ia64_need_regstk): Remove.
10368 (ar_ccv_reg_operand): New.
10369 (ia64_gp_save_reg): New.
10370 (struct ia64_frame_info): Combine most of the size elements;
10371 add new gr save elements.
10372 (find_gr_spill): New.
10373 (next_scratch_gr_reg): New.
10374 (mark_reg_gr_used_mask): New.
10375 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
10376 to GR backing store regs when possible.
10377 (ia64_initial_elimination_offset): New.
10378 (ia64_rap_fp_offset): Remove.
10379 (save_restore_insns): Remove.
10380 (setup_spill_pointers): New.
10381 (finish_spill_pointers): New.
10382 (spill_restore_mem): New.
10383 (do_spill, do_restore): New.
10384 (ia64_expand_prologue): Rewrite to use them.
10385 (ia64_expand_epilogue): Likewise.
10386 (ia64_direct_return): Update for current_frame_info changes.
10387 (ia64_function_prologue): Simplify .prologue emission. Emit
10388 .spill when needed.
10389 (ia64_setup_incoming_varargs): Don't ever emit rtl.
10390 (ia64_dbx_register_number): New.
10391 (ia64_initialize_trampoline): New.
10392 (ia64_secondary_reload_class): Request GR_REGS for integer
10393 arithmetic destined for FR_REGS.
10394 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
10395 (ia64_mark_machine_status): Mark ia64_gp_save.
10396 (rws_access_regno): Rename from rws_access_reg; don't treat
10397 predicates specially.
10398 (rws_access_reg): New. Update all callers.
10399 (rtx_needs_barrier): Remove dead unspecs.
10400 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
10401 (ia64_encode_section_info): Silence signed/unsigned warnings.
10402 (spill_offset, sp_offset, spill_offset_emitted): Remove.
10403 (tmp_reg, tmp_saved): Remove.
10404 (process_set): Rewrite to expect complicated bits via
10405 REG_FRAME_RELATED_EXPR.
10406 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
10407 in the use of ar.ccv; never set RTX_UNCHANGING_P.
10408 (ia64_expand_op_and_fetch): Likewise.
10409 (ia64_expand_compare_and_swap): Likewise.
10410 (ia64_expand_builtin): Likewise.
10411 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
10412 (FIRST_PSEUDO_REGISTER): Update.
10413 (AR_M_REGNO_P): Update.
10414 (FIXED_REGS): Don't mark three local registers as used.
10415 (EXTRA_CC_MODES): New.
10416 (SELECT_CC_MODE): New.
10417 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
10418 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
10419 (FRAME_GROWS_DOWNWARD): Unset.
10420 (STARTING_FRAME_OFFSET): Zero.
10421 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
10422 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
10423 (HARD_FRAME_POINTER_REGNUM): New.
10424 (CAN_DEBUG_WITHOUT_FP): Define.
10425 (TRAMPOLINE_TEMPLATE): Remove.
10426 (TRAMPOLINE_SIZE): Lower to 32.
10427 (TRAMPOLINE_ALIGNMENT): Lower to 64.
10428 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
10429 (PREDICATE_CODES): Update.
10430 (struct machine_function): Add ia64_gp_save.
10431 * config/ia64/ia64.md: Purge unused unspecs.
10432 (movsi patterns): Allow moves to/from AR_M_REGS.
10433 (movdi patterns): Allow moves to/from p0.
10434 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
10435 (gr_spill, gr_restore): Indicate ar.unat read/written.
10436 (nonlocal_goto): Don't pass old frame_pointer.
10437 (nonlocal_goto_receiver): Remove.
10438 (exception_receiver): New.
10439 (builtin_setjmp_setup): New.
10440 (builtin_setjmp_receiver): New.
10441 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
10442 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
10443 (__ia64_restore_stack_nonlocal): Likewise.
10444 (__ia64_trampoline): New.
10445 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
10447 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
10449 2000-08-08 Richard Henderson <rth@cygnus.com>
10451 * frame.h (ia64_frame_state): Add my_psp.
10452 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
10453 (__throw): Pass it in. Don't clobber r7.
10454 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
10455 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
10456 and nothing to do with sp.
10457 (normalize_reg_loc): Use frame->my_psp.
10458 (frame_translate): Handle frame-pointer-less functions. Set
10459 spill_base correctly, in absence of being told.
10460 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
10461 (__ia64_backtrace_helper): New sp argument. Use
10462 builtin_return_address instead of label addresses.
10463 (print_record) [mem_stack_v]: No size member.
10465 2000-08-08 Richard Henderson <rth@cygnus.com>
10467 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
10469 2000-08-08 Richard Henderson <rth@cygnus.com>
10471 * tm.texi (LOCAL_REGNO): Document.
10472 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
10473 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
10474 * reload1.c (reload): Likewise when considering nonlocal labels.
10476 * config/ia64/ia64.h (LOCAL_REGNO): New.
10477 * config/sparc/sparc.h (LOCAL_REGNO): New.
10479 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
10481 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
10483 2000-08-07 Nick Clifton <nickc@redhat.com>
10485 * config/mips/mips.c: Fix compile time warning messages.
10486 * config/mips/mips-protos.h: Add prototype for equality_op.
10488 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
10490 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
10492 * mn10300.md: Use nonimmediate_operand instead of general_operand
10493 on output operands.
10495 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
10497 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
10499 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
10500 * sh.c (expand_block_move): Break long lines.
10501 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
10502 * sh.md (mulsi3): Likewise.
10503 (movdi): Adjust spacing.
10505 2000-08-07 Richard Henderson <rth@cygnus.com>
10507 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
10508 * expr.c (emit_group_store): Don't set it.
10510 2000-08-07 Kazu Hirata <kazu@hxi.com>
10512 * invoke.texi (Options for Debugging Your Program or GCC): Remove
10513 duplicate entries for 'w' and 'z'.
10515 * flow.c: Fix a comment typo.
10517 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
10519 * c-parse.in: Changed the language string for Objective-C to "GNU
10522 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
10524 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
10525 to improve the Posix thread support for Objective-C.
10527 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
10529 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
10530 CTI_UNSIGNED_PTRDIFF_TYPE.
10531 (signed_size_type_node): Define.
10532 (unsigned_ptrdiff_type_node): Define.
10533 * c-decl.c (init_decl_processing): Create the
10534 signed_size_type_node and unsigned_ptrdiff_type_node types.
10535 * c-common.c (T_SC): Define.
10538 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
10539 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
10541 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
10542 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
10543 flags for %c, %s and %[.
10544 (check_format_info): Only allow leniency for signedness of targets
10545 of character pointers (when pedantic) for formats flagged with
10546 "c", so for strings but not for %hh formats. When pedantic, don't
10547 allow character pointers to substitute for void pointers if a
10548 second level of indirection is present.
10550 2000-08-06 Kazu Hirata <kazu@hxi.com>
10552 * invoke.texi (Options for Debugging Your Program or GCC): Update
10553 the names of dump files.
10555 * h8300.c (dosize): Rearrange code for conciseness.
10556 (split_adds_subs): Likewise.
10558 * loop.c: Fix formatting.
10560 * dwarf2out.c: Fix formatting.
10562 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
10564 * expr.c: Fix formatting.
10566 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10568 * rs6000.c (rs6000_maybe_dead): Prototype.
10570 2000-08-06 Richard Henderson <rth@cygnus.com>
10572 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
10573 HAVE_nonlocal_goto as well.
10574 * config/i960/i960.md (nonlocal_goto): Don't do it here.
10575 * config/pj/pj.md (nonlocal_goto): Likewise.
10577 2000-08-07 Michael Hayes <mhayes@cygnus.com>
10579 * loop.c (try_swap_copy_prop): New function.
10580 (load_mems): Rename copies to load_copies and add new regset
10581 store_copies. Check for sets of shadow registers and mark
10582 in store_copies. Call try_swap_copy_prop for registers
10583 marked in store_copies.
10585 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
10587 * objc/objc-act.c: New command line option -fconstant-string-class
10588 to allow specifying a user defined constant string class,
10589 different from NXConstantString.
10591 * toplev.c: Moved the Objective-C specific options to
10592 objc/lang-options.h.
10594 * objc/lang-options.h: Moved the Objective-C specific options from
10595 toplev.c. Added -fconstant-string-class.
10597 2000-08-05 Chris Demetriou <cgd@sibyte.com>
10599 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
10600 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
10601 __CTOR_LIST__ from func_ptr array to just func_ptr, to
10602 avoid extra alignment imposed on arrays.
10603 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
10604 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
10606 * mips.h: Clean up comments and spacing near MASKs.
10607 (TARGET_UNIX_ASM): Delete.
10608 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
10609 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
10612 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
10614 * c-common.c (print_char_table): Add entries for the X/Open '
10615 format flag (print decimals with locale's thousands grouping
10616 character). Make %C expect wint_t.
10617 (check_format_info): If pedantic, warn when the %n$ operand
10618 number form is used. Allow for the ' flag; warn about it if
10621 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
10623 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
10624 type is a float mode, cfun->decl's return type is not, and
10625 TARGET_FLOAT_RETURNS_IN_80387.
10627 2000-08-04 Andreas Schwab <schwab@suse.de>
10629 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
10630 token list, which are always `#' and `pragma'.
10632 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
10634 * tree.c (tree_expr_nonnegative_p): Move to...
10635 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
10636 (rtl_expr_nonnegative_p): New.
10637 * tree.h: Add prototype for rtl_expr_nonnegative_p.
10639 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
10640 CONST_DOUBLE_CHAIN: Move to...
10641 * rtl.h: ...here. Use XCINT/XCEXP.
10643 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
10644 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
10645 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
10648 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
10650 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10652 * config/c4x/c4x.md (return_indirect_internal): New.
10653 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
10655 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10657 * c-common.c (time_char_table): Mark up formats added in C99 and
10658 make other corrections. %D and %g were added in C99. %Og is an
10659 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
10660 C99. %e was added in C99. %Oj is an extension. %G and %z are in
10661 C99 rather than GNU extensions, but %OG and %Oz are extensions.
10662 %h was added in C99. %C was added in C99. %OY and %OC are
10663 extensions. Add the C99 format %F.
10664 (check_format_info): If pedantic and not in C99 mode, warn for C99
10665 formats, %E and %O.
10667 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10669 * function.c (schedule_fixup_var_refs): New function, broken out
10670 of put_reg_into_stack.
10671 (put_reg_into_stack): Use it.
10672 (put_var_into_stack): In CONCAT case, fixup up references for
10673 components only after fixing up references to the whole concat.
10675 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
10677 * alias.c (mark_constant_function): Use INSN_P.
10678 (init_alias_analysis): Likewise.
10679 * combine.c (combine_instructions): Use INSN_P.
10680 (can_combine_p): Likewise.
10681 (try_combine): Likewise.
10682 (distribute_notes): Likewise.
10683 (distribute_links): Likewise.
10684 * cse.c (cse_around_loop): Use INSN_P.
10685 (invalidate_skipped_block): Likewise.
10686 (cse_set_around_loop): Likewise.
10687 (cse_end_of_basic_block): Likewise.
10688 (delete_trivially_dead_insns): Likewise.
10689 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
10690 (unshare_all_rtl_1): Likewise.
10691 (next_cc0_user): Likewise.
10692 (try_split make_insn_raw): Likewise.
10693 (remove_unnecessary_notes): Likewise.
10694 * final.c (shorten_branches): Use INSN_P.
10695 (leaf_renumber_regs): Likewise.
10696 (leaf_renumber_regs_insn): Likewise.
10697 * flow.c (find_label_refs): Use INSN_P.
10698 (verify_wide_reg): Likewise.
10699 (notice_stack_pointer_modification): Likewise.
10700 (count_or_remove_death_notes): Likewise.
10701 (verify_flow_info): Likewise.
10702 (clear_log_links): Likewise.
10703 * function.c (fixup_var_refs_insns): Use INSN_P.
10704 (compute_insns_for_mem): Likewise.
10705 * gcse.c (alloc_gcse_mem): Use INSN_P.
10706 (compute_sets): Likewise.
10707 (compute_hash_table): Likewise.
10708 (classic_gcse): Likewise.
10710 (insert_insn_end_bb): Likewise.
10711 (delete_null_pointer_checks_1): Likewise.
10712 * global.c (expand_preferences): Use INSN_P.
10713 (build_insn_chain): Likewise.
10714 * graph.c (node_data): Use INSN_P.
10715 * haifa-sched.c (priority): Use INSN_P.
10716 (rm_line_notes): Likewise.
10717 (rm_other_notes): Likewise.
10718 (find_insn_reg_weight): Likewise.
10719 (init_target_units): Likewise.
10720 (schedule_block): Likewise.
10721 (compute_block_forward_dependences): Likewise.
10722 (debug_dependencies): Likewise.
10723 (set_priorities): Likewise.
10724 * integrate.c (function_cannot_inline_p): Use INSN_P.
10725 (save_parm_insns): Likewise.
10726 (copy_insn_list): Likewise.
10727 * jump.c (mark_all_labels): Use INSN_P.
10728 (never_reached_warning): Likewise.
10729 * lcm.c (optimize_mode_switching): Use INSN_P.
10730 * local-alloc.c (validate_equiv_mem): Use INSN_P.
10731 (memref_used_between_p): Likewise.
10732 (update_equiv_regs): Likewise.
10733 (block_alloc): Likewise.
10734 (no_conflict_p): Likewise.
10735 * loop.c (scan_loop): Use INSN_P.
10736 (find_and_verify_loops): Likewise.
10737 (count_loop_regs_set): Likewise.
10738 (loop_reg_used_before_p): Likewise.
10739 (strength_reduce): Likewise.
10740 (recombine_givs): Likewise.
10741 (check_dbra_loop): Likewise.
10742 (load_mems): Likewise.
10743 (try_copy_prop): Likewise.
10744 * print-rtl.c (print_rtx): Use INSN_P.
10745 * recog.c (find_single_use): Use INSN_P.
10746 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
10747 (next_flags_user): Likewise.
10748 (swap_rtx_condition): Likewise.
10749 * regmove.c (mark_flags_life_zones): Use INSN_P.
10750 (optimize_reg_copy_1): Likewise.
10751 (optimize_reg_copy_2): Likewise.
10752 (optimize_reg_copy_3): Likewise.
10753 (reg_is_remote_constant_p): Likewise.
10754 (fixup_match_2): Likewise.
10755 (regmove_optimize): Likewise.
10756 (fixup_match_1): Likewise.
10757 * regrename.c (build_def_use): Use INSN_P.
10758 (replace_reg_in_block): Likewise.
10759 (consider_use): Likewise.
10760 * reload.c (find_equiv_reg): Use INSN_P.
10761 * reload1.c (reload): Use INSN_P.
10762 (maybe_fix_stack_asms): Likewise.
10763 (calculate_needs_all_insns): Likewise.
10764 (reload_as_needed): Likewise.
10765 (emit_output_reload_insns): Likewise.
10766 (delete_address_reloads_1): Likewise.
10767 (reload_cse_regs_1): Likewise.
10768 (reload_combine): Likewise.
10769 (reload_cse_move2add): Likewise.
10770 * reorg.c (redundant_insn): Use INSN_P.
10771 (dbr_schedule): Likewise.
10772 * resource.c (find_dead_or_set_registers): Use INSN_P.
10773 (mark_target_live_regs): Likewise.
10774 * rtlanal.c (reg_used_between_p): Use INSN_P.
10775 (reg_referenced_between_p): Likewise.
10776 (reg_set_between_p): Likewise.
10777 (reg_set_p): Likewise.
10778 (single_set): Likewise.
10779 (multiple_sets): Likewise.
10780 (find_last_value): Likewise.
10781 (reg_set_last): Likewise.
10782 (find_reg_note): Likewise.
10783 (find_regno_note): Likewise.
10784 * sibcall.c (sequence_uses_addressof): Use INSN_P.
10785 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
10786 * ssa.c (find_evaluations): Use INSN_P.
10787 (rename_block): Likewise.
10788 (rename_equivalent_regs): Likewise.
10789 * unroll.c (loop_find_equiv_value): Use INSN_P.
10790 (set_dominates_use): Likewise.
10791 * varasm.c (mark_constant_pool): Use INSN_P.
10792 (mark_constants): Likewise.
10793 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
10794 (alphaev4_next_group): Likewise.
10795 (alphaev5_next_group): Likewise.
10796 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
10797 (c4x_rptb_rpts_p): Likewise.
10798 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
10799 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
10800 (rs6000_adjust_priority): Likewise.
10801 * config/sh/sh.c (sh_loop_align): Use INSN_P.
10802 (machine_dependent_reorg): Likewise.
10803 (split_branches): Likewise.
10804 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
10806 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
10808 * combine.c (recog_for_combine): Remove the old notes
10809 prior to attempting to recognize the new pattern.
10810 (distribute_notes): Ignore REG_NONNEG notes.
10812 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
10814 * varasm.c (output_constructor): Add .align 0 for packed vars.
10816 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10818 * configure.in: Use default thread_file even when enable_threads is
10819 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
10820 * configure: Rebuilt.
10822 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
10824 2000-08-04 Donn Terry (donnte@microsoft.com)
10826 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
10828 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
10830 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
10831 Delete code that conditionally modifies 'version'.
10832 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
10833 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
10834 * gcc.c (main): Use it.
10835 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
10836 * prefix.c (update_path): Use it.
10837 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
10838 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
10839 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
10841 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
10842 (SUBTARGET_SWITCHES): Adjust.
10843 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
10845 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
10847 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10849 * c-common.h (flag_isoc94): Declare.
10850 * c-decl.c (flag_isoc94): Define.
10851 (c_decode_option): Set flag_isoc94 as appropriate.
10852 * c-common.c (T_PD, T_IM, T_UIM): Define.
10853 (format_char_info): Add tlen and jlen.
10854 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
10856 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
10858 (time_char_table): Add NULL entries for %t and %j.
10859 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
10860 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
10861 Warn for printf %lf if pedantic and not C99. Don't warn for empty
10862 precision. Allow precision argument to be unsigned int. If
10863 pedantic, warn for %p passed an argument not a pointer to possibly
10864 qualified void or a possibly qualified character type, and for
10865 pointer targets of the wrong sign, except for character pointers.
10867 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10869 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
10870 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
10871 (wint_type_node): Define.
10872 * c-decl.c (WINT_TYPE): Define.
10873 (init_decl_processing): Create the wint_type_node type.
10874 * c-common.c (T_WI): Define.
10875 (print_char_table): Use T_WI for %lc format.
10877 2000-08-04 Bruce Korb <bkorb@gnu.org>
10879 * fixinc/: Verified that the MSDOS patch does not break
10880 the UNIX functionality and applied the next three patches
10883 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
10885 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
10886 output file with the temporary one by appending ".X" to generate
10887 the temporary fuile's name. If the output file already has an
10888 extension, replace it with ".X".
10890 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
10891 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
10892 reallocate the command buffer while copying the command-line
10893 argument. Redirect the output directly to the temporary file,
10894 instead of going through another temporary file.
10895 (process): Close the temporary file before unlinking it.
10896 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
10897 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
10898 (run_compiles): Pass p_fixd argument to machine_matches, as it
10901 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
10902 environment, assume there are no symlinks in the include
10903 directory. When cleaning up the DONE files, look for them
10904 case-insensitively. Don't try to remove symlinks if they aren't
10907 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
10908 all callers changed. Declare pz "const char *", to avoid compiler
10911 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
10912 Change prototype of make_raw_shell_str.
10914 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10916 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
10917 (initialize) [__MSDOS__]: Use tempnam.
10918 (initialize): Don't use SIGPIPE if it is not defined.
10920 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
10923 2000-07-25 Bruce Korb <bkorb@gnu.org>
10925 * fixinc/fix*.[ch]: substantially reworked to make it possible
10926 to run this program without using fork(2) or pipe(2) (i.e. in
10927 a DOS environment).
10929 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
10931 * cppdefault.h (WINT_TYPE): Define.
10932 * cppinit.c (builtin_array): Define __WINT_TYPE__.
10933 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
10934 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
10936 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
10938 * (mips_legitimate_address_p): Don't allow register+offset
10939 if the offset is large and negative, and we are compiling
10940 for 64 bit registers.
10942 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10944 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
10945 insn_code_number + 1.
10947 2000-08-04 Kazu Hirata <kazu@hxi.com>
10949 * h8300.c (function_prologue): Rearrange code for conciseness.
10950 (function_epilogue): Likewise.
10951 * h8300.h (OK_FOR_U): Fix formatting.
10953 * cse.c: Fix a comment typo. Fix formatting.
10955 2000-08-03 Richard Henderson <rth@cygnus.com>
10957 * config/i386/i386.md (return_indirect_internal): New.
10958 * config/i386/i386.c (ix86_expand_epilogue): Use it.
10960 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
10962 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
10964 (lex_line): Glue @ onto the beginning of identifiers and
10965 string constants, in Objective-C mode.
10966 (output_token, spell_token): Handle CPP_OSTRING.
10967 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
10968 beginning of a NAME or a STRING, in objc mode.
10970 * cpplib.c (get_define_node): Do not permit identifiers that
10971 begin with @ to be #defined.
10972 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
10973 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
10975 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
10976 * c-tree.h (build_objc_string): Delete prototype.
10977 * objc/objc-tree.def: Delete OBJC_STRING_CST.
10978 * c-lex.c (yylex): Use build_string for all three kinds of strings.
10980 * c-parse.in, objc/objc-act.c: Update commentary.
10982 2000-08-03 Mark Mitchell <mark@codesourcery.com>
10984 * extend.texi: Fix typo in last change.
10986 * extend.texi: Add commentary on statement-expressions and their
10987 interactions with C++.
10989 2000-08-03 Nick Clifton <nickc@cygnus.com>
10991 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
10992 * dwarf.h (LANG_JAVA): Change value to 0x000b.
10994 2000-08-03 Anthony Green <green@cygnus.com>
10996 * dwarf2out.c (gen_compile_unit_die): Add java language support.
10997 (add_bound_info): Check for java language.
10998 (is_java): New function.
10999 * dwarfout.c (output_compile_unit_die): Ditto.
11000 * dwarf.h (dwarf_source_language): Add java source language type.
11001 * dwarf2.h (dwarf_source_language): Ditto.
11003 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
11005 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
11008 * i386.c (ix86_expand_branch): Mode of comparison in
11009 IF_THEN_ELSE is VOIDmode.
11011 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
11013 * gengenrtl.c, rtl.c: Avoid #elif.
11015 2000-08-03 Michael Poole <poole@troilus.org>
11017 * tm.texi (Register Classes): Clarify order of sub-initializers
11018 in REG_CLASS_CONTENTS.
11020 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11022 From SAITOH Masanobu:
11023 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
11025 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
11027 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
11028 is not supported by tradcpp and isn't actually needed for cygwin.
11030 2000-08-03 Kazu Hirata <kazu@hxi.com>
11032 * h8300.c: Fix a comment typo.
11033 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
11035 * jump.c: Fix formatting.
11037 * toplev.c: Fix formatting.
11039 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
11041 * flow.c (find_auto_inc): Verify that we've got a REG before
11042 peeking at its regno. Fail, don't abort if we can't find
11043 the increment of the desired register.
11045 * pa.md (shadd height reduction patterns/splitters): Remove.
11047 2000-08-02 Jim Wilson <wilson@cygnus.com>
11049 * config/ia64/ia64-protos.h (flag_ssa): Declare.
11050 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
11052 2000-08-02 Mark Mitchell <mark@codesourcery.com>
11054 * dce.c: Remove all uses of assert.
11055 * dwarf2out.c: Likewise.
11056 * dwarfout.c: Likewise.
11059 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
11061 * gcc.h (lang_specific_driver): Constify second argument.
11062 * gcc.c (translate_options, process_command, main): Likewise.
11063 Constify variables to match. Cast second argument to
11066 * cppspec.c, gccspec.c: Adjust type of second argument to
11067 lang_specific_driver, and update code as necessary.
11069 2000-08-02 Jakub Jelinek <jakub@redhat.com>
11071 * loop.c (scan_loop): Ensure update_end label does not
11072 go away until reg_scan_update is run.
11074 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
11076 * c-common.h: Prototype min_precision and c_build_qualified_type here...
11077 * c-tree.h: ... not here.
11078 * errors.h: Prototype fancy_abort.
11080 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
11081 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
11082 * regrename.c (regrename_optimize): Make control flow explicit.
11083 (replace_reg_in_block): Initialize reg_use to 0.
11085 * i386.c (legitimate_address_p): Rename error label to
11086 report_error to avoid namespace clash.
11088 2000-08-02 Kazu Hirata <kazu@hxi.com>
11090 * fold-const.c: Fix formatting.
11092 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
11094 * i386.c (legitimate_address_p): Accept other bases than
11095 pic_offset_table_rtx for GOTOFF constructs.
11097 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
11099 * i386.md (shift to lea splitter): Use const_int_operand.
11101 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
11103 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
11104 cppspec.c: Do not use 'legal' or 'illegal' in error messages
11107 * cppmain.c (cb_define, cb_undef): Don't generate any output
11108 if not done_initializing.
11109 * cpplex.c (maybe_paste_with_next): When the token after a ##
11110 is an omitted rest argument, only delete the token before it
11111 if that token is a comma. Do not warn about bogus token
11112 pastes for , ## rest_arg.
11114 * cpp.texi: Update.
11115 * cpp.1: Regenerate.
11117 2000-08-02 Fred Fish <fnf@be.com>
11119 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
11120 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
11123 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
11124 Be directories to search path.
11126 Remove support for __declspec(dllimport) and __declspec(dllexport).
11127 This is leftover cruft from the earlier BeOS gcc port when BeOS
11128 used Microsoft's PE object file format.
11129 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
11130 * config/i386/t-beos (winnt.o): Remove Makefile frag.
11131 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
11132 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
11133 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
11134 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
11135 (REDO_SECTION_INFO_P): Remove.
11136 (ASM_EXPORT_DECL): Remove.
11137 (ASM_DECLARE_FUNCTION_NAME): Remove.
11138 (ASM_DECLARE_OBJECT_NAME): Remove.
11139 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
11140 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
11141 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
11142 (STRIP_NAME_ENCODING): Remove.
11144 Remove support for obsolete version of BeOS that is no longer
11146 * configure.in (i*86-*-beospe*): Remove.
11147 * config/i386/beos-pe.h: Remove.
11149 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
11150 Mark Mitchell <mark@codesourcery.com>
11152 * Makefile.in (OBJS): Added dce.o.
11153 (ssa.o): Updated target to include ssa.h.
11154 (flow.o): Likewise.
11155 (toplev.o): Likewise.
11156 (dce.o): Created target.
11157 * basic-block.h: Added comments.
11158 (INVALID_BLOCK): Added definition.
11159 (connect_infinite_loops_to_exit): Added declaration.
11160 Moved SSA declarations to ssa.h.
11161 * flow.c: Added inclusion of ssa.h.
11162 (struct depth_first_search_dsS, depth_first_search_ds):
11164 (compute_immediate_postdominators): Added definition.
11165 (connect_infinite_loops_to_exit): Likewise.
11166 (flow_dfs_compute_reverse_init): Likewise.
11167 (flow_dfs_compute_reverse_add_bb): Likewise.
11168 (flow_dfs_compute_reverse_execute): Likewise.
11169 (flow_dfs_compute_reverse_finish): Likewise.
11170 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
11171 (LABEL_P): Added definition.
11172 (JUMP_P): Likewise.
11173 (NOTE_P): Likewise.
11174 (BARRIER_P): Likewise.
11175 (JUMP_TABLE_DATA_P): Likewise.
11176 (INSN_DEAD_CODE_P): Likewise.
11177 * ssa.c: Replaced inclusions with ssa.h inclusion.
11178 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
11179 (rename_registers): Removed unnecessary variables.
11180 * ssa.h: Created by moving declarations from ssa.c and
11182 * timevar.def: Defined TV_DEAD_CODE_ELIM.
11183 * toplev.c: Added ssa.h inclusion.
11184 (dump_file_index): Added DFI_dce.
11185 (dump_file): Added "dce" entry.
11187 (f_options): Added dce entry.
11188 * invoke.texi: Document -fdce. Emphasize experimental status of
11192 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
11194 * cpperror.c (v_message): Split into _cpp_begin_message and
11195 v_message macro. All callers updated.
11196 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
11199 * cppfiles.c (cpp_syshdr_flags): New function.
11200 (read_include_file): Don't call cpp_output_tokens. Call
11202 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
11203 (cpp_reader_init): Don't initialize token_buffer. Call
11204 _cpp_init_internal_pragmas.
11205 (cpp_cleanup): Don't clear token_buffer.
11206 (cpp_start_read): Don't worry about output from -D processing.
11207 Don't call cpp_output_tokens.
11208 (cpp_finish): Don't dump macros here. Don't call
11210 * cppmacro.c (_cpp_dump_definition): Rename
11211 cpp_dump_definition. Write directly to a FILE *.
11212 (dump_funlike_macro): Delete.
11213 (dump_macro_args): New.
11215 * cpplex.c (TOKEN_LEN): Convert to inline function.
11216 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
11217 cpp_scan_line, _cpp_dump_list): Delete.
11218 (cpp_printf, cpp_output_list): New.
11219 (output_line_command): Don't worry about entering or leaving files.
11220 (cpp_scan_buffer): Just output each token as we hit it.
11221 (process_directive): Don't call cpp_output_tokens.
11222 (_cpp_glue_header_name): Don't use token_buffer.
11223 (output_token, dump_param_spelling): Write directly to a FILE *.
11225 * cpplib.c (pass_thru_directive, dump_macro_name,
11226 pragma_dispatch, do_pragma_gcc): Delete.
11227 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
11228 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
11230 (do_error, do_warning, pragma_dependency): Call
11231 _cpp_begin_message, then cpp_output_list.
11232 (cpp_register_pragma, cpp_register_pragma_space,
11233 _cpp_init_internal_pragmas): New.
11234 (do_pragma): Walk the pragmas table here.
11235 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
11236 do_pragma_dependency): Return void.
11237 (do_pragma_implementation): Moved to cppmain.c.
11239 * cpplib.h: Update prototypes.
11240 (struct cpp_reader): Remove printer, token_buffer,
11241 token_buffer_size, and limit. Add struct cb, and pragmas.
11242 (struct cpp_printer): Remove last_id and written.
11243 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
11244 CPP_ADJUST_WRITTEN): Delete.
11245 * cpphash.h: Update prototypes.
11246 (ufputs): New wrapper.
11248 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
11249 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
11250 (main): Set up callbacks. Register #pragma implementation.
11251 Dump macros from here.
11253 2000-08-01 Geoff Keating <geoffk@cygnus.com>
11255 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
11256 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
11257 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
11258 insns if they have a REG_MAYBE_DEAD note attached.
11259 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
11260 (rs6000_emit_load_toc_table): TOC loads may go dead.
11262 2000-08-01 Jim Wilson <wilson@cygnus.com>
11264 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
11265 type exists before using it. Use number of words as alignment
11267 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
11268 ia64_va_arg): Propagate ia64_function_args changes here.
11270 2000-08-01 Richard Henderson <rth@cygnus.com>
11272 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
11273 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11275 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
11277 From Joern Rennecke:
11278 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
11279 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
11280 unless TARGET_SH3E is set.
11281 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
11283 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
11284 (ashlsi3_std): New pattern.
11285 (ashlsi3 expander): Use it for TARGET_SH3.
11286 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
11288 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
11290 * loop.c (canonicalize_condition): Use destination, not source to
11291 determine SET's mode.
11293 2000-07-31 Mark Mitchell <mark@codesourcery.com>
11295 * flow.c (clear_log_links): Fix typo.
11297 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
11299 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
11300 on targets which need more than one insn for a compare/cbranch
11303 2000-07-31 Jim Wilson <wilson@cygnus.com>
11305 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
11306 when computing offset.
11308 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
11310 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
11312 2000-07-31 Geoff Keating <geoffk@cygnus.com>
11314 * flow.c (clear_log_links): Nuke global_live_at_start and
11315 global_live_at_end data, since if the log_links stuff is invalid
11316 so is global_live_at_*.
11318 2000-07-31 Richard Henderson <rth@cygnus.com>
11320 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
11322 2000-07-31 Jakub Jelinek <jakub@redhat.com>
11324 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
11325 (_cpp_get_token): Don't macro expand a just pasted token if it
11326 was pasted at no_expand_level.
11328 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
11330 * cppmacro.c (find_param, count_params, save_expansion):
11331 Permit 'defined' as a macro parameter name.
11333 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
11335 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
11336 xcpp to cpp throughout.
11337 (native): Remove unnecessary dependency on cpp.
11339 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
11340 tradcpp to tradcpp0.
11341 (.i spec): Add missing output-file spec to cc1 command line.
11342 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
11344 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
11346 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
11347 (implicit_decl_warning): New function.
11348 (implicitly_declare): Use it.
11349 * c-typeck.c (build_external_ref): Use implicit_decl_warning
11350 to complain about implicit decls of builtins.
11352 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
11353 based on pedantic && flag_isoc99, if not already set.
11354 * c-tree.h: Declare mesg_implicit_function_declaration.
11355 Prototype implicit_decl_warning.
11357 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
11359 * Makefile.in (ssa.o): Updated header files in dependences.
11360 * basic-block.h: Added compute_immediate_postdominators declaration.
11361 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
11363 * flow.c (compute_immediate_dominators): Updated comment.
11364 (compute_immediate_postdominators): Added definition.
11365 * rtl.h (HARD_REGISTER_P): Added definition.
11366 * ssa.c: Include additional header files.
11367 (assert): Added definition.
11368 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
11369 include select hard registers.
11370 (ssa_rename_to_insert): Likewise.
11371 (ssa_rename_from_initialize): Likewise.
11372 (ssa_rename_from_lookup): Likewise.
11373 (original_register): Likewise.
11374 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
11375 include select hard reigsters.
11376 (ssa_rename_from_traverse): Likewise.
11377 (ssa_rename_from_free): Likewise.
11378 (ssa_rename_from_print): Likewise.
11379 (ssa_rename_from_print_1): Likewise.
11380 (ssa_rename_from_hash_function): Likewise.
11381 (ssa_rename_from_equal): Likewise.
11382 (ssa_rename_from_delete): Likewise.
11383 (simplify_to_immediate_dominators): Removed in favor of
11384 flow.c:compute_immediate_dominators.
11385 (find_evaluations_1): Modified to work with hard registers.
11386 (insert_phi_node): Likewise.
11387 (insert_phi_nodes): Likewise.
11388 (struct rename_set_data): Updated prev_reg comment.
11389 (create_delayed_rename): Modified to work with hard registers.
11390 (RENAME_NO_RTX): Updated comment.
11391 (apply_delayed_renames): Modified to work with hard registers.
11392 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
11393 (rename_block): Updated to use revised ssa_rename_to interface.
11394 (rename_registers): Updated to use revised ssa_rename_to and
11395 ssa_rename_from interface.
11396 (convert_to_ssa): Revised to use compute_immediate_dominators and
11397 deal with hard registers.
11398 (make_regs_equivalent_over_bad_edges): Modified to work with hard
11399 registers. Added check for illegal unification of hard register.
11400 (make_equivalent_phi_alternatives_equivalent): Modified to work
11401 with hard registers.
11402 (compute_conservative_reg_partition): Likewise.
11403 (coalesce_if_unconflicting): Modified to work with hard registers
11404 and check for conflicting hard registers.
11405 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
11407 (rename_equivalent_regs_in_insn): Modified to work with hard
11409 (record_canonical_element_1): Added definition.
11410 (check_hard_regs_in_partition): Added definition.
11411 (convert_from_ssa): Added data structure deallocation and check
11412 for illegal hard register unification.
11413 (conflict_hard_regs_p): Added definition.
11414 * toplev.c (rest_of_compilation): Added comment.
11416 2000-07-31 Anthony Green <green@redhat.com>
11418 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
11420 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
11422 * builtins.c (expand_builtin_apply): Don't defer pop during
11425 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11427 * calls.c (combine_pending_stack_adjustment_and_call): Only use
11428 preferred_unit_stack_boundary when it is > 1.
11430 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
11432 * c-common.c (init_function_format_info): Add C99 format functions
11435 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
11436 void' or 'register void' as being the special case of 'void' alone
11437 in a parameter list.
11439 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
11440 discarding qualifiers into a plain warning.
11442 2000-07-31 Kazu Hirata <kazu@hxi.com>
11444 * combine.c: Fix formatting.
11446 * h8300.md: Fix formatting.
11448 * local-alloc.c: Fix formatting.
11450 * h8300.c (get_shift_alg): Remove the variable alg.
11451 (emit_a_shift): Rearrange code to improve readability.
11453 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
11455 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
11456 HImode on all architectures and a combination of HImode and SImode
11457 on H8/300H and H8/S.
11459 * h8300.c (split_adds_subs): Rearrange code for conciseness.
11461 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
11463 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
11464 in my last checkin.
11466 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
11468 * recog.c (extract_insn): Set operand_mode according to
11469 operand if match_operand is VOIDmode.
11471 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
11473 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
11475 2000-07-31 Geoff Keating <geoffk@cygnus.com>
11477 * c-parse.in (extdefs): Call ggc_collect between external
11480 2000-07-30 Michael Hayes <mhayes@cygnus.com>
11481 Richard Henderson <rth@cygnus.com>
11483 * Makefile.in (OBJS): Add doloop.o.
11484 * doloop.c: New file.
11486 * final.c (insn_current_reference_address): Return 0 before final.
11487 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
11488 * jump.c (any_uncondjump_p): Likewise.
11489 * loop.c (indirect_jump_in_function): Make static.
11490 (strength_reduce): Call doloop_optimize.
11491 (insert_bct, instrument_loop_bct): Remove.
11492 * loop.h (doloop_optimize): Prototype.
11493 * recog.c (split_all_insns): Split all INSN_P.
11494 * toplev.c (flag_branch_on_count_reg): Default on.
11496 * config/c4x/c4x.c (c4x_optimization_options): Don't set
11497 flag_branch_on_count_reg.
11498 * config/i386/i386.c (override_options): Likewise.
11499 * config/rs6000/rs6000.c (optimization_options): Likewise.
11501 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
11503 (dbra_ge): Remove, as well as all it's splitters.
11505 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
11508 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
11509 (ia64_register_move_cost): Declare.
11510 * config/ia64/ia64.c (ar_lc_reg_operand): New.
11511 (struct ia64_frame_info): Add ar_size.
11512 (ia64_compute_frame_size): Set it.
11513 (save_restore_insns): Save and restore ar.lc.
11514 (ia64_register_move_cost): New, moved from header file. Handle
11515 application registers.
11516 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
11517 (emit_insn_group_barriers): Special case doloop_end_internal.
11518 (ia64_epilogue_uses): Mark ar.lc live at end.
11519 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
11520 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
11521 (FIRST_PSEUDO_REGISTER): Make room.
11522 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
11523 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
11524 (REG_ALLOC_ORDER): Update.
11525 (HARD_REGNO_MODE_OK): Update.
11526 (REGISTER_NAMES): Update.
11527 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
11528 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
11529 (REGNO_REG_CLASS): Update.
11530 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
11531 (REGISTER_MOVE_COST): Move out of line.
11532 (PREDICATE_CODES): Update.
11533 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
11534 (addsi3_plus1_alt, adddi3_plus1_alt): New.
11535 (shladd_elim splitter): Allow constants in the predicate.
11536 (doloop_end, doloop_end_internal): New.
11538 2000-07-30 Richard Henderson <rth@cygnus.com>
11540 * genattrtab.c (struct insn_def): Add lineno member.
11541 (struct insn_ent): Likewise.
11542 (struct attr_desc): Likewise.
11543 (struct delay_desc): Likewise.
11544 (struct function_unit_op): Likewise.
11545 (struct function_unit): Likewise.
11546 (check_attr_value): Use message_with_line.
11547 (check_defs): Likewise.
11548 (expand_units): Likewise.
11549 (check_attr_test): Take a lineno argument.
11550 (gen_attr): Likewise.
11551 (gen_insn): Likewise.
11552 (gen_delay): Likewise.
11553 (gen_unit): Likewise.
11554 (main): Give it to them.
11555 (convert_set_attr_alternative): Take an insn_def argument
11556 instead of num_alt and insn_index.
11557 (convert_set_attr): Likewise.
11558 (write_test_expr): Protect INSN_ADDRESSES load
11559 with INSN_ADDRESSES_SET_P.
11561 2000-07-30 Richard Henderson <rth@cygnus.com>
11563 * flow.c (init_propagate_block_info): Use pc_set.
11565 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
11567 * i386.md (*lea_general_[123]) New insns and splits.
11568 (addsi3 to lea splitter): Handle other modes too.
11569 (shlsi3 to lea splitter): Likewise.
11570 (addhi_1_lea, shlhi_1_lea): New patterns.
11571 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
11573 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
11575 * recog.c (general_operand, nonimmediate_operand): Accept
11576 any mode for VOIDmode CONSTANT_P operands.
11578 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
11580 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
11581 instead of replace_rtx.
11582 * recog.c (validate_replace_rtx_subexp): New function.
11583 * recog.h (validate_replace_rtx_subexp): Declare.
11585 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
11587 * combine.c (simplify_set, make_extraction, make_compound_operation
11588 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
11589 as force_to_mode argument.
11591 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
11593 * combine.c (if_then_else_cond): Be sure that mode fits in
11596 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
11598 * combine.c (record_promoted_value): Allow bitsize of mode
11599 to be equivalent to HOST_BITS_PER_WISE_INT.
11601 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
11603 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
11604 Do not call gen_mode_alignment when mode is BLKmode.
11606 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
11608 * loop.c (express_from_1): Fix call of simplify_gen_binary.
11610 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
11612 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
11613 VOIDmode implies both operands to be VOIDmode.
11614 (simplify_ternary_operation): Compute properly the mode of comparison.
11615 * combine.c (combine_simplify_rtx): Likewise.
11617 2000-07-25 Michael Hayes <mph@paradise.net.nz>
11619 * basic-block.h (struct loops): New field rc_order.
11620 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
11621 (flow_loops_free): Free rc_order.
11622 (flow_depth_first_order_compute): New parameter rc_order.
11623 (flow_loops_find): Allocate rc_order and swap usage with
11626 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11627 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11629 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
11630 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
11631 (nodb_call, return_from_epilogue): Likewise.
11632 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
11633 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
11634 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
11635 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
11636 (c4x_valid_type_attribute_p): Likewise.
11637 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
11638 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
11640 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11642 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
11643 and loadhi_big_constant if applicable.
11644 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
11645 and add new splitter.s
11647 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11649 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
11651 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11653 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
11655 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11657 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
11659 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11661 * config/c4x/libgcc.S (divqf3): Improve accuracy.
11663 2000-07-27 Mark Mitchell <mark@codesourcery.com>
11665 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
11666 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
11667 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
11668 (get_prev_bb_note): Likewise.
11669 (remove_scope_notes): Likewise.
11670 * flow.c (commit_one_edge_insertion): Likewise.
11671 (merge_blocks_nomove): Likewise.
11672 (verify_flow_info): Likewise.
11673 * gcse.c (insert_insn_end_bb): Likewise.
11674 * reg-stack.c (emit_swap_insn): Likewise.
11675 * ssa.c (first_insn_after_basic_block_note): New function.
11676 (insert_phi_node): Use it.
11677 (rename_block): Likewise.
11678 (eliminate_phi): Likewise.
11679 (make_regs_equivalent_over_bad_edges): Likewise.
11680 (make_equivalent_phi_alternatives_equivalent): Likewise.
11681 (for_each_successor_phi): Likewise.
11682 (convert_from_ssa): Modify phi-node deletion algorithm.
11684 2000-07-29 Andreas Jaeger <aj@suse.de>
11686 * configure.in (mips*-*-linux*): Use mips*el to check for little
11687 endian MIPS, add tmake_file.
11689 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
11690 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
11691 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
11693 2000-07-28 Richard Henderson <rth@cygnus.com>
11695 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
11696 Sign extend mode size before negating.
11698 2000-07-28 Richard Henderson <rth@cygnus.com>
11700 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
11702 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
11704 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
11705 (cse_insn): Likewise.
11706 (addr_affects_sp_p): Likewise.
11707 * expr.c (move_by_pieces): Likewise.
11708 (clear_by_pieces): Likewise.
11709 * gcse.c (oprs_unchanged_p): Likewise.
11710 * haifa-sched.c (sched_analyze_2): Likewise.
11711 * recog.c (offsettable_address_p): Likewise.
11712 * regclass.c (record_address_regs): Likewise.
11713 * reload.c (find_reusable_reload): Likewise.
11714 (push_reload): Likewise.
11715 (operands_match_p): Likewise.
11716 (decompose): Likewise.
11717 (find_reloads_address_1): Likewise.
11718 (find_inc_amount): Likewise.
11719 * reload1.c (elimination_effects): Likewise.
11720 * resource.c (mark_set_resources): Likewise.
11721 * flow.c (attempt_auto_inc): New function; mostly broken out
11723 (find_auto_inc): Split into two functions and enhanced to
11724 generate POST_MODIFY.
11725 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
11726 * rtl.h (count_all_occurrences): Declare.
11727 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
11729 * rtlanal.c (count_all_occurrences): New function.
11730 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
11731 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
11733 * config/ia64/ia64-protos.h (destination_operand): Declare.
11734 * config/ia64/ia64.c (destination_operand): New function.
11735 (ia64_print_operand): Handle POST_MODIFY.
11736 (rtx_needs_barrier): Likewise.
11737 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
11738 (HAVE_POST_MODIFY_REG): Define to 1.
11739 (MAX_REGS_PER_ADDRESS): Change to 2.
11740 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
11741 (LEGITIMATE_ADDRESS_REG): New helper macro.
11742 (LEGITIMATE_ADDRESS_DISP): Likewise.
11743 (PREDICATE_CODES): Add entry for destination_operand.
11744 * config/ia64/ia64.md (all mov patterns): Use destination_operand
11745 predicate for operand 0.
11747 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11749 * dwarf2out.c: Indent #error directive.
11751 * gbl-ctors.h: Fix typo in comment.
11752 (__do_global_ctors): Prototype.
11754 * gcse.c (record_one_set, pre_delete): Remove unused variables.
11756 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
11757 (print_operand): Initialize variable `t'.
11759 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
11761 * config/arm/arm.md ("call_value"): removed constraints.
11762 Constraints are ignored in expanders.
11763 (*call_value_reg): split =rf into various constraints.
11764 (*call_value_mem): same
11765 (*call_value_symbol): same
11766 (*sibcall_value_insn): same
11768 2000-07-28 Philipp Thomas <pthomas@suse.de>
11770 * install.texi (--enable-nls): Change the description of the NLS
11771 related configure options to match the current state.
11772 (--with-included-gettext): Likewise.
11773 (--enable-maintainer-mode): New description added.
11774 * extend.texi (-fstrict-prototype): Add missing '.'.
11776 2000-07-27 Jim Wilson <wilson@cygnus.com>
11778 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
11779 DECL_INITIAL (decl) == NULL_TREE.
11781 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
11783 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
11784 on insn-attr.h with it.
11785 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
11786 * insn-addr.h: New header.
11787 (insn_addresses_): Renamed from insn_addresses.
11788 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
11789 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
11790 INSN_ADDRESSES_NEW): New macros.
11791 * genattrtab.c (write_test_expr): Use new macros.
11792 * final.c (insn_addresses, init_insn_lengths): Likewise.
11793 (align_fuzz, shorten_branches): Likewise.
11794 (final): Likewise. Do not reject new insns if their addresses
11795 have been added to INSN_ADDRESSES.
11796 * config/arm/arm.c, config/avr/avr.c: Use new macros.
11797 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
11798 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
11799 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
11800 * config/sh/sh.c: Likewise.
11801 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
11803 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
11805 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
11807 * gcc.c (struct prefix_list): Add member priority.
11808 (enum path_prefix_priority): Declare.
11809 (add_prefix): Replace ``first'' with ``priority''. Append new
11810 entry but keep list in priority order.
11811 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
11812 PREFIX_PRIORITY_LAST to add_prefix.
11813 (process_command): Move include kludge - foo/stageN - to before
11816 2000-07-27 Jason Merrill <jason@redhat.com>
11818 * dwarf2out.c (gen_typedef_die): Abort if we get identical
11819 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
11821 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
11823 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
11824 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
11826 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
11828 * c-decl.c (finish_function): Don't treat 'main' specially unless
11829 flag_hosted. In C99 mode, return 0 from 'main' unless
11830 DEFAULT_MAIN_RETURN is otherwise defined.
11832 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
11833 parameters defaulting to int in an old-style function definition.
11835 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11837 * c-parse.in (string): For -Wtraditional, warn about string
11838 concatenation only once per line.
11840 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
11842 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
11843 for HI-UX/WE2 systems.
11845 2000-07-24 Bruce Korb <bkorb@gnu.org>
11847 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
11848 defining the __xxx_TYPE__ macros.
11849 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
11850 * fixincl/fixlib.h: don't need to include "tm.h" anymore
11851 * fixincl/inclhack.def(type_map): now obsolete
11853 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
11855 * cpp.texi: Append a trailing full-stop to xrefs where needed.
11857 2000-07-26 Dave Pitts <dpitts@cozx.com>
11859 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
11861 (mvs_hash_alias): New function.
11862 (mvs_add_alias): Change argument spacing.
11863 (mvs_need_alias): Change aliasing criteria. Added documentation.
11864 (mvs_get_alias): Change to use hashed name. The hashed name prevents
11865 CSECT name collisions.
11866 (mvs_check_alias): Likewise.
11867 (handle_pragma): Change documentation.
11868 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
11869 mode from SImode to DImode.
11870 (iorhi3): Changed LTORG size for insn.
11872 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
11874 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
11875 mem if the address is a mode_dependent_address_p.
11877 2000-07-26 Kazu Hirata <kazu@hxi.com>
11879 * h8300.c (print_operand): Print ":8" when the 'R' operand is
11880 suitable for 8-bit absolute.
11881 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
11882 (OK_FOR_U): Add a case for the 8-bit constant address on the
11885 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
11887 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
11888 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
11889 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
11890 lack of implemented alignment.
11892 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
11894 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
11895 cross-compiling between 64-bit and 32-bit machines.
11897 2000-07-27 Richard Henderson <rth@cygnus.com>
11899 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
11900 (movhicc_astep, movhi_internal_astep): New.
11901 (movsicc_astep, movsi_internal_astep): New.
11902 (movdicc_astep, movdi_internal_astep): New.
11903 (movsfcc_astep, movsf_internal_astep): New.
11904 (movdfcc_astep, movdf_internal_astep): New.
11905 (movxfcc_astep, movxf_internal_astep): New.
11906 (cmovdi_internal_astep, cmovsi_internal_astep): New.
11907 Unify the cmov[ds]i splitters.
11909 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
11911 * real.c (asctoeg): Rename `error' label to unexpected_char_error
11913 2000-07-26 Nick Clifton <nickc@cygnus.com>
11915 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
11916 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
11918 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
11919 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
11921 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
11923 * c-decl.c (finish_enum): Convert enumerations that fit in an
11925 (build_enumerator): In pedantic mode, cast to `int' those that
11928 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
11930 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
11932 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11934 * sh.md (cmpgtdi_t): Must be split.
11935 (cmpgtdi_t+1): New splitter.
11937 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11939 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
11940 warnings for indented directives even if we are skipping.
11942 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
11944 * invoke.texi (strict-prototypes): Remove.
11945 * extend.texi (Deprecated Features): Add strict-prototypes.
11946 (Backwards Compatibility): New node.
11948 2000-07-25 Jakub Jelinek <jakub@redhat.com>
11950 * config/i386/i386.md (andsi_1+1): Allow HImode.
11951 (andsi_1+2): Require q_regs_operand.
11953 2000-07-25 Jakub Jelinek <jakub@redhat.com>
11955 * config/i386/i386.md (call_pop): Check operands[0],
11956 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
11958 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
11959 (call_value): Likewise.
11961 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
11963 * toplev.c (pipe_closed): Delete.
11964 (crash_signal): New. Generate ICE for a fatal signal.
11965 (float_signal): Call crash_signal outside a float-handler
11967 (main): Install crash_signal as handler for core-dumping signals.
11969 2000-07-25 David Edelsohn <edelsohn@gnu.org>
11971 * rs6000.c (print_operand, case 'T'): New case.
11973 * rs6000.md (call_indirect_aix32): Convert to expander of
11974 scheduled instructions.
11975 (call_indirect_aix64): Likewise.
11976 (call_value_indirect_aix{32,64}): Likewise.
11977 (call, call_value): Invoke expanders for AIX. Fall through to
11979 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
11980 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
11981 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
11982 only "g" constraint.
11983 (call_nonlocal_aix64): Likewise.
11984 (call_value_nonlocal_aix{32,64}): Likewise.
11985 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
11987 (call_value_nonlocal_sysv): New pattern.
11988 (indirect_jump{si,di}): Use new 'T' modifier.
11989 (tablejump{si,di} matchers): Likewise.
11990 (return_internal_{si,di}): Likewise.
11991 (return_eh_{si,di}): Likewise.
11993 2000-07-24 Richard Henderson <rth@cygnus.com>
11995 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
11996 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11997 * config/ia64/ia64.md (movdi_internal): Use it.
11999 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
12001 * cppexp.c: Warn about unary + if -Wtraditional.
12002 * cpplex.c (lex_line): Always set BOL on the first token of a line.
12004 2000-07-24 Michael Meissner <meissner@redhat.com>
12006 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
12009 2000-07-24 Nick Clifton <nickc@cygnus.com>
12011 * config/arm/arm.c (emit_multi_reg_push): Generate a
12012 REG_FRAME_RELEATED_NOTE that is compatable with the code in
12013 dwarf2out_debug_frame_expr.
12015 2000-07-24 Jason Merrill <jason@redhat.com>
12017 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
12018 UNALIGNED_INT_ASM_OP.
12019 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
12020 a location expression.
12021 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
12022 assume indirect access if we're saving the CFA address exactly.
12024 * Makefile.in (bootstrap): Move -BstageN/ to the end.
12026 2000-07-24 Jakub Jelinek <jakub@redhat.com>
12028 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
12031 2000-07-24 Michael Meissner <meissner@redhat.com>
12033 * invoke.texi (D30V Options): Add d30v options.
12035 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
12037 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
12038 needed by our gcse pass anymore.
12039 (free_pre_mem): Corresponding changes.
12040 (compute_pre_data): Do not call compute_transpout anymore.
12042 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
12043 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
12046 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
12047 (compute_pre_data): Do it here instead.
12049 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
12051 (pre_delete): Corresponding changes.
12053 2000-07-23 Mark Mitchell <mark@codesourcery.com>
12055 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
12056 to figure out whether or not a variable has already been emitted.
12058 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
12060 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
12061 instead of gen_call.
12063 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
12065 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
12067 2000-07-23 Kazu Hirata <kazu@hxi.com>
12069 * h8300.c: Fix formatting.
12071 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
12073 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
12074 for `long' switch expression into a plain warning.
12076 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
12077 (yylex): Don't pedwarn for "inline" in C99 mode.
12079 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
12081 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
12082 ggc_alloc): Likewise.
12083 * bb-reorder.c (dump_scope_forest_1): Likewise.
12085 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
12087 * reload.c (find_reloads_toplev): Add new parameter
12088 "address_reloaded".
12089 (find_reloads): Add new parameter to find_reloads_toplev calls.
12091 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
12093 * collect2.c (main): Typo fixed.
12094 * diagnostic.c: Typo fixed.
12095 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
12096 * eh-common.h: Typo fixed.
12097 * emit-rtl.c (start_sequence): Typo fixed.
12098 * flow.c (find_label_refs): Typo fixed.
12099 (calculate_global_regs_live): Typo fixed.
12100 (mark_regno_cond_dead): Typo fixed.
12101 (create_edge_list): Typos fixed.
12102 (verify_edge_list): Typo fixed.
12103 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
12104 * loop.c (strength_reduce): Typo in function name fixed.
12105 * rtl.h: Added comments. Typo in function name fixed.
12106 * rtlanal.c: Typo in function name fixed.
12107 (insn_dependant_p): Rename to ...
12108 (insn_dependent_p): ... this.
12109 (computed_jumo_p): Typo fixed.
12111 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12113 * system.h (__FUNCTION__): Wrap definition in #ifndef.
12115 2000-07-21 David Edelsohn <edelsohn@gnu.org>
12117 * rs6000.h (SIZE_TYPE): Define.
12119 2000-07-21 Mark Mitchell <mark@codesourcery.com>
12121 * ssa.c (rename_insn_1): Don't rename registers that are
12124 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
12126 * diagnostic.c (trim_filename, fancy_abort): Moved here from
12128 (fatal_function, set_fatal_function): Removed.
12129 (fatal): Don't prepare for or call the fatal_function.
12130 (diagnostic_lock, error_recursion): New.
12131 (diagnostic_for_decl, report_diagnostic): Guard against
12132 re-entering the error reporting routines.
12133 (fancy_abort): Assume function is not NULL.
12135 * errors.c (fancy_abort): New. Assume function is not NULL.
12136 * tradcpp.c (fancy_abort): Assume function is not NULL.
12138 * system.h: Provide default definition of __FUNCTION__.
12139 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
12140 Always use __FUNCTION__ in definition of abort.
12141 * tree.h: Likewise.
12142 * varray.h: Likewise.
12143 * toplev.h: Likewise. Don't prototype set_fatal_function.
12145 2000-07-20 Geoff Keating <geoffk@cygnus.com>
12147 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
12149 * glimits.h: Don't do #if defined for ARCH_PPC.
12151 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
12152 constants of size no larger than a pointer should go in the TOC.
12153 Add 'MODE' parameter.
12154 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
12155 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
12156 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
12157 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
12158 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
12159 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
12160 (rs6000_legitimize_address): Likewise.
12161 (rs6000_emit_move): Likewise.
12162 (rs6000_select_rtx_section): Likewise.
12163 (output_toc): Deal properly with outputting small constants like
12164 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
12165 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
12166 MODE parameter. Put small constants in the TOC.
12168 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
12170 (rs6000_emit_move): When reload calls us with an illegitimate
12171 address, exit early. Move the change_address calls to one place
12172 at the end of the routine. Merge the SImode and DImode expanders.
12173 When called by reload to put an integer into a FP register, force
12176 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
12178 (rs6000_hash_constant): Hash mode too.
12179 (toc_hash_function): Allow for key_mode.
12180 (toc_hash_eq): Structures are different if key_mode differs.
12181 (output_toc): Add 'mode' parameter. Save key_mode.
12182 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
12183 Pass 'mode' parameter.
12184 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
12186 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
12187 for vtable references.
12189 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
12190 choice, don't put integer values in FP regs.
12192 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
12194 * flow.c (verify_flow_info): Revamp code to verify that the
12195 head and end of each basic block are in the insn chain.
12197 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
12199 * gcse.c (record_one_set): Prepend instead of append onto
12200 reg_set_table, making it O(n) instead O(n^2).
12201 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
12202 Use a queue instead of a stack as worklist.
12204 2000-07-20 Kazu Hirata <kazu@hxi.com>
12206 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
12207 * h8300.h (OK_FOR_T): New.
12208 (EXTRA_CONSTRAINT): Support OK_FOR_T.
12209 * h8300.md: Use inc/dec.[wl] for increment/decrement
12210 by 1 and 2 in HI and SI modes.
12212 2000-07-20 Jim Wilson <wilson@cygnus.com>
12214 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
12215 larger than 14 bits.
12217 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
12219 * cppmacro.c (CAN_PASTE_AFTER): New macro.
12220 (count_params): Don't set GNU_REST_ARGS on anything.
12221 (save_expansion): Set PASTE_LEFT only on tokens for which
12222 CAN_PASTE_AFTER is true, or which are named operators.
12224 * cpplex.c (parse_args): Distinguish between a rest argument
12225 given one empty argument, and a rest argument given zero arguments.
12226 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
12227 deletion of previous token based on that.
12228 (get_raw_token): Flatten some control structure.
12230 * cpplib.h (CPP_LAST_EQ): Correct.
12231 (VOID_REST): New token flag.
12232 (GNU_REST_ARGS): Delete.
12234 * tradcpp.c (main): Don't munge -D options.
12235 (make_definition): Bring -D handling in line with cpplib.
12236 (do_define): Strip all leading whitespace from macro definitions.
12238 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
12240 * Makefile.in (tradcpp): Depend on intl.o and version.o.
12242 2000-07-20 Bruce Korb <bkorb@gnu.org>
12244 * fixincl/check.tpl: strip the platform specific types before testing
12245 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
12246 * fixincl/fixincl.tpl: use platform specific types
12247 * fixincl/fixlib.h: include the platform specific types
12248 * fixincl/inclhack.def(gnu_types): don't supply the types
12249 * fixincl/fixincl.x: regen
12251 2000-07-19 Jim Wilson <wilson@cygnus.com>
12253 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
12256 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
12258 * tradcpp.c (rescan): Do not recognize directives when the #
12261 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
12263 Implement C++ named operators.
12265 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
12266 of operators allowed in #if and having an _EQ variant. Add
12267 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
12268 (cpp_token flags): Add NAMED_OP.
12269 (enum node_type): Add T_OPERATOR.
12270 (struct cpp_hashnode): Add code slot to value union.
12271 * cpphash.h (spec_nodes): Remove n_defined.
12273 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
12274 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
12275 (is_macro_disabled): Tweak error messages.
12277 * cpplib.c (get_define_node): Disallow all named operators as
12278 macro names. Tweak error messages.
12279 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
12281 * cppinit.c (builtin_array): Add entries for the named operators.
12282 * cppexp.c (lex): Check for CPP_DEFINED token.
12283 (priority table): Add entries for CPP_MIN and CPP_MAX.
12284 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
12286 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
12288 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
12289 larger than the array of cuids.
12290 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
12293 2000-07-19 Bruce Korb <bkorb@gnu.org>
12295 * fixinc/fixincl.c: Convert to using a table of environment variables
12296 and activate the auto-edit marker on the fixed output files.
12297 * fixinc/fixlib.h: Define the environment table
12298 * fixinc/fixincl.sh: export the ${INPUT} dir
12299 * fixinc/check.tpl: likewise
12301 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
12303 * gcc.c (.h spec): Fix typo.
12305 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
12307 * Makefile.in: Fix tradcif.c path.
12309 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
12311 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
12314 * cpphash.h (TOKEN_NAME): New macro.
12315 (_cpp_spell_operator): Deleted.
12316 (token_spellings): Now _cpp_token_spellings.
12318 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
12319 * cpplex.c: Use OP and TK macros when expanding the
12320 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
12321 store the stringification of the enumeration name (CPP_CHAR,
12322 etc.) in the name slot of token_spellings.
12323 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
12324 token_spellings directly.
12325 * cpplib.c: Use TOKEN_SPELL.
12327 * cpplex.c (_cpp_push_token): If the token being pushed back
12328 is the previous token in this context, just subtract one from
12330 * cppmacro.c (save_expansion): Clear aux field when storing a
12333 2000-07-18 Jakub Jelinek <jakub@redhat.com>
12335 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
12336 buffer, provided it is not NULL.
12338 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
12340 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
12341 case of invalid volatile re-declaration.
12343 2000-07-18 Jakub Jelinek <jakub@redhat.com>
12345 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
12346 (expand_call): Adjust caller.
12348 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
12350 * diagnostic.h (report_diagnostic): Change prototype.
12352 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
12353 diagnostic_for_decl): Change prototype.
12354 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
12355 error, warning, error_with_file_and_line,
12356 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
12357 Adjust call to report_diagnostic, diagnostic_for_decl.
12358 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
12359 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
12361 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
12362 varaible argument list.
12364 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
12366 * cpphash.c: Don't include hashtab.h. Most macro-handling code
12367 moved to cppmacro.c.
12368 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
12369 dump_hash_helper): Delete.
12370 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
12371 cpp_forall_identifiers): New. Implement specialized version of
12372 Vlad's expandable hash table.
12373 (cpp_lookup): Use new functions.
12374 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
12376 * cppmacro.c: New file.
12377 * cppinit.c (dump_macros_helper): New.
12378 (cpp_finish): Iterate over the identifier table directly.
12379 * cpplex.c (parse_name): Calculate the hash of the identifier
12380 while we scan it. Use _cpp_lookup_with_hash when we can.
12382 * cpphash.h: Update prototypes.
12383 (xcnewvec, HASHSTEP): New helper macros.
12384 * cpplib.h: Update prototypes.
12385 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
12386 (cppmacro.o): New rule.
12387 (cpphash.o): Update deps.
12389 * cppmain.c: Do not set pfile->printer if no_output is on.
12391 2000-07-15 Neil Booth <neilb@earthling.net>
12393 * cpplib.c: Change all directive-handler functions to return
12395 * cpphash.h: Update typedefs.
12397 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
12399 * configure: Regenerate.
12401 * extend.texi (Extended Asm): Mention that a memory clobber
12402 does not count as a side-effect.
12404 * unroll.c (copy_loop_body): Fix one instance of using host
12405 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
12408 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
12410 2000-07-17 Richard Henderson <rth@cygnus.com>
12412 * config/ia64/ia64.md (movdi): Split out load address code.
12413 New post-reload splitter for symbolic operands.
12414 (movdi_internal): Abort if we didn't split symbolic operands
12415 when we should have.
12416 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
12417 (ia64_reorg): Split insns when not optimizing.
12418 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
12420 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
12422 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
12423 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
12425 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
12427 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
12429 2000-07-17 Jason Merrill <jason@redhat.com>
12431 * Makefile.in (clean): Remove libgcc directory.
12433 * configure.in (-Wno-long-long check): Use higher-level macros.
12435 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
12437 * simplify-rtx.c (simplify_binary_operation): Recognize
12438 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
12439 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
12440 a CONST_INT, it will always be zero.
12442 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
12444 * loop.c (check_dbra_loop) : Return if more than one condition is
12445 present to control the loop.
12447 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
12449 * mips.c (mips_expand_prologue): Don't calculate the last argument
12450 register unless we need it. When we are calculating this, make
12451 sure FUNCTION_ARG is giving us a REG.
12453 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12455 * flow.c (libcall_dead_p): Use single_set to verify the insn
12456 has only one set and get for analysis.
12457 (propagate_one_insn): Don't pass the PATTERN of the insn.
12459 2000-07-17 Mark Klein <mklein@dis.com>
12461 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
12463 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12465 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
12466 * configure.in (TARGET_GETGROUPS_T): Evaluate.
12467 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
12468 of second argument of getgroups.
12469 * configure, config.in: Rebuilt.
12471 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
12473 * simplify-rtx.c (simplify_relational_operation): Two signed
12474 values with equal high words are less/greater than each other if
12475 their low words are less/greater when considered as unsigned.
12477 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
12479 * configure.in (vax-*-openbsd): Change to new style configuration,
12480 add collect2/float_format information.
12481 * configure: Rebuilt.
12482 * config/vax/openbsd1.h: New.
12483 * config/vax/openbsd.h: New.
12484 * config/vax/t-openbsd: New.
12486 2000-07-17 Chip Salzenberg <chip@valinux.com>
12488 * c-common.c (shorten_compare): Quiet warnings about unsigned
12489 comparisons with zero when they occur in a system header.
12491 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
12493 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
12494 update to describe current practice.
12496 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
12498 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
12499 references to C9X. Change references to -fstd and -flang-isoc9x
12502 * c-common.c (scan_char_table): Allow "z" length modifiers on
12504 (check_format_info): Use TYPE_DOMAIN on the type matched against
12505 for "z" formats, to retrieve the language size_t rather than the
12508 * c-common.c (check_format_info): Do not make a pedantic objection
12509 to the 'L' length modifier if used with a floating point type
12512 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
12513 constants in C99 mode.
12515 2000-07-17 Kazu Hirata <kazu@hxi.com>
12517 * h8300.md: Fix the format of mac.
12518 (movsi_h8300hs): Output a tab after stmac instead of a space.
12520 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
12521 profitable adds/subs sequences.
12523 * fold-const.c: Fix comment typos.
12525 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
12527 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
12529 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12531 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
12533 2000-07-16 Neil Booth <NeilB@earthling.net>
12535 * cpplex.c: Update comments.
12536 * README.Portability: Small update.
12538 2000-07-16 Neil Booth <NeilB@earthling.net>
12540 * README.Portability: Small update.
12542 2000-07-15 Richard Henderson <rth@cygnus.com>
12544 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
12545 * config/ia64/ia64.c (ia64_move_ok): New function.
12546 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
12547 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
12549 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
12551 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
12552 immediately following a paste operator.
12553 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
12554 (cpp_reader_init): Call it, if HOST_EBCDIC.
12555 (cpp_handle_options): Do not sort option list here.
12556 (handle_option): Rename to cpp_handle_option and export.
12557 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
12558 _cpp_get_token directly.
12559 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
12560 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
12561 * cpplib.h: Prototype cpp_handle_option. Update prototype of
12564 2000-07-15 Richard Henderson <rth@cygnus.com>
12566 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
12567 cast around an expression. Tidy other unsigned tests.
12569 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
12571 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
12572 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
12573 (v_message_with_decl): Rename to ...
12574 (format_with_decl): ... this. Tweak
12575 (diagnostic_for_decl): New function.
12576 (fatal_io_error): Use verbatim in lieu of notice.
12577 (announce_function): Use verbatim.
12578 (default_print_error_function): Likewise.
12579 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
12582 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12584 * mips.c (function_arg_pass_by_reference): Don't do automatic
12585 aggregate initialization.
12586 (machine_dependent_reorg): Initialize variable `mode'.
12588 * mips.md (absdi2): Change variable `regno1' to unsigned int.
12589 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
12590 conflicts with sys/param.h macro of the same name.
12591 (reload_outdi): Likewise.
12593 2000-07-15 Michael Meissner <meissner@redhat.com>
12595 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
12596 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
12597 create a new node instead.
12599 2000-07-15 Neil Booth <NeilB@earthling.net>
12601 * README.Portability: Correct example about calling a function
12602 through a pointer to function. Format wide paragraphs.
12604 2000-07-15 Michael Meissner <meissner@redhat.com>
12606 * README.Portability: Update integer suffixes and function
12607 prototype sections.
12609 2000-07-15 Neil Booth <NeilB@earthling.net>
12611 * README.Portability: Small update.
12613 2000-07-15 Neil Booth <NeilB@earthling.net>
12615 * README.Portability: New file.
12617 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
12619 * INSTALL: Give special instructions for building GCC on Irix 6.
12620 * config/mips/x-iris6 (CC): Don't set it.
12623 2000-07-14 Jason Merrill <jason@redhat.com>
12625 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
12626 register in the stack and later in another register, use the new
12629 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
12631 * config/mips/mips.md: (absdi2): Handle sign_extend for
12634 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
12636 * cpplib.c (do_pragma_dependency): Tidy warning messages.
12638 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
12640 * .cvsignore: Correct typo.
12642 2000-07-13 Mark Mitchell <mark@codesourcery.com>
12644 * .cvsignore: Add generated YACC files.
12645 * objc/.cvsignore: New file.
12647 2000-07-14 Neil Booth <NeilB@earthling.net>
12649 * cpplex.c (adjust_column): New funcion.
12650 (skip_whitespace): Use it.
12651 (skip_block_comment): Use it, and warn about /*/* with
12654 2000-07-14 Neil Booth <NeilB@earthling.net>
12656 * cpphash.c (struct macro_info): Add new members.
12657 (_cpp_free_definition): Delete the macro directly.
12658 (count_params): Return void, with first token of
12659 expansion in struct macro_info on success.
12660 (parse_define): Return int. Hoist syntax checking from
12661 save_macro_expansion. Leave call to save_expansion to
12662 _cpp_create_definition.
12663 (alloc_macro): Needs just 2 arguments.
12664 (free_macro): Delete.
12665 (save_expansion): Don't perform syntax check.
12666 (_cpp_create_definition): Call save_expansion.
12668 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12670 * genrecog.c (write_header): Split long string.
12672 * cpphash.c (macro_info): Don't use the `signed' keyword.
12674 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
12676 2000-07-13 Jakub Jelinek <jakub@redhat.com>
12678 * calls.c (stored_args_map): New variable.
12679 (check_sibcall_argument_overlap_1): New.
12680 (check_sibcall_argument_overlap): New.
12681 (expand_call): Initialize stored_args_map.
12682 Call check_sibcall_argument_overlap.
12684 2000-07-13 Bruce Korb <bkorb@gnu.org>
12686 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
12687 (emit_gnu_type): utility procedure for gnu_type_fix
12688 (gnu_type_fix): implement various pre-processor guards around
12689 standard types so these types can be defined over and over
12690 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
12691 types alluded to above will have GNU-compliant base types
12692 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
12693 * fixinc/inclhack.def: add test_text entries and utilize the new
12694 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
12695 * fixinc/fixincl.x: regenerate
12697 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
12699 * diagnostic.c (vline_wrapper_message_with_location,
12700 v_message_with_file_and_line, v_error_with_file_and_file,
12701 v_error_for_asm, v_warning_for_asm, vfatal,
12702 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
12703 vsorry, verror, vwarning, vpedwarn): Remove.
12704 (diagnostic_for_asm): New function.
12705 (pedwarn, error, warning, pedwarn_with_file_and_line,
12706 error_with_file_and_line, warning_with_file_and_line, sorry,
12707 error_for_asm, warning_for_asm, fatal): Reimplement.
12708 (finish_diagnostic): Clear diagnostic info as well.
12710 2000-07-13 Neil Booth <NeilB@earthling.net>
12712 * c-common.h (flag_digraphs): New.
12713 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
12714 * c-lex.c (yylex): Use flag_digraphs to decide whether to
12717 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
12719 * gcc.c (do_spec_1): Add new %B operator.
12720 (set_input): Prepare for %B.
12722 (link_command_spec): Move up with the other tm.h-
12723 overrideable specs. Factor out the portion conditional on
12724 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
12725 (struct compiler): Just have a single spec string. All users
12727 (default_compilers): Remove unnecessary braces.
12728 (static_specs): Update.
12730 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
12732 (C and assembly specs): Use the new named specs, as appropriate.
12734 * objc/lang-specs.h: Use the new named specs.
12735 Remove unnecessary braces.
12737 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
12739 * gcc.c (execute): If a subprocess gets a fatal signal, report
12740 strsignal() of the signal number, and ask for a bug report.
12741 Do not do this for SIGPIPE if there's already been an error.
12743 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
12744 Delete pipe_closed.
12746 * tradcif.c: Remove.
12748 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
12750 * final.c (profile_function): Do not emit profile counters in
12751 the data section, if NO_PROFILE_COUNTERS is defined.
12752 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
12755 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
12756 (FUNCTION_PROFILER): Just emit a call to mcount.
12758 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
12760 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
12762 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
12763 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
12764 traditional, lang_chill, or lang_fortran.
12766 * cppfiles.c: #undef strcmp to suppress warning about macros
12767 used without arguments.
12768 (_cpp_execute_include): Use f, not fname, in "No include path"
12770 (_cpp_pop_file_buffer): New function.
12771 * cpplib.c: Don't include <sys/mman.h>.
12772 (cpp_push_buffer): Set line_base and lineno in new buffer.
12773 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
12775 * cpplex.c: Move all prototypes and structure declarations to the
12776 top of the file. Properly parenthesise some macro arguments.
12777 (cpp_scan_line): New function.
12778 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
12779 don't need to walk up the stack counting.
12781 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12783 * c-common.c (combine_strings): Emit a pedantic warning when a
12784 string length is greater than the minimum ANSI C is required
12787 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
12789 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
12790 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
12792 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12794 * c-decl.c (define_label): Warn about identifier conflicts with
12795 labels in traditional C.
12797 * c-parse.in (unop +): Warn about the unary plus operator for
12800 * c-typeck.c (store_init_value): Warn about automatic aggregate
12801 initialization for traditional C.
12803 * invoke.texi (-Wtraditional): Document new warnings.
12805 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
12807 * Makefile.in (c-errors.o): Fix thinko in dependency.
12809 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
12811 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
12812 -traditional, -ftraditional, or -traditional-cpp was given.
12813 Do not pass -traditional to the preprocessor.
12814 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
12815 preprocessor does it automatically.
12816 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
12818 * ch/lang-specs.h: Always use tradcpp. Do not pass
12819 -traditional, -trigraphs, or -pedantic to the preprocessor.
12820 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
12823 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
12825 * cppexp.c (LOGICAL): Delete macro.
12826 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
12829 * cpphash.c (HASHSIZE): Increase to 4096.
12830 (struct hashdummy): Add hash field.
12831 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
12832 the string values using memcmp.
12833 (cpp_lookup): Set dummy.hash.
12835 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
12837 * configure.in (m88k-openbsd): Express configuration using new fragment
12839 * configure: Rebuilt.
12840 * m88k/aout-dbx.h: New.
12841 * m88k/openbsd.h: New.
12842 * m88k/xm-openbsd.h: New.
12844 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12846 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
12848 2000-07-12 Richard Henderson <rth@cygnus.com>
12850 * reload.c (push_secondary_reload): Make sure to add the new
12851 reload at the end, after acquiring secondary memory.
12853 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12855 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
12857 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
12858 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
12860 * c-parse.in (stmt): Delete unused variables.
12862 * convert.c (convert_to_vector): Likewise.
12864 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
12866 * tree.c (finish_vector_type): Prototype.
12868 2000-07-12 Bruce Korb <bkorb@gnu.org>
12870 * fixinc/fixfixes.c: use xmalloc
12871 * fixinc/fixincl.c(initialize): set program name for xmalloc
12872 * fixinc/fixlib.c(must_malloc): obsolete
12873 (is_cxx_header): no longer used - disabled
12874 (skip_quote): inserted and disabled for future use
12875 * fixinc/fixlib.h: reflects above
12876 * fixinc/fixtests.c: removed dinkleberries
12878 2000-07-12 Neil Booth <NeilB@earthling.net>
12880 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
12881 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
12883 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
12884 struct toklist_dummy): New.
12885 (cpp_free_definition): Free macros with free_macro.
12886 (count_params): Don't save paramter spellings. Save macro
12887 information in a struct macro_info.
12888 (parse_define): Don't allocate a token list.
12889 (save_expansion): Allocate the macro's token list, and
12890 save parameter spellings if necessary. Use TOKEN_SPELL.
12891 (cpp_create_definition): Make list const.
12893 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
12895 * c-typeck.c (pedwarn_c99): Move to
12896 * c-errors.c: ... Here.
12897 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
12898 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
12899 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
12900 (c-errors.o): List dependency.
12902 2000-07-12 Mark Mitchell <mark@codesourcery.com>
12904 * c-parse.c: Remove.
12905 * c-parse.h: Likewise.
12906 * c-parse.y: Likewise.
12907 * objc/objc-parse.c: Likewise.
12908 * objc/objc-pasre.y: Likewise.
12910 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
12912 * gcc.texi: Fix minor typos
12913 * extend.texi: Fix minor typos
12915 2000-07-11 Marc Espie <espie@openbsd.org>
12917 * collect2.c (main): Recognize .lo as object files.
12919 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12921 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
12924 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
12925 with MAP_ANONYMOUS and MAP_ANON.
12926 * configure, config.in: Rebuilt.
12928 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
12930 * diagnostic.c (save_output_state): Remove.
12931 (restore_output_state): Likewise.
12932 (clear_text_info): New function.
12933 (clear_diagnostic_info): Likewise.
12934 (output_text_length, is_starting_newline, output_prefix,
12935 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
12936 prefixing_policy, output_buffer_ptr_to_format_args): New macros
12937 (set_real_maximum_length, output_set_maximum_length,
12938 output_set_prefix, output_get_prefix, output_set_maximum_length,
12939 output_destroy_prefix, init_output_buffer,
12940 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
12941 output_add_newline, output_add_character, output_add_space,
12942 output_append_r, output_append, wrap_text, output_format,
12943 output_do_printf, output_printf, output_do_verbatim,
12944 output_verbatim, verbatim): Use them.
12945 (output_clear): Split into cleat_text_info and
12946 clear_diagnostic_info.
12947 (struct output_state): Move to...
12949 * diagnostic.h: ...Here
12950 (struct output_buffer): Adjust.
12952 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
12954 * cpplex.c (parse_name): No longer inline (premature optimization).
12955 (do_pop_context): Fold into pop_context.
12956 (pop_context): Returns int.
12957 (lex_next): Hoist test for end of directive into pop_context.
12958 (push_macro_context): Returns int; takes just reader and token.
12959 Hoist test for excessive nesting to caller.
12960 (push_arg_context): Returns void; takes just reader and token.
12961 Do not call stringify_arg or get_raw_token.
12962 (get_raw_token): Convert tail recursion through push_arg_context
12963 to a loop at this level. Call stringify_arg here if appropriate.
12964 (maybe_paste_with_next): Convert tail recursion to a while loop.
12965 Hoist test of paste_level to caller.
12967 (stringify_arg): Push arg context at beginning.
12968 (cpp_get_token): Split out core into _cpp_get_token. Call
12969 process_directive here. Throw away CPP_PLACEMARKER tokens.
12970 (_cpp_get_token): Convert tail recursion through
12971 push_macro_context to a loop at this level.
12972 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
12973 _cpp_get_raw_token): Use _cpp_get_token.
12974 (_cpp_skip_rest_of_line): Drop the context stack directly; do
12975 not call pop_context.
12976 (_cpp_run_directive): Call lex_next directly.
12978 * cpphash.h: Prototype _cpp_get_token.
12979 * cppexp.c (lex): Use it.
12980 * cpphash.c (parse_define): Use it.
12981 * cpplib.c (get_define_node, do_undef, parse_include,
12982 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
12983 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
12984 parse_ifdef, validate_else): Use it.
12985 (cpp_push_buffer): Tweak error message; abort if anyone tries
12986 to push a buffer while macro expansions are stacked.
12988 2000-07-11 Donn Terry <donnte@microsoft.com>
12990 * cpplex.c (free_macro_args, save_token): Cast arg of free
12991 and/or xrealloc to PTR.
12992 (_cpp_init_input_buffer): Clear all fields of the base context.
12994 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
12996 * gensupport.c (process_rtx): Make rtl checking stop
12997 complaining about the define_insn while it is being
12998 converted from a define_insn_and_split.
13000 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
13002 * config/mips/mips.c (simple_memory_operand): Access the
13003 INTVAL of the address, not it's containing MEM.
13005 2000-07-11 Bruce Korb <bkorb@gnu.org>
13007 * fixinc/fixtests.c(double_slash): obsolete
13008 (else_endif_label): likewise
13009 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
13010 (libc1_ifdefd_memx): correct initial comment
13011 and omit the #if/#endif pair from the memxxx declarations
13012 * fixinc/fixincl.x: regen
13014 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13016 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
13018 2000-07-11 Neil Booth <NeilB@earthling.net>
13020 * cpp.texi: Update.
13022 2000-07-11 Neil Booth <NeilB@earthling.net>
13024 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
13025 (handle_option): Set digraphs according to standard.
13026 Merge OPT_lang_c89 handler with OPT_std_c89.
13028 * cpplex.c: (lex_line, can_paste): Honour digraphs in
13029 accordance with the digraphs flag.
13031 * cpplib.h: (struct cpp_options): New option digraphs.
13033 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
13034 Bruce Korb <bkorb@gnu.org>
13036 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
13037 * fixinc/fixincl.x: Regenerate.
13038 * fixinc/tests/base/testing.h: Add testcase.
13040 2000-07-10 Richard Henderson <rth@cygnus.com>
13042 * config/ia64/ia64.c (got_symbolic_operand): New.
13043 (symbolic_operand, move_operand): Revert 0701 change.
13044 * config/ia64/ia64.h (PREDICATE_CODES): Update.
13045 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
13046 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
13047 split the offset into a 14-bit low part instead of a 13-bit low part.
13048 (load_fptr): Mark the mem as unchanging.
13049 (load_symptr): Use got_symbolic_operand.
13051 2000-07-10 Nick Clifton <nickc@cygnus.com>
13053 * libgcc2.c (next_stack_level): Cast result of computation to
13054 (void **) so that the assignment does not generate a warning.
13056 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
13058 * flags.h : Add new variable flag_single_precision_constant.
13059 * toplev.c (display_help) : Add -fsingle-precision-constant option.
13060 (flag_single_precision_constant): New.
13061 * c-lex.c (yylex): Convert floating point constant to single
13062 precision constant.
13063 * invoke.texi : Add documentation for this new option.
13065 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
13067 * diagnostic.c (output_octal): Second parameter is unsigned.
13068 (output_long_octal): Likewise.
13069 (output_hexadecimal): Likewise.
13070 (output_long_hexadecimal): Likewise.
13071 (output_format): Adjust arguments extraction. Tweak.
13072 (output_verbatim, verbatim): End variable argument list.
13073 (report_diagnostic): Improve documentation.
13075 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
13077 * c-common.h (build_stmt): Declare.
13078 (build_continue_stmt): Likewise.
13079 (build_break_stmt): Likewise.
13080 (build_return_stmt): Likewise.
13082 * c-decl.c (do_case): Rewrite to do what previously done in
13085 * c-semantics.c (build_stmt): Define.
13086 (build_return_stmt): Likewise.
13087 (build_break_stmt): Likewise.
13088 (build_continue_stmt): Likewise.
13089 (build_case_label): Likewise.
13091 * c-parse.in (BREAK): Change to build tree, then generate RTL.
13092 (CONTINUE): Likewise.
13093 (RETURN): Likewise.
13095 (DEFAULT): Likewise.
13097 * c-parse.y: Regenerate.
13098 * c-pasre.c: Likewise.
13100 2000-07-09 Jason Merrill <jason@redhat.com>
13102 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
13104 * tree.h (STRIP_NOPS): Check for error_mark_node.
13105 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
13106 (dwarf2out_*): Remove duplicate declarations.
13108 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
13109 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
13111 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
13113 * diagnostic.c (wrap_text): New function.
13114 (maybe_wrap_text): Likewise.
13115 (output_add_string): Use it.
13116 (output_format): Likewise.
13117 (count_error): Use verbatim instead of notice.
13118 (report_error_function): Likewise. Don't use plain fprintf.
13119 (finish_diagnostic): New function.
13120 (output_do_verbatim): Tweak. Commonalize functionalities in
13121 output_verbatim and verbatim.
13122 (output_verbatim): Adjust.
13123 (verbatim): Likewise.
13124 (report_diagnostic): Define.
13126 * diagnostic.h (report_diagnostic): Prototype.
13128 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
13130 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
13132 2000-07-09 Neil Booth <NeilB@earthling.net>
13134 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
13135 IShspace, ISspace: Update.
13137 * cppinit.c: ISTABLE: Update.
13140 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
13141 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
13142 (skip_block_comment, skip_line_comment, parse_string,
13143 lex_line): Use is_vspace rather than IS_NEWLINE.
13144 (skip_whitespace, lex_line): Clean up to use is_nvspace.
13145 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
13147 (lex_next): Unconditionally stop if within a directive.
13148 Treat directives within macro invocations as directives
13149 (after parse_args emits error), not as the argument.
13151 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
13153 * diagnostic.c (diagnostic_args): New macro.
13154 (diagnostic_msg): Likewise.
13155 (output_formatted_integer): Likewise.
13156 (output_state): New data type.
13157 (digit_buffer): Make global.
13158 (output_add_integer): Rename to output_decimal. Squeeze
13160 (output_long_decimal, output_unsigned_decimal,
13161 output_long_unsigned_decimal, output_octal, output_long_octal,
13162 output_hexadecimal, output_long_hexadecimal): New functions.
13163 (output_append_r): New function.
13164 (output_append): Tweak.
13165 (output_flush_on): Rename to output_to_stream.
13166 (output_format): Change prototype. Improve documentation. Handle
13167 more format specifiers.
13168 (build_location_prefix): Rename to context_as_prefix.
13169 (output_notice): Rename to output_do_printf.
13170 (output_printf): Tweak.
13171 (line_wrapper_printf): Likewise.
13172 (vline_wrapper_message_with_location): Adjust call to renamed
13174 (v_message_with_decl): Likewise.
13175 (default_print_error_function): Likewise.
13176 (save_output_state): New function.
13177 (restore_output_state): Likewise.
13178 (output_do_verbatim): Likewise.
13179 (output_verbatim): Define.
13180 (verbatim): Likewise.
13182 * diagnostic.h (printer_fn): Change return type from void to int.
13183 Improve documentation.
13184 (output_add_integer): Rename to output_decimal.
13185 (output_flush_on, output_format): Don't export.
13186 (output_verbatim, verbatim): Declare.
13188 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
13190 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
13191 Check whether c divides op1 exactly if operation is not
13194 2000-07-08 Richard Henderson <rth@cygnus.com>
13196 * final.c (final): Do not abort when reg-stack introduces
13199 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
13201 * cpplib.h (struct cpp_name): Now struct cpp_string.
13202 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
13203 CPP_HEADER_NAME): Change to type S.
13204 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
13205 field, a cpp_hashnode *. All references to val.name updated
13206 to use val.str or val.node as appropriate.
13207 (struct cpp_reader): Add spec_nodes field.
13208 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
13210 * cpphash.h (struct spec_nodes): New.
13211 (enum spell_type): Reorder. Only SPELL_STRING tokens use
13212 val.str. All references to 'spelling > SPELL_NONE' updated to
13215 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
13216 pfile->buffer->inc are not NULL before dereferencing them.
13218 * cpplex.c (parse_name): Take a pointer to the current token,
13219 plus current position and limit as args; return the new
13220 position; don't copy the text of a name into the string
13221 buffer, instead call cpp_lookup and store the node pointer.
13222 If extending a token, copy out the text of the old into a
13223 scratch buffer, append the new, look that up and store the new
13224 node pointer. Inline.
13225 (maybe_paste_with_next): If the result of paste is a NAME,
13226 then look up the pasted text and store its node pointer.
13227 (lex_line): Adjust for new parse_name interface.
13228 Check for L"str", L'str' using spec_nodes->n_L.
13229 (spell_token): SPELL_IDENT tokens have their spelling in
13230 val.node->name. Handle SPELL_STRING tokens that don't have
13232 (_cpp_expand_name_space,
13233 (can_paste): Check for L ## "str" using spec_nodes->n_L.
13234 (cpp_get_token, special_symbol): No need to call cpp_lookup.
13235 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
13236 return 1=equal 0=not, not a tristate.
13238 * cpphash.c (var_args_str): Delete.
13239 (find_param): Compare node fields directly.
13240 (is__va_args__): Use CPP_PEDANTIC. Just compare
13241 token->val.node with spec_nodes->n__VA_ARGS__.
13242 (dump_funlike_macro): Don't use var_args_str.
13244 * cpplib.c (_cpp_check_directive): Just walk through
13245 spec_nodes->dirs comparing pointers.
13246 (get_define_node, do_pragma_poison, detect_if_not_defined,
13247 parse_ifdef): The identifier has already been looked up.
13248 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
13250 (do_if): Only call detect_if_not_defined at beginning of file.
13251 (_cpp_parse_assertion): Only copy string pointers for
13252 SPELL_STRING tokens.
13253 (pragma_dispatch): Take a node pointer and examine its name
13255 (_cpp_init_stacks): Also initialize the spec_nodes structure.
13257 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
13259 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
13260 reverse order from the corresponding _cpp_init_* routines.
13262 * cppexp.c (parse_number, parse_charconst, parse_defined,
13263 lex): Check val.node->type instead of calling cpp_defined.
13264 Use spec_nodes entries where appropriate.
13266 * fix-header.c, scan-decls.c: Update for interface changes.
13268 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
13270 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
13271 emitting aux_truncdfsf2.
13273 2000-07-03 Donn Terry (donnte@microsoft.com)
13275 * cppinit.c (print_help): split overlong line into ISO C89
13278 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
13280 * cppexp.c: Update all code for new lexer interface.
13281 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
13282 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
13283 * cpplex.c (token_names): Trim leading CPP_ from names; make
13284 the strings unsigned.
13285 (_cpp_spell_operator): New.
13286 (is_macro_disabled): Disable all macros if rescanning
13288 (_cpp_get_directive_token): Remove.
13290 * cppinit.c: Don't set no_macro_expand.
13291 * cpplib.c (read_line_number, do_line): Check only for EOF,
13293 * cpphash.h: Update prototypes.
13294 * cpplib.h (CPP_VSPACE): Remove.
13295 (struct cpp_reader): Remove no_macro_expand.
13297 2000-07-08 Neil Booth <NeilB@earthling.net>
13299 * cpphash.c (is__va_args__): New function.
13300 (count_params): Fix line reported in error messages. Use
13301 is__va_args__. Don't return ')' on error. Flag GNU style
13302 rest args macro definitions.
13303 (parse_define): Check macro name is not __VA_ARGS__.
13304 (save_expansion): Check identifier in non-varargs-macro is
13305 not __VA_ARGS__. Don't flag GNU_VARARGS.
13306 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
13307 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
13308 than per-token GNU_VARARGS.
13309 * cpplib.h (GNU_VARARGS): Remove.
13310 (GNU_REST_ARGS): New.
13312 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
13314 * i386.md (call_pop, call, call_value_pop): Do not set
13315 current_function_uses_pic_offset_table for calls to static
13316 functions or indirect calls.
13318 2000-07-07 Jim Wilson <wilson@cygnus.com>
13320 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
13321 is_predicate_reg, then take max write_count of register pair.
13323 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13325 * tradcpp.c (main): Rename label `include' to `add_include' to
13326 avoid conflicts with variable `include' in traditional C.
13328 2000-07-07 Jakub Jelinek <jakub@redhat.com>
13330 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
13332 2000-07-07 Jakub Jelinek <jakub@redhat.com>
13334 * sibcall.c (uses_addressof): Add INMEM argument, check for
13335 current_function_internal_arg_pointer outside of MEM rtxs in addition
13337 (sequence_uses_addressof): Update caller.
13339 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
13341 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
13344 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13346 * system.h (UNION_INIT_ZERO): New macro for initializing union
13347 members in structs.
13349 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
13351 2000-07-07 Neil Booth <NeilB@earthling.net>
13353 * cpp.texi: Update.
13355 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
13357 * final.c (final): Detect out of bounds array access to
13358 the insn_lengths array.
13360 2000-07-07 Kazu Hirata <kazu@hxi.com>
13362 * fold-const.c (fold): Fix a comment typo.
13364 2000-07-07 Neil Booth <NeilB@earthling.net>
13366 * cpp.texi: Update to new lexer.
13368 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
13370 * tradcpp.c: New file.
13371 * tradcif.y: New file.
13372 * tradcif.c: New generated file.
13374 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
13375 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
13376 dependencies of C. Install tradcpp from install-common, in
13379 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
13381 * cppinit.c: Include cppdefault.h. Refer to
13382 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
13383 to GCC_INCLUDE_DIR and its length.
13384 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
13385 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
13386 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
13388 (include_defaults_array): Move to cppdefault.c.
13390 * cppdefault.h: New file.
13391 * cppdefault.c: New file.
13393 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
13394 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
13395 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
13398 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13400 * reload.c (push_reload): When seeing if can reuse a register,
13401 check extra registers against widest of INMODE and OUTMODE.
13403 2000-07-06 Neil Booth <NeilB@earthling.net>
13405 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
13406 based on full length of predicate.
13408 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
13410 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
13411 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
13413 2000-07-05 Kazu Hirata <kazu@hxi.com>
13415 * h8300-proto.h: Fix formatting.
13416 * h8300.c: Likewise.
13417 * h8300.h: Likewise.
13419 2000-07-05 Jim Wilson <wilson@cygnus.com>
13421 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
13424 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
13426 * invoke.texi: Fix minor typos
13427 * md.texi: Fix minor typos
13429 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
13431 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
13433 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
13435 * cpplex.c: Don't include sys/mman.h.
13436 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
13438 * cpplib.c: Include sys/mman.h and obstack.h.
13439 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
13441 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
13442 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
13443 bother freeing if stack entries (they will be freed with their buffer).
13444 (do_endif): Free if stack entries from the buffer obstack.
13445 (push_conditional): Allocate if stack entries from the buffer obstack.
13447 (find_answer): Rename to _cpp_find_answer.
13448 (do_assert, do_unassert): Update.
13450 * cpphash.h: Update prototypes.
13451 (xobnew): New convenience macro.
13452 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
13454 (struct cpp_hashnode): Remove disabled field.
13456 * cppinit.c: Don't include hashtab.h or splay-tree.h.
13457 (report_missing_guard): Moved to cppfiles.c.
13458 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
13460 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
13461 cpp_cleanup_includes. Don't destroy hashtab or
13462 all_include_files here.
13463 (cpp_finish): Use _cpp_report_missing_guards.
13465 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
13466 (_cpp_init_include_table): Rename _cpp_init_includes.
13467 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
13469 * cppexp.c (parse_assertion): Update for new name of
13472 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
13474 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
13476 * cpplib.c (do_ident): s/VSPACE/EOF/
13478 2000-07-05 Neil Booth <NeilB@earthling.net>
13480 * cpplex.c: Fix trigraph replacement within strings.
13482 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13484 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
13486 * xcoffout.c (assign_type_number): Constify.
13487 (xcoffout_source_file): Add static prototype. Don't needlessly
13488 cast away const-ness.
13490 2000-07-04 Jason Merrill <jason@redhat.com>
13492 * frame.h (frame_state): Move base_offset to end.
13494 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
13496 * calls.c (emit_library_call_value_1): Revert previous change.
13498 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
13500 * fix-header.c (struct partial_proto): Remove unnecessary fields.
13501 (recognized_extern, recognized_function, read_scan_file):
13502 Update for new scheme.
13503 (check_protection): It's still a multiple include guard even
13504 if it doesn't always trigger.
13505 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
13507 * scan.h: Declare struct cpp_token. Update prototypes.
13509 2000-07-03 Neil Booth <neilb@earthling.net>
13510 Zack Weinberg <zack@wolery.cumb.org>
13512 Complete overhaul of the lexer and macro expander.
13514 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
13515 arg, arglist, argdata, reflist, collect_objlike_expansion,
13516 collect_funlike_expansion, collect_params,
13517 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
13518 unsafe_chars, macarg, compare_defs, special_symbol,
13519 scan_arguments, stringify, funlike_macroexpand,
13520 _cpp_quote_string, monthnames): Delete.
13521 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
13522 _cpp_create_definition, _cpp_dump_definition,
13523 dump_hash_helper): Adjust.
13524 (find_param, count_params, parse_define, var_args_str,
13525 check_macro_redefinition, save_expansion): New.
13527 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
13528 parse_string, output_line_command, trigraph_replace,
13529 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
13530 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
13531 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
13532 _cpp_skip_rest_of_line): Modify.
13534 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
13535 find_position, null_warning, bump_column, expand_name_space,
13536 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
13537 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
13538 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
13539 _cpp_prescan): Delete.
13541 (dump_param_spelling, process_directive, lex_next,
13542 is_macro_disabled, stringify_arg, expand_context_stack,
13543 output_token, make_string_token, alloc_number_token,
13544 special_symbol, duplicate_token, maybe_paste_with_next,
13545 can_paste, prevent_macro_expansion, restore_macro_expansion,
13546 get_temp_token, release_temp_tokens, quote_string,
13547 token_names, token_spellings, _cpp_expand_name_space,
13548 _cpp_glue_header_name, _cpp_reserve_name_space,
13549 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
13550 placemarker_token, eof_token, cpp_context, macro_args,
13551 get_raw_token, parse_arg, parse_args, save_token,
13552 push_arg_context, push_macro_context, pop_context,
13553 do_pop_context, free_macro_args, _cpp_get_line,
13554 _cpp_run_directive): New.
13556 * cpplib.c (validate_else, parse_include, push_conditional,
13557 pass_thru_directive, read_line_number, parse_ifdef,
13558 detect_if_not_defined, _cpp_check_directive, do_define,
13559 do_undef, do_include, do_import, do_include_next, do_error,
13560 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
13561 top_pragmas, do_pragma_gcc, do_pragma_implementation,
13562 do_pragma_poison, do_pragma_system_header,
13563 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
13564 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
13565 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
13566 cpp_defined): Update for new scheme.
13567 (strtoul_for_line, get_define_node, dump_macro_name,
13568 _cpp_check_linemarker, _cpp_parse_assertion): New.
13569 (_cpp_handle_directive, do_pragma_default): Delete.
13571 * cpphash.h (struct predicate): Now struct answer.
13572 (enum spell_type, struct token_spelling, struct directive,
13573 directive_handler): New.
13574 Update prototypes. Remove unused macros.
13575 * cpplib.h: Update prototypes. Remove unused macros,
13576 structure definitions, and fields.
13578 * cpperror.c (print_containing_files, v_message): Adjust.
13579 * cppexp.c (parse_assertion, lex, parse_escape,
13580 _cpp_parse_expr): Adjust.
13581 * cppfiles.c (open_include_file, _cpp_execute_include,
13582 _cpp_compare_file_date, cpp_read_file, read_include_file):
13584 * cppinit.c (dump_special_to_buffer): Delete.
13585 (append_include_chain, merge_include_chains, cpp_reader_init,
13586 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
13587 cpp_finish, handle_option, print_help): Adjust.
13588 * cppmain.c (main): Adjust.
13590 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
13592 * cppspec.c (lang_specific_driver): Use double quotes in error
13595 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
13597 * calls.c (emit_library_call_value_1): Use valreg instead
13598 of hard_libcall_value.
13600 2000-07-03 Geoff Keating <geoffk@cygnus.com>
13602 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
13603 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
13604 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
13612 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
13613 mode instead of wider_mode is being used.
13615 2000-07-03 Jakub Jelinek <jakub@redhat.com>
13617 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
13618 of 'r'. Use q_regs_operand.
13619 (andsi_1+2): Use q_regs_operand.
13621 2000-07-03 Jakub Jelinek <jakub@redhat.com>
13623 * builtins.c (get_memory_rtx): Always put into alias set 0.
13625 2000-07-03 Nick Clifton <nickc@cygnus.com>
13627 * config/arm/arm.md: Fix post increment and pre increment
13628 peepholes so that they do not generate UNPREDICATBLE opcodes.
13629 (ie ones where the increment clobbers the source/destination).
13631 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
13633 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
13634 change too big for -mtiny-stack" a warning, if larger than 63.
13635 (out_set_stack_ptr): Change the logic so -mno-interrupts is
13636 always safe to use on possible future devices.
13637 (function_prologue): Write SPH before SPL, for consistency.
13638 If interrupt_func_p true, we know we have enabled interrupts.
13639 (avr_num_arg_regs): New function. Round up to even number of
13640 bytes if no -mpack-args or if calling a libgcc function.
13641 (function_arg, function_arg_advance): Use it.
13642 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
13643 Output "movw" if available.
13644 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
13645 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
13646 (asm_output_section_name): Add blanks for consistent output.
13647 (encode_section_info): Set TREE_READONLY for progmem data to
13648 avoid gas warnings about changed section attributes.
13649 (avr_hard_regno_mode_ok): Force non-QImode data to start in
13650 even numbered registers on devices with "movw".
13651 * config/avr/avr.h (MASK_*): Define bits for target_flags.
13652 (TARGET_SWITCHES): Mark help strings for translation.
13653 Add new -mpack-args and -menhanced switches.
13654 (TARGET_OPTIONS): Mark help strings for translation.
13655 (progmem_section): Add section attributes.
13656 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
13657 Output "movw" if available.
13658 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
13660 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
13661 call convention (arguments aligned on even registers).
13662 (_cleanup, _exit): Make weak symbols libc can override.
13664 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13666 * fp-bit.h: New file.
13668 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
13669 Comment #endif statements.
13670 (__thenan_sf, __thenan_df): Add missing braces around initializer.
13672 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
13674 * gcse.c (compute_pre_data): Compute ae_kill using other local
13675 properties instead of calling compute_ae_kill.
13677 * alias.c (init_alias_analysis): Do not call
13678 prologue_epilogue_contains until after reload has completed.
13680 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
13682 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
13683 (genrtl_finish_compound_stmt): Likewise.
13684 (genrtl_compound_stmt): Change to return void.
13686 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
13687 move code from here to ...
13688 (genrtl_compound_stmt): ... here.
13689 (genrtl_finish_compound_stmt): Remove.
13690 (expand_stmt): Add comment.
13692 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
13694 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
13697 2000-07-02 Jakub Jelinek <jakub@redhat.com>
13699 * cpplib.h (struct cpp_reader): New field include_depth.
13700 (struct cpp_printer): Rename last_bsd to last_id.
13701 * cppfiles.c (read_include_file): Bump include_depth.
13702 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
13703 (output_line_command): Output correct #line if a header
13704 is including itself and is not protected against multiple inclusion.
13705 Use include_depth instead of buffer_stack_depth, last_id instead of
13707 * cppinit.c (cpp_start_read): Initialize last_id instead of
13710 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
13712 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
13713 (c-semantics.o): New target.
13715 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
13716 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
13717 (genrtl_clear_out_block): Likewise.
13718 (genrtl_goto_stmt): Likewise.
13719 (genrtl_expr_stmt): Likewise.
13720 (genrtl_decl_stmt): Likewise.
13721 (genrtl_if_stmt): Likewise.
13722 (genrtl_while_stmt): Likewise.
13723 (genrtl_do_stmt): Likewise.
13724 (genrtl_return_stmt): Likewise.
13725 (genrtl_for_stmt): Likewise.
13726 (genrtl_break_stmt): Likewise.
13727 (genrtl_continue_stmt): Likewise.
13728 (genrtl_scope_stmt): Likewise.
13729 (genrtl_switch_stmt): Likewise.
13730 (genrtl_case_label): Likewise.
13731 (genrtl_begin_compound_stmt): Likewise.
13732 (gerntl_finish_compound_stmt): Likewise.
13733 (genrtl_compound_stmt): Likewise.
13734 (genrtl_asm_stmt): Likewise.
13735 (genrtl_decl_cleanup): Likewise.
13736 (DECL_ANON_UNION_ELEMS): Likewise.
13737 (emit_local_var): Likewise.
13738 (make_rtl_for_local_static): Likewise.
13739 (expand_cond): Likewise.
13740 (expand_stmt): Likewise.
13741 (c_expand_return): Likewise.
13742 (c_expand_start_case): Likewise.
13743 (do_case): Likewise.
13744 (COMPOUND_STMT_NO_SCOPE): Likewise.
13745 (c_expand_asm_operands): Likewise.
13746 (NEW_FOR_SCOPE_P): New macro.
13747 (expand_expr_stmt_fn): New type.
13749 (set_current_function_name_declared): Likewise.
13750 (current_function_name_declared): Likewise.
13751 (lang_expand_stmt): Likewise.
13752 (stmts_are_full_exprs_p): Likewise.
13753 (anon_aggr_type_p): Likewise.
13754 (lang_expand_expr_stmt): Likewise.
13755 (build_case_label): Likewise.
13757 * c-decl.c (lang_expand_expr_stmt): Initialize.
13758 (stmts_are_full_exprs_p): Define.
13759 (current_function_name_declared): Likewise.
13760 (do_case): Likewise.
13761 (lang_expand_stmt): Likewise.
13762 (set_current_function_name_declared): Likewise.
13763 (anon_aggr_type_p): Likewise.
13765 * c-semantics.c: New file.
13766 (expand_cond): Moved from cp/semantics.c.
13767 (genrtl_do_pushlevel): Likewise.
13768 (genrtl_clear_out_block): Likewise.
13769 (genrtl_goto_stmt): Likewise.
13770 (genrtl_expr_stmt): Likewise.
13771 (genrtl_decl_stmt): Likewise.
13772 (genrtl_if_stmt): Likewise.
13773 (genrtl_while_stmt): Likewise.
13774 (genrtl_do_stmt): Likewise.
13775 (genrtl_return_stmt): Likewise.
13776 (genrtl_for_stmt): Likewise.
13777 (genrtl_break_stmt): Likewise.
13778 (genrtl_continue_stmt): Likewise.
13779 (genrtl_scope_stmt): Likewise.
13780 (genrtl_switch_stmt): Likewise.
13781 (genrtl_case_label): Likewise.
13782 (genrtl_begin_compound_stmt): Likewise.
13783 (genrtl_finish_compound_stmt): Likewise.
13784 (genrtl_compound_stmt): Likewise.
13785 (genrtl_asm_stmt): Likewise.
13786 (genrtl_decl_cleanup): Likewise.
13787 (make_rtl_for_local_static): Moved from cp/decl.c.
13788 (emit_local_var): Likewise.
13789 (expand_stmt): Define.
13791 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
13792 (c_expand_return): Likewise.
13793 (c_expand_start_case): Likewise.
13795 2000-07-01 Richard Henderson <rth@cygnus.com>
13797 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
13798 with the low 13 bits set.
13799 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
13800 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
13801 of the low 13 bits into a CONST plus an adddi3.
13802 (load_symptr): Set RTX_UNCHANGING_P.
13804 See ChangeLog.3 for earlier changes.