1 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
3 * config/sh/sh.md (movdf): When splitting load into pair of
4 registers, don't clobber the register used in the address too
7 2001-01-05 Jeffrey Oldham <oldham@codesourcery.com>
9 * varasm.c (mark_constant_pool): Improve initial comments.
10 (mark_constants): Move marking of constants to mark_constant.
11 (mark_constant): New function to recursively mark all constants
12 referred to by a constant.
14 2001-01-05 Catherine Moore <clm@redhat.com>
16 * dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
18 2001-01-05 Phil Edwards <pme@sources.redhat.com>
20 * cp/lang-options.h: Bring comment in line with reality.
21 * f/lang-options.h: Likewise.
22 * java/lang-options.h: Likewise.
23 * objc/lang-options.h: Likewise.
24 * ch/lang-options.h: Likewise.
25 * f/g77.texi: And update the manual.
27 2001-01-05 Marek Michalkiewicz <marekm@linux.org.pl>
28 Denis Chertykov <denisc@overta.ru>
30 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
31 * config/avr/avr.c (avr_peep2_scratch_safe): New function.
32 * config/avr/avr.md (all peepholes that request a scratch register):
33 Call it, FAIL the peephole if not safe (in interrupt functions).
35 2001-01-05 Mark Mitchell <mark@codesourcery.com>
37 * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
39 2001-01-05 Joseph S. Myers <jsm28@cam.ac.uk>
41 * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
43 * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
44 BUILT_IN_CREAL and BUILT_IN_CIMAG.
45 * c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
46 conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
47 (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
49 * extend.texi: Document these builtins.
51 2001-01-05 Daniel Berlin <dberlin@redhat.com>
53 * c-common.c (lang_get_alias_set): Say we know nothing of
56 * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
58 2001-01-05 Bruce Korb <bkorb@gnu.org>
60 * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
61 their x* equivalent versions for atexit-less systems
62 * fixinc/fixincl.c(main): do not return from main() on atexit-less
63 systems (or any other system any more).
65 2001-01-05 Richard Earnshaw <rearnsha@arm.com>
67 * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
68 output operands. Use arm_hard_register_operand for operand 4.
69 (stmsi_postinc): Similarly.
70 (ldmsi): Use arm_hard_register_operand for opernand 2.
72 * arm.c (arm_hard_register_operand): New function.
73 * arm-protos.h (arm_hard_register_operand): Prototype it.
75 * arm.h (HARD_REGNO_RENAME_OK): Define.
77 Fri Jan 5 16:29:49 MET 2001 Jan Hubicka <jh@suse.cz>
79 * simplify-rtx.c (cfc_args): add "unordered" field.
80 (check_fold_consts): Set unordered field.
81 (simplify_relational_operation): Simplify the unordered
84 * reg-stack.c (swap_rtx_condition): Ensure that the transformation
87 * emit-rtl.c (try_split): Fix code to mark labels.
88 * jump.c (mark_jump_label): Make global.
89 * rtl.h (mark_jump_label): Declare.
91 * predict.c (estimate_probability): Handle unordred comparisons.
93 2001-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
95 * cpp.texi: Update for -MP. Clarify behaviour of -MT.
96 * cppinit.c (initialize_dependency_output): Update.
97 (cpp_finish): Output dummy targets for -MP.
99 (cpp_handle_option): Handle -MP. Don't quote -MT options.
100 * cpplib.h (struct cpp_options): Add deps_phony_targets.
101 * gcc.c (cpp_options): Update to handle -MP.
102 * mkdeps.c (deps_add_target, deps_add_default_target): Update
103 to quote only the default target.
104 (deps_phony_targets): Insert a preceding newline. Rename from
105 deps_dummy_targets for consistency.
108 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
110 * calls.c (emit_library_call_value_1): Support
111 INIT_CUMULATIVE_LIBCALL_ARGS.
112 * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
114 2001-01-04 Richard Henderson <rth@redhat.com>
116 * c-decl.c (finish_struct): Detect flexible array members
117 used in an inappropriate context.
118 * c-typeck.c (really_start_incremental_init): Special case
119 constructor_max_index for zero length arrays.
120 (pop_init_level): Allow initialization of flexible array
121 members. Deprecate initialization of zero length arrays.
122 Don't issue missing initializer warning for flexible array
123 members or zero length arrays.
124 (process_init_element): Don't dereference null DECL_SIZE.
125 * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
126 Don't abort for empty constructors. Use size_binop
127 (output_constructor): Add commentary regarding zero length
128 array futures. Abort if we try to initialize an array of
129 unspecified length with a non-empty constructor in the middle
132 * extend.texi (Zero Length): Update and clarify documentation
133 on static initialization.
135 2001-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
137 * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
138 with more than 32767 words of local storage.
140 2001-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
142 * config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
143 for 'abs', 'labs', and 'fabs'.
144 (c4x_expand_builtin): Likewise.
145 * config/c4x/c4x.h (enum c4x_builtins): Likewise.
147 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
149 * config/sh/sh.md (prget, prset): New insn types.
150 (return delay slot): Dont' allow prset.
151 (call, sfunc delay slot): Don't allow prget.
152 (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
155 2001-01-05 Michael Hayes <mhayes@redhat.com>
157 * loop.h (struct loop_reg): New.
158 (struct loop_regs): Change to use array of `struct loop_reg'.
159 * loop.c: Replace assortment of varrays with single regs array.
160 (count_one_set): Delete may_not_move array argument
161 and use regs array instead. All caller's changed.
162 (count_loop_regs_set): Delete may_not_move and single_usage
163 arguments and use regs array instead. All caller's changed.
164 (find_single_use_in_loop): Replace usage array argument with pointer
165 to regs structure. All caller's changed.
166 (loop_optimize): Delete `moved_once' array.
168 2001-01-05 Michael Hayes <mhayes@redhat.com>
170 * loop.c (prescan_loop): Set loop_info->has_nonconst_call.
171 Use it instead of loop_info->has_call for scanning loop mems.
172 (check_dbra_loop): Replace loop_info->has_call test with
173 loop_info->has_nonconst_call.
175 2000-01-04 Matthew Hiller <hiller@redhat.com>
177 * config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
180 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
182 * fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
183 use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
185 2001-01-04 Joseph S. Myers <jsm28@cam.ac.uk>
187 * c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
188 (flag_short_double, flag_short_wchar): Define.
189 (c_common_nodes_and_builtins): Create many tree nodes shared
190 between C and C++ here instead of in cp/decl.c and ...
191 * c-decl.c (init_decl_processing): ... here.
192 (SIZE_TYPE, WCHAR_TYPE): Don't define.
193 (flag_short_double, flag_short_wchar): Don't define.
194 (record_builtin_type): New function.
195 (build_void_list_node): New function.
196 * c-common.h (flag_short_double, flag_short_wchar,
197 record_builtin_type, build_void_list_node): Declare.
199 Thu Jan 4 21:09:47 2001 J"orn Rennecke <amylaar@redhat.com>
201 * integrate.c (expand_inline_function): Don't put a virtual
202 register into the reg map.
204 * function.c (fixup_var_refs_1): If force_operand didn't put
205 the address into the target, move it there.
207 2001-01-04 Mark Mitchell <mark@codesourcery.com>
209 Special-case tree_decl/tree_list allocations.
210 * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
211 (OBJECT_SIZE): New macro.
212 (NUM_EXTRA_ORDER): Likewise.
213 (extra_order_size_table): New variable.
214 (NUM_ORDERS): New macro.
215 (objects_per_page_table): New variable.
216 (object_size_table): New variable.
217 (G.pages): Use NUM_ORDERS to bound the array.
218 (G.page_tails): Likewise.
219 (DIV_ROUND_UP): Remove.
220 (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
221 (alloc_page): Use OBJECT_SIZE.
222 (size_lookup): Don't make it const.
223 (ggc_alloc): Use OBJECT_SIZE.
224 (ggc_set_mark): Likewise.
225 (ggc_get_size): Likewise.
226 (init_ggc): Set up the object_size_table, objects_per_page_table,
227 and adjust size_lookup.
228 (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
229 (ggc_pop_context): Use NUM_ORDERS.
230 (clear_marks): Likewise.
231 (sweep_pages): Likewise.
232 (poison_pages): Likewise.
233 (ggc_print_statistics): Use OBJECT_SIZE.
235 Thu Jan 4 15:54:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
237 * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
238 Only call array_size_for_constructor if last field and array type
241 2001-01-04 Philip Blundell <philb@gnu.org>
243 * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
244 from bit 31 downwards, if this requires no more insns.
245 (count_insns_for_constant): New helper function for above.
247 2001-01-04 Alexandre Oliva <aoliva@redhat.com>
249 * gencodes.c (output_predicate_decls): Remove empty initializer.
251 2001-01-04 Mark Mitchell <mark@codesourcery.com>
253 * tree.c (copy_node): Remove documentation about obstacks.
254 (buidl1): Check that nobody tries to build 2-argument nodes this
257 2001-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259 * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
262 * gencodes.c (output_predicate_decls): Fill empty initializer
265 2001-01-04 Jakub Jelinek <jakub@redhat.com>
267 * tradcpp.c (deps_file, print_deps_missing_files): New variables.
268 (main): Handle -MG, -MD, -MMD. Bail out if -MG is given without -M
270 (do_include): Handle missing headers like cpp0.
271 * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
272 paths with first include pathname. Don't strcat to uninitialized
275 2001-01-04 Bernd Schmidt <bernds@redhat.com>
277 * regrename.c (regrename_optimize): Don't rename from frame pointer
278 if frame_pointer_needed.
279 (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
280 * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
281 (ia64_reorg): Use it instead of scheduling if ! optimize.
282 (errata_emit_nops): Properly call asm_noperands.
283 (ia64_sched_reorder): Finish cycle if we see an asm.
284 (ia64_variable_issue): Clear scheduling state after asms.
286 2001-01-04 Neil Booth <neil@daikokuya.demon.co.uk>
288 * cpp.texi: Update for -MT.
289 * cppinit.c (initialize_dependency_output): Add a default
290 target if none has been given already.
291 (no_tgt, OPT_MT): New.
292 (cpp_handle_option): Handle -MT. Update -M etc.
293 * cpplib.h (struct cpp_options): Remove deps_target.
294 * gcc.c (cpp_options): Handle -MT.
295 * mkdeps.c (struct deps): Move from mkdeps.h.
296 (deps_calc_target): Rename deps_add_default_target. Add a
297 default target if none has been specified already.
298 * mkdeps.h (struct deps): Move to mkdeps.c.
299 (deps_calc_target): Rename deps_add_default_target.
301 2000-01-03 Richard Henderson <rth@redhat.com>
303 * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
305 * c-typeck.c (push_init_level): Move checks for flexible array
306 members and zero length arrays ...
307 (pop_init_level): ... here. Silently discard empty initializations.
309 * varasm.c (output_constructor): Update for sizeof change to
312 * extend.texi (Zero Length): Clarify semantics.
314 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
316 * configure.in (tm.h): Include isns-codes.h last.
317 * configure: Rebuilt.
319 2001-01-03 Richard Henderson <rth@redhat.com>
321 * config/alpha/alpha.md (addvsi3, addvdi3): New.
322 (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
324 2001-01-03 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
326 * tradcpp.c (main): Make sure finclude() is called with a valid
327 indepth value while handling -include.
329 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
331 * gencodes.c (output_predicate_decls): New function.
333 * machmode.h (GET_MODE_MASK): Arrange for it to be defined
334 even if it is not the first time machmode.h is #included.
335 * config/sh/sh.c (fpul_operand): Declare MODE argument.
336 * tm.texi (PREDICATE_CODES): Document predicate declarations.
337 * gcc.texi (Copyright): Added 2001.
339 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
341 * c-common.c (c_common_lang_init): New function. Warn if format
342 warning options which only have effects when used with -Wformat
343 are used without -Wformat.
344 * c-common.h (c_common_lang_init): Declare.
345 * c-lang.c (lang_init): Call c_common_lang_init.
346 * objc/objc-act.c (lang_init): Call c_common_lang_init.
348 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
350 * configure.in: Check for the mktemp command.
351 * configure: Regenerate.
352 * gccbug.in: Use a separate temporary file $TEMP0 for one use of
353 $TEMP. Create temporary files with mktemp, if available at
354 configure time; otherwise use set -C. Remove temporary files
357 2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
359 * configure.in: Require at least texinfo 4.0. Check for whether
360 Pod::Man is sufficiently recent to regenerate GCC manpages.
361 * configure: Regenerate.
362 * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
364 (GENERATED_MANPAGES): Define.
365 (generated-manpages): New target. Depend on cpp.1 as well as
367 (install-man): Depend on $(GENERATED_MANPAGES) (defined by
368 configure to generated-manpages or empty) rather than on the
369 manpages directly. Remove execute permission from installed
370 gcov.1 as well as cpp.1.
371 * cpp.1, gcov.1: Regenerate.
373 2001-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
375 * builtins.c (expand_builtin_strncmp): Use host_integerp and
376 tree_low_cst. Allow using cmpstrsi in more cases.
378 Wed Jan 3 10:48:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
380 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
383 Wed Jan 3 12:22:32 2001 Alexandre Oliva <aoliva@redhat.com>
385 * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
386 * Makefile.in (HOST_CFLAGS): Mention build-make.
388 Wed Jan 3 08:53:50 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
390 * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
393 2001-01-01 Bernd Schmidt <bernds@redhat.com>
395 * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
398 * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg. All
401 * alias.c (throughout): Use ORIGINAL_REGNO when accessing
402 reg_base_value and reg_known_value arrays.
403 (init_alias_analysis): Add more cases to detect known values.
404 * sched-deps.c (deps_may_trap_p): New function.
405 (sched_analyze_2): Use it.
407 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
409 * combine.c (simplify_shift_const): Even if we're sign-extracting,
410 don't discard an ASHIFTRT if we're shifting in a wider mode.
412 2000-01-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
414 * toplev.c (rest_of_compilation): Don't print basic block information
415 when CFG isn't up to date.
417 2001-01-02 Mark Elbrecht <snowball3@bigfoot.com>
419 * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
420 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
421 (UNALIGNED_SHORT_ASM_OP): Define.
422 (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
424 2001-01-02 Mark Mitchell <mark@codesourcery.com>
426 * fold-const.c (fold_convert): Fix typo.
428 2001-01-02 Richard Henderson <rth@redhat.com>
430 * c-common.h (ASM_INPUT_P): New.
431 * c-parse.in (asm): Set it when needed.
432 * c-semantics.c (genrtl_asm_stmt): Test it instead of the
433 existance of an operand.
435 Tue Jan 2 20:27:07 MET 2001 Jan Hubicka <jh@suse.cz>
437 * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
438 (dwarf2out_frame_debug_expr): Likewise.
439 (mem_loc_descriptor): Handle PRE and POST_MODIFY.
441 Tue Jan 2 20:21:31 MET 2001 Jan Hubicka <jh@suse.cz>
443 * i386.c (ix86_split_to_parts): Return number of part required;
445 (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
447 (ix86_split_long_move): Use number of part returned
448 by ix86_split_to_parts
449 * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
451 (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
452 (LONG_DOUBLE_TYPE_SIZE): Change from constant.
453 (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
454 (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
455 (ALIGN_MODE_128): Add TFmode.
456 (IS_STACK_MODE): Likewise.
457 (HARD_REGNO_NREGS): TFmode needs 3 registers.
458 (HARD_REGNO_OK): Support TFmodes.
459 (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
460 * i386.md (scheduler definitions): Use memory operand to determine
461 fst/fld instructions; use mode attribute to determine real mode of
463 (*tf): New patterns, expanders and splitters; based on XFmode patterns.
464 * invoke.texi (128bit-long-double, 96bit-long-double): Document.
466 2001-01-02 Mark Mitchell <mark@codesourcery.com>
468 * tree.def (TRUTH_NOT_EXPR): Improve documentation.
470 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
472 * expr.c (store_constructor_field): Update ALIGN before calling
475 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
477 * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
480 2001-01-02 Jeffrey Oldham <oldham@codesourcery.com>
482 * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
485 Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
487 * c-decl.c (start_function): Don't warn on third parameter to main.
489 2001-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491 * tsystem.h: Define HAVE_DECL_GETOPT.
493 2001-01-02 Philip Blundell <pb@futuretv.com>
495 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
498 2001-01-02 Richard Henderson <rth@redhat.com>
500 * alpha.md (*ze_and_ne): Duplicate insn condition to split.
502 2001-01-02 Andreas Jaeger <aj@suse.de>
504 * c-decl.c (c_decode_option): Remove support of
507 * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
508 (W_options): Add -Wmissing-noreturn here.
510 * flow.c: Define lang_missing_noreturn_ok_p.
511 (check_function_return_warnings): Use it.
513 * c-common.h: Declare lang_missing_noreturn_ok_p.
515 * c-lang.c (c_missing_noreturn_ok_p): New function.
516 (lang_init): Set lang_missing_noreturn_ok_p.
518 * invoke.texi (Warning Options): Document this.
520 2000-12-27 Phil Edwards <pme@sources.redhat.com>
522 * extend.texi (C++ Extensions): New node for C++ attributes;
523 describe init_priority and com_interface.
524 * invoke.texi: Remove -finit-priority as it now has zero effect.
525 * install.texi: Fix xref syntax.
528 Mon Jan 1 21:28:29 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
530 * config.gcc (sparc64-wrs-vxworks*): New case.
531 * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
533 * config/sparc/sparc.c (sparc_override_options): Do support different
534 pointer and architecture size.
535 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
536 (POINTERS_EXTEND_UNSIGNED): Define.
537 (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
538 (FUNCTION_MODE): Define to be Pmode.
539 * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
541 * function.c (expand_function_end): Properly handle DECL_RESULT
542 and copy when ptr_mode != Pmode.
543 * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
545 2001-01-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
547 * c-common.c (c_common_nodes_and_builtins): Set prototype
548 parameters for __builtin_fputs, __builtin_fputc and
549 __builtin_fwrite. Don't declare plain fputc as a builtin.
551 2001-01-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
553 * loop.c (add_label_notes): Increment the label usage count when
554 a note is added to an insn which refers to a CODE_LABEL.
555 * gcse.c (add_label_notes): Likewise.
557 2001-01-01 Andreas Jaeger <aj@suse.de>
559 * loop.c (scan_loop): Use xmalloc to allocate movables.
561 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
563 * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
564 * reload.c (REGISTER_MOVE_COST): Likewise. Adjust all callers.
565 * reload1.c (REGISTER_MOVE_COST): Likewise.
566 * regclass.c (REGISTER_MOVE_COST): Likewise.
567 (move_cost, may_move_in_cost, may_move_out_cost): Add mode
568 dimension. Adjust all users.
569 (init_reg_sets_1): Iterate on all modes.
570 * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
571 * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
572 * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
573 * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
574 * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
575 * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
576 * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
577 * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
578 * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
579 * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
580 * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
581 * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
582 * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
583 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
584 * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
585 * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
586 * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
587 * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
588 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
589 * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
590 * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
591 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
592 * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
593 * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
594 * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
595 * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
596 * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
598 2001-01-01 Bernd Schmidt <bernds@redhat.com>
600 * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
601 arg VARIES_P. Call it with extra arg.
602 (true_dependence): Likewise.
603 * rtl.h (rtx_addr_can_trap_p): Declare.
604 (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
606 * rtlanal.c (rtx_addr_can_trap_p): No longer static.
607 (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
608 pic offset table register if it's zero. All callers changed.
609 (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
611 Mon Jan 1 07:38:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
613 * explow.c (convert_memory_address, case SYMBOL_REF): Copy
614 STRING_POOL_ADDRESS_P.
616 * config/sparc/sparc.c (input_operand): Properly test for short op.
618 * config.gcc (sparc-*-elf): Include sparc/sol2.h.
619 (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
620 (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
621 * config/sparc/elf.h: No longer include sol2.h.
622 * config/sparc/lifeelf.h: No longer include sparc/elf.h.
623 * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
625 * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
627 2001-01-01 Michael Hayes <mhayes@redhat.com>
629 * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
630 (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
631 (record_initial): Likewise.
632 * unroll.c (copy_loop_body, loop_iterations): Likewise.
633 (remap_split_bivs): Likewise.
635 2001-01-01 Michael Hayes <mhayes@redhat.com>
637 * loop.c (loop_ivs_free): New function.
638 (strength_reduce): Break out from...
640 2001-01-01 Michael Hayes <mhayes@redhat.com>
642 * loop.h (struct iv): New.
643 (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
644 (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
645 'reg_biv_class' fields with 'regs' and 'n_regs'.
646 (struct ivs): Rename 'loop_iv_list' field to 'list'.
647 * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
648 * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
650 2000-12-31 Alexandre Oliva <aoliva@redhat.com>
652 * resource.c (mark_referenced_resources): Abort() before
653 attempting to mark a pseudo register.
654 (mark_set_resources): Likewise.
656 2001-01-01 Michael Hayes <mhayes@redhat.com>
658 * loop.h (REG_IV_CLASS): New accessor macro.
659 * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
660 * unroll.c (REG_IV_CLASS): Likewise.
662 Sun Dec 31 19:20:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
664 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR): New.
665 (loc_descriptor_from_tree, case SAVE_EXPR): New.
667 2001-01-01 Michael Hayes <mhayes@redhat.com>
669 * loop.c (loop_giv_reduce_benefit): Break out from strength_reduce.
670 (loop_givs_dead_check, loop_givs_reduce, loop_givs_rescan): Likewise.
671 (prescan_loop): Set pre_header_has_call in loop_info.
672 * loop.h (struct_iv_class): Add `final_value' and `all_reduced'.
673 (struct loop_info): Add `pre_header_has_call'.
675 * loop.c (loop_bivs_find): Break out from strength_reduce.
676 (loop_bivs_init_find, loop_bivs_check, loop_givs_find): Likewise.
677 (loop_givs_check, loop_biv_eliminable_p): Likewise.
679 * loop.c (LOOP_REG_LIFETIME, LOOP_REG_GLOBAL_P): Define.
680 (scan_loop, record_giv): Use LOOP_REG_LIFETIME and LOOP_REG_GLOBAL_P.
682 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Define.
683 * loop.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Use in place of
684 direct access to uid_luid array.
685 * unroll.c (REGNO_FIRST_LUID, REGNO_LAST_LUID): Likewise.
687 * loop.h (struct loop_movables): New.
688 (LOOP_MOVABLES): New.
689 (struct loop_info): Add movables field.
690 * loop.c (struct movables): Delete. Replace all uses
691 with struct loop_movables.
692 (the_movables): Delete. Replace all uses with movables
694 (loop_movables_add, loop_movables_free): New functions.
695 (scan_loop): Use xmalloc instead of alloca for movables.
696 Call loop_movables_free.
698 * loop.c (debug_loops): New.
700 2000-12-31 Philip Blundell <philb@gnu.org>
702 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Add missing asm
705 2000-12-30 Richard Henderson <rth@redhat.com>
707 * dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
708 Initialize variables properly for DBX_LBRAC_FIRST.
710 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
712 * expr.c (expand_expr, case COMPONENT_REF): Fix typo in last change.
714 2000-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
716 * builtins.c (validate_arglist): New function, use it.
718 2000-12-30 Philip Blundell <philb@gnu.org>
720 * config/arm/arm.c (arm_expand_prologue): Fix typos in error
721 message and comment. Note location of testcase for an unhandled
724 2000-12-30 Jeffrey Oldham <oldham@codesourcery.com>
726 * defaults.h (BUILD_VA_LIST_TYPE): New definition.
727 * tree.c (build_common_tree_nodes_2): Ensure the va_list_type_node
728 is a copy, not an alias.
730 2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
732 * calls.c (calls_function_1, case CONSTRUCTOR): New case.
734 * alias.c (alias_sets_conflict_p): New function.
735 (mems_in_disjoint_alias_sets_p): Use it.
736 (readonly_fields_p): Moved from expr.c; check for record type.
737 (objects_must_conflict_p): New function.
738 * calls.c (expand_call): Use assign_temp as much as possible, use
739 readonly variant if assigned once, and don't set memory attributes.
740 (emit_library_call_value_1, store_one_arg): Likewise.
741 * integrate.c (expand_inline_function): Likewise.
742 * stmt.c (expand_asm_operands, expand_return): Likewise.
743 * expr.c (copy_blkmode_from_reg, store_constructor): Likewise.
744 (store_field, save_noncopied_parts, expand_expr): Likewise.
745 (expand_expr_unaligned): Likewise.
746 (readonly_fields_p): Moved to alias.c.
747 (safe_from_p): Rework handling of SAVE_EXPR.
748 MEMs ony conflict if alias sets conflict; likewise for INDIRECT_REF.
749 * function.c (struct temp_slot): Delete field ALIAS_SET; add TYPE.
750 (assign_stack_for_temp): Use objects_must_confict_p.
751 Set all memory attributes from type, if specified.
752 (mark_temp_slot): Mark TYPE field.
753 * tree.h (alias_sets_conflict_p, readonly_fields_p): New decls.
754 (objects_must_conflict_p): Likewise.
756 * stmt.c (expand_decl): Don't use assign_stack_temp in error case.
757 (add_case_node): No need to copy nodes anymore.
759 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
761 * config/sh/sh.c (split_branches): Don't dereference re-computed
762 `beyond' before checking it's non-NULL.
764 2000-12-29 Robert Lipe <robertl@sco.com>
766 Remove COFF support from i?86-pc-sco3.2v5.
767 * i386/sco5.h (PREFERRED_DEBUGGING_TYPE): Change to Dwarf II.
768 (TARGET_ELF): Now always true.
769 (SUBTARGET_SWTICHES: )Remove -mcoff.
771 * i386/t-sco5 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
772 MULTILIB_EXCEPTION): Nuke coff.
773 (CRTSTUFF_T_CFLAGS_S): Deleted.
774 (TARGET_LIBGCC2_CFLAGS): Added.
776 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
778 * varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO
779 twice. Update desc->rtl and ->label, in case ENCODE_SECTION_INFO
782 2000-12-29 Bernd Schmidt <bernds@redhat.com>
784 * ia64.c (ia64_expand_load_address): Accept additional scratch
785 register argument. All callers & prototype changed.
786 Use scratch register when generating load_symptr insns.
787 * ia64.md (movdi_symbolic): Clobber a scratch register. Use it
788 when calling ia64_expand_load_address.
789 (movdi): Generate movdi_symbolic with additional operand.
790 (load_gprel64): Use pic_offset_table_rtx instead of (reg:DI 1).
791 (load_symptr): Likewise. Use additional operand as a scratch
792 register instead of generating it here.
794 * basic-block.h: Add a comment.
795 * flow.c (PROP_POSTRELOAD): New macro.
796 (update_life_info): Add it to prop_flags.
797 (mark_set_1): If it is set, compute REG_N_SETS for the original
798 register number of a hard reg.
800 * emit-rtl.c (gen_raw_REG): New function.
801 (gen_rtx_REG, gen_reg_rtx, init_emit_once): Use it instead of
803 * print-rtl.c (print_rtx): Print ORIGINAL_REGNO.
804 * final.c (alter_subreg): Update it.
805 * regrename.c (do_replace): Likewise. Use gen_raw_REG.
806 * rtl.def (REG): Update comment.
807 * rtl.h (X0UINT, ORIGINAL_REGNO): New macros.
808 (gen_raw_REG): Declare.
810 2000-12-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
812 * tree.c (get_set_constructor_bits): Use host_integerp and
815 * local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.
817 * toplev.c (main): Call xmalloc_set_program_name.
818 * gcc.c (main): Likewise.
820 2000-12-29 Philip Blundell <philb@gnu.org>
822 * config/arm/arm.c (arm_override_options): Fix typo in warning
825 2000-12-29 Richard Henderson <rth@redhat.com>
827 * config/alpha/alpha.c (alpha_expand_block_move): Initialize
828 src_align and dst_align in bits. Do unaligned quadword loads
829 if possible for BWX too.
830 (alpha_expand_block_clear): Initialize align in bits. Track
831 small leading offsets into a larger alignment. Play games with
832 stq_u for large 4-byte aligned blocks. Use load/mask/store
833 for appropreately aligned heads and tails.
835 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
837 * function.c (assign_parms): Convert arguments passed by
838 reference to the right mode.
840 2000-12-28 Geoffrey Keating <geoffk@redhat.com>
842 * c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
843 on the condition of a FOR statement, so that it gets typechecked
846 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
848 * c-decl.c (grokdeclarator): Prevent crash in case of overflow in
851 * calls.c (emit_library_call_value_1): Add to call_fusage the
852 stack slot assigned to argument passed by reference.
854 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
856 * toplev.h (extern really_sorry): Remove extern declaration for
857 nonexistent function.
859 2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
861 * varasm.c (initializer_constant_valid_p): Indicate subtraction of
862 pointers to the same string constant is absolute.
864 2000-12-28 Joseph S. Myers <jsm28@cam.ac.uk>
866 * c-common.c (enum format_type): Add strfmon_format_type.
867 (decl_attributes): Handle format attributes strfmon and
869 (FMT_FLAG_USE_DOLLAR, FMT_FLAG_ZERO_WIDTH_BAD,
870 FMT_FLAG_EMPTY_PREC_OK): Define.
871 (format_char_info): Update comment for flag_chars.
872 (format_flag_spec): Add skip_next_char.
873 (format_kind_info): Add left_precision_char.
874 (printf_flag_specs, scanf_flag_specs, strftime_flag_specs,
875 format_types): Update for these new structure members and flags.
876 (time_char_table): Make const.
877 (strfmon_length_specs, strfmon_flag_specs, strfmon_flag_pairs,
878 monetary_char_table): New.
879 (format_types): Add details of strfmon formats.
880 (init_function_format_info): Create default attribute for strfmon.
881 (check_format_info_main): Check the new flags. Handle
882 skip_next_char and left precision.
883 * toplev.c (documented_lang_options): Update description of
885 * extend.texi: Document strfmon format attributes. Document
886 attribute forms such as __printf__. Clarify format_arg attribute
888 * invoke.texi (-Wformat): Update for strfmon formats.
890 2000-12-28 Andreas Jaeger <aj@suse.de>
892 * expmed.c (store_bit_field): Fix last patch.
894 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
896 * config/sh/crt1.asm (start_l): `__SH4_SINGLE_ONLY__' was missing
899 2000-12-28 Alan Lehotsky <lehotsky@tiac.net>
901 * expmed.c (store_bit_field): Correctly compute smallest mode that
902 is sufficient to contain all bits we are storing.
904 2000-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
906 * builtins.c (build_function_call_expr): New function. Use it
907 everywhere in lieu of manually constructing a CALL_EXPR.
909 2000-12-27 Chandrakala Chavva <cchavva@redhat.com>
911 * calls.c (store_one_arg): If parm is passed both in stack and in
912 register and offset is greater than reg_parm_stack_space, split
913 the offset and call emit_push_insn().
915 2000-12-27 Nick Clifton <nickc@redhat.com>
917 * ifcvt.c (noce_emit_store_flag): Handle jump insns that are
920 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
922 * rtl.c (copy_most_rtx, shallow_copy_rtx): Copy frame_related
925 2000-12-27 Bruce Korb <bkorb@gnu.org>
927 * fixinc/Makefile.in: fix for ancient Bourne shell
928 * fixinc/Makefile.BEOS: obsolete
929 * fixinc/Makefile.DOS: obsolete
930 * fixinc/fixincl.sh(LINKS): use `test -d' rather than `ls' for testing
932 2000-12-27 Bernd Schmidt <bernds@redhat.com>
934 * sched-deps.c (get_condition, conditions_mutex_p): New functions.
935 (add_dependence): Use them to avoid adding unnecessary dependencies
936 between conditionally executed insns.
937 (sched_analyze_1, sched_analyze_2, sched_analyze_insn): Don't free
938 dependency lists if current insn is a COND_EXEC.
940 2000-12-27 Geoffrey Keating <geoffk@redhat.com>
942 * config/rs6000/rs6000.md (define_attr "length"): Correct
945 2000-12-26 Kazu Hirata <kazu@hxi.com>
947 * config/h8300/h8300.c: Fix a comment typo.
948 (get_shift_alg): Fix a typo in the assembly code for 12-bit
949 ASHIFTRT in HImode. Do not output extra whitespace after one line
950 of assembly code. Output a tab after an opcode instead of a
952 (emit_a_shift): Output a tab after an opcode instead of a space.
954 2000-12-23 Marek Michalkiewicz <marekm@linux.org.pl>
956 * config/avr/avr.c (out_movqi_r_mr, out_movhi_r_mr, out_movsi_r_mr,
957 out_movsi_mr_r, out_movqi_mr_r, out_movhi_mr_r): Use %o instead of
958 %4 in output templates, do not modify operands passed by the caller.
960 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
962 * builtins.def (BUILT_IN_LABS, BUILT_IN_LLABS, BUILT_IN_IMAXABS):
964 * builtins.c (expand_builtin): Don't handle BUILT_IN_LABS,
965 BUILT_IN_LLABS and BUILT_IN_IMAXABS.
966 * c-common.c (c_common_nodes_and_builtins): Use BUILT_IN_ABS for
967 builtin labs, llabs and imaxabs.
968 (expand_tree_builtin): Don't handle BUILT_IN_LABS, BUILT_IN_LLABS
969 and BUILT_IN_IMAXABS.
971 2000-12-23 Joseph S. Myers <jsm28@cam.ac.uk>
973 * c-common.c (builtin_function_2): New function.
974 (c_common_nodes_and_builtins): Use it to define each pair (foo,
975 __builtin_foo) of builtins in one place.
977 2000-12-22 Joseph S. Myers <jsm28@cam.ac.uk>
979 * gccbug.in: Add libgcj and preprocessor categories.
981 2000-12-22 Bernd Schmidt <bernds@redhat.com>
983 * config/ia64/ia64.c (itanium_reorder): Only schedule stops in
984 the final scheduling pass.
986 2000-12-22 Nick Clifton <nickc@redhat.com>
988 * config/arm/arm.h (struct machine_function): Add new field
989 'lr_save_eliminated'.
990 * config/arm/arm.c (arm_compute_save_reg_mask): Do not include the
991 link register if its save has been eliminated.
992 (output_arm_prologue): Mention if the save of the link register
994 (output_arm_epilogue): Rename 'live_regs_mask' to
996 Test 'saved_regs_mask' for the link register, not regs_ever_live.
997 (arm_expand_prologue): If the link register has not been saved set
998 lr_save_eliminated and emit a USE to prevent later passes from
1001 * dwarf2out_frame_debug_expr: Allow the (scratch) frame
1002 pointer to be initialised from the stack pointer plus a
1005 2000-12-22 Bernd Schmidt <bernds@redhat.com>
1007 * regrename.c (struct du_chain): New field "earlyclobber".
1008 (enum scan_actions): Remove unused entry "note_reference".
1009 (enum scan_actions_name): Likewise.
1010 (note_sets, clear_dead_regs, merge_overlapping_regs): New static
1012 (regrename_optimize): Use them to compute unavailable regs; get
1013 rid of the more simpleminded code we used to have here.
1014 Use a tick array to ensure registers are allocated in a more
1015 round-robin way. Disable code that only optimizes registers
1016 that were seen more than once.
1017 (referenced_regs): Remove variable.
1018 (scan_rtx_reg): New arg "earlyclobber". All callers changed.
1019 Store its value in newly generated du_chain structures.
1020 Add new du_chains at the end, not the start, of the list.
1021 Don't handle the "note_reference" action.
1022 (scan_rtx): New arg "earlyclobber". All callers changed.
1023 (build_def_use): Lose code to keep track of referenced regs.
1025 2000-12-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1027 * Makefile.in (sched-deps.o, sched-rgn.o): Fix dependency typo.
1029 * fp-bit.h (usi_to_float): Add prototype.
1031 * i386.c (ix86_expand_builtin): Delete unused label.
1033 * dwarf2out.c (file_info_cmp): Prototype.
1034 (dwarf2out_line): Hide variable `old_in_use'.
1036 * objc-act.c (objc_fatal): Delete.
1038 * sched-vis.c (visualize_stall_cycles): Remove unused variable.
1040 * system.h (getopt): Fix error in last change.
1042 * varasm.c (assemble_trampoline_template): Constify.
1044 2000-12-22 Jason Merrill <jason@redhat.com>
1046 * collect2.c (main): Use auto_demangling.
1048 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1050 * function.c (assign_parms): Update parm's DECL_INCOMING_RTL
1051 when optimizing PARALLEL to REG.
1053 2000-12-22 Graham Stott <grahams@redhat.com>
1055 * reload.c (update_auto_inc_notes): New, broken out from ...
1056 (find_reloads_address_1): ... use here, also correct possible
1057 use of uninitialised reloadnum.
1059 2000-12-21 David O'Brien <obrien@FreeBSD.org>
1061 * config/freebsd.h (LIB_SPEC): remove -kthread option.
1063 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1065 * resource.c (mark_set_resources): Use MARK_SRC_DEST for
1066 PRE_MODIFY and POST_MODIFY cases.
1068 * rtlanal.c (side_effects_p): Handle PRE_MODIFY and POST_MODIFY.
1070 2000-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1072 * md.texi (Looping Patterns): New node.
1074 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
1076 * gcc.texi, cpp.texi: Update last-updated dates.
1078 2000-12-21 Chandrakala Chavva <cchavva@redhat.com>
1080 * varasm.c (output_addressed_constants): Use language specific
1081 expander on unknown nodes.
1083 2000-12-21 Graham Stott <grahams@redhat.com>
1085 * combine.c (distribute_notes): Handle REG_NON_LOCAL_GOTO notes.
1087 2000-12-21 Bernd Schmidt <bernds@redhat.com>
1089 * Makefile.in (out_object_file): Depend on sched-int.h.
1090 * rtl.h (single_set_1): New macro.
1091 (single_set_2): Renamed from single_set_1 and extra argument added.
1092 * rtlanal.c (single_set_2): Likewise.
1094 * config/ia64/ia64-protos.h (get_bundle_name, ia64_issue_rate,
1095 ia64_adjust_cost, ia64_sched_init, ia64_sched_finish,
1096 ia64_sched_reorder, ia64_sched_reorder2, ia64_variable_issue):
1098 * config/ia64/ia64.c: Include "sched-int.h".
1099 (hard_regno_rename_ok): Also disallow renaming from the various
1101 (ia64_safe_itanium_requiers_unit0, ia64_safe_itanium_class,
1102 ia64_safe_type, init_insn_group_barriers, group_barrier_needed_p,
1103 safe_group_barrier_needed_p, fixup_errata): New static functions.
1104 (rtx_needs_barrier): Handle bundle selector and cycle display
1106 (emit_insn_group_barriers): Accept additional FILE * arg. All
1107 callers changed. Rework to only generate stop bits between
1108 basic blocks that haven't been inserted by scheduling.
1109 (struct bundle, struct ia64_packet): New structures.
1110 (NR_BUNDLES, NR_PACKETS): New macros.
1111 (bundle, packets, type_names): New static arrays.
1112 (ia64_final_schedule): New variable.
1113 (ia64_single_set, insn_matches_slot, ia64_emit_insn_before,
1114 gen_nop_type, finish_last_head, rotate_one_bundle, rotate_two_bundles,
1115 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
1116 find_best_packet, itanium_reorder, dump_current_packet, schedule_stop):
1117 New static functions.
1118 (ia64_issue_rate, ia64_sched_init, ia64_sched_reorder,
1119 ia64_sched_finish, ia64_sched_reorder2, ia64_variable_issue): New
1121 (ia64_reorg): Perform a final scheduling pass.
1122 * config/ia64/ia64.h (CONST_COSTS): Slightly increase SYMBOL_REF costs.
1123 (MAX_CONDITIONAL_EXECUTE, ADJUST_COST, ISSUE_RATE, MD_SCHED_INIT,
1124 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_FINISH,
1125 MD_SCHED_VARIABLE_ISSUE): Define macros.
1126 (ia64_final_schedule): Declare variable.
1127 * config/ia64/ia64.md (attr itanium_class): Add some more classes.
1128 (attr type): Account for them.
1129 (itanium_requires_unit0): New attribute.
1130 (function units): Rewrite.
1131 (some splitters): Don't create scheduling barriers here.
1132 (gr_spill_internal, gr_restore_internal): Don't predicate the
1134 (nop_m, nop_i, nop_f, nop_b, nop_x, cycle_display, cycle_display_1,
1135 bundle_selector): New patterns.
1136 (insn_group_barrier): Now has an operand.
1138 2000-12-21 DJ Delorie <dj@redhat.com>
1140 * dwarf2out.c (simple_decl_align_in_bits): new
1141 (field_byte_offset): Try both the type align and the
1142 decl align, use whichever works, preferring the type align.
1144 2000-12-21 Joseph S. Myers <jsm28@cam.ac.uk>
1146 * gccbug.in: Fix typo.
1148 2000-12-20 Benjamin Kosnik <bkoz@redhat.com>
1150 * Makefile.in (gcc_gxx_target_include_dir): Use instead of
1151 build_tooldir and libstdcxx_incdir.
1153 2000-12-20 Robert Lipe <robertlipe@usa.net>
1155 * haifa-sched.c (schedule_block): Provide empty source statement
1156 if not MD_SCHED_REORDER2.
1158 2000-12-20 Richard Henderson <rth@redhat.com>
1160 * rtl.h (REG_NON_LOCAL_GOTO): New.
1161 * rtl.c (reg_note_name): Update.
1162 * stmt.c (expand_goto): Emit a REG_NON_LOCAL_GOTO note.
1163 * builtins.c (expand_builtin_longjmp): Likewise.
1164 * flow.c (make_edges): Check for REG_NON_LOCAL_GOTO and do
1167 2000-12-20 Marek Michalkiewicz <marekm@linux.org.pl>
1169 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r, out_movhi_mr_r):
1170 Do not output undefined opcodes where source or destination register
1171 overlaps with modified pointer register. Handle (X + d) addresses.
1172 * config/avr/avr.md (*movhi, *movsi, *movsf): Correct insn length
1173 in alternatives with memory operand.
1175 2000-12-20 Richard Henderson <rth@redhat.com>
1177 * c-typeck.c (build_asm_stmt): New, broken out from ...
1178 (c_expand_asm_operands): ... here. Just do rtl expansion.
1179 (c_expand_return): Return the new stmt node.
1180 (c_start_case, do_case): Likewise.
1181 * c-common.c (c_expand_expr_stmt): Likewise.
1182 * c-common.h: Update declarations.
1183 * c-tree.h: Likewise.
1184 * c-semantics.c (build_stmt): Use STMT_LINENO not TREE_COMPLEXITY.
1185 * c-parse.in (fndef): Set DECL_SOURCE_LINE to the open brace.
1186 (nested_function, notype_nested_function): Likewise.
1187 (compstmt): Return the compound statement not the binding level.
1188 (lineno_labeled_stmt): Simplify.
1189 (lineno_stmt, lineno_label): Set STMT_LINENO.
1190 (stmt, label): Return the new stmt node.
1192 2000-12-20 Bernd Schmidt <bernds@redhat.com>
1194 * Makefile.in (OBJS): Add sched-ebb.o.
1195 (sched-ebb.o): New rule.
1196 (sched-vis.o): Depend on hard-reg-set.h and $(BASIC_BLOCK_H).
1197 (haifa-sched.o): Depend on insn-flags.h.
1198 * haifa-sched.c: Include "insn-flags.h".
1199 (priority): Don't access BLOCK_NUM, use the new contributes_to_priority
1201 * rtl.h (schedule_ebbs): Declare.
1202 * sched-int.h (struct sched_info): Add new members
1203 contributes_to_priority and compute_jump_reg_dependencies.
1204 * sched-rgn.c (contributes_to_priority, compute_jump_reg_dependencies):
1206 (region_sched_info): Add them.
1207 * sched-vis.c: Include "hard-reg-set.h" and "basic-block.h".
1208 * sched-ebb.c: New file.
1209 * sched-deps.c (sched_analyze_insn): Add code to handle JUMP_INSNs.
1211 * flow.c (ior_reg_cond, and_reg_cond, elim_reg_cond): Properly
1212 handle all relational operators.
1214 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1216 * final.c (output_addr_const): Use ASM_OUTPUT_SYMBOL_REF.
1217 * tm.texi: Document it.
1219 2000-12-19 Benjamin Kosnik <bkoz@redhat.com>
1221 * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Use build_tooldir
1222 instead of gcc_tooldir.
1224 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
1226 * system.h (getopt): Update prototype to match include/getopt.h.
1228 2000-12-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
1231 * pa.c (basereg_operand): Simplify.
1233 2000-12-19 Bernd Schmidt <bernds@redhat.co.uk>
1235 * haifa-sched.c (rm_line_notes): Arguments are now head and tail,
1236 not block number. All callers and prototype changed.
1237 (set_priorities): Likewise.
1238 (save_line_notes): Add head and tail arguments; all callers and
1240 (restore_line_notes): Likewise. Don't crash on insns generated
1242 (schedule_block): Don't use BLOCK_HEAD/BLOCK_END macros.
1243 Call MD_SCHED_INIT with additional argument.
1244 When starting a new cycle, emit cycle_display insns if available.
1245 Don't stop scheduling when encountering a JUMP_INSN, but add another
1246 call to schedule_more_p in the inner loop.
1247 Call MD_SCHED_REORDER2 after scheduling an insn.
1248 Call MD_SCHED_FINISH once all insns are scheduled.
1249 (sched_init): Compensate for the fact that get_block_head_tail
1250 doesn't include leading notes.
1251 * sched-deps.c (free_deps): Free vectors here.
1252 * sched-rgn.c (compute_block_backward_dependencies): Not here.
1253 (last_was_jump): New static variable.
1254 (schedule_more_p): Test it.
1255 (init_ready_list): Initialize it.
1256 (can_schedule_ready_p): Set it if we have a JUMP_INSN.
1258 * config/i386/i386.h (MD_SCHED_INIT): Add new arg.
1259 * config/m32r/m32r.h (MD_SCHED_INIT): Add new arg.
1260 * config/sparc/sparc.h (MD_SCHED_INIT): Add new arg.
1262 * md.texi (cycle_display): Document.
1263 * tm.texi (MD_SCHED_INIT): Document new arg.
1264 (MD_SCHED_FINISH, MD_SCHED_REORDER2): Document.
1266 * flow.c (ior_reg_cond, nand_reg_cond, not_reg_cond): Rewrite
1267 to use different representation. All callers changed.
1268 (and_reg_cond): Renamed from nand_reg_cond; caller changed.
1269 (init_propagate_block_info): Don't test flags to determine
1270 whether to compute conditional lifetimes.
1271 Adjust code for new representation of conditional lifetimes.
1272 (mark_regno_cond_dead): Similar adjustment.
1273 (free_reg_cond_life_info): Similar adjustment.
1274 (elim_reg_cond): New function.
1275 (flush_reg_cond_1): Use it.
1277 2000-12-19 Catherine Moore <clm@redhat.com>
1279 * reload1.c (reload_combine): Take multi-hard-regs into account
1280 when processing CALL_INSN_FUNCTION_USAGE.
1282 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
1284 * invoke.texi (-print-search-dirs): Make references to cpp refer
1287 2000-12-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1289 * fold-const.c (tree_expr_nonnegative_p): Treat truth values as
1292 Tue Dec 19 00:37:08 2000 J"orn Rennecke <amylaar@redhat.com>
1294 * reload.c (push_reload): When using a dying register for the reload
1295 register in an in-out reload, use outmode if wider than inmode.
1297 2000-12-19 Joseph S. Myers <jsm28@cam.ac.uk>
1299 * config/d30v/d30v.h (EXIT_BODY): Update comment.
1301 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1303 * config.gcc (*-*-linux*): Don't define HAVE_ATEXIT or BSTRING.
1304 * tm.texi (EXIT_BODY): Update documentation.
1305 * config/freebsd.h, config/netware.h, config/arm/coff.h,
1306 config/arm/conix-elf.h, config/arm/unknown-elf.h,
1307 config/d30v/d30v.h, config/mcore/mcore.h, config/pj/pj.h,
1308 sparc/sp86x-aout.h: Remove definitions of HAVE_ATEXIT (some
1309 commented out) and associated comments.
1311 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1313 * c-common.c (STD_C9L, ADJ_STD): Define.
1314 (printf_length_specs, scanf_length_specs): Mark "ll" as standard
1316 (T99_LL): Rename to T9L_LL.
1317 (T99_ULL): Rename to T9L_ULL.
1318 (print_char_table, scan_char_table): Use T9L_LL and T9L_ULL
1319 instead of T99_LL and T99_ULL.
1320 (check_format_info_main): Use ADJ_STD on all format standard
1321 versions being compared.
1322 * c-common.h: Declare warn_long_long.
1323 * c-tree.h: Don't declare warn_long_long.
1325 2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
1327 * COPYING: Update to current
1328 ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
1329 to 19yy as example year in copyright notice).
1331 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1333 * c-lex.c (cb_file_change): Treat in_system_header as strictly
1336 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1338 * cppmain.c: Update print.lineno with -P.
1340 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1342 * c-lex.c: s/change_file/file_change.
1343 * cpplib.h: Similarly.
1344 * cppmain.c: Similarly.
1345 * fix-header.c: Similarly.
1346 * cppfiles.c (stack_include_file): Pass the buffer location and
1347 size to cpp_push_buffer. Generate the file_change callback,
1348 so that sysp is already set.
1349 * cpphash.h: Add _cpp_do_file_change.
1350 * cpplib.c (do_line): Set buffer->sysp directly. Generate the
1351 file_change callback after setting sysp.
1352 (_cpp_do_file_change): Handle FC_ENTER and the FC_RENAME exception
1354 (cpp_push_buffer): Don't generate a callback. Clear sysp.
1355 (cpp_pop_buffer): Clean up logic.
1357 2000-12-18 Benjamin Kosnik <bkoz@redhat.com>
1359 * configure.in (gcc_gxx_include_dir): Simplify.
1360 (libstdcxx_incdir): Export.
1361 * configure: Regenerate.
1362 * Makefile.in (PREPROCESSOR_DEFINES): Add in
1363 GPLUSPLUS_TOOL_INCLUDE_DIR bits here..
1364 (libstdcxx_incdir): Add.
1365 * cppdefault.c (GPLUSPLUS_TOOL_INCLUDE_DIR): Add search path.
1367 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk>
1369 * c-lex.c (lex_lineno): Remove.
1370 (init_c_lex, c_lex): Remove lex_lineno.
1371 (cb_change_file): Update lineno correctly, both before calling
1372 push_srcloc and before leaving the function.
1373 (cb_def_pragma): Set lineno before outputting diagnostics.
1375 Sun Dec 17 18:45:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1377 * print-tree.c (print_node): Print DECL_USER_ALIGN and TYPE_USER_ALIGN.
1378 Print TYPE_MIN_VALUE and TYPE_MAX_VALUE for REAL_TYPE.
1379 Use print_node_brief to print bounds.
1381 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1383 * cpplib.h (struct cpp_reader): Remove references to string_pool
1384 and temp_string_pool.
1385 * cppinit.c (cpp_create_reader, cpp_cleanup): Similarly; using
1386 ident_pool in place.
1387 * cpplex.c (parse_number, unescaped_terminator_p, parse_string,
1388 save_comment, cpp_token_as_text): Similarly.
1389 * cpplib.c (do_define, glue_header_name, parse_assertion): Similarly.
1390 * cppmacro.c (make_number_token, builtin_macro, lock_pools,
1391 unlock_pools, stringify_arg, paste_tokens): Similarly.
1393 Sun Dec 17 12:41:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1395 * dwarf2out.c (loc_descriptor_from_tree, case NOP_EXPR): New case.
1396 (loc_descriptor_from_tree, case CONVERT_EXPR): Likewise.
1397 (loc_descriptor_from_tree, case NON_LVALUE_EXPR): Likewise.
1399 2000-12-17 Richard Earnshaw <rearnsha@arm.com>
1401 * Makefile.in (check-po): Use $(MAKE).
1402 (risky-stage1, risky-stage2, risky-stage3, risky-stage4): Likewise.
1404 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1406 * cppmain.c (check_multiline_token): New function.
1407 (scan_buffer): Use it.
1408 (cb_change_file): Restructure to avoid warning.
1409 * cpperror.c (print_location): Initialize col.
1411 2000-12-14 Philipp Thomas <pthomas@suse.de>
1413 * protoize.c (main): Correctly set locale categories.
1414 * gcc.c (main): Likewise.
1415 * cppmain.c (general_init): Likewise.
1416 * toplev.c (main): Likewise.
1417 * gcov.c (main): Likewise.
1418 * collect2.c (main): Likewise.
1420 2000-12-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1422 * c-common.c (c_common_nodes_and_builtins): Create a
1423 cstring_endlink, use it. Rename int_ftype_string_string to
1424 int_ftype_cstring_cstring, string_ftype_string_int to
1425 string_ftype_cstring_int, and string_ftype_string_string to
1426 string_ftype_cstring_cstring. Prefer sizetype_endlink and
1427 int_endlink to manually recreating them. Fix the prototype
1428 set for __builtin_strspn/__builtin_strcspn.
1430 2000-12-12 Marek Michalkiewicz <marekm@linux.org.pl>
1432 * config/avr/avr.c (out_set_stack_ptr): Update comment.
1433 (print_operand): Add support for %~ and %o.
1435 2000-12-17 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1437 * c4x.h: Add ASM_OUTPUT_DEF definition for bounded pointer code.
1439 2000-12-17 Neil Booth <neil@daikokuya.demon.co.uk>
1441 * c-lex.c: Move main_input_filename handling to FC_ENTER. Clean up.
1442 * cpperror.c (print_containing_files): Get right line number.
1443 (print_location): Output column of 1 if 0.
1444 * cppfiles.c (stack_include_file): cpp_push_buffer handles
1446 * cpphash.h (_cpp_do_file_change): No longer external.
1447 * cpplib.c (do_file_change): Now local to cpplib.c.
1448 (do_line): Fake a buffer stack for preprocessed files.
1449 (cpp_push_buffer): Create a file_change callback. Handle faked
1451 (cpp_pop_buffer): Similarly.
1452 * cpplib.h: BUF_FAKE: New buffer type.
1453 * cppmain.c: Update to handle correct file renaming where a
1454 #line is the first line of the main file, and produce only
1455 the renamed file, not the original file, as output.
1457 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1459 * config/c4x/c4x.md: Remove redundant @s from output patterns.
1461 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1462 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1464 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Call c4x_init_pragma.
1466 * config/c4x/c4x-protos.h (c4x_init_pragma): New prototype.
1468 * config/c4x/c4x.c (c4x_init_pragma): New function.
1469 (c_lex_func): New variable.
1470 (c4x_parse_pragma): Use c_lex_func.
1472 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1473 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1475 * config/c4x/c4x.h (MD_INIT_BUILTINS): Add void_list_node argument
1476 to c4x_init_builtins.
1478 * config/c4x/c4x-protos.h (c4x_init_builtins): Add tree argument.
1480 * config/c4x/c4x.c (c4x_init_builtins): Add tree argument.
1481 (c4x_output_ascii): Fix.
1483 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1484 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1486 * config/c4x/c4x.h (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Define.
1488 * config/c4x/c4x-protos.h (c4x_init_builtins): New prototype.
1489 (c4x_expand_builtin): Likewise.
1491 * config/c4x/c4x.c (c4x_init_builtins): New function.
1492 (c4x_expand_builtin): Likewise.
1494 * config/c4x/c4x.md (floatunsqihf2): New pattern.
1495 (*floatqihf2_set, *fixhfqi_set, fix_trunchfqi2): Likewise.
1496 (fixuns_trunchfqi2, toieee, frieee, *ldhf_conditional): Likewise.
1497 (*ldhf_conditional_noov, movhfcc, trap, cond_trap_cc): Likewise.
1498 (*toieee_movqf_clobber, *frieee_movqf_clobber): Likewise.
1500 2000-12-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1502 * libgcc2.h: Use Wtype for SItype and DWtype for DItype in prototypes.
1503 * libgcc2.c (__absvsi2): Use Wtype and DWtype.
1504 (__absvdi2, __addvsi3, __addvdi3, __subvsi3): Likewise.
1505 (__subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Likewise.
1507 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1509 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Enclose the block
1510 statement in do/while(0).
1512 Sat Dec 16 19:56:24 MET 2000 Jan Hubicka <jh@suse.cz>
1514 * i386.md (ashrsi3_cmpno, ashrhi3_cmpno, ashrqi3_cmpno, lshrsi3_cmpno,
1515 lshrhi3_cmpno): Remove redundant '@' from the template.
1517 * i386.md (cmpstrsi_1): Fix type of the compare.
1519 * genattrtab.c (attr_rtx_cost): New function.
1520 (simplify_test_exp): Avoid overactive inlining; use temporary
1523 Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1525 * diagnostic.c (finish_abort): Deleted.
1526 (fatal): Add code from finish_abort.
1527 (error_recursion, fancy_abort): Call fatal, not finish_abort.
1528 (trim_filename): Remove leading "../".
1529 * diagnostic.h (finish_abort): Deleted.
1530 * toplev.c (crash_signal): Call fatal, not finish_abort.
1532 * stor-layout.c (place_field): Treat overflowing DECL_SIZE_UNIT
1533 as if size were variable.
1535 * expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
1537 2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
1539 * tradcpp.c: T_WARNING: New.
1540 (do_warning): New function.
1541 (finclude): Skip past the newline and increase the line number
1542 before calling output_line_command.
1543 (do_line): Skip the new line after output_line_command. Don't
1544 pre-decrement the line number.
1546 2000-12-15 Diego Novillo <dnovillo@redhat.com>
1548 * i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix references to
1549 _GLOBAL_OFFSET_TABLE_ when using Intel syntax.
1551 2000-12-15 Jakub Jelinek <jakub@redhat.com>
1553 * gcc.c (cpp_options): Pass -fno-operator-names.
1554 * cpplib.h (struct cpp_options): Add operator_names.
1555 * cppinit.c (cpp_create_reader): Initialize it.
1556 (initialize_builtins): If -fno-operator-names, don't add
1557 C++ alternate operator names.
1558 (COMMAND_LINE_OPTIONS): Add -fno-operator-names.
1559 (cpp_handle_option): Clear operator_names.
1561 2000-12-15 Jason Merrill <jason@redhat.com>
1563 * jump.c (jump_optimize_1): Don't delete the line note after the
1564 prologue even if it seems redundant.
1566 * config/arm/arm.c (arm_expand_prologue): Set RTX_FRAME_RELATED_P
1567 on all insns used to adjust the stack.
1569 Fri Dec 15 15:32:16 MET 2000 Jan Hubicka <jh@suse.cz>
1571 * combine.c (cant_combine_insn_p): Get around SUBREGs when determining
1572 hardreg<->reg moves.
1574 Fri Dec 15 14:48:37 MET 2000 Jan Hubicka <jh@suse.cz>
1576 * genrecog.c (add_to_sequence): Remove special case for
1578 (maybe_both_true): Return 1 when falling out of sequence when
1579 trying to find common possition in the pattern.
1581 Fri Dec 15 14:44:51 MET 2000 Jan Hubicka <jh@suse.cz>
1583 * integrate.c (copy_rtx_and_substitute): Copy mode too.
1585 Fri Dec 15 14:11:57 MET 2000 Jan Hubicka <jh@suse.cz>
1587 * flow.c (notice_stack_pointer_modification_1): Cleanup.
1589 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1591 * function.c (adjust_trampoline_addr): New function.
1592 (trampoline_address): Call it instead of round_trampoline_addr().
1593 * tm.texi (TRAMPOLINE_ADJUST_ADDRESS): Document it.
1595 2000-12-14 Zack Weinberg <zack@wolery.stanford.edu>
1597 * cppfiles.c (hack_vms_include_specification): Delete function
1598 (not used since 1998).
1600 Fri Dec 15 03:37:51 2000 J"orn Rennecke <amylaar@redhat.com>
1602 * haifa-sched.c (sched_init): Don't put a note in front of any BARRIER.
1604 2000-12-14 Jim Wilson <wilson@redhat.com>
1606 * alias.c (get_alias_set): Call record_component_aliases for
1608 (record_component_aliases): Handle COMPLEX_TYPE.
1610 2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1612 * fixinc/gnu-regex.c: Disable NLS.
1614 2000-12-14 Richard Henderson <rth@redhat.com>
1616 * config/alpha/alpha.c (alpha_emit_conditional_move): Do not swap
1617 comparison operands when that would create non-canonical rtl.
1619 * config/i386/i386.md (umulsi3_highpart): Remove * from name.
1620 (smulsi3_highpart): Likewise.
1622 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
1624 * gcc.c (cpp_options): Add -remap.
1626 2000-12-14 Neil Booth <neil@daikokuya.demon.co.uk>
1628 * gcc.c (cpp_options): Update to use '&'.
1629 (struct switchstr): Change type of validated to save space.
1630 New member 'ordering'.
1631 (handle_braces, validate_switches): Update to handle '&'.
1633 2000-12-13 Laurynas Biveinis <lauras@softhome.net>
1635 * fixinc/inclhack.def: skip stdio_va_list fix if __DJ_va_list
1637 * fixinc/fixincl.x: regenerated.
1639 2000-12-13 DJ Delorie <dj@redhat.com>
1641 * config.gcc (cygwin, win32, mingw32): Use float-i386.h.
1643 2000-12-13 Tom Tromey <tromey@redhat.com>
1645 * gcc.c (handle_braces): Handle %{<S*} spec correctly.
1647 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1649 * function.c (assign_parms): Optimize incoming PARALLELs into
1652 2000-12-13 Bruce Korb <bkorb@gnu.org>
1654 * fixinc/Makefile.in(*): substantial rewrite to accommodate systems
1655 that cannot handle bi-directional pipes, viz. BeOS and DOS.
1656 * fixinc/fixlib.h(IGNORE_ARG): new macro
1657 (STATIC): define for all of fixinc to use
1658 * fixinc/fixfixes.c(*): eliminate unused arg warnings
1659 * fixinc/fixtests.c(*): ditto
1660 * fixinc/fixincl.c(start_fixer): chain_open now uses const arg list
1661 * fixinc/gnu-regex.c: reorder some includes to avoid _GNU_SOURCE
1662 warning. Also, eliminate the ``#ifdef emacs'' stuff.
1663 (re_syntax_options): make global as it is declared so.
1664 * fixinc/mkfixinc.sh: process the argument list more consistently
1665 (beos/msdosdjgpp): set TARGETS to twoprocess vs. oneprocess
1666 * fixinc/procopen.c(globals): include "fixlib.h" for std defs
1667 * fixinc/server.c(globals): ditto
1668 * fixinc/server.h(defines): ditto
1670 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
1672 * tradcpp.c (special_symbol): Improve test for definedness,
1673 though it is still not perfect.
1674 (do_define): Don't define illegal macro names.
1676 2000-12-07 Aldy Hernandez <aldyh@redhat.com>
1678 * config/mips/elf.h (ASM_OUTPUT_SECTION_NAME): emit @nobits
1679 if changing into .bss section.
1680 * config/mips/elf64.h: same.
1681 * config/mips/iris6.h: same.
1682 * config/mips/netbsd.h: same.
1683 * config/mips/openbsd.h: same.
1685 2000-12-13 Neil Booth <neil@daikokuya.demon.co.uk>
1687 * cppfiles.c (read_name_map): Return null if open () fails.
1688 (remap_filename): Simplify logic. Add ICE if it doesn't work
1689 as expected. Perform secondary lookup attempt on base filename
1692 Wed Dec 13 19:48:04 MET 2000 Jan hubicka <jh@suse.cz>
1694 * flow.c (notice_stack_pointer_modification_1): Notice midifications
1695 using PRE_MODIFY and POST_MODIFY.
1697 Wed Dec 13 17:25:32 MET 2000 Jan Hubicka <jh@suse.cz>
1699 * genoutput.c (process_template): Add sanity checking for '@' templates.
1701 2000-12-13 Bernd Schmidt <bernds@redhat.co.uk>
1703 * simplify-rtx.c (cselib_finish): Free reg_values and used_regs
1706 2000-12-12 Mike Stump <mrs@wrs.com>
1708 * Makefile.in (distclean): Remove safe-ctype.c as well.
1710 2000-12-12 Brad Lucier <lucier@math.purdue.edu>
1712 * tradcpp.c (do_error): Cast difference of pointers to int
1715 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1717 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Move from here...
1718 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): ...to here.
1720 2000-12-12 Jim Wilson <wilson@redhat.com>
1722 * rtlanal.c (may_trap_p): Check operand modes of LE, LT, GE, and GT.
1724 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1726 * configure.in: Simplify language enabling/disabling code.
1727 * configure: Rebuilt.
1728 * ch/config-lang.in (target_libs): Set.
1729 (build_by_default): Set to no.
1730 * cp/config-lang.in (target_libs): Set.
1731 * f/config-lang.in (target_libs): Set.
1732 * java/config-lang.in (target_libs): Set.
1733 * objc/config-lang.in (target_libs): Set.
1735 2000-12-12 Neil Booth <neil@daikokuya.demon.co.uk>
1737 * tradcpp.c (enum node_type): Add T_ERROR.
1738 (do_error): New function.
1739 (directive_table): Add #error handler.
1741 2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1743 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Enable .file/.loc check
1745 * configure: Regenerated.
1746 * config/rs6000/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1747 * config/rs6000/rs6000.c (rs6000_unique_section): Use
1748 STRIP_NAME_ENCODING.
1750 Mon Dec 11 13:51:09 2000 Jeffrey A Law (law@cygnus.com)
1752 * pa.c (cmpib_comparison_operator): Remove GEU and LTU.
1753 * pa.h (PREDICATE_CODES, cmpib_comparison_operator): Corresponding
1756 2000-12-11 Bruce Korb <bkorb@gnu.org>
1758 * fixinc/fixincl.tpl: initialize all fields for warnings
1759 * fixinc/fixincl.x: regenerate
1761 2000-12-11 Neil Booth <neilb@earthling.net>
1763 * tradcpp.h: For tradcpp, NUL is not whitespace.
1765 2000-12-11 Neil Booth <neilb@earthling.net>
1767 * fix-header.c (read_scan_file): Macro expansion is not a file buffer.
1769 2000-12-05 Marek Michalkiewicz <marekm@linux.org.pl>
1771 * config/avr/avr.c (compare_condition, compare_sign_p): New functions.
1772 (compare_diff_p, compare_eq_p): Call compare_condition.
1773 (out_tsthi, out_tstsi): Call compare_sign_p.
1774 (avr_progmem_p): Check for error_mark_node.
1776 2000-12-11 Neil Booth <neilb@earthling.net>
1778 * cpperror.c (print_location): New function.
1779 (print_containing_files): Simplify.
1780 (_cpp_begin_message): Simplify and use print_location.
1781 * cppfiles.c (stack_include_file): Update.
1782 (_cpp_pop_file_buffer): Update.
1783 * cpphash.h (struct cpp_buffer): New members
1784 include_stack_listed and type.
1785 * cpplib.c (_cpp_handle_directive): Buffer->inc is not null.
1786 (run_directive): Take buffer type. cpp_push_buffer cannot fail.
1787 (_cpp_do__Pragma, cpp_define, _cpp_define_builtin, cpp_undef,
1788 handle_assertion): Update.
1789 (cpp_push_buffer): Take a buffer type and file name.
1790 (cpp_pop_buffer): Update. Clear include_stack_listed.
1791 * cpplib.h (input_stack_listing_current): Remove.
1792 (enum cpp_buffer_type): New.
1793 (cpp_push_buffer): New prototype.
1794 * cppmacro.c (builtin_macro): Simplify; buffer cannot be null.
1795 * fix-header.c (read_scan_file): Update.
1797 2000-12-10 Robert Lipe <robertlipe@usa.net>
1799 * install.texi (i*86-*-sco3.2v5*): Remove information duplicated
1802 2000-12-10 Richard Henderson <rth@redhat.com>
1804 * genrecog.c (find_operand): Handle 'V' format code.
1805 (find_matching_operand): New.
1806 (validate_pattern): Accept '=' for an in-out operand if there
1807 is another operand with a matching constraint.
1809 * config/i386/i386.md (andqi_ext_0_cc): Use matching constraint
1812 2000-12-10 Richard Henderson <rth@redhat.com>
1814 * genrecog.c (validate_pattern) [STRICT_LOW_PART]: Fix thinko.
1816 2000-12-09 Richard Henderson <rth@redhat.com>
1818 * genrecog.c (validate_pattern): Verify that ZERO_EXTRACT and
1819 STRICT_LOW_PART as SET_DEST have in-out constraints.
1821 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
1823 * c-common.c (check_function_format): Don't suggest adding format
1824 attributes to functions with no parameter to which to add them.
1826 2000-12-09 Nick Clifton <nickc@redhat.com>
1828 * config/arm/arm.c (arm_expand_prologue): Mark the generated
1829 insn not the set as being DWARF2_FRAME_RELATED_P.
1831 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
1833 * Makefile.in: use $(build_exeext) for all build
1834 system executable targets.
1836 2000-12-09 Laurynas Biveinis <lauras@softhome.net>
1838 * install.texi: remove i[345]86-*-winnt3.5 section.
1839 * configur.bat: removed.
1840 * config/msdos: directory removed.
1842 2000-12-09 Neil Booth <neilb@earthling.net>
1844 * cppfiles.c (NEVER_REREAD, DO_NOT_REREAD): Move from cpphash.h.
1845 * cpphash.h (NEVER_REREAD, DO_NOT_REREAD, ABSOLUTE_PATH): Delete.
1846 * cpplex.c (parse_identifier): Improve diagnostic.
1847 (_cpp_lex_token): Return unconditionally at the end of a directive.
1848 * cpplib.c (read_flag): Verify legality of each flag.
1849 (end_directive): Resotre pfile->skipping before skip_rest_of_line.
1850 (do_line): Use the new read_flag.
1851 * cppmacro.c (struct cpp_macro, parse_arg, replace_args,
1852 check_macro_redefinition, parse_params): Rename var_args to
1855 2000-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
1857 * .cvsignore: Add info files.
1859 2000-12-08 Laurynas Biveinis <lauras@softhome.net>
1861 * config/winnt: Remove obsolete directory.
1862 * install.texi (Configurations): Remove obsolete documentation for
1865 2000-12-08 Joseph S. Myers <jsm28@cam.ac.uk>
1867 * configure.in: Don't define INSTALL_INFO.
1868 * configure: Regenerate.
1869 * Makefile.in (INSTALL_INFO): Remove.
1870 (info): Depend on info files in source directory.
1871 (cpp.info, gcc.info, c-tree.info): Build info files in source
1873 (distclean): Don't remove info files.
1874 (maintainer-clean): Remove info files from source directory.
1875 (install-normal): Depend on install-info.
1876 (install-info): Install info files from source directory, if they
1878 * texinfo.tex: Update to version 2000-11-09.08 from ftp.gnu.org.
1880 2000-12-08 Alexandre Oliva <aoliva@redhat.com>
1882 * lcm.c (optimize_mode_switching): Check whether an insn is a NOTE
1883 before taking its NOTE_LINE_NUMBER.
1885 2000-12-08 Nick Clifton <nickc@redhat.com>
1887 * config/arm/arm.md (load_indirect_jump): Add pool ranges.
1889 * extend.texi: Document ARM "interrupt" function attribute.
1890 Mention that the ARM also support the "naked" function
1893 * config/arm/arm-protos.h (arm_current_func_type): Add
1896 * config/arm/arm.h (EXCEPTION_LR_REGNUM): Define.
1897 (struct machine_function): Add 'func_type' field.
1898 Define bit values for 'func_type' field.
1899 (ARM_FUNC_TYPE): New macro.
1900 (IS_INTERRUPT): New macro.
1901 (IS_VOLATILE): New macro.
1902 (IS_NAKED): New macro.
1903 (IS_NESTED): New macro.
1904 (ARM_INITIAL_ELIMINATION_OFFSET): Use IS_VOLATILE.
1906 * config/arm/arm.c (isr_attribute_args): New Structure. A
1907 list of "interrupt" function attribute modifiers.
1908 (arm_isr_value): New Function: Returns the type of the current
1910 (arm_compute_func_type): New Function: Computes the type of
1911 the current function.
1912 (arm_current_func_type): New Function: Returns the type of the
1914 (use_return_insn): Use arm_current_func_type.
1915 (arm_valid_type_attribute_p): Accept "interrupt" function
1917 (arm_comp_type_attributes): Check "interrupt" attributes.
1918 (arm_valid_machine_decl): Accept "interrupt" function
1920 (arm_function_ok_for_sibcall): Do not allow interrupt
1921 functions to use sibcalls.
1922 (arm_naked_function_p): Delete.
1923 (print_multi_reg): Remove redundant parameter 'hat'.
1924 (arm_compute_save_reg_mask): New Function: Compute a bit mask
1925 of registers saved during the current function's prologue.
1926 (output_arm_return_instruction): Use arm_current_func_type.
1927 Generate return instruction when LR is not poppsed off the
1929 (arm_volatile_func): Delete.
1930 (output_arm_prologue): Use arm_current_func_type and
1931 arm_compute_save_reg_mask.
1932 Note presernce of interrupt functions.
1933 (arm_output_epilogue): Use arm_current_func_type and
1934 arm_compute_save_reg_mask.
1935 (arm_expand_prologue): Use arm_current_func_type and
1936 arm_compute_save_reg_mask.
1937 (arm_init_machine_status): Initialise func_type field, if
1939 (thumb_expand_prologue): Use arm_current_func_type.
1940 (output_thumb_prologue): Use arm_current_func_type.
1942 2000-12-08 Brad Lucier <lucier@math.purdue.edu>
1944 * tradcpp.c (do_include): Make pointer differences 64-bit clean.
1946 Fri Dec 8 08:23:29 2000 J"orn Rennecke <amylaar@redhat.com>
1948 * fp-bit.c (_fpmul_parts): Use USItype variables as inputs
1951 2000-12-07 Mike Stump <mrs@wrs.com>
1953 * Makefile.in (distclean): Remove alloca.c hashtab.c.
1955 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1957 * Makefile.in (HOST_RTL): Add safe-ctype.o.
1958 (safe-ctype.o): New rule.
1959 * system.h: Include safe-ctype.h, not ctype.h. No need to
1962 * cpphash.h: Zap IStable and related macros. Define is_* in
1963 terms of safe-ctype.h macros.
1964 * cppinit.c: Delete the IStable and all related code.
1966 * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and
1967 is_space arrays. Delete initialize_char_syntax. Change all
1968 references to the above arrays to use macros instead.
1969 * tradcpp.h: Define is_idchar, is_idstart, is_space, and
1970 is_nvspace in terms of safe_ctype.h's macros.
1971 * tradcif.y: is_idchar, is_idstart are macros not arrays.
1973 * config/i370/i370.c, config/winnt/dirent.c,
1974 config/winnt/fixinc-nt.c, config/winnt/ld.c:
1975 Use uppercase ctype macros. If we included ctype.h,
1976 include safe-ctype.h instead.
1978 * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test
1979 ISLOWER(c) before calling TOUPPER(c).
1980 * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk.
1981 * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to
1982 wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x).
1984 2000-12-07 DJ Delorie <dj@redhat.com>
1986 * c-decl.c (grokdeclarator): preserve previous alignments when
1987 rebuilding array types.
1989 2000-12-07 Neil Booth <neilb@earthling.net>
1991 * cppfiles.c (struct include_file): Move from cpphash.h.
1992 (_cpp_never_reread): New function.
1993 (open_file, read_include_file): Use it.
1994 (stack_include_file): Set the buffer's sysp according to the
1995 path in which the file was found.
1996 (find_include_file): Don't set sysp.
1997 (cpp_make_system_header, actual_directory): Update.
1998 (_cpp_execute_include): Do #include_next lookup handling here,
1999 not in cpplib.c. Use _cpp_never_reread.
2000 * cpphash.h (struct_include_file): Remove.
2001 (struct cpp_buffer): New member sysp.
2002 (CPP_IN_SYSTEM_HEADER, _cpp_execute_include): Update.
2003 (_cpp_never_reread): New.
2004 * cpplib.c (read_line_number): Rename read_flag. Rework slightly.
2005 (end_directive): Clear line_extension flag.
2006 (_cpp_handle_directive): Set line_extension flag for #number.
2007 (do_include_next): Handle path lookup in _cpp_execute_include.
2008 (do_line): Cleanup to use read_flag. Don't allow flags in #line.
2009 (_cpp_do_file_change): Update.
2010 (do_pragma_once): Use cpp_never_reread. Clean up.
2011 * cpplib.h (struct lexer_state): New member line_extension.
2013 2000-12-07 Richard Henderson <rth@redhat.com>
2015 * flow.c (calculate_global_regs_live): Force the stack pointer live
2016 after reload as well.
2018 2000-12-07 Bruce Korb <bkorb@gnu.org>
2020 * fixinc/Makefile.*(exeext): the variables are exeext, the
2021 substitution expression is build_exeext.
2023 2000-12-07 Neil Booth <neilb@earthling.net>
2025 * c-common.c (parse_in): Make a cpp_reader *.
2026 * cppfiles.c (_cpp_fake_include): Remove.
2027 * cpphash.h: Similarly.
2028 * cpplib.c (do_line): Don't call _cpp_fake_include. A valid
2029 #line always creates a callback; FC_RENAME if there are no
2031 * fix-header.c (read_scan_file): cpp_push_buffer cannot fail.
2032 The first EOF must be our get_char buffer.
2034 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2036 * c-common.c (warn_format_security): New variable.
2037 (check_format_info): Warn about non-literal formats with no format
2038 arguments if either -Wformat-nonliteral or -Wformat-security is
2040 (set_Wformat): Set warn_format_security for settings other than 1.
2041 * c-common.h (warn_format_security): Declare.
2042 * c-decl.c (c_decode_option): Decode -Wformat-security and
2043 -Wno-format-security.
2044 * invoke.texi: Document -Wformat-security.
2045 * toplev.c (documented_lang_options): Include -Wformat-security
2046 and -Wno-format-security.
2048 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2050 * c-common.c (check_format_info): Warn for non-constant format
2051 strings with strftime formats if -Wformat-nonliteral. Where the
2052 format can convert arguments, if the format is not a string
2053 literal and there are no arguments to the format, give a different
2054 warning message from the general non-string-literal case.
2056 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2058 * c-common.c (format_wanted_type): Add reading_from_flag.
2059 (print_char_table): Mark %s and %S formats with flag "R".
2060 (check_format_info_main): Set up reading_from_flag appropriately.
2061 If aflag, always set writing_in_flag rather than relying on the
2062 format used being a scanf format and so having it set.
2063 (check_format_types): Check for formats reading through null
2066 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
2068 * invoke.texi (-Wformat): Document what format features are
2071 2000-12-06 Kazu Hirata <kazu@hxi.com>
2073 * config/h8300/h8300.h: Fix formatting.
2075 2000-12-06 Joel Sherrill <joel@OARcorp.com>
2077 * config.gcc (a29k*-*-rtems*, arm*-*-rtems*, c4x-*-rtems*,
2078 h8300-*-rtems*, hppa1.1-*-rtems, *mips*-*-rtems*): New targets.
2079 * config.gcc (*-rtems*): Add support for gthr-rtems.h.
2080 * gthr-rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
2081 config/h8300/rtems.h, config/mips/rtems.h: New files.
2083 2000-12-06 Mark Kettenis <kettenis@gnu.org>
2085 * config.gcc: Reorganize handling of *-*-gnu*, to share target
2086 specific make details with Linux. Update comments to clarify
2087 the distinction between GNU/Linux and GNU/Hurd.
2089 Wed Dec 6 19:22:02 2000 Jeffrey A Law (law@cygnus.com)
2091 * contrib.texi: Fix my email address. Update Per's
2092 list of contributions.
2094 2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
2096 * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
2097 * collect2.c (scan_libraries): Remove unused `ch'.
2098 (COFF specific stuff): Prototype ldgetname. Declare and prototype
2099 ldbtread and ldclose.
2101 * config/alpha/osf.h: Standarize copyright statement.
2102 * config/arc/arc.h: Likewise.
2103 * config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
2104 * config/arm/arm.c config/arm/arm.h: Likewise.
2105 * config/elxsi/elxsi.h: Likewise.
2106 * config/i386/sco.h: Likewise.
2107 * config/m68k/crds.h config/m68k/hp320.h config/m68k/lynx.h: Likewise.
2108 * config/m68k/m68kv4.h config/m68k/next21.h: Likewise.
2109 * config/m68k/sun3.h: Likewise.
2110 * config/m88k/dgux.h config/m88k/dguxbcs.h: Likewise.
2111 * config/pdp11/2bsd.h config/pdp11/pdp11.h: Likewise.
2112 * config/romp/romp.h: Likewise.
2113 * config/rs6000/aix41.h: Likewise.
2114 * config/sparc/sysv4.h: Likewise.
2115 * config/we32k/we32k.c config/we32k/we32k.h: Likewise.
2116 * fixinc/gnu-regex.c fixinc/gnu-regex.h: Likewise.
2117 * cpplib.h cppexp.c cselib.h profile.c: Likewise.
2118 * longlong.h: Likewise.
2119 * libgcc2.c: Likewise.
2121 2000-12-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2123 * machmode.def: Use correct definition for BITSIZE on targets where
2126 2000-12-06 Bruce Korb <bkorb@gnu.org>
2128 * fixinc/Makefile.*: Reduce differences to (ultimately) reduce
2131 2000-12-06 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2133 * pa.c: Include expr.h before c-tree.h.
2134 (remove_useless_addtr_insns): Use reverse_condition_maybe_unordered
2135 instead of reverse_condition.
2136 (print_operand): Correct predicates for GT, GE, LT and LE. Add
2137 predicates for LTGT, UNLE, UNLT, UNGE, UNGT, UNEQ, UNORDERED and
2139 (cmpib_comparison_operator): Add GEU and LTU codes.
2140 * pa.h (PREDICATE_CODES): Add codes for cmpib_comparison_operator.
2141 * pa.md (bltgt, bunle, bunlt, bunge, bungt, buneq, bunordered,
2142 bordered): New float conditional branch patterns.
2144 Wed Dec 6 21:03:41 2000 J"orn Rennecke <amylaar@redhat.com>
2146 * final.c (final_addr_vec_align): Fix clipping to BIGGEST_ALIGNMENT.
2148 2000-12-06 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
2150 * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
2151 backslash and newline, when inside a comment.
2153 2000-12-06 Joseph S. Myers <jsm28@cam.ac.uk>
2155 * invoke.texi: Use @table @samp instead of @itemize @minus for
2156 table of language standards. Fix use of @pxref. From Zack
2157 Weinberg. Also exclude specs documentation from generated
2158 manpage, and create separate ENVIRONMENT section.
2160 2000-12-06 Michael Matz <matzmich@cs.tu-berlin.de>
2162 * gcse.c (compute_pre_data): Kill trapping expressions in
2163 destination blocks of abnormal edges.
2165 2000-12-05 Richard Sandiford <r.sandiford@redhat.com>
2167 * config/mn10300/mn10300.c (mn10300_print_reg_list): Added.
2168 (mn10300_get_live_callee_saved_regs): Likewise.
2169 (mn10300_gen_multiple_store): Likewise.
2170 (store_multiple_operation): Likewise.
2171 (expand_prologue): Use mn10300_gen_multiple_store().
2172 * config/mn10300/mn10300-protos.h (mn10300_print_reg_list): Added.
2173 (mn10300_get_live_callee_saved_regs): Likewise.
2174 (mn10300_gen_multiple_store): Likewise.
2175 (store_multiple_operation): Likewise.
2176 * config/mn10300/mn10300.md (store_movm): Use a MATCH_PARALLEL
2177 tied to store_multiple_operation().
2179 Tue Dec 5 20:09:14 2000 Jeffrey A Law (law@cygnus.com)
2181 * builtins.c (expand_builtin_setjmp_setup): Set
2182 current_function_has_nonlocal_label.
2184 2000-12-05 Neil Booth <neilb@earthling.net>
2186 * cppfiles.c (stack_include_file): Push zero-length buffers
2187 in case of failure. Return void, as we don't fail any more.
2188 (read_include_file): Check for files we shouldn't re-read.
2189 Don't return an error code; errors are implied by marking the
2191 (_cpp_execute_include): Move the recursion and in-macro checks
2192 here. Update for stack_include_file not failing.
2193 * cpplib.c (cpp_push_buffer): Always succeed, since
2194 _cpp_execute_include performs the recursion check. Tidy up.
2195 * cpplib.h (cpp_push_buffer): Update prototype.
2197 2000-12-05 Alexandre Oliva <aoliva@redhat.com>
2199 * sched-vis.c (visual_tbl_line_length): New variable.
2200 (get_visual_tbl_length): Set it.
2201 (visualize_stall_cycles): Don't let stalls overrun
2202 visual_tbl_line_length.
2204 2000-12-05 Geoffrey Keating <geoffk@redhat.com>
2206 * global.c (global_conflicts): Allow for a REG_UNUSED note
2207 with a different mode to the REG set in the insn.
2209 2000-12-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2211 * Makefile.in (fixinc.sh): Pass $WARN_CFLAGS into fixinc dir.
2213 * fixinc/Makefile.in (FIXINC_DEFS): Add $(WARN_CFLAGS).
2215 2000-12-05 Bruce Korb <bkorb@gnu.org>
2217 * fixinc/mkfixinc.sh(*-gnu*): activate fixinc for GNU/Hurd and
2220 2000-12-05 Richard Earnshaw <rearnsha@arm.com>
2222 * fixinc/mkfixinc.sh: Run fixinc on netbsd.
2223 * fixinc/inclhack.def (machine/ansi.h): Run this rule on all files,
2224 to cope with aliased copies.
2225 * fixinc/fixincl.x: Regenerate.
2227 2000-12-05 Bernd Schmidt <bernds@redhat.co.uk>
2229 * sched-vis.c: Guard with #ifdef INSN_SCHEDULING.
2230 * sched-rgn.c: Likewise.
2231 (rgn_print_insn): Fix output.
2233 2000-12-05 Bruce Korb <bkorb@gnu.org>
2235 * fixinc/Makefile.*: make these more consistent
2236 * fixinc/mkfixincl.sh: enable BeOS fixincludes
2238 2000-12-05 Richard Henderson <rth@redhat.com>
2240 * stmt.c (warn_if_unused_value): Move side effects test earlier.
2242 2000-12-05 Alan Modra <alan@linuxcare.com.au>
2244 * bb-reorder.c (reorder_basic_blocks): Do check for EH edges even
2247 2000-12-05 Richard Henderson <rth@redhat.com>
2249 * flow.c (calculate_global_regs_live): Only force stack pointer
2250 live before reload. Force pic register live before reload.
2251 (insn_dead_p): Don't protect pic references from deletion.
2253 2000-12-05 Joseph S. Myers <jsm28@cam.ac.uk>
2255 * invoke.texi: Add support for using texi2pod.pl. Don't use
2258 2000-12-04 Nick Clifton <nickc@redhat.com>
2260 * config/arm/arm.c (arm_override_options): Test 'insn_flags' not
2261 'tune_flags' for XScale nature.
2262 Remove spurious test of HARD_FLOAT and XScale flags.
2264 * config/arm/arm.md (umulsidi3adddi): Restore "=&r" register
2265 contraint, accidentally changed during XScale contribution.
2267 * config/arm/lib1funcs.asm (interwork_call_via_, call_via_): Do
2268 not create these functions if the target architecture does not
2269 support Thumb instructions.
2271 2000-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
2273 * ONEWS: New file with the current contents of NEWS up to EGCS
2275 * NEWS: Generate automatically from online release notes from EGCS
2276 1.0 to GCC 2.95.2, using ../contrib/gennews.
2278 2000-12-04 Neil Booth <neilb@earthling.net>
2280 * tradcif.y: Move lexptr to top of file. Add rule to handle
2281 assertions in conditional expressions.
2282 * tradcpp.c (parse_answer): Assertions do not need to go to
2283 end of line in conditional directives.
2284 (parse_assertion): Get first character of identifiers correct.
2285 (test_assertion): New function.
2286 * tradcpp.h (test_assertion): New prototype.
2288 2000-12-01 Rodney Brown <RodneyBrown@mynd.com>
2290 * config.gcc: Fix typo for UnixWare 7.
2292 2000-12-03 Phil Edwards <pme@sources.redhat.com>
2294 * invoke.texi: Replace `pedwarns' with clearer text.
2296 2000-12-04 Bruce Korb <bkorb@gnu.org>
2298 * fixinc/Makefile.*(clean): don't clean autogenerated files.
2299 (mainainer-clean): clean autogenerated files
2301 2000-12-04 DJ Delorie <dj@redhat.com>
2303 * md.texi: Add overview, clarify match_dup and define_expand.
2305 2000-12-04 DJ Delorie <dj@redhat.com>
2307 * print-tree.c (print_node): Target-specific builtins print
2310 2000-12-04 Jason Merrill <jason@redhat.com>
2312 * stor-layout.c (int_mode_for_mode): Handle MODE_VECTOR_INT,
2315 * diagnostic.c (report_problematic_module): s/function/module/.
2317 * c-lex.h: Remove decl for check_newline.
2319 2000-12-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2321 * README.APOLLO: Remove obsolete file.
2323 2000-12-04 Neil Booth <neilb@earthling.net>
2325 * cppinternals.texi: New file.
2327 2000-12-04 Neil Booth <neilb@earthling.net>
2329 * cppfiles.c (cpp_make_system_header): Take 2 booleans,
2330 and operate on current buffer.
2331 (cpp_read_file): Rename _cpp_read_file.
2332 * cpplib.c (do_line, do_pragma_system_header): Update calls to
2333 cpp_make_system_header.
2334 * fix-header.c: Similarly.
2335 * cpphash.h (_cpp_read_file): Move from...
2336 * cpplib.h: ... here.
2337 * cppinit.c (do_includes, cpp_start_read): Update appropriately.
2339 2000-12-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2341 * builtins.c (expand_builtin_strspn, expand_builtin_strcspn):
2342 Handle another transformation.
2344 2000-12-03 Nick Clifton <nickc@redhat.com>
2346 * config.gcc: Add support for StrongARM targets.
2347 * config/arm/t-strongarm-elf: New file.
2348 * config/arm/t-strongarm-coff: New file.
2349 * config/arm/t-strongarm-pe: New file.
2350 * config/arm/strongarm-pe.h: New file.
2352 2000-12-03 Nick Clifton <nickc@redhat.com>
2354 * NEWS: Mention XScale has been added.
2355 * config.gcc: Add support for XScale targets.
2356 * config/arm/arm.h: Add support for XScale processor.
2357 * config/arm/arm.c: Add support for XScale processor.
2358 * config/arm/arm.md: Add support for XScale processor.
2359 * config/arm/t-xscale-elf: New file.
2360 * config/arm/t-xscale-coff: New file.
2361 * config/arm/xscale-elf.h: New file.
2362 * config/arm/xscale-coff.h: New file.
2364 2000-12-03 Richard Henderson <rth@redhat.com>
2366 * bb-reorder.c (reorder_basic_blocks): Don't check for EH edges
2367 unless exception handling is enabled, and if not using sjlj.
2369 * builtins.c (expand_builtin_setjmp_setup): New.
2370 (expand_builtin_setjmp_receiver): New.
2371 (expand_builtin_setjmp): Split out _setup and _receiver functions.
2372 Move argument parsing in from ...
2373 (expand_builtin): ... here.
2374 * except.c (receive_exception_label): Branch around receiver
2375 unless new-style exceptions. Call expand_builtin_setjmp_receiver.
2376 (start_dynamic_handler): Call expand_builtin_setjmp_setup.
2377 * expr.h: Update builtin setjmp decls.
2379 2000-12-03 Bruce Korb <bkorb@gcc.org>
2381 * fixinc/mkfixinc.sh(build machine): Sometimes, there is no canonical
2382 build machine name. Default to the target.
2384 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
2386 * Makefile.in: use $(build_canonical), not $(canonical_build).
2388 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
2390 * Makefile.in (OBJS): Add sched-rgn.o.
2391 (sched-rgn.o): New rule. * haifa-sched.c (sched_verbose): No
2393 (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
2394 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
2395 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
2396 MAX_BLOCKAGE_COST): Move to sched-int.h.
2397 (MAX_RGN_BLOCKS, MAX_RGN_INSNS, INSN_REF_COUNT, FED_BY_SPEC_LOAD,
2398 IS_LOAD_INSN, struct haifa_edge, edge_table, NEXT_IN, NEXT_OUT,
2399 FROM_BLOCK, TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES,
2400 OUT_EDGES, edgelst, struct region, nr_regions, rgn_table,
2401 rgn_bb_table, block_to_bb, containing_rgn, RGN_NR_BLOCKS,
2402 RGN_BLOCKS, BLOCK_TO_BB, BB_TO_BLOCK, CONTAINING_RGN,
2403 debug_regions, find_single_block_region, find_rgns, too_large,
2404 init_regions, current_nr_blocks, current_blocks, bitset, bitlst,
2405 bitlst_table_last, bitlst_table_size, bitlst_table, bitset_member,
2406 extract_bitlst, bblst, struct candidate, candidate_table,
2407 bblst_table, bblst_size, bblst_last, IS_VALID, IS_SPECULATIVE,
2408 SRC_PROB, target_bb, split_edges, compute_trg_info,
2409 debug_candidate, debug_candidates, bbset, bbset_size, dom,
2410 IS_RGN_ENTRY, IS_DOMINATED, prob, GET_SRC_PROB, edgeset,
2411 rgn_nr_edges, rgn_edges, edgeset_size, edgeset_bitsize,
2412 EDGE_TO_BIT, edge_to_bit, pot_split, ancestor_edges,
2413 compute_dom_prob_ps, ABS_VALUE, INSN_PROBABILITY,
2414 IS_SPECULATIVE_INSN, INSN_BB, MIN_DIFF_PRIORITY, MIN_PROBABILITY,
2415 MIN_PROB_DIFF, check_live_1, update_live_1, check_live,
2416 update_live, set_spec_fed, is_pfree, find_conditional_protection,
2417 is_conditionally_protected, may_trap_exp, haifa_classify_insn,
2418 is_prisky, is_exception_free, add_branch_dependences,
2419 propagate_deps, compute_block_backward_dependences,
2420 debug_dependencies, is_cfg_nonregular, build_control_flow,
2421 new_edge, bb_deps, BITSET_UNION, BITSET_INTER, BITSET_DIFFER,
2422 BITSET_INVERT, BITSET_ADD, BITSET_REMOVE, debug_regions,
2423 UPDATE_LOOP_RELATIONS, INSN_TRAP_CLASS, WORST_CLASS, IS_REACHABLE,
2424 CONST_BASED_ADDRESS_P, free_pending_lists, sched_target_n_insns,
2425 target_n_insns, sched_n_insns, init_ready_list, deaths_in_region,
2426 can_schedule_ready_p, new_ready, schedule_more_p, rgn_print_insn,
2427 rgn_rank, region_sched_info): Move to sched-rgn.c.
2428 (debug_reg_vector): Delete useless function.
2429 (get_bb_head_tail): Likewise.
2430 (insn_issue_delay, insn_cost, ready_add, get_block_head_tail,
2431 no_real_insns_p, rm_line_notes, save_line_notes,
2432 restore_line_notes, rm_redundant_line_notes, sched_init): No
2434 (rm_line_notes, save_line_notes, restore_line_notes,
2435 schedule_block, set_priorities): Change argument to be a real
2436 basic block, not one of haifa's "bb"s. All callers changed
2437 (rm_other_notes): Initialize note_list here, not in
2439 (sched_finish): New function, called from schedule_insn. * *
2440 sched-int.h (INSN_PRIORITY, INSN_COST, INSN_UNIT, INSN_REG_WEIGHT,
2441 INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK, ENCODE_BLOCKAGE,
2442 UNIT_BLOCKED, BLOCKAGE_RANGE, MIN_BLOCKAGE_COST,
2443 MAX_BLOCKAGE_COST): Moved here from haifa-sched.c.
2444 (get_block_head_tail, no_real_insns_p, rm_line_notes,
2445 save_line_notes, restore_line_notes, rm_redundant_line_notes,
2446 rm_other_notes, insn_issue_delay, set_priorities, schedule_block,
2447 sched_init, sched_finish, ready_add, insn_cost): Declare.
2449 2000-12-03 Laurynas Biveinis <lauras@softhome.net>
2450 Bruce Korb <bkorb@gnu.org>
2452 * Makefile.in: pass $(build_canonical) to mkfixinc.sh.
2453 * fixinc/mkfixinc.sh: accept build system name as an argument.
2454 Use it for choosing the fix build method. Use the target for
2455 selecting special fix rules.
2457 2000-12-03 Bernd Schmidt <bernds@redhat.co.uk>
2459 * Makefile.in (OBJS): Add sched-deps.o.
2460 (sched-deps.o): New rule.
2461 * haifa-sched.c (struct deps, struct haifa_insn_data): Moved to
2463 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved to
2465 (SIZE_FOR_MODE): Delete unused macro.
2466 (reg_known_equiv_p, reg_known_value, reg_pending_clobbers,
2467 reg_pending_sets, reg_pending_sets_all, true_dependency_cache,
2468 anti_dependency_cache, output_dependency_cache,
2469 forward_dependency_cache): Variables moved to sched-deps.c.
2470 (add_dependence, remove_dependence, find_insn_list,
2471 find_insn_mem_list, add_insn_mem_dependence, flush_pending_lists,
2472 sched_analyze_insn, sched_analyze_1, sched_analyze_2,
2473 sched_analyze, group_leader, compute_forward_dependences,
2474 init_deps, free_deps, init_dependency_caches, free_dependency_caches):
2475 Functions moved to sched-deps.c.
2476 (schedule_region): Call init_deps_global and finish_deps_global
2477 instead of directly manipulating dependency data structures.
2478 * sched-deps.c: New file.
2479 (init_deps_global, finish_deps_global): New functions.
2480 * sched-int.h (struct haifa_insn_data, struct deps): Moved here from
2483 (INSN_DEPEND, INSN_LUID, CANT_MOVE, INSN_DEP_COUNT): Macros moved here
2486 * Makefile.in (OBJS): Add sched-vis.o.
2487 (sched-vis.o): New rule.
2488 * haifa-sched.c (get_unit_last_insn): New function.
2489 (sched_dump, insn_unit, actual_hazard_this_instance): No longer
2491 (schedule_block): Call visualize_alloc and visualize_free. Delete
2492 spurious return statement.
2493 (init_target_units, insn_print_units, get_visual_tbl_length,
2494 init_block_visualization, print_block_visualization, safe_concat,
2495 visualize_scheduled_inns, visualize_no_unit, visualize_stall_cycles,
2496 print_exp, print_value, print_pattern, print_insn, target_units,
2497 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines, visual_tbl,
2498 n_vis_no_unit, vis_no_unit): Move scheduling visualization
2499 functions/variables...
2500 * sched-vis.c: ...here. New file.
2501 (visualize_alloc, visualize_free): New functions.
2502 (visualize_scheduled_insns, visualize_stall_cycles,
2503 print_block_visualization): Lose basic block argument. All callers
2505 (visualize_scheduled_insns): Use new function get_unit_last_insn.
2506 * sched-int.h (current_sched_info, sched_dump): Declare.
2507 (init_target_units, insn_print_units, init_block_visualization,
2508 print_block_visualization, visualize_scheduled_inns,
2509 visualize_no_unit, visualize_stall_cycles, visualize_alloc,
2510 visualize_free): Declare functions.
2512 * sched-int.h: New file.
2513 * Makefile.in (haifa-sched.o): Depend on it.
2514 * haifa-sched.c: Include it.
2515 (no_real_insns_p): New function.
2516 (current_sched_info): New static variable.
2517 (__inline, HAIFA_INLINE): Moved to sched-int.h.
2518 (get_block_head_tail): Minor cleanup.
2519 (init_ready_list, can_schedule_ready_p, new_ready, schedule_more_p,
2520 rgn_print_insn, rgn_rank): New functions, broken out of
2521 rank_for_schedule, schedule_insn and schedule_block, where they
2522 are now called through function pointers in current_sched_info.
2523 (queue_insn, schedule_insn, queue_to_ready, debug_ready_list,
2524 print_insn): To display uid and block number, call the print_insn
2525 function pointer in current_schedule_info.
2526 (region_sched_info): New static variable.
2527 (sched_target_n_insns, sched_n_insns, target_n_insns): New global
2528 variables, moved out of schedule_block.
2529 (schedule_block): Return void. All callers changed.
2530 Move some of the setup code into schedule_region. Get head/tail
2531 from current_sched_info, and update it when done.
2532 (schedule_region): Slightly rearranged, some code moved here from
2533 schedule_block. Call no_real_insns_p to avoid doing work for a
2534 block that consists only of notes and labels.
2535 (schedule_insns): Initialize current_sched_info.
2537 2000-12-03 Neil Booth <neilb@earthling.net>
2539 * cppmacro.c (funlike_invocation_p): Re-disable macros enabled
2540 by contexts drops AFTER argument pre-expansion, so that they
2541 remain enabled during argument pre-expansion.
2542 (_cpp_pop_context): Unconditionally re-enable a macro when
2543 dropping a context level.
2545 2000-12-03 Manfred Hollstein <manfredh@redhat.com>
2547 * arm/t-linux (MULTILIB_OPTIONS): Comment.
2548 (MULTILIB_DIRNAMES): Likewise.
2549 (EXTRA_MULTILIB_PARTS): Likewise.
2551 (INSTALL_LIBGCC): Likewise.
2553 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2555 * builtins.c (expand_builtin_strcat, expand_builtin_strncat,
2556 expand_builtin_strspn, expand_builtin_strcspn): New functions.
2557 (expand_builtin): Handle BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2558 BUILT_IN_STRSPN and BUILT_IN_STRCSPN.
2560 * builtins.def (BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2561 BUILT_IN_STRSPN, BUILT_IN_STRCSPN): New entries.
2563 * c-common.c (c_common_nodes_and_builtins): Declare builtin
2564 strcat, strncat, strspn and strcspn.
2565 (string_ftype_string_cstring): Renamed from `string_ftype_ptr_ptr'.
2567 * extend.texi (strcat, strcspn, strncat, strspn): Document new
2570 2000-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2572 * builtins.c (expand_builtin_strcmp): Use const*_rtx when
2573 expanding strcmp at compile-time. Add another transformation.
2574 (expand_builtin_strncmp): Add more transformations. Call
2575 expand_builtin_memcmp, not expand_builtin_strcmp, under
2576 appropriate conditions if HAVE_cmpstrsi.
2578 2000-12-02 David Edelsohn <edelsohn@gnu.org>
2580 * rs6000.md (anddi3_internal[23]): Prefer rldic? over andis
2582 (cr logic): Really make operands sequential.
2584 2000-12-02 Geoffrey Keating <geoffk@redhat.com>
2586 * c-common.c (combine_strings): When the ISO C standard specifies
2587 the maximum length of a string, it doesn't include the trailing
2590 * cpplib.c (do_ifdef): Add check_eol() call.
2591 (do_ifndef): Likewise.
2593 2000-12-02 Daniel Berlin <dberlin@redhat.com>
2594 Bruce Korb <bkorb@gnu.org>
2596 * fixinc/*: global substitute /__MSDOS__/SEPARATE_FIX_PROC/
2597 * fixinc/mkfixinc.sh: prepare to use Makefile.BEOS for *-*-beos*
2598 * fixinc/Makefile.DOS: define SEPARATE_FIX_PROC for build
2599 * fixinc/fixfix.c(wrap_fix): avoid wrapping files that
2600 use the "__need_" hackery. It breaks them.
2601 * fixinc/fixincl.c(process - SEPARATE_FIX_PROC):
2602 Sometimes on DOS and BeOS the temp output file cannot be opened.
2603 Skip the file noisily. Ought to be fixed instead.
2605 2000-12-02 Bruce Korb <bkorb@gnu.org>
2607 From: 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2609 * fixfixes.c (emit_gnu_type, format_write): Prototype.
2610 (format_write, char_macro_use_fix, char_macro_def_fix): Use gcc's
2611 custom uppercase ctype macros.
2612 * fixincl.c (do_version): Make static and add ATTRIBUTE_NORETURN.
2613 Use gcc's custom uppercase ctype macros.
2615 (machine_matches): Add static prototype and constify variable.
2616 (create_file, test_test, egrep_test): Add static prototype.
2617 (quoted_file_exists): Likewise, and constify parameters.
2618 (extract_quoted_files, internal_fix, start_fixer, fix_applies,
2619 write_replacement, test_for_changes): Add static prototype.
2620 (write_replacement, test_for_changes): Delete excess argument to
2622 * fixtests.c (test): Make static.
2623 * server.c (load_data, sig_handler, server_setup, find_shell): Add
2625 (sig_handler): Mark parameter with ATTRIBUTE_UNUSED.
2627 2000-12-02 Bruce Korb <bkorb@gnu.org>
2629 * fixnc/mkfixinc.sh(msdosdjgpp): remove from fixincludes exception list
2630 (per Laurynas Biveinis <lauras@softhome.net>)
2632 2000-12-02 Richard Earnshaw <rearnsha@arm.com>
2634 * arm.h (ARM_REGNO_OK_FOR_BASE_P, THUMB_REGNO_MODE_OK_FOR_BASE_P): New
2636 (REGNO_MODE_OK_FOR_BASE_P): Define in terms of above.
2637 (REGNO_OK_FOR_FOR_BASE_P): Delete.
2638 (ARM_REG_OK_FOR_BASE_P, THUMB_REG_MODE_OK_FOR_BASE_P): New macros for
2639 both strict and non-strict uses.
2640 (REG_MODE_OK_FOR_BASE_P): Define in terms of above.
2641 (ARM_REG_OK_FOR_INDEX_P, THUMB_REG_OK_FOR_INDEX_P): New macros.
2642 (REG_OK_FOR_INDEX_P): Define in terms of above.
2643 (REG_OK_FOR_BASE_P): Delete.
2644 (REG_OK_FOR_PRE_POST_P): Delete.
2645 (ARM_BASE_REGISTER_RTX_P): Renamed from BASE_REGISTER_RTX_P.
2646 (ARM_INDEX_REGISTER_RTX_P): Renamed from INDEX_REGISTER_RTX_P.
2647 (ARM_GO_IF_LEGITIMATE_INDEX): Renamed from GO_IF_LEGITIMATE_INDEX.
2648 (THUMB_LEGITIMATE_OFFSET): Renamed from LEGITIMATE_OFFSET.
2649 (ARM_GO_IF_LEGITIMATE_ADDRESS): Adjust for name changes. Use ARM
2650 specific variants rather than general ones. Use ARM_REG_OK_FOR_BASE_P
2651 in pre/post increment cases.
2652 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Similarly for Thumb.
2653 (ARM_LEGITIMIZE_ADDRESS): Similarly.
2654 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Similarly.
2655 * arm.c (legitimate_pic_address): Similarly.
2657 2000-12-02 Neil Booth <neilb@earthling.net>
2659 * tradcpp.c (struct answer, parse_assertion, parse_answer,
2660 canonicalize_text, find_answer): New.
2661 (do_assert, do_unassert): Provide appropriate function bodies.
2662 (union hashval): New member answers.
2664 2000-11-23 Marek Michalkiewicz <marekm@linux.org.pl>
2666 * config/avr/avr.md: Document UNSPEC usage.
2667 (*tablejump_rjmp, *tablejump_lib, *tablejump_enh, *tablejump):
2668 Make operand 0 input only, clobber it. Use UNSPEC, not a bogus
2669 MEM for program memory word reference. Do not add the label to
2670 the table index in each of the asm output templates, instead ...
2671 (casesi): ... do it in RTL. Adjust to match the above change.
2673 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
2675 * c-common.c (PTRDIFF_TYPE): Provide default here, ...
2676 * c-decl.c: ... not here.
2678 * haifa-sched.c (sched_dump): Renamed from dump. All users changed.
2679 (old_max_uid): New variable.
2680 (compute_forward_dependences): Renamed from
2681 compute_block_forward_dependences; changed to accept block head and
2682 tail instead of block number. Caller changed.
2683 (free_deps, init_dependency_caches, free_dependency_caches,
2684 init_regions, sched_init): New functions, split out from
2685 schedule_insns and compute_block_backward_dependences.
2687 2000-12-02 Neil Booth <neilb@earthling.net>
2689 * cppexp.c (parse_number): Update diagnostic test.
2691 2000-12-02 Bernd Schmidt <bernds@redhat.co.uk>
2693 * reload1.c (free_for_value_p): New function, frontend to
2694 reload_reg_free_for_value_p. All callers of the latter now call
2695 this function with an additional mode argument.
2697 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2699 * install.texi (Configurations): Remove obsolete documentation for
2702 2000-12-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2704 * install.texi (Installation): Remove obsolete description for
2705 libstdc++ which is now an integral part of GCC.
2707 2000-12-01 Jim Blandy <jimb@redhat.com>
2709 * dbxout.c (dbxout_parms): Correctly describe parameters passed by
2710 invisible reference in registers, but then spilled to the stack.
2711 Remove code to emit a second stab for such parameters; it attempts
2712 to describe the value's location by introducing a synthetic C++
2713 `reference' type, and then saying the stack slot has that
2714 reference type. This loses type information (breaking GDB's
2715 `ptype' command, among other things) just to describe a location
2716 which stabs can represent correctly in other ways.
2718 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2720 * final.c (output_addr_const) <PLUS>: Don't assume at least one
2721 operand is a CONST_INT.
2723 * config/sh/sh.c (reg_class_from_letter): Assign `k' to SIBCALL_REGS.
2724 (machine_dependent_reorg): Split all insns.
2725 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Compute
2726 reg_class_contents[SIBCALL_REGS].
2727 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add SIBCALL_REGS.
2728 * config/sh/sh.md (calli_pcrel, call_pcrel, call_valuei_pcrel,
2729 call_value_pcrel, call, call_value, sibcall): Match even when
2731 (sibcalli_pcrel, sibcall_pcrel): Likewise. Use constraint `k'
2733 (sibcalli): Likewise.
2735 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2737 * c-common.c (warn_format, warn_format_y2k,
2738 warn_format_extra_args, warn_format_nonliteral): Define.
2739 (check_format_info): Check warn_format_nonliteral and
2740 warn_format_extra_args.
2741 (check_format_info_main): Check warn_format_y2k.
2742 (set_Wformat): New function.
2743 * c-common.h (warn_format_y2k, warn_format_extra_args,
2744 warn_format_nonliteral, set_Wformat): Declare.
2745 * c-decl.c (warn_format): Remove definition.
2746 (c_decode_option): Handle -Wformat-nonliteral,
2747 -Wno-format-extra-args and -Wno-format-y2k, and negated versions.
2749 * invoke.texi: Document these new options and -Wformat=2.
2750 * toplev.c (documented_lang_options): Add these new options.
2752 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2754 * builtins.def (BUILT_IN_IMAXABS): Add.
2755 * builtins.c (expand_builtin): Also abort on BUILT_IN_IMAXABS.
2756 * c-common.c (c_common_nodes_and_builtins): Create builtin
2757 functions __builtin_imaxabs, and plain imaxabs unless
2758 flag_no_nonansi_builtin outside C99 mode.
2759 (expand_tree_builtin): Handle BUILT_IN_IMAXABS.
2760 * extend.texi: Document builtin imaxabs.
2762 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2764 * c-common.c: Include "defaults.h".
2765 (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Define.
2766 (c_common_nodes_and_builtins): Create string_type_node,
2767 const_string_type_node, wint_type_node, intmax_type_node,
2768 uintmax_type_node, default_function_type, ptrdiff_type_node and
2769 unsigned_ptrdiff_type_node.
2770 * c-common.h (identifier_global_value): Declare.
2771 * c-decl.c (WINT_TYPE, INTMAX_TYPE, UINTMAX_TYPE): Don't define.
2772 (init_decl_processing): Don't create string_type_node,
2773 const_string_type_node, wint_type_node, intmax_type_node,
2774 uintmax_type_node, default_function_type, ptrdiff_type_node and
2775 unsigned_ptrdiff_type_node.
2776 (identifier_global_value): New function.
2778 2000-12-01 Neil Booth <neilb@earthling.net>
2780 * cppinit.c (initialize): Forgotten prototype.
2781 * cpplex.c (_cpp_lex_token): Loop until not skipping.
2782 Always clear PREV_WHITE upon meeting a new line.
2783 * cpplib.c (end_directive): Set pfile->skipping after
2785 * cpplib.h (cpp_reader): Remove macro_pos.
2786 * cppmacro.c (cpp_get_line): Don't do anything special inside
2788 (parse_arg): Add PREV_WHITE if a token appears after new lines.
2789 (funlike_invocation_p): Save and restore the output position
2790 over a successful check for a '('.
2791 (enter_macro_context): Delete uses of macro_pos.
2792 (cpp_get_token): Don't use pfile->skipping.
2794 2000-12-01 Phil Edwards <pme@sources.redhat.com>
2796 * diagnostic.c: Fix typos in comments.
2797 * diagnostic.h: Likewise.
2799 2000-11-30 Phil Edwards <pme@sources.redhat.com>
2801 * rtl.texi (Machine Modes): Document BImode and OImode.
2803 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2805 * gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and
2808 2000-12-01 Joseph S. Myers <jsm28@cam.ac.uk>
2810 * c-decl.c (grokdeclarator): If pedantic, warn about arrays with
2811 incomplete element type.
2812 (grokparms): Before checking for incomplete parameter type, check
2813 the type isn't error_mark_node.
2815 2000-12-01 Jakub Jelinek <jakub@redhat.com>
2817 * builtins.c (target_char_cast): New function.
2818 (expand_builtin_strchr): Use it.
2819 (expand_builtin_strrchr): Use it.
2820 (builtin_memset_read_str): New function.
2821 (expand_builtin_memset): Use target_char_cast.
2822 Try to optimize memset with second argument non-zero using
2825 2000-11-30 Marek Michalkiewicz <marekm@linux.org.pl>
2827 * install.texi (avr): Replace incomplete list of supported MCU
2828 types with a link to the current one ...
2829 * invoke.texi (AVR Options): ... here. Update -mmcu= to list
2830 all supported MCU types. Document -minit-stack= default.
2831 Document new options -mno-tablejump, -mtiny-stack.
2832 * md.texi (AVR family): Fix typo in 'w' constraint letter
2833 description. Document 'q'. Update 'O'.
2835 2000-12-01 Bernd Schmidt <bernds@redhat.co.uk>
2837 * combine.c (cant_combine_insn_p): Only disallow insns involving
2838 hard regs if they are reg-reg moves.
2839 (try_combine, can_combine_p, combinable_i3pat): Delete old
2840 SMALL_REGISTER_CLASSES tests.
2842 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2844 * config/sh/sh.c (shiftcosts): Don't get INTVAL before testing
2845 whether X is a CONST_INT.
2846 (addsubcosts): Likewise.
2848 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
2850 (ARG_POINTER_REGNUM): Set to AP_REG.
2852 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
2854 * config/sh/sh.md (fpu_switch0, fpu_switch1, movpsi, fpu_switch,
2855 splits): Only match on TARGET_SH4.
2857 * combine.c (try_combine): Disregard USEs when updating LOG_LINKS
2858 of subsequent insns.
2860 2000-11-30 Richard Henderson <rth@redhat.com>
2862 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Disable.
2863 * config/alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
2865 2000-11-30 Richard Henderson <rth@redhat.com>
2867 * config/alpha/elf.h (ASM_OUTPUT_SECTION_NAME): Copy elfos.h defn.
2868 (DO_SELECT_SECTION): New.
2869 (SELECT_SECTION): Use it.
2870 (UNIQUE_SECTION_P): New.
2871 (UNIQUE_SECTION): New.
2873 2000-11-30 Alexandre Oliva <aoliva@redhat.com>
2875 * c-common.c (status_warning) [! ANSI_PROTOTYPES]: Load status
2876 from va_list before using it.
2878 2000-11-30 Michael Matz <matzmich@cs.tu-berlin.de>
2880 * flow.c (make_edge): Early out, if no flags to set.
2881 (calculate_global_regs_live): Clear out garbage only when necessary.
2883 * simplify-rtx.c (varray_type used_regs): New.
2884 (clear_table): Use it to only clear necessary items.
2885 (cselib_lookup, cselib_record_set): Remember newly set items.
2886 (cselib_update_varray_sizes, cselib_init): Initialize and grow
2889 * local-alloc.c (update_equiv_regs): New local `cleared_regs'.
2890 Move clearing of dead regs out of insn-loop.
2892 2000-11-30 Richard Henderson <rth@redhat.com>
2894 * calls.c (expand_call): Emit queued insns before creating
2895 the tail recursion sequence.
2897 2000-11-30 J. David Anglin <dave.anglin@nrc.ca>
2898 Bruce Korb <bkorb@gnu.org>
2900 * fixinc/inclhack.def(): prevent dual double definition protection
2901 * fixinc/fixincl.x: regenerate
2903 2000-11-29 Loren J. Rittle <ljrittle@acm.org>
2905 * fixinc/Makefile.in (fixincl.x): Explicitly state the
2906 location of the generated file.
2908 2000-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2910 * README.FRESCO: Remove obsolete file.
2912 2000-11-30 Mark Kettenis <kettenis@gnu.org>
2914 * config/t-gnu (LIBGCC1, CROSS_LIBGCC1, CRTSTUFF_T_CFLAGS,
2915 TARGET_LIBGCC2_CFLAGS): Remove. We now use the settings from
2916 config/t-linux for the Hurd.
2918 2000-11-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2920 * config/mn10200/udivmod.c, config/mn10200/divmod.c,
2921 config/mn10200/udivmodsi4.c: Moved from here.
2922 * config/udivmod.c, config/divmod.c, config/udivmodsi4.c: To here.
2923 * config/mn10200/t-mn10200 (LIB2FUNCS_EXTRA): Use the generic
2924 C division functions.
2925 * config/m68hc11/t-m68hc11-gas (LIB2FUNCS_EXTRA): Likewise.
2927 Thu Nov 30 01:12:52 2000 Jeffrey A Law (law@cygnus.com)
2929 * pa.md (conditional moves): Avoid holes in operand list.
2930 (mod, umod patterns): Similarly.
2931 (variable extract/shift patterns): Similarly.
2933 2000-11-30 Neil Booth <neilb@earthling.net>
2935 * objc/objc-act.c (lang_init, finish_file, maybe_objc_comptypes,
2936 maybe_objc_check_decl, build_objc_string_object,
2937 objc_declare_alias, objc_declare_class, build_message_expr,
2938 build_protocol_expr, build_selector_expr, build_encode_expr,
2939 get_class_ivars, start_class, start_protocol): Remove
2940 redundant code, assuming doing_objc_thang is true.
2942 2000-11-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2944 * pa.c (restore_unscaled_index_insn_codes): Delete procedure.
2945 (record_unscaled_index_insn_codes): Likewise.
2946 (unscaled_index_insn_codes): Delete.
2947 (max_unscaled_index_insn_codes_uid): Delete.
2948 (output_function_prologue, output_function_epilogue, pa_reorg):
2949 Don't use the unscaled index insn hack.
2951 * pa.md: Remove hack from all index insns to reverse the operand
2952 order of frame and stack pointer references incorrectly created
2955 * function.h (emit_status): Delete member regno_pointer_flag and
2956 rename regno_pointer_flag_length to regno_pointer_align_length.
2957 Delete define for REGNO_POINTER_FLAG.
2958 * integrate.h (inline_remap): Delete member regno_pointer_flag.
2959 Add member x_regno_reg_rtx.
2960 * rtl.h (rtx_def): Use frame_related bit to indicate register is
2961 a pointer in REG expressions. Define REG_POINTER macro.
2962 * alias.c (find_base_value, find_base_term): Use REG_POINTER
2963 instead of REGNO_POINTER_FLAG.
2964 * combine.c (nonzero_bits, num_sign_bit_copies): Likewise.
2965 * emit-rtl.c (gen_reg_rtx): Use regno_pointer_align_length instead
2966 of regno_pointer_flag_length. Remove code which refers to
2968 (mark_reg_pointer): Use REG_POINTER.
2969 (free_emit_status): Remove code which refers to regno_pointer_flag.
2970 (init_emit, mark_emit_status): Likewise.
2971 * flow.c (dump_flow_info): Likewise.
2972 * function.c (preserve_temp_slots): Likewise.
2973 * integrate.c (expand_inline_function, copy_rtx_and_substitute):
2974 Use x_regno_reg_rtx instead of regno_pointer_flag for function
2975 pointer determination in map.
2976 * loop.c (strength_reduce, maybe_eliminate_biv_1): Use REG_POINTER.
2977 * predict.c (estimate_probability): Likewise.
2978 * regclass.c (record_address_regs, reg_scan_mark_refs): Likewise.
2979 * unroll.c (unroll_loop): Use x_regno_reg_rtx instead of
2980 regno_pointer_flag for function pointer determination in map.
2981 * convex.h (RTX_COSTS): Don't test regno_pointer_flag and use
2983 * pa.c (hppa_legitimize_address, emit_move_sequence, basereg_operand):
2985 (restore_unscaled_index_insn_codes): Revise comment.
2987 * expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
2989 2000-11-30 Joseph S. Myers <jsm28@cam.ac.uk>
2991 * extend.texi: Update documentation for attributes.
2993 2000-11-29 David O'Brien <obrien@FreeBSD.org>
2995 * config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
2996 (ASM_DECLARE_OBJECT_NAME): Same.
2997 (ASM_FILE_END): Same.
2998 (ASM_FINISH_DECLARE_OBJECT): Same.
2999 (ASM_IDENTIFY_GCC): Same.
3000 (ASM_IDENTIFY_LANGUAGE): Same.
3001 (ASM_OUTPUT_CONSTRUCTOR): Same.
3002 (ASM_OUTPUT_DEF): Same.
3003 (ASM_OUTPUT_DESTRUCTOR): Same.
3004 (ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
3005 (ASM_OUTPUT_SECTION_NAME): Same.
3006 (ASM_WEAKEN_LABEL): Same.
3007 (BSS_SECTION_ASM_OP): Same.
3008 (COMMON_ASM_OP): Same.
3009 (CONST_SECTION_ASM_OP): Same.
3010 (CONST_SECTION_FUNCTION): Same.
3011 (CTORS_SECTION_ASM_OP): Same.
3012 (DTORS_SECTION_ASM_OP): Same.
3014 (FINI_SECTION_ASM_OP): Same.
3015 (IDENT_ASM_OP): Same.
3016 (IDENT_ASM_OP): Same.
3017 (INIT_SECTION_ASM_OP): Same.
3019 (MAX_OFILE_ALIGNMENT): Same.
3020 (SBSS_SECTION_ASM_OP): Same.
3021 (SDATA_SECTION_ASM_OP): Same.
3022 (SECTION_FUNCTION_TEMPLATE): Same.
3023 (SELECT_SECTION): Same.
3024 (SE_CONST_SECTION): Same.
3025 (SIZE_ASM_OP): Same.
3026 (SKIP_ASM_OP): Same.
3027 (STRING_ASM_OP): Same.
3028 (STRING_LIMIT): Same.
3029 (TYPE_ASM_OP): Same.
3030 (TYPE_OPERAND_FMT): Same.
3032 2000-11-29 Neil Booth <neilb@earthling.net>
3034 * c-decl.c (c_decode_option): Don't handle -lang-objc.
3035 * objc/lang-options.h: Remove -lang-objc.
3036 * objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
3037 * objc/objc-act.c (lang_init_options): Set c_language.
3039 2000-11-29 Jakub Jelinek <jakub@redhat.com>
3041 * expr.c (can_store_by_pieces): Reinitialize max_size for reverse
3044 2000-11-29 Neil Booth <neilb@earthling.net>
3046 * c-pragma.c (init_pragma): Update for parse_in type change.
3048 2000-11-29 Laurynas Biveinis <lauras@softhome.net>
3050 * configure.in: recognize DOS-style absolute paths.
3052 2000-11-29 Jakub Jelinek <jakub@redhat.com>
3054 * expr.h (store_by_pieces): Add prototype.
3055 (can_store_by_pieces): Likewise.
3056 * expr.c (struct store_by_pieces): Renamed from clear_by_pieces.
3057 (can_store_by_pieces): New.
3058 (store_by_pieces): New.
3059 (clear_by_pieces): New.
3060 (clear_by_pieces_1): New.
3061 (store_by_pieces_1): Renamed from clear_by_pieces, handle storing
3062 arbitrary compiler generated constants into memory block.
3063 (store_by_pieces_2): Renamed from clear_by_pieces_1, likewise.
3064 * builtins.c (c_readstr): New.
3065 (builtin_memcpy_read_str): New.
3066 (expand_builtin_memcpy): If src is string constant and
3067 emit_block_move would move it by pieces, compute integer constants
3068 from the string and store it into memory block instead.
3069 (builtin_strncpy_read_str): New.
3070 (expand_builtin_strncpy): If N is not constant zero and c_strlen does
3071 not return INTEGER_CST, don't optimize.
3072 If N is larger than strlen(src) + 1, try to copy the string
3073 including padding with store_by_pieces.
3074 (expand_builtin_strcmp): If both arguments have side effects, don't
3076 (expand_builtin_fputs): If STR has side effects, don't optimize.
3078 2000-11-29 Richard Earnshaw <rearnsha@arm.com>
3080 * arm.md (sibcall, sibcall_value, sibcall_insn, sibcall_value_insn):
3081 Add use of link register.
3083 2000-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
3085 * extend.texi: Update documentation for default format attributes.
3087 Tue Nov 28 21:56:45 2000 Jeffrey A Law (law@cygnus.com)
3089 * pa/pa-64.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
3090 a list, to keep track of the sections.
3092 2000-11-28 Nick Clifton <nickc@redhat.com>
3094 * config/arm/arm.md (pic_load_addr): Split into
3095 pic_load_addr_arm and pic_load_addr_thumb.
3097 * config/arm/arm.c (legitimize_pic_address): Generate either
3098 ARM or Thumb versions of pic_load_addr.
3099 (arm_finalize_pic): Generate either ARM or Thumb versions of
3102 2000-11-28 Richard Henderson <rth@redhat.com>
3104 * calls.c (expand_call): Defer const/pure NO_DEFER_POP until
3105 after sibcall do_pending_stack_adjust.
3107 Wed Nov 29 00:08:23 2000 J"orn Rennecke <amylaar@redhat.com>
3109 * jump.c (delete_insn): Check that REG_LABEL note actually contains
3112 2000-11-28 Neil Booth <neilb@earthling.net>
3114 * c-common.h: Remove flag_digraphs.
3115 * c-decl.c: Remove flag_digraphs.
3116 (c_decode_option): Don't set it.
3117 * c-lex.c (init_c_lex): Don't do anything for digraphs.
3119 2000-11-28 Richard Henderson <rth@redhat.com>
3121 * c-parse.in (finish_parse): Update for parse_in type change.
3124 2000-11-28 Neil Booth <neilb@earthling.net>
3126 * cppmacro.c (cpp_scan_buffer_nooutput): Take a boolean
3127 indicating whether to scan all buffers on the stack or
3129 * cppinit.c (do_includes): Update.
3130 * cppmain.c (main): Update.
3131 * cpplib.h: Update prototype.
3133 2000-11-28 Richard Henderson <rth@redhat.com>
3135 * genoutput.c (validate_insn_operands): New.
3136 (gen_insn): Call it.
3138 * config/alpha/alpha.md (divmodsi_internal): Renumber operands.
3139 (divmoddi_internal): Likewise.
3140 * config/arm/arm.md (andsi3_compare0_scratch): Likewise.
3141 * config/i960/i960.md (branch patterns): Likewise.
3142 * config/ia64/ia64.md (tbit_and_0): Likewise.
3143 (tbit_and_1, tbit_or_0, tbit_or_1): Likewise.
3144 * config/m68k/m68k.md (zero_extract memory patterns): Likewise.
3145 * config/mips/mips.md (divmodsi4_internal): Likewise.
3146 (divmoddi4_internal): Likewise.
3147 * config/rs6000/rs6000.md (call patterns): Likewise.
3148 * config/sh/sh.md (movsi_y): Likewise.
3149 * config/sparc/sparc.md: Comment out if 0 v8p shift pattern.
3151 2000-11-28 Richard Henderson <rth@redhat.com>
3153 * config.gcc: Kill residual pyramid support.
3155 2000-11-28 Neil Booth <neilb@earthling.net>
3157 * c-lex.h (parse_in): Change parse_in to a cpp_reader *.
3158 * c-decl.c (c_decode_option): Update to match.
3159 * c-lex.c (init_c_lex, yyparse): Update to match.
3160 * c-lang.c (lang_init_options): Use cpp_create_reader.
3161 * cppinit.c (cpp_init): Rename initialize.
3162 (cpp_reader_init): Rename cpp_create_reader. Create the
3163 reader. Initialize cpplib if appropriate.
3164 * cpplib.h (cpp_create_reader) New prototype.
3165 (cpp_init, cpp_reader_init): Delete prototypes.
3166 * cppmain.c (general_init, setup_callbacks): New functions.
3168 * fix-header.c (scan_in): Change type to cpp_reader *.
3169 (read_scan_file): Update for new cpplib interface and scan_in type.
3171 * cp/decl.c (parse_in): Change to cpp_reader *.
3172 (lang_decode_option): Update.
3173 * cp/lex.c (lang_init_options): Use new cpplib interface.
3174 (init_cp_pragma, finish_parse, handle_pragma_implementation): Update.
3175 * cp/spew.c (read_token): Update.
3176 * objc/objc-act.c (lang_init_options): Update new cpplib interface.
3178 2000-11-28 Jakub Jelinek <jakub@redhat.com>
3180 * loop.c (load_mems): Avoid using next_label to find end_label. If
3181 jumping outside of the loop (other than loop end), don't hoist MEMs
3184 2000-11-28 Jan Hubicka <jh@suse.cz>
3186 * calls.c (expand_call): Don't disable tail recursion based
3189 2000-11-28 Neil Booth <neilb@earthling.net>
3191 * tradcpp.c (enum node_type): New hash types T_ASSERT, T_UNASSERT.
3192 (struct directive): Drop 4th argument from handlers.
3193 (do_define, do_line, do_include, do_undef, do_else, do_elif,
3194 do_endif): Similarly.
3195 (do_assert, do_unassert, do_ifdef, do_ifndef): New handlers.
3196 (do_ifxdef): Update as common handler of do_ifdef and do_ifndef.
3197 (make_definition, make_undef): Take a const char*.
3198 (make_assertion): New function.
3199 (struct directive_table): Update.
3200 (main): Handle -A command line argument.
3201 (handle_directive): Drop fourth handler argument.
3203 2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
3205 * simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
3206 is anything but REG or MEM, but look inside STRICT_LOW_PART.
3208 Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3210 * system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
3211 (IS_ABSOLUTE_PATHNAME): New macro.
3212 * gcc.c (find_a_file, process_command, do_spec_1, main): Use it.
3214 2000-11-28 Jakub Jelinek <jakub@redhat.com>
3216 * config/i386/i386.md (truncxfsf2_2): Fix predicate.
3218 2000-11-27 Jim Wilson <wilson@redhat.com>
3220 * reload1.c (reload): Use HOST_WIDE_INT for old_frame_size.
3222 2000-11-27 Matthias Klose <doko@cs.tu-berlin.de>
3224 * extend.texi (Nested Functions): Update URL of Usenix paper.
3226 2000-11-27 Mark Mitchell <mark@codesourcery.com>
3228 * function.c (free_after_compilation): Clear x_clobber_return_insn.
3230 2000-11-27 Neil Booth <neilb@earthling.net>
3232 * cppinit.c (cpp_reader_init): Remove handling of warn_paste
3233 command line options.
3234 (cpp_handle_option): Similarly.
3235 * cpplib.h (struct cpp_options): Remove warn_paste.
3236 * cppmacro.c (paste_tokens): Apart from assembler, make
3237 unpasteable token warning mandatory.
3239 2000-11-27 Neil Booth <neilb@earthling.net>
3241 * tradcpp.c (enum pending_dir_t, struct pending_dir): New.
3242 (main): Allocate a pending directive set of these. Use it.
3243 Merge handling of -D and -U. Update handling of pending
3244 directives. Free the memory after use.
3246 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
3248 * flow.c (entry_exit_blocks): Add entry for cond_local_set.
3249 (struct propagate_block_info): Add new member cond_local_set.
3250 (propagate_block): Accept new arg cond_local_set. All callers
3252 (init_propagate_block_info): Likewise.
3253 (calculate_global_regs_live): Allocate & free cond_local_set. Always
3254 rescan if there's overlap between cond_local_set and new_live_at_end.
3255 (mark_set_1): Set bits either in cond_local_set or local_set, as
3257 * basic-block.h (struct basic_block_def): New field cond_local_set.
3258 (propagate_block, init_propagate_block_info): Update prototypes.
3260 Mon Nov 27 17:29:44 2000 kaz Kojima <kkojima@rr.iij4u.or.jp>
3262 * gcc/config/sh/sh.md (udivsi3_i4, udivsi3_i4_single): Clobber
3265 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
3267 * arm.c (select_dominance_cc_mode): Handle new way that combine
3268 canonicalizes conditional compares.
3269 (arm_select_cc_mode): Likewise.
3270 * arm.md: Garbage collect some dead code.
3271 (cmp_and, cmp_ior): New patterns.
3272 (splitter for conditional move with inverted false): Use cond_exec
3273 and handle unordered comparisons.
3275 Mon Nov 27 17:22:56 MET 2000 Jan Hubicka <jh@suse.cz>
3277 * i386.c (ix86_force_to_memory, ix86_free_from_memory): New.
3278 * i386-protos.h (ix86_force_to_memory, ix86_free_from_memory): Declare
3279 * i386.md (float?i?f, int/fp operations): Rewrite spliters to use
3280 ix86_force_to_memory and ix86_free_from_memory.
3282 2000-11-27 Richard Earnshaw <rearnsha@arm.com>
3284 * arm.md (arm_adddi3, adddi_sesidi_di, adddi_zesidi_di, arm_addsi3,
3285 arm_subsi3_insn, anddi_zesidi_di, arm_andsi3_insn, anddi_notdi_di,
3286 anddi_notzesidi_di, anddi_notsesidi_di, arm_iorsi3,
3287 one_cmpldi2): Merge with splitters to create define_insn_and_split
3288 patterns. Remove redundant splits.
3289 (peephole2 for add:SI of invalid immediate): New.
3290 (peephole2 for minus:SI of invalid immediate): New.
3291 (peephole2 for ior:SI of invalid immediate): New.
3292 (peephole for merge of move and compare): Convert ot peephole2.
3293 (addsf3, adddf3): Mark as commutative.
3295 * arm.md (thumb peephole for merging stack adjustments): Convert to
3298 2000-11-27 Bernd Schmidt <bernds@redhat.co.uk>
3300 * haifa-sched.c (print_pattern): Prettier output for COND_EXEC.
3302 * reload1.c (reload_cse_simplify_set): Pass down mode to cselib_lookup.
3303 (reload_cse_simplify_operands): Do nothing about operands where both
3304 the operand and the match_operand fail to give us a mode.
3305 * simplify-rtx.c (wrap_constant): New function.
3306 (entry_and_rtx_equal_p): Except integer constants to come wrapped in a
3307 CONST describing the proper mode.
3308 (rtx_equal_for_cselib_p): Pass down modes to recursive calls of
3310 (cselib_lookup_mem): Call wrap_constant on the rtx that is passed to
3311 htab_find_slot_with_hash.
3312 (cselib_lookup): Likewise.
3314 Based on a patch from Geoff Keating <geoffk@redhat.com>:
3315 * loop.c (basic_induction_var): If a REG is set from something
3316 that is not a biv, then the REG is not a biv. Even if it is
3317 earlier set from something that is a biv.
3319 2000-11-27 Alexandre Oliva <aoliva@redhat.com>
3321 * configure.in (extra_objs): Enclose extra_headers in quotes.
3322 * configure: Rebuilt.
3324 2000-11-27 Neil Booth <neilb@earthling.net>
3326 * c-lex.c (cb_enter_file, cb_leave_file, cb_rename_file):
3327 Combine into the new function cb_change_file.
3328 (init_c_lex): Update.
3329 * cppfiles.c (stack_include_file): Use _cpp_do_file_change.
3330 (cpp_syshdr_flags): Delete.
3331 * cpphash.h (_cpp_do_file_change): New prototype.
3332 Move struct cpp_buffer here from...
3333 * cpplib.h (struct cpp_buffer): ... here.
3334 (enum cpp_fc_reason, struct cpp_file_loc,
3335 struct_cpp_file_change, change_file): New.
3336 (enter_file, leave_file, rename_file, cpp_syshdr_flags): Delete.
3337 * cpplib.c (do_line): Update for new cb_change_file callback.
3338 (_cpp_do_file_change): New function.
3339 (_cpp_pop_buffer): Update to use it.
3340 * cppmain.c (move_printer): Delete.
3341 (main): Set up single callback cb_change_file.
3342 (cb_enter_file, cb_leave_file, cb_rename_file): Delete.
3343 (cb_change_file): New.
3344 * fix-header.c (cur_file, cb_change_file): New.
3345 (recognized_function, read_scan_file): Update.
3346 * scan-decls.c (scan_decls): Update.
3347 * scan.h (recognized_function): Update prototype.
3349 2000-11-26 Mark Mitchell <mark@codesourcery.com>
3351 * tree.h (mark_tree_hashtable): New function.
3352 * tree.c (mark_tree_hashtable_entry): New function.
3353 (mark_tree_hashtable): Likewise.
3355 2000-11-27 Michael Meissner <meissner@redhat.com>
3357 * d30v-protos.h (srelational_si_operator): Correctly spell
3359 (urelational_si_operator): Ditto.
3360 (relational_si_operator): Ditto.
3361 (d30v_expand_prologue): Add prototype.
3362 (d30v_expand_epilogue): Ditto.
3364 * d30v.h (OPTIMIZATION_OPTIONS): Undo November 22nd change.
3366 * d30v.md (movcccc_*): Delete now unused patterns.
3367 (64 bit comparison splitters): Rewrite to use COND_EXEC instead of
3369 (define_cond_exec): Use 'b' to select branch flags.
3371 2000-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3373 * builtins.c (expand_builtin_strncmp, expand_builtin_strncpy): New
3375 (expand_builtin): Handle BUILT_IN_STRNCPY and BUILT_IN_STRNCMP.
3377 * builtins.def (BUILT_IN_STRNCPY, BUILT_IN_STRNCMP): New entries.
3379 * c-common.c (c_common_nodes_and_builtins): Declare builtin
3380 strncpy and strncmp.
3382 * extend.texi (strncmp, strncpy): Document new builtins.
3384 2000-11-26 Mark Mitchell <mark@codesourcery.com>
3386 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Use a hash table, not
3387 a list, to keep track of the sections.
3388 * tm.texi (ASM_OUTPUT_SECTION_NAME): Document the fact that the
3389 parameter provided will always be a canonical string.
3391 2000-11-26 Neil Booth <neilb@earthling.net>
3393 * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
3396 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
3398 * makefile.vms: Remove EGCS references.
3400 2000-11-26 Ulrich Drepper <drepper@redhat.com>
3402 * dwarf2out.c (output_file_names): New function. Compute minimal
3403 combination of directory and file name table and emit them.
3404 (output_line_info): Remove code to emit directory and file name
3405 table and call output_file_names instead.
3406 (file_info_cmp): Helper function to sort directory names.
3408 2000-11-26 Neil Booth <neilb@earthling.net>
3410 * cpplib.h (struct cpp_reader): Remove lang_asm.
3411 (struct cpp_options): Remove c89. New members lang,
3413 * cppexp.c (parse_number): Use them.
3414 * cpphash.h (VALID_SIGN): Use them.
3415 * cppinit.c (set_lang, cpp_start_read): Update.
3416 * cpplex.c (parse_string, _cpp_lex_token): Update.
3417 * cpplib.c (_cpp_handle_directive): Update.
3418 * cppmacro.c (parse_args): Update.
3419 * cppmain.c (scan_buffer): Update.
3421 Sun Nov 26 10:02:37 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3423 * fold-const.c (fold, case CONVERT_EXPR): Always return tree of
3426 2000-11-26 Neil Booth <neilb@earthling.net>
3428 * Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
3429 * c-decl.c: Remove parse_in declaration.
3430 * c-lang.c: Similarly.
3431 * c-lex.c: Similarly.
3432 * c-parse.in: Similarly.
3433 * c-pragma.c: Similarly.
3434 * configure.in: Similarly.
3435 * cp/Make-lang.in: Similarly.
3436 * cp/spew.c: Similarly.
3437 * cp/decl2.c: Remove check for lang-c++ option.
3438 * cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
3439 * cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
3440 * c-lex.h: Add declaration of parse_in.
3441 * cppinit.c: Call set_lang after allocating pfile->pending.
3442 * configure: Regenerate.
3444 2000-11-25 Zack Weinberg <zack@wolery.stanford.edu>
3446 * combine.c (try_combine): Remove redundant test.
3448 2000-11-25 Richard Henderson <rth@redhat.com>
3450 * c-common.h (DECL_C_HARD_REGISTER): New.
3451 * c-decl.c (finish_decl): Set it for asm register variables.
3452 * c-semantics.c (emit_local_var): Test it when instantiating one.
3454 2000-11-25 Richard Henderson <rth@redhat.com>
3456 * c-decl.c (c_expand_body): Use DECL_SOURCE_LINE rather than
3457 lineno for the start of the function.
3459 2000-11-25 Richard Henderson <rth@redhat.com>
3461 * dwarf2out.c (file_table, file_table_allocated): Remove.
3462 (file_table_allocated): Remove.
3463 (struct file_table): New.
3464 (decl_file_table, line_file_table): New.
3465 (print_dwarf_line_table): Use them.
3466 (size_of_line_prolog): Likewise.
3467 (output_line_info): Likewise.
3468 (add_src_coords_attributes): Likewise.
3469 (gen_subprogram_die): Likewise.
3470 (gen_variable_die): Likewise.
3471 (dwarf2out_add_library_unit_info): Likewise.
3472 (dwarf2out_line): Likewise.
3473 (lookup_filename): Take a struct file_table argument.
3474 (init_file_table): New.
3475 (dwarf2out_init): Use it.
3477 2000-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
3479 * invoke.texi: Update sequence points references.
3481 2000-11-25 Neil Booth <neilb@earthling.net>
3483 * c-common.c: Remove USE_CPPLIB conditional inclusions.
3484 * c-common.h: Similarly.
3485 * c-decl.c: Similarly.
3486 * c-lang.c: Similarly.
3487 * c-lex.c: Similarly.
3488 * c-parse.in: Similarly.
3489 * c-pragma.c: Similarly.
3490 * c-pragma.h: Similarly.
3492 * toplev.c: Similarly.
3493 * cp/cp-tree.h: Similarly.
3494 * cp/decl2.c: Similarly.
3495 * cp/lang-specs.h: Similarly.
3496 * cp/lex.c: Similarly.
3497 * cp/lex.h: Similarly.
3498 * cp/spew.c: Similarly.
3499 * java/lang-options.h: Similarly.
3500 * objc/lang-specs.h: Similarly.
3501 * objc/objc-act.c: Similarly.
3503 * configure.in: Remove configure option.
3504 * config.in: Regenerate.
3505 * configure: Regenerate.
3507 2000-11-25 Richard Henderson <rth@redhat.com>
3509 * haifa-sched.c (sched_analyze_1, sched_analyze_2, sched_analyze):
3510 Revert 2000-11-22 change.
3512 2000-11-25 Bernd Schmidt <bernds@redhat.co.uk>
3514 * config/i386/i386.h (FIXED_REGS): Make the three flags registers
3517 2000-11-25 Philipp Thomas <pthomas@suse.de>
3518 * configure.in (ALL_LINGUAS): Remove en_GB and add sv.
3519 * configure: Rebuilt.
3521 2000-11-25 Jakub Jelinek <jakub@redhat.com>
3523 * config/sparc/sparc.md (muldi3_v8plus): Remove H constraint.
3524 Handle CONST_INT as second argument.
3525 * config/sparc/sparc.c (set_extends): Remove first argument.
3526 Properly handle AND, CONST_INT and CONST_DOUBLE, handle IOR, XOR and
3528 (sparc_check_64): Abort if first argument is not REG.
3529 If it is DImode REG, look at the lower register of the register
3532 * config/sparc/sparc.c (load_pic_register, restore_regs,
3533 output_return, sparc_v8plus_shift, sparc_function_profiler,
3534 sparc_function_block_profiler, sparc_block_profiler): Fix output
3537 2000-11-25 Alexandre Oliva <aoliva@redhat.com>
3539 * config/sh/sh.h (TARGET_NONE): New.
3540 (TARGET_SWITCHES): For all variant-selecting switch, use
3541 TARGET_NONE to reset all other variant-selecting switch. Added
3542 empty strings to avoid warnings.
3543 (TARGET_DEFAULT): Set to SH1_BIT.
3545 * Makefile.in ($(INTL_TARGETS)): Added $(CONFIG_H) for
3548 * gcc/config/sh/sh.md (sibcalli, sibcalli_pcrel): New insns.
3549 (sibcall_pcrel): New insn_and_split.
3550 (sibcall, sibcall_value, sibcall_epilogue): New expands.
3552 * config/sh/sh.md (GOTaddr2picreg, symGOT2reg, symGOTOFF2reg,
3553 symPLT_label2reg, call, call_value): Don't set
3554 current_function_uses_pic_offset_table.
3555 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't mark
3556 PIC_OFFSET_TABLE_REGNUM as call_used, so that calc_live_regs
3557 takes it into account.
3558 (FINALIZE_PIC): Delete, useless.
3559 (LEGITIMATE_CONSTANT_P): Delete, unused.
3560 * config/sh/sh.c (sh_expand_prologue): Don't use
3561 current_function_uses_pic_offset_table. Don't special-case
3562 PIC_OFFSET_TABLE_REGNUM. Initialize it if it's ever live and
3564 (sh_expand_epilogue, initial_elimination_offset): Don't
3565 special case PIC_OFFSET_TABLE_REGNUM.
3567 2000-11-25 Alexandre Oliva <aoliva@redhat.com>, NIIBE Yutaka <gniibe@m17n.org>
3569 * config/sh/sh-protos.h (symbol_ref_operand): Declare.
3570 * config/sh/sh.md (UNSPEC_CALLER): New constant.
3571 (calli_pcrel, call_valuei_pcrel): Use PIC_REG.
3572 (call_pcrel, call_value_pcrel): New insn_and_splits.
3573 (call, call_value): Use them.
3574 (call_site): New expand.
3575 (sym_label2reg, symPLT_label2reg): Adjust to hold call_sites.
3576 * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA) [UNSPEC_CALLER]:
3577 Output call_site label.
3578 (PREDICATE_CODES): Added symbol_ref_operand.
3579 * config/sh/sh.c (symbol_ref_operand): Define.
3580 * emit-rtl.c (try_split): Propagate CALL_INSN_FUNCTION_USAGE
3581 to CALL_INSNs in the split sequence.
3583 2000-11-24 Nick Clifton <nickc@redhat.com>
3585 * config.gcc (v850-*-*): Define c_target_objs and
3588 * config/v850/t-v850: Define how to build v850-c.o
3590 * config/v850/v850.h (struct data_area_stack_element): Move
3591 definition here from v850.c.
3593 * config/v850v850.c: Include gcc.h to avoid compile time
3595 (push_data_area): Move to v850-c.c.
3596 (pop_data_area): Move to v850-c.c.
3597 (mark_current_function_as_interrupt): Move to v850-c.c.
3598 (GHS_default_section_names): Allow to be exported.
3599 (GHS_current_section_names): Allow to be exported.
3600 (data_area_stack_elements): Allow to be exported.
3601 (ghs_pragma_section): Move to v850-c.c.
3602 (ghs_pragma_interrupt): Move to v850-c.c.
3603 (ghs_pragma_starttda): Move to v850-c.c.
3604 (ghs_pragma_startsda): Move to v850-c.c.
3605 (ghs_pragma_startzda): Move to v850-c.c.
3606 (ghs_pragma_endtda): Move to v850-c.c.
3607 (ghs_pragma_endsda): Move to v850-c.c.
3608 (ghs_pragma_endzda): Move to v850-c.c.
3610 * config/v850/v850-c.c: New file: Contains v850 specific
3611 pragma parsing functions.
3613 2000-11-24 Nick Clifton <nickc@redhat.com>
3615 * config.gcc (extra_objs): Remove duplicate description.
3616 (c_target_objs): New variable. Contains target specific
3617 object files for the gcc C compiler only.
3618 (cxx_target_objs): New variable. Contains target specific
3619 object files for the gxx C++ compiler only.
3621 * configure.in (c_target_objs): Substitute in the makefile.
3622 (cxx_target_objs): Substitute in the makefile.
3623 * configure: Regenerate.
3625 * Makefile.in (C_TARGET_OBJS): Define and initialise from
3627 (CXX_TARGET_OBJS): Define and initialise from
3629 (C_AND_OBJC_OBJS): Include C_TARGET_OBJS.
3631 * cp/Make-lang.in (CXX_C_OBJS): Include CXX_TARGET_OBJS).
3633 * tm.texi (REGISTER_TARGET_PRAGMAS): Add paragraph explaining
3634 about how the use of the 'c_lex' function requires the use of
3635 the target specific, language specific object files feature of
3636 the configuration mechanism.
3638 Fri Nov 24 18:50:58 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3640 * gcc.c (process_command): Use F_OK, not R_OK.
3642 2000-11-24 Arno J. Klaassen <arno@heho.snv.jussieu.fr>
3644 * flow.c (print_rtl_and_abort): Remove ANSIism.
3646 Fri Nov 24 19:54:36 2000 Alexandre Oliva <aoliva@redhat.com>
3648 * config/sh/sh.h (GENERAL_REGISTER_P,
3649 GENERAL_OR_AP_REGISTER_P, FP_REGISTER_P, XD_REGISTER_P,
3650 FP_OR_XD_REGISTER_P, FP_ANY_REGISTER_P): New macros. Use them
3652 (SPECIAL_REG): Renamed to SPECIAL_REGISTER_P.
3653 * config/sh/sh.c: Use new macros.
3654 * config/sh/sh.md: Likewise.
3656 Fri Nov 24 19:46:16 2000 Alexandre Oliva <aoliva@redhat.com>
3658 * config/sh/sh.md: Clobber MACH_REG and MACL_REG in SImode,
3659 instead of just MACH_REG in DImode. Always refer to FPSCR_REG
3662 Fri Nov 24 22:37:41 2000 Denis Chertykov <denisc@overta.ru>
3664 * config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
3666 (machine_dependent_reorg): Wrong optimization based on
3667 NOTICE_UPDATE_CC removed.
3669 Fri Nov 24 19:48:09 2000 J"orn Rennecke <amylaar@redhat.com>
3671 * jump.c (delete_computation): Re-instate deletion of feeding insn.
3672 (delete_insn): Look for REG_LABEL notes.
3673 (redirect_tablejump): Delete feeding insns.
3675 2000-11-24 Bernd Schmidt <bernds@redhat.co.uk>
3677 * config/i386/i386.md (call_pop_0, call_pop_1, call_value_pop_0,
3678 call_value_pop_1): Make sure operand numbers are contiguous.
3680 * fold-const.c (fold_range_test): Avoid crash if LHS or RHS is null.
3682 * reload1.c (conflicts_with_override): New function.
3683 (emit_input_reload_insns): Use it to tighten test for validity
3684 of substituting into output of previous insn.
3686 * haifa-sched.c (struct ready_list): New.
3687 (ready_lastpos, ready_add, ready_remove_first, ready_sort): New static
3689 (schedule_insn): Replace args READY and N_READY with a pointer to a
3690 ready_list; return void. Use the new functions to access the ready
3691 list. All callers changed.
3692 (queue_to_ready, debug_ready_list): Likewise.
3693 (schedule_block): Initialize a ready_list structure. Use new
3694 functions to access it.
3695 (max_priority): Remove unused variable.
3696 (schedule_insn): Don't set it.
3698 * c-common.c (verify_tree): Don't recurse into CONSTRUCTORs.
3700 * combine.c (cant_combine_insn_p): New function.
3701 (try_combine): Use it.
3703 * Makefile.in (c-common.o): Depend on $(OBSTACK_H).
3704 * c-common.c (c-obstack.c): Include "obstack.h".
3705 (struct reverse_tree): Delete.
3706 (reverse_list, reverse_max_depth): Delete.
3707 (build_reverse_tree, common_ancestor, modify_ok): Delete functions.
3708 (struct tlist, struct tlist_cache): New.
3709 (tlist_obstack, tlist_firstobj, warned_ids, save_expr_cache): New.
3710 (add_tlist, merge_tlist, verify_tree, warning_candidate_p,
3711 warn_for_collisions, warn_for_collisions_1, new_tlist): New
3713 (verify_sequence_points): Rewritten.
3714 * fold-const.c (fold): Don't lose possibly important sequence
3715 points when removing one arm of TRUTH_ORIF_EXPRs or TRUTH_ANDIF_EXPRs.
3717 2000-11-24 Richard Sandiford <rsandifo@redhat.com>
3719 * gcc/cse.c (cse_insn): Removed conversion of REG_EQUIV to REG_EQUAL
3720 when reversing a register-to-register copy. Reversal now disabled
3721 when the previous instruction has a REG_EQUIV.
3723 2000-11-24 Nathan Sidwell <nathan@codesourcery.com>
3725 * c-parse.in (unary_expr): Move VA_ARG from here ...
3726 (primary): ... to here.
3728 2000-11-23 Graham Stott <grahams@redhat.com>
3730 * expr.c (store_constructor): If a field is non addressable and
3731 the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.
3733 2000-11-23 Bernd Schmidt <bernds@redhat.co.uk>
3735 * flow.c (print_rtl_and_abort): New function.
3736 (verify_wide_reg, verify_local_live_at_start): Try to dump more
3737 information before aborting.
3739 2000-11-23 Alexandre Oliva <aoliva@redhat.com>
3741 * emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
3742 is narrower than requested mode.
3743 (gen_highpart): Abort if register mode is narrower than
3746 2000-11-23 Graham Stott <grahams@redhat.com>
3748 * cse.c (cse_insn): Initialise all regcost variables.
3749 Fix a typo add missing '='.
3750 Only compare costs if there is a replacement insn.
3752 Thu Nov 23 04:33:33 2000 Alexandre Oliva <aoliva@redhat.com>
3754 * final.c (output_addr_const) [LABEL_REF]: Simplify.
3755 [MINUS]: Enclose non-CONST_INTs in parentheses.
3756 [default]: Try OUTPUT_ADDR_CONST_EXTRA.
3757 * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
3758 * varasm.c (decode_rtx_const) [CONST]: If it's not something
3759 PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
3760 instead of abort()ing.
3761 * sh.c (output_pic_addr_const): Removed. Fixed all callers.
3762 * sh.h (OUTPUT_ADDR_CONST_EXTRA): New. Handle the UNSPECs
3763 formerly handled in output_pic_addr_const.
3764 * sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
3765 operands of MINUS in CONSTs so that decode_rtx_const() will
3768 Thu Nov 23 04:10:30 2000 Alexandre Oliva <aoliva@redhat.com>
3770 * config/sh/sh.md (mova_const): New pattern.
3771 (GOTaddr2picreg): Use it.
3772 * config/sh/sh.c (broken_move): Match it.
3773 (mova_p): Don't match it.
3774 (machine_dependent_reorg): Adjust it.
3776 Thu Nov 23 02:09:09 2000 Alexandre Oliva <aoliva@redhat.com>
3778 * config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
3779 Moved most register-number #defines...
3780 * config/sh/sh.md (define_constants): ... here. Use macros to
3781 refer to registers and unspecs.
3782 * config/sh/sh.c: Likewise.
3784 Thu Nov 23 01:01:32 2000 J"orn Rennecke <amylaar@redhat.com>
3786 * Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
3787 (rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
3788 (alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
3789 (splay-tree.o, hash.o): Likewise.
3791 (rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
3792 (bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
3793 (hashtab.o): Likewise.
3794 (gcov.o): Depend on $(CONFIG_H).
3795 * configure.in: #include insn-codes.h in tm.h.
3797 2000-11-22 Nick Clifton <nickc@redhat.com>
3799 * config/arm/arm.c (arm_encode_call_attribute): Make 'newstr' a
3800 const char * to avoid a compile time warning.
3802 * config/arm/arm.md (define_constants): Define symbolic names for
3803 the link register, last integer register and the fake CC register.
3804 Update patterns to use these symbolic names.
3806 2000-11-22 Neil Booth <neilb@earthling.net>
3808 * cpplex.c (trigraph_ok): Ensure we don't warn twice.
3809 * cpplib.h (struct cpp_buffer): New member last_Wtrigraphs.
3811 2000-11-22 Richard Henderson <rth@redhat.com>
3813 * haifa-sched.c (sched_analyze_1): Don't special-case calls
3814 for clobbering registers.
3815 (sched_analyze_2): Likewise.
3816 (sched_analyze): Zap reg_last_uses and reg_last_sets after calls.
3818 2000-11-22 Chris Demetriou <cgd@sibyte.com>
3819 Neil Booth <neilb@earthling.net>
3821 * gcc.c (validate_switches): Validate multiple switches named
3822 in '|' (or) expressions in specs.
3823 (handle_braces): If more than 1 alternative in a '|' spec
3824 matches, call do_spec1 just once.
3826 2000-11-22 Michael Meissner <meissner@redhat.com>
3828 * d30v.h (TARGET_SWITCHES): Add documentation strings.
3829 (TARGET_OPTIONS): Ditto.
3830 (OPTIMIZATION_OPTIONS): Temporarily turn off -frename-registers if
3833 Wed Nov 22 06:40:56 2000 Jeffrey A Law (law@cygnus.com)
3835 * pa.c (hppa_encode_label): Account for addition of encoding
3836 character when allocating persistent space for the new label
3839 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
3841 * Makefile.in, config.gcc, configure.in: Expunge remaining
3842 traces of facility for running MD files through C preprocessor.
3844 2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
3846 * gcov.texi: Add magic comments for texi2pod.pl.
3847 * Makefile.in: Add rules to generate and install gcov.1.
3848 * gcov.1: New (generated) file.
3850 2000-11-21 Richard Henderson <rth@redhat.com>
3852 * regrename.c (scan_rtx_reg): Terminate the chain rather than
3853 abort on mark_read with NO_REGS.
3855 2000-11-21 Mike Stump <mrs@wrs.com>
3857 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Fix to allow
3858 compilation with older compilers, such as /bin/cc on SunOS.
3859 * fixinc/fixfixes.c (FIX_PROC_HEAD): Ditto.
3861 2000-11-21 Richard Henderson <rth@redhat.com>
3863 * varasm.c (record_constant): Pad the constructed
3864 constant_descriptor appropriately.
3866 Wed Nov 22 00:52:55 2000 J"orn Rennecke <amylaar@redhat.com>
3868 * rtl.h (traverse_md_constants): Declare.
3869 (struct md_constant): Define.
3870 * Makefile.in (HOST_RTL): Add hashtab.o .
3871 (OBJS): Add hashtab.o .
3872 (hashtab.o): New rule.
3873 (rtl.o): Depends on HASHTAB_H.
3874 * rtl.c (hashtab.h): #include.
3875 (md_constants): New static variable.
3876 (def_hash, def_name_eq_p, read_constants): New static functions.
3877 (traverse_md_constants): New function.
3878 (read_name): Do constant expansion.
3879 (read_rtx): Recognize define_constants.
3880 * gencodes.c (print_md_constant): New function.
3881 (main): Emit #defines for all constant definitions encountered.
3882 * md.texi (Constant Definitions): New node.
3883 * gensupport.c (xcalloc): New function.
3885 2000-11-21 Richard Henderson <rth@redhat.com>
3887 * config/alpha/alpha.c (alpha_split_tfmode_frobsign): New.
3888 * config/alpha/alpha-protos.h: Declare it.
3889 * config/alpha/alpha.md (abstf_internal): Use it.
3890 (negtf_internal): Likewise.
3891 (andnotdi3): Unstar the name.
3892 (movtf_internal): Add o/G alternative.
3894 2000-11-21 Zack Weinberg <zack@wolery.stanford.edu>
3896 * stringpool.c (stringpool_statistics): Also report number and
3897 percentage of entries which are identifiers.
3899 2000-11-21 Diego Novillo <dnovillo@redhat.com>
3901 * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
3902 visited before visiting it.
3904 2000-11-21 Nick Clifton <nickc@redhat.com>
3906 * config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
3907 TARGET_CPU_strongarm110 and TARGET_SPU_strongarm1100.
3909 * config.gcc: Accept --with-cpu=arm9 and --with-cpu=arm9tdmi.
3911 2000-11-21 Richard Henderson <rth@redhat.com>
3913 * c-common.c (c_unsafe_for_reeval): New function.
3914 (add_c_tree_codes): Register it.
3915 * c-common.h: Declare it.
3916 * tree.c (lang_unsafe_for_reeval): New hook.
3917 (unsafe_for_reeval): Call it.
3918 * tree.h: Declare it.
3920 2000-11-21 Richard Henderson <rth@redhat.com>
3922 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
3925 2000-11-21 Neil Booth <neilb@earthling.net>
3927 * do_includes: Revert to using cpp_read_file.
3929 2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
3931 * loop.c (consec_sets_giv): If the reg we're examining is anything
3932 but UNKNOWN_INDUCT, do nothing.
3933 Reset the reg's type to UNKNOWN_INDUCT before returning.
3935 Mostly from Vladimir Makarov (vmakarov@redhat.com)
3936 * ia64.md (attr itanium_class): Define insn types as described in
3938 (all insn patterns): Use itanium_class, not type attributes.
3939 Occasionally split alternatives as necessary.
3940 (attr type): Compute from new attr itanium_class.
3942 2000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3944 * tradcpp.c (output_line_command): Mark system headers as such in
3947 2000-11-21 Jakub Jelinek <jakub@redhat.com>
3949 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Sparc has .file/.loc
3950 support in as as well.
3951 * configure: Regenerate.
3953 2000-11-20 Richard Henderson <rth@redhat.com>
3955 * c-lex.c (orig_filename): New variable.
3956 (init_c_lex): Set it. Move call to cpp_start_read ...
3957 (yyparse): ... here. New function.
3958 * c-parse.in (yyparse_1): Rename the parser entry point.
3959 * c-tree.h: Declare it.
3961 2000-11-21 Jakub Jelinek <jakub@redhat.com>
3963 * expr.c (do_compare_and_jump): If op0 was replaced by promoted
3964 integer constant, use type of op1 for comparison.
3966 2000-11-20 Stan Shebs <shebs@apple.com>
3968 * config/rs6000/xm-darwin.h: New file, Darwin host definitions.
3969 * config/rs6000/x-darwin: New file, Darwin host fragment.
3970 * config.gcc (powerpc-*-darwin*): New host.
3971 * system.h (HAVE_DESIGNATED_INITIALIZERS): Allow this to be
3972 overridden by a config file.
3974 2000-11-20 Neil Booth <neilb@earthling.net>
3976 * cppmacro.c (paste_tokens): Rename from paste_payloads.
3977 Change token type after pasting spellings.
3978 (paste_all_tokens): Use it.
3979 * gcc.dg/cpp/paste2.c: Update test.
3980 * objc/execute/paste.m: New test.
3982 2000-11-20 Richard Henderson <rth@redhat.com>
3984 * dwarf.h (FMT_CODE): Adjust argument order; fix mapping to
3985 dwarf_subscr_data_formats bits.
3986 * dwarfout.c (simple_type_size_in_bits): Handle a type with
3987 no computed size as size zero.
3988 (field_byte_offset): Likewise.
3989 (subscript_data_attribute): Handle a range with no upper bound.
3991 2000-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3993 * gansidecl.h (const): Check __STDC__ before undef'ing `const'.
3995 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
3997 * c-typeck.c (build_conditional_expr): When merging type
3998 qualifiers for conditional expressions between a pointer and a
3999 pointer to a void type, merge the qualifiers on the target types
4000 rather than the pointer type. Remove obsolete conditioned out
4003 2000-11-20 Neil Booth <neilb@earthling.net>
4005 * c-lang.c (lang_init_options): Update call to
4007 * cppmain.c (main): Similarly.
4008 * fix-header.c (read_scan_file): Similarly.
4009 * cp/lex.c (lang_init_options): Similarly.
4010 * objc/objc-act.c (lang_init_options): Similarly.
4011 * cppexp.c (parse_number): Only warn for unextended C89.
4012 * cppinit.c (set_lang): New function.
4013 (cpp_reader_init): Take a LANG argument and pass it to set_lang.
4014 (COMMAND_LINE_OPTIONS): New option std=c++98.
4015 (cpp_handle_option): Use set_lang.
4016 * cpplex.c (_cpp_lex_token): Warn pedantically if not C99.
4017 * cppib.h (enum_c_lang): New enumeration. Update comments.
4019 2000-11-20 Will Cohen <wcohen@redhat.com>
4021 * calls.c (expand_call): Clear target only when target is in
4022 hard register and current_function_check_memory_usage is set.
4024 2000-11-20 Bernd Schmidt <bernds@redhat.co.uk>
4026 * toplev.c (rest_of_compilation): Run optimize_mode_switching even
4028 * sh.c (emit_sf_insn, emit_df_insn): Just call emit_insn.
4030 2000-11-19 Richard Henderson <rth@redhat.com>
4032 * crtstuff.c (force_to_data): Use array size 1 not 0.
4034 * dwarf2out.c (simple_type_size_in_bits): Handle a type with
4035 no computed size as size zero.
4036 (field_byte_offset): Likewise.
4038 2000-11-20 Joseph S. Myers <jsm28@cam.ac.uk>
4040 * config.gcc: Fix another typo.
4042 2000-11-19 Richard Henderson <rth@redhat.com>
4044 * c-decl.c (grokdeclarator): Support flexible array members.
4045 Use open-ended ranges for these and zero-length arrays.
4046 * c-typeck.c (push_init_level): Validate the context of
4047 initialization of a zero-length array.
4048 * tree.c (int_fits_type_p): Be prepared for missing bounds.
4049 * varasm.c (array_size_for_constructor): New.
4050 (output_constructor): Use it for arrays of unspecified length.
4051 * extend.texi (Zero Length): Mention C99 flexible array members.
4052 Document initialization in a top-level struct as valid.
4054 2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
4056 * config.gcc, invoke.texi: Fix errors in spelling of "deprecated".
4058 * alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
4059 stdarg and varargs functions.
4061 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
4063 * gcc.c (process_command): Define 'j' variable when
4064 MODIFY_TARGET_NAME is defined.
4066 2000-11-19 Richard Henderson <rth@redhat.com>
4068 * stor-layout.c (variable_size): Only put SAVE_EXPRs on pending_sizes.
4070 2000-11-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4072 * rs6000/rs6000.c (rs6000_encode_section_info): Fix string length
4073 calculation and allocation.
4075 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4077 * builtins.c (c_getstr): Constify variable.
4078 * gmon-sol2.c (_mcleanup): Comment out #endif labels.
4079 * conflict.c (const_conflict_graph_arc): New typedef.
4080 (arc_hash, arc_eq): Avoid needlessly casting away const-ness.
4081 * cppmacro.c (builtin_macro): Likewise.
4082 * dwarf2out.c (output_comp_unit): Constify variable.
4083 * fix-header.c (v_fatal): Add ATTRIBUTE_PRINTF.
4084 * protoize.c (IS_SAME_PATH_CHAR): Use TOUPPER, not toupper.
4085 * ssa.c (ssa_rename_from_hash_function): Avoid needlessly casting
4087 * tradcpp.c (rescan, do_line, macroexpand, macarg): Use
4088 ISALNUM/ISDIGIT/ISPRINT, not isalnum/isdigit/isprint.
4089 * varasm.c (const_str_htab_hash, const_str_htab_eq,
4090 compare_constant_1, record_constant_1): Constify.
4092 2000-11-18 Richard Henderson <rth@redhat.com>
4094 * c-decl.c (grokdeclarator): Special case the creation of an
4095 index for a zero-length array.
4096 * tree.c (build_index_type): Revert Oct 20 change.
4098 2000-11-18 Marek Michalkiewicz <marekm@linux.org.pl>
4100 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Prototype.
4101 * config/avr/avr.c (jump_tables_size): New variable.
4102 (function_prologue): Initialize it as 0.
4103 (function_epilogue): Add it to function_size.
4104 (avr_output_addr_vec_elt): New function. Count words in jump
4105 tables in jump_tables_size. Move code ...
4106 * config/avr/avr.h (ASM_OUTPUT_ADDR_VEC_ELT): ... from here.
4107 Call avr_output_addr_vec_elt instead.
4108 * config/avr/avr.md (tablejump): Remove disabled define_expand.
4110 2000-11-18 Mark Mitchell <mark@codesourcery.com>
4112 * configure.in: Make --enable-new-gxx-abi the default.
4113 * configure: Likewise.
4115 2000-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4117 * Makefile.in (tradcpp.o, tradcif.o): Depend on tradcpp.h.
4119 * tradcif.y: Include tradcpp.h. Constify. Make functions static.
4120 Move extern function declarations to tradcpp.h.
4122 * tradcpp.c: Likewise.
4124 * tradcpp.h: New file.
4126 2000-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
4128 * c-decl.c (check_for_loop_decls): New function.
4129 * c-parse.in (for_init_stmt): New.
4130 (select_or_iter_stmt): Use for_init_stmt.
4131 * c-tree.h (check_for_loop_decls): New declaration.
4133 2000-11-18 Neil Booth <neilb@earthling.net>
4135 * cppinit.c: Update comments.
4136 (cpp_reader_init): Make -imacro and -include use the standard
4137 #include "" search path.
4138 (do_includes): New function.
4140 2000-11-18 Ben Elliston <bje@redhat.com>
4142 * config/sh/crt1.asm (start_l): Move PC-relative move instruction
4143 out of a branch delay slot.
4145 2000-11-17 Richard Henderson <rth@redhat.com>
4147 * config/alpha/elf.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4148 (ASM_SPEC): Disable and enable .mdebug based on -gstabs.
4149 (ASM_FILE_START): Only write out ecoff .file directive if
4150 emitting mdebug debugging.
4152 2000-11-17 Richard Henderson <rth@redhat.com>
4154 * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect
4155 whether as accepts .file/.loc and produces dwarf2 line info.
4156 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if
4157 the assembler supports it.
4158 * config.in, configure: Regenerate.
4160 2000-11-17 Richard Henderson <rth@redhat.com>
4162 * fixinc/mkfixinc.sh: Don't disable fixincludes for any linux*.
4164 2000-11-17 Jim Wilson <wilson@redhat.com>
4166 * config/ia64/ia64.c (emit_insn_group_barriers, case CALL_INSN):
4167 Don't clear need_barrier is next_insn is a CALL_INSN, or has
4168 instruction type B or UNKNOWN.
4170 2000-11-17 Neil Booth <neilb@earthling.net>
4172 * cpperror.c (print_file_and_line): Don't display line number if 0.
4174 2000-11-17 Zack Weinberg <zack@wolery.stanford.edu>
4176 * ggc.h: Delete ggc_add_string_root and ggc_mark_string. Add
4177 digit_vector and digit_string.
4178 * stringpool.c (digit_vector): New.
4179 (ggc_alloc_string): Use digit_string.
4181 * stmt.c (digit_strings): Delete.
4182 (init_stmt): Do not initialize digit_strings.
4183 (expand_asm_operands): Use ggc.h's digit_string macro.
4184 * toplev.c (mark_file_stack): Delete.
4185 (compile_file): Don't call init_tree_codes.
4186 (main): No need to make the file stack a GC root.
4187 * tree.c (init_tree_codes): Delete.
4188 * tree.h (init_tree_codes): Delete.
4190 * c-lex.c: Don't include ggc.h.
4191 (mark_splay_tree_node, mark_splay_tree): Delete.
4192 (init_c_lex): No need to ggc_strdup string constant. Don't add
4193 file_info_tree to GGC roots.
4194 (cb_enter_file, cb_rename_file): No need to ggc_strdup
4197 * Makefile.in (c-lex.o): No longer depends on $(GGC_H).
4199 * dbxout.c (dbxout_init),
4200 dwarf2out.c (dwarf2out_line),
4201 ggc-common.c (ggc_mark_rtx_children, ggc_mark_trees),
4202 varasm.c (mark_const_hash_entry, mark_pool_constant, init_varasm_once),
4203 xcoffout.c (xcoffout_source_file),
4204 i386.c (load_pic_register):
4205 Delete call(s) to ggc_add_string_root and/or ggc_mark_string.
4207 * except.c (create_rethrow_ref),
4208 profile.c (init_edge_profiler),
4209 toplev.c (compile_file),
4210 varasm.c (named_section, assemble_static_space,
4211 assemble_trampoline_template, output_constant_def, force_const_mem),
4212 i386.c (load_pic_register),
4213 ia64.c (ia64_encode_section_info),
4214 rs6000.c (rs6000_emit_load_toc_table, create_TOC_reference,
4215 rs6000_emit_prologue, rs6000_emit_epilogue),
4216 rs6000.md (load_toc_aix_si, load_toc_aix_di):
4217 Change ggc_alloc_string (var, -1) to ggc_strdup (var).
4219 * profile.c (output_func_start_profiler),
4221 i386.c (load_pic_register): No need to ggc_strdup string constant.
4223 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
4225 * Makefile.in (config.status): Depend on config.gcc.
4226 * configure.in <for machine in $build $host $target>: Move
4227 contents of loop into config.gcc, removing autoconf quoting.
4228 Fix changequote bug for alpha*-*-vxworks*.
4229 * configure: Regenerate.
4232 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
4234 * c-parse.in (if_prefix): Find the filename and line number at
4235 $-2 and $-1 respectively.
4236 * diagnostic.c (error_recursion): Add missing newline, use
4237 fputs, translate string.
4239 2000-11-16 Zack Weinberg <zack@wolery.stanford.edu>
4241 * stringpool.c: New file.
4242 * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete.
4243 (ggc_alloc_string): Now in stringpool.o.
4244 * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string.
4245 * ggc.h: Delete prototype of ggc_add_string_root. #define
4246 ggc_add_string_root and ggc_mark_string to nothing. Prototype
4247 init_stringpool and stringpool_statistics.
4248 (ggc_alloc_string): Returns a const char *.
4249 * tree.c (hash_table, do_identifier_warnings): Delete.
4250 (init_obstacks): Don't initialize the identifier hash table.
4251 (get_identifier, maybe_get_identifier, start_identifier_warnings,
4252 set_identifier_size): Now in stringpool.c.
4253 * tree.h (struct tree_string): Constify pointer field.
4254 (approx_sqrt): Prototype.
4256 * Makefile.in (stringpool.o): Add rule, mention in OBJS.
4258 * toplev.c (approx_sqrt): New function.
4259 (compile_file): Call stringpool_statistics if mem_report is on.
4260 (main): Call init_stringpool.
4262 * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c
4263 (process_directive), c-typeck.c (constructor_asmspec, struct
4264 initializer_stack, start_init), except.c (create_rethrow_ref),
4265 stmt.c (digit_strings), toplev.c (decode_f_option), tree.c
4266 (built_in_filename), varasm,c (in_named_name,
4267 assemble_static_space, struct constant_descriptor, struct
4268 deferred_string, struct pool_constant, force_const_mem),
4269 i386.c (pic_label_name, global_offset_table_name), rs6000.c
4270 (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *.
4272 * c-common.c (combine_strings): Combine strings in scratch
4273 buffer, then pass to build_string.
4274 * optabs.c (init_libfuncs), profile.c (init_edge_profiler,
4275 output_func_start_profiler), stmt.c (init_stmt), alpha.c
4276 (alpha_need_linkage), arm.c (arm_encode_call_attribute),
4277 i386.c (load_pic_register), ia64.c (ia64_encode_section_info),
4278 rs6000.c (rs6000_encode_section_info): Create string in
4279 scratch buffer, then pass to ggc_alloc_string.
4281 * stmt.c (expand_asm_operands): If we must adjust the
4282 constraint strings, do so by creating a new one, not by
4283 modifying the old one in place. Constify some char *s.
4284 * config/pa/pa.c (hppa_encode_label): Drop unnecessary second
4285 argument. Create string in scratch buffer, then pass to
4287 * config/pa/pa-protos.h: Update prototype.
4288 * config/pa/elf.h, config/pa/pa.h, config/pa/som.h:
4289 hppa_encode_label takes only one argument.
4291 2000-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4293 * mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
4296 * cpplib.c (glue_header_name): Likewise.
4298 * fixincl.c (run_compiles, start_fixer): Likewise.
4300 * fixlib.c (load_file_data): Likewise.
4302 * mkdeps.c (munge): Likewise.
4304 2000-11-17 Hans-Peter Nilsson <hp@axis.com>
4306 * defaults.h [EH_FRAME_SECTION_ASM_OP] (EH_FRAME_SECTION): Remove
4307 trailing ';'. Fix formatting.
4309 2000-11-16 Jim Wilson <wilson@redhat.com>
4311 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT, MASK_INLINE_DIV_THR):
4312 Shift masks left by one to avoid conflict.
4314 * config/ia64/ia64.c (ia64_encode_section_info): Disallow decls with
4317 2000-11-16 Nick Clifton <nickc@redhat.com>
4319 * config/arm/arm.c (output_arm_prologue): Note nested functions.
4320 (arm_expand_prologue): For nested functions preserve the
4321 static chain register during stack frame creation.
4323 * config/arm/arm.h (STATIC_CHAIN_REGNUM): Change to 12.
4324 (ARM_INITIAL_FRAME_ELIMINATION_OFFSET): For a nested function
4325 with a stack frame there is a 4 byte gap between the arg
4326 pointer and the hard frame pointer (used to preserve the
4327 static chain register during stack frame creation).
4329 2000-11-16 DJ Delorie <dj@redhat.com>
4331 * rtl.c (read_rtx): Provide suitable names for unnamed
4332 define_insn and define_insn_and_split patterns, based on file
4335 2000-11-15 Neil Booth <neilb@earthling.net>
4337 * cpplib.c (start_directive, end_directive): New functions.
4338 (_cpp_handle_directive, run_directive): Use them.
4339 (_cpp_handle_directive): Don't -Wtraditional on indented
4341 (_cpp_push_buffer): Don't re-clear was_skipping.
4342 * cpplib.h (struct cpp_reader): New member la_saved.
4343 * cppmacro.c (cpp_get_token): Don't interpret _Pragma in
4346 gcc.dg/cpp/_Pragma1.c: Update.
4347 gcc.dg/cpp/_Pragma2.c: New test.
4349 2000-11-15 Mark Mitchell <mark@codesourcery.com>
4351 * toplev.c (wrapup_global_declarations): Don't write out
4352 artificial static variables that aren't needed.
4354 2000-11-15 Bernd Schmidt <bernds@redhat.co.uk>
4356 * ia64.c (struct group): New structure.
4357 (last_group): New static array.
4358 (group_idx): New static variable.
4359 (emit_group_barrier_after, errata_find_address_regs, errata_emit_nops):
4360 New static functions.
4361 (emit_insn_group_barriers): Initialize and keep track of group_idx
4363 Call errata_emit_nops if TARGET_B_STEP or TARGET_A_STEP.
4364 Replace all calls to emit_insn_after that emit a group barrier to use
4365 emit_group_barrier_after.
4366 * ia64.h (MASK_B_STEP): New.
4367 (other MASK_XXX macros): Renumbered.
4368 (TARGET_B_STEP): New.
4369 (TARGET_SWITCHES): Add -mb-step.
4371 2000-11-15 Fred Fish <fnf@be.com>
4373 * fixinc/mkfixinc.sh (fixincludes): Add *-*-beos* to list of
4374 machines for which fixincludes is not needed.
4375 * config/i386/x-beos (STMP_FIXPROTO): Don't run fixproto.
4377 2000-11-15 Jason Merrill <jason@redhat.com>
4379 * diagnostic.c (finish_abort): New fn.
4380 (fancy_abort, error_recursion): Use it.
4381 * toplev.c (crash_signal): Likewise.
4382 * diagnostic.h: Declare it.
4384 2000-11-13 Andrew Haley <aph@redhat.com>
4386 * tree.c (build_type_no_quals): New function.
4387 * tree.h (build_type_no_quals): Declare.
4388 * c-common.c (c_get_alias_set): When considering type
4389 compatibility for pointer types, ignore cv-qualifiers anywhere in
4392 2000-11-15 Graham Stott <grahams@redhat.com>
4394 * regrename.c (scan_rtx_rtx): Skip to the next chain on
4395 encountering a terminated chain.
4397 2000-11-14 Mark Mitchell <mark@codesourcery.com>
4399 * configure.in: Move check for V3 above check for C++ header-file
4401 * configure: Regenerated.
4403 2000-11-14 DJ Delorie <dj@redhat.com>
4405 * config/v850/v850.c: Remove obstacks.
4407 Tue Nov 14 21:54:31 2000 Marek Michalkiewicz <marekm@linux.org.pl> & Denis Chertykov <denisc@overta.ru>
4409 * config/avr/avr.c (avr_case_values_threshold): New.
4410 (avr_override_options): Set it depending on options, make it large
4411 when not optimizing to work around "unable to generate reloads".
4413 * config/avr/avr.h (TARGET_SWITCHES): Add -mno-tablejump option.
4414 (EXTRA_SECTION_FUNCTIONS): Make the .progmem.gcc_sw_table section
4415 executable if not AVR_MEGA. Make sure jump tables are word-aligned.
4416 (JUMP_TABLES_IN_TEXT_SECTION): Define as 0, not 1.
4417 (ASM_OUTPUT_ADDR_VEC_ELT): Optimize, use "rjmp" if not AVR_MEGA.
4418 (avr_case_values_threshold): Declare as extern int.
4419 (CASE_VALUES_THRESHOLD): Define as avr_case_values_threshold.
4421 * config/avr/avr.md (tablejump): Removed.
4422 (*tablejump_rjmp): New for jump tables made from "rjmp" instructions.
4423 (*tablejump_lib, *tablejump_enh, *tablejump): Change to expect the
4424 index in the table, not multiplied by 2.
4425 (casesi): Change to match the above insns. Always enable.
4427 * config/avr/libgcc.S (__tablejump__): Rename to __tablejump2__.
4428 Change to expect the word address of the table, multiply it by 2
4429 here and not in the caller. Change "adiw" to faster "inc".
4431 2000-11-14 Neil Booth <neilb@earthling.net>
4433 * cppexp.c (parse_defined): Call cpp_get_token not
4436 * cpplex.c (cpp_output_line): Similarly.
4437 * cpplib.c (glue_header_name, do_line, do_ident,
4438 parse_answer, parse_assertion): Similarly.
4439 (_cpp_handle_diretive): Don't save to lookaheads
4440 when processing directives.
4441 * cppmacro.c (parse_arg, expand_arg): Call cpp_get_token not
4443 (funlike_invocation_p): Don't save to lookaheads
4444 when pre-expanding arguments.
4445 (_cpp_get_token): Delete.
4446 (cpp_get_token): Merge contents of _cpp_get_token.
4448 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4450 * builtins.c (expand_builtin_setjmp): Set
4451 current_function_calls_setjmp.
4452 (expand_builtin_longjmp): Set current_function_calls_longjmp.
4454 * config/sparc/sparc.md (builtin_setjmp_setup): New expand.
4455 (do_builtin_setjmp_setup): New insn.
4457 Tue Nov 14 12:34:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4459 * tree.c (get_unwidened): Use host_integerp and tree_low_cst.
4460 (int_fits_type_p): For variable bounds, call force_fit_type.
4462 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4464 * varasm.c (struct deferred_string): New structure.
4465 (const_str_htab): New variable.
4466 (STRHASH): New macro.
4467 (mark_const_str_htab_1, mark_const_str_htab, const_str_htab_hash,
4468 constr_str_htab_eq, const_str_htab_del): New functions.
4469 (output_constant_def): Add DEFER argument, defer string
4470 constants until mark_constant_pool time if requested.
4471 (mark_constant_pool): Walk the insn chain even if const_str_htab is
4473 (mark_constants): If a SYMBOL_REF for deferred string is found,
4474 output it and remove from hash table.
4475 (output_addressed_constants): Set DEFER to 0 in call to
4476 output_constant_def.
4477 * rtl.h (STRING_POOL_ADDRESS_P): Define.
4478 (output_constant_def): Adjust prototype.
4479 * expr.c (expand_expr): Set DEFER to 1 in call to output_constant_def.
4481 2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
4483 * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
4484 signed types if flag_trapv.
4486 2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
4488 * tradcpp.c, tradcif.y: Update FSF mailing address, delete
4491 2000-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
4493 * c-common.h (CTI_C_SIZE_TYPE): Update comment.
4495 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4497 * varasm.c (struct varasm_status): Change x_const_rtx_sym_hash_table
4498 to array of pool_constnat pointers.
4499 (struct pool_constant): Add next_sym and label members.
4500 (struct pool_sym): Remove.
4501 (init_varasm_status): Change pool_sym into pool_constant.
4502 (mark_pool_constant): Mark pc->label string as well.
4503 (mark_pool_sym_hash_table): Remove.
4504 (mark_varasm_status): Remove it from caller as well.
4505 (free_varasm_status): Don't free pool_sym structures.
4506 (force_const_mem): Don't allocate pool_sym structure, instead
4507 fill pool->label and chain it into rtx_sym hash table.
4508 (find_pool_constant, mark_constant_pool): Use pool_constant instead
4511 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4513 * reload1.c (emit_input_reload_insns): Honour forcing of constants
4514 into memory by PREFERRED_RELOAD_CLASS NO_REGS.
4516 2000-11-14 Michael Matz <matzmich@cs.tu-berlin.de>
4518 * dominance.c: New file.
4519 * Makefile.in (OBJS): Add dominance.o.
4521 * flow.c (compute_flow_dominators): Remove.
4522 (compute_immediate_dominators): Remove.
4523 (compute_immediate_postdominators): Remove.
4524 * basic-block.h: Remove their prototypes.
4525 (calculate_dominance_info): Add prototype.
4527 * dce.c (eliminate_dead_code): Change calls to above functions.
4528 Don't compute dominators but only immediate dominators.
4529 * flow.c (flow_loops_find): Change callers.
4530 * gcse.c (compute_code_hoist_data): Likewise.
4531 * haifa-sched.c (schedule_insns): Likewise.
4532 * ifcvt.c (if_convert): Likewise.
4533 * ssa.c (convert_to_ssa): Likewise, and only compute immediate
4536 2000-11-14 Richard Henderson <rth@redhat.com>
4538 * stmt.c (warn_if_unused_value): Don't warn if the expression
4541 * c-typeck.c (c_sizeof): Fold result to c_size_type_node.
4542 (c_sizeof_nowarn, c_alignof, c_alignof_expr): Likewise.
4544 2000-11-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4546 * loop.c (basic_induction_var): Revert accidental checkin.
4548 2000-11-13 Hans-Peter Nilsson <hp@axis.com>
4550 * c-lex.c (cb_leave_file): Harmonize conditions and order of
4551 statements to those of process_directive for (action == act_pop).
4553 * collect2.c (main): Pass on -B options from COLLECT_GCC_OPTIONS.
4555 * local-alloc.c (equiv_init_movable_p): References to CC0 are not
4558 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4560 * c-parse.in (stmts_and_decls): Deprecate use of label at end of
4563 2000-11-13 Neil Booth <neilb@earthling.net>
4565 * cpplex.c (_cpp_lex_token): CPP_COMMENT and true CPP_EOF
4566 cases return without MI check.
4567 * cpplib.c (do_diagnostic): Take boolean of whether to
4568 print the directive name.
4569 (do_error, do_warning): Update.
4570 (do_pragma_dependency): Use it.
4571 * cpplib.h (VARARGS_FIRST): Delete.
4572 (struct cpp_token): Delete integer.
4573 * cppmacro.c (enter_macro_context): Move disabled check
4575 (_cpp_get_token): Simplify into a single loop.
4577 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4579 * configure.in: Use 'test -f' not '[ -e'.
4580 * configure: Regenerated.
4582 2000-11-13 DJ Delorie <dj@redhat.com>
4584 * config/mn10300/mn10300.md (store_movm): Note which registers are
4585 really used or clobbered.
4587 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4589 * c-parse.in (ends_in_label): Remove from %union and %type.
4590 (decls, stmts, lineno_stmt_or_labels, xstmts,
4591 lineno_stmt_or_label, stmt_or_label): Remove.
4592 (stmts_and_decls, lineno_stmt_decl_or_labels_ending_stmt,
4593 lineno_stmt_decl_or_labels_ending_decl,
4594 lineno_stmt_decl_or_labels_ending_label,
4595 lineno_stmt_decl_or_labels_ending_error,
4596 lineno_stmt_decl_or_labels, compstmt_contents_nonempty,
4597 lineno_stmt, lineno_label): New.
4598 (compstmt_nostart): Use compstmt_contents_nonempty.
4600 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4602 * c-common.c (boolean_increment): New function.
4603 * c-common.h (enum c_tree_index): Add CTI_C_BOOL_TYPE,
4604 CTI_C_BOOL_TRUE and CTI_C_BOOL_FALSE.
4605 (c_bool_type_node, c_bool_true_node, c_bool_false_node): Define.
4606 (boolean_increment): Declare.
4607 * c-convert.c (convert): Allow for BOOLEAN_TYPE.
4608 * c-decl.c (init_decl_processing): Create boolean nodes.
4609 (finish_struct): Allow for _Bool bitfields.
4610 * c-parse.in (reswords): Add _Bool.
4611 (rid_to_yy): Allow for RID_BOOL.
4612 * c-typeck.c (default_conversion): Make booleans promote to int.
4613 (convert_arguments, build_unary_op, build_modify_expr,
4614 convert_for_assignment): Allow for booleans.
4615 * ginclude/stdbool.h: Make conforming to C99.
4617 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4619 * c-parse.in (c99_block_start, c99_block_end,
4620 c99_block_lineno_labeled_stmt): New.
4621 (simple_if, do_stmt_start): Use c99_block_lineno_labeled_stmt.
4622 (stmt): Split off selection and iteration statements into...
4623 (select_or_iter_stmt): New. Use c99_block_lineno_labeled_stmt.
4625 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4627 * invoke.texi (-Wtrigraphs, -fdump-translation-unit, -save-temps,
4630 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4632 * arm.md (mulsidi3adddi, umulsidi3adddi): Revert previous change.
4633 Rewrite to avoid use of match_dup. Don't try to tie registers that
4634 are not in the same mode.
4636 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4638 * invoke.texi: Update lists of languages and suffixes supported.
4640 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4642 * configure.in: Take toplevel configure arguments from the
4643 environment to create configargs.h and substitute
4644 gcc_config_arguments, taking account of any existing configargs.h
4646 * configure: Regenerate.
4647 * gccbug.in: Include toplevel configure arguments in gccbug.
4649 2000-11-13 Richard Earnshaw <rearnsha@arm.com>
4651 * varasm.c (struct constant_descriptor): Put CONTENTS inside a
4652 union to make it well-aligned. Update all uses.
4654 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4656 * c-parse.in (initelt): Give appropriate pedantic warnings,
4657 depending on flag_isoc99, for non-ISO syntax and for C99 syntax
4659 (designator): If pedantic, pedwarn for a designator specifying a
4661 * c-typeck.c (set_init_index, set_init_label): Don't pedwarn for
4663 * extend.texi: Document the C99 syntax as the preferred syntax,
4664 and the pre-2.5 syntax as obsolete. Mention use of designator
4665 lists for nested subobjects.
4667 2000-11-13 Joseph S. Myers <jsm28@cam.ac.uk>
4669 * diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
4670 Add ATTRIBUTE_PRINTF.
4671 * tradcpp.c (v_message, warning, error, fatal, error_with_line):
4672 Add ATTRIBUTE_PRINTF*.
4674 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4676 * function.c (assign_parms): When calling put_var_into_stack, make
4677 sure that there are no hidden pending sequences.
4679 2000-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4681 * builtins.c (expand_builtin): Handle BUILT_IN_INDEX and
4682 BUILT_IN_RINDEX. Add missing checks for BUILT_IN_STRCHR and
4685 * builtins.def (BUILT_IN_INDEX, BUILT_IN_RINDEX): New entries.
4687 * c-common.c (c_common_nodes_and_builtins): Declare index and
4688 rindex when nonansi builtins are allowed.
4690 * extend.texi (index, rindex): Document new builtins.
4692 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4694 * configure.in: Turn on libstdc++ V3 by default.
4695 * configure: Regenerated.
4697 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on Solaris.
4699 2000-11-12 Jakub Jelinek <jakub@redhat.com>
4701 * reload1.c (set_label_offsets): Go inside of PARALLELs.
4703 2000-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
4705 * invoke.texi: Clean up option summary.
4707 2000-11-12 Nick Clifton <nickc@redhat.com>
4709 * config/mcore/mcore.c: Fix comment formating, and adjust sequence
4710 of #include headers.
4712 2000-11-12 Marc Espie <espie@openbsd.org>
4714 * configure.in: Fix filds test.
4717 2000-11-12 Mark Mitchell <mark@codesourcery.com>
4719 * jump.c (delete_computation): Don't assume that just becuase an
4720 instruction sets a register, that register is dead.
4722 2000-11-12 Neil Booth <neilb@earthling.net>
4724 * cppexp.c: Don't worry about pfile->skipping.
4725 * cpplib.c (struct if_stack): Make was_skipping unsigned char.
4726 (cpp_handle_directive): Save pfile->skipping in struct cpp_buffer
4727 for handled directives.
4728 (skip_rest_of_line): Use _cpp_lex_token after popping contexts
4729 and releasing lookaheads.
4730 (do_ifdef, do_ifndef, do_if): Use buffer->was_skipping.
4731 (do_else, do_elif, push_conditional): Update logic.
4732 (do_endif): Set buffer->was_skipping rather than pfile->skipping.
4733 (unwind_if_stack): Inline into cpp_pop_buffer.
4734 (cpp_push_buffer): Clear ifs->was_skipping for cpp_handle_directive.
4735 * cpplex.c (_cpp_lex_token): Clear skipping on EOF. Handle
4736 multiple-include optimisation.
4737 * cpplib.h (struct cpp_buffer): New member was_skipping.
4738 * cppmacro.c (_cpp_get_token): Loop whilst pfile->skipping. This
4739 works because skipping == 0 in directives.
4740 (_cpp_release_lookahead): Renamed from release_lookahead.
4741 (cpp_get_token): No need to check skipping as _cpp_get_token does
4742 this for us. No need to handle MI optimisation.
4744 Sat Nov 11 21:14:02 2000 Mark P Mitchell <mark@codesourcery.com>
4746 * fixinc/inclhack.def (sunos_matherr_decl): Bypass matherr
4747 declarations that use `__MATH_EXCEPTION' in their prototypes, too.
4748 * fixinc/fixincl.x: Regenerated.
4750 2000-11-11 Bruce Korb <bkorb@gnu.org>
4752 * fixinc/inclhack.def (avoid_bool_type): avoid commenting out #endif
4753 (avoid_wchar_t_type): ditto
4754 * fixinc/fixinc.irix: obsoleted
4756 2000-11-11 Zack Weinberg <zack@wolery.stanford.edu>
4758 * configure.in: Don't add $outputs to all_lang_makefiles. Add
4759 $srcdir/$s/Makefile.in if it exists.
4760 * configure: Regenerate.
4762 Sat Nov 11 18:41:20 2000 Mark P Mitchell <mark@codesourcery.com>
4764 * fixinc/mkfixinc.sh: Use the ordinary fixincludes on IRIX.
4766 2000-11-11 Jason Merrill <jason@redhat.com>
4768 * function.c (assign_parms): If TREE_ADDRESSABLE is set, try to
4769 give the parm a register and then call put_var_into_stack.
4770 * stmt.c (expand_decl): Likewise.
4772 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4774 * gcc.texi: Adjust wording.
4776 2000-11-11 Mark Mitchell <mark@codesourcery.com>
4778 * fixinc/inclhack.def (avoid_wchar_t_type): New fix.
4779 * fininc/fixincl.x: Regenerated.
4781 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4783 * invoke.texi: Correct spelling of -foptimize-register-move.
4785 2000-11-11 Neil Booth <neilb@earthling.net>
4787 Remove CPP_PLACEMARKERs.
4789 * cppexp.c (lex): Don't handle CPP_PLACEMARKER.
4790 * cpplex.c (_cpp_lex_token): Rename skip_newlines to next_bol
4791 * cpplib.c (skip_rest_of_line, check_eol, cpp_push_buffer):
4793 * cpplib.h: Remove CPP_PLACEMARKER.
4794 (struct lexer_state): Rename skip_newlines to next_bol.
4795 * cppmacro.c (stringify_arg): Don't handle CPP_PLACEMARKER.
4796 Simplify prev_white handling as a result.
4797 (paste_all_tokens): Don't worry about CPP_PLACEMARKERs.
4798 (parse_arg): Empty arguments are now empty, not CPP_PLACEMARKERs.
4799 (parse_args): Similarly. Update argument count tests.
4800 (enter_macro_context): Return 2 to indicate an empty macro.
4801 (replace_args): Don't bother pre-expanding an empty argument.
4802 Handle placemarkers and ## extension during pre-expansion.
4803 (cpp_get_token): Handle empty macro expansions. Don't worry
4804 about CPP_PLACEMARKERs.
4805 (_cpp_create_definition): Empty macros are now empty.
4806 (cpp_macro_defintion): Don't special case empty macros.
4807 * scan-decls.c: Don't bother with CPP_PLACEMARKERs.
4808 * c-lex.c: Similarly.
4810 2000-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
4812 * gcc.texi, invoke.texi: Add new section discussing language
4813 standards; link to it where appropriate; refer to ISO C instead of
4816 2000-11-11 Alexandre Oliva <aoliva@redhat.com>
4818 * builtins.c (std_expand_builtin_va_start): Take PARM_BOUNDARY
4821 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie SFmode to other FP
4824 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4826 * gcc.texi, gcov.texi: Update dates and version numbers.
4828 2000-11-10 Zack Weinberg <zack@wolery.stanford.edu>
4830 * configure.in: Remove AC_PROG_LEX and AC_PROG_YACC. Look for
4831 flex and bison, specifically, first in a unified build and
4832 then installed on the system.
4833 * Makefile.in: Set BISON to @BISON@, FLEX to @FLEX@. Rename
4834 LEXFLAGS to FLEXFLAGS. Adjust ORDINARY_FLAGS_TO_PASS to
4837 (collect2.o, gcc.o, prefix.o, toplev.o, alloca.o, intl.o,
4838 cppdefault.o): Remove pointless sed munging of source file
4841 2000-11-10 Bernd Schmidt <bernds@redhat.co.uk>
4843 * reload.c (find_reloads_address_1, case POST_MODIFY): Use RELOAD_OTHER
4844 for address reloads. Push replacements for REG_INC notes.
4845 (regno_clobbered_p): New arg SETS. Examine SETs if it's nonzero. All
4847 * reload1.c (choose_reload_regs): Registers set in the insn can't be
4848 used for RELOAD_OTHER reloads.
4850 2000-11-10 Mark Mitchell <mark@codesourcery.com>
4852 * c-dump.h: New file.
4854 2000-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4856 * alpha.c (check_float_value): Use memcpy, not bcopy.
4857 * arm.c (output_move_double): Likewise.
4859 * m88k.c (legitimize_operand): Likewise.
4860 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
4861 * m88k.md: Likewise.
4862 * mips.c (override_options): Likewise.
4863 * mips.md: Likewise.
4864 * romp.c (output_fpops): Likewise.
4865 * rs6000.c (rs6000_override_options): Likewise.
4867 * vax.c (check_float_value): Likewise.
4869 * emit-rtl.c (copy_rtx_if_shared, init_emit_once): Likewise.
4870 * expmed.c (synth_mult): Likewise.
4871 * final.c (add_bb_string): Likewise.
4872 * genattr.c (main): Likewise.
4873 * genattrtab.c (attr_string, simplify_cond, copy_rtx_unchanging):
4875 * jump.c (thread_jumps): Likewise.
4876 * prefix.c (save_string): Likewise.
4877 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Likewise.
4878 * regclass.c (init_reg_sets, init_reg_sets_1): Likewise.
4879 * reload1.c (reload, eliminate_regs): Likewise.
4881 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4883 * gcc.texi (Service): Update to reflect current practice and
4884 location of the GNU service directory.
4886 2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
4888 * regrename.c (build_def_use): Mark contents of REG_INC notes as
4889 needing replacement.
4891 * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Emit
4892 a no-op move if regs are equal.
4893 * toplev.c (rest_of_compilation): Do the noop moves elimination pass
4894 when calling jump after post-reload splitting.
4896 2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
4898 * c-tree.texi: Fix typos.
4899 * extend.texi: Likewise
4900 * gcov.texi: Likewise
4901 * rtl.texi: Likewise
4904 2000-11-09 Hans-Peter Nilsson <hp@axis.com>
4906 * c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
4907 in_system_header and flags[1] before dereferencing flags[2].
4909 2000-11-09 Matthew Hiller <hiller@redhat.com>
4911 * reload1.c (reload_combine): Fixed calculation of
4912 first_index_reg, last_index_reg.
4914 2000-11-09 Mark Mitchell <mark@codesourcery.com>
4916 * c-dump.c (dequeue_and_dump): Dump function bodies.
4918 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4919 (c-dump.o): New target.
4920 * c-common.h (flag_dump_translation_unit): New variable.
4921 (C_TYPE_QUALS): New macro.
4922 (strip_array_types): New function.
4923 (DECL_C_BIT_FIELD): New macro.
4924 (SET_DECL_C_BIT_FIELD): Likewise.
4925 (CLEAR_DECL_C_BIT_FIELD): Likewise.
4926 (dump_info_p): New typedef.
4927 (dump_tree_fn): Likewise.
4928 (lang_dump_tree): New variable.
4929 (dump_node_to_file): New function.
4930 * c-common.c (flag_dump_translation_unit): Define it.
4931 (strip_array_types): New function.
4932 * c-decl.c (c_decode_option): Handle -fdump-translation-unit.
4933 * c-lang.c (finish_file): Call dump_node_to_file if
4934 flag_dump_translation_unit.
4935 * c-semantics.c (mark_rtl_for_local_static): Fix typo in comment.
4936 * c-tree.h (DECL_C_BIT_FIELD): Remove declaration.
4937 * c-dump.c: New file.
4939 2000-11-09 Christopher Faylor <cgf@cygnus.com>
4941 * config/i386/cygwin.h: Add mingw startfile prefix.
4943 2000-11-09 Richard Henderson <rth@redhat.com>
4945 * flow.c (invalidate_mems_from_set): Split out from ...
4946 (mark_set_1): ... here.
4947 (try_pre_increment_1): Use it. Use propagate_block_delete_insn
4948 instead of turning insn into a NOTE_INSN_DELETED.
4950 2000-11-10 Joseph S. Myers <jsm28@cam.ac.uk>
4952 * extend.texi, invoke.texi: Move documentation of builtin versions
4953 of C library functions to one place and update.
4955 2000-11-09 Richard Henderson <rth@redhat.com>
4957 * fold-const.c (fold): Compare TYPE_MAIN_VARIANT rather than
4958 the types themselves to discover type equivalence.
4960 2000-11-09 Mike Stump <mrs@wrs.com>
4962 * Makefile.in (distclean): Remove a few extra leftovers.
4964 2000-11-09 Richard Henderson <rth@redhat.com>
4966 * recog.c (validate_replace_rtx_1): Consider subregs when
4967 replacing a register with a constant inside a sign/zero_extend.
4969 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4971 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
4973 * c-decl.c (finish_struct): When a structure is completed,
4974 check all its variant types for completeness.
4976 2000-11-09 Neil Booth <neilb@earthling.net>
4978 * cpphash.c: Move cpp_defined here from cpplib.c.
4979 * cpplib.c: Update comments, move cpp_defined to cpphash.c.
4980 * cpplex.c (_cpp_lex_token): Don't leave the lexer at EOL.
4981 * cppmacro.c (cpp_get_token): Update comments, no need now
4982 to catch the CPP_EOF meaning EOL case.
4984 2000-11-08 Geoffrey Keating <geoffk@redhat.com>
4986 * config/sparc/sparc.c (sparc_va_arg): When the required alignment
4987 is more than that provided, copy to a temporary.
4989 2000-11-09 Alexandre Oliva <aoliva@redhat.com>
4991 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Prevent `make' from
4992 interpreting $out as a macro assignment.
4993 * Makefile.in (T_TARGET): New auxiliary macro and target.
4994 (all): Add a target right in the beginning, so that we don't build
4995 T_TARGET by default.
4997 2000-11-09 Graham Stott <grahams@redhat.com>
4999 * config/i386/i386.md (mmx_pinsrw): Output operands in correct
5000 order for -mintel-syntax. Remove comment now that the operand
5001 order has been checked.
5002 (mmx_pextrw): Likewise.
5003 (mmx_pshufw): Likewise.
5005 2000-11-09 Jakub Jelinek <jakub@redhat.com>
5007 * builtins.c (c_strlen): Use TREE_STRING_LENGTH - 1 for max.
5008 (c_getstr): New function.
5009 (expand_builtin_strstr): Do nothing if -fcheck-memory-usage.
5010 If both arguments are constant string, optimize out.
5011 (expand_builtin_strchr, expand_builtin_strrchr): New functions.
5012 (expand_builtin_strpbrk): Use c_getstr, do nothing if
5013 -fcheck-memory-usage.
5014 (expand_builtin_fputs): Likewise.
5015 (expand_builtin_strcmp): Add MODE argument.
5016 Use even if !HAVE_cmpstrsi.
5017 Optimize the case when both arguments are constant strings.
5018 (expand_builtin): Adjust expand_builtin_strcmp caller.
5019 Call expand_builtin_strchr and expand_builtin_strrchr.
5020 * c-common.c (c_common_nodes_and_builtins): Add strchr and strrchr
5022 * builtins.def (BUILT_IN_STRRCHR): Add.
5024 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5026 * fixinc/gnu-regex.c: Rename EGCS LOCAL markers to GCC LOCAL.
5028 2000-11-09 Joseph S. Myers <jsm28@cam.ac.uk>
5030 * calls.c (expand_call, emit_library_call_value_1), collect2.c
5031 (scan_prog_file), config/a29k/a29k.c (print_operand),
5032 config/sparc/sparc.c (order_regs_for_local_alloc): Use memcpy ()
5033 instead of bcopy ().
5034 * real.h: Use memcmp () instead of bcmp ().
5035 * config/m88k/m88k.c (m88k_layout_frame), config/sh/sh.c
5036 (split_branches), config/sparc/sparc.c (ultra_flush_pipeline,
5037 ultrasparc_sched_init, ultrasparc_sched_reorder),
5038 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Use memset ()
5039 instead of bzero ().
5040 * config/vax/xm-xms.h (FILE_NAME_NONDIRECTORY): Use strrchr ()
5041 instead of rindex ().
5042 * configure.in: Don't check for bzero, bcmp, index or rindex.
5043 * configure, config.in: Regenerate.
5044 * system.h: Don't include declarations for bzero, bcmp, index or
5046 * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Don't define
5047 bzero, bcmp, index or rindex.
5049 Wed Nov 8 21:58:20 2000 Christopher Faylor <cgf@cygnus.com>
5051 * config/i386/cygwin.h: Add -no-win32 switch. Separate -mno-cygwin
5052 include and library paths from -mcygwin case. Parameterize some
5053 declarations to avoid warnings. Use standard locations for include and
5056 2000-11-08 Nick Clifton <nickc@redhat.com>
5058 * config/arm/arm.md (mulsidi3adddi): Change output operand
5059 constraint from "=&" to "+&".
5060 (umulsidi3adddi): Change output operand constraint from "=&" to
5063 2000-11-08 Richard Henderson <rth@redhat.com>
5065 * flow.c (init_propagate_block_info): Protect the rtx stored in
5066 mem_set_list from modification by find_auto_inc.
5067 (mark_set_1): Likewise.
5069 2000-11-08 Neil Booth <neilb@earthling.net>
5071 Move directive handling into the lexer itself.
5073 * cpplex.c (_cpp_lex_token): Handle directives directly.
5074 In the case of a directive interrupting a function-like
5075 macro invocation, use extra_char since read_ahead is
5076 used to store the '#'. Return a CPP_EOF in this case.
5077 * cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
5078 (cpp_get_token): Don't handle directives here.
5079 * cpplib.h: Remove CPP_DHASH token type.
5081 Wed Nov 8 21:53:41 MET 2000 Jan Hubicka <jh@suse.cz>
5083 * regmove.c (combine_stack_adjustments_for_blocks): Recognize pushes
5084 formed using PRE_MODIFY too.
5086 2000-11-08 Mark Mitchell <mark@codesourcery.com>
5088 * c-tree.texi (VAR_DECL): Describe representation of GCC's
5089 extension for placing variables in particular registers.
5091 * c-tree.texi (FUNCTION_TYPE): Clarify TYPE_ARG_TYPES for
5092 unprototyped C functions with no parameters.
5094 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5096 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Cast DELTA to int
5097 before passing to fprintf.
5099 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5101 * function.c (expand_function_start): Cast GET_MODE_SIZE to
5102 HOST_WIDE_INT before negating it.
5104 2000-11-08 Jakub Jelinek <jakub@redhat.com>
5106 * expr.c (expand_expr) [ADDR_EXPR]: Handle when op0 is RETURN_DECL
5107 passed in multiple non-contiguous locations.
5109 2000-11-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5111 * README.gnat: Remove file.
5113 2000-11-08 Alexandre Oliva <aoliva@redhat.com>
5115 * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
5118 2000-11-07 Richard Henderson <rth@redhat.com>
5120 * dwarfout.c (INSN_LABEL_FMT): Remove.
5121 (output_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
5122 (dwarfout_label): Remove.
5123 * dwarfout.h: Remove it's prototype.
5124 * dwarf2out.c (INSN_LABEL_FMT): Remove.
5125 (gen_label_die): Use ASM_GENERATE_INTERNAL_LABEL.
5126 (dwarf2out_label): Remove.
5127 * dwarf2out.h: Remove it's prototype.
5128 * final.c (final_scan_insn): Don't call dwarf[2]out_label.
5130 2000-11-07 Richard Henderson <rth@redhat.com>
5132 * config/ia64/fde-glibc.c (find_fde_for_dso): Do a binary
5133 search on the unwind region section.
5135 * config/ia64/ia64.md (movbi): Add r/r alternative.
5136 (cmovdi_internal_astep): Describe all combinations of register
5137 classes for sources & destinations; remove matching constraints.
5138 (cmovdi_internal): Likewise.
5140 * gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.
5142 2000-11-07 Richard Henderson <rth@redhat.com>
5144 * c-lang.c (start_cdtor, finish_cdtor): New functions.
5145 (finish_file): Use them in building constructor/destructor functions.
5147 * config/alpha/alpha.h (HAS_INIT_SECTION, LD_INIT_SWITCH,
5148 LD_FINI_SWITCH): Move ...
5149 * config/alpha/osf.h: ... here.
5150 * config/alpha/alpha-interix.h: Don't undef them.
5152 2000-11-07 Jeffrey Oldham <oldham@oz.codesourcery.com>
5154 * config/mips/t-iris6 (FPBIT): New. Added so that __unorddf2 is
5155 included in libgcc.a.
5157 (dp-bit.c): Likewise.
5158 (fp-bit.c): Likewise.
5160 2000-11-07 Nick Clifton <nickc@redhat.com>
5162 * config/m88k/m88k.h (GLOBAL_ASM_OP): Add missing tab.
5163 (INTERNAL_ASM_OP): Add missing tab.
5165 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
5167 * alias.c (init_alias_analysis), calls.c (expand_call,
5168 emit_library_call_value_1), combine.c (init_reg_last_arrays),
5169 cse.c (new_basic_block), dbxout.c (dbxout_type), diagnostic.c
5170 (init_output_buffer, set_diagnostic_context), dwarf2out.c
5171 (equate_decl_number_to_die, build_abbrev_table), emit-rtl.c
5172 (init_emit_once), fold-const.c (mul_double, div_and_round_double),
5173 function.c (assign_parms), gcse.c (compute_can_copy,
5174 alloc_gcse_mem, alloc_reg_set_mem, record_one_set,
5175 compute_hash_table, compute_set_hash_table,
5176 compute_expr_hash_table), genattrtab.c (optimize_attrs), global.c
5177 (global_alloc, global_conflicts), haifa-sched.c (compute_trg_info,
5178 clear_units, schedule_block), integrate.c (initialize_for_inline,
5179 expand_inline_function), jump.c (thread_jumps), local-alloc.c
5180 (local_alloc), loop.c (combine_movables, count_loop_regs_set,
5181 load_mems_and_recount_loop_regs_set), print-tree.c (debug_tree),
5182 regclass.c (init_reg_sets, init_reg_sets_1, regclass,
5183 record_reg_classes, allocate_reg_info), reload.c
5184 (get_secondary_mem, remove_address_replacements, find_reloads),
5185 reload1.c (reload, set_initial_label_offsets, finish_spills,
5186 reload_as_needed, choose_reload_regs_init,
5187 reload_cse_simplify_operands), reorg.c (dbr_schedule), sbitmap.c
5188 (sbitmap_zero), simplify-rtx.c (simplify_plus_minus), ssa.c
5189 (rename_registers), stmt.c (expand_end_case), unroll.c
5190 (unroll_loop), varray.c (varray_grow), objc/objc-act.c: Use memset
5191 () instead of bzero ().
5193 2000-11-07 Neil Booth <neilb@earthling.net>
5195 * cp/lang-specs.h: Fix -save-temps specs under USE_CPPLIB.
5197 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5199 * c-common.c (combine_strings): Only warn about long strings for C.
5201 Tue Nov 7 19:44:30 2000 J"orn Rennecke <amylaar@redhat.com>
5203 * combine.c (distribute_notes): Fix typo in last change.
5205 2000-11-07 Geoff Keating <geoffk@redhat.com>
5207 * config/rs6000/rs6000.md (movdi_internal32+1): Use
5208 operand_subreg_force rather than gen_rtx_SUBREG.
5209 (movdi_internal32+2): Likewise.
5211 2000-11-07 Philip Blundell <philb@gnu.org>
5213 * configure.in (arm*-*-linuxaout*): Obsolete, deleted.
5214 * config/arm/linux-aout.h: Likewise.
5215 * configure: Regenerate.
5217 2000-11-07 Philipp Thomas <pthomas@suse.de>
5219 * ABOUT-GCC-NLS: Remove the patch for gettext as it has been
5220 accepted my the gettext maintainer.
5222 2000-11-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5224 * builtins.c (expand_builtin_strpbrk): New function.
5225 (expand_builtin): Handle BUILT_IN_STRPBRK.
5227 * builtins.def (BUILT_IN_STRPBRK): New entry.
5229 * c-common.c (c_common_nodes_and_builtins): Declare builtin
5232 2000-11-07 David O'Brien <obrien@dragon.nuxi.com>
5234 * config/alpha/freebsd.h: New file -- FreeBSD/alpha architecture file.
5235 * POTFILES.in: Add config/alpha/freebsd.h
5236 * configure.in: Add alpha*-freebsd support.
5237 * configure: Regenerate.
5239 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
5241 * tree.c (build_common_tree_nodes_2): Make va_list_type_node be a
5242 copy of ptr_type_node rather than ptr_type_node itself.
5244 Tue Nov 7 06:29:24 2000 J"orn Rennecke <amylaar@redhat.com>
5246 * combine.c (recog_for_combine): Allocate uninitialized vector with
5248 * recog.c (apply_change_group): Likewise.
5250 Tue Nov 7 06:24:02 2000 J"orn Rennecke <amylaar@redhat.com>
5252 * flow.c (verify_local_live_at_start): Back out last change.
5253 * combine.c (distribute_notes): When parts of a hard reg are
5254 neither set nor referenced in PLACE, search backwards for a
5255 place to put a REG_UNUSED note; if none found, ask for flow
5258 Mon Nov 6 20:08:13 2000 J"orn Rennecke <amylaar@redhat.com>
5260 * reload1.c (eliminate_regs_in_insn): Allow a set to be a PARALLEL
5261 with (clobber (match_scratch...)).
5263 2000-11-06 Neil Booth <neilb@earthling.net>
5265 * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
5268 2000-11-06 Neil Booth <neilb@earthling.net>
5270 * tradcpp.c (special_symbol): Assign an null string rather
5271 than writing to an unallocated buffer.
5273 2000-11-06 Neil Booth <neilb@earthling.net>
5275 * cpplex.c (_cpp_equiv_tokens): Check arg_no in the
5278 2000-11-06 Neil Booth <neilb@earthling.net>
5280 * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or
5281 tok.val.arg_no as appropriate.
5282 * cppexp.c (lex): Similarly.
5283 * cpplex.c (_cpp_lex_token, cpp_spell_token, cpp_output_token,
5284 cpp_equiv_tokens, cpp_can_paste, cpp_avoid_paste): Similarly.
5285 * cppmacro.c (stringify_arg, replace_args, lex_expansion_token,
5286 cpp_macro_definition): Similarly.
5287 * cpplib.h (struct cpp_token): Replace aux with c and arg_no.
5289 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5291 * config/sparc/sparc.md (adddi3): If operands[2] is 4096 and
5292 operands[1] is constant, calculate the sum and generate movdi.
5293 (addsi3): Similarly. Use SImode in call to arith_4096_operand.
5294 (subsi3): Use SImode in call to arith_4096_operand.
5296 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5298 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): On sparc64 we need to
5299 adjust %o1, not %o0 if the return type is large structure.
5301 2000-11-06 Jakub Jelinek <jakub@redhat.com>
5303 * config/sparc/sparc.md (smulsi3_highpart_v8plus, ashldi3_v8plus+1,
5304 update_return, flush, flushdi, ffssi2, ffsdi2): Fix output formatting.
5306 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
5308 * expmed.c (expand_divmod): For signed divide by 2, prefer
5309 a branch and fewer shifts if branches are very cheap.
5311 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
5313 * Makefile.in: Remove all targets related to building
5314 distributions and diffs, or INSTALL.
5315 * INSTALL, install1.texi: Remove.
5316 * configure.in: Remove mention of distdir.
5317 * configure: Regenerate.
5318 * objc/Make-lang.in: Remove mention of distdir.
5320 2000-11-04 Neil Booth <neilb@earthling.net>
5322 * cpp.texi: Update for _Pragma.
5324 2000-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
5326 * gcc.texi (Contributing): Update URL for projects web page.
5328 2000-11-04 Neil Booth <neilb@earthling.net>
5330 * cpplex.c (parse_string): Don't allow multiline strings in
5331 #include family directives.
5333 2000-11-04 Neil Booth <neilb@earthling.net>
5335 * cpplib.c (do_line): Only warn pedantically if not reading
5338 2000-11-04 Alexandre Oliva <aoliva@redhat.com>
5340 * calls.c (emit_call_1) [sibcall_pop]: Use n_popped instead of
5343 2000-11-03 Zack Weinberg <zack@wolery.stanford.edu>
5345 * builtins.c (expand_builtin_strlen): Remove unused mode
5347 * gcc.c (process_command): Remove unused variable.
5348 * fold-const.c: Include expr.h.
5349 * recog.c: Include reload.h.
5350 * Makefile.in (recog.o, fold-const.o): Update deps.
5352 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
5354 * fixinc/gnu-regex.c: Change 'CYGNUS LOCAL' to 'EGCS LOCAL'.
5356 Fri Nov 3 13:41:04 2000 Mark P Mitchell <mark@codesourcery.com>
5358 * config/mips/iris6.h (SUBTARGET_CC1_SPEC): Remove -static
5360 (STARTFILE_SPEC): Likewise.
5361 (LINK_SPEC): Likewise.
5363 2000-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5365 * Makefile.in (fold-const.o): Depend on $(GGC_H), not ggc.h.
5366 (toplev.o): Likewise for $(LOOP_H)/loop.h and $(REGS_H)/regs.h.
5367 (simplify-rtx.o): Likewise for $(GGC_H)/ggc.h.
5369 2000-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
5371 * c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c
5372 (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks,
5373 perm_calloc, get_identifier, maybe_get_identifier,
5374 real_value_from_int_cst, simple_cst_equal), varasm.c
5375 (assemble_name, assemble_real, immed_real_const_1,
5376 compare_constant_1, decode_rtx_const, output_constant_pool): Use
5377 strrchr () instead of rindex (). Use memcmp () instead of bcmp
5378 (). Use memcpy () instead of bcopy (). Use memset () instead of
5381 2000-11-03 Nathan Sidwell <nathan@codesourcery.com>
5383 * cppfiles.c (open_file): If already read, then don't reopen.
5384 Immediately close an empty file.
5386 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
5388 * expr.h (fold_builtin): Move declaration...
5389 * tree.h (fold_builtin): ... here.
5391 Fri Nov 3 05:41:07 2000 J"orn Rennecke <amylaar@redhat.com>
5393 * flow.c (verify_local_live_at_start): Allow hard regs to die.
5395 2000-11-02 Neil Booth <neilb@earthling.net>
5398 * a29k/a29k.h, a29k/unix.h, a29k/vx29k.h,
5399 alpha/alpha-interix.h, alpha/alpha.h, alpha/linux.h,
5400 alpha/openbsd.h, alpha/osf.h, alpha/vms.h, alpha/vxworks.h,
5401 alpha/win-nt.h, arc/arc.h, arm/arm.h, arm/conix-elf.h,
5402 arm/linux-aout.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5403 arm/riscix1-1.h, arm/semiaof.h, arm/unknown-elf-oabi.h, arm/vxarm.h,
5404 c4x/rtems.h, clipper/clix.h, convex/convex.h, d30v/d30v.h,
5405 elxsi/elxsi.h, fr30/fr30.h, h8300/h8300.h, i370/linux.h, i370/mvs.h,
5406 i370/oe.h, i386/386bsd.h, i386/aix386ng.h, i386/beos-elf.h,
5407 i386/bsd386.h, i386/crtdll.h, i386/cygwin.h, i386/dgux.h,
5408 i386/djgpp-rtems.h, i386/djgpp.h, i386/freebsd-aout.h, i386/freebsd.h,
5409 i386/gnu.h, i386/i386-interix.h, i386/i386.h, i386/linux-aout.h,
5410 i386/linux-oldld.h, i386/linux.h, i386/lynx-ng.h, i386/lynx.h,
5411 i386/mach.h, i386/mingw32.h, i386/moss.h, i386/netbsd.h,
5412 i386/netware.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
5413 i386/osfelf.h, i386/osfrose.h, i386/ptx4-i.h, i386/rtems.h,
5414 i386/rtemself.h, i386/sco.h, i386/sco4.h, i386/sco4dbx.h, i386/sco5.h,
5415 i386/scodbx.h, i386/sequent.h, i386/sol2.h, i386/sun.h, i386/sysv3.h,
5416 i386/sysv4.h, i386/uwin.h, i386/vsta.h, i386/vxi386.h, i386/win-nt.h,
5417 i386/win32.h, i860/fx2800.h, i860/i860.h, i860/mach.h, i860/sysv3.h,
5418 i860/sysv4.h, i960/i960.h, i960/rtems.h, i960/vx960-coff.h,
5419 ia64/ia64.h, ia64/linux.h, m32r/m32r.h, m68k/3b1.h, m68k/3b1g.h,
5420 m68k/a-ux.h, m68k/altos3068.h, m68k/amix.h, m68k/apollo68.h,
5421 m68k/crds.h, m68k/ctix.h, m68k/dpx2.h, m68k/hp2bsd.h, m68k/hp320.h,
5422 m68k/hp3bsd.h, m68k/hp3bsd44.h, m68k/isi.h, m68k/linux-aout.h,
5423 m68k/linux.h, m68k/lynx-ng.h, m68k/lynx.h, m68k/m68kemb.h,
5424 m68k/m68kv4.h, m68k/mot3300.h, m68k/netbsd.h, m68k/news.h,
5425 m68k/next.h, m68k/openbsd.h, m68k/pbb.h, m68k/plexus.h, m68k/rtems.h,
5426 m68k/rtemself.h, m68k/sun2.h, m68k/sun3.h, m68k/sun3mach.h,
5427 m68k/tower-as.h, m68k/tower.h, m68k/vxm68k.h, m88k/dgux.h,
5428 m88k/dolph.h, m88k/luna.h, m88k/m88k-aout.h, m88k/m88k-coff.h,
5429 m88k/openbsd.h, m88k/sysv3.h, m88k/sysv4.h, mips/bsd-4.h,
5430 mips/bsd-5.h, mips/dec-bsd.h, mips/dec-osf1.h, mips/gnu.h,
5431 mips/iris3.h, mips/iris5.h, mips/iris6.h, mips/linux.h, mips/mips.h,
5432 mips/netbsd.h, mips/news4.h, mips/news5.h, mips/nws3250v4.h,
5433 mips/openbsd.h, mips/osfrose.h, mips/rtems64.h, mips/sni-svr4.h,
5434 mips/svr3-4.h, mips/svr3-5.h, mips/svr4-4.h, mips/svr4-5.h,
5435 mips/ultrix.h, ns32k/encore.h, ns32k/merlin.h, ns32k/netbsd.h,
5436 ns32k/ns32k.h, ns32k/pc532-mach.h, ns32k/pc532.h, ns32k/sequent.h,
5437 ns32k/tek6000.h, ns32k/tek6100.h, ns32k/tek6200.h, pa/pa-hiux.h,
5438 pa/pa-hpux.h, pa/pa-hpux7.h, pa/pa-linux.h, pa/pa-osf.h,
5439 pa/pa-pro-end.h, pa/pa.h, pa/rtems.h, pj/linux.h, pj/pj.h,
5440 romp/romp.h, rs6000/aix.h, rs6000/aix31.h, rs6000/aix41.h,
5441 rs6000/aix43.h, rs6000/beos.h, rs6000/eabi.h, rs6000/eabisim.h,
5442 rs6000/linux.h, rs6000/lynx.h, rs6000/mach.h, rs6000/rtems.h,
5443 rs6000/sysv4.h, rs6000/vxppc.h, sh/elf.h, sh/linux.h, sh/rtems.h,
5444 sh/rtemself.h, sh/sh.h, sparc/aout.h, sparc/elf.h, sparc/linux-aout.h,
5445 sparc/linux.h, sparc/linux64.h, sparc/lite.h, sparc/litecoff.h,
5446 sparc/liteelf.h, sparc/lynx-ng.h, sparc/lynx.h, sparc/netbsd.h,
5447 sparc/openbsd.h, sparc/pbd.h, sparc/rtems.h, sparc/rtemself.h,
5448 sparc/sol2-sld-64.h, sparc/sol2.h, sparc/sp64-aout.h,
5449 sparc/sp64-elf.h, sparc/sp86x-aout.h, sparc/sp86x-elf.h,
5450 sparc/sparc.h, sparc/sysv4.h, sparc/vxsim.h, sparc/vxsparc.h,
5451 v850/rtems.h, vax/netbsd.h, vax/openbsd.h, vax/ultrix.h, vax/vax.h,
5452 vax/vaxv.h, vax/vms.h, we32k/we32k.h
5454 Replace -A() with -A=, the new assertion syntax.
5456 Thu Nov 2 21:52:35 2000 J"orn Rennecke <amylaar@redhat.com>
5458 * combine.c (distribute_notes): Use rtx_equal_p to check elim_i2 /
5460 In REG_DEAD handling: When handling parts of multi-hard-reg hard
5461 registers, increment the loop counter by the size of the parts;
5462 use recursion to handle individual parts.
5464 2000-11-02 Neil Booth <neilb@earthling.net>
5466 * configure.in: Make integrated CPP the default.
5467 * configure: Regenerate.
5469 Thu Nov 2 19:20:12 2000 J"orn Rennecke <amylaar@redhat.com>
5471 * reload.c (find_equiv_reg): Test all hard registers for membership
5472 in the requested class.
5474 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
5476 * collect2.c (main, write_c_file_stat), gcc.c (translate_options,
5477 process_command, main), gcov.c (open_files, output_data), tlink.c
5478 (frob_extension, scan_linker_output), toplev.c
5479 (file_name_nondirectory): Use strchr () and strrchr () instead of
5480 index () and rindex ().
5482 2000-11-02 Joseph S. Myers <jsm28@cam.ac.uk>
5484 * c-common.c (get_flag_spec, check_format_info_main,
5485 check_format_types): Use strchr () instead of index (). Compare
5486 against error_mark_node instead of comparing the TREE_CODE against
5489 2000-11-02 Zack Weinberg <zackw@Stanford.EDU>
5493 * c-lex.c (init_c_lex): Update cpp_start_read call.
5494 (cb_ident): Update for new callback prototype.
5495 (cb_def_pragma): Update for new cpp_get_token prototype.
5496 (c_lex): Similarly. Use cpp_get_line.
5498 * c-parse.in (finish_parse): Update for new cpp_finish
5501 * cp/lex.c (finish_parse): Similarly.
5503 2000-11-01 Geoff Keating <geoffk@cygnus.com>
5505 * machmode.def: Add V16QImode.
5507 2000-11-01 Richard Henderson <rth@redhat.com>
5509 * dwarf2out.c (loc_descriptor_from_tree): Check for null result
5510 from rtl_for_decl_location.
5511 (add_location_or_const_value_attribute): Likewise.
5513 2000-11-01 Neil Booth <neilb@earthling.net>
5515 * cpplib.c (run_directive): Use correct line number for output
5516 of _Pragma. Remember any in-progress directive.
5518 * gcc.dg/cpp/vararg2.c, gcc.dg/cpp/_Pragm1.c: New tests.
5520 2000-11-01 Richard Henderson <rth@redhat.com>
5522 * stmt.c (expand_start_null_loop): Set continue_label.
5524 2000-11-01 Bernd Schmidt <bernds@redhat.co.uk>
5526 * builtins.c (fold_builtin_constant_p, fold_builtin): New functions.
5527 (expand_builtin_constant_p): Move parts of the code into
5528 fold_builtin_constant_p.
5529 (expand_builtin_strlen): Move parts of the code into fold_builtin.
5530 * expr.h (fold_builtin): Declare.
5531 * fold-const.c (fold): Handle builtin calls.
5533 * c-typeck.c (build_function_call): Call fold on the CALL_EXPR.
5535 2000-11-01 Richard Henderson <rth@redhat.com>
5537 * stmt.c (expand_start_null_loop): New.
5538 (expand_end_null_loop): New.
5539 * c-semantics.c (genrtl_do_stmt): Use them.
5540 * tree.h: Declare them.
5542 2000-11-01 Richard Henderson <rth@redhat.com>
5544 * cppmain.c (scan_buffer): Don't avoid paste for assembly.
5546 2000-11-01 Neil Booth <neilb@earthling.net>
5548 * c-parse.in (_yylex): Remove CPP_BACKSLASH case.
5549 * cp/spew.c: Similarly.
5550 * cpplex.c (_cpp_lex_token): Backslashes are now CPP_OTHER.
5551 * cppmacro.c (stringify_arg): Similarly.
5552 * cpplib.h (CPP_BACKSLASH): Delete.
5554 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5556 * builtins.c (expand_builtin_strstr): New function.
5557 (expand_builtin): Handle BUILT_IN_STRSTR and BUILT_IN_STRCHR.
5559 * builtins.def (BUILT_IN_STRSTR, BUILT_IN_STRCHR): New entries.
5561 * c-common.c (c_common_nodes_and_builtins): Declare builtin strstr
5564 2000-10-31 Richard Henderson <rth@redhat.com>
5566 * config/i386/i386.c (fcmov_comparison_operator): Check for
5567 CCFPmode or CCFPUmode instead of CCmode.
5568 (ix86_expand_fp_movcc): Call ix86_expand_setcc for most
5569 unordered operations as well.
5571 2000-10-31 Richard Henderson <rth@redhat.com>
5573 * c-semantics.c (genrtl_do_stmt): Use integer_zerop instead
5574 of integer_zero_node.
5576 2000-10-31 Richard Henderson <rth@redhat.com>
5578 * c-semantics.c (genrtl_do_stmt): Special case do/while(0).
5580 2000-10-31 Nick Clifton <nickc@redhat.com>
5582 * config/arm/unknown-elf.h (UNIQUE_SECTION_P): Do not allow
5583 -fdata-sections to override the section attribute of a DECL.
5585 2000-10-31 Chris Demetriou <cgd@sibyte.com>
5587 * libgcc2.c (__shtab): Remove __shtab variable.
5588 * libgcc-std.ver (GCC_3.0): Remove __shtab from symbol list.
5589 * Makefile.in (LIB2FUNCS): Remove _shtab from list of library
5592 2000-10-31 Jim Wilson <wilson@redhat.com>
5594 * defaults.h (ASM_OUTPUT_DEBUG_LABEL): New.
5595 * tm.texi (ASM_OUTPUT_DEBUG_LABEL): Document.
5596 * dwarf2out.c (dwarf2out_begin_block): Use ASM_OUTPUT_DEBUG_LABEL
5597 instead of ASM_OUTPUT_INTERNAL_LABEL.
5598 (dwarf2out_end_block, dwarf2out_label): Likewise.
5599 * final.c (final_scan_insn, case NOTE_INSN_DELETED_LABEL): Likewise
5600 * config/ia64/ia64.h (ASM_OUTPUT_DEBUG_LABEL): Define.
5602 2000-10-31 Richard Henderson <rth@redhat.com>
5604 * dwarf2out.c (struct dw_loc_descr_struct): Add dw_loc_addr.
5605 (size_of_locs): Set it.
5606 (output_loc_operands): Use it to compute branch displacement.
5607 (int_loc_descriptor): New.
5608 (mem_loc_descriptor): Dereference memory in the proper size.
5609 Use DW_OP_plus_uconst when possible. Use int_loc_descriptor.
5610 (loc_descriptor_from_tree): New.
5611 (rtl_for_decl_location): Break out from ...
5612 (add_location_or_const_value_attribute): ... here.
5613 (add_bound_info): Use loc_descriptor_from_tree.
5615 2000-10-31 Neil Booth <neilb@earthling.net>
5617 * cpp.texi: Update for new command line assertion syntax.
5618 * cpplib.c (cpp_define): Simplify a bit.
5619 (cpp_assert, cpp_unassert): Use handle_assertion.
5620 (handle_assertion): New function; accept new command line
5622 * testsuite/gcc.dg/cpp/assert3.c: New tests.
5624 2000-10-31 Neil Booth <neilb@earthling.net>
5626 * cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
5627 undefined. Remove #ifdef check.
5628 * config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
5629 Define STDC_0_IN_SYSTEM_HEADERS to 1.
5631 2000-10-31 Jan Hubicka <jh@suse.cz>
5632 Jakub Jelinek <jakub@redhat.com>
5634 * config/i386/i386.h: Clarify CCNOmode description in comment.
5635 (EXTRA_CC_MODES): Remove CCRCmode.
5636 * config/i386/i386.c (ix86_comparison_operator): Remove CCRCmode.
5637 (put_condition_code, ix86_match_ccmode): Likewise.
5638 (ix86_cc_mode): Likewise. Fix comment.
5639 (ix86_expand_strlensi_unroll_1): *rc patterns are gone.
5640 * config/i386/i386.md: Add unspec 12 description.
5641 (adddi3 split): Use unspec 12 instead of CCRCmode.
5642 (addsi3_carry_rc): Remove.
5643 (addsi3_cc, addqi3_cc): New patterns.
5644 (addsi_3): Swap operands, match CCZmode.
5645 (addsi_4): Rewritten.
5646 (addsi_5): Renamed from addsi_6.
5648 (addhi_3): Swap operands, match CCZmode.
5649 (addhi_4): Rewritten.
5650 (addhi_5): Renamed from addhi_6.
5652 (addqi_3): Swap operands, match CCZmode.
5653 (addqi_4): Rewritten.
5654 (addqi_5): Renamed from addqi_6. Use =q constraint for clobber.
5655 (subsi3_carry_rc): Removed.
5656 (iorqi_3): Use =q constraint for clobber.
5657 (xorqi_cc_2): Likewise.
5658 (negdi2_1 split): Don't use CCRCmode, use ltu instead of gtu.
5659 (x86_movsicc_0_m1_rc): Removed.
5660 (cmp?i peepholes): Remove neg. Use CCGCmode instead of CCRCmode.
5662 2000-10-31 Joseph S. Myers <jsm28@cam.ac.uk>
5664 * c-typeck.c (build_unary_op): If pedantic, pedwarn for increment
5665 and decrement of complex types.
5667 2000-10-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5669 * builtins.c (expand_builtin_fputs): When deleting NOP calls to
5670 builtin fputs, ensure we still evaluate the stream in case it
5673 2000-10-31 Jakub Jelinek <jakub@redhat.com>
5675 * expr.c (do_store_flag): Pass operand_mode instead of GET_MODE (op0)
5678 Tue Oct 31 15:33:27 2000 J"orn Rennecke <amylaar@redhat.com>
5680 * sh-protos.h (reg_no_subreg_operand, emit_fpscr_use): Don't declare.
5681 (fp_extended_operand, emit_fpscr_use): Likewise.
5682 * sh.c (reg_no_subreg_operand, fp_extended_operand): Delete functions.
5683 (fpul_operand): New function.
5684 * sh.h (PREDICATE_CODES): Remove reg_no_subreg_operand and
5685 fp_extended_operand. Add fpul_operand.
5686 * sh.md (mulsf3, mulsf3_i4): Use fp_arith_reg_operand for "f" operands.
5687 (mulsf3_ie, macsf3, cmpgtsf_t, cmpeqsf_t, ieee_ccmpeqsf_t): Likewise.
5688 (cmpgtsf_t_i4, cmpeqsf_t_i4, ieee_ccmpeqsf_t_4, negsf2): Likewise.
5689 (negsf2_i, sqrtsf2, sqrtsf2_i, abssf2, abssf2_i, adddf3): Likewise.
5690 (adddf3_i, subdf3, subdf3_i, muldf3, muldf3_i, divdf3): Likewise.
5691 (divdf3_i): Likewise.
5692 (floatsisf2): Likewise. Use fpul_operand for 'y' operand.
5693 (floatsisf2_i4, floatsisf2_ie, fix_truncsfsi2): Likewise.
5694 (fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i): Likewise.
5695 (fix_truncdfsi2, fix_truncdfsi2_i, extendsfdf2): Likewise.
5696 (extendsfdf2_i4, truncdfsf2, truncdfsf2_i4): Likewise.
5698 2000-10-31 Bernd Schmidt <bernds@redhat.co.uk>
5700 * config/i386/i386.c (ix86_init_builtins): Correct return type
5701 building v4hi_ftype_v4hi_int_int tree node.
5702 (ix86_expand_builtin): Use correct operand numbers 0 and 1.
5703 Copy operand 0 into a Pmode register, don't generate a MEM rtx.
5705 * config/i386/i386.md (sse_movntdi): Use mmx register constraint
5707 (mmx__uavgv8qi3): Correct insn mnemonic.
5708 (mmx_psadbw): Correct insn mnemonic. Use V8QI mode for operands 1 and 2.
5709 (mmx_punpckhwd): Correct insn mnemonic.
5710 (mmx_punpckhdq): Likewise.
5711 (mmx_punpcklwd): Likewise.
5712 (mmx_punpckldq): Likewise.
5713 (prefetch): Use immediare_operand and 'n' constraint for operand 1.
5714 Renumber case labels to match the _mm_prefetch constants defined in
5717 * recog.c (split_all_insns): Don't try to call cleanup_subreg_operands
5718 if the splitter didn't emit new insns.
5719 Make sure we call cleanup_subreg_operands even when splitting the last
5720 insn in a basic block.
5722 * invoke.texi (Debugging Options): Describe -do.
5723 * toplev.c (enum_dump_file_index): New entry DFI_postreload.
5724 (dump_file): Likewise.
5725 (rest_of_compilation): Split .greg dump into .greg and .postreload.
5727 2000-10-30 Neil Booth <neilb@earthling.net>
5729 * cppfiles.c (stack_include_file): Check for stacked contexts
5731 * cpphash.h (_cpp_do__Pragma): New prototype.
5732 * cppinit.c (cpp_reader_init): Add _Pragma keyword to hash table.
5734 * cpplex.c (skip_escaped_newlines): Only process trigraphs and
5735 escaped newlines if !(buffer->from_stage3).
5736 (_cpp_lex_token): Warn about missing newlines iff
5737 !buffer->from_stage3.
5739 * cpplib.c (get__Pragma_string, destringize,
5740 _cpp_do__Pragma): New functions.
5741 (run_directive): Set output_line for _Pragma to avoid line
5742 markers in output. Set from_stage3 and prevent macro expansion
5743 for _Pragma and command-line options. Check buffer exhaustion.
5744 (cpp_push_buffer): Don't check for stacked macro contexts, as
5745 this is perfectly legitimate for _Pragma. Move the check to
5746 stack_include_file instead. Set from_stage3 iff buffer is
5749 * cpplib.h (struct cpp_buffer): Make warned_cplusplus_comments
5750 unsigned. New boolean from_stage3.
5751 (struct spec_nodes): Add n__Pragma.
5753 * cppmacro.c (enter_macro_context): Flip sense of return value.
5754 (_cpp_get_token): Handle _Pragma operator.
5756 2000-10-30 Phil Edwards <pme@sources.redhat.com>
5758 * gcc.texi: The C++ standard isn't "draft" anymore.
5760 2000-10-30 Mark Mitchell <mark@codesourcery.com>
5762 * cppmacro.c (builtin_macro): Use NT_VOID, not T_VOID.
5764 2000-10-29 Neil Booth <neilb@earthling.net>
5766 * cpplib.c (skip_rest_of_line): Use _cpp_get_token.
5768 2000-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
5770 * toplev.c, flags.h, fold-const.c, real.c, rtl.c,
5771 fixinc/inclhack.def: Change comments mentioning C9X to refer to
5774 * invoke.texi: Document that -V will only work for very similar
5775 versions of driver and compiler.
5777 2000-10-29 Neil Booth <neilb@earthling.net>
5779 * cppmacro.c (_cpp_create_definition): Optimize the case of
5780 a macro defined to itself.
5782 2000-10-29 Neil Booth <neilb@earthling.net>
5784 * cpplex.c (save_comment): Don't store new lines in C++ comments.
5786 2000-10-29 Michael Hayes <mhayes@redhat.com>
5788 * integrate.c (copy_insn_list): Copy the unchanging flag for calls.
5790 2000-10-28 Geoffrey Keating <geoffk@cygnus.com>
5792 * cpphash.c (cpp_forall_identifiers): Add context variable
5793 for callback routine.
5794 * cppmain.c (dump_macro): Update to match cpp_forall_identifiers
5796 (main): Call cpp_forall_identifiers with null context.
5797 * cpplib.h (cpp_forall_identifiers): Update prototype.
5799 * cppmain.c: Make `parse_in' and `print' static.
5801 2000-10-28 Alan Modra <alan@linuxcare.com.au>
5803 * c-decl.c (finish_function): Clear c_function_name_declared_p.
5805 2000-10-28 Richard Henderson <rth@redhat.com>
5807 * regrename.c (scan_rtx_address): Frob action, not class,
5808 when trying to disable optimization.
5810 2000-10-28 Mark Mitchell <mark@codesourcery.com>
5812 * c-semantics.c (make_rtl_for_local_static): Don't clobber
5813 DECL_ASSEMBLER_NAME.
5815 2000-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
5817 * configure.in: Determine and substitute gcc_version_full.
5818 * configure: Regenerate.
5819 * gccbug.in: Use it to give full version. Don't allow
5822 2000-10-28 Richard Henderson <rth@redhat.com>
5824 * recog.c (split_all_insns): Run cleanup_subreg_operands
5827 * regrename.c (regrename_optimize): Verify that all registers of
5828 a multiple register mode are available.
5829 (scan_rtx_address): Accept the mode of the address; all callers
5832 * cpplib.c (run_directive): Fix prototype.
5834 2000-10-28 Bernd Schmidt <bernds@redhat.co.uk>
5836 * reload.c (find_reloads): Distinguish "wins" so that we know whether
5837 a given operand won because of a matching constraint or not; then use
5838 that information to compute goal_alternative_matched properly.
5839 * reload1.c (choose_reload_regs): Never set reload_override_in for an
5842 * config/ia64/ia64.h (RTX_COSTS): A few more entries, and a more
5843 accurate value for MULT.
5844 * config/ia64/ia64.c (ia64_print_operand): Require probability to be
5845 2% or > 98% before using static branch prediction bits.
5847 2000-10-28 Neil Booth <neilb@earthling.net>
5851 * cpplib.c (struct answer): New.
5852 (struct if_stack): Use cpp_lexer_pos rather than line and col.
5853 Rename cmacro mi_cmacro.
5854 (struct directive, KANDR, STDC89, EXTENSION, COND, IF_COND, INCL,
5855 IN_I): New directive and flags.
5856 (skip_rest_of_line, check_eol, run_directive, glue_header_name,
5857 parse_answer, parse_assertion, find_answer): New functions.
5858 (parse_ifdef, detect_if_not_defined, validate_else): Remove.
5859 (lex_macro_node): New function to replace parse_ifdef and
5862 (_cpp_handle_directive): New function, combines _cpp_check_directive
5863 and _cpp_check_linemarker.
5865 (do_define, do_undef, parse_include, do_include, do_import,
5866 do_include_next, read_line_number, do_line, do_ident, do_pragma,
5867 do_pragma_once, do_pragma_poison, do_pragma_dependency):
5868 Update for new token getting interface.
5870 (do_ifdef, do_ifndef, do_if, do_else, do_endif, push_conditional)
5871 : Update for new multiple-include optimisation technique.
5872 (do_elif): Don't forget to invalidate controlling macros.
5874 (unwind_if_stack, cpp_defined, cpp_push_buffer, cpp_pop_buffer): Update.
5875 (parse_assertion, parse_answer, find_answer, _cpp_test_assertion):
5876 Functions to handle assertions with the new token interface.
5877 (do_assert, do_unassert): Use them.
5879 (cpp_define, _cpp_define_builtin, cpp_undef, cpp_assert, cpp_unassert):
5882 (_cpp_init_stacks): Register directive names. Don't register special
5885 * cpperror.c (print_containing_files, _cpp_begin_message): Update to
5886 new position recording regime.
5887 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5888 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
5889 cpp_pedwarn_with_file_and_line): Update for _cpp_begin_message changes.
5890 (cpp_type2name): Move to cpplex.c.
5892 * cppexp.c (parse_charconst): spec_nodes is no longer a pointer.
5893 (parse_defined): Update to handle new multiple include optimisation
5894 method. Remove poisoned identifier warning.
5895 (parse_assertion, TYPE_NAME): Delete.
5896 (lex): Update for multiple include optimisation, removal of
5897 CPP_DEFINED, to use _cpp_test_assertion for assertions and
5899 (_cpp_parse_expr): Update for MI optimisation, and to use op_as_text.
5900 (op_as_text): New function, to wrap cpp_token_as_text.
5902 * cppfiles.c (stack_include_file, _cpp_pop_file_buffer):
5903 Update for MI optimisation.
5904 (_cpp_execute_include): Take a token rather than 3 arguments. Fix
5905 segfault on diagnostic.
5906 (_cpp_compare_file_date): Take a token rather than 3 args.
5907 (cpp_read_file): Work correctly for zero-length files.
5909 * cpphash.c (_cpp_init_macros, _cpp_cleanup_macros): Rename
5910 _cpp_init_hashtable and _cpp_cleanup_hashtable.
5911 (cpp_lookup): Place identifiers at front of identifier pool
5912 for _cpp_lookup_with_hash.
5913 (_cpp_lookup_with_hash): Require identifiers to be at the front of
5914 the identifier pool. Commit the memory if not already in the
5917 * cppinit.c (cpp_reader_init): Move cpp_init_completed test to top.
5918 Initialise various members of cpp_reader, memory pools, and the
5920 (cpp_printer_init): Delete.
5921 (cpp_cleanup): Update.
5922 (struct builtin, builtin_array, initialize_builtins): Update for new
5923 hashnode definition and builtin handling.
5924 (cpp_start_read, cpp_finish): Don't take or initialise a
5927 * cpplib.h (cpp_printer, cpp_toklist, CPP_DEFINED, BOL,
5928 PASTED, VAR_ARGS, BEG_OF_FILE, IN_DIRECTIVE, KNOWN_DIRECTIVE,
5929 T_VOID, T_SPECLINE, T_DATE, T_FILE, T_BASE_FILE, T_INCLUDE_LEVEL,
5930 T_TIME, T_STDC, T_OPERATOR, T_POISON, T_MACRO, T_ASSERTION): Delete.
5931 (struct cpp_pool, struct cpp_macro, struct cpp_lexer_pos,
5932 struct cpp_lookahead, CPP_DHASH, enum mi_state, enum mi_ind,
5933 NO_EXPAND, VARARGS_FIRST, struct cpp_token_with_pos,
5934 struct toklist, struct cpp_context, struct specnodes,
5935 TOKEN_LOOKAHEAD, TOKEN_BUFFSIZE, NODE_OPERATOR, NODE_POISONED,
5936 NODE_BUILTIN, NODE_DIAGNOSTIC, NT_VOID, NT_MACRO, NT_ASSERTION,
5937 enum builtin_type, cpp_can_paste): New.
5938 (struct cpp_token): Delete line and col members.
5939 (struct cpp_buffer): New member output_lineno.
5940 (struct lexer_state): Delete indented, in_lex_line, seen_dot.
5941 Add va_args_ok, poisoned_ok, prevent_expansion, parsing_args.
5942 (struct cpp_reader): New members lexer_pos, macro_pos, directive_pos,
5943 ident_pool, temp_string_pool, macro_pool, argument_pool, string_pool,
5944 base_context, context, directive, mi_state, mi_if_not_defined,
5945 mi_lexed, mi_cmacro, mi_ind_cmacro, la_read, la_write, la_unused,
5946 mlstring_pos, macro_buffer, macro_buffer_len.
5947 Delete members mls_line, mls_column, token_list, potential_control_macro,
5948 temp_tokens, temp_cap, temp_alloced, temp_used, first_directive_token,
5949 context_cap, cur_context, no_expand_level, paste_level, contexts, args,
5950 save_parameter_spellings, need_newline, .
5951 Change type of date, time and spec_nodes members.
5952 Change prototypes for include and ident callbacks.
5953 (struct cpp_hashnode): Change type of name. Remove union members
5954 expansion and code. Add members macro, operator and builtin.
5956 (cpp_token_len, cpp_token_as_text, cpp_spell_token, cpp_start_read,
5957 cpp_finish, cpp_avoid_paste, cpp_get_token, cpp_get_line,
5958 cpp_get_output_line, cpp_macro_definition, cpp_start_lookahead,
5959 cpp_stop_lookahead): New prototypes.
5960 (cpp_printer_init, cpp_dump_definition): Delete prototypes.
5962 (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr, ufputs):
5963 Move from cpphash.h.
5965 * cpphash.h (U_CHAR, U, ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr,
5966 ufputs): Move to cpplib.h.
5967 (enum spell_type, struct token_spelling, _cpp_token_spellings, TOKEN_SPELL,
5968 TOKEN_NAME, struct answer, FREE_ANSWER, KANDR, STDC89, EXTENSION,
5969 COND, EXPAND, INCL, COMMENTS, IN_I, struct directive, directive_handler,
5970 struct spec_nodes, _cpp_digraph_spellings, _cpp_free_temp_tokens,
5971 _cpp_init_input_buffer, _cpp_grow_token_buffer, _cpp_init_toklist,
5972 _cpp_clear_toklist, _cpp_expand_token_space, _cpp_expand_name_space,
5973 _cpp_equiv_tokens, _cpp_equiv_toklists, _cpp_process_directive,
5974 _cpp_run_directive, _cpp_get_line, _cpp_get_raw_token, _cpp_glue_header_name,
5975 _cpp_can_paste, _cpp_check_directive, _cpp_check_linemarker,
5976 _cpp_parse_assertion, _cpp_find_answer): Delete.
5977 (VALID_SIGN, ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE, POOL_SIZE,
5978 POOL_USED, POOL_COMMIT, struct cpp_chunk, _cpp_lex_token, _cpp_init_pool,
5979 _cpp_free_pool, _cpp_pool_reserve, _cpp_pool_alloc, _cpp_next_chunk,
5980 _cpp_lock_pool, _cpp_unlock_pool, _cpp_test_assertion,
5981 _cpp_handle_directive, DSC): New.
5982 (struct include_file): New member defined.
5984 (DO_NOT_REREAD, _cpp_begin_message, _cpp_execute_include,
5985 _cpp_compare_file_date): Update.
5986 (_cpp_pop_context, _cpp_get_token, _cpp_free_lookaheads, _cpp_push_token): New.
5987 (_cpp_init_macros, _cpp_cleanup_macros): Rename to _cpp_init_hashtable,
5988 _cpp_cleanup_hashtable.
5990 * Makefile.in: Remove cppoutput.c.
5992 * cppoutput.c: Delete
5994 * fixheader.c (read_scan_file): Update for new cpp_get_token
5996 (recognized_function): New argument LINE.
5998 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
5999 new cpp_get_token prototype.
6001 * scan.h (recognized_function): Update prototype.
6003 * po/POTFILES.in: Remove cppoutput.c.
6005 2000-10-27 Mark Mitchell <mark@codesourcery.com>
6007 * c-typeck.c (check_init_type_bitfields): Remove.
6008 (constructor_incremental): Likewise.
6009 (struct constructor_stack): Remove incremental bit.
6010 (struct initializer_stack): Likewise.
6011 (start_init): Don't play with constructor_incremental.
6012 (finish_init): Likewise.
6013 (really_start_incremental_init): Likewise.
6014 (push_init_level): Likewise.
6015 (pop_init_level): Likewise.
6016 (output_init_level): Likewise.
6017 (output_pending_init_elements): Likewise.
6019 2000-10-21 Mike Coleman <mcoleman2@kc.rr.com>
6021 * c-pragma.c (handle_pragma_pack): Initialize align to -1.
6022 Improve error messages. Correct parsing of
6023 #pragma pack(pop [,id]). Do not check the user-supplied
6024 alignment if we're popping.
6026 * gcc.dg/pack-test-1.c: New test case.
6027 * gcc.dg/pack-test-2.c: New test case.
6028 * gcc.dg/pack-test-1.h: New file.
6030 2000-10-27 Neil Booth <neilb@earthling.net>
6034 2000-10-27 Kelley Cook <kelley.cook@home.com>
6036 * invoke.texi: Document -mintel-syntax
6038 2000-10-27 Richard Henderson <rth@redhat.com>
6040 * invoke.texi: Document -frename-registers. Add it to -O3.
6041 * toplev.c (rest_of_compilation): Run regrename before ifcvt2.
6042 (enum dump_file_index, dump_file): Update order.
6043 (main): Set flag_rename_registers at -O3.
6045 2000-10-27 Richard Henderson <rth@redhat.com>
6047 * config/alpha/alpha.h (enum reg_class): Add PV_REG.
6048 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
6049 (REG_CLASS_FROM_LETTER): Assign it to 'c'.
6050 * config/alpha/alpha.md (call_osf_1): Use it.
6051 (call_value_osf_1): Likewise.
6053 * config/ia64/ia64.c: Revert 10-23 patch.
6054 (ia64_hard_regno_rename_ok): New.
6055 * config/ia64/ia64-protos.h: Declare it.
6056 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK): Use it.
6058 2000-10-27 Bernd Schmidt <bernds@redhat.co.uk>
6059 Richard Henderson <rth@redhat.com>
6061 * regrename.c: Rewrite to handle multi-register modes and
6062 cond_exec instructions.
6063 * Makefile.in (regrename.o): Update dependancies.
6064 * recog.h (struct operand_alternative): Add is_address.
6065 * recog.c (preprocess_constraints) [case 'p']: Set it.
6067 2000-10-27 Zack Weinberg <zack@wolery.stanford.edu>
6069 * configure.in: If not NO_MINUS_C_MINUS_O, substitute
6070 OUTPUT_OPTION with '-o $@'. Make zlibdir, zlibinc relative to
6071 top level. Kill oldstyle_subdirs. Do not include
6072 $srcdir/$s/Makefile.in in all_lang_makefiles, but do include
6073 $outputs. Do not run configure.lang from config.status.
6074 Rearrange warning-flag logic to correspond to what the
6075 makefile wants. Put special vax stage1 options in
6076 @stage1_flags@ not @stage1_warn_cflags@. Don't do anything
6077 with extra_c_objs, extra_cxx_objs, or extra_cpp_objs.
6078 (--enable-c-cpplib): AC_SUBST(maybe_cpplib) with "libcpp.a" if
6079 switch is given, nothing otherwise.
6080 * configure.lang: Delete.
6082 * Makefile.in: Expunge all traces of extra_c_objs,
6083 extra_cxx_objs, and extra_cpp_objs. Set MAYBE_CPPLIB from
6084 @maybe_cpplib@. Add $(MAYBE_CPPLIB) to C_AND_OBJC_OBJS. Set
6085 warning options via a three level scheme so that -pedantic and
6086 -Wtraditional are not used for non-C front ends: LOOSE_WARN,
6087 STRICT1_WARN, STRICT2_WARN -> $(@D)-warn, GCC_WARN_CFLAGS ->
6088 WARN_CFLAGS. Distinguish STAGE1_CFLAGS from BOOT_CFLAGS.
6089 Add -I$(@D) and -I$(srcdir)/$(@D) to INCLUDES.
6090 Set OUTPUT_OPTION, ZLIB, ZLIBINC. Do not set P,
6091 LANG_FLAGS_TO_PASS. Add OUTPUT_OPTION to all object-file
6092 generation rules. Wrap all rules that change the current
6093 directory in parentheses; pmake doesn't spawn a new shell for
6094 each command. Expunge all references to $(P). When one
6095 command depends on another and they're run all at once, use &&
6096 to separate them, not ;. Add libgcc_s$(SHLIB_EXT) to files
6097 deleted on make clean. Force OUTPUT_OPTION='-o $@' in stage2
6100 * objc/Make-lang.in: Wrap all rules that change the current
6101 directory in parentheses. Expunge all references to $(P).
6102 When one command depends on another and they're run all at
6103 once, use && to separate them, not ;. Add OUTPUT_OPTION to
6104 all object-file generation rules. Delete obsolete variables.
6105 * objc/Makefile.in: Delete.
6107 2000-10-27 Jakub Jelinek <jakub@redhat.com>
6109 * calls.c (expand_call): If sibcall_failure is set during pass 1,
6110 clear tail_call_insns as well.
6112 2000-10-27 Nick Clifton <nickc@redhat.com>
6114 * config/arm/arm-protos.h (arm_function_ok_for_sibcall): Add
6117 2000-10-26 Richard Henderson <rth@redhat.com>
6119 * calls.c (expand_call): Supress sibcall if we have a
6120 BLKmode return in registers.
6122 2000-10-26 Bernd Schmidt <bernds@redhat.co.uk>
6124 * ia64.h (PREFERRED_RELOAD_CLASS): Force floating point constants
6127 2000-10-26 Nathan Sidwell <nathan@codesourcery.com>
6129 * tree.c (make_node, case 't'): Set alignment to that of
6131 * expr.c (move_by_pieces_ninsns): Abort if some length remains.
6133 2000-10-25 Mark Mitchell <mark@codesourcery.com>
6135 * Makefile.in (site.exp): Define HAVE_LIBSTDCXX_V3.
6136 * configure.in (enable-libstdcxx-v3): Arrange to have
6137 HAVE_LIBSTDCXX_V3 substituted into the output files.
6139 2000-10-25 Richard Henderson <rth@redhat.com>
6141 * recog.c (constrain_operands): Initialize which_alternative
6142 before no alternatives early exit.
6144 * cse.c (find_comparison_args): Check that we can reverse a
6145 comparison if needed before accepting the substitution.
6147 * reload.c (find_reloads_address_part): Kill rtx obstack hackery.
6149 * simplify-rtx.c (simplify_relational_operation): Sign extend
6150 low words before sign extending to high words.
6152 2000-10-25 Nick Clifton <nickc@redhat.com>
6154 * config/mcore/mcore.c: Include config.h before system.h.
6156 2000-10-25 Ray Essick <essick@ddna.labs.mot.com>
6158 * config/mcore/mcore.md (return): Force function epilogue to
6159 always be generated to work around epilogue suppression bug in
6162 2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
6164 * c-decl.c (grokdeclarator): Move warning for qualified void
6165 return types with -pedantic to when the function type is
6166 constructed. At -W, warn in general for qualified function return
6167 types, except for volatile void.
6168 * invoke.texi: Document this new warning at -W.
6170 2000-10-25 Neil Booth <neilb@earthling.net>
6172 * cpp.texi: Update with implementation-defined behavior and
6175 2000-10-25 Jakub Jelinek <jakub@redhat.com>
6177 * stor-layout.c (layout_type): If TYPE_ALIAS_SET was already set on the
6178 incomplete type force it into alias set 0.
6180 Wed Oct 25 01:02:44 EDT 2000 John Wehle (john@feith.com)
6182 * alias.c: Include basic-block.h.
6183 (loop_p): New function.
6184 (mark_constant_function): Use it.
6185 * Makefile.in (alias.o): Update dependencies.
6187 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
6189 * config/mn10300/mn10300.c (secondary_reload_class): Treat pseudos
6192 2000-10-24 Jim Wilson <wilson@cygnus.com>
6194 * expmed.c (store_bit_field): Move integer pun code down after
6195 code that calls emit_move_insn for entire register move.
6196 * stor-layout.c (compute_record_mode): Revert Mar 25, Aug 18, and
6197 Oct 20 changes. Only store mode in TYPE_MODE if RECORD_TYPE.
6199 2000-10-24 Richard Henderson <rth@cygnus.com>
6201 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
6202 register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
6204 2000-10-24 Aldy Hernandez <aldyh@redhat.com>
6206 * gcse.c (cprop_insn): do not propagate constants into jump_insn
6207 for machines with CC0 more than once.
6209 2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
6211 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat
6212 pseudos just like memory.
6214 2000-10-24 Alexandre Oliva <aoliva@redhat.com>
6216 * combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
6217 when deleting libcall sequence collapsed to a single instruction.
6219 2000-10-24 Andrew Haley <aph@cygnus.co.uk>
6221 * expr.c (do_store_flag): Don't crash if either side of a
6222 comparison is error_mark_node.
6224 2000-10-24 Jakub Jelinek <jakub@redhat.com>
6226 * sibcall.c (purge_mem_unchanging_flag): New function.
6227 (optimize_sibling_and_tail_recursive_calls): Call it.
6229 2000-10-24 Philipp Thomas <pthomas@suse.de>
6231 * Makefile.in (check-po): New target for doing checks in the po
6232 subdir if all languages configured.
6233 (CHECK_TARGETS): Add @CHECK_PO@, replaced with check-po via
6234 configure if NLS is enabled.
6235 * configure.in: If NLS is enabled, substitute CHECK_PO by check-po,
6236 otherwise leave empty.
6237 * configure: Regenerate.
6239 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6241 * i386.c (print_operand): Handle new 'A' formatting code.
6242 387 opcodes need suffixes even with -mintel-syntax.
6243 Check for explicit size override (codes 'b', 'w' and 'k').
6244 (print_operand_address): Check if register prefix is needed when
6245 emitting `ds' segment override.
6246 * i386.h: Add comment about new 'A' formatting code.
6247 * i386.md (jump and call patterns): Emit absolute references using %A.
6249 2000-10-23 Richard Henderson <rth@cygnus.com>
6251 * config/ia64/ia64.c (ia64_expand_prologue): Mark extra
6252 output registers as fixed.
6253 (ia64_function_epilogue): Undo output fixation.
6255 2000-10-23 Richard Henderson <rth@cygnus.com>
6257 * config/alpha/alpha.md: Add names for all unnamed insns; use
6258 define_insn_and_split in some obvious places.
6260 (zero_extendqihi2): Use an expander w/ nonimmediate_operand for BWX.
6261 (zero_extendqisi2, zero_extendqidi2): Likewise.
6262 (zero_extendhisi2, zero_extendhidi2): Likewise.
6263 (abs splitters): Fix match_scratch operand number.
6264 (bcc_reverse): Swap pc & label instead of non-canonical compare.
6266 2000-10-23 Jim Wilson <wilson@cygnus.com>
6268 * ia64.c (ia64_print_operand, case 'r'): Correct comment. Handle
6270 * ia64.md (cmpsi_adjusted): Use %r3.
6271 (cmpdi_adjusted): Likewise.
6273 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6275 * config/i386/att.h (ASM_FILE_START): Define.
6277 2000-10-23 Diego Novillo <dnovillo@cygnus.com>
6279 * config/i386/linux.h (ASM_FILE_START): Define.
6281 Wed Oct 18 11:16:40 2000 Donald Lindsay <dlindsay@cygnus.com>
6283 * gcc/configure.in: m68k-coff tm_file should not have libgloss.h,
6284 since this (only) drags in a crt0.o reference that the .ld files
6287 2000-10-23 Geoff Keating <geoffk@cygnus.com>
6289 * reload1.c (reload_reg_reaches_end_p): A RELOAD_OTHER can
6290 overwrite the value in a RELOAD_FOR_INPUT and other kinds of
6291 reloads just like an RELOAD_FOR_OUTPUT would.
6293 * local-alloc.c (update_equiv_regs): Add an abort(). When
6294 deleting or moving insns, update reg_equiv[regno].init_insns.
6296 2000-10-23 Mark Mitchell <mark@codesourcery.com>
6298 * c-tree.texi: Improve documentation for IF_STMTs and related
6299 conditional statements.
6301 2000-10-22 Mark Mitchell <mark@codesourcery.com>
6303 * expr.c (do_preexpand_calls): Remove.
6304 (same_from_p): Don't use CALL_EXPR_RTL.
6305 (expand_expr): Don't call preexpand_calls, or use CALL_EXPR_RTL.
6306 (preexpand_calls): Remove.
6307 * tree.c (first_rtl_op): Remove CALL_EXPR case.
6308 (unsave_expr_1): Likewise.
6309 * tree.def (CALL_EXPR): Give it only two slots.
6310 * tree.h (CALL_EXPR_RTL): Remove.
6312 2000-10-21 Chandrakala Chavva <cchavva@redhat.com>
6314 * libgcc-std.ver (__addvsi3, __addvdi3, __subvsi3, __subvdi3,
6315 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
6318 2000-10-22 Alexandre Oliva <aoliva@redhat.com>
6320 * calls.c (combine_pending_stack_adjustment_and_call): Don't
6321 adjust stack when unadjusted_alignment ends up as zero.
6323 2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
6325 * fixinc/genfixes: Remove EGCS reference.
6326 * install.texi: Remove EGCS reference.
6327 * INSTALL: Regenerate.
6329 2000-10-22 Mark Mitchell <mark@codesourcery.com>
6331 * tree.h (TYPE_IS_SIZETYPE): Add more documentation.
6333 2000-10-21 Joseph S. Myers <jsm28@cam.ac.uk>
6335 * diagnostic.c: Remove EGCS reference in comment.
6337 Sat Oct 21 08:24:25 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6339 * loop.c (strength_reduce): Fix error in last change.
6341 2000-10-20 David Edelsohn <edelsohn@gnu.org>
6343 * Makefile.in (SHLIB_NM_FLAGS): New.
6344 (libgcc.mk): Pass it.
6345 * mklibgcc.in (libgcc.map): Use it.
6347 * rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_LIBS,
6348 SHLIB_MKMAP, SHLIB_MAPFILES, SHLIB_NM_FLAGS): New.
6350 2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6352 * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
6354 * sparc.c (load_pic_register): Delete unused varaible.
6356 * libgcc2.c (__addvsi3): Delete unused variable.
6358 * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
6359 __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
6360 __negvdi2): Prototype.
6362 * ssa.c (apply_delayed_renames): Avoid undefined operation.
6364 * toplev.c (display_target_options): Make static to match
6365 prototype. Delete empty declaration.
6367 2000-10-20 Tom Tromey <tromey@cygnus.com>
6369 * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
6370 * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
6372 Fri Oct 20 17:05:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6374 * expr.c (expand_expr, case SAVE_EXPR): Set RTX_UNCHANGING_P on
6376 (expand_expr_unaligned, case ARRAY_REF): Check that index is
6377 a constant before comparing it; use tree_low_cst.
6378 * tree.c (save_expr): Set TREE_READONLY.
6379 (substitute_expr): Return inside of NON_LVALUE_EXPR.
6380 (build, build1): Set TREE_READONLY if all operands are.
6381 (build_index_type): If upper bound is a negative number, lower
6382 bound is zero and sizetype is unsigned, use upper bound of one and
6385 2000-10-20 David Edelsohn <edelsohn@gnu.org>
6387 * gcc.c (process_command, main): Use "because" instead of
6388 "since" in error messages.
6390 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6392 * stor-layout.c (compute_record_mode): Use tree_low_cst.
6393 Don't use mode of field for record unless sizes are the same.
6394 (layout_type, case ARRAY_TYPE): Remove special bounds handling
6395 previously added for Ada; also change to using host_integerp
6398 * loop.c (strength_reduce): Show when new register made for
6399 giv is known to be a pointer and its aligment if so and known.
6400 (loop_dump_aux): Show VERBOSE parameter unused.
6402 * gcse.c (set_hash_table_size): Now unsigned.
6403 * sdbout.c (template_name_p): Add "const" to avoid warnings.
6404 (sdbout_record_type_name, plain_type_1, sdbout_symbol): Likewise.
6405 (sdbout_one_type, sdbout_parms, sdbout_reg_parms): Likewise.
6406 (sdbout_end_epilogue): Remove variable NAME.
6407 * system.h (getopt): Add default definition.
6408 * config/alpha/alpha.c (print_operand): Don't continue processing
6409 after issuing error.
6410 (summarize_insn): Avoid use of UL in constant.
6412 * function.c (locate_and_pad_parm): Use host_integerp and tree_low_cst.
6414 * fold-const.c (force_fit_type): Unsigned values can overflow
6415 if they are sizetype.
6416 (int_const_binop): Don't use cache if overflows.
6418 2000-10-20 Richard Henderson <rth@cygnus.com>
6420 * function.c (locate_and_pad_parm): Zero alignment_pad.
6422 * regrename.c (rr_replace_reg): Rewrite to use recog_data to
6423 perform substitutions, and apply_change_group to see if it worked.
6425 Fri Oct 20 13:33:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6427 * dwarf2out.c (add_bound_info): Also ignore COND_EXPR.
6429 * combine.c (struct undo): Change int to unsigned int.
6430 (do_SUBST_INT): Args are unsigned int.
6431 (make_extraction, force_to_mode): Use proper type when forming mask.
6432 (make_field_assignment): Likewise.
6434 2000-10-20 Joseph S. Myers <jsm28@cam.ac.uk>
6436 * c-common.c (check_format_info_recurse): Extract string constant
6437 initializers from non-volatile constant arrays and check them as
6439 * c-typeck.c (decl_constant_value): Don't check pedantic or check
6440 for DECL_MODE (decl) != BLKmode.
6441 (decl_constant_value_for_broken_optimization): New function which
6442 includes these checks.
6443 (default_conversion, convert_for_assignment, digest_init): Use
6444 decl_constant_value_for_broken_optimization instead of
6445 decl_constant_value.
6447 2000-10-20 Mark Mitchell <mark@codesourcery.com>
6449 * tree.h (DECL_ALIGN_UNIT): New macro.
6451 2000-10-14 Marek Michalkiewicz <marekm@linux.org.pl>
6453 * config/avr/avr-protos.h (avr_output_bld): New.
6454 (out_shift_with_cnt): Add t_len argument.
6455 * config/avr/avr.c (avr_num_arg_regs): Remove -mpack-args.
6456 (output_movqi, output_movhi, output_movsisf): Optimize loading
6457 any constant with exactly one bit set to NO_LD_REGS.
6458 (out_shift_with_cnt): Optimize output code for size or speed,
6459 depending on optimize_size. Handle small shift counts as well
6460 (if not hand-optimized in ?sh??i3_out). Shifts can be done
6461 with or without a scratch register, with help of __tmp_reg__
6462 or __zero_reg__ if necessary. Add T_LEN argument to pass the
6463 length of TEMPLATE in words, return total insn length in *LEN.
6464 (ashlqi3_out, ashrqi3_out, lshrqi3_out): Change all calls to
6465 out_shift_with_cnt to work with the above change.
6466 (ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out, lshrhi3_out,
6467 lshrsi3_out): Likewise. Optimize more known shift count cases.
6468 Remove cases already well optimized in out_shift_with_cnt.
6469 (avr_output_bld): New function.
6470 * config/avr/avr.h (MASK_PACK_ARGS, TARGET_PACK_ARGS): Remove.
6471 (TARGET_SWITCHES): Remove -mpack-args backward compatibility.
6472 * config/avr/avr.md (*reload_inqi, *reload_inhi, *reload_insi):
6473 Add reload_completed to insn condition - only for peepholes.
6474 (ashlqi3, ashrqi3, lshrqi3): Correct insn length for shift counts
6475 in a register or memory.
6476 (ashlhi3, ashlsi3, ashrhi3, ashrsi3, lshrhi3, lshrsi3): Likewise.
6477 Do not require a scratch register.
6478 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
6479 *lshrhi3_const, *lshrsi3_const): New insns and matching peepholes.
6480 Optimize shifts by known count using a scratch register, but only
6481 if one is still available after register allocation.
6483 2000-10-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6485 * t-vax: New file. Don't build modules from libgcc1.c.
6487 Fri Oct 20 00:57:00 EDT 2000 John Wehle (john@feith.com)
6489 * alias.c: (mark_constant_function): Don't check pure functions.
6490 Initialize and end alias analysis.
6491 (nonlocal_mentioned_p): Rename from nonlocal_reference_p.
6492 Don't make a special exception for recursion. Handle
6493 UNSPEC_VOLATILE. Don't assume ASM_OPERANDS is non-local
6494 unless it's volatile.
6496 * local-alloc.c (equivalence): New structure.
6497 (reg_equiv): Define.
6498 (contains_replace_regs): Remove array and use
6500 (memref_referenced_p): Likewise.
6501 (no_equiv): Likewise.
6502 (update_equiv_regs): Likewise.
6504 (equiv_init_varies_p,
6505 equiv_init_movable_p): New functions.
6506 (update_equiv_regs): Use them. Use rtx_varies_p
6507 instead of function_invariant_p. Process insns
6508 from end to beginning. Allow a REG_EQUIV insn
6509 within the same loop as a use to be moved, also
6510 allow it to be moved out of a loop. Update
6511 REG_DEAD notes when substituting into an insn.
6513 2000-10-19 Jim Wilson <wilson@cygnus.com>
6515 * c-decl.c (start_decl): Check for error_mark_node type before using
6517 (finish_decl): Likewise. Don't give an error if decl type is
6518 already error_mark_node.
6520 * haifa-sched.c (compute_trg_info): Add explanatory comments.
6521 New local update_blocks. Use update_blocks to remove duplicates
6522 when computing update blocks. Check for bblst_table overflow.
6523 (schedule_block): Add explanatory comment. Reduce bblst_size by
6525 * config/ia64/ia64.md (movdi_symbolic): Document loss of REG_LABEL
6528 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6530 * libgcc2.c (_mulvsi3): Change variables u and v to a and b.
6532 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6534 * expmed.c: Minor corrections in comments.
6535 * invoke.texi: Added desciption for the new option -ftrapv.
6537 2000-10-19 Chandrakala Chavva <cchavva@redhat.com>
6539 * libgcc2.c: Added the missing #endif.
6541 Thu Oct 19 14:25:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
6543 * i386.h (CONST_OK_FOR_LETTER): Re-add 'N'; document.
6545 2000-10-18 Chandrakala Chavva <cchavva@redhat.com>
6547 * expmed.c (expand_mult): Don't do synth_mult optimization for -ftrapv.
6548 Use smulv_optab for -ftrapv.
6549 (expand_mult_highpart): Use unsigned multiply.
6550 (expand_divmod): Special-case division by -1.
6551 For EXACT_DIV_EXPR, do right shift first, then the multiply.
6552 For complex divide, use abs with unsigned result.
6553 * expr.c (force_operand): Use unsigned multiply.
6554 (expand_expr): Use overflow-trapping optabs for signed types if
6556 If flag_trapv, don't generate a recursive call with EXPAND_SUM
6557 if the type is signed and the original call wasn't EXPAND_SUM or
6559 * expr.h (addv_optab, subv_optab, smulv_optab, sdivv_optab): Declare.
6560 (negv_optab, absv_optab): Declare.
6561 * flags.h (flag_trapv): Declare.
6562 * genopinit.c (optabs): Add entries for addv_optab, subv_optab,
6563 smulv_optab, sdivv_optab, negv_optab and absv_optab.
6564 (gen_insn): Interpret '$P' as requiring an integer mode,
6565 including partial integer modes.
6566 * loop.c (emit_iv_add_mult): Use unsigned expand_mult_add.
6567 (product_cheap_p): Use unsigned expand_mult.
6568 * optabs.c (addv_optab, subv_optab, smulv_optab, sdivv_optab): Define.
6569 (negv_optab, absv_optab): Define.
6570 (expand_binop): Use overflow-trapping optabs for signed types if
6572 Handle negv_optab libe neg_optab.
6573 (expand_abs): Take result_unsignedp argument instead of unsignedp one.
6574 Use overflow-trapping optabs for signed result if flag_trapv.
6575 (expand_complex_abs): Use overflow-trapping optabs for signed types if
6577 Don't open-code complex absolute-value operation for flag_trapv.
6578 (init_optabs): Initialize addv_optab, subv_optab, smulv_optab,
6579 sdivv_optab, negv_optab and absv_optab.
6580 * toplev.c (flag_trapv): Define.
6581 (lang_independent_options f_options): Include flag_trapv.
6582 * tree.h (TYPE_TRAP_SIGNED): Define.
6583 * libgcc2.c (__addvsi3, __addvdi3, __subvsi3,__subvsi3, __subvdi3,
6584 __mulvsi3, __negvsi2, __negvdi2, __absvsi2, __absvdi2, __mulvdi3):
6586 * Makefile.in: add _absvsi2 _absvdi2 _addvsi3 _addvdi3 _subvsi3
6587 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2.
6589 2000-10-18 Geoffrey Keating <geoffk@cygnus.com>
6590 David V. Henkel-Wallace <gumby@cygnus.com>
6592 * config/i386/t-netware: Bring in from the Red Hat tree.
6593 * config/i386/netware.h: Likewise.
6594 * config/netware.h: Likewise.
6595 * config/rs6000/netware.h: Delete.
6596 * configure.in: Add i[34567]86-*-netware.
6597 * configure: Hand-edit to match configure.in change.
6599 2000-10-18 Mark Mitchell <mark@codesourcery.com>
6601 * c-common.h (flag_no_builtin): Declare.
6602 (flag_no_nonansi_builtin): Likewise.
6603 (c_common_nodes_and_builtins): Change prototype.
6604 * c-common.c (flag_no_builtin): New variable.
6605 (flag_no_nonansi_builtin): Likewise.
6606 (c_common_nodes_and_builtins): Remove parameters. Adjust
6608 * c-decl.c (flag_no_builtin): Remove.
6609 (flag_no_nonansi_builtin): Likewise.
6610 (init_decl_processing): Adjust call to
6611 c_common_nodes_and_builtins.
6613 2000-10-18 Marc Espie <espie@openbsd.org>
6615 * tm.texi (LIBGCC_SPEC): Synch with reality.
6617 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6619 * c-common.c (check_format_types): Check for writing through a
6620 NULL pointer argument.
6622 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
6624 * tm.texi (Exception Region Output): Document
6625 DWARF_CIE_DATA_ALIGNMENT.
6626 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Wrap definition in
6628 [ENABLE_CHECKING] (reg_save): Abort if offset is not a multiple of
6629 DWARF_CIE_DATA_ALIGNMENT.
6631 2000-10-18 Michael Hayes <mhayes@cygnus.com>
6633 * basic-block.h (struct loop): Delete fields pre_header_root
6634 and pre_header_trace and replace with pre_header_edges
6635 and num_pre_header_edges.
6636 * flow.c (flow_loop_dump): Dump pre_header_edges.
6637 (flow_loops_free): Free pre_header_edges.
6638 (flow_loop_pre_header_scan): Calculate pre_header_edges.
6640 2000-10-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6642 * contrib.texi: Update references to steering committee members
6643 and Jeff Law's entry.
6645 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6647 * c-common.c (CPLUSPLUS_STD_VER, C_STD_VER, C_STD_NAME): Define.
6648 (maybe_read_dollar_number, check_format_info_main): Use them for
6649 pedantic warning messages.
6651 2000-10-18 Joseph S. Myers <jsm28@cam.ac.uk>
6653 * c-common.c (check_format_info_main): Minor cleanup: move
6654 variables into inner scopes; initialize declarations where
6655 appropriate; don't hardcode "scanf" name on warning for zero
6658 2000-10-17 Mark Mitchell <mark@codesourcery.com>
6660 * c-common.c (back_end_hook): New variable.
6661 * c-common.h (back_end_hook): Declare it.
6662 * c-lang.c (finish_file): Use it.
6664 * emit-rtl.c (init_emit_once): Initialize the const_int_htab
6667 2000-10-18 Jan Hubicka <jh@suse.cz>
6669 * i386.c (ix86_comparison_operator, put_condition_code,
6670 ix86_match_ccmode, ix86_cc_mode): Handle CCRCmode.
6671 (ix86_expand_strlensi_unroll_1): Use CCRCmode.
6672 * i386.h (EXTRA_CC_MODES): Add CCRCmode.
6673 * i386.md (adddi and negdi splitter): Use CCRCmode.
6674 (add?i_3, add?i_4, add?i_5): Use CCRCmode; swap operands
6675 (subsi3_carry): add '*'
6676 (addsi3_carry_rc, subsi3_carry_rc, x86_movsicc_0_m1_rc): New.
6677 (cmp to add peep2): Use CCRCmode; swap operands.
6679 2000-10-18 Kazu Hirata <kazu@hxi.com>
6681 * h8300.c: Fix a comment typo.
6682 (round_frame_size): New.
6683 (compute_saved_regs): Likewise.
6686 (push_order): Remove.
6687 (pop_order): Likewise.
6688 (function_prologue): Rearrange code for readability.
6689 (function_epilogue): Likewise.
6691 * config/h8300/h8300.md: Remove an unnecessary sign_extend
6692 expander that is used when not optimizing. Output a tab after
6693 each assembly insns.
6695 * reorg.c: Fix formatting.
6697 2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
6699 * reload1.c (move2add_note_store): Check for simple
6700 auto-inc in destination.
6702 2000-10-17 Michael Chastain <chastain@redhat.com>
6704 * config/i386/i386-aout.h: define INT_ASM_OP.
6706 Tue Oct 17 20:11:08 2000 Alan Modra <alan@linuxcare.com.au>
6708 * pa.c (print_operand): Handle case 'c' for .vtable_inherit
6710 Tue Oct 17 20:05:51 2000 Martin Buchholz <martin@xemacs.org>
6712 * i370.md: Fix spelling typo.
6714 2000-10-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6716 * function.c (locate_and_pad_parm): Don't align stack unconditionally.
6717 Fixes execute/20001017-1.c on powerpc-linux-gnu.
6719 * expr.c (store_constructor): Apply MEM_ALIAS_SET to MEMs only.
6720 * rs6000/rs6000.c (rs6000_hash_constant): Use X0INT to access a
6723 * rs6000/rs6000.h (NO_DOLLAR_IN_LABEL, DOLLARS_IN_IDENTIFIERS,
6724 ENCODE_SECTION_INFO, ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Move from
6726 * rs6000/aix.h: ...to here.
6727 * rs6000/linux.h (ASM_APP_ON, ASM_APP_OFF): Define to Linux-style.
6729 2000-10-17 Jakub Jelinek <jakub@redhat.com>
6731 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Reload gp if needed.
6733 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Always use call, make
6734 sure linker can relax even the delay slot mov %g1,%o7, fix output
6737 2000-10-17 Kazu Hirata <kazu@hxi.com>
6739 * config/h8300/h8300.md: Remove an unnecessary zero_extend
6740 expander that is used when not optimizing. Output a tab after
6741 each assembly insns.
6743 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
6745 * gcc.c: New options --target-help.
6746 (process_command): Added code to parse this new option.
6747 * toplev.c (display_target_options): New function to support the
6749 * cppinit.c (new_pending_directive) : New option OPT_target__help.
6750 (cpp_handle_option): Support this new option.
6751 * invoke.texi: Added notes about --target-help option.
6753 2000-10-17 Graham Stott <grahams@redhat.com>
6755 * config/i386/i386.md (testqi_1): Add missing operand prefix
6757 * config/i386/i386-protos.h: Add missing prototype.
6759 2000-10-17 Diego Novillo <dnovillo@cygnus.com>
6761 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Symbol
6762 _GLOBAL_OFFSET_TABLE should not have a $ prefix when
6763 using -mintel-syntax.
6765 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6767 * c-common.c (FMT_FLAG_DOLLAR_MULTIPLE): Define.
6768 (format_types): Use it for printf.
6769 (maybe_read_dollar_number): Add parameter for the kind of format
6770 involved. Warn for multiple use for arguments if this is
6771 inappropriate for the kind of format involved.
6772 (check_format_info_main): Update calls to maybe_read_dollar_number.
6774 2000-10-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6776 * inclhack.def (hpux_maxint): Also apply fix to values.h.
6777 * fixincl.x: Rebuilt.
6779 2000-10-17 Alexandre Oliva <aoliva@redhat.com>
6781 * genrecog.c (write_switch): Return the first condition that needs a
6784 2000-10-17 Bernd Schmidt <bernds@redhat.co.uk>
6786 * c-tree.h (warn_sequence_point): Move declaration to...
6787 * c-common.h (warn_sequence_point): ... here.
6788 * c-decl.c (warn_sequence_point): Move definition to...
6789 * c-common.c (warn_sequence_point): ... here.
6790 (struct reverse_tree): New.
6791 (reverse_list, reverse_max_depth): New static variables.
6792 (build_reverse_tree, common_ancestor, modify_ok
6793 verify_sequence_points): New functions.
6794 (c_expand_expr_stmt): Call verify_sequence_points if -Wsequence-point.
6795 * c-typeck.c (check_modify_expr): Delete.
6796 (build_modify_expr): Don't call it.
6798 2000-10-17 Joseph S. Myers <jsm28@cam.ac.uk>
6800 * c-common.h (warn_missing_format_attribute): New variable.
6801 * c-decl.c (warn_missing_format_attribute): New variable.
6802 (c_decode_option): Decode -Wmissing-format-attribute and
6803 -Wno-missing-format-attribute.
6804 * c-common.c (check_function_format): If
6805 -Wmissing-format-attribute, give a warning where a vprintf or
6806 vscanf function is called by a function without its own printf or
6808 * toplev.c (documented_lang_options): Add
6809 -Wmissing-format-attribute.
6810 * invoke.texi: Document -Wmissing-format-attribute.
6812 2000-10-17 Marc Espie <espie@openbsd.org>
6814 * invoke.texi (-shared): Insist on requiring code generation flags
6815 to be used along with -shared, and document the subtle failure that
6816 may occur otherwise.
6818 2000-10-16 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6820 * pa.md (return_internal): Move `use' after `return'.
6822 2000-10-16 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6824 * machmode.def: Correct comment.
6826 2000-10-16 Rodney Brown <RodneyBrown@mynd.com>
6828 * print-rtl.c (print_rtx_head): Constify.
6829 * rtl.h (print_rtx_head): Similarly.
6831 * config/pa/pa/pa-protos.h (output_64bit_and, output_64bit_ior):
6832 Constify char * return value.
6834 (output_64bit_and, output_64bit_ior): Constify char * return value.
6835 (pa_can_combine_p): Make static.
6836 (function_arg): Decorate unused `named' argument. Fix comment typo.
6837 (function_arg_partial_nregs): Decorate unused `named' argument.
6839 2000-10-16 Joseph S. Myers <jsm28@cam.ac.uk>
6841 * c-common.c (format_check_results): New structure.
6842 (finish_dollar_format_checking): Adjust to take a
6843 format_check_results * parameter.
6844 (check_format_info, check_format_info_recurse,
6845 check_format_info_main): Split check_format_info into three
6846 functions, the main checking going in check_format_info_main.
6847 Recurse when any reduction of the format string argument towards a
6848 string literal is done; go down both branches of a conditional
6849 expression. Don't warn for extra format arguments or empty format
6850 strings if they only occur in some branches of a conditional
6853 2000-10-16 Kazu Hirata <kazu@hxi.com>
6855 * config/h8300/h8300.c: Remove obstack. Include ggc.h.
6857 2000-10-16 Jakub Jelinek <jakub@redhat.com>
6859 * rtlanal.c (may_trap_p): Check operand modes of COMPARE.
6861 2000-10-15 Diego Novillo <dnovillo@cygnus.com>
6863 * i386.md (*movsi_or): Switch operand order for intel syntax.
6865 2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
6869 * gcc.texi (Contributing): Update.
6871 2000-10-13 Diego Novillo <dnovillo@cygnus.com>
6873 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Output final jump using
6874 appropriate assembler dialect.
6876 2000-10-13 Alexandre Oliva <aoliva@redhat.com>
6878 * c-common.c (c_expand_builtin): PARAMS-ize prototype.
6880 2000-10-12 Marek Michalkiewicz <marekm@linux.org.pl>
6882 * config/avr/avr.c (output_movhi, output_movsisf): Fix loading
6883 constants 1 and 2 to NO_LD_REGS.
6885 2000-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6887 * Makefile.in (c-parse.c, tradcif.c): Create atomically.
6889 * objc/Make-lang.in (objc-parse.c): Likewise.
6891 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
6893 * arm.c: Include obstack.h
6894 (minipool_obstack, minipool_startobj): Define.
6895 (arm_add_gc_roots): Initialize them.
6896 (create_fix_barrier): Use our new obstack.
6897 (push_minipool_barrier, push_minipool_fix): Likewise.
6898 (arm_reorg): Release obstack memory.
6900 2000-10-13 Jakub Jelinek <jakub@redhat.com>
6902 * config/sparc/sparc.md (nonlocal_goto_receiver): Remove.
6903 (prologue, exception_receiver, builtin_setjmp_receiver): New
6905 * config/sparc/sparc.h (FINALIZE_PIC): Remove.
6906 * config/sparc/sparc-protos.h (finalize_pic): Remove.
6907 (load_pic_register): New prototype.
6908 * config/sparc/sparc.c (pic_setup_code): Remove.
6909 (finalize_pic): Rename to...
6910 (load_pic_register): ...this function.
6911 Don't look for nonlocal_goto_receivers and emit pic setup code
6912 directly. Don't check current_function_uses_pic_offset_table.
6914 2000-10-13 Richard Earnshaw <rearnsha@arm.com>
6916 * tree.h (struct obstack): Declare.
6918 2000-10-12 Mark Mitchell <mark@codesourcery.com>
6921 * Makefile.in (ggc-callbacks.o): Remove target.
6922 (flow.o): Depend on GGC_H.
6923 * alias.c (init_alias_analysis):
6924 Remove ggc_p conditionals.
6925 (end_alias_analysis): Likewise.
6926 * basic-block.h (init_flow): New function.
6927 (allocate_reg_life_data): Declare.
6928 * bb-reorder.c (function_obstack): Replace with ...
6929 (flow_obstack): ... new variable.
6930 (fixup_reorder_chain): Use it.
6931 * c-decl.c (ggc_p): Remove.
6932 (caller-save.c): Don't call oballoc/obfree.
6934 undobuf): Remove storage.
6935 (try_combine): Don't call oballoc.
6936 (undo_all): Don't call obfree.
6937 * cse.c (insert): Use xmalloc, not
6939 (cse_main): Adjust accordingly.
6940 * dwarf2out.c (save_rtx): Remove
6942 (dwarf2out_init): Remove ggc_p conditionals.
6943 * emit-rtl.c (rtl_obstack): Remove.
6944 (gen_rtx_CONST_INT): Remove ggc_p conditionals.
6945 (make_insn_raw): Likewise.
6946 (emit_insn_before): Likewise.
6947 (emit_insn_after): Likewise.
6948 (emit_insn): Likewise.
6949 (gen_sequence): Likewise.
6950 (copy_insn_1): Remove handling of `b' RTL components.
6951 (init_emit_once): Remove ggc_p conditionals.
6952 * except.c (create_rethrow_ref): Don't fool with obstacks.
6953 (add_partial_entry): Likewise.
6954 (call_get_eh_context): Likewise.
6955 (begin_protect_partials): Likewise.
6956 (protect_with_terminate): Likewise.
6958 (plus_constant_wide): Likewise.
6959 * expr.c (init_expr_once):
6961 (emit_block_move): Likewise.
6962 (clear_storage): Likewise.
6963 (expand_expr): Likewise.
6964 * flow.c (function_obstack): Remove.
6965 (flow_obstack): New variable.
6966 (flow_firstobj): Likewise.
6967 (create_base_block): Use the flow_obstack.
6968 (split_block): Likewise.
6969 (split_edge): Likewise.
6970 (calculate_global_regs_live): Likewise.
6971 (allocate_bb_life_data): Make it static. Likewiwse.
6972 (init_flow): New function.
6973 (size_int_type_wide): Remove ggc_p conditionals.
6975 (push_function_context_to): Don't call save_tree_status.
6976 (pop_function_context_from): Or restore_tree_status.
6977 (assign_stack_local_1): Don't call push_obstacks.
6978 (find_fixup_replacement): Use xmalloc.
6979 (fixup_var_refs_insns): Free the storage.
6980 (insns_for_mem_walk): Don't mess with obstacks.
6981 (instantiate_decls): Likewise.
6982 (trampoline_address): Likewise.
6983 (expand_function_end): Likewise.
6984 * function.h (sturct function):
6985 Remove obstack-related variables.
6986 (save_tree_status): Don't declare.
6987 (restore_tree_status): Likewise.
6988 * gcse.c (compute_can_copy):
6989 Don't call oballoc/obfree.
6990 * genattrtab.c (operate_exp): Remove
6992 (simplify_cond): Likewise.
6993 (simplify_test_exp): Don't mess with obstacks.
6994 (optimize_attrs): Likewise.
6995 * gengenrtl.c (gendef): Don't include
6997 * ggc-callbacks.c (ggc_p): Remove.
6998 * ggc-none.c (ggc_p): Remove.
6999 * ggc.h (ggc_p): Don't declare.
7000 * integrate.c (save_for_inline): Don't mess with obstacks.
7001 (integrate_decl_tree): Likewise.
7002 (output_inline_function): Likewise.
7004 (init_EXPR_INSN_LIST_cache): Likewise.
7005 * loop.c (temp_obstack):
7007 (rtl_obstack): Likewise.
7008 (init_loop): Don't mess with obstacks.
7009 (reg_address_cost): Free BIVs and GIVs.
7010 (check_insns_for_bivs): Use xmalloc, not oballoc.
7011 (find_mem_givs): Likewise.
7012 (record_biv): Likewise.
7013 (general_induction_var): Likewise.
7014 (product_cheap_p): Likewse.
7015 * optabs.c (init_one_libfunc): Remove
7017 * print-tree.c (debug_tree): Don't use
7019 (print_node): Likewise.
7020 * profile.c (output_func_start_profiler):
7021 Remove call to temporary_allocation.
7023 (eliminate_regs_in_insn): Don't mess with obstacks.
7025 (mark_target_live_regs): Use xmalloc.
7026 (free_resource_info): Free the memory.
7027 * rtl.c (rtl_obstack):
7029 (rtvec_alloc): Don't mess with obstacks.
7030 (rtx_alloc): Likewise.
7032 (copy_rtx): Don't handle `b' cases.
7033 (read_rtx): Use a local rtl_obstack.
7034 * rtl.h (oballoc): Remove.
7036 (pop_obstacks): Likewise.
7037 (push_obstacks): Likewise.
7038 (allocate_bb_life_data): Likewise.
7039 (allocate_reg_life_data): Likewise.
7040 (rtx_free): Likewise.
7041 * sdbout.c (sdbout_queue_anonymous_type):
7042 Use tree_cons, not saveable_tree_cons.
7044 (cselib_init): Don't mess with obstacks.
7046 (mark_block_nesting): Mark the label_chain.
7047 (epxand_label): Use ggc_alloc, not oballoc.
7048 (clear_last_expr): Don't mess with obstacks.
7049 (expand_decl_cleanup): Likewise.
7050 (expand_dcc_cleanup): Likewise.
7051 (expand_dhc_cleanup): Likewise.
7052 (expand_anon_union_decl): Likewise.
7053 (add_case_node): Use xmalloc, not oballoc.
7054 (free_case_nodes): New function.
7055 (expand_end_case): Call it.
7056 * stor-layout.c (layout_type): Don't
7058 (layout_type): Likewise.
7059 * toplev.c (wrapup_global_declarations):
7061 (compile_file): Remove ggc_p conditionals.
7062 (rest_of_compilation): Call init_flow. Remove ggc_p conditionals.
7063 (decode_f_option): Remove ggc_p conditionals.
7065 (function_maybepermanent_obstack): Remove.
7066 (maybepermanent_obstack): Likewise.
7067 (function_obstack): Likewise.
7068 (tmeporary_obstack): Likewise.
7069 (momentary_obstack): Likewise.
7070 (temp_decl_obstack): Likewise.
7071 (saveable_obstack): Likewise.
7072 (rtl_obstack): Likewise.
7073 (current_obstack): Likewise.
7074 (expression_obstack): Likewise.
7075 (struct obstack_stack): Likewise.
7076 (obstack_stack): Likewise.
7077 (obstack_stack_obstack): Likewise.
7078 (maybepermanent_firstobj): Likewise.
7079 (temporary_firstobj): Likewise.
7080 (momentary_firstobj): Likewise.
7081 (temp_decl_firstobj): Likewise.
7082 (momentary_function_firstobj): Likewise.
7083 (all_types_permanent): Likewise.
7084 (struct momentary_level): Likewise.
7085 (momentary_stack): Likewise.
7086 (init_obstacks): Remove initialization of removed obstacks.
7087 (save_tree_status): Remove.
7088 (restore_tree_status): Likewise.
7089 (temporary_allocation): Liekwise.
7090 (end_temporary_allocation): Liekwise.
7091 (resume_temporary_allocation): Likewise.
7092 (saveable_allocation): Likewise.
7093 (push_obstacks): Likewise.
7094 (push_obstacks_nochange): Likewise.
7095 (pop_obstacks): Likewise.
7096 (allocation_temporary_p): Likewise.
7097 (permanent_allocation): Likewise.
7098 (preserve_data): Likewise.
7099 (preserve_initializer): Likewise.
7100 (rtl_in_current_obstack): Likewise.
7101 (rtl_in_saveable_obstack): Likewise.
7102 (oballoc): Likewise.
7104 (savealloc): Likewise.
7105 (expralloc): Likewise.
7106 (print_obstack_name): Likewise.
7107 (debug_obstack): Likewise.
7108 (object_permanent_p): Likewise.
7109 (push_momentary): Likewise.
7110 (perserve_momentary): Likewise.
7111 (clear_momentary): Likewise.
7112 (pop_momentary): Likewise.
7113 (pop_momentary_nofree): Likewise.
7114 (suspend_momentary): Likewise.
7115 (resume_momentary): Likewise.
7116 (make_node): Don't set TREE_PERMANENT.
7117 (copy_node): Remove ggc_p conditionals. Don't set TYPE_OBSTACK.
7118 Don't set TREE_PERMANENT.
7119 (get_identifier): Remove ggc_p conditionals.
7120 (build_string): Likewise.
7121 (make_tree_vec): Likewise.
7122 (build_decl_list): Remove.
7123 (build_expr_list): Likewise.
7124 (tree_cons): Remove ggc_p conditionals.
7125 (decl_tree_cons): Remove.
7126 (expr_tree_cons): Likewise.
7127 (perm_tree_cons): Likewise.
7128 (temp_tree_cons): Likewise.
7129 (saveable_tree_cons): Likewise.
7130 (build1): Remove ggc_p conditionals.
7131 (build_parse_node): Likewise.
7132 (build_type_attribute_variant): Don't mess with obstacks.
7133 (build_type_copy): Likewise.
7134 (type_hash_canon): Likewise.
7135 (build_pointer_type): Likewise.
7136 (build_reference_type): Likewise.
7137 (build_index_type): Likewise.
7138 (build_range_type): Likewise.
7139 (dump_tree_statistics): Don't print obstack information.
7141 (struct tree_common): Remove permanent_flag.
7142 (TREE_PERMANENT): Remove.
7143 (TREE_SET_PERMANENT): Likewise.
7144 (TYPE_OBSTACK): Likewise.
7145 (struct tree_type): Remove obstack.
7147 (savealloc): Likewise.
7148 (build_decl_list): Likewise.
7149 (build_expr_list): Likewise.
7150 (perm_tree_cons): Likewise.
7151 (temp_tree_cons): Likewise.
7152 (saveable_tree_cons): Likewise.
7153 (decl_tree_cons): Likewise.
7154 (expr_tree_cons): Likewise.
7155 (suspend_momentary): Likewise.
7156 (allocation_temporary_p): Likewise.
7157 (resume_momentary): Likewise.
7158 (push_obstacks_nochange): Likewise.
7159 (permanent_allocation): Likewise.
7160 (push_momentary): Likewise.
7161 (clear_momentary): Likewise.
7162 (pop_momentary): Likewise.
7163 (end_temporary_allocation): Likewise.
7164 (pop_obstacks): Likewise.
7165 (push_obstacks): Likewise.
7166 (pop_momentary_nofree): LIkewise.
7167 (preserve_momentary): Likewise.
7168 (saveable_allocation): Likewise.
7169 (temporary_allocation): Likewise.
7170 (resume_temporary_allocation): Likewise.
7171 (perserve_initializer): Likewise.
7172 (debug_obstack): Likewise.
7173 (rtl_in_current_obstack): Likewise.
7174 (rtl_in_saveable_obstack): Likewise.
7176 * varasm.c (current_obstack): Remove.
7177 (saveable_obstack): Remove.
7178 (rtl_obstack): Remove.
7179 (immed_double_const): Don't mess with obstacks.
7180 (immed_real_cons): Likewise.
7181 (output_constant_def): Likewise.
7182 (init_varasm_status): Use xcalloc.
7183 (mark_pool_constant): Mark the pool constant itself.
7184 (free_varasm_status): Free memory.
7185 (decode_rtx_const): Call bzero directly, rather than expanding it
7187 (record_rtx_const): Don't mess with obstacks.
7188 (force_const_mem): Likewise.
7189 * config/arm/arm.c (arm_encode_call_attribute): Remove ggc_p
7191 (aof_pic_entry): Likewise.
7192 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7193 * config/m32r/m32r.c (m32r_encode_section_info): Likewise.
7194 * config/pa/pa.c (saveable_obstack): Remove.
7195 (rtl_obstack): Likewise.
7196 (current_obstack): Likewise.
7197 (output_call): Don't mess with obstacks.
7198 (hppa_encode_label): Remove ggc_p conditionals.
7199 * config/romp/romp.c (get_symref): Don't mess with obstacks.
7200 * config/rs6000/rs6000.c (output_toc): Remove ggc_p conditional.
7201 (rs6000_encode_section_info): Likewise.
7202 * config/sh/sh.c (get_fpscr_rtx): Likewise.
7204 Thu Oct 12 16:02:31 MET DST 2000 Jan Hubicka <jh@suse.cz>
7206 * i386.md (adddi3, subdi3 splitters): Update for new pattern.
7207 (addsi3_cc, addqi3_cc, subsi3_cc): Remove
7208 (addsi3_carry): Canonicalize.
7209 (addqi_5): Remove '*'.
7210 (sbb pattern): Canonicalize.
7212 * i386.md (cmp to inc/add peep2): New.
7214 2000-10-12 Richard Earnshaw <rearnsha@arm.com>
7216 * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
7219 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7221 * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
7222 * README.TRAD, TESTS.FLUNK: Remove.
7224 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7226 * c-common.c (decl_attributes): Don't allow strftime formats with
7227 first_arg_num nonzero.
7228 (check_format_info): Set wanted_type and wanted_type_name to zero
7229 before they are possibly assigned and used.
7231 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7233 * c-common.c (scanf_flag_specs): Add flags ' and I.
7234 (strftime_flag_pairs): Disallow any pair of the _, - and 0 flags,
7235 or the ^ and # flags together.
7236 (scan_char_table): Handle the ' and I flags.
7237 (format_types): Add ' and I flags for scanf.
7239 2000-10-12 Joseph S. Myers <jsm28@cam.ac.uk>
7241 * c-common.c (print_char_table): Use the unpromoted type for
7242 lengths "h" and "hh" with conversions dioxXu.
7243 (check_format_types): Apply the default argument promotions where
7244 the wanted type is not a pointer target.
7246 2000-10-11 Michael Meeks <mmeeks@gnu.org>
7247 Joseph S. Myers <jsm28@cam.ac.uk>
7249 * c-typeck.c (check_modify_expr): New function.
7250 (build_modify_expr): Call it if warn_sequence_point.
7251 * c-decl.c (warn_sequence_point): New variable.
7252 (c_decode_option): Handle -Wsequence-point and
7253 -Wno-sequence-point. Enable -Wsequence-point as part of -Wall.
7254 * c-tree.h (warn_sequence_point): Declare.
7255 * invoke.texi (-Wsequence-point): Document.
7256 * toplev.c (documented_lang_options): Add -Wsequence-point and
7257 -Wno-sequence-point.
7258 Original work by Michael Meeks, 16 Jun 1998.
7260 Wed Oct 11 06:15:41 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7262 * tree.c (get_narrower): Don't look at precision of field if
7265 Tue Oct 10 23:14:33 2000 Denis Chertykov <denisc@overta.ru>
7267 * config/avr/avr.c (valid_machine_decl_attribute): Allow `extern'
7268 declaration for data with "progmem" attribute.
7270 2000-10-09 Marek Michalkiewicz <marekm@linux.org.pl>
7272 * config/avr/avr.c (out_shift_with_cnt): Use AS2 macro.
7273 Correct insn length if shift count is a memory operand.
7274 * config/avr/avr.md: New define_peephole2 to use *reload_inqi.
7275 (*iorhi3_clobber): Change lo8 to hi8.
7276 (zero_extendhisi2): Change %B0 to %A1.
7277 (ashlhi3, ashrhi3): Correct insn length.
7278 (andhi3, abssf2, extendqisi2, extendhisi2): Change "cc"
7279 from "clobber" to "set_n" in some alternatives.
7281 2000-10-10 Jakub Jelinek <jakub@redhat.com>
7283 * reload1.c (calculate_needs_all_insns): If deleting an instruction,
7284 remove its insn_chain structure as well.
7286 2000-10-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7288 * dbxout.c (dbxout_source_line): Remove extra tab.
7290 2000-10-09 Hans-Peter Nilsson <hp@bitrange.com>
7292 * config/elfos.h (UNIQUE_SECTION): Apply STRIP_NAME_ENCODING on name.
7294 2000-10-09 Richard Henderson <rth@cygnus.com>
7296 * Makefile.in (LANG_LIB2FUNCS): Remove.
7297 (LIB2FUNCS): Remove _pure.
7298 (LIB2ADD): Remove LANG_LIB2FUNCS.
7299 (stage_a): Don't set LANG_LIB2FUNCS.
7300 * libgcc2.c (__terminate): Mark noreturn.
7301 (__pure_virtual): Remove.
7302 * mklibgcc.in: Remove LIB2ADD .txt processing.
7304 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7306 * arm.md (push_multi): Revert unintended change.
7308 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7310 * arm.c: Miscellaneous white space and comment clean-ups. No
7314 2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7316 * c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
7317 STRING_CST by calling combine_strings.
7319 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7321 * arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
7322 (thumb_output_move_mem_multiple): Support new insn format.
7323 * arm.md (movmem12b): Use SSA compatible format.
7324 (movmem8b): Likewise.
7326 2000-10-09 Richard Earnshaw <rearnsha@arm.com>
7328 * arm.md (predicable): New attribute, default to "no".
7329 (all patterns): Mark as predicable if appropriate.
7330 (conditional execution splits): Split using predication format.
7331 (define_cond_exec): Define.
7332 * arm.c (arm_print_operand): handle insn predicate.
7334 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7336 * README.NS32K: Remove file.
7338 2000-10-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7340 * README-bugs: Remove file.
7342 2000-10-08 Philipp Thomas <pthomas@suse.de>
7343 * aclocal.m4 (AM_GNU_GETTEXT): Fix non portable use of == operator
7345 * configure: Rebuilt.
7347 2000-10-08 Philipp Thomas <pthomas@suse.de>
7348 * aclocal.m4 (AM_WITH_NLS): When not using included gettext,
7349 disable catalog building if no suitable program was found.
7350 Move warning message from here
7351 (AM_GNU_GETTEXT): To here.
7352 * configure: Rebuilt.
7354 2000-10-08 Philipp Thomas <pthomas@suse.de>
7355 * aclocal.m4 (GCC_PATH_PROG): New. Like AC_PATH_PROG but uses
7356 different cache variables.
7357 (GCC_PATH_PROG_WITH_TEST): New. Like AM_PATH_PROG_WITH_TEST but
7358 uses different cache variables.
7359 (AM_WITH_NLS): Use GCC_PATH_PROG and GCC_PATH_PROG_WITH_TEST.
7360 * configure: Regenerated.
7362 2000-10-08 Richard Henderson <rth@cygnus.com>
7364 * Makefile.in (libgcc.mk): Pass SHLIB_EXT, not SHLIB_LIBS.
7365 * configure.in (sparc*-*-solaris*): Use t-slibgcc{,-sld}.
7366 * mklibgcc.in: Consider SHLIB_LINK the entire shlib build command.
7369 * config/t-linux (SHLIB_EXT): New.
7370 (SHLIB_LINK): Use the entire build command, with substitutions.
7371 (SHLIB_LIBS): Remove.
7372 * config/alpha/t-osf4: Likewise.
7373 * config/mips/t-iris6: Likewise.
7374 * config/sparc/t-sol2: Likewise, but move shlib stuff...
7375 * config/sparc/t-slibgcc-sld: ...here.
7376 * config/sparc/t-slibgcc: New file.
7378 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
7380 * tm.texi (INTMAX_TYPE, UINTMAX_TYPE): Define.
7381 * c-common.h (enum c_tree_index): Add CTI_INTMAX_TYPE and
7383 (intmax_type_node, uintmax_type_node): Define.
7384 * c-common.c (decl_attributes): If pedantic, warn if `mode'
7385 attributes create a type wider than intmax_t.
7386 (T_IM, T_UIM): Define properly.
7387 * c-decl.c (INTMAX_TYPE, UINTMAX_TYPE): Define if not already
7389 (init_decl_processing): Initialize intmax_type_node and
7391 * c-lex.c (lex_number): When pedantic and warning for integer
7392 constants that are too large, in C99 mode warn for those that have
7393 a type wider than long long.
7395 2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
7397 * c-common.c (FMT_FLAG_ARG_CONVERT, FMT_FLAG_SCANF_A_KLUDGE,
7398 FMT_FLAG_FANCY_PERCENT_OK): Define.
7399 (format_char_info): Add flag "4" to comment.
7400 (format_flag_spec, format_flag_pair): New structures.
7401 (format_kind_info): Add additional fields to control format
7403 (printf_flag_specs, printf_flag_pairs, scanf_flag_specs,
7404 scanf_flag_pairs, strftime_flag_specs, strftime_flag_pairs): New
7406 (time_char_table): Use "4" flag to handle %Ey.
7407 (format_types): Add entries for new fields.
7408 (get_flag_spec): New function.
7409 (check_format_info): Increase size of flag_chars[] to 256.
7410 Control format checking using the new fields of a format_kind_info
7411 and the new tables; remove all conditionals on printf_format_type,
7412 scanf_format_type or strftime_format_type. Handle all details of
7413 bad combinations of flags (including width, precision and strftime
7414 modifiers) through data rather than ad hoc code. Handle all
7415 details of standard versions in which flags appeared through
7416 data. Use the "4" flag.
7418 2000-10-07 Will Cohen <wcohen@redhat.com>, Kazu Hirata <kazu@hxi.com>
7420 * config/h8300/h8300.md: Remove the memory alternative and correct
7421 the insn lengths in the templates for sign extention and zero
7424 2000-10-07 Richard Henderson <rth@cygnus.com>
7426 * calls.c (expand_call): Disallow sibcalls to noreturn functions.
7427 * flow.c (make_edges): Revert last change.
7429 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Don't test
7431 * config/pa/pa.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
7433 2000-10-06 David O'Brien <obrien@dragon.nuxi.com>
7435 * config/alpha/elf.h: Standardize the formatting.
7437 2000-10-06 David O'Brien <obrien@FreeBSD.org>
7439 * config/alpha/elf.h: Protect the ASM_OUTPUT_IDENT definition with an
7442 2000-10-06 Richard Henderson <rth@cygnus.com>
7444 * function.c (diddle_return_value): Examine
7445 current_function_return_rtx instead of the DECL_RESULT.
7446 (expand_function_end): Handle reloading DECL_RESULT from memory
7447 into a hard register. Query promote_mode for sign of mismatched
7450 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7452 * haifa-sched.c (schedule_insns): Fix typo in freeing
7453 forward_dependency_cache.
7455 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
7457 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): Add
7458 `TARGET_SH2' as a condition.
7460 2000-10-06 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7462 * haifa-sched.c (anti_dependency_cache, output_dependency_cache,
7463 forward_dependency_cache): New variables.
7464 (add_dependence, remove_dependence): Use anti_dependency_cache and
7465 output_dependency_cache.
7466 (compute_block_forward_dependences): Use forward_dependency_cache.
7467 (schedule_insns): Allocate and free memory for anti/output/forward
7468 dependencies caches.
7470 2000-10-06 Alexandre Oliva <aoliva@redhat.com>
7472 * config/sh/sh.md (call, call_value): Use `TARGET_SH2' instead of
7473 `! TARGET_SH1'. Reindent.
7475 2000-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7477 * builtins.c (is_valid_printf_arglist, expand_builtin_printf):
7478 Move functions from here ...
7480 * c-common.c (is_valid_printf_arglist, c_expand_builtin_printf):
7482 (c_expand_builtin): New function.
7483 (init_function_format_info): Don't set `check_function_format_ptr'.
7484 (c_common_nodes_and_builtins): Set built_in_class type for
7485 printf/__builtin_printf to BUILT_IN_FRONTEND.
7486 (c_expand_expr): Handle CALL_EXPRs that are front-end builtins.
7488 * c-common.h (build_function_call): Declare.
7490 * expr.c (expand_expr): Pass builtins with class BUILT_IN_FRONTEND
7491 to `lang_expand_expr' rather than `expand_builtin'.
7493 * tree.c (check_function_format_ptr): Delete.
7495 * tree.h (check_function_format_ptr): Likewise.
7497 2000-10-06 Hans-Peter Nilsson <hp@bitrange.com>
7499 * dwarf2out.c (build_cfa_loc): Correct to use DW_OP_regx or
7500 DW_OP_bregx when cfa->reg > 31.
7502 * frame-dwarf2.c (decode_stack_op) [case DW_OP_regx]: Add missing
7505 2000-10-05 Richard Henderson <rth@cygnus.com>
7507 * c-decl.c (warn_missing_noreturn): Remove.
7508 (c_expand_body): Don't set or check can_reach_end.
7509 * c-tree.h (warn_missing_noreturn): Move ...
7510 * flags.h: ... here.
7511 (can_reach_end): Remove.
7512 * flow.c (check_function_return_warnings): New.
7513 (make_edges): No edge to exit for noreturn sibcalls.
7514 * function.c (expand_function_end): Save the return value
7515 clobber instruction.
7516 (mark_function_status): Mark it.
7517 * function.h (struct function): Add x_clobber_return_insn.
7518 * jump.c (can_reach_end): Remove.
7519 (calculate_can_reach_end): Remove.
7520 (jump_optimize_1): Don't call it.
7521 * output.h (check_function_return_warnings): Declare.
7522 * toplev.c (warn_missing_noreturn): Move from c-decl.c
7523 (rest_of_compilation): Call check_function_return_warnings.
7525 2000-10-05 Richard Henderson <rth@cygnus.com>
7527 * Makefile.in (NM_FOR_TARGET): New.
7528 (libgcc.mk): Pass SHLIB_MKMAP, SHLIB_MAPFILES.
7529 (libgcc.a, stmp-multilib): Pass NM_FOR_TARGET.
7530 * mklibgcc.in: If SHLIB_MKMAP, build libgcc.map. Depend the
7531 shared library build on that and EXTRA_MULTILIB_PARTS.
7532 * mkmap-flat.awk: New file.
7533 * mkmap-symver.awk: New file.
7534 * libgcc-std.ver: New file.
7535 * config/libgcc-glibc.ver: New file.
7536 * config/ia64/libgcc-ia64.ver: New file.
7537 * config/t-linux (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7538 (SHLIB_LINK): Add --version-script.
7539 * config/ia64/t-ia64 (SHLIB_MAPFILES): Add libgcc-ia64.ver.
7540 * config/mips/t-iris6 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7541 * config/sparc/t-sol2 (SHLIB_MKMAP, SHLIB_MAPFILES): New.
7542 (SHLIB_LINK): Add -M.
7544 2000-10-05 Richard Henderson <rth@cygnus.com>
7546 * Makefile.in (LIB2FUNCS): Add _clz.
7547 * libgcc2.c (__ffsdi2): Use count_trailing_zeros.
7548 (__clz_tab): Put in its own unit, non-static.
7549 * libgcc2.h: Always include longlong.h.
7551 * longlong.h [alpha] (count_leading_zeros): Use cmpbge with
7552 a zero instead of -1.
7553 (count_trailing_zeros): Likewise.
7555 2000-10-05 Richard Henderson <rth@cygnus.com>
7557 * config/alpha/alpha.c (alpha_emit_setcc): Don't swap GT tests
7558 when second op1 is const0_rtx. Validate op0 as a register.
7559 * config/alpha/alpha.md (setcc_internal): Don't allow constants
7560 in the first argument of the compare.
7561 (setcc_swapped_internal): Likewise.
7562 (setne_internal): Likewise.
7564 2000-10-05 Geoff Keating <geoffk@cygnus.com>
7566 * tree.c (tree_size): New function split out of copy_node.
7567 (make_node): Remove obstack handling. Use tree_size.
7568 (copy_node): Use tree_size.
7569 * tree.h: Prototype tree_size.
7571 2000-10-05 Richard Henderson <rth@cygnus.com>
7573 * diagnostic.c (output_format): Add missing break.
7575 2000-10-05 Jim Wilson <wilson@cygnus.com>
7577 * function.c (fixup_var_refs_1, case SET): When gen_move_insn returns a
7578 SEQUENCE, call emit_insn_before, copy PATTERN and REG_NOTES of last
7579 sequence insn to INSN, and delete last sequence insn.
7581 2000-10-05 Phil Edwards <pme@gcc.gnu.org>
7583 * gcc.c (main): Include generated configargs.h header
7584 and use arguments in '-v' output.
7586 Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7588 * gcc.c: Move data on prefixes forward in file and reorganize.
7589 (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1):
7590 Always define, but make null if no value.
7591 (static_specs): Add "md_exec_prefix", "md_startfile_prefix",
7592 and "md_startfile_prefix_1".
7593 (main): Check whether md_exec_prefix and the others are the
7594 null string rather than whether the macro is defined.
7596 Thu Oct 5 19:04:18 2000 J"orn Rennecke <amylaar@redhat.co.uk>
7598 * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
7599 from PSImode to SImode.
7601 2000-10-05 Jakub Jelinek <jakub@redhat.com>
7603 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
7604 from float to integral mode with HOST_BITS_PER_WIDE_INT 64.
7605 * dwarf2out.c (add_const_value_attribute): Divide by 4, not
7608 Thu Oct 5 09:31:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7610 * fold-const.c (fold, case MINUS_EXPR, case EQ_EXPR): Perform
7611 negation in proper type.a
7613 2000-10-04 Richard Henderson <rth@cygnus.com>
7615 * configure.in (enable-shared): New.
7616 * Makefile.in (LIBGCC_DEPS): Depend on EXTRA_PARTS as well.
7617 (libgcc.mk): Pass SHLIB_LINK, SHLIB_LIBS, SHLIB_MULTILIB to mklibgcc.
7618 * mklibgcc.in: Use them to link shared a libgcc.
7619 * config/t-linux (SHLIB_LINK, SHLIB_LIBS): New.
7620 * config/alpha/t-ieee (SHLIB_MULTILIB): New.
7621 * config/mips/t-iris6 (SHLIB_LINK, SHLIB_LIBS): New.
7622 * config/sparc/t-sol2 (SHLIB_LINK, SHLIB_LIBS): New.
7624 * configure.in (alpha-osf*): Use t-osf and x-osf.
7625 * config/alpha/t-osf: New file.
7626 * config/alpha/t-osf4: New file.
7627 * config/alpha/x-osf: New file.
7628 * config/alpha/x-alpha: Remove file.
7630 2000-10-04 Will Cohen <wcohen@redhat.com>
7632 * c-typeck.c (process_init_element): Added warning for zero-length
7635 * extend.texi (Zero Length): State that static initializers for
7636 zero-length arrays are not allowed.
7638 Mon Oct 2 14:50:14 MET DST 2000 Jan Hubicka <jh@suse.cz>
7640 * rtlanal.c (single_set_1): Do not require USE and CLOBBERs
7643 2000-10-03 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7645 * config/float-c4x.h: New.
7646 * configure.in (c4x-*): Set float_format to c4x.
7647 * configure: Regenerate.
7649 2000-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7651 * configure.in (sparc-*-solaris2*): Disable 32-to-64 cross
7652 compilation for solaris versions 2.7 and greater.
7654 2000-10-02 Marc Espie <espie@openbsd.org>
7656 * config/alpha.h (WORD_SWITCH_TAKES_ARG): add -rpath to default,
7657 instead of redefining from scratch.
7659 2000-10-02 David O'Brien <obrien@dragon.nuxi.com>
7661 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Define.
7663 2000-10-01 Mark Mitchell <mark@codesourcery.com>
7665 * config/ns32k/genix.h: Remove.
7666 * config/ns32k/x-genix: Likewise.
7667 * config/ns32k/xm-genix.h: Likewise.
7668 * config/fx80: Remove all filee in directory.
7669 * config/pyr: Likewise.
7670 * config/tahoe: Likewise.
7671 * config/gmicro: Likewise.
7672 * config/spur: Likewise.
7673 * configure.in: Remove configury bits for above targets.
7674 * configure: Regenerated.
7676 * configure.in: Don't configure chill by default.
7677 * configure: Regenerated.
7679 * c-decl.c (c_expand_body): Don't generate RTL if flag_syntax_only.
7680 (lang_mark_false_label_stack): Remove.
7681 * c-lex.c (init_c_lex): Add file_info_tree as GC root. Allocate
7682 <top level> string in GC area.
7683 (mark_splay_tree_node): New function.
7684 (mark_splay_tree): Likewise.
7685 * except.c (mark_eh_status): Only call lang_mark_false_label_stack
7687 * ggc-callbacks.c (lang_mark_false_label_stack): Remove.
7688 * ggc-common.c (lang_mark_false_label_stack): Change type.
7689 * ggc.h (ggc_alloc_string): Add comment.
7690 (ggc_strdup): New function.
7692 Sat Sep 23 19:10:20 2000 Denis Chertykov <denisc@overta.ru>
7694 * config/avr/avr.h (BRANCH_COST): Define as 0.
7696 * config/pdp11/pdp11.c: #include "tree.h" added.
7698 2000-09-30 Marek Michalkiewicz <marekm@linux.org.pl>
7700 * config/avr/avr.c (ashlhi3_out, ashlsi3_out, ashrhi3_out,
7701 ashrsi3_out, lshrhi3_out, lshrsi3_out): Optimize more cases
7702 with known shift count.
7703 * config/avr/avr.md (ashlsi3, ashrsi3, lshrsi3):
7704 New alternative for shift count 2 with no scratch register.
7705 (ashlhi3, ashlsi3): Change "cc" attribute from "clobber" to
7706 "set_n" for shift counts 1 and 2.
7708 2000-09-30 Geoff Keating <geoffk@cygnus.com>
7710 * config/rs6000/rs6000.md (movsi_to_cr): Remove the USE. Calculate
7711 the mask value from the individual SET operations.
7712 (return_internal_si): Move the USE after the RETURN.
7713 (return_internal_di): Likewise.
7714 (return_and_restore_fpregs_si): Likewise.
7715 (return_and_restore_fpregs_di): Likewise.
7716 (return_eh_si): Likewise.
7717 (return_eh_di): Likewise.
7718 * config/rs6000/rs6000.c (mtcrf_operation): Don't look for,
7720 (rs6000_emit_prologue): Don't emit the USE for movsi_to_cr.
7721 Don't generate a PARALLEL around a single operation movsi_to_cr.
7722 Generate the RETURN first in any PARALLELs.
7724 * rtlanal.c (single_set_1): Use fatal_insn to display the
7725 invalid insn. Check for more cases when a USE or CLOBBER occurs
7727 * Makefile.in: Update dependencies for rtlanal.o.
7729 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
7731 * i386.c: Move include of "config.h" to before that of <setjmp.h>.
7733 2000-09-30 Joseph S. Myers <jsm28@cam.ac.uk>
7735 * c-tree.texi, contrib.texi, gcc.texi, install.texi, invoke.texi:
7736 Consistently use @email for formatting email addresses.
7738 2000-09-29 Richard Henderson <rth@cygnus.com>
7740 * cse.c (notreg_cost): New argument outer.
7741 (COST): Pass in SET to notreg_cost
7743 (fold_rtx): Use COST_IN. Prefer constants when costs
7746 2000-09-29 David Edelsohn <edelsohn@gnu.org>
7748 * fixinc/inclhack.def (broken_cabs): Generalize regex.
7749 * fixinc/fixincl.x: Regenerate.
7751 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7753 * loop.c (check_final_value): A GIV is not replaceable if used
7756 Fri Sep 29 10:04:12 2000 Jeffrey A Law (law@cygnus.com)
7758 * version.c: Bump to gcc-2.97.
7760 Frs Sep 29 13:37:59 MET DST 2000 Jan Hubicka <jh@suse.cz>
7762 * final.c (final_scan_insn): Remove extra extract_insn call;
7763 Use caching for constrain_operands.
7764 (cleanup_subreg_operands): Use caching for extract_insn.
7765 * recog.c (constrain_operands_cached): New.
7766 * recog.h (constrain_operands_cached): Declare.
7767 * i386.c (ix86_attr_length_immediate_default,
7768 ix86_attr_length_address_default, ix86_agi_dependant): Cache
7771 * recog.c (asm_noperands): Tweak.
7772 (extract_insn): Do not call asm_noperads for non-asm instructions.
7774 Fri Sep 29 13:20:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
7776 * recog.c (recog_memoized): Rename to recog_memoized_1.
7777 * recog.h (recog_memoized): Rename to recog_memoized_1.
7778 (recog_memoized): New macro.
7779 * rtl.h (single_set): Rename to single_set_1
7780 (single_set): New macro.
7781 * rtlanal.c (single_set): Rename to single_set_1; expect clobbers
7784 * i386.md (strmovsi_1, strmovhi_1 strmovqi_1):
7785 Do not use match_dup of input operands at outputs.
7786 Use register_operand for memory expression.
7787 (rep_movsi): Put use last, canonicalize.
7788 Use register_operand for memory expression.
7789 (rep_movqi): Put use last.
7790 Use register_operand for memory expression.
7791 (strsetsi_1, strset_hi_1, strsetqi_1): Do not use match_dup
7792 of input operands at outputs. Use register_operand for memory
7794 (rep_stossi): Put use last; canonicalize; fix match_dup in
7795 the address expression
7796 (rep_stosqi): Likewise.
7797 (memcmp expander): Update calls.
7798 (cmpstrsi_nz_1, cmpstrsi_1, strlensi_1): Avoid match_dups in
7801 * i386.md (fp_jcc_3, fp_jcc_4, jp_fcc_5): if_then_else operand is
7803 (fp_jcc_4, fp_jcc_3): Refuse unordered comparisons.
7805 2000-09-28 David O'Brien <obrien@FreeBSD.org>
7807 * config/i386/freebsd-aout.h: New, FreeBSD a.out config file.
7808 Contains the old contents of config/i386/freebsd.h
7809 * config/i386/freebsd.h: Now the ELF rather than a.out config file.
7810 Contains the old contents of config/i386/freebsd-elf.h
7811 * config/i386/freebsd-elf.h: Retire this file -- contents moved to
7812 config/i386/freebsd.h.
7813 * configure.in: Adjust for above changes.
7814 * po/POTFILES.in: Likewise.
7815 * po/en_GB.po: Likewise.
7816 * po/gcc.pot: Likewise.
7817 * configure: Rebuilt.
7819 2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7821 * doloop.c (doloop_modify): Prevent delete_insn() from
7822 deleting too much. Prefer loop->top over loop->start as
7823 target for the new JUMP insn.
7824 (doloop_valid_p): Ignore loop with exit_count != 0.
7826 2000-09-28 Philipp Thomas <pthomas@suse.de>
7828 * invoke.texi (i386 Options): Add athlon to table of possible
7831 2000-09-28 Gabriel Dos Reis <gdr@codesourcery.com>
7833 * diagnostic.h (output_clear_message_text): New function.
7834 (output_message_text): New macro.
7836 * diagnostic.c (clear_text_info): Rename to
7837 output_clear_message_text.
7838 (output_clear): Adjust.
7839 (output_finish): Rename to output_finalize_message. Tweek.
7840 (output_to_stream): Adjust.
7842 2000-09-28 Neil Booth <neilb@earthling.net>
7844 * cpperror.c (_cpp_begin_message): Do the test for suppression
7845 of warnings and pedantic warnings before the "is a warning an
7847 * cppinit.c (cpp_handle_option): Remove surplus \n.
7848 * cpplex.c (ON_REST_ARG): Delete.
7849 (skip_block_comment): Initialise prevc.
7850 (parse_args): Improve error messages.
7851 (maybe_paste_with_next): Use CONTEXT_VARARGS rather
7853 * cpplib.c (cpp_push_buffer): Fix grammar in message.
7854 * cppmain.c (main): Set callbacks for #ident and #pragma
7855 only if no_output option is false.
7856 (do_pragma_implementation): Only call the #pragma handler
7857 if it is set in the cpp_reader structure.
7859 Wed Sep 27 14:00:07 2000 Donald Lindsay <dlindsay@cygnus.com>
7861 * integrate.c (copy_insn_list): if an ignored return value
7862 is being clobbered, skip cloning that into the inline copy.
7864 2000-09-27 Joseph S. Myers <jsm28@cam.ac.uk>
7866 * extend.texi, invoke.texi, gcc.texi, install.texi: Consistently
7867 use @uref for formatting URLs.
7869 2000-09-27 Mark Elbrecht <snowball3@bigfoot.com>
7871 * config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
7874 Tue 26-Sep-2000 18:25:38 BST Neil Booth <neilb@earthling.net>
7876 * gcc.c (cpp_options): Add spec for -ftabstop=.
7877 (invoke_as): New spec that handles invoking as.
7878 Update specs to handle -save-temps and -traditional.
7879 * ch/lang-specs.h, f/lang-specs.h, java/lang-specs.h:
7881 * cp/lang-specs.h, objc/lang-specs.h: Update to use
7882 invoke_as, and handle -save-temps and -traditional (if
7885 2000-09-26 Jakub Jelinek <jakub@redhat.com>
7887 * config/sparc/sparc.c (sparc_emit_set_const64): Don't abort when
7889 (function_arg_slotno): Accept TImode/CTImode.
7890 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): If IN_LIBGCC2 define
7893 2000-09-26 Michael Hayes <mhayes@cygnus.com>
7895 * flow.c (flow_loop_pre_header_scan): Punt if loop enters
7898 2000-09-25 Jim Wilson <wilson@cygnus.com>
7900 * config/ia64/ia64.h (INDEX_REG_CLASS): Define to GENERAL_REGS.
7901 (REGNO_OK_FOR_INDEX_P): Define to REGNO_OK_FOR_BASE_P.
7902 (LEGITIMATE_ADDRESS_DISP): Use LEGITIMATE_ADDRESS_REG.
7903 (REG_OK_FOR_INDEX): Define to REG_OK_FOR_BASE_P.
7905 Tue 26-Sep-2000 00:16:22 BST Neil Booth <neilb@earthling.net>
7907 * cpplex.c (parse_args): Don't set VOID_REST flag.
7908 (CONTEXT_VARARGS): New flag.
7909 (maybe_paste_with_next): Set context earlier in loop. Use
7910 it. Do varargs test with CONTEXT_VARARGS flag.
7911 (push_arg_context): Set CONTEXT_VARARGS flag if we're
7912 pushing an argument context for a varargs argument.
7913 * cpplib.h (VOID_REST): Delete.
7914 * gcc.dg/cpp/vararg1.c: Add test case.
7916 2000-09-25 Branko Cibej <branko.cibej@hermes.si>
7918 * flags.h: Declare warning flag warn_system_headers.
7919 * toplev.c: Define it.
7920 (W_options): Add option -Wsystem-headers.
7921 * diagnostic.c (count_error): Test warn_system_headers.
7922 * invoke.texi: Add description for -Wsystem-headers.
7923 * cpplib.h (cpp_options): New member warn_system_headers.
7924 * cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
7925 CPP_IN_SYSTEM_HEADER.
7926 * cpplib.c (do_import, do_pragma_once): Likewise.
7927 * cpperror.c (_cpp_begin_message): Test warn_system_headers
7928 and CPP_IN_SYSTEM_HEADER.
7929 * cppinit.c (handle_option): Recognize -Wsystem_headers.
7930 (print_help): Describe -Wsystem_headers.
7931 * cpplex.c (lex_line): Reorganize condition so that warnings
7932 about C++ comments in system headers can be enabled. Remove
7933 label do_line_comment.
7935 Mon 25-Sep-2000 23:38:27 BST Neil Booth <neilb@earthling.net>
7937 * cpplex.c (save_comment): Only store the initial '/'
7939 (lex_token): Combine handling of the two comment types.
7940 Pass everything but the initial '/' to save_comment.
7942 Mon 25-Sep-2000 23:31:45 BST Neil Booth <neilb@earthling.net>
7944 * cpphash.h (_cpp_digraph_spellings, _cpp_process_directive,
7945 _cpp_can_paste): New library-internal prototypes.
7946 * cpplex.c (dump_param_spelling, output_line_command,
7947 output_token, cpp_scan_buffer, cpp_scan_buffer_nooutput,
7948 cpp_printf, cpp_output_list): Move to cppoutput.c.
7949 (process_directive, can_paste, digraph_spellings): Add _cpp_ prefix.
7950 * cppmacro.c (dump_macro_args, cpp_dump_definition) Move to
7952 * cppoutput.c (dump_macro_args, cpp_dump_definition, output_token,
7953 dump_param_spelling, output_line_command, cpp_scan_buffer,
7954 cpp_scan_buffer_nooutput, cpp_printf, cpp_output_list): Moved
7956 * Makefile.in: Add cppoutput.c.
7957 * po/POTFILES.in: Add cppoutput.c.
7959 2000-09-25 Richard Henderson <rth@cygnus.com>
7961 * config/ia64/ia64.c (ia64_print_operand): Define 'e' as 64-n.
7962 * config/ia64/ia64.md (rotrsi3): Allow variable rotates; don't
7963 split until after reload.
7964 (rotlsi3, rotldi3): New.
7966 2000-09-25 Gabriel Dos Reis <gdr@codesourcery.com>
7968 * diagnostic.c (output_last_position): Define.
7969 (set_real_maximum_length): Tweek.
7970 * diagnostic.h (output_last_position): Declare.
7972 2000-09-25 Kazu Hirata <kazu@hxi.com>
7974 * config/i386/i386.c: Fix formatting.
7976 2000-09-24 Alan Lehotsky <alehotsky@cygnus.com>
7978 * emit-rtl-c (gen_lowpart_common): Accept non-paradoxical SUBREG when
7979 UNITS_PER_WORD is small.
7981 2000-09-25 Joseph S. Myers <jsm28@cam.ac.uk>
7983 * c-common.c (format_char_info): Add flags2; update comments.
7984 (print_char_table, scan_char_table, time_char_table): Split some
7985 flags out into flags2.
7986 (check_format_info): Use flags2 for those flags, for identifying
7987 the initial character of a scanf scanset, and for identifying
7988 printf formats where the '0' flag is ignored with precision.
7990 2000-09-25 Hans-Peter Nilsson <hp@axis.com>
7992 Changes below marked "here" add TABs on either or both sides,
7993 covering start of line, up to any operand for all noted .*ASM.*_OP
7994 definitions. All callers changed.
7995 * tm.texi: Make documented *_ASM.*_OP:s include spacing
7996 (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, SHARED_SECTION_ASM_OP,
7997 BSS_SECTION_ASM_OP, SHARED_BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
7998 ASM_BYTE_OP, FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
7999 ASM_STABS_OP, ASM_STABD_OP, ASM_STABN_OP).
8000 Fix typos in description for LONG_LONG_TYPE_SIZE and
8001 FINI_SECTION_ASM_OP.
8002 * crtstuff.c (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Explain
8003 why these defaults don't have leading spacing.
8004 * dbxout.c (ASM_STABS_OP, ASM_STABN_OP): Here.
8005 * dwarf2out.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8006 UNALIGNED_DOUBLE_INT_ASM_OP, SECTION_ASM_OP, ASM_BYTE_OP): Here.
8007 * dwarfout.c (FILE_ASM_OP, VERSION_ASM_OP,
8008 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP, ASM_BYTE_OP,
8009 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP): Here.
8010 * defaults.h (ASM_STABD_OP, EH_FRAME_SECTION_ASM_OP): Here.
8011 * varasm.c (ASM_STABS_OP): Here.
8012 * xcoffout.h (ASM_STABS_OP): Here.
8013 * config/elfos.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
8014 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
8015 INT_ASM_OP, ASCII_DATA_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP,
8016 STRING_ASM_OP): Here.
8017 * config/freebsd.h (IDENT_ASM_OP): Here.
8018 * config/linux-aout.h (SET_ASM_OP): Here.
8019 * config/linux.h (SET_ASM_OP): Here.
8020 * config/lynx.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8022 * config/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
8023 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP, ALIGN_ASM_OP): Here.
8024 * config/openbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP): Here.
8025 * config/psos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8027 * config/ptx4.h (IDENT_ASM_OP, ASM_BYTE_OP, SET_ASM_OP,
8028 SKIP_ASM_OP, ALIGN_ASM_OP, COMMON_ASM_OP, LOCAL_ASM_OP,
8029 INT_ASM_OP, ASCII_DATA_ASM_OP, CONST_SECTION_ASM_OP,
8030 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
8031 FINI_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP STRING_ASM_OP): Here.
8032 * config/svr3.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8033 CONST_SECTION_ASM_OP, ASM_BYTE_OP): Here.
8034 * config/a29k/udi.h (INT_ASM_OP): Here.
8035 * config/alpha/alpha-interix.h (CONST_SECTION_ASM_OP,
8036 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
8038 * config/alpha/alpha.h (TEXT_SECTION_ASM_OP,
8039 READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8040 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8041 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_STABS_OP, ASM_STABN_OP,
8042 ASM_STABD_OP): Here.
8043 * config/alpha/elf.h (IDENT_ASM_OP, SKIP_ASM_OP, ALIGN_ASM_OP,
8044 COMMON_ASM_OP, INT_ASM_OP, ASCII_DATA_ASM_OP,
8045 CONST_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8046 BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP,
8047 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, TYPE_ASM_OP,
8048 SIZE_ASM_OP, STRING_ASM_OP): Here.
8049 * config/alpha/vms.h (LINK_SECTION_ASM_OP,
8050 READONLY_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP,
8051 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, COMMON_ASM_OP): Here.
8052 * config/arc/arc.h (ASM_BYTE_OP, SET_ASM_OP): Here.
8053 (PUSHSECTION_ASM_OP): Define this, not PUSHSECTION_FORMAT.
8054 * config/arm/aof.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP):
8056 * config/arm/aout.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8057 BSS_SECTION_ASM_OP, SET_ASM_OP): Here.
8058 * config/arm/coff.h (INT_ASM_OP): Here.
8059 * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Here.
8060 * config/arm/elf.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP): Here.
8061 * config/arm/linux-elf.h (IDENT_ASM_OP, CONST_SECTION_ASM_OP,
8062 INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Here.
8063 * config/arm/unknown-elf.h (UNALIGNED_WORD_ASM_OP): Here.
8064 * config/avr/avr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8065 ASM_BYTE_OP, TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP,
8066 STRING_ASM_OP): Here. Update documentation copy in comments.
8067 * config/c4x/c4x.h (ASM_STABS_OP, BSS_SECTION_ASM_OP): Here.
8068 * config/clipper/clipper.h (TEXT_SECTION_ASM_OP,
8069 DATA_SECTION_ASM_OP): Here.
8070 * config/clipper/clix.h (BSS_SECTION_ASM_OP, INIT_SECTION_ASM_OP):
8072 * config/convex/convex.h (TEXT_SECTION_ASM_OP,
8073 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
8074 * config/d30v/d30v.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8075 BSS_SECTION_ASM_OP): Here.
8076 * config/fr30/fr30.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8077 BSS_SECTION_ASM_OP): Here.
8078 * config/fx80/fx80.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8080 * config/gmicro/gmicro.h (TEXT_SECTION_ASM_OP,
8081 DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Here.
8082 * config/h8300/h8300.h (ASM_WORD_OP): Here.
8083 * config/i370/i370.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8084 BSS_SECTION_ASM_OP): Here.
8085 * config/i386/aix386.h (INIT_SECTION_ASM_OP): Here.
8086 * config/i386/bsd.h (ASM_BYTE_OP): Here.
8087 * config/i386/cygwin.h (SET_ASM_OP, INT_ASM_OP): Here.
8088 * config/i386/dgux.h (CONST_SECTION_ASM_OP): Here.
8089 * config/i386/djgpp.h (IDENT_ASM_OP, INT_ASM_OP, SET_ASM_OP):
8091 * config/i386/freebsd-elf.h (SET_ASM_OP): Here.
8092 * config/i386/freebsd.h (TYPE_ASM_OP, SIZE_ASM_OP, INT_ASM_OP):
8094 * config/i386/i386-coff.h (CTORS_SECTION_ASM_OP,
8095 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8096 * config/i386/i386-interix.h (STRING_ASM_OP, CONST_SECTION_ASM_OP,
8097 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP,
8099 * config/i386/i386elf.h (BSS_SECTION_ASM_OP): Here.
8100 * config/i386/netbsd.h (INT_ASM_OP): Here.
8101 * config/i386/openbsd.h (INT_ASM_OP): Here.
8102 * config/i386/osfrose.h (TYPE_ASM_OP, SIZE_ASM_OP, SET_ASM_OP,
8103 IDENT_ASM_OP): Here.
8104 * config/i386/sco5.h (ALIGN_ASM_OP, ASCII_DATA_ASM_OP,
8105 ASM_BYTE_OP, IDENT_ASM_OP, COMMON_ASM_OP, SET_ASM_OP,
8106 LOCAL_ASM_OP, INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, STRING_ASM_OP,
8107 SKIP_ASM_OP, GLOBAL_ASM_OP): Here.
8108 * config/i386/seq-sysv3.h (SHARED_SECTION_ASM_OP,
8109 SHARED_BSS_SECTION_ASM_OP): Here.
8110 * config/i386/sequent.h (SHARED_SECTION_ASM_OP): Here.
8111 * config/i386/sun386.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8112 DATA_SECTION_ASM_OP): Here.
8113 * config/i386/svr3gas.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8114 CONST_SECTION_ASM_OP): Here.
8115 * config/i386/sysv3.h (INIT_SECTION_ASM_OP): Here.
8116 * config/i386/unix.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8117 BSS_SECTION_ASM_OP): Here.
8118 * config/i860/bsd-gas.h (ASCII_DATA_ASM_OP): Here.
8119 * config/i860/bsd.h (ASCII_DATA_ASM_OP): Here.
8120 * config/i860/fx2800.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP,
8121 BSS_ASM_OP): Here, but use trailing spaces.
8122 * config/i860/i860.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8123 DATA_SECTION_ASM_OP): Here.
8124 * config/i860/paragon.h (ASCII_DATA_ASM_OP, BSS_SECTION_ASM_OP):
8126 * config/i860/sysv3.h (ASCII_DATA_ASM_OP, CTORS_SECTION_ASM_OP,
8127 DTORS_SECTION_ASM_OP, TDESC_SECTION_ASM_OP): Here.
8128 * config/i860/sysv4.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8129 TDESC_SECTION_ASM_OP): Here.
8130 * config/i960/i960-coff.h (CTORS_SECTION_ASM_OP,
8131 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8132 * config/i960/i960.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8134 * config/ia64/ia64.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8135 BSS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP,
8136 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8137 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
8138 * config/ia64/sysv4.h (ASM_BYTE_OP, STRING_ASM_OP, SKIP_ASM_OP,
8139 COMMON_ASM_OP, ASCII_DATA_ASM_OP, INIT_SECTION_ASM_OP,
8140 FINI_SECTION_ASM_OP, CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8141 SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Here.
8142 * config/m32r/m32r.h (SCOMMON_ASM_OP): Here.
8143 * config/m68hc11/m68hc11.h (GLOBAL_ASM_OP): Here.
8144 * config/m68k/auxas.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
8145 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
8147 * config/m68k/coff.h (BSS_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
8148 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8149 * config/m68k/crds.h (BSS_SECTION_ASM_OP): Here.
8150 * config/m68k/dpx2.h (ASM_BYTE_OP, GLOBAL_ASM_OP): Here.
8151 * config/m68k/hp320.h (ASCII_DATA_ASM_OP, GLOBAL_ASM_OP): Here.
8152 * config/m68k/linux.h (BSS_SECTION_ASM_OP): Here.
8153 * config/m68k/lynx.h (BSS_SECTION_ASM_OP): Here.
8154 * config/m68k/m68k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8155 GLOBAL_ASM_OP): Here.
8156 * config/m68k/m68kelf.h (SWBEG_ASM_OP, BSS_ASM_OP,
8157 BSS_SECTION_ASM_OP): Here.
8158 * config/m68k/m68kv4.h (BSS_ASM_OP): Here.
8159 * config/m68k/mot3300.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8160 ASCII_DATA_ASM_OP, SET_ASM_OP, CTORS_SECTION_ASM_OP,
8161 DTORS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_BYTE_OP, ALIGN_ASM_OP,
8163 * config/m68k/newsgas.h (SET_ASM_OP): Here.
8164 * config/m68k/rtemself.h (INIT_SECTION_ASM_OP,
8165 FINI_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
8166 * config/m68k/sgs.h (BYTE_ASM_OP, WORD_ASM_OP, LONG_ASM_OP,
8167 SPACE_ASM_OP, ALIGN_ASM_OP, GLOBAL_ASM_OP, SWBEG_ASM_OP,
8168 SET_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here,
8169 but use trailing spaces.
8170 * config/m68k/tower-as.h (TEXT_SECTION_ASM_OP,
8171 DATA_SECTION_ASM_OP, GLOBAL_ASM_OP, INIT_SECTION_ASM_OP,
8172 FINI_SECTION_ASM_OP, CONST_SECTION_ASM_OP, BSS_SECTION_ASM_OP):
8174 * config/m88k/dgux.h (FINI_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
8175 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
8176 * config/m88k/m88k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8177 CONST_SECTION_ASM_OP, TDESC_SECTION_ASM_OP, CTORS_SECTION_ASM_OP,
8178 DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8179 IDENT_ASM_OP, FILE_ASM_OP, SECTION_ASM_OP, SET_ASM_OP,
8180 GLOBAL_ASM_OP, ALIGN_ASM_OP, SKIP_ASM_OP, COMMON_ASM_OP,
8181 BSS_ASM_OP, FLOAT_ASM_OP, DOUBLE_ASM_OP, INT_ASM_OP, SHORT_ASM_OP,
8182 CHAR_ASM_OP, ASCII_DATA_ASM_OP, SBSS_ASM_OP, SCOMM_ASM_OP,
8183 SDATA_SECTION_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP, INTERNAL_ASM_OP,
8184 VERSION_ASM_OP, UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8185 PUSHSECTION_ASM_OP, POPSECTION_ASM_OP, REQUIRES_88110_ASM_OP,
8187 * config/m88k/openbsd.h (SET_ASM_OP): Here.
8188 * config/m88k/sysv4.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8189 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Here.
8190 * config/mcore/mcore-elf.h (UNALIGNED_INT_ASM_OP,
8191 UNALIGNED_SHORT_ASM_OP, CTORS_SECTION_ASM_OP,
8192 DTORS_SECTION_ASM_OP): Here.
8193 * config/mcore/mcore-pe.h (CTORS_SECTION_ASM_OP,
8194 DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8195 * config/mips/elf.h (TYPE_ASM_OP, SIZE_ASM_OP,
8196 BSS_SECTION_ASM_OP): Here.
8197 * config/mips/elf64.h (TYPE_ASM_OP, SIZE_ASM_OP): Here.
8198 * config/mips/iris5.h (ABICALLS_ASM_OP): Here.
8199 * config/mips/iris6.h (TYPE_ASM_OP, SIZE_ASM_OP,
8200 POPSECTION_ASM_OP, BSS_SECTION_ASM_OP, CONST_SECTION_ASM_OP_32,
8201 CONST_SECTION_ASM_OP_64, CTORS_SECTION_ASM_OP,
8202 DTORS_SECTION_ASM_OP, EH_FRAME_SECTION_ASM_OP): Here.
8203 * config/mips/mips.c (ABICALLS_ASM_OP): Here.
8204 * config/mips/mips.h (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP):
8206 * config/mips/netbsd.h (TYPE_ASM_OP, SIZE_ASM_OP, WEAK_ASM_OP):
8208 * config/mips/osfrose.h (SET_ASM_OP): Here.
8209 * config/mips/sni-svr4.h (ABICALLS_ASM_OP): Here.
8210 * config/ns32k/encore.h (SHARED_SECTION_ASM_OP): Here.
8211 * config/ns32k/merlin.h (SHARED_SECTION_ASM_OP): Here.
8212 * config/ns32k/ns32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8214 * config/ns32k/sequent.h (SHARED_SECTION_ASM_OP): Here.
8215 * config/ns32k/tek6000.h (SHARED_SECTION_ASM_OP): Here.
8216 * config/pa/pa-64.h (INT_ASM_OP, TYPE_ASM_OP, SIZE_ASM_OP): Here.
8217 * config/pa/pa.h (ASM_STABS_OP, ASM_STABN_OP): Here.
8218 * config/pj/pj.h (SET_ASM_OP, BSS_SECTION_ASM_OP): Here.
8219 * config/pyr/pyr.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8221 * config/romp/romp.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8223 * config/rs6000/rs6000.h (SET_ASM_OP): Here.
8224 * config/rs6000/sol2.h (ASM_STABN_OP): Here.
8225 * config/rs6000/sysv4.h (SKIP_ASM_OP, LOCAL_ASM_OP, LCOMM_ASM_OP):
8227 * config/sh/sh.h (SET_ASM_OP, BSS_SECTION_ASM_OP,
8228 UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Here.
8229 * config/sparc/linux.h (COMMON_ASM_OP): Here.
8230 * config/sparc/linux64.h (COMMON_ASM_OP,
8231 UNALIGNED_DOUBLE_INT_ASM_OP): Here.
8232 * config/sparc/litecoff.h (BSS_SECTION_ASM_OP,
8233 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INT_ASM_OP): Here.
8234 * config/sparc/lynx.h (BSS_SECTION_ASM_OP): Here.
8235 * config/sparc/pbd.h (ASM_INT_OP): Here.
8236 * config/sparc/sp64-elf.h (UNALIGNED_LONGLONG_ASM_OP): Here.
8237 * config/sparc/sparc.h (ASM_BYTE_OP, TEXT_SECTION_ASM_OP,
8238 DATA_SECTION_ASM_OP, IDENT_ASM_OP): Here.
8239 * config/sparc/sun4gas.h (UNALIGNED_DOUBLE_INT_ASM_OP,
8240 UNALIGNED_INT_ASM_OP, UNALIGNED_SHORT_ASM_OP): Here.
8241 * config/sparc/sysv4.h (STRING_ASM_OP, COMMON_ASM_OP, SKIP_ASM_OP,
8242 UNALIGNED_DOUBLE_INT_ASM_OP, UNALIGNED_INT_ASM_OP,
8243 UNALIGNED_SHORT_ASM_OP, PUSHSECTION_ASM_OP, POPSECTION_ASM_OP,
8244 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
8245 CONST_SECTION_ASM_OP, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
8246 CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP,
8247 EH_FRAME_SECTION_ASM_OP): Here.
8248 * config/sparc/vxsim.h (COMMON_ASM_OP): Here.
8249 * config/spur/spur.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8251 * config/tahoe/tahoe.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8253 * config/v850/v850.h (SCOMMON_ASM_OP, ZCOMMON_ASM_OP,
8254 TCOMMON_ASM_OP): Here.
8255 * config/vax/vax.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP):
8257 * config/we32k/we32k.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
8260 2000-09-25 Richard Henderson <rth@cygnus.com>
8262 * expmed.c (store_bit_field): Adjust last change to not consider
8263 any word-sized field naturally aligned.
8265 2000-09-24 Richard Henderson <rth@cygnus.com>
8267 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
8268 TFmode unordered compares properly. Revalidate integer compare
8270 (alpha_emit_setcc): New.
8271 (alpha_emit_conditional_move): Revalidate integer compare operands.
8272 * config/alpha/alpha-protos.h: Update.
8273 * config/alpha/alpha.md (cmpdi): Allow general operands.
8274 (sne): Use alpha_emit_setcc.
8275 (seq, slt, sle, sgt, sge, sltu, sleu, sgtu, sgeu): Likewise.
8276 (sunordered, sordered): New.
8278 2000-09-24 Richard Henderson <rth@cygnus.com>
8280 * config/ia64/ia64-protos.h: Update.
8281 * config/ia64/ia64.c (call_multiple_values_operation): Remove.
8282 (ia64_expand_call): New.
8283 (ia64_expand_prologue): Emit an alloc if we need extra input
8285 (ia64_expand_epilogue): New arg sibcall_p; don't emit the return
8286 instruction if true.
8287 (struct reg_flags): Add is_sibcall.
8288 (rtx_needs_barrier): A sibcall does not use CFM et al. Ignore USEs.
8289 (emit_insn_group_barriers): Set flags.is_sibcall. Remove hacks
8290 for CODE_FOR_gr_spill_internal/CODE_FOR_gr_restore_internal.
8291 * config/ia64/ia64.h (PREDICATE_CODES): Update.
8292 * config/ia64/ia64.md (call): Use ia64_expand_call.
8293 (call_value): Likewise.
8294 (sibcall, sibcall_value): New.
8295 (call patterns): Remove extra expanders; tidy.
8296 (sibcall_epilogue): New.
8297 (set_bsp): Remove the extra USE. Put the operand inside the UNSPEC.
8299 2000-09-24 Richard Henderson <rth@cygnus.com>
8301 * emit-rtl.c (gen_lowpart_common): Use trunc_int_for_mode.
8303 * sibcall.c (skip_pic_restore): New.
8304 (identify_call_return_value): Use it.
8306 2000-09-24 Mark Mitchell <mark@codesourcery.com>
8308 * c-tree.texi: Moved here from cp/ir.texi. Documented nested
8309 functions. Generalize to handle both C and C++.
8310 * Makefile.in (c-tree.info): New target.
8311 (info): Add c-tree.info.
8313 Sun Sep 24 09:15:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8315 * expr.c (store_field): If BITSIZE is negative, use size of type.
8316 (expand_expr, case COMPONENT_EXPR): Likewise.
8318 Sun 24-Sep-2000 11:40:23 BST Neil Booth <NeilB@earthling.net>
8320 * cpplex.c: Update TODO comment.
8321 * cpplib.c (do_error, do_warning): Merge common code of
8322 do_error and do_warning into do_diagnostic. Use it.
8323 (do_diagnostic): New function.
8324 * cpplib.h: Fix comment typo.
8326 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
8328 * c-common.c (check_format_info): Warn for a wide character string
8329 used as a non-wide format argument.
8331 2000-09-24 Joseph S. Myers <jsm28@cam.ac.uk>
8333 * builtins.def (BUILT_IN_LLABS): Add.
8334 * builtins.c (expand_builtin): Also abort on BUILT_IN_LLABS.
8335 * c-common.c (c_common_nodes_builtins): Create builtin functions
8336 __builtin_llabs, and plain llabs unless no_nonansi_builtins
8337 outside of C99 mode.
8338 (expand_tree_builtin): Handle BUILT_IN_LLABS.
8340 Sat 23-Sep-2000 22:39:18 BST Neil Booth <NeilB@earthling.net>
8342 * cpphash.h (CPP_RESERVE, CPP_PUTS_Q, CPP_PUTS, CPP_PUTC_Q,
8343 CPP_PUTC, DUMMY_TOKEN, NO_DUMMY_TOKEN): Delete.
8344 * cpplex.c (_cpp_expand_token_space, _cpp_init_toklist,
8345 _cpp_free_toklist): No need to worry about extra dummy token
8346 at the start of token lists any more.
8347 (trigraph_ok): Only warn outside comments.
8348 (skip_block_comment): Set and clear lexing_comment.
8349 (skip_line_comment): Take a cpp_reader not cpp_buffer.
8350 Set and clear lexing_comment.
8351 (parse_number): Handle leading '.' indicated by pfile->seen_dot.
8352 (check_long_token): Delete.
8353 (lex_percent, lex_dot): New subroutines of lex_token to
8354 handle lexing of '.' and '%' without lookback.
8355 (lex_token): Use lex_dot and lex_percent.
8356 (lex_line): Don't check for LIST_OFFSET.
8357 (_cpp_init_input_buffer): Update for new _cpp_init_toklist.
8358 * cpplib.c (_cpp_parse_assertion): Similarly.
8359 (cpp_push_buffer): Initialize extra_char.
8360 * cpplib.h (LIST_OFFSET): Delete.
8361 (struct cpp_buffer): New member extra_char.
8362 (struct lexer_state): New members lexing_comment and seen_dot.
8364 2000-09-23 Jason Merrill <jason@redhat.com>
8366 * config/rs6000/x-aix41 (CLIB): Define here.
8367 * config/rs6000/t-aix43: Not here.
8368 * config/rs6000/t-aix41: Or here. Remove.
8369 * configure.in: Don't use it.
8371 2000-09-22 Jason Merrill <jason@redhat.com>
8373 * configure.in: Add test for HAVE_LD_DWARF_LINKONCE.
8374 * toplev.c: Use it to initialize flag_eliminate_dwarf2dups.
8375 * config.in: Regenerate.
8377 * configure.in: Fix checks for assembler features when using a
8378 one-tree assembler that has not yet been built.
8379 Fix --disable-threads.
8381 2000-09-19 Geoff Keating <geoffk@cygnus.com>
8383 * stmt.c (expand_asm_operands): Allow # in constraints.
8385 2000-09-22 Jason Merrill <jason@redhat.com>
8387 * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
8389 * dbxout.c (dbxout_symbol_name): Just use DECL_NAME for
8390 function-local names.
8392 2000-09-22 Brad Lucier <lucier@math.purdue.edu>
8393 Mark Mitchell <mark@codesourcery.com>
8395 * toplev.c (warn_disabled_optimization): Declare new warning flag.
8396 * flags.h (warn_disabled_optimization): Add it here.
8397 * gcse.c (gcse_main): Add warning when disabled.
8398 * invoke.texi: Document -Wdisabled-optimization.
8400 2000-09-21 Jason Merrill <jason@redhat.com>
8402 * dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.
8404 * dwarf2out.c (tree_add_const_value_attribute): New fn.
8405 (gen_variable_die): Call it for non-definitions.
8407 * dwarf2out.c (die_struct): Add die_mark field.
8408 (mark_dies, unmark_dies): New fns.
8409 (clear_die_sizes): Remove.
8410 (print_die): Check die_symbol rather than die_offset.
8411 (build_abbrev_table, output_pubnames, output_aranges): Check
8412 die_mark rather than die_offset.
8413 (output_comp_unit): Move calc_die_sizes after build_abbrev_table.
8416 Thu 21-Sep-2000 18:19:05 BST Neil Booth <NeilB@earthling.net>
8418 * cppfiles.c (lookup_include_file): Rename to open_file.
8419 Always create a splay tree value, even on syscall failures.
8420 Negative entries indicated by fd == -2.
8421 Re-open files closed in the meantime.
8422 (_cpp_fake_include): Create a negative splay tree entry.
8423 (find_include_file, cpp_read_file): Update for function name
8425 * gcc.gd/cpp/mi4.c: Testcase.
8427 2000-09-21 Nick Clifton <nickc@redhat.com>
8429 * config/arm/t-arm-elf (MULTILIB_DIRNAMES): Enable multilibs for
8430 ARM and THUMB modes.
8432 * config/mcore/mcore.c: Fix compile time warnings.
8433 * config/mcore/mcore-protos.h: Fix compile time warnings.
8435 2000-09-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
8437 * configure.in: Correct test of gcc_cv_glibc.
8438 * configure: Rebuilt.
8439 * config.in: Rebuilt.
8441 2000-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8443 * builtins.c (expand_builtin_fputs): Also expand when length!=1.
8444 (expand_builtin): Handle BUILT_IN_FWRITE.
8446 * builtins.def (BUILT_IN_FWRITE): New entry.
8448 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_fwrite.
8450 Wed Sep 20 15:39:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8452 * gcc.c (modify_target): New variable and struct.
8453 (process_command): Handle MODIFY_TARGET_NAME.
8454 * tm.texi (MODIFY_TARGET_NAME): Add documentation for new macro.
8455 * config/pa/pa.h (MODIFY_TARGET_NAME): New macro.
8457 * c-decl.c (finish_decl): Add else's to avoid referencing
8458 TYPE_DOMAIN of an ERROR_MARK.
8460 Wed Sep 20 21:44:31 2000 Denis Chertykov <denisc@overta.ru>
8462 * config/avr/avr.c (adjust_insn_length): Adjust lengths of
8465 2000-09-19 Marek Michalkiewicz <marekm@linux.org.pl>
8467 * config/avr/avr.md (neghi2): Add alternative for input and output
8468 operands in different registers, as in negsi2.
8469 (*negsi2): Remove '*' from the name. Use "movw" if available.
8471 2000-09-19 Jim Wilson <wilson@cygnus.com>
8473 * config/ia64/crtbegin.asm (__dso_handle): Delete use of
8474 HAVE_GAS_HIDDEN macro.
8476 Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
8478 * cpplex.c (lex_line): Drop the EOF token for unknown
8479 directives in assembler.
8481 2000-09-19 David Edelsohn <edelsohn@gnu.org>
8483 * configure.in: Allow enable_threads_flag value of "aix". Define
8484 thread_file as "aix" for AIX 4.3 and above.
8485 * configure: Regenerated.
8487 * gthr-aix.h: New file.
8489 * rs6000/t-aix43: Replace soft-float multilib with pthread.
8490 Remove 403 processor multilib match. Fix rios2 processor multilib
8493 * rs6000/aix.h (ASM_DECLARE_FUNCTION_NAME): Use function_section
8494 to return to appropriate csect.
8496 2000-09-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8498 * builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
8500 (expand_builtin_fputs): Set `target' parameter for `expand_expr'.
8501 (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and
8504 * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF):
8507 * c-common.c (init_function_format_info): Handle __builtin_printf.
8508 Set `check_function_format_ptr'.
8509 (c_common_nodes_and_builtins): Set `puts_ftype' and
8510 `printf_ftype'. Declare __builtin_putchar, __builtin_puts,
8511 __builtin_printf and printf.
8513 * tree.c, tree.h (check_function_format_ptr): Declare.
8515 Tue 19-Sep-2000 18:26:57 BST Neil Booth <NeilB@earthling.net>
8517 * cppfiles.c (read_include_file): Take no special action for
8520 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk>
8522 * final.c (insn_current_reference_address): Use INSN_SHUID of seq
8523 rather than that of branch.
8524 (shorten_branches): Don't increment insn_current_address twice.
8526 Undo most of the Wed Jan 27 23:39:53 1999 patch:
8527 * loop.h (struct induction): Delete members derived, ix and last_use.
8528 (struct loop_ivs): Delete members first_increment_giv and
8530 * loop.c (verify_dominator, find_life_end, cmp_recombine_givs_stats,
8531 recombine_givs): Delete functions.
8532 (find_and_verify_loops): Don't initialize cont_dominator.
8533 (strength_reduce): Lose code to try to find bivs that can be
8534 expressed as givs of another biv, and to convert biv increments
8536 Lose loop_scan_start variable, always use loop->scan_start.
8537 Don't call recombine_givs. Don't handle derived givs.
8538 (record_giv): Don't initialize derived and last_use fields.
8539 (biv_eliminiation_giv_has_0_offset): Lose code to handle derived
8541 * unroll.c (derived_regs): Delete static variable.
8542 (unroll_loop): Don't initialize it.
8543 (copy_loop_body): Lose code to handle derived givs.
8544 (find_splittable_givs): Don't check for givs made from biv
8546 Don't set derived_regs.
8548 Fix misapplied earlier patch:
8549 * config/sh/sh.md (floatsisf_ie): Reenable. Remove explicit reference
8551 (floatsisf2): Generate floatsisf_ie by default.
8552 (floatsisf_i4): Conditional on TARGET_SH4.
8554 (floatsisf2, floatsidf2, extendsfdf2): Also use reg_no_subreg_operand
8555 predicate for the expanders.
8557 2000-09-19 Richard Henderson <rth@cygnus.com>
8559 * config/i386/i386.h (CPP_CPU_SPEC): Define i586 and i686 symbols
8560 in addition to pentium and pentiumpro symbols.
8561 (CPP_CPU_DEFAULT_SPEC): Likewise.
8563 * c-typeck.c (c_expand_asm_operands): Restore the output tree
8566 * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
8567 if the tree has side effects.
8568 (warn_if_unused_value): Do not warn about void constructs.
8570 * c-decl.c (poplevel): Invoke warn_about_unused_variables.
8572 * unroll.c (copy_loop_body): Update LABEL_NUSES before
8573 calling invert_jump.
8575 2000-09-18 Geoff Keating <geoffk@cygnus.com>
8577 * combine.c (can_combine_p): Don't substitute an ASM_OPERANDS
8580 2000-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8582 * Makefile.in (c-common.o): Depend on diagnostic.h.
8584 * c-common.c: Include diagnostic.h.
8586 (status_warning): New function.
8587 (check_format_info, maybe_read_dollar_number, check_format_types,
8588 finish_dollar_format_checking, check_function_format): Accept a
8589 `status' parameter. All callers changed.
8591 * c-common.h (check_function_format): Accept a `status' parameter.
8593 * c-typeck.c: Update call to `check_function_format'.
8595 2000-09-18 Richard Henderson <rth@cygnus.com>
8597 * c-decl.c (c_expand_body): Call mark_varargs before
8598 expand_function_start.
8600 2000-09-18 Geoff Keating <geoffk@cygnus.com>
8602 * config/rs6000/eabi-cn.asm: Use /**/ to delimit comments, not #.
8603 * config/rs6000/eabi-ci.asm: Likewise.
8605 2000-09-18 Richard Henderson <rth@cygnus.com>
8607 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx
8610 2000-09-18 Jim Wilson <wilson@cygnus.com>
8612 * unroll.c (loop_iterations): Pass increment to extend_for_giv_value
8613 before passing it to fold_rtx_mult_add.
8615 * unroll.c (final_giv_value): Pass increment through
8616 extend_value_for_giv before passing it to emit_iv_add_mult.
8618 * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a
8619 paradoxical subreg, then directly substitute the replacement and
8622 Mon 18-Sep-2000 22:12:44 BST Neil Booth <NeilB@earthling.net>
8624 * cpp.texi: Update documentation, including some clarifications,
8625 the treatment of various newline combinations, and space between
8626 backslash and newline.
8628 Mon Sep 18 21:00:47 2000 J"orn Rennecke <amylaar@redhat.co.uk>
8630 * sdbout.c (PUT_SDB_DEF, PUT_SDB_TAG, PUT_SDB_EPILOGUE_END):
8631 Replace ASM_OUTPUT_LABELREF with assemble_name.
8633 Mon Sep 18 20:26:50 2000 J"orn Rennecke <amylaar@redhat.co.uk>
8635 * sh.c (addsubcosts): CONST is not cheap.
8636 (find_barrier): For Sh1, take alignment after jumps into account.
8638 2000-09-15 Andrew Haley <aph@redhat.com>
8640 * toplev.c (rest_of_compilation): Call purge_hard_subreg_sets to
8641 remove all SETs of SUBREGs of hard registers.
8642 * function.c (purge_hard_subreg_sets): New function.
8643 (purge_single_hard_subreg_set): New function.
8644 * rtl.h: (purge_hard_subreg_sets): New function.
8646 2000-09-18 Richard Henderson <rth@cygnus.com>
8648 * config/ia64/ia64-protos.h: Update.
8649 * config/ia64/ia64.c (signed_inequality_operator): New.
8650 (ia64_expand_compare): New.
8651 (ia64_register_move_cost): Handle PR_REGS moves.
8652 (ia64_secondary_reload_class): Require a GR when moving to a PR.
8653 (struct reg_write_state): Add written_by_and/or.
8654 (struct reg_flags): Add is_and/or.
8655 (rws_update): Set them.
8656 (rws_access_regno): Test them to allow parallel comparisons.
8657 (rtx_needs_barrier): Recognize parallel comparisons.
8658 (emit_insn_group_barriers): Set prev_insn after a call stop bit.
8659 Call recog_memoized; ignore pred_rel_mutex.
8660 (emit_predicate_relation_info): Don't call find_basic_blocks here.
8661 (ia64_reorg): Do it here instead.
8662 * config/ia64/ia64.h: s/CCmode/BImode/g
8663 (MODES_TIEABLE_P): Don't tie BImode.
8664 (PREFERRED_RELOAD_CLASS): Do not reload operations into AR regs.
8665 (CONST_COSTS): Pick sensible values for CONST_INT based on context.
8666 (RTX_COSTS): Make multiply 4 insns.
8667 (MEMORY_MOVE_COST): New.
8668 (PREDICATE_CODES): Update.
8669 * config/ia64/ia64.md: s/CCmode/BImode/g
8670 (movcci, movbi): New.
8671 (andbi3, andcmbi3, iorbi3, iorcmbi3, one_cmplbi2): New.
8672 (cmpsi_and_0, cmpsi_and_1, cmpsi_andnot_0, cmpsi_andnot_1): New.
8673 (cmpdi_and_0, cmpdi_and_1, cmpdi_andnot_0, cmpdi_andnot_1): New.
8674 (tbit_and_0, tbit_and_1, tbit_and_2, tbit_and_3): New.
8675 (cmpsi_or_0, cmpsi_or_1, cmpsi_orcm_0, cmpsi_orcm_1): New.
8676 (cmpdi_or_0, cmpdi_or_1, cmpdi_orcm_0, cmpdi_orcm_1): New.
8677 (tbit_or_0, tbit_or_1, tbit_or_2, tbit_or_3): New.
8678 (mulsi, muldi): Use xmpy not xma.
8680 (movcc, movcc_internal): Remove.
8681 (branch expanders): Use ia64_expand_compare.
8682 (setcc expanders): Likewise.
8683 (cmov insns): Use move_operand and ia64_move_ok.
8684 (pred_rel_mutex): Use unspec not unspec_volatile. Prevent the
8685 scheduler from moving it past a use.
8686 * config/ia64/build.hacks: Remove.
8688 Mon 18-Sep-2000 19:21:35 BST Neil Booth <NeilB@earthling.net>
8690 * cpphash.h (HASHSTEP): Take character rather than pointer
8692 (_cpp_check_directive, _cpp_check_linemarker): Update prototypes.
8694 * cpphash.c (cpp_loookup): Update for new HASHSTEP.
8696 * cpplex.c (auto_expand_name_space, trigraph_replace,
8697 backslash_start, handle_newline, parse_name, INIT_TOKEN_STR,
8698 IMMED_TOKEN, PREV_TOKEN_TYPE, PUSH_TOKEN, REVISE_TOKEN,
8699 BACKUP_TOKEN, BACKUP_TRIGRAPH, MIGHT_BE_DIRECTIVE,
8700 KNOWN_DIRECTIVE): Delete.
8702 (handle_newline, check_long_token, skip_escaped_newlines,
8703 unterminated): New functions.
8704 (ACCEPT_CHAR, SAVE_STATE, RESTORE_STATE): New macros.
8706 (parse_identifier): Was parse_name, new implementation.
8707 (skip_line_comment, skip_block_comment, skip_whitespace,
8708 parse_number, parse_string, trigraph_ok, save_comment,
8709 adjust_column, _cpp_get_line): New implementations.
8711 (lex_token): New function. Lexes a token at a time, looking
8712 forwards. Contains most of the guts of the old lex_line.
8713 (lex_line): New implementation, using lex_token to obtain
8715 (cpp_scan_buffer): Use the token's line, not the list's line.
8717 * cpplib.c (_cpp_check_directive, _cpp_check_linemarker):
8718 New implementations.
8719 (do_assert): Don't bother setting the answer's list's line.
8720 (cpp_push_buffer): Initialise new pfile and read_ahead members
8721 of struct cpp_buffer.
8723 * cpplib.h (cppchar_t): New typedef.
8724 (struct cpp_buffer): read_ahead, pfile and col_adjust are
8726 (struct lexer_state): New structure that determines the state
8727 and behaviour of the lexer.
8728 (IN_DIRECTIVE, KNOWN_DIRECTIVE): New macros.
8729 (struct cpp_reader): New member "state". Rename
8730 multiline_string_line and multiline_string_column. Delete
8731 col_adjust, in_lex_line members.
8732 (CPP_BUF_COLUMN): Update.
8734 2000-09-18 Richard Henderson <rth@cygnus.com>
8736 * combine.c (simplify_comparison): Shift a NOT out of a single
8739 * combine.c (if_then_else_cond): Canonicalize BImode true to
8741 * explow.c (trunc_int_for_mode): Likewise.
8743 * combine.c (combine_simplify_rtx): Use gen_unary to distribute
8744 the NOT for De Morgan's rule.
8745 * simplify-rtx.c (simplify_unary_operation): Simplify a BImode NOT
8746 of a comparison to the reverse comparison.
8748 * combine.c (try_combine): Allow split to create a single insn.
8750 * machmode.def: Add BImode. Add a column for bitsize.
8751 * machmode.h (DEF_MACHMODE): Adjust for extra column.
8752 (GET_MODE_BITSIZE): Use it.
8753 * rtl.c (DEF_MACHMODE): Adjust for extra column.
8754 (mode_bitsize): New.
8755 (mode_mask_array): Use bitsize.
8756 * combine.c (combine_simplify_rtx): Require inner and outer
8757 modes to match on nonzero_bits optimizations.
8759 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
8761 * reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
8762 its entry in spill_reg_store.
8763 * config/sh/lib1funcs.ams (movstr_i4 functions): Always compile in.
8764 * sh.c (reg_no_subreg_operand): New function.
8765 * sh-protos.h (reg_no_subreg_operand): Declare it.
8766 * sh.h (PREDICATE_CODES): Add it.
8767 * sh.md (floatsisf2_i4, floatsidf2_i, extendsfdf2_i4): Use it for
8768 input operand that needs to be in fpul.
8769 (fix_truncsfsi2, fix_truncsfsi2_i4): Use register_operand for output.
8770 * sh.c (find_barrier): Take into account that machine_dependent_reorg
8771 might add new insns.
8773 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
8775 * config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as
8777 (sh_expand_epilogue): Take the PIC register into account when
8778 computing the frame size.
8780 * config/sh/sh.c (nonpic_symbol_mentioned_p): Check LABEL_REFs.
8781 * config/sh/sh.md (sym_label2reg, symPLT_label2reg): Protect
8782 LABEL_REFs with a PIC-safe unspec.
8784 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8786 * c-common.c (check_format_info): Properly save the argument
8787 number and parameter for $ operand number formats in case width
8788 and precision arguments are also used. Allow printf width and
8789 precision arguments to have operand numbers even if none was
8790 specified for the main format, since this is OK for %*.*m. Only
8791 object to missing $ operand number if the format used requires an
8794 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8796 * c-common.c (format_char_info): Add 'W' flag to comment.
8797 (print_char_table, scan_char_table): Use it.
8798 (check_format_info): Use the 'W' flag to determine whether a
8799 format argument is written into.
8801 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8803 * c-common.c (check_format_types): Reorganise and clean up,
8804 checking earlier for ERROR_MARKs and making cur_type into its
8805 TYPE_MAIN_VARIANT where convenient.
8807 2000-09-18 Joseph S. Myers <jsm28@cam.ac.uk>
8809 * gcc.c (cpp_options): Add specs for __STDC_HOSTED__.
8811 2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
8813 * optabs.c (emit_libcall_block): Set CONST_CALL_P for the call.
8815 * i386-protos.h (ix86_init_builtins, ix86_expand_builtin): Declare.
8816 * i386.c (struct builtin_description): New.
8817 (bdesc_comi, bdesc_2arg, bdesc_1arg): New arrays.
8818 (mmx_reg_operand): Declare MODE arg as unused.
8819 (ix86_expand_sse_comi, ix86_expand_sse_compare, safe_vector_operand,
8820 ix86_expand_unop1_builtin, ix86_expand_unop_builtin,
8821 ix86_expand_binop_builtin, ix86_expand_store_builtin,
8822 ix86_init_builtins, ix86_expand_builtin): New functions.
8823 * i386.h (ix86_builtins): New enumeration.
8824 (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): New macros.
8825 * i386.md (attr length_immediate): 0 for mmx/sse types.
8826 (attr prefix_0f): 1 for mmx/sse types.
8827 (setcc_2): Remove "*" so we get gen_setcc_2.
8828 (emms): Account for changed register numbering. Set "memory" attr
8830 (sfence): Set "memory" attr to unknown.
8832 2000-09-18 Andreas Jaeger <aj@suse.de>
8834 * configure.in: Define _GNU_SOURCE only when using the GNU C
8836 * configure: Regenerated.
8837 * config.in: Regenerated.
8839 2000-09-17 Mark Mitchell <mark@codesourcery.com>
8841 * cppinit.c (cpp_init): Don't use ANSI prototypes.
8842 * flow.c (flow_dump_loop): Likewise.
8843 (flow_loops_dump): Likewise.
8845 * c-typeck.c (c_start_case): Fix typo.
8847 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
8849 * c-decl.c (grokdeclarator): Don't give a warning about defaulting
8850 to int for plain complex which defaults to complex double. Do
8851 warn about defaulting to complex double if pedantic. Warn about
8852 complex integer types if pedantic. Warn about complex types if
8853 pedantic and not in C99 mode.
8854 * c-typeck.c (build_unary_op): If pedantic, warn about use of ~
8855 for complex conjugation.
8857 2000-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
8859 * contrib.texi: Update my entry.
8861 Sun Sep 17 18:48:32 2000 Denis Chertykov <denisc@overta.ru>
8863 * config/avr/avr.md (mcu_enhanced): New attribute.
8864 (mcu_mega): Likewise.
8865 (extendhisi2): Use mcu_enhanced.
8866 (zero_extendhisi2): Likewise.
8867 (call_insn): Use mcu_enhanced and mcu_mega.
8868 (call_value_insn): Likewise.
8869 (*sbrx_branch): Use mcu_mega.
8870 (*sbrx_and_branchsi): Likewise.
8871 (*sbrx_and_branchhi): Likewise.
8872 (*tablejump_lib): Likewise.
8874 Sun Sep 17 10:46:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8876 * alias.c (true_dependence): Allow non-unchanging read to conflict
8877 with unchanging write.
8879 * expr.c (store_constructor_field): Accept ALIAS_SET arg.
8880 (store_constructor): Pass alias_set to it.
8882 * c-decl.c (grokdeclarator): Reorder tests to avoid looking at
8883 TYPE_MAIN_VARIANT of ERROR_MARK.
8884 * c-lex.c (readescape): Avoid using printf syntax we don't recognize.
8886 * simplify-rtx.c (simplify_unary_operation): Add cases
8887 FLOAT_EXTEND and FLOAT_TRUNCATE to ones that return 0.
8889 2000-09-17 Bernd Schmidt <bernds@redhat.co.uk>
8891 * expr.h (emit_library_call, emit_library_call_value): Delete
8893 * rtl.h (enum libcall_type): New.
8894 (emit_library_call, emit_library_call_value): Change fn_type arg to
8895 be of type enum libcall_type.
8896 * calls.c: Likewise for the function definitions. Several callers
8897 throughout changed to use the new enumeration appropriately.
8898 (emit_library_call_value_1): Likewise. Put back code to make libcall
8899 blocks of equal form, but only use it for the two new higher
8902 2000-09-16 Mark Mitchell <mark@codesourcery.com>
8904 Convert the C front-end to use function-at-a-time mode.
8905 * c-common.h: Include splay-tree.h.
8906 (C_DECLARED_LABEL_FLAG): New macro.
8907 (struct language_function): Add x_scope_stmt_stack and
8908 x_function_name_declared_p.
8909 (RECHAIN_STMTS): Move definition.
8910 (lang_statment_code_p): Likewise.
8911 (lang_expand_stmt): Likewise.
8912 (lang_expand_decl_stmt): New variable.
8913 (lang_expand_function_end): Likewise.
8914 (current_scope_stmt_stack): New function.
8915 (add_decl_stmt): Likewise.
8916 (add_scope_stmt): Likewise.
8917 (mark_stmt_tree): Likewise.
8918 (struct c_lang_decl): New structure.
8919 (DECL_SAVED_TREE): Define.
8920 (c_mark_lang_decl): New function.
8921 (c_expand_start_cond): Change prototype.
8922 (c_finish_then): New function.
8923 (c_finish_else): Likewise.
8924 (current_function_name_declared): Remove.
8925 (set_current_function_name_declared): Likewise.
8926 (mark_c_language_function): Declare.
8927 (case_compare): Likewise.
8928 (c_add_case_label): Likewise.
8929 (c_expand_expr): Likewise.
8930 (c_safe_from_p): Likewise.
8931 * c-common.c (lang_expand_function_end): New variable.
8932 (struct if_elt): Add if_stmt.
8933 (c_expand_start_cond): Add the if-statement to the statement-tree,
8934 rather than generating RTL.
8935 (c_finish_then): New function.
8936 (c_expand_start_else): Don't generate RTL.
8937 (c_finish_else): New function.
8938 (c_expand_expr_stmt): Don't generate RTL.
8939 (statement_code_p): Add SCOPE_STMT.
8940 (case_compare): New function.
8941 (c_add_case_label): Likewise.
8942 (mark_stmt_tree): Likewise.
8943 (c_mark_lang_decl): Likewise.
8944 (mark_c_language_function): Likewise.
8945 (c_expand_expr): Likewise.
8946 (c_safe_from_p): Likewise.
8947 * c-decl.c (c_stmt_tree): New variable
8948 (c_scope_stmt_stack): Likewise.
8949 (c_function_name_declared_p): Likewise.
8950 (lang_expand_expr_stmt): Remove.
8951 (poplevel): Don't call output_inline_function for nested
8953 (pushdecl): Don't set DECL_CONTEXT for a local declaration of an
8955 (redeclaration_error_message): Change means of computing whether
8956 or not a function is nested.
8957 (lookup_label): Don't call label_rtx.
8958 (init_decl_processing): Add more GC roots.
8959 (start_decl): Add DECL_STMTs to the statement-tree, rather than
8960 calling rest_of_decl_compilation.
8961 (finish_decl): Don't call expand_decl.
8962 (store_parm_decls): Begin the statement-tree, but don't generate
8964 (finish_function): Tie off the statement-tree. Call c_expand_body
8966 (c_expand_body): New function.
8967 (push_c_function_context): Save more information.
8968 (pop_c_function_contxt): Likewise.
8969 (copy_lang_decl): Now that we use DECL_LANG_SPECIFIC, copy it.
8970 (lang_mark_tree): Mark it.
8971 (current_stmt_tree): Adjust.
8972 (current_scope_stmt_stack): New function.
8974 (set_current_name_declared): Likewise.
8975 (c_begin_compound_stmt): Define.
8976 (c_expand_decl_stmt): Likewise.
8977 * c-lang.c: Include rtl.h and expr.h.
8978 (lang_init): Set more language-specific hooks.
8979 * c-lex.c: Include expr.h.
8980 * c-parse.in: Changes throughout to add statements to the
8981 statement-tree, rather than generating RTL after every statement.
8982 * c-semantics.c (lang_expand_decl_stmt): Define.
8983 (add_decl_stmt): New function.
8984 (add_scope_stmt): Likewise.
8985 (finish_stmt_tree): Tweak.
8986 (genrtl_expr_stmt): Likewise.
8987 (genrtl_decl_stmt): Handle local labels, and call
8988 lang_expand_decl_stmt if required.
8989 (genrtl_for_stmt): Fix line-number handling.
8990 (genrtl_case_label): Handle cleanups.
8991 (genrtl_asm_stmt): Don't call combine_strings.
8992 (genrtl_compound_stmt): Simplify.
8993 (expand_stmt): Handle SCOPE_STMTs.
8994 * c-tree.h (struct lang_decl): New structure.
8995 (C_DECLARED_LABEL_FLAG): Remove.
8996 (c_begin_compound_stmt): Declare.
8997 (c_expand_decl_stmt): Likewise.
8998 (c_expand_start_case): Rename to c_start_case.
8999 (c_finish_case): New function.
9000 * c-typeck.c (start_init): Tweak setting of
9001 constructor_incremental.
9002 (c_expand_asm_operands): Tweak error-handling. Add to the
9004 (c_expand_return): Add to the statement-tree.
9005 (c_expand_start_case): Rename to ...
9006 (c_start_case): ... this.
9007 (struct c_switch): New type.
9008 (switch_stack): New variable.
9009 (do_case): Simplify.
9010 (c_finish_case): New function.
9011 * dependence.c: Include expr.h.
9012 (enum dependence_type): Change spelling of enumerals.
9013 (check_node_dependence): Adjust.
9014 * expr.h (lang_safe_from_p): Declare.
9015 (safe_from_p): Likewise.
9016 * expr.c (lang_safe_from_p): New variable.
9017 (safe_from_p): Give it external linkage. Use lang_safe_from_p.
9018 * stmt.c (expand_expr_stmt): Avoid clobberring of last_expr_type.
9019 * toplev.c (rest_of_decl_compilation): Robustify.
9020 * tree.c (contains_placeholder_p): Likewise.
9021 * Makefile.in: Update dependencies.
9022 * objc/objc-act.h: Adjust calculation of value for dummy_tree_code.
9023 * objc/objc-act.c: Include rtl.h, expr.h, and c-common.h.
9024 (objc_expand_function_end): New function.
9025 (finish_method_def): Use it.
9026 (init_objc): Initialize more language-specific hooks.
9027 * objc/Make-lang.in: Update dependencies.
9029 2000-09-16 Geoffrey Keating <geoffk@cygnus.com>
9031 * configure.in: Define macros that affect features before
9032 testing for features. Don't define _XOPEN_SOURCE.
9033 * configure: Regenerated.
9034 * config.in: Regenerated.
9036 Sat Sep 16 19:42:50 EDT 2000 John Wehle (john@feith.com)
9038 * rtlanal.c (rtx_varies_p): Volatile asms vary.
9039 (rtx_unstable_p): Restructure code. Volatile asms
9042 Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9044 * function.h (no_debugging_symbols): New field.
9045 * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy.
9046 Initialize no_debugging_symbols.
9047 (output_inline_function): Save and restore write_symbols and set from
9048 no_debugging_symbols.
9049 * toplev.c (rest_of_compilation): Call save_for_inline.
9050 * tree.h: Update comment.
9052 * stor-layout.c (place_field): Don't do anything if field or
9053 its type are ERROR_MARK.
9055 Sat Sep 16 19:14:00 2000 Laurynas Biveinis <lauras@softhome.net>
9057 * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
9058 (read_include_file): Ensure inc->mmaped is initialized.
9060 2000-09-16 Richard Henderson <rth@cygnus.com>
9062 * cppiles.c (purge_cache): Use PTR not caddr_t.
9064 2000-09-16 Hans-Peter Nilsson <hp@axis.com>
9066 * gcc.c: In description for %{<S}, say the option removed is -S.
9067 * invoke.texi (Spec Files): Ditto.
9069 2000-09-16 Andreas Jaeger <aj@suse.de>
9071 * configure.in: Always define _GNU_SOURCE to make interfaces
9072 visible that were hidden by only defining _GNU_SOURCE.
9073 * configure: Regenerated.
9075 Sat 16-Sep-2000 08:13:45 BST Neil Booth <NeilB@earthling.net>
9077 * cpplex.c (push_macro_context): Set an argument's level after
9078 calling parse_args. We could loop infinitely otherwise.
9080 2000-09-15 Tom Tromey <tromey@cygnus.com>
9082 * configure, config.in: Rebuilt.
9083 * configure.in: Check for iconv.h. Define _XOPEN_SOURCE.
9085 2000-09-15 Greg McGary <greg@mcgary.org>
9087 * cppmacro.c (check_trad_stringification): Check token
9088 text pointers against limit before dereferencing.
9090 2000-09-15 Joseph S. Myers <jsm28@cam.ac.uk>
9092 * c-common.c (format_wanted_type): New structure.
9093 (check_format_types): New function.
9094 (check_format_info): Pass all checking of types of format
9095 arguments, including width and precision arguments, to this new
9098 2000-09-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9100 * BUGS: Remove file.
9102 2000-09-15 Jakub Jelinek <jakub@redhat.com>
9104 * config/alpha/alpha.c (override_options): ev6 cache latencies
9105 from Richard Henderson. Don't allow -mmemory-latency=L0.
9107 * config/alpha/alpha.h (TARGET_CPU_EV5, TARGET_CPU_EV6): Define.
9108 (TARGET_OPTIONS): Add tune=.
9109 (alpha_tune_string): Declare.
9110 * config/alpha/alpha.c (override_options): Add cpu_table.
9111 Use alpha_cpu_string first to set both alpha_cpu and target_flags
9112 and then alpha_tune_string to set alpha_cpu only.
9113 Replace tests for PROCESSOR_EV* with TARGET_CPU_EV* tests.
9114 * config/alpha/elf.h (ASM_FILE_START): Likewise.
9115 * config/alpha/osf.h (ASM_FILE_START): Likewise.
9116 * config/alpha/openbsd.h (ASM_FILE_START): Likewise.
9118 Fri Sep 15 19:45:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
9120 * i386-protos.h (no_comparison_operator, uno_comparison_operator):
9122 (ix86_comparison_operator, ix86_cc_mode): Declare
9123 * i386.h (CCGC, CCGCO): New modes.
9124 (SELECT_CC_MODE): Move offline to ....
9125 * i386.c (ix86_cc_mode): .... here; use new modes.
9126 (ix86_comparison_operator): New.
9127 (fcmov_comparison_operator): Ensure proper mode.
9128 (put_condition_mode): More sanity checking.
9129 (ix86_match_ccmode): Handle new modes.
9130 (ix86_expand_fp_compare): GEU requires CCmode.
9131 (ix86_expand_strlensi_unroll_1): Use emit_cmp_and_jump_insn instead of
9133 * i386.md (cmp?i_ccz_1): Remove
9134 (cmp?i_ccno_1): Use ix86_match_ccmode.
9135 (cmp?i_minus_1): New.
9136 (cmpsi_1): New expander.
9137 (cmpqi_ext_1): Use match_ccmode
9138 (cmpqi_ext_3): New expander.
9139 (cmpqi_ext_3_insn): Rename from cmpqi_ext_3.
9140 (cmpqi_ext_4): Use match_ccmode.
9141 (add?i_?): Use match_ccmode.
9143 (test?i_ccz_1): Remove
9145 (testsi_ccno_1, testqi_ccz_1, testqi_ext_ccno_0): New expander.
9146 (testqi_ext_0): Use ix86_match_ccmode.
9147 (*xorqi_cc_ext_1): Use ix86_match_ccmode.
9148 (xorqi_cc_ext_1): New expander.
9149 (shift patterns): Use CCGOCmode for all shifts except for sar.
9150 (setcc_?, jcc_?, miv?icc_nic): Use ix86_comparison_operator.
9151 (setcc_3, jcc_3, miv?icc_c): Remove.
9153 2000-09-15 Will Cohen <wcohen@redhat.com>
9155 * dwarf2out.c (add_const_value_attribute): Changed array into a
9156 xmalloced object, so it exists after function exit.
9157 (free_AT): Added case for dw_val_class_float to free allocated
9160 2000-09-15 Kazu Hirata <kazu@hxi.com>
9162 * config/i386/i386.md: Fix a comment typo.
9163 * gcc.c: Fix formatting.
9165 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
9167 * optabs.c (emit_libcall_block): If target is a user variable,
9168 copy to a temporary first.
9169 * expr.c (convert_move): When generating a libcall, make a libcall
9171 * calls.c (emit_library_call_value_1): Don't create a libcall
9172 sequence here; our caller will in most cases do it.
9174 * sh.h (SECONDARY_INPUT_RELOAD_CLASS): Handle moving T, MACL or
9176 (SECONDARY_OUTPUT_RELOAD_CLASS): Similar case.
9177 * sh.md (reload_outsf): Generate recognizable patterns for
9179 (floatsisf2, floatsisf2_ie, floatsisf2_i4, fix_truncsfsi2,
9180 fix_truncsfsi2_i4, fixsfsi, floatsidf2, floatsidf2_i, fix_truncdfsi2,
9181 fix_truncdfsi2_i, extendsfdf2, extendsfdf2_i4, truncdfsf2,
9182 truncdfsf2_i4): Change not to use explicit references to fpul.
9183 (floatsisf2_ie): Remove USE of fpscr.
9184 (floatsisf2): Change default expansion to match this.
9185 (fix_truncsfsi2_i4_2, fix_truncdfsi2_i4 & splitters): Comment out
9188 2000-09-15 Richard Henderson <rth@cygnus.com>
9190 * expmed.c (store_bit_field): Consider naturally aligned
9191 memory for direct reference.
9193 2000-09-15 Richard Henderson <rth@cygnus.com>
9195 * config/alpha/alpha.c (alpha_expand_unaligned_load): Force all
9196 AND addresses into alias set 0.
9197 (alpha_expand_unaligned_store): Likewise.
9198 (alpha_expand_unaligned_load_words): Likewise.
9199 (alpha_expand_unaligned_store_words): Likewise.
9201 2000-09-15 Bernd Schmidt <bernds@redhat.co.uk>
9203 * config/sh/sh.h (CPP_SPEC): For -m4-nofpu, define __SH4_NOFPU__.
9204 * config/sh/lib1funcs.asm (movstr_i4): Also compile if __SH4_NOFPU__
9206 * config/mips/mips.c (mips_va_arg): Args passed by reference have a
9207 rsize of UNITS_PER_WORD.
9209 Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net>
9211 * cpplex.c (ON_REST_ARG): Correct the test.
9212 (maybe_paste_with_next): Duplicate a token that fail pasting,
9213 and clear its PASTE_LEFT flag, so that nested pasting attempts
9216 2000-09-14 Richard Henderson <rth@cygnus.com>
9218 * calls.c (precompute_register_parameters): Use COSTS_N_INSNS, not 2.
9219 * cse.c (rtx_cost): Likewise.
9220 * optabls.c (expand_binop): Likewise.
9221 (expand_twoval_binop, prepare_cmp_insn): Likewise.
9222 * regclass.c (copy_cost): Likewise.
9223 * reload1.c (reload_cse_move2add): Likewise.
9225 2000-09-14 Joseph S. Myers <jsm28@cam.ac.uk>
9227 * c-parse.in (reswords): Add _Complex.
9229 2000-09-14 J. David Anglin <dave@hiauly1.hia.nrc.ca>
9231 * gcc.1: Delete documentation for -undef preprocessor option.
9233 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
9235 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
9236 STARTFILE_SPEC, ENDFILE_SPEC): Remove define.
9237 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
9238 Remove undefine before config/elfos.h.
9239 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out.
9241 2000-09-14 Kazu Hirata <kazu@hxi.com>
9243 * invoke.texi (H8/300 Options): Add -ms2600.
9244 * config/h8300.c (h8300_init_once): Output an error when -ms2600
9245 is used without -ms.
9246 * config/h8300.h (TARGET_MAC): New.
9247 (TARGET_SWITCHES): Add -ms2600 and -mno-s2600.
9248 (CONDITIONA_REGISTER_USAGE): Disable the mac register on any
9249 machine other than H8/S2600.
9250 * config/h8300.md: Accept mac instructions on the H8/S2600 instead
9253 2000-09-14 Alexandre Oliva <aoliva@redhat.com>, Bernd Schmidt <bernds@redhat.co.uk>
9255 * reload.c (find_reloads_address_1): Generate reloads for auto_inc
9256 pseudos that refer to the original pseudos, not only to their
9257 equivalent memory locations.
9259 Thu Sep 14 12:10:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9261 * expr.c (expand_expr, case COMPONENT_EXPR): Copy memory attributes
9262 when making new MEM.
9264 * Makefile.in (LN): Remove duplicate definition.
9266 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9268 From Joern Rennecke:
9269 * local-alloc.c (update_equiv_regs): If there is no REG_EQUAL note
9270 on an insn and function_invariant_p returns nonzero for the source,
9271 add a REG_EQUAL note.
9273 Thu Sep 14 00:51:57 EDT 2000 John Wehle (john@feith.com)
9275 * alias.c (memrefs_conflict_p): An ADDRESSOF doesn't
9276 conflict with frame_pointer_rtx.
9278 2000-09-13 Kazu Hirata <kazu@hxi.com>
9280 * loop.c: Fix formatting.
9283 2000-09-13 Richard Henderson <rth@cygnus.com>
9285 * config/ia64/ia64.md (divsf3): New.
9286 (divsf3_internal_lat, divsf3_internal_thr): New.
9287 (divdf3, divdf3_internal_lat, divdf3_internal_thr): New.
9288 (divtf3, divtf3_internal_lat, divtf3_internal_thr): New.
9289 (adddf3_trunc, subdf3_trunc, muldf3_trunc): New.
9290 (madddf4_trunc, msubdf4_trunc, nmuldf3_trunc): New.
9291 (nmadddf4_alts, nmadddf4_trunc): New.
9292 (addtf3_truncsf, addtf3_truncdf, subtf3_truncsf): New.
9293 (subtf3_truncdf, multf3_truncsf, multf3_truncdf): New.
9294 (multf3_truncsf_alts, multf3_truncdf_alts): New.
9295 (maddtf4_truncsf, maddtf4_truncdf, maddtf4_alts_truncdf): New.
9296 (msubtf4_truncsf, msubtf4_truncdf, nmultf3_truncsf): New.
9297 (nmultf3_truncdf, nmaddtf4_truncsf, nmaddtf4_truncdf): New.
9298 (nmaddtf4_truncdf_alts): New.
9299 (recip_approx): Don't predicate.
9301 2000-09-13 Richard Henderson <rth@cygnus.com>
9303 * config/ia64/lib1funcs.asm (__divsf3): Protect fnorm.s with p6.
9305 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9307 * flags.h (flag_dump_rtl_in_asm): Declare.
9308 * toplev.c (flag_dump_rtl_in_asm): Define.
9309 (decode_d_option): Set flag_dump_rtl_in_asm and flag_print_asm_name
9310 if -dP is specified.
9311 * rtl.h (print_rtx_head): Declare.
9312 * print-rtl.c (print_rtx_head): Define.
9313 (print_rtx): Print the string pointed to by print_rtx_head
9314 at beginning of each dump line.
9315 (print_rtl): Likewise.
9316 (print_rtl_single): Likewise.
9317 * final.c (final_scan_insn): Dump the insn in the assembly
9319 * gcc.1: Document -dP option.
9320 * invoke.texi (Debugging Options): Likewise.
9322 2000-09-13 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9324 * md.texi (Machine Constraints): Document the 68HC11 constraints.
9325 * install.texi (Configurations): Document the 68HC11&68HC12 port.
9326 * invoke.texi (Option Summary, M68hc1x Options): Document the options.
9328 Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru>
9330 * config/avr/avr.h (ASSEMBLER_DIALECT): New macro declared.
9331 * config/avr/avr.md (*movstrqi_insn): Cleanup output template.
9332 (*clrstrqi): Likewise.
9333 (xorhi3,xorsi3,absqi2): Likewise.
9334 (one_cmplhi2,one_cmplsi2): Likewise.
9335 (addsi3): Two stupid constraint alternatives removed.
9336 (extendhisi2): Use `movw' for enhanced avr cores.
9337 (zero_extendhisi2): Likewise.
9339 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com)
9341 * alias.c (find_base_term): Use frame_pointer_rtx
9342 when handling an ADDRESSOF.
9344 * cse.c (canon_hash): Handle USE of BLKmode memory.
9345 (cse_insn): Outgoing arguments for a libcall don't
9346 affect any recorded expressions.
9348 2000-09-12 Tom Tromey <tromey@cygnus.com>
9350 * configure, config.in: Rebuilt.
9351 * configure.in: Check for iconv, nl_langinfo, langinfo.h.
9353 2000-09-12 Jakub Jelinek <jakub@redhat.com>
9355 * c-lex.c (lex_string): Use charwidth to compute bytemask.
9356 * expr.c (expand_expr): Don't optimize constant array references
9357 initialized with wide string constants.
9359 2000-09-13 Michael Hayes <mhayes@cygnus.com>
9361 * loop.c (note_set_pseudo_multiple_uses): Correct.
9363 2000-09-12 Jim Wilson <wilson@cygnus.com>
9365 * ifcvt.c (noce_process_if_block): If A and B are the same, and no
9366 else block, and X has side-effects, then fail.
9368 2000-09-12 Greg McGary <greg@mcgary.org>
9370 * config/mips/mips-protos.h
9371 (trap_cmp_op, mips_gen_conditional_trap): New func decls.
9372 * config/mips/mips.h (ISA_HAS_COND_TRAP): New macro.
9373 (PREDICATE_CODES): Add "trap_cmp_op".
9374 * config/mips/mips.c
9375 (trap_cmp_op, mips_gen_conditional_trap): New functions.
9376 * config/mips/mips.md (trap, conditional_trap): New patterns.
9378 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9380 * flow.c (try_pre_increment_1): Don't do anything to sets of the stack
9383 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9385 * builtins.c (built_in_decls): New array.
9386 (expand_builtin_fputs): New function.
9387 (expand_builtin): Handle BUILT_IN_FPUTC and BUILT_IN_FPUTS.
9389 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTS): New members.
9391 * c-common.c (c_common_nodes_and_builtins): Handle fputc/fputs.
9393 * tree.h (built_in_decls): New array.
9395 Tue Sep 12 08:53:57 2000 Jeffrey A Law (law@cygnus.com)
9397 * convex.md: Use "+" instead of "=" for outputs wrapped in a
9399 * i370.md, i386.md, ns32k.md, sh.md, vax.md: Likewise.
9401 2000-09-12 Kazu Hirata <kazu@hxi.com>
9403 * haifa-sched.c: Fix formatting.
9405 * genattrtab.c: Fix formatting.
9407 * unroll.c: Fix formatting.
9409 2000-09-12 Bruce Korb <bkorb@gnu.org>
9411 * fixinc/fixfixes.c: make a type for the fix procedure & use it,
9412 remove obsolete code
9413 * fixinc/fixincl.c: Use PARAMS, not _P_. Add no-op default to switch.
9414 * fixinc/fixincl.tpl: make non-exported arrays static scope
9415 * fixinc/fixincl.x: regenerate
9416 * fixinc/fixlib.h: Use PARAMS, not _P_
9417 * fixinc/fixtests.c: make a type for the test proc & use it
9418 * fixinc/server.h: Use PARAMS, not _P_
9420 2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9422 * c-typeck.c (process_init_element): Avoid union init warnings on
9423 floating point zero. Don't crash on unions containing structs.
9425 2000-09-12 Alexandre Oliva <aoliva@redhat.com>
9427 * config/sh/sh.h (PREDICATE_CODES): Add CONST_DOUBLE to
9428 general_movsrc_operand, and remove CONST_INT from
9429 general_movdst_operand.
9431 2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
9433 * cse.c (approx_reg_cost): If SMALL_REGISTER_CLASSES, return INT_MAX
9434 if a reference to non-fixed hardreg is seen. Otherwise, count hard
9435 regs with a higher cost.
9436 (preferrable): Deal with cases where either cost or regcost is
9438 (cse_insn): Use MAX_COST rather than 10000. Always initialize
9440 (COSTS_N_INSNS): Move definition...
9442 (MAX_COST): New macro.
9443 * loop.c (init_loop): Use COSTS_N_INSNS macro instead of hardcoded
9446 2000-09-11 Mark Mitchell <mark@codesourcery.com>
9448 * c-common.h (genrtl_clear_out_block): Remove.
9449 * c-semantics.c (genrtl_clear_out_block): Remove.
9450 (genrtl_while_stmt): Don't call it.
9451 (genrtl_for_stmt): Likewise.
9453 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
9455 * cppfiles.c: Move all default-#defines to top of file.
9456 (open_include_file): Replace by lookup_include_file.
9457 (read_with_read, read_file): Merged into read_include_file.
9458 (stack_include_file, purge_cache): New functions.
9459 (close_cached_fd): Delete.
9460 (lookup_include_file, read_include_file, _cpp_pop_file_buffer):
9461 Cache the in-memory buffer, not the file descriptor.
9463 * cpphash.h (struct include_file): Add buffer, st, refcnt,
9465 (xcnew): New utility macro.
9466 (DO_NOT_REREAD, NEVER_REREAD): Move up by struct include_file.
9467 * cpplib.h (struct cpp_buffer): Remove mapped field.
9469 2000-09-11 Zack Weinberg <zack@wolery.cumb.org>
9471 * cpplex.c (parse_string): Accept backslash space newline as a
9473 (lex_line): Likewise.
9474 (_cpp_get_token): Remove hard limit on macro nesting.
9476 2000-09-12 Philipp Thomas <pthomas@suse.de>
9478 * aclocal.m4 (AM_WITH_NLS): Don't force use of included gettext.
9479 * configure: Rebuilt.
9481 2000-09-13 Michael Hayes <mhayes@cygnus.com>
9483 * flow.c (split_block): Fix update of registers live at
9486 Tue Sep 12 01:51:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
9488 * i386.md (add?i_3, add?i_5): New.
9489 (add?i_4): Rename from add?i_3; Fix compare pattern.
9490 (sub?i_3, xor?i_3, ior?i_3): New.
9492 * genrecog.c (write_tree): Output code to clear insn_extract cache.
9493 * genattrtab.c (write_attr_case): Gen call to extract_insn_cache
9494 instead of extract_insn and extract_constrain_insn_cache instead of
9495 extract_insn and constrain_operands.
9496 * recog.c (extract_insn_cached, extract_constrain_insn_cached):
9498 (extract_insn): Clear which_alternative.
9499 (constrain_operands): Set which_alternative to -1 when failed.
9500 * recog.h (extract_constrain_insn_cached, extract_insn_cached):
9503 2000-09-11 Matthew Hiller <hiller@redhat.com>
9505 * config/h8300/h8300.md (movstrictqi): Changed constraint modifier
9506 on operand 0 to '+'.
9507 (movstricthi): Likewise.
9509 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9511 * loop.h (LOOP_IVS): New macro.
9512 (REG_IV_TYPE, REG_IV_INFO): Add ivs argument.
9513 (struct loop_ivs): New.
9514 (struct loop_info): Add ivs field.
9515 (reg_iv_type, reg_iv_info): Delete prototype.
9516 (reg_biv_class, loop_iv_list): Likewise.
9517 * loop.c (record_biv, find_life_end): Pass loop argument.
9518 (reg_iv_type): Remove global array and use
9519 field in loop_regs structure within loop_ivs structure.
9520 (reg_iv_info, reg_biv_class, loop_iv_list): Likewise.
9521 (first_increment_giv, last_increment_giv): Use entry in
9523 (record_initial): Pass ivs pointer.
9524 * unroll.c (copy_loop_body, remap_split_bivs): Add loop argument.
9526 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9528 * loop.h (LOOP_REGS): New macro.
9529 (struct loop_regs): New.
9530 (struct loop_info): Add regs field.
9531 * loop.c (set_in_loop): Remove global array and store
9532 in loop_regs structure as part of loop_info structure.
9533 (n_times_set, may_not_optimize): Likewise.
9534 (reg_single_usage, moved_once): Likewise.
9535 (count_one_set): Add regs argument.
9536 (combine_movables, rtx_equal_for_loop_p, combine_givs): Likewise.
9537 (set_pseudo_multiple_uses): Pass regs pointer.
9539 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9541 * unroll.c (iteration_info): Subsume into loop_iterations.
9542 * loop.h (loop_info): New field iv.
9544 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9546 * basic-block.h (LOOP_TREE, LOOP_PRE_HEADER, LOOP_EDGES): New.
9547 (LOOP_EXITS_DOMS, LOOP_ALL): Likewise.
9548 (flow_loops_update): New prototype.
9549 (flow_loops_find): Add flags to prototype.
9550 (struct loop): Add `pre_header_root' and `pre_header_trace' fields.
9551 * flow.c (flow_loop_pre_header_scan): New.
9552 (flow_loop_dump): Dump pre-header root and trace and exit dominators.
9553 (flow_loop_free): Free pre-header root and trace and exit dominators.
9554 (flow_loops_find): New argument flags.
9555 (flow_loops_update): New function.
9556 * toplev.c (rest_of_compilation): Add flag argument to flow_loops_find.
9558 2000-09-12 Michael Hayes <mhayes@cygnus.com>
9560 * basic-block.h (split_block, update_bb_for_insn): New prototypes.
9561 * flow.c (split_block, update_bb_for_insn): New functions.
9563 2000-09-11 Richard Henderson <rth@cygnus.com>
9565 * cse.c (fold_rtx): Honor NO_FUNCTION_CSE.
9567 2000-09-11 Richard Henderson <rth@cygnus.com>
9569 * config/ia64/ia64-protos.h (fr_nonimmediate_operand): Declare.
9570 * config/ia64/ia64.c (fr_nonimmediate_operand): New.
9571 (ia64_override_options): Prevent optimizing division for both
9572 latency and throughput.
9573 (rtx_needs_barrier): Handle frcpa.
9574 * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): New.
9575 (MASK_INLINE_DIV_THR, TARGET_INLINE_DIV_LAT): New.
9576 (TARGET_INLINE_DIV_THR, TARGET_INLINE_DIV): New.
9577 (TARGET_SWITCHES): Add -minline-divide-min-latency and
9578 -minline-divide-max-throughput.
9579 (PREDICATE_CODES): Update.
9580 * config/ia64/ia64.md (extendsidi2): Remove * from f case.
9581 (zero_extendsidi2): Likewise. Fix typo in f case insn.
9582 (extendsfdf2): Add cases for gr<->fr and fr<->mem.
9583 (extendsftf2): Likewise.
9584 (extenddftf2): Likewise.
9585 (fix_trunctfdi2_alts): New.
9586 (fixuns_trunctfdi2_alts): New.
9587 (madd*4): Rename from madd*3.
9588 (divsi3, modsi3, udivsi3, umodsi3): New.
9589 (divsi3_internal): New.
9590 (divdi3, moddi3, udivdi3, umoddi3): New.
9591 (divdi3_internal_lat, divdi3_internal_thr): New.
9592 (multf3_alts, maddtf4_alts, nmaddtf4_alts): New.
9593 (recip_approx): New.
9595 2000-09-11 Alexandre Oliva <aoliva@redhat.com>
9597 * print-rtl.c (debug_call_placeholder_verbose): New variable.
9598 (print_rtx) [CALL_PLACEHOLDER]: Dump all call sequences if it is
9600 * integrate.c (copy_rtx_and_substitute): Don't share
9601 LEAF_REG_REMAPpable registers with the inlined function. Don't
9602 share the function value with calling sequences.
9604 2000-09-11 Jakub Jelinek <jakub@redhat.com>
9606 * c-decl.c (do_case): Fix a typo.
9608 * combine.c (simplify_if_then_else): Don't convert a == b ? b : a
9609 to a if the comparison is floating mode and not -ffast-math.
9610 * simplify-rtx.c (simplify_ternary_operation): Likewise.
9612 Mon Sep 11 20:07:48 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9614 * sh.h (INITIALIZE_TRAMPOLINE): Remove stray call to
9615 gen_ic_invalidate_line.
9617 2000-09-11 Philip Blundell <pb@futuretv.com>
9619 * config/arm/elf.h (SUBTARGET_CPP_SPEC): Don't define `arm_elf'.
9621 Mon Sep 11 10:48:41 2000 Ulrich Drepper <drepper@redhat.com>
9623 * install.texi (LANGUAGES): Update to include new languages.
9626 2000-09-11 DJ Delorie <dj@redhat.com>
9628 * gcc.c (main): Don't warn about unused -B prefixes
9629 (unused_prefix_warnings): remove
9631 2000-09-11 Kazu Hirata <kazu@hxi.com>
9633 * final.c: Fix formatting.
9635 * integrate.c: Fix formatting.
9637 2000-09-11 Geoff Keating <geoffk@cygnus.com>
9639 * alias.c (memrefs_conflict_p): An ADDRESSOF does conflict, sorry.
9641 2000-09-11 Bernd Schmidt <bernds@redhat.co.uk>
9643 * reload.c (regno_clobbered_p): Fix thinko in previous change.
9645 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9647 * gcc.1: Document 68hc11 specific options.
9649 2000-09-10 Geoff Keating <geoffk@cygnus.com>
9651 * config/rs6000/sysv4.h (MASK_LONG_DOUBLE_128): Define.
9652 (TARGET_LONG_DOUBLE_128): Define.
9653 (SUBTARGET_SWITCHES): Add -mlong-double-64 and -mlong-double-128.
9654 (LONG_DOUBLE_TYPE_SIZE): Redefine.
9655 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
9656 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on definition
9657 of __LONG_DOUBLE_128__.
9658 (CPP_SYSV_SPEC): Define __LONG_DOUBLE_128__ if -mlong-double-128
9660 (CPP_LONGDOUBLE_DEFAULT_SPEC): Define.
9661 (CPP_SYSV_DEFAULT_SPEC): Define.
9662 (SUBTARGET_EXTRA_SPECS): Add cpp_longdouble_default.
9663 (INIT_TARGET_OPTABS): Define.
9665 * config/rs6000/aix.h (RS6000_ITRUNC): Moved from rs6000.h.
9666 (RS6000_UITRUNC): Likewise.
9667 (INIT_TARGET_OPTABS): New macro.
9668 * config/rs6000/rs6000.c (rs6000_trunc_used): Delete.
9669 (trunc_defined): Delete.
9670 (output_prolog): Don't output .extern definitions for fp->int
9671 conversion routines, ASM_OUTPUT_EXTERNAL_LIBCALL will do it.
9672 * config/rs6000/rs6000.h (rs6000_trunc_used): Delete.
9673 (trunc_defined): Delete.
9674 (RS6000_ITRUNC): Moved to aix.h.
9675 (RS6000_UITRUNC): Likewise.
9676 * config/rs6000/rs6000.md (fix_truncdfsi2): Fail if it would
9677 only emit a libcall.
9678 (fixuns_truncdfsi2): Delete.
9679 (trunc_call): Delete.
9680 (trunc_call_rtl): Delete.
9682 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9684 * varasm.c (make_decl_rtl): Restore leading star on
9685 DECL_ASSEMBLER_NAME set for decls with an asmspec.
9687 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9689 * c-pragma.c (handle_pragma_pack): Correct parsing logic so it
9690 won't give a spurious error for '#pragma pack()'. Simplify
9691 control flow for readability. 'reset' action is not necessary.
9693 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
9695 * defaults.h: Provide default definitions for: CHAR_TYPE_SIZE,
9696 SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
9697 LONG_LONG_TYPE_SIZE, WCHAR_TYPE_SIZE, FLOAT_TYPE_SIZE,
9698 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE, and WCHAR_UNSIGNED.
9700 * cppexp.c, dwarfout.c, dwarf2out.c, emit-rtl.c, final.c, optabs.c,
9701 profile.c, sdbout.c, tradcif.y, tree.c:
9702 Include defaults.h if not already included.
9703 Don't define the above macros.
9705 * Makefile.in: Update dependencies.
9707 2000-09-10 Mark Mitchell <mark@codesourcery.com>
9709 * c-common.h (add_stmt): Change prototype.
9710 (RECHAIN_STMTS): New macro.
9711 (CASE_LABEL_DECL): Likewise.
9712 (genrtl_case_label): Change prototype.
9713 (c_expand_start_case): Remove prototype.
9714 (build_case_label): Change prototype.
9715 (decl_constant_value): Declare.
9716 * c-common.c (check_case_value): Handle C++'s extensions to C
9718 * c-commnon.def (CASE_LABEL): Add room for the CASE_LABEL_DECL
9720 * c-parse.in (stmt): Adjust handling of return statements and case
9722 * c-semantics.c (add_stmt): Return the new statement.
9723 (genrtl_return_stmt): Take the RETURN_STMT as input, not the
9724 returned expression. Directly generate RTL, rather than calling
9726 (genrtl_switch_stmt): Don't call c_expand_start_case.
9727 (build_case_label): Take the LABEL_DECL as input, too.
9728 (genrtl_case_label): Just call add_case_node.
9729 (expand_stmt): Adjust calls to genrtl_return_stmt and
9731 * c-tree.h (c_expand_start_case): Declare.
9732 * c-typeck.c (decl_constant_value): Give it external linkage.
9733 (c_expand_return): Don't call expand_return or expand_null_return;
9734 use genrtl_return_stmt instead.
9735 * stmt.c (struct nesting): Remove num_ranges field.
9736 (add_case_node): Give it external linkage.
9737 (expand_start_case): Don't set num_ranges.
9738 (expand_start_case_dummy): Don't clear it.
9739 (pushcase): Rely on add_case_node to handle `default' labels.
9740 (add_case_node): Handle `default' labels.
9741 * tree.c (tree_int_cst_compare): New function.
9742 * tree.h (tree_int_cst_compare): Declare.
9743 (add_case_node): Likewise.
9745 2000-09-10 Richard Henderson <rth@cygnus.com>
9747 * c-parse.in: Revert last change.
9748 (init_reswords): Do not enter disabled keywords into the ridpointers
9749 table, modulo objc weirdness.
9750 (_yylex): Return the canonical spelling for a keyword.
9752 2000-09-10 Philip Blundell <philb@gnu.org>
9754 * config/arm/arm.h (CPP_ISA_SPEC): Don't define `arm' or `thumb'.
9755 * config/arm/linux-elf.h (CPP_PREDEFINES): Don't define `__arm__'.
9757 Sun Sep 10 14:30:28 EDT 2000 John Wehle (john@feith.com)
9759 * alias.c (find_base_term): Handle ADDRESSOF.
9760 (memrefs_conflict_p): An ADDRESSOF doesn't conflict.
9762 2000-09-10 Denis Chertykov <denisc@overta.ru>
9764 * genoutput.c (output_insn_data): Translate <NEWLINE> to \n\ while
9765 outputting templates with many lines.
9767 2000-09-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9769 * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
9770 to decide whether 64-bit support must be generated.
9772 2000-09-10 Richard Henderson <rth@cygnus.com>
9774 * c-parse.in (asm patterns): Fix volatile check.
9776 2000-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9778 * cppmacro.c (check_trad_stringification): New function.
9779 (save_expansion): If -Wtraditional, warn about stringification of
9782 2000-09-11 Michael Hayes <mhayes@cygnus.com>
9784 * loop.h (struct loop_mem_info): Move from loop.c
9785 (struct loop_info): Add fields store_mems, mems, mems_idx,
9786 mems_allocated, unknown_address_altered,
9787 unknown_constant_address_altered, num_mem_sets, and
9788 first_loop_store_insn.
9790 * loop.c (loop_store_mems): Replace with field in loop_info struct.
9791 (loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
9792 (unknown_address_altered, unknown_constant_address_altered): Likewise.
9793 (num_mem_sets): Likewise.
9794 (replace_loop_mems, replace_loop_regs): New.
9795 (struct loop_replace_args): New.
9796 (load_mems): Use replace_loop_mems.
9797 (try_copy_prop): Use replace_loop_regs.
9798 (replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
9800 2000-09-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9802 * configure.in: Recognize m6811-elf and m6812-elf.
9803 * configure: Regenerate.
9805 2000-09-09 Geoff Keating <geoffk@cygnus.com>
9807 * recog.c (validate_replace_rtx_1): Correct MODE parameter in call
9810 2000-09-10 Michael Hayes <mhayes@cygnus.com>
9812 * loop.c (struct movables): New.
9813 (num_movables): Move into struct movables.
9814 (the_movables): Change type to struct movables.
9815 (ignore_some_movables): Change struct movable arg to struct movables.
9816 (force_movables, combine_movables, regs_match_p): Likewise.
9817 (rtx_equal_for_loop_p, move_movables): Likewise.
9818 (scan_loop): Change movables to be of type struct movables.
9819 Replace last_movable with field in movables structure.
9821 2000-09-08 Zack Weinberg <zack@wolery.cumb.org>
9823 * c-pragma.c: Don't elide entire file if !HANDLE_GENERIC_PRAGMAS.
9824 (init_pragma): Avoid warning if pfile happens to be unused.
9825 * c-pragma.h: Never define HANDLE_GENERIC_PRAGMAS. Never
9826 define init_pragma to nothing. Always prototype
9827 init_pragma. Prototype dispatch_pragma if !USE_CPPLIB.
9829 * c-lex.c (process_directive): Always call dispatch_pragma.
9830 Initialize entering_c_header to 0.
9832 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9834 * config/m68hc11/m68hc11.md: New file, machine description for
9836 * config/m68hc11/m68hc11.h: New file, definitions for 68HC11 & 68HC12.
9837 * config/m68hc11/m68hc11.c: New file, functions for 68HC11 & 68HC12.
9838 * config/m68hc11/m68hc12.h: New file, definitions for 68HC12.
9839 * config/m68hc11/m68hc11-protos.h: New file.
9840 * config/m68hc11/m68hc11-crt0.S: New file, startup code.
9841 * config/m68hc11/t-m68hc11-gas: New file, makefile fragment.
9842 * config/m68hc11/xm-m68hc11.h: New file, target defs.
9843 * config/m68hc11/larith.asm: New file, libgcc routines.
9845 2000-09-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9847 * Makefile.in (DPBIT_FUNCS): Add _usi_to_df.
9848 (FPBIT_FUNCS): Add _usi_to_sf.
9849 * config/fp-bit.c (usi_to_float): New function.
9850 * config/fp-bit.h (L_usi_to_sf, L_usi_to_df): Define.
9851 (usi_to_float): Add appropriate #define.
9853 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
9855 * i386-protos.h (sse_comparison_operator, mmx_reg_operand): Declare
9857 * i386.c (sse_comparison_operator, mmx_reg_operand): New functions.
9858 * i386.md (attr "type"): Add sse and mmx types.
9859 (attr "memory"): Handle them without a crash.
9860 (movsi_1, movdi_2): Allow MMX regs.
9861 (movdi splits): Don't split moves involving MMX regs.
9862 (setcc_4): Remove '*' from pattern name so we get a gen_setcc4.
9863 (movv4sf_internal, movv4si_internal, movv8qi_internal,
9864 movv4hi_internal, movv2si_internal, movv8qi, movv4hi, movv2si,
9865 movv4sf, movv4si, pushv4sf, pushv4si, pushv8qi, pushv4hi, pushv2si,
9866 sse_movaps, sse_movups, sse_movmskps, mmx_pmovmskb, mmx_maskmovq,
9867 sse_movntv4sf, sse_movntdi, sse_movhlps, sse_movlhps, sse_movhps,
9868 sse_movlps, sse_loadss, sse_movss, sse_storess, sse_shufps,
9869 addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, mulv4sf3, vmmulv4sf3,
9870 divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2, rsqrtv4sf2, vmrsqrtv4sf2,
9871 sqrtv4sf2, vmsqrtv4sf2, sse_andti3, sse_nandti3, sse_iorti3,
9872 sse_xorti3, maskcmpv4sf3, maskncmpv4sf3, vmmaskcmpv4sf3,
9873 vmmaskncmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
9874 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
9875 cvttps2pi, cvtsi2ss, cvtss2si, cvttss2si, addv8qi3, addv4hi3,
9876 addv2si3, ssaddv8qi3, ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3,
9877 subv4hi3, subv2si3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
9878 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
9879 mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3, mmx_uavgv8qi3,
9880 mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw, mmx_pshufw,
9881 eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3, gtv2si3, umaxv8qi3,
9882 smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3, ashrv2si3, lshrv4hi3,
9883 lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3, mmx_ashldi3,
9884 mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
9885 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
9886 mmx_punpckldq, emms, sfence, ldmxcsr, prefetch, stmxcsr, sse_clrti,
9887 mmx_clrdi): New patterns.
9889 2000-09-08 Richard Earnshaw <rearnsha@arm.com>
9891 * arm.c: Don't include tm.h directly.
9893 Fri Sep 8 14:34:56 MET DST 2000 Jan Hubicka <jh@suse.cz>
9895 * recog.c (validate_replace_rtx_1): Fix confusion about equality
9896 testing; simplify subregs of constants and nested subregs.
9898 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
9900 * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
9902 2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
9904 * combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
9906 * rtl.texi (description of USE): Add note about possible pitfalls
9908 From Richard Henderson:
9909 * reload1.c (choose_reload_regs): Compute need_mode properly.
9911 2000-09-07 Richard Henderson <rth@cygnus.com>
9913 * config/ia64/lib1funcs.asm (__divsi3): Use .s1 for frcpa.
9914 (__modsi3, __umodsi3): Likewise.
9915 (__udivsi3): Likewise. Normalize the TFmode values.
9917 2000-09-07 Geoff Keating <geoffk@cygnus.com>
9919 * config/rs6000/sol-c0.c (_start): Declare `termfunc' parameter
9921 * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Use cast to suppress
9924 Fri Sep 8 03:26:38 2000 J"orn Rennecke <amylaar@redhat.co.uk>
9926 * sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): Remove.
9927 (cmpeqdi_t): Add output pattern.
9928 (cmpeqdi_t+1): Don't split when not optimizing.
9929 Restore proper splitting operation.
9931 2000-09-07 Richard Henderson <rth@cygnus.com>
9933 * c-lex.c (process_directive): If not HANDLE_GENERIC_PRAGMAS,
9934 do not call dispatch_pragma.
9936 2000-09-07 Jim Wilson <wilson@cygnus.com>
9938 * reload.c (push_reload): Use CLASS_CANNOT_CHANGE_MODE_P in addition
9939 to CLASS_CANNOT_CHANGE_MODE.
9940 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE_P): True only if the
9941 mode classes are different.
9943 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
9945 * cpplib.h (struct cpp_options): Add user_label_prefix member,
9946 left out of commit which removed cppulp.c.
9948 2000-09-07 Richard Henderson <rth@cygnus.com>
9950 * bb-reorder.c (fixup_reorder_chain): Add jump in new block
9951 after switch for CASE_DROPS_THROUGH.
9953 2000-09-07 Richard Henderson <rth@cygnus.com>
9955 * loop.c (strength_reduce): Call check_ext_dependant_givs.
9956 Properly extend the biv initial value for the giv.
9957 (record_biv): Zero ext_dependant.
9958 (record_giv): New argument ext_val. Update all callers.
9959 (general_induction_var): Likewise.
9960 (consec_sets_giv): Likewise.
9961 (simplify_giv_expr): Likewise. Fill in ext_val if we find
9962 a sign-extend, zero-extend, or truncate.
9963 (combine_givs_p): Make sure modes are compatible.
9964 (check_ext_dependant_givs): New.
9965 (extend_value_for_giv): New.
9966 * loop.h (struct induction): Add ext_dependant.
9967 * unroll.c (iteration_info): Extend the biv initial value for the giv.
9968 (find_splittable_givs): Likewise.
9969 (final_giv_value): Likewise.
9971 2000-09-07 Zack Weinberg <zack@wolery.cumb.org>
9973 * c-pragma.h: Define HANDLE_GENERIC_PRAGMAS if
9974 REGISTER_TARGET_PRAGMAS is defined. Duplicate some
9975 definitions from cpplib.h.
9976 * cpplib.h: Don't typedef struct cpp_reader if c-pragma.h has
9978 * tm.texi: Document HANDLE_PRAGMA as no longer supported. Add
9979 documentation for REGISTER_TARGET_PRAGMAS.
9981 * c-lex.c: Include cpplib.h before c-pragma.h. Define a
9982 default-pragma callback to implement -Wunknown-pragmas if
9984 * c-parse.in: Move all includes to top of file.
9985 * c-pragma.c: Include cpplib.h before c-pragma.h. Include
9987 (dispatch_pragma): Put the namespace in the -Wunknown-pragmas
9989 (init_pragma): If REGISTER_TARGET_PRAGMAS is defined, call it.
9991 * arm.h, arm-protos.h, arm.c,
9992 c4x.h, c4x-protos.h, c4x.c,
9993 h8300.h, h8300-protos.h, h8300.c,
9994 i370.h, i370-protos.h, i370.c,
9995 i960.h, i960-protos.h, i960.c,
9996 sh.h, sh-protos.h, sh.c,
9997 v850.h, v850-protos.h, v850.c: Convert HANDLE_PRAGMA-based
9998 pragmata scheme to use REGISTER_TARGET_PRAGMAS instead.
10000 * d30v.h: Don't mention HANDLE_PRAGMA in comment. Add
10001 multiple include guard.
10002 * i370.md (untyped_call): Use GEN_CALL.
10003 (umodsi3): Remove unused variable.
10004 * sh/elf.h: Don't undef HANDLE_SYSV_PRAGMA.
10005 * v850.c (output_move_single, output_move_double): Constify
10007 (print_operand): Constify a char *.
10008 * v850.h (struct small_memory_info): Constify name member.
10010 2000-09-07 Kazu Hirata <kazu@hxi.com>
10012 * config/h8300.h: Fix comment typos.
10013 * config/h8300/h8300.md: Likewise.
10014 * config/h8300/lib1funcs.asm: Likewise.
10016 Thu 07-Sep-2000 21:29:00 BST Neil Booth <NeilB@earthling.net>
10018 * Makefile.in: Remove references to cppulp.{c,o}.
10019 * cppinit.c (initialize_builtins, cpp_start_read,
10020 cpp_handle_option): Update to use cpp_options structure.
10021 * cppulp.c: Remove.
10023 2000-09-07 Joseph S. Myers <jsm28@cam.ac.uk>
10025 * c-common.c (time_char_table): Allow %#b and %#h.
10027 2000-09-07 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10029 * reorg.c (find_end_label): If the basic block reorder pass moves the
10030 return insn to some other place try to locate it again and put our
10031 end_of_function_label there.
10032 * reorg.c (relax_delay_slots): Check if find_end_label created a
10033 new label that invalidates the current optimazation.
10035 2000-09-07 Catherine Moore <clm@redhat.com>
10037 * unroll.c (unroll_loop): Check for unconditional jumps
10038 to loop continuation. Delete if n_iterations is 1.
10039 (ujump_to_loop_cont): New routine.
10041 2000-09-07 Bernd Schmidt <bernds@redhat.co.uk>
10043 * rtl.c (class_narrowest_mode): Add entries for MODE_VECTOR_INT and
10045 * reload.c (regno_clobbered_p): Accept new arg, MODE, and use it
10046 to handle multiword modes correctly. All callers and the declaration
10049 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10051 * c-common.h (prep_stmt): Declare.
10052 (lang_expand_stmt): Likewise.
10053 * c-decl.c (lang_expand_stmt): Remove.
10054 * c-semantics.c (lang_expand_stmt): Define.
10055 (prep_stmt): New function.
10056 (expand_stmt): Handle common statement types here.
10058 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
10060 * configure.in (sh-*-linux*): Added.
10061 * configure: Rebuilt.
10062 * config/sh/t-linux: New file.
10063 * config/sh/sh.h (USERMODE_BIT): Define.
10064 (TARGET_USERMODE): Likewise.
10065 (TARGET_SWITCHES): New switches for the bits above.
10066 (INITIALIZE_TRAMPOLINE): Call __ic_invalidate in USERMODE.
10067 * config/sh/linux.h: New file.
10068 * config/sh/lib1funcs.asm (GLOBAL): Don't prefix symbols with
10069 underscore on linux.
10070 (L_sdivsi3, L_udivsi3): Define for linux.
10071 (L_ic_invalidate): Define.
10072 * invoke.texi (SH Options): Document -musermode.
10074 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
10076 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't disable function
10077 CSE unless generating PIC.
10079 * config/sh/sh.md (symPLT_label2reg): Force the initialization of
10082 2000-09-06 H.J. Lu (hjl@gnu.org)
10084 * Makefile.in (clean_s1): Depend on stage_b.
10085 (clean_s2): Depend on stage_d. Don't remove $(VOL_FILES) in
10086 stage2. They are used for "make compare".
10088 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10090 Move statement-tree facilities from C++ to C front-end.
10091 * c-common.h (c_tree_index): Add CTI_VOID_ZERO.
10092 (void_zero_node): New macro.
10093 (struct stmt_tree_s): New type.
10094 (stmt_tree): New typedef.
10095 (struct language_function): New type.
10096 (last_tree): New macro.
10097 (last_expr_type): Likewise.
10098 (walk_tree_fn): New typedef.
10099 (current_stmt_tree): New function.
10100 (begin_stmt_tree): Likewise.
10101 (add_stmt): Likewise.
10102 (finish_stmt_tree): Likewise.
10103 (statement_code_p): Likewise.
10104 (lang_statement_code_p): New variable.
10105 (walk_stmt_tree): New function.
10106 (STMT_IS_FULL_EXPR_P): New macro.
10107 * c-common.c (lang_statement_code_p): New variable.
10108 (c_common_nodes_and_builtins): Initialize void_zero_node.
10109 (statement_code_p): New function.
10110 (walk_stmt_tree): Likewise.
10111 * c-decl.c (language_function): Rename to ...
10112 (c_language_function): ... this. Include language_function.
10113 (push_c_function_context): Adjust accordingly.
10114 (pop_c_function_context): Likewise.
10115 (mark_c_function_context): Likewise.
10116 (current_stmt_tree): Define.
10117 * c-semantics.c (begin_stmt_tree): New function.
10118 (add_stmt): Likewise.
10119 (prune_unused_decls): Likewise.
10120 (finish_stmt_tree): Likewise.
10122 2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10124 * flow.c (insn_dead_p): Detect dead memory stores with auto increments.
10126 2000-09-06 Kazu Hirata <kazu@hxi.com>
10128 * calls.c: Fix formatting.
10130 2000-09-06 Graham Stott <grahams@cygnus.co.uk>
10132 * config/i386/i386.h (ADDRESS_COST): Fix typo.
10134 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10136 Integrated preprocessor.
10138 * Makefile.in: Remove all references to c-parse.gperf,
10139 c-gperf.h, and c-parse.h. Remove -d from yacc command line
10140 generating c-parse.c. Update dependencies.
10141 * c-parse.gperf, c-gperf.h: Delete.
10143 * c-common.c: Don't define parse_options, cpp_token, yy_cur,
10144 yy_lim, or yy_get_token. Don't define get_directive_line if
10146 * c-common.h: Add multiple include guard. Define RID values
10147 for every keyword in C, C++, and Objective C. Put all the
10149 (struct c_fileinfo, get_fileinfo, dump_time_statistics): New.
10150 * c-decl.c (c_decode_option): Handle -lang-objc here.
10151 (print_lang_identifier): Handle C_IS_RESERVED_WORD case.
10152 (grokdeclarator): Adjust for new RID scheme.
10153 (extract_interface_info): New stub.
10154 * c-lang.c: Don't declare yy_cur or parse_options.
10155 (lang_init_options): Call cpp_init. Don't call
10157 (lang_init): Don't call check_newline if USE_CPPLIB.
10159 * c-lex.c: Don't include c-parse.h. Do include timevar.h.
10160 Elide lots of unnecessary code if USE_CPPLIB. Delete code
10161 rendered unnecessary by new architecture. Move routines not
10162 shared with C++ to c-parse.in. Maintain a local idea of the
10163 line number. Handle C++ as well as C.
10164 [USE_CPPLIB]: Declare and register callbacks for #ident and
10165 for entering/leaving files.
10166 (init_c_lex, c_lex): Are now the entry points to this file.
10167 (check_newline): Break out directive handling to
10169 (read_ucs, is_extended_char, utf8_extend_token): Moved here
10170 from C++ front end.
10171 (readescape, parse_float): Overhaul.
10172 (lex_number, lex_string, lex_charconst): Break out of c_lex
10174 (get_fileinfo, update_header_times, dump_one_header,
10175 dump_time_statistics): New and/or moved here from C++.
10176 Support per-file data needed by C++ and per-header timing
10177 statistics (C++ only, at the moment).
10178 * c-lex.h: Update prototypes. Add multiple include guard.
10179 * c-tree.h (struct lang_identifier): Add rid_code field.
10180 (C_IS_RESERVED_WORD, C_RID_CODE): New.
10182 * c-parse.in: Include c-pragma.h. Remove unnecesary calls to
10183 reinit_parse_for_function and/or position_after_white_space.
10184 (save_filename, save_lineno): Look ahead before saving.
10185 (label -> identifier ':'): Save file and line before shifting ':'.
10186 (reservedwords): No need to call get_identifier.
10187 (init_parse, finish_parse, yyerror, yylex, yyprint,
10188 make_pointer_declarator): Are now here for C/ObjC.
10189 (rid_to_yy): Conversion table from RID constants to Yacc codes.
10191 * c-pragma.c: Rewrite parsing logic to fit with cpplib's
10192 #pragma registry. Provide dummy implementation of that
10193 interface if !USE_CPPLIB.
10194 * c-pragma.h: Update to match.
10196 * flags.h: Add multiple include guard.
10197 (flag_detailed_statistics): Moved here from C++.
10198 * toplev.c: Define flag_detailed_statistics.
10200 * gcc.c (C specs): Use %(trad_capable_cpp) for -E|-M|-MM case
10202 * timevar.def (TV_CPP, TV_LEX): New.
10203 * timevar.h: Add multiple include guard.
10205 * objc/lang-specs.h: Use %(trad_capable_cpp) for -E|-M|-MM case
10207 * objc/objc-act.c: Don't mention yy_cur or parse_options.
10208 Initialize cpplib properly. Force lineno to 0 after first
10209 call to check_newline. Don't handle -lang-objc here.
10210 Move forget_protocol_qualifiers and remember_protocol_qualifiers here.
10212 2000-09-06 David Edelsohn <edelsohn@gnu.org>
10214 * rs6000.md: Correct function unit definitions for cr_logical and
10216 (sCOND): Additionally fail for sgt, slt, sge, sle if !TARGET_POWER
10217 and use portable method for >=0 and floating point >=. Remove
10218 associated matchers.
10220 2000-09-06 Mark Mitchell <mark@codesourcery.com>
10222 * extend.texi: Mark named return value extension as deprecated.
10224 2000-09-06 Geoff Keating <geoffk@cygnus.com>
10226 * config/rs6000/rs6000.c (rs6000_reverse_condition): Return
10229 2000-09-06 Gabriel Dos Reis <gdr@codesourcery.com>
10231 * toplev.c (display_help): Fix thinko in documentation.
10233 * diagnostic.h (output_buffer::indent_skip): New fields.
10234 (output_indentation): New macro.
10236 * diagnostic.c (output_indent): New function.
10237 (output_set_prefix, clear_diagnostic_info): Use.
10238 (output_emit_prefix): Predict future indentation.
10240 2000-09-06 DJ Delorie <dj@redhat.com>
10242 * Makefile.in (stage_*): add more dependencies to ensure parallel
10243 builds build correctly
10245 2000-09-06 Manfred Hollstein <manfredh@redhat.com>
10247 * Makefile.in (bootstrap-lean): Depend on bootstrap-lean_g,
10248 not bootstrap-lean_f.
10250 2000-09-06 Andreas Schwab <schwab@suse.de>
10252 * mklibgcc.in: Emit rule for libgcc-stage-start.
10253 * Makefile.in (stage1-start, stage2-start, stage3-start,
10254 stage4-start): Don't handle libgcc here, use libgcc.mk instead.
10256 2000-09-06 Bernd Schmidt <bernds@redhat.co.uk>
10258 * local-alloc.c (local_alloc): Ignore CLASS_LIKELY_SPILLED.
10259 (update_equiv_regs): Likewise, except for the mn10200 kludge.
10260 (combine_regs): Likewise.
10262 * Makefile.in (cse.o): Depend on $(BASIC_BLOCK_H).
10263 * cse.c: Include "basic-block.h".
10264 (struct table_elt): New field REGCOST.
10265 (CHEAP_REG): Delete macro.
10266 (COST): Return 0 for REGs.
10267 (approx_reg_cost_1, approx_reg_cost, preferrable): New functions.
10268 (notreg_cost): Return 0 for appropriate SUBREGs.
10269 (COSTS_N_INSNS): Return N * 2.
10270 (rtx_cost): Return 0 for REGs, and use cost of nested rtx for cheap
10272 (CHEAPER): Use new function preferrable.
10273 (insert): Initialize REGCOST member.
10274 (find_best_addr): Use approx_reg_cost for estimation of register
10276 (cse_insn): Likewise.
10277 * loop.c (iv_add_mult_cost): New function.
10278 (add_cost, shift_cost, mult_cost): Delete variables.
10279 (init_loop): Don't initialize add_cost; reduce copy_cost by half.
10280 (strength_reduce): Use iv_add_mult_cost instead of fixed add_cost.
10281 Make code that detects autoinc opportunities slightly less optimistic.
10282 (simplify_giv_expr): If expression contains other reg that is also a
10283 giv, only increment benefit if this is the only use of that reg.
10284 (consec_sets_giv): Take that change into account.
10285 (combine_givs): Slightly more verbose output.
10287 * i386.h (RTX_COSTS): For MULT, return true cost of multiplication,
10288 not the cost of an equivalent shift.
10289 * sh-protos.h (addsubcosts): Declare.
10290 * sh.c (addsubcosts): New function.
10291 * sh.h (CONST_COSTS): If CONST_OK_FOR_I, then return 0.
10292 (RTX_COSTS): Tweak. Use addsubcosts.
10293 (ADDRESS_COST): Return higher cost for reg+reg addressing.
10295 2000-09-06 Geoff Keating <geoffk@cygnus.com>
10297 * config/rs6000/rs6000.c (validate_condition_mode): New function.
10298 (branch_comparison_operator): Call validate_condition_mode to
10299 abort rather than returning 0.
10300 (branch_positive_comparison_operator): New function.
10301 (scc_comparison_operator): Call validate_condition_mode to abort
10302 rather than returning 0.
10303 (ccr_bit): Call validate_condition_mode. Update for
10305 (print_operand): Delete %C modifier. Update %E case
10306 to use EQ bit not SO bit.
10307 (rs6000_reverse_condition): New function.
10308 (rs6000_generate_compare): New function.
10309 (rs6000_emit_sCOND): New function.
10310 (rs6000_emit_cbranch): New function.
10311 (output_cbranch): The length of a long branch insn is
10312 now only 8 bytes. Add validate_condition_mode. Use
10313 rs6000_reverse_condition. Remove cror generation.
10315 * config/rs6000/rs6000.h: Update comments.
10316 (PREDICATE_CODES): Add new predicate. Update codes used
10317 by branch_comparison_operator and scc_comparison_operator.
10318 * config/rs6000/rs6000-protos.h: Add prototypes for
10319 new external functions.
10320 * config/rs6000/rs6000.md: Add new scheduling parameters
10321 for cr_logical instructions. Change length of branch
10323 (bCOND patterns): Call rs6000_emit_cbranch.
10324 (sCOND patterns): Call rs6000_emit_sCOND.
10325 (branch patterns): Change lengths to 4.
10326 (cr logical patterns): New.
10328 2000-09-06 Richard Henderson <rth@cygnus.com>
10330 * config/i386/i386.md (call_pop): Fix test for setting
10331 current_function_uses_pic_offset_table.
10332 (call, call_value_pop, call_value): Likewise.
10334 2000-09-06 Zack Weinberg <zack@wolery.cumb.org>
10336 * timevar.c (timevar_add): Delete.
10337 (timevar_get): Also count time since the selected timer was
10338 last updated. Do not examine the timevar stack if the
10339 selected timer is standalone.
10341 2000-09-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10343 * gthr-dce.h (__gthread_objc_mutex_deallocate): Free mutex->backend.
10345 2000-09-05 Jason Merrill <jason@redhat.com>
10347 * c-decl.c (finish_incomplete_decl): Don't call complete_array_type
10348 for 'extern' arrays.
10350 2000-09-05 Richard Henderson <rth@cygnus.com>
10352 * config/ia64/lib1func.asm (__divtf3): Rebundle for Itanium.
10353 Eliminate final copy from non-trapping case.
10354 (__divdf3, __divsf3): Likewise.
10356 2000-09-05 Richard Henderson <rth@cygnus.com>
10358 * config/ia64/ia64.md (mulhi3): Fix typo last change.
10359 * config/ia64/lib1func.asm (__divdi3, __udivdi3, __umodsi3): Likewise.
10361 2000-09-03 Donn Terry <donn@interix.com>, Laurynas Biveinis <lauras@softhome.net>
10363 * Makefile.in: Restructure bootstrap stages to allow clean
10364 restart after failure.
10366 2000-09-05 Richard Henderson <rth@cygnus.com>
10368 * config/ia64.md (movsi and movdi patterns): Allow moves from
10369 8-bit constants to AR registers.
10371 2000-09-05 Richard Henderson <rth@cygnus.com>
10373 * config/ia64/ia64.md (mulhi3): New.
10375 2000-09-05 Richard Henderson <rth@cygnus.com>
10377 * config/ia64/ia64.h (INIT_TARGET_OPTABS): Remove.
10378 * config/ia64/lib1funcs.asm (__divdi3): Update from Intel IA-64
10379 Optimization Guide, minimum latency alternative.
10380 (__moddi3, __udivdi3, __umoddi3): Likewise.
10381 (__divsi3, __modsi3, __udivsi3, __umodsi3): Likewise.
10383 2000-09-05 Bruce Korb <bkorb@gnu.org>
10385 * fixinc/fixincl.c (load_file): always read header files
10386 with sizes that are a multiple of the page size.
10387 & use libiberty's getpagesize for determining that.
10389 2000-09-05 Alexandre Oliva <aoliva@redhat.com>
10391 * gcse.c (hash_string_1): Add prototype.
10392 * cse.c (canon_hash_string): Likewise.
10394 2000-09-04 Craig Newell <CraigN@ieee.org>
10396 * gcc.c: Undefine "__WCHAR_TYPE__" before redefining it.
10398 2000-09-04 Andreas Schwab <schwab@suse.de>
10400 * Makefile.in (STAGESTUFF): Remove libgcc.
10401 (stage1-start, stage2-start, stage3-start): Copy the contents of
10402 the libgcc directory explicitly.
10403 (mostlyclean): Clean libgcc.
10405 2000-09-04 Andrew Haley <aph@redhat.com>
10407 * dwarf2out.c: (stack_adjust_offset): New prototype.
10409 Wed Jan 1 00:23:59 MET 1997 Jan Hubicka <jh@suse.cz>
10411 * combine.c (make_extraction): Fix rtx_cost comparison to
10414 Wed Jan 1 00:17:32 MET 1997 Jan Hubicka <jh@suse.cz>
10416 * i386.md (pushsi2, pushhi2, pophi2, swapsf, swapdf,
10417 umulsi3_highpart, smulsi3_highpart, testqi_ccno_1, xorqi_ext_1):
10418 Add '*' to insn pattern name.
10420 2000-09-04 Jakub Jelinek <jakub@redhat.com>
10422 * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
10423 use posn - 1 to index into tokens array.
10424 (maybe_paste_with_next): Adjust caller.
10426 2000-09-03 Geoff Keating <geoffk@cygnus.com>
10428 * invoke.texi: Document the -mvxworks option for rs6000 ELF.
10430 * config/rs6000/rs6000.h: Update various comments about XER_REGNO.
10431 (REGNO_REG_CLASS): Use symbolic register
10434 2000-09-03 Richard Earnshaw <rearnsha@arm.com>
10436 * arm.c (final_prescan_insn): If the form of a jump insn isn't
10437 recognized, don't try to conditionally execute it.
10439 Sun Sep 3 13:10:56 2000 Denis Chertykov <denisc@overta.ru>
10441 * config/avr/avr.md ("*tablejump_lib"): New pattern.
10442 (call_value_insn): Right length claculation.
10443 (call_insn): Likewise.
10445 2000-09-02 Marek Michalkiewicz <marekm@linux.org.pl>
10447 * config/avr/avr-protos.h, config/avr/avr.c (unique_section,
10448 gas_output_limited_string, gas_output_ascii, output_movqi,
10449 output_movhi, out_movqi_r_mr, out_movqi_mr_r, out_movhi_r_mr,
10450 out_movhi_mr_r, out_movsi_r_mr, out_movsi_mr_r, output_movsisf,
10451 out_tstsi, out_tsthi, ret_cond_branch, ashlqi3_out, ashlhi3_out,
10452 ashlsi3_out, ashrqi3_out, ashrhi3_out, ashrsi3_out, lshrqi3_out,
10453 lshrhi3_out, lshrsi3_out, output_reload_inhi, output_reload_insisf,
10454 out_shift_with_cnt, ptrreg_to_str, cond_string, encode_section_info):
10455 Add "const" as needed to remove warnings.
10457 * config/avr/avr.c (avr_override_options, avr_init_once,
10458 function_prologue, function_epilogue, frame_pointer_required_p,
10459 class_likely_spilled_p, order_regs_for_local_alloc,
10460 avr_address_cost, avr_ret_register): Use K&R style arguments.
10461 (initial_elimination_offset, gas_output_limited_string):
10462 Remove ATTRIBUTE_UNUSED from the used arguments.
10463 (output_mov*, out_mov*_r_mr, out_mov*_mr_r, output_reload_insisf):
10464 Use local variables src, dest, base to access operands[].
10465 Rename reg_dest to reg_src if that's what it is.
10466 (output_movhi, output_movsisf): Optimize loading 8-bit immediate
10467 constants to LD_REGS if reg_was_0.
10468 (output_reload_insisf): Change arg 3 to insn length and set it.
10469 (out_movhi_r_mr, out_movhi_mr_r): Use in/out for more efficient
10470 access to 16-bit I/O register pairs.
10471 (avr_address_cost): Lower cost for the above case.
10472 (out_tsthi): Use "or" (faster) instead of "sbiw" if the operand
10473 may be clobbered, also for LD_REGS.
10474 (adjust_insn_length): Correct insn length for iorhi3 and iorsi3
10477 * config/avr/avr.h (PTRDIFF_TYPE): Make signed.
10479 * config/avr/avr.md: Change all uses of the TEST_HARD_REG_CLASS
10480 macro to test_hard_reg_class function.
10481 (*movsi, *movsf): Change "cc" attribute from "clobber" to "none"
10482 for loading immediate constants to LD_REGS.
10483 (andsi3, cmphi, cmpsi): Add return statements to avoid warnings.
10486 Sat Sep 2 13:58:23 2000 Marek Michalkiewicz <marekm@linux.org.pl>
10488 * config/avr/avr.md ("*negsi2"): substitute %@ to __zero_reg__
10489 * config/avr/libgcc.S: Lost part of the previous patch.
10491 2000-08-31 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10493 * gthr-dce.h (__gthread_objc_mutex_allocate): Create a pthread_mutex_t
10494 object before calling pthread_mutex_init.
10496 2000-09-02 Alexandre Oliva <aoliva@redhat.com>
10498 * config/sh/t-elf, config/sh/crt1.asm, config/sh/crti.asm,
10499 config/sh/crtn.asm: New files.
10500 * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Set.
10501 (crt1.o, crti.o, crtn.o): New targets.
10502 * configure.in [sh-*-elf*, sh-*-rtemself*] (tmake_file): Added
10504 * configure: Rebuilt.
10505 * config/sh/sh.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP,
10506 STARTFILE_SPEC, ENDFILE_SPEC, CRT_CALL_STATIC_FUNCTION): Define.
10507 * config/sh/elf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
10508 Undefine for config/elfos.h to redefine.
10509 (STARTFILE_SPEC, ENDFILE_SPEC): Redefine after config/elfos.h.
10511 2000-09-02 Alexandre Oliva <aoliva@redhat.com>, Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
10513 * config/sh/sh-protos.h (nonpic_symbol_mentioned_p,
10514 legitimize_pic_address, output_pic_addr_const): Declare.
10515 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Fix PIC register.
10516 (PREFERGOT_BIT, TARGET_PREFERGOT): Likewise.
10517 (TARGET_SWITCHES): New switch -mprefergot.
10518 (OVERRIDE_OPTIONS): Set flag_no_function_cse unless -mprefergot.
10519 (PIC_OFFSET_TABLE_REGNUM): Define.
10520 (GOT_SYMBOL_TABLE): Likewise.
10521 (LEGITIMIZE_ADDRESS): Use legitimize_pic_address.
10522 (ENCODE_SECTION_INFO): Define.
10523 (FINALIZE_PIC): New macros.
10524 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST_P): New macro.
10525 (ASM_OUTPUT_INT, ASM_OUTPUT_SHORT): Use output_pic_addr_const.
10526 * config/sh/sh.c (print_operand_address): Use output_pic_addr_const.
10527 (prepare_move_operands): Call emit_pic_move or
10528 emit_pic_const_move if appropriate.
10529 (output_far_jump): For PIC, use braf and output long offset.
10530 (machine_dependent_reorg):
10531 (sh_expand_prologue): Save and initialize the PIC register.
10532 (sh_expand_epilogue): Restore it.
10533 (initial_elimination_offset): Account for it.
10534 (nonpic_symbol_mentioned_p): New function.
10535 (legitimize_pic_address): Likewise.
10536 (output_pic_addr_const): Likewise.
10537 * config/sh/sh.md (calli_pcrel, call_valuei_pcrel): New insns.
10538 (call, call_value): Use them.
10539 (GOTaddr2picreg, sym_label2reg, symGOT2reg, symGOTOFF2reg,
10540 symPLT_label2reg): New expands.
10541 * invoke.texi (SH Options): Document -mprefergot.
10543 2000-09-01 Alexandre Oliva <aoliva@redhat.com>
10545 * rtl.h (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): New macro.
10546 * gcse.c (hash_string_1): New function.
10547 (hash_expr_1) <ASM_OPERANDS>: Disregard filename and line number.
10548 (expr_equiv_p) <ASM_OPERANDS>: Likewise.
10549 * cse.c (rtx_cost): Don't increase the cost of ASM_OPERANDS.
10550 (canon_hash_string): New function.
10551 (canon_hash) <ASM_OPERANDS>: Disregard filename and line number.
10552 (exp_equiv_p) <ASM_OPERANDS>: Likewise.
10553 (fold_rtx): Use ASM_OPERANDS accessor macros.
10554 * emit-rtl.c (copy_insn_1): Likewise.
10555 * integrate.c (copy_rtx_and_substitute): Likewise.
10556 * stmt.c (expand_asm_operands): Likewise. Give an
10557 ASM_OPERANDS rtx the mode of the output reg being set from it.
10559 2000-09-01 Fred Fish <fnf@be.com>
10561 * fix-header.c (write_rbrac): Add putc and getc to list of
10562 functions to protect against prior definition as a macro.
10564 2000-09-01 Joseph S. Myers <jsm28@cam.ac.uk>
10566 * c-common.h (enum c_tree_index): Add CTI_C_SIZE_TYPE.
10567 (c_size_type_node): Define.
10568 * c-decl.c (init_decl_processing): Initialize c_size_type_node.
10569 * c-common.c (enum format_lengths, enum format_std_version,
10570 format_length_info, format_type_detail, BADLEN, NOLENGTHS,
10571 format_kind_info, printf_length_specs, scanf_length_specs, T89_I,
10572 T99_I, T89_L, T99_LL, TEX_LL, T89_S, T89_UI, T99_UI, T89_UL,
10573 T99_ULL, TEX_ULL, T89_US, T89_F, T99_F, T89_D, T99_D, T89_LD,
10574 T99_LD, T89_C, T99_SC, T99_UC, T89_V, T94_W, TEX_W, T94_WI,
10575 TEX_WI, T99_ST, T99_SST, T99_PD, T99_UPD, T99_IM, T99_UIM,
10576 format_types): Define.
10577 (format_char_info, print_char_table, scan_char_table,
10578 time_char_table): Rearrange for new organization of information
10579 about format length modifiers and standard versions.
10580 (T_ST): Redefine to use c_size_type_node.
10581 (check_format_info): Obtain information about length modifiers and
10582 standard versions from tables. Adjust warning message wordings.
10583 Use the name from the user's program for `ll' and `hh' length
10584 modifiers in warning messages. Use more informative names for
10585 wanted types where available (for wchar_t, wint_t, size_t, signed
10586 size_t, ptrdiff_t, unsigned ptrdiff_t, intmax_t and uintmax_t).
10588 2000-09-01 Jim Wilson <wilson@cygnus.com>
10590 * calls.c (emit_call_1): Add REG_NORETURN note to call if ECF_NORETURN.
10591 * combine.c (distribute_notes): Handle REG_NORETURN.
10592 * rtl.c (reg_note_name): Add REG_NORETURN.
10593 * rtl.h (enum reg_note): Likewise.
10595 * config/ia64/ia64-protos.h (emit_safe_across_calls): Renamed from
10597 * config/ia64/ia64.c (emit_safe_across_calls): Likewise.
10598 (rtx_needs_barrier): Handle unspec_volatile 8 and 9.
10599 (emit_predicate_relation_info): Handle conditional calls with
10601 * config/ia64/ia64.h (ASM_FILE_START): Call emit_safe_across_calls
10602 instead of ia64_file_start.
10603 * config/ia64/sysv4.h (ASM_FILE_START): Likewise.
10604 * config/ia64/ia64.md (safe_across_calls_all,
10605 save_across_calls_normal): New patterns.
10607 * loop.c (check_final_value): Check for biv use before checking for
10608 giv use. Check for both biv and giv uses. Always set last_giv_use
10609 if there is a giv use.
10611 2000-09-01 Richard Henderson <rth@cygnus.com>
10613 * config/ia64/ia64.md (mulsi3): Use grfr_register_operand.
10614 (madddi3): Likewise.
10617 Fri Sep 1 10:59:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10619 * expr.c (clear_storage): Don't use emit_move_insn unless
10620 either BLKmode or proper size.
10621 (store_constructor): Don't call clear_storage if REG of wrong size.
10623 * flow.c (init_propagate_block_info): Don't mark frame dead at end
10624 of function if returns wiht stack pointer depressed.
10626 2000-09-01 Andrew Haley <aph@redhat.com>
10628 * dwarf2out.c (stack_adjust_offset): New function.
10629 (dwarf2out_stack_adjust): Break out stack adjust logic into
10630 new stack_adjust_offset function. Look inside parallels and
10631 sequences for stack adjustments.
10633 2000-08-31 Jeff Law <law@cygnus.com>
10635 * arm.md: Use no_new_pseudos to determine when it is safe
10636 to create new pseudo registers.
10638 * arm.c (legitimize_pic_address): Use no_new_pseudos to determine
10639 when we can safely allocate new registers.
10641 2000-08-31 Geoffrey Keating <geoffk@cygnus.com>
10643 * stmt.c (expand_asm_operands): Twiddle generating_concat_p
10644 so that CONCATs are not generated for ASMs.
10645 * emit-rtl.c (gen_reg_rtx): Don't generate CONCATs when
10646 not generating_concat_p.
10647 * function.c (pop_function_context_from): Reset
10648 generating_concat_p.
10649 (prepare_function_start): Likewise.
10650 * rtl.c (generating_concat_p): Define.
10651 * rtl.h (generating_concat_p): Declare.
10652 * toplev.c (rest_of_compilation): No CONCATs after RTL generation.
10654 2000-08-22 Philipp Thomas <pthomas@suse.de>
10655 Masanobu Yuhara <yuhara@flab.fujitsu.co.jp>
10657 * gmicro.h (TARGET_SWITCHES): Add descriptions and mark them
10660 2000-08-30 Greg McGary <greg@mcgary.org>
10662 * Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
10663 * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC).
10664 * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE.
10666 2000-08-30 Greg McGary <greg@mcgary.org>
10668 * tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
10669 (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct.
10670 (TREE_INT_CST): New macro.
10671 * varasm.c (const_hash, compare_constant_1, record_constant_1):
10672 Use new macro TREE_INT_CST.
10674 Wed 30-Aug-2000 23:18:59 BST Neil Booth <NeilB@earthling.net>
10676 * contrib.texi: Add self.
10678 2000-08-30 Alexandre Oliva <aoliva@redhat.com>
10680 * config/sh/sh.md (cmpeqsi_ior_t, cmpeqsi_and_t): New insns.
10681 (cmpeqdi_t splitter): Use cmpeqsi_and_t instead of emitting jumps
10684 2000-08-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10686 * fixinc/gnu-regex.c: Don't define `const'.
10688 Tue Aug 29 22:09:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10690 * expr.c (store_constructor): Allow variable bounds of array type.
10691 (expand_expr): Don't blow up if type is ERROR_MARK.
10692 * varasm.c (output_constructor): Don't access lower bound of array
10693 type unless need it if index is supplied (so it can be a variable
10694 if no index is supplied).
10695 Use tree_low_cst; use HOST_WIDE_INT for sizes; change BITPOS to POS.
10696 Other minor cleanups.
10698 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10700 * Makefile.in: Revamp handling of cflags to allow different WARN_CFLAGS
10701 for compilations in stage 1 and subsequent stages, respectively.
10702 * configure.in (vax): Add compiler-dependent CFLAGS for stage 1.
10703 * configure: Rebuilt.
10704 * x-vax, x-vax-gcc: Deleted.
10706 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10708 * c-common.c (declare_function_name): Use func_id_node,
10709 function_id_node, and pretty_function_id_node. Do not make
10710 __func__ visible at file scope.
10711 * c-common.h (c_tree_index): Add CTI_FUNCTION_ID,
10712 CTI_PRETTY_FUNCTION_ID, and CTI_FUNC_ID.
10713 (function_id_node, pretty_function_id_node, func_id_node): New
10715 * c-decl.c (init_decl_processing): Initialize function_id_node,
10716 pretty_function_id_node, and func_id_node.
10717 (c_make_fname_decl): Correct comment.
10719 * tree.h (struct tree_identifier): Constify pointer member.
10721 * c-decl.c (pushdecl, implicit_decl_warning): Constify a char *.
10722 * c-pragma.h (struct weak_syms): Constify name and value members.
10723 (add_weak): Constify arguments.
10725 * calls.c (special_function_p): Constify a char *.
10726 (expand_call): Remove variable which is initialized and then
10728 * dependence.c (struct def_use, struct induction, struct subscript):
10729 Constify 'variable' member.
10730 (get_low_bound, have_induction_variable): Constify char * argument.
10731 (find_induction_variable): Add braces to avoid dangling else.
10732 (classify_dependence): Constify char * arrays.
10733 * profile.c (output_func_start_profiler): Constify a char *.
10734 * stor-layout.c (finalize_record_size): Constify a char *.
10735 * tree.c (is_attribute_p): Constify a char *.
10736 * varasm.c (add_weak, remove_from_pending_weak_list): Constify argument.
10738 * varasm.c (make_function_rtl, make_decl_rtl): Rearrange code
10739 for comprehensibility. Do not call get_identifier if we did
10740 not change the DECL_ASSEMBLER_NAME of the decl. Use alloca to
10741 create temporary string constants, not ggc_alloc_string. No
10742 need to copy result of ASM_FORMAT_PRIVATE_NAME. Use const
10743 char * to hold IDENTIFIER_POINTERs.
10745 2000-08-29 Richard Henderson <rth@cygnus.com>
10747 * config/ia64/ia64.md (muldi3): Use grfr_register_operand
10750 2000-08-29 Richard Henderson <rth@cygnus.com>
10752 * reload.c (push_secondary_reload): Allow class == reload_class
10753 if we're using a reload_in/out pattern.
10755 * config/ia64/ia64.md (reload_inti): Use a TImode scratch. Use
10756 the half that does not conflict with the reload register.
10757 (reload_outti): Likewise.
10759 2000-08-29 Kazu Hirata <kazu@hxi.com>
10761 * reload.c: Fix formatting.
10763 * stmt.c: Fix formatting.
10765 * gcc.c: Fix formatting.
10767 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10769 * flags.h (time_report, mem_report): New global flags.
10770 * toplev.c: Define time_report and mem_report.
10771 (f_options): Add -ftime-report and -fmem-report.
10772 (compile_file): Turn on time_report if quiet_flag is off.
10773 Call ggc_print_statistics at very end if mem_report is on.
10774 * timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
10776 * ggc-common.c (ggc_print_statistics): Rename to
10777 ggc_print_common_statistics; all callers changed. Scale
10778 quantities above 10K to kilobytes and above 10M to megabytes.
10779 * ggc-page.c (ggc_page_print_statistics): Rename to
10780 ggc_print_statistics. Report memory consumed by internal data
10781 structures for each allocation bucket. Scale quantities above
10782 10K to kilobytes and above 10M to megabytes.
10783 * ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
10784 Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
10785 Define tally_leaves always.
10786 (ggc_print_statistics): New function.
10787 * ggc.h: Adjust for renamed functions.
10789 Wed Aug 30 00:11:42 2000 Denis Chertykov <denisc@overta.ru>
10791 * config/avr/avr.md ("*movsf","*movsi"): Pass NULL to
10792 output_movsisf instead of which_alternative.
10794 * config/avr/avr.c (output_reload_inhi): Check for NULL ponter.
10796 Tue Aug 29 22:29:58 2000 Denis Chertykov <denisc@overta.ru> & Marek Michalkiewicz <marekm@linux.org.pl>
10798 * config/avr/avr-protos.h: (avr_output_ascii) Removed.
10799 (avr_progmem_p): New prototype.
10800 (output_movsisf): Prototype declaration changed.
10801 (output_movqi): New prototype.
10802 (output_movhi): New prototype.
10803 (call_insn_operand): Likewise.
10804 (final_prescan_insn): Likewise.
10805 (avr_simplify_comparision_p): Likewise.
10806 (avr_normalize_condition): Likewise.
10807 (compare_eq_p): Likewise.
10808 (out_shift_with_cnt): Likewise.
10809 (const_int_pow2_p): Likewise.
10810 (output_reload_inhi): Prototype declaration changed.
10812 * config/avr/avr.c: (debug_hard_reg_set): Prototype declared.
10813 (ldi_reg_rtx): New. rtx for r31.
10814 (avr_init_stack): Initialize as "__stack".
10815 (function_prologue): Use it.
10816 Replace all TARGET_ENHANCED with AVR_ENHANCED.
10817 (avr_mcu_name): Initialize as "avr2".
10818 (avr_enhanced_p, avr_mega_p): New variables.
10819 (mcu_types, avr_override_options): Handle all known MCU types.
10820 Also handle avr1 (only preprocess, assemble and link).
10821 (print_operand): Using of `%K' in output template removed.
10822 (out_movqi_r_mr): Optimized.
10823 (out_movhi_r_mr): Likewise.
10824 (output_movqi): New function.
10825 (output_movhi): Likewise.
10826 (out_movsi_r_mr): Optimized.
10827 (output_movsisf): Compute insn length for `adjust_insn_length'
10828 (out_movqi_mr_r): Optimized.
10829 (out_movhi_mr_r): Optimized.
10830 (adjust_insn_length): Use output_movsisf, output_movqi,
10831 output_movhi for insn length adjusting.
10832 (reg_unused_after): Use dead_or_set_p.
10833 (preferred_reload_class): Now havn't any restriction.
10834 (reg_was_0): New function.
10835 (io_address_p): Likewise.
10836 (const_int_pow2_p): Likewise.
10837 (output_reload_inhi): Likewise.
10838 (output_reload_insisf): Likewise.
10840 * config/avr/avr.h (MULTILIB_DEFAULTS): Define.
10841 (LIB_SPEC): Use -lc for all supported devices.
10842 (LIBGCC_SPEC): Use -lgcc for all supported devices.
10843 (AVR_MEGA): Define as avr_mega_p.
10844 (AVR_ENHANCED): New, define as avr_enhanced_p.
10845 (TARGET_SWITCHES): Remove -menhanced, now handled by -mmcu=...
10846 (CPP_SPEC, LINK_SPEC): Handle all known MCU types.
10847 (CRT_BINUTILS_SPECS): Handle all known MCU types.
10848 Rename gcrt1-*.o to make file names unique on 8.3 filesystems.
10849 (EXTRA_SPECS): Add CPP_AVR[1-5]_SPEC.
10850 (ASM_SPEC): Pass -mmcu=... to the assembler.
10851 Change all -DAVR_* to -D__AVR_*__.
10852 (INIT_TARGET_OPTABS), config/avr/libgcc.S:
10853 Rename library functions to start with two underscores.
10854 (ASM_OUTPUT_COMMON): Outputs `.comm VAR,VAR-SIZE,1' to avoid
10856 (ASM_WEAKEN_LABEL): Declared for __attribute__((weak)).
10857 (SUPPORTS_WEAK): Likewise.
10858 (LDI_REG_REGNO): New. Register r31 will be used as temporary
10859 register for loading constants to r0-r14.
10861 * config/avr/avr.md: Replace all TARGET_ENHANCED with
10863 (*mov_r_sp): Removed. Handled by output_movhi.
10864 (*mov_sp_r): Likewise.
10865 (*mov_sp_r_no_interrupts): Likewise
10866 (*mov_sp_r_tiny): Likewise.
10867 (*movqi): Use output_movqi.
10868 (*reload_inqi): New.
10869 (*movhi): Use output_movhi.
10870 (*reload_inhi): New.
10871 (*negsi2): Optimized.
10872 (*negsf2): Likewise.
10873 Added peepholes (define_peephole2) for loading constants to r0-r14
10874 and for using `cpse' command.
10876 * config/avr/libgcc.S: Rename library functions to start with two
10878 Add support for enhanced core.
10879 (_moqhi3): Fix typo, now _modqi3.
10880 (__divsi_raw): Use __zero_reg__ as loop counter, smaller by 1 word.
10881 (__prologue_saves__): Remove test for stack adjust by 0.
10882 (__tablejump__): New.
10884 * config/avr/t-avr: Build libgcc2 with -mcall-prologues.
10885 Add multilib support.
10887 Tue Aug 29 15:17:54 EDT 2000 John Wehle (john@feith.com)
10889 * loop.c (prescan_loop): Don't check unknown_address_altered
10890 when deciding if insert_loop_mem is safe. Add BLKmode MEMs
10891 to loop_store_mems as necessary.
10892 (loop_invariant_p): Don't check unknown_address_altered
10893 or unknown_constant_address_altered.
10895 2000-08-29 J. David Anglin <dave@hiauly1.hia.nrc.ca>
10897 * vax.md (sltu, sgeu): Delete sltu and sgeu insn patterns.
10899 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
10901 * cpperror.c (print_file_and_line): If line is (unsigned int)-1,
10902 print just the filename.
10903 * cpplex.c (_cpp_run_directive): Add additional argument, the
10904 name to give the synthetic buffer. This defaults to
10905 translated "<command line>".
10906 * cpplib.c (cpp_define, cpp_undef, cpp_assert, cpp_unassert):
10908 (_cpp_define_builtin): New function.
10909 * cppinit.c (initialize_builtins): Use _cpp_define_builtin.
10910 * cpphash.h: Update prototypes.
10912 * tradcpp.c (main): Process -D and -U simultaneously, in the
10913 order they appeared on the command line.
10915 2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10917 * c-decl.c (define_label): Call warning_with_file_and_line and
10918 error_with_file_and_line instead of plain warning or error.
10920 * c-parse.in (label): Use save_filename/save_lineno to ensure
10921 correct values for calls to define_label.
10923 2000-08-29 Mark Mitchell <mark@codesourcery.com>
10925 * calls.c (expand_call): Don't create a VAR_DECL just to throw it
10927 * expr.c (expand_expr, case TARGET_EXPR): Don't call
10929 * tree.h (get_file_function_name): Remove two duplicate
10932 2000-08-28 Kazu Hirata <kazu@hxi.com>
10934 * tree.c: Fix formatting.
10936 * xcoffout.c: Fix formatting.
10938 2000-08-28 Jason Merrill <jason@redhat.com>
10940 * dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
10942 2000-08-28 Daniel Berlin <dberlin@redhat.com>
10944 * dwarf2out.c (dwarf2out_finish): Don't bother calling
10945 break_out_includes if it won't do anything.
10947 2000-08-28 Richard Henderson <rth@cygnus.com>
10949 * reload.c (push_secondary_reload): Revert 2000-08-16 change.
10950 (find_reloads): Likewise.
10951 * config/alpha/alpha.md (reload_inqi): Revert 2000-08-11 change.
10952 (reload_inhi): Likewise.
10954 2000-08-28 Richard Henderson <rth@cygnus.com>
10956 * config/i386/i386.c: Don't error on EXTRA_CONSTRAINT defined.
10957 (call_insn_operand): Don't expect a surrounding mem.
10958 (constant_call_address_operand): Likewise.
10959 * config/i386/i386.h (PREDICATE_CODES): Update.
10960 * config/i386/i386.md (call patterns): Move the match_operand
10961 for the call destination inside the mem.
10963 2000-08-28 Richard Henderson <rth@cygnus.com>
10965 * local-alloc.c (requires_inout): Don't use reserved range for
10966 EXTRA_CONSTRAINTS; use anything not matched by REG_CLASS_FROM_LETTER.
10967 * recog.c (asm_operand_ok): Likewise.
10968 (preprocess_constraints, constrain_operands): Likewise.
10969 * regclass.c (record_reg_classes): Likewise.
10970 * reload.c (find_reloads): Likewise.
10971 * reload1.c (maybe_fix_stack_asms): Likewise.
10972 (reload_cse_simplify_operands): Likewise.
10973 * stmt.c (expand_asm_operands): Likewise.
10975 * md.texi: Update constraints documentation.
10976 * tm.texi (EXTRA_CONSTRAINT): Update.
10978 2000-08-28 Daniel Berlin <dberlin@redhat.com>
10980 * dwarf2out.c (DIE_LABEL_PREFIX): Remove leading "__".
10981 (print_die): If we don't know the offset of the
10982 target die, try the symbol. Add a trailing newline.
10983 (reverse_all_dies): New fn.
10984 (dwarf2out_finish): Call it.
10985 (break_out_includes): Reorganize for clarity.
10986 (add_sibling_attributes): Don't call reverse_die_lists.
10987 (output_comp_unit): Rename from output_comdat_comp_unit. Use for
10989 * flags.h: Add flag_eliminate_dwarf2_dups.
10990 * toplev.c (f_options): Support -feliminate-dwarf2-dups.
10992 2000-08-28 Jason Merrill <jason@redhat.com>
10994 * dwarf2.h (DW_TAG_GNU_BINCL, DW_TAG_GNU_EINCL): New tags.
10995 * dwarf2out.c: #include "md5.h".
10996 (DIE_LABEL_PREFIX): New macro.
10997 (dw_val_struct): Add 'external' flag to val_die_ref.
10998 (add_AT_die_ref, AT_ref): Adjust.
10999 (AT_ref_external, set_AT_ref_external): New fns.
11000 (build_abbrev_table): Call set_AT_ref_external.
11001 (value_format): Call AT_ref_external.
11002 (die_struct): Add die_symbol field.
11003 (new_die): Clear it.
11004 (dwarf_tag_name): Handle BINCL/EINCL.
11005 (dwarf2out_start_source_file): Add BINCL DIE.
11006 (dwarf2out_end_source_file): Add EINCL DIE.
11007 (push_new_compile_unit, pop_compile_unit, clear_die_sizes): New fns.
11008 (loc_checksum, attr_checksum, die_checksum): New fns.
11009 (is_type_die, is_comdat_die, is_symbol_die): New fns.
11010 (compute_section_prefix, assign_symbol_names): New fns.
11011 (gen_internal_sym, output_die_symbol, output_symbolic_ref): New fns.
11012 (output_die): Call output_die_symbol and AT_ref_external.
11013 (output_comdat_comp_unit): New fn, split out from...
11014 (dwarf2out_finish): ...here. Also call add_sibling_attributes for
11016 (output_pubnames, output_aranges): Abort if we see entries from
11018 * toplev.h: Declare file_name_nondirectory.
11019 * toplev.c (file_name_nondirectory): New fn, moved from C++ frontend.
11020 (rest_of_type_compilation): Call dwarf2out_decl if at toplevel.
11021 (debug_start_source_file): Call dwarf2out_start_source_file
11022 regardless of debug verbosity.
11023 (debug_end_source_file): Similarly.
11024 * tree.h: Declare clean_symbol_name.
11025 * tree.c (clean_symbol_name): Split out from...
11026 (get_file_function_name_long): ...here.
11028 * dwarf2out.c (new_loc_descr): Use calloc.
11029 (splice_child_die): Remove the die from the right parent.
11030 (gen_struct_or_union_die): Don't add AT_name to a specification DIE.
11032 Mon Aug 28 19:02:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11034 * toplev.c (decode_g_option): Don't give warning for unknown -g
11035 option; return 0 instead.
11036 (main): If -g option is not recognized by front end or
11037 language-independent code, give warning.
11039 2000-08-28 Greg McGary <greg@mcgary.org>
11041 * config/i386/i386-protos.h (ix86_expand_compare): Add extern decl.
11042 * config/i386/i386.c (ix86_expand_compare): Remove `static'.
11043 * config/i386/i386.md (trap, conditional_trap): New insn & expand.
11045 2000-08-27 Greg McGary <greg@mcgary.org>
11047 * cpplex.c (parse_string): Don't look for backslash
11048 before first char in `namebuf'.
11049 * loop.c (strength_reduce): Skip NOTEs.
11051 2000-08-27 Jason Merrill <jason@redhat.com>
11053 * c-decl.c (duplicate_decls): Don't set TREE_STATIC or clear
11054 DECL_EXTERNAL on a local extern. Don't set DECL_IGNORED_P or
11055 TREE_ASM_WRITTEN, either.
11056 (finish_decl): Adjust.
11058 2000-08-28 Philipp Thomas <pthomas@suse.de>
11060 * ABOUT-GCC-NLS: Remove gettext patches from Paul Eggert as
11061 they have been incorporated into the gettext CVS. Change the text to
11062 reflect the current status of NLS. Add instructions for accessing
11063 the gettext CVS and add the patch from Martin v. Loewis.
11065 2000-08-27 Geoff Keating <geoffk@cygnus.com>
11067 * config/rs6000/rs6000.md (movdi_internal64+5): Make SUBREG-safe
11068 by using gen_lowpart_common.
11069 (movdi_internal64+6): Likewise.
11071 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
11073 * tm.texi (FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION):
11076 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Remap register
11077 numbers to the ranges used by GDB.
11079 2000-08-25 Richard Henderson <rth@cygnus.com>
11081 * config/ia64/ia64.h (struct machine_function): Add n_varargs.
11082 * config/ia64/ia64.c (ia64_compute_frame_size): Use it.
11083 (ia64_expand_prologue): Likewise.
11084 (ia64_setup_incoming_varargs): Set it. Properly skip the current
11085 argument for stdargs.
11087 2000-08-25 Jason Merrill <jason@redhat.com>
11089 * integrate.c (expand_inline_function): Pull out the original decl.
11091 2000-08-25 Jim Wilson <wilson@cygnus.com>
11093 * cse.c (cse_insn): Don't pass label subtraction to force_const_mem.
11095 * function.c (gen_mem_addressof): Clear MEM_ALIAS_SET if no decl.
11097 2000-08-25 Greg McGary <greg@mcgary.org>
11099 * flow.c (dump_edge_info): Use ARRAY_SIZE.
11100 * config/alpha/alpha.c (alpha_expand_block_move): Likewise.
11102 2000-08-25 Richard Earnshaw <rearnsha@arm.com>
11104 * arm.h (STRUCT_VALUE): Define to 0, not NULL.
11106 Fri Aug 25 12:52:49 EDT 2000 John Wehle (john@feith.com)
11108 * i386.c (ix86_find_base_term): New.
11109 * i386-protos.h (ix86_find_base_term): Prototype.
11110 * i386.h (FIND_BASE_TERM): Define.
11111 * alias.c (find_base_term): Use it.
11112 * tm.texi (FIND_BASE_TERM): Document it.
11114 * alias.c (true_dependence, write_dependence_p): Unchanging
11115 memory can't conflict with non-unchanging memory.
11117 * alias.c (memrefs_conflict_p): A BLKmode reference
11118 to a symbol (or CONST_INT address) always conflicts
11119 with a reference to another symbol.
11121 2000-08-25 Joseph S. Myers <jsm28@cam.ac.uk>
11123 * c-common.c (time_char_table): Don't allow width and flags with
11126 2000-08-25 Jakub Jelinek <jakub@redhat.com>
11128 * config/i386/i386.c (ix86_expand_branch): Treat GE and GEU the same
11129 way as LT and LTU when the second operand has 0 in low word.
11131 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11133 * basic-block.h (struct loop): Rename `exits' field to
11134 `exit_edges'. Add `entry_edges' and `num_entries' fields.
11136 * flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
11137 (flow_loop_entry_edges_find): Add.
11138 (flow_edge_list_print): Rename from flow_exits_print.
11139 (flow_loops_find): Call flow_loop_entry_edges_find.
11140 (flow_loop_dump): Dump entry_edges list.
11141 (flow_loops_free): Free entry_edges.
11143 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11145 * loop.c (loop_dump_aux, debug_loop): New functions.
11146 (LOOP_BLOCK_NUM_1, LOOP_BLOCK_NUM, LOOP_INSN_UID): New macros.
11148 * flow.c (flow_loops_dump): Add callback parameter.
11149 (flow_loop_dump): Add callback parameter and call it. Move
11150 loop note debugging code to loop_dump_aux.
11152 * basic-block.h (flow_loop_dump): Add callback parameter
11153 (flow_loops_dump): Likewise.
11155 * toplev.c (rest_of_compilation): Add NULL callback function pointer
11156 to call to flow_loops_dump.
11158 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11160 * loop.c (count_loop_regs_set): Replace start and end arguments
11161 with loop argument. All callers udated.
11163 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11165 * loop.c (constant_high_bytes): Delete.
11167 2000-08-26 Michael Hayes <mhayes@cygnus.com>
11169 * loop.c (prescan_loop): Move checks for NOTE_INSN_LOOP_CONT
11170 and NOTE_INSN_LOOP_VTOP to...
11171 (find_and_verify_loops) ...here.
11173 Fri Aug 25 04:21:13 2000 Alexandre Oliva <aoliva@redhat.com>
11175 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Define default.
11176 (fini_dummy, init_dummy): Use it.
11178 Fri 25-Aug-2000 08:03:27 BST Neil Booth <NeilB@earthling.net>
11180 * cpplex.c (is_macro_disabled): Caller has already checked
11181 that we're not a preprocessed file.
11183 2000-08-24 Mark Mitchell <mark@codesourcery.com>
11185 * Makefile.in (C_AND_OBJC_OBJS): Remove c-iterate.o.
11186 (c-iterate.o): Remove target.
11187 * gcc/c-common.h (enum rid): Remove RID_ITERATOR.
11188 * gcc/c-decl.c (init_decl_processing): Remove call to init_iterators.
11189 (finish_decl): Don't handle iterators.
11190 (grokdeclarator): Likewise.
11191 * gcc/c-parse.gperf: Remove __iterator and __iterator__ keywords.
11192 * gcc/c-gperf.h: Regenerated.
11193 * gcc/c-iterate.c: Removed.
11194 * gcc/c-lex.c (init_lex): Don't handle iterators.
11195 * gcc/c-parse.in (primary): Remove pop_iterator_stack call.
11196 (compstmt_primary_start): Remove push_iterator_stack call.
11197 (stmt): Don't allow iterator statements. Replace iterator_expand
11198 with expand_expr_stmt.
11199 (all_iter_stmt): Remove.
11200 (all_iter_stmt_simple): Likewise.
11201 (all_iter_stmt_with_decl): Likewise.
11202 * gcc/c-tree.h (ITERATOR_P): Remove.
11203 (ITERATOR_BOUND_P): Likewise.
11204 (init_iterators): Remove declaration.
11205 (iterator_expand): Likewise.
11206 (iterator_for_loop_start): Likewise.
11207 (iterator_for_loop_end): Likewise.
11208 (iterator_for_loop_record): Likewise.
11209 (push_iterator_stack): Likewise.
11210 (pop_iterator_stack): Likewise.
11211 * gcc/c-typeck.c (decl_constant_value): Don't check ITERATOR_P.
11212 (readonly_warning): Likewise.
11213 * gcc/tree.h (ITERATOR_BOUND_P): Don't mention it.
11215 2000-08-24 Jim Wilson <wilson@cygnus.com>
11217 * c-common.c (decl_attributes, case A_ALIGN): Revert last change.
11218 Copy type in a TYPE_DECL, just like pushdecl does.
11220 2000-08-24 Richard Henderson <rth@cygnus.com>
11222 * toplev.c (main): Enable flag_reorder_blocks at -O2.
11224 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
11226 * ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
11227 asked for one page, allocate GGC_QUIRE_SIZE of them and put
11228 the extras on the free list.
11229 (release_pages): Clean up.
11230 (ggc_set_mark): Don't adjust G.allocated here...
11231 (sweep_pages): ... do it here.
11233 2000-08-24 Zack Weinberg <zack@wolery.cumb.org>
11235 * cppfiles.c (read_include_file): Rearrange initializations.
11237 2000-08-24 Richard Henderson <rth@cygnus.com>
11239 * stmt.c (expand_asm_operands): Treat EXTRA_CONSTRAINT like g or X.
11241 * config/ia64/ia64-protos.h: Update.
11242 * config/ia64/ia64.c (gr_register_operand): New.
11243 (fr_register_operand, grfr_register_operand): New.
11244 (gr_nonimmediate_operand, grfr_nonimmediate_operand): New.
11245 (grfr_reg_or_8bit_operand): New.
11246 (gr_reg_or_0_operand): Rename from reg_or_0_operand and
11247 use gr_register_operand.
11248 (gr_reg_or_5bit_operand, gr_reg_or_6bit_operand): Likewise.
11249 (gr_reg_or_8bit_operand, gr_reg_or_8bit_adjusted_operand): Likewise.
11250 (gr_reg_or_8bit_and_adjusted_operand): Likewise.
11251 (gr_reg_or_14bit_operand, gr_reg_or_22bit_operand): Likewise.
11252 (fr_reg_or_fp01_operand): Likewise.
11253 (not_postinc_memory_operand): New.
11254 (ia64_split_timode): Remove unused variables.
11255 (rtx_needs_barrier): Check arguments to cmpxchg.
11256 (builtin_description): Remove.
11257 (bdesc_2argsi, bdesc_2argdi): Remove.
11258 (ia64_init_builtins): Declare all builtins directly.
11259 (ia64_expand_fetch_and_op): Rewrite to be called from
11260 ia64_expand_builtin directly. Use expand_binop and co.
11261 (ia64_expand_op_and_fetch): Likewise.
11262 (ia64_expand_compare_and_swap): Likewise.
11263 (ia64_expand_binop_builtin): Remove.
11264 (ia64_expand_lock_test_and_set): New.
11265 (ia64_expand_lock_release): New.
11266 (ia64_expand_builtin): Use them.
11267 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_S): New.
11268 (EXTRA_CONSTRAINT): Use it.
11269 (PREDICATE_CODES): Update.
11270 * config/ia64/ia64.md (*): Use gr_register_operand and co.
11271 (mf): Indicate that we set memory as well as use it.
11272 (fetchadd_acq_si): Show memory being modified as well.
11273 (fetchadd_acq_di, cmpxchg_acq_si, cmpxchg_acq_di): Likewise.
11274 (val_compare_and_swap_si, val_compare_and_swap_di): Remove.
11275 (lock_test_and_set_si, lock_test_and_set_di): Remove.
11276 (fetch_and_add_si, fetch_and_sub_si, fetch_and_or_si): Remove.
11277 (fetch_and_and_si, fetch_and_xor_si, fetch_and_nand_si): Remove.
11278 (fetch_and_add_di, fetch_and_sub_di, fetch_and_or_di): Remove.
11279 (fetch_and_and_di, fetch_and_xor_di, fetch_and_nand_di): Remove.
11280 (add_and_fetch_di, sub_and_fetch_di, or_and_fetch_di): Remove.
11281 (and_and_fetch_di, xor_and_fetch_di, nand_and_fetch_di): Remove.
11282 (add_and_fetch_si, sub_and_fetch_si, or_and_fetch_si): Remove.
11283 (and_and_fetch_si, xor_and_fetch_si, nand_and_fetch_si): Remove.
11284 * config/ia64/ia64intrin.h (*): Cast result to the appropriate
11285 return type. Pretty print definitions.
11287 2000-08-24 Jim Wilson <wilson@cygnus.com>
11289 * config/ia64/ia64.md (movdi): Don't call gen_movdi_symbolic if
11290 we have a SYMBOL_REF with SYMBOL_REF_FLAG set.
11292 2000-08-24 Jason Merrill <jason@redhat.com>
11294 * dwarf2out.c (AT_flag, AT_int, AT_unsigned, AT_string, AT_ref,
11295 AT_loc, AT_addr, AT_lbl): Abort on unsuitable input.
11296 (get_AT_low_pc, get_AT_hi_pc, get_AT_string, get_AT_flag,
11297 get_AT_unsigned, get_AT_ref): Don't call them if get_AT fails.
11299 2000-08-24 Greg McGary <greg@mcgary.org>
11301 * optabs.c (init_optabs): Initialize fixtab, fixtrunctab, floattab,
11302 and extendtab within their proper array boundaries.
11303 * emit-rtl.c (init_emit_once): Pass `const_tiny_rtx' with bounds
11304 for the entire array.
11306 * config/arm/arm.c (arm_override_options): Use ARRAY_SIZE.
11307 * config/alpha/alpha.c (alpha_lookup_xfloating_lib_func): Likewise.
11308 * config/avr/avr.c (order_regs_for_local_alloc): Likewise.
11309 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11310 * config/i386/dgux.c (output_options): Likewise.
11311 * config/i386/dgux.h (ASM_FILE_START): Likewise.
11312 * config/m88k/m88k.c (output_options): Likewise.
11313 * config/m88k/m88k.h (ASM_FILE_START): Likewise.
11314 * config/mcore/mcore.c (mcore_output_inline_const_forced,
11315 layout_mcore_frame, handle_structs_in_regs): Likewise.
11316 * config/mips/mips.c (output_block_move): Likewise.
11317 * config/rs6000/rs6000.c (rs6000_override_options,
11318 rs6000_file_start): Likewise.
11319 * config/sparc/sparc.c (sparc_add_gc_roots): Likewise.
11320 * fixinc/fixfixes.c (FIX_TABLE_CT): Likewise.
11321 * fixinc/fixtests.c (TEST_TABLE_CT): Likewise.
11322 * builtins.c (expand_builtin_setjmp): Likewise.
11323 * expr.c (safe_from_p): Likewise.
11324 * flow.c (life_analysis): Likewise.
11325 * fold-const.c (size_int_type_wide): Likewise.
11326 * gcc.c (translate_options, init_spec, set_spec, main): Likewise.
11327 * genattrtab.c (make_length_attrs): Likewise.
11328 * genopinit.c (gen_insn): Likewise.
11329 * genrecog.c (NUM_KNOWN_PREDS, NUM_SPECIAL_MODE_PREDS): Likewise.
11330 * global.c (global_alloc): Likewise.
11331 * local-alloc.c (find_free_reg): Likewise.
11332 * mips-tdump.c (print_symbol): Likewise.
11333 * mips-tfile.c (parse_def, parse_input): Likewise.
11334 * reload1.c (NUM_ELIMINABLE_REGS): Likewise.
11335 * stmt.c (expand_nl_goto_receiver): Likewise.
11336 * stor-layout.c (set_sizetype): Likewise.
11337 * varasm.c (decode_reg_name): Likewise.
11338 * toplev.c (decode_f_option, decode_W_option,
11339 set_target_switch, print_switch_values): Likewise.
11340 (NUM_ELEM): Remove macro.
11341 (display_help, main): s/NUM_ELEM/ARRAY_SIZE/
11343 2000-08-24 Greg McGary <greg@mcgary.org>
11345 * tree.h (enum tree_index): New member `TI_MAIN_IDENTIFIER'.
11346 (MAIN_NAME_P, main_identifier_node): New macros.
11347 * c-common.c (c_common_nodes_and_builtins): Init main_identifier_node.
11348 * c-decl.c (start_decl, grokdeclarator, start_function,
11349 store_parm_decls, finish_function): Use MAIN_NAME_P.
11350 * config/avr/avr.c (function_prologue, function_epilogue): Likewise.
11351 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11352 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11353 * config/pdp11/pdp11.c (output_function_prologue): Likewise.
11355 2000-08-24 Greg McGary <greg@mcgary.org>
11357 * cppfiles.c (actual_directory): Don't write beyond `dir'
11358 when it contains "".
11359 * real.c (asctoeg): Stay within bounds of etens[][].
11361 2000-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11363 * dependence.c (dependence_string, direction_string,
11364 dump_one_node, dump_node_dependence): Hide unused identifiers.
11365 (get_low_bound, normalize_coefficients): Match definition to
11367 (get_one_coefficient): Initialize variables `value0_is_idx' and
11369 (ziv_test, gcd_test): Mark parameters with ATTRIBUTE_UNUSED.
11370 (ziv_test): Delete variable `idx', use parameter `sub' instead.
11371 (direction_merge): Avoid automatic aggregate initialization.
11372 (have_dependence_p): Use `src' not `dest' to set `src_idx'.
11373 Initialize variables `dest_idx' and `src_idx'.
11374 (end_dependence_analysis): Avoid C89 style function definition.
11376 2000-08-24 Joseph S. Myers <jsm28@cam.ac.uk>
11378 * c-common.c (time_char_table): Don't allow width with %F.
11379 (check_format_info): Don't allow "Z" length with scanf.
11381 2000-08-24 Gabriel Dos Reis <gdr@codesourcery.com>
11383 * diagnostic.c (finish_diagnostic): Define.
11384 (output_do_printf): Use wrap_text instead of output_add_string.
11385 (default_print_error_function): Avoid embedded '\n'.
11387 * diagnostic.h (flush_diagnostic_buffer): Declare.
11389 2000-08-23 Alexandre Oliva <aoliva@redhat.com>
11391 * dependence.c: Replace `[][]' with `[][MAX_SUBSCRIPTS]'.
11393 2000-08-23 Hans-Peter Nilsson <hp@axis.com>
11395 * Makefile.in (GCC_PASSES): Add specs.
11397 2000-08-23 Jim Wilson <wilson@cygnus.com>
11399 * frame.h (IA64_UNW_EHANDLER, IA64_UNW_UHANDLER): New.
11400 * config/ia64/frame-ia64.c (__get_personality): Return zero if neither
11401 EHANDLER nor UHANDLER bit is set.
11402 (__get_except_table): Likewise.
11404 2000-08-23 Nick Clifton <nickc@redhat.com>
11406 * config/arm/lib1funcs.asm: Replace upper case condition codes
11407 with lower case versions.
11409 * config/arm/arm.h (STRUCT_VALUE): Define.
11410 (STRUCT_VALUE_REGNUM): Delete.
11412 2000-08-23 Zack Weinberg <zack@wolery.cumb.org>
11414 * cpphash.h (IN_I): New flag for directive table.
11415 * cpplib.c (DIRECTIVE_TABLE): Mark #define, #undef, #ident, and
11417 (_cpp_check_directive): If -fpreprocessed, execute directives
11418 marked with IN_I. Issue no warnings in this case.
11419 * cpplex.c (_cpp_get_token): Expand no macros if -fpreprocessed.
11421 2000-08-23 Joseph S. Myers <jsm28@cam.ac.uk>
11423 * c-common.c (print_char_table): Allow 'I' flag with %d, %i and
11425 (check_format_info): Support printf 'I' flag; warn about it with
11428 2000-08-23 Richard Earnshaw (rearnsha@arm.com)
11430 * arm.c (arm_expand_prologue): Ensure that the stack-adjustment
11431 barrier can't be ignored by the alias analysis code.
11433 2000-08-12 Eli Zaretskii <eliz@is.elta.co.il>
11435 * fixinc/inclhack.def (sysv68_string): Fix the Sed script so it
11436 works inside fixincl.
11438 Wed Aug 23 04:55:48 2000 Alexandre Oliva <aoliva@redhat.com>
11440 * simplify-rtx.c (simplify_rtx): Don't pass VOIDmode to
11441 simplify_relational_operation() unless both operands are of
11443 * cse.c (fold_rtx): Likewise.
11445 Tue Aug 22 23:53:27 EDT 2000 John Wehle (john@feith.com)
11447 * rtlanal.c (rtx_unstable_p): The pic register is stable
11448 (within one function) and the actual rtx should be used
11449 when checking the registers.
11450 (rtx_addr_can_trap_p): Pic memory addresses can't trap.
11452 * alias.c (true_dependence, write_dependence_p): Fix
11453 bug in previous patch.
11455 * i386.c (ix86_GOT_alias_set): New.
11456 (legitimize_pic_address): Use it.
11458 * rtlanal.c (rtx_unstable_p): An unchanging MEM is
11459 only stable if its address is stable.
11460 (rtx_varies_p): An unchanging MEM can't vary if
11461 its address doesn't vary.
11463 2000-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11465 * c-parse.in (unop +): Restrict -Wtraditional warnings to user code.
11467 2000-08-22 J. David Anglin <dave@hiauly1.hia.nrc.ca>
11469 * vax.h (ASM_SPEC): Pass `-J' to assembler.
11470 * x-vax-gcc: New file for bootstrapping with gcc.
11471 * x-vax: Use X_CFLAGS rather than X_CPPFLAGS to pass `-J'.
11472 * configure.in: Use x-vax-gcc with gcc.
11473 * configure: Rebuilt.
11475 Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11477 * toplev.c (rest_of_compilation): Rebuild label notes after
11478 post-reload splitting pass if new labels have been created.
11480 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11482 * diagnostic.h (output_buffer_state): New macro.
11483 * diagnostic.c (diagnostic_for_decl, sorry,
11484 default_print_error_function, output_do_verbatim,
11485 report_diagnostic, report_problematic_module): Use it.
11486 (wrap_text): Tweak.
11487 (output_format): Use wrap_text instead of maybe_wrap_text.
11489 2000-08-22 Nick Clifton <nickc@redhat.com>
11491 * config/arm/lib1funcs.asm (ARM_DIV_MOD_BODY): New macro.
11492 Common code for ARM divide and modulus functions.
11493 (THUMB_DIV_MOD_BODY): New macro. Thumb equivalent of
11495 (FUNC_END): New macro: Common code at the end of the division and
11497 (THUMB_FUNCTION_START): New macro: Common code at the start of
11499 (__divsi3, __udivsi3, __modsi3, __umodsi3): Use new macros.
11501 Tue Aug 22 20:34:52 2000 Kaz Kojima <kkojima@rr.iij4u.or.jp>
11503 * config/sh/sh.md (cmpeqdi_t splitter): Fix a reverse testing.
11505 * config/sh/sh.c (prepare_scc_operands): Apply force_reg to
11506 sh_compare_op1 when the mode is DImode and sh_compare_op1 isn't
11509 2000-08-22 Nick Clifton <nickc@redhat.com>
11511 * config/arm/lib1funcs.asm (__umodsi3): Before performing any
11512 restorative additions, test for bottom bits of IP being set,
11513 rather than relying upon the RORs not matching.
11516 2000-08-22 David Edelsohn <edelsohn@gnu.org>
11518 * aix.h (ASM_DECLARE_FUNCTION_NAME): Call named_section() or
11519 text_section() as appropriate instead of emitting text csect
11520 pseudo-op directly.
11521 (TEXT_SECTION_ASM_OP): Only require default 32-bit alignment.
11522 (UNIQUE_SECTION): Define macro.
11523 (ASM_OUTPUT_SECTION_NAME): Define macro.
11524 * rs6000.c (rs6000_override_options): Disable -ffunction-sections
11525 on AIX if debugging and -fdata-sections always.
11527 2000-08-22 Steven King <sxking@uswest.net>
11529 * config/float-i386.h (LDBL_EPSILON): Remove __convert_long_double
11531 (LDBL_MAX): Same here.
11533 2000-08-22 Richard Henderson <rth@cygnus.com>
11535 * flow.c (tidy_fallthru_edge): Update b->end properly.
11537 2000-08-22 Stan Cox <scox@redhat.com>
11539 * Makefile.in (OBJS): Add dependence.o.
11540 * dependence.c: New file.
11542 2000-08-22 Alexandre Oliva <aoliva@redhat.com>, John David Anglin <dave.anglin@nrc.ca>
11544 * calls.c (check_sibcall_argument_overlap_1): Adjust for
11545 ARGS_GROW_DOWNWARD.
11546 (check_sibcall_argument_overlap): Likewise.
11548 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
11550 * invoke.texi (SH Options): Document -m4-nofpu,
11551 -m4-single-only, -m4-single, -m4, -mbigtable, -mfmovd,
11552 -mhitachi, -mnomacsave, -misize, -mpadstruct, -mspace.
11554 2000-08-22 Joseph S. Myers <jsm28@cam.ac.uk>
11556 * c-common.c (check_format_info): Give the 'some locales' warning
11557 for strftime %Ey rather than the unconditional 'only last 2 digits
11560 2000-08-22 Richard Henderson <rth@cygnus.com>
11562 * alias.c (init_alias_analysis): Do not register
11563 struct_value_incoming_rtx or static_chain_rtx as pointing
11566 Tue Aug 22 01:44:43 2000 Jeffrey A Law (law@cygnus.com)
11568 * protoize.c (munge_compile_params): Fix typo and formatting buglets.
11570 2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
11572 * diagnostic.h (report_problematic_module): Declare.
11573 * diagnostic.c (report_problematic_module): New function.
11574 (report_error_function): Tweak.
11576 Tue Aug 22 02:31:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11578 * stmt.c (expand_goto_internal, fixup_gotos): Only check
11579 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
11581 2000-08-21 Richard Henderson <rth@cygnus.com>
11583 * flow.c (calculate_global_regs_live): Mark frame pointer live
11584 everywhere before reload.
11586 2000-08-21 Jim Wilson <wilson@cygnus.com>
11588 * real.c (ereal_from_int, ereal_from_uint, significand_size): Handle
11589 INTEL_EXTENDED_IEEE_FORMAT.
11590 (toe64): Delete INTEL_EXTENDED_IEEE_FORMAT support. Unconditionally
11591 clear last two bytes of output FP value.
11593 2000-08-21 Graham Stott <grahams@cygnus.co.uk>
11595 * config/ia64/ia64.h (REDO_SECTION_INFO_P): Change decl to DECL.
11597 2000-08-21 Jakub Jelinek <jakub@redhat.com>
11599 * unroll.c (loop_find_equiv_value): If ret is modified between
11600 insn and loop_start, ret might not be equivalent to reg.
11602 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11604 * c-common.c (init_dollar_format_checking,
11605 maybe_read_dollar_number, finish_dollar_format_checking): New
11607 (dollar_arguments_used, dollar_arguments_count,
11608 dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
11610 (check_format_info): Support $ formats for scanf and printf width
11611 and precision. Always increment format_chars to advance past the
11612 '*' of precision, not just when the format parameters are
11613 available to check.
11615 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11617 * mips.c (block_move_loop, expand_block_move,
11618 function_arg_partial_nregs, save_restore_insns, function_prologue,
11619 mips_expand_prologue, RA_MASK): Avoid using the `U' integer
11621 (function_arg_advance, function_arg): Match argument to format
11624 2000-08-21 Nix <nix@esperi.demon.co.uk>
11626 * gcc.c (do_spec_1): Implement %j spec flag.
11627 Remove dead comment.
11629 * gcc.texi (The Configuration File): Document HOST_BIT_BUCKET.
11630 * system.h (HOST_BIT_BUCKET): Default to "/dev/null".
11631 * config/i386/xm-dos.h (HOST_BIT_BUCKET): Define as "NUL".
11632 * config/i386/xm-os2.h, config/winnt/winnt.h: Likewise.
11634 * protoize.c (munge_compile_params): Use HOST_BIT_BUCKET (if
11635 writable) instead of hardcoded value.
11637 * toplev.c (compile_file): Output to a file even if -fsyntax-only.
11639 * gcc.c, config/i386/xm-dos.h, config/i386/xm-os2.h: Kill
11642 * gcc.c (cc1_options): Do not process -o or run the assembler if
11644 * objc/lang-spec.h: Likewise.
11646 2000-08-21 Eli Zaretskii <eliz@is.elta.co.il>
11648 * fixinc/fixincl.c (fix_with_system): Pipe the output of
11649 "external" fixes through `cat', to avoid truncating the input
11650 file by redirection.
11652 2000-08-21 Jakub Jelinek <jakub@redhat.com>
11654 * config/i386/i386.md (lea_general_1): Copy insn condition to split
11656 (lea_general_2, lea_general_3): Likewise.
11658 2000-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11660 * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional
11661 warnings to user code.
11663 * c-lex.c (readescape, yylex): Likewise.
11665 * c-typeck.c (store_init_value, process_init_element): Likewise
11666 (c_expand_start_case): Format.
11668 2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11670 * mips/linux.h (LINK_SPEC): Use %(endian_spec).
11672 * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
11673 and linker_endian_spec to endian_spec.
11674 (ENDIAN_SPEC): Add %{EB} and %{EL}.
11675 (LINK_SPEC): Remove %{EB} and %{EL}.
11676 (ASM_SPEC): Likewise. Use %(endian_spec).
11678 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11680 * c-tree.h (flag_hosted): Move declaration from here...
11681 * c-common.h (flag_hosted): ... to here.
11682 (flag_noniso_default_format_attributes): New declaration.
11683 * c-decl.c (flag_noniso_default_format_attributes): New variable.
11684 (c_decode_option): Set it appropriately for options choosing
11685 language standard variant.
11686 * c-common.c (init_function_format_info): Only provide default
11687 format attributes if flag_hosted. Only provide the gettext
11688 formats if flag_noniso_default_format_attributes. Update
11690 (check_format_info): Disable treatment of %a as a scanf flag in
11693 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
11695 * c-common.c (scan_char_table): Add 'w' to flags for all formats
11697 (check_format_info): Set 'wide' for scanf format widths. Warn for
11698 a zero scanf width. Make the check for writing into a constant
11699 object at the first level of indirection; at later levels, warn if
11700 any type qualifiers are encountered.
11702 Mon Aug 21 07:41:12 2000 Jeffrey A Law (law@cygnus.com)
11704 * reload.c (reload_inner_reg_of_subreg): New function broken out of
11706 (push_reload): Use reload_inner_reg_of_subreg.
11707 (combine_reloads): Do not combine reloads if the input reload
11708 is a SUBREG in which the inner part will need reloading.
11710 * global.c (global_alloc): Avoid passing dumpfile argument to
11712 * toplev.c (rest_of_compilation): Likewise.
11713 * reload.h (reload): Remove dumpfile argument. Callers changed.
11714 (debug_reload, debug_reload_to_stream): Move prototypes here.
11715 * rtl.h (reload): Remove dumpfile argument.
11716 * reload.c (debug_reload): Remove prototype.
11717 (debug_reload_to_stream): Likewise.
11718 * reload1.c: Avoid passing dumpfile around, rely on rtl_dump_file
11721 2000-08-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
11723 * diagnostic.c (context_as_prefix): Export.
11724 (need_error_newline): Remove.
11725 (lang_diagnostic_starter, lang_diagnostic_finalizer): New objects.
11726 (error_module_changed, record_last_error_module,
11727 error_function_changed, record_last_error_function): New functions.
11728 (initialize_diagnostics): Default intialize
11729 lang_diagnostic_starter, lang_diagnostic_finalizer.
11730 (init_output_buffer): Tweak.
11731 (file_name_as_prefix): New function.
11732 (announce_function, default_print_error_function,
11733 report_error_function, set_diagnostic_context): Tweak.
11735 2000-08-21 Richard Earnshaw <rearnsha@arm.com>
11737 * flow.c (init_propagate_block_info): Handle SUBREG in a jump
11738 condition expression.
11740 2000-08-20 Richard Henderson <rth@cygnus.com>
11742 * flow.c (merge_blocks_nomove): Don't seek back past the bb note.
11744 2000-08-20 Zack Weinberg <zack@wolery.cumb.org>
11746 * cppinit.c (cpp_init): Set global flag when called.
11747 (cpp_reader_init): Bomb out if cpp_init hasn't been called.
11749 Sun Aug 20 01:41:35 2000 Dennis Chernoivanov <cdi@sparc.spb.su>
11751 * cpplex.c (cpp_scan_buffer): Move `output_line_command' just
11752 before `process_directive' so that newlines won't be missed
11754 (cpp_printf): Increment `print->lineno' when newline is emitted.
11756 * cppmain.c (cb_ident): Likewise.
11757 (cb_define): Likewise.
11758 (cb_undef): Likewise.
11759 (cb_include): Likewise.
11760 (cb_def_pragma): Likewise.
11761 (dump_macros_helper): Likewise.
11763 2000-08-20 Richard Henderson <rth@cygnus.com>
11765 * config/ia64/ia64.c (emit_insn_group_barriers): Stop if ar.lc
11766 assigned before a loop.
11768 * config/ia64/ia64.md (ashlsi3): Zero extend the shift count.
11769 (ashrsi3, lshrsi3): Likewise.
11771 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
11773 * c-lang.c: #include diagnostic.h
11774 (c_tree_printer): New function.
11775 (lang_init): Initialize lang_printer.
11777 * Makefile.in (c-lang.o): Depends on diagnostic.h
11779 2000-08-20 Gabriel Dos Reis <gdr@codesourcery.com>
11781 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic.
11783 * diagnostic.c (default_diagnostic_starter,
11784 default_diagnostic_finalizer): New functions.
11785 (diagnostic_for_asm, diagnostic_for_decl): Tweak.
11786 (pedwarn, pedwarn_with_file_and_line, error,
11787 error_with_file_and_line, fatal, warning,
11788 warning_with_file_and_line): Adjust call to report_diagnostic.
11789 (report_diagnostic): Rework.
11790 (set_diagnostic_context): New function.
11792 * diagnostic.h (struct diagnostic_context): New data structure.
11793 (diagnostic_message, diagnostic_argument_list,
11794 diagnostic_file_location, diagnostic_line_location,
11795 diagnostic_is_warning, diagnostic_starter, diagnostic_finalizer,
11796 diagnostic_finalizer, diagnostic_auxiliary_data): New macros.
11797 (set_diagnostic_context): Declare.
11798 (report_diagnostic): Change prototype.
11800 Sun 20-Aug-2000 09:25:45 BST Neil Booth <NeilB@earthling.net>
11802 * fix-header.c (main): Initialize cpplib.
11804 2000-08-19 Michael Meissner <meissner@redhat.com>
11806 * ifcvt.c (find_if_block): Do not assume that a THEN block has any
11807 instructions in it before checking for indirect jumps.
11809 * ifcvt.c (find_if_block): Do not consider a THEN block that ends
11810 in a indirect jump as a potential for conditional execution.
11812 * d30v.h (d30v_init_expanders): Don't declare here.
11813 * d30v-protos.h (d30v_init_expanders): Declare here with a valid
11816 Sat 19-Aug-2000 21:11:45 BST Neil Booth <NeilB@earthling.net>
11818 * cpp.texi: Add @section for assertions.
11820 Sat Aug 19 12:37:08 EDT 2000 John Wehle (john@feith.com)
11822 * loop.c (scan_loop): Use CONST_CALL_P instead of
11823 checking for REG_LIBCALL / REG_RETVAL.
11825 Sat Aug 19 09:18:47 2000 Jeffrey A Law (law@cygnus.com)
11827 * reload1.c (reload_as_needed): Accept dumpfile argument,
11828 pass it to emit_reload_insns.
11829 (emit_reload_insns): Add new dumpfile argument. If non-null
11830 then dump the reloads for each insn into the dumpfile.
11831 (reload): Pass dumpfile to reload_as_needed.
11833 * invoke.texi: Clean up linux-gnu vs linux comments.
11835 2000-08-19 Richard Henderson <rth@cygnus.com>
11837 * config/ia64/ia64.c (reg_or_5bit_operand): New.
11838 (ia64_depz_field_mask): New.
11839 * config/ia64/ia64.h (CONSTRAINT_OK_FOR_R): New.
11840 (PREDICATE_CODES): Update.
11841 * config/ia64/ia64.md: Update commentary.
11842 (depz_internal): New.
11843 (ashlsi3): Implement directly.
11844 (ashrsi3, lshrsi3): Simplify; rely on extv and extzv for constants.
11845 (ashldi3): Use shladd.
11846 * config/ia64/ia64-protos.h: Update.
11848 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
11850 * toplev.c (independent_decode_option): Always process -g.
11851 Remove third argument, now unused. Adjust caller to match.
11853 2000-08-18 Richard Henderson <rth@cygnus.com>
11855 * combine.c (make_compound_operation): Break after creating
11858 2000-08-18 Zack Weinberg <zack@wolery.cumb.org>
11860 * cpplib.c (cpp_register_pragma_space): Just return if the
11861 namespace is already registered.
11863 2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
11865 * config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
11866 constant amount. Do not generate ROTL instruction.
11868 Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
11870 * config/sh/elf.h: Do not include sh/sh.h.
11871 * config/sh/rtems.h: Likewise.
11872 * config/sh/rtemself.h: Do not include sh/elf.h.
11873 * configure.in: Get them included with `tm_file's.
11874 * configure: Rebuilt.
11876 * config/sh/sh.md (fpu_switch0, fpu_switch1): Simplify.
11877 * config/sh/sh.c (fpscr_set_from_mem): Use them.
11879 Fri Aug 18 14:23:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11881 * stor-layout.c (compute_record_type): Don't use mode of single
11882 field as mode of record if not integer mode of same type.
11884 * regmove.c (perhaps_ends_bb_p): New function.
11885 (optimize_reg_copy_1, optimize_reg_copy_2): Call it.
11886 (optimize_reg_copy_3, fixup_match_2, regmove_optimize): Likewise.
11887 (fixup_match_1): Likewise.
11888 (fixup_match_1, combine_stack_adjustments_for_block): Add casts to
11889 avoid signed/unsigned warnings.
11891 * function.c (fixup_var_refs_1, case MEM): Update CODE after
11894 Fri 18-Aug-2000 18:33:45 BST Neil Booth <NeilB@earthling.net>
11896 * cpphash.h: Use HAVE_DESIGNATED_INITIALIZERS.
11897 (_cpp_trigraph_map): Declaration moved from cpplex.c
11899 * cppinit.c: Define _cpp_trigraph_map. Use UCHAR_MAX + 1
11900 instead of 256. Use consistent test for designated initializers.
11901 (cpp_init): Initialize trigraph_map.
11902 (initialize_standard_includes, parse_option): Use memcmp
11903 instead of strncmp.
11905 * cpplex.c (init_trigraph_map): Remove.
11906 (trigraph_ok, trigraph_replace, lex_line): Refer to
11909 * cpplib.c (str_match, WARNING, ERROR, ICE): Delete.
11910 (do_unassert): Remove unused "next" local.
11912 * system.h (HAVE_DESIGNATED_INITIALIZERS): New prototype.
11914 2000-08-18 Emmanuel Marty <emarty@suntech.fr>
11916 * arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return
11919 2000-08-17 Richard Henderson <rth@cygnus.com>
11921 * config/ia64/ia64.c (spill_restore_mem): Handle emitting
11922 the first insn in a sequence.
11924 Thu Aug 17 22:40:05 EDT 2000 John Wehle (john@feith.com)
11926 * alias.c (true_dependence, write_dependence_p): A read
11927 involving a label_ref or the constant pool doesn't create
11930 * rtl.h (unchanging): Improve documentation.
11932 2000-08-17 Rodney Brown <RodneyBrown@mynd.com>
11934 * cse.c (insert_regs): Remove unused `regno'.
11936 2000-08-17 Neil Booth <NeilB@earthling.net>
11938 * (cppinit.c) merge_include_chains: Use remove_dup_dir,
11939 remove_dup_dirs. If qtail == brack, remove brack not
11941 (remove_dup_dir, remove_dup_dirs): New functions.
11943 2000-08-17 Neil Booth <NeilB@earthling.net>
11945 * cppinit.c (cpp_cleanup): Free include dir chains.
11946 * cpplib.c (do_undef): Let _cpp_free_definition make the node void.
11947 (do_unassert): Free the assert with _cpp_free_definition.
11948 * cppmacro.c (_cpp_free_definition): Free memory allocated for
11949 assertions. Make the node a T_VOID node.
11951 2000-08-17 Neil Booth <NeilB@earthling.net>
11953 * cppinit.c (path_include, append_include_chain):
11954 Remove 2nd parameter (struct cpp_pending *).
11955 (path_include, initialize_standard_includes, cpp_handle_option):
11956 Update callers appropriately.
11957 (cpp_handle_option): Use pend.
11959 2000-08-17 Neil Booth <NeilB@earthling.net>
11961 * cppinit.c (sort_options): Remove, put functionality in
11964 (initialize_builtins): Free memory.
11965 (cpp_start_read): Move init_IStable to cpp_init.
11967 * cpplib.h (cpp_init): New prototype.
11968 * cppmain.c (main): Call cpp_init.
11970 Thu Aug 17 13:20:32 EDT 2000 John Wehle (john@feith.com)
11972 * rtlanal.c (rtx_unstable_p): Use CONSTANT_P.
11973 (rtx_unstable_p, rtx_varies_p): Process vectors.
11975 2000-08-16 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>
11977 * config/sh/lib1funcs.asm (GLOBAL): Define. Use for all
11978 references to GLOBAL symbols. Use LOCAL where appropriate.
11980 2000-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11982 * configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always
11983 use t-aix41 when host == target.
11985 2000-08-16 Richard Henderson <rth@cygnus.com>
11987 * reload.c (push_secondary_reload): Revert last change.
11988 If we use a reload_in/out pattern, make the when the same
11989 as the primary reload.
11990 (find_reloads): Likewise.
11992 2000-08-16 Manfred Hollstein <manfredh@redhat.com>
11994 * configure.in (libstdcxx-v3): Fix test.
11995 * configure: Regenerate.
11997 Wed Aug 16 08:10:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11999 * calls.c (calls_function_1, expand_call): Only test
12000 TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
12001 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12003 2000-08-16 Richard Henderson <rth@cygnus.com>
12005 * combine.c (simplify_shift_const): Revert previous two
12006 changes. If SHIFT_COUNT_TRUNCATED, crop the shift count
12007 before the main loop.
12009 2000-08-15 Richard Henderson <rth@cygnus.com>
12011 * combine.c (simplify_shift_const): Bound shift count when
12014 Tue Aug 15 17:33:05 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12016 * calls.c (ECF_SP_DEPRESSED): New macro.
12017 (calls_function_1): Treat calling sp-depressed function as alloca.
12018 (emit_call_1): Don't adjust SP if calling sp-depressed function.
12019 (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
12020 If sp-depressed, ensure block saves and restores SP.
12021 * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
12023 * function.c (keep_stack_depressed): New function.
12024 (thread_prologue_and_epilogue_insns): Call it.
12025 * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
12026 to print DECL_OFFSET_ALIGN.
12027 Print no-force-blk and transparent-union flags properly.
12028 * stmt.c (expand_goto_internal): Don't restore stack if last block
12029 and function returns with sp depressed.
12030 (fixup_gotos): Likewise.
12031 (save_stack_pointer): New function, from code in expand_decl.
12032 (expand_decl): Call new function.
12033 * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
12034 (TYPE_RETURNS_STACK_DEPRESSED): New macro.
12035 (save_stack_pointer): New declaration.
12037 * diagnostic.c (fatal_function): New variable.
12038 (set_fatal_function): New function.
12040 * diagnostic.h (set_fatal_function): New declaration.
12042 2000-08-15 William Cohen <wcohen@redhat.com>
12044 * config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
12045 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
12046 (DWARF2_ASM_LINE_DEBUG_INFO): Defined.
12048 2000-08-15 Richard Henderson <rth@cygnus.com>
12050 * flow.c (mark_used_reg): Set reg_cond_reg appropriately.
12052 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12054 * arm.c (arm_function_ok_for_sibcall): New function.
12055 * arm.h (FUNCTION_OK_FOR_SIBCALL): Define.
12056 * arm.md (call expanders): Don't check here for calls that can't
12059 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12061 * arm.md (splits generating cond_exec): Disable.
12063 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12065 * arm/linux-elf.h (text_section): Delete declaration.
12067 2000-08-15 Richard Earnshaw <rearnsha@arm.com>
12069 ARM support for unordered FP operations.
12070 * arm-protos.h (arm_comparison_operator): Declare.
12071 * arm.c (arm_comparison_operator): New function.
12072 (arm_select_cc_mode): Add unordered comparison codes.
12073 (get_arm_condition_code): Likewise.
12074 (arm_final_prescan_insn): Can't handle unordered jumps that can't
12075 be done in one insn.
12076 * arm.h (PREDICATE_CODES): Add arm_comparison_operator.
12077 * arm.md (all uses of comparison_operator): Replace with
12078 arm_comparison_operator.
12079 (bunordered, bordered, bugt, bunlt, bunge, bunle, buneq, bltgt): New
12081 (arm_buneq, arm_bltgt, arm_buneq_reversed, arm_bltgt_reveresed): New
12084 Tue Aug 15 00:36:36 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12086 * gthr-posix.h: Conditionally include <sched.h>; include
12087 <config.h> from libobjc/.
12089 2000-08-14 Richard Henderson <rth@cygnus.com>
12091 * config/i386/i386.c (legitimize_pic_address): Use Pmode
12094 2000-08-14 Richard Henderson <rth@cygnus.com>
12096 * configure.in (ia64-*): Set float_format for i386 long double.
12098 * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT
12099 as we would for i386 XFmode.
12100 (PUT_REAL): Likewise.
12101 (endian, ereal_atof, real_value_truncate): Likewise.
12102 (ereal_isneg, toe64, etens, make_nan): Likewise.
12103 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Likewise.
12105 * config/ia64/ia64-protos.h: Update.
12106 * config/ia64/ia64.c (general_tfmode_operand): New.
12107 (destination_tfmode_operand): New.
12108 (tfreg_or_fp01_operand): New.
12109 (ia64_split_timode): New.
12110 (spill_tfmode_operand): New.
12111 (ia64_expand_prologue): Use TFmode not XFmode.
12112 (ia64_expand_epilogue): Likewise.
12113 (ia64_function_arg): Likewise.
12114 (ia64_function_arg_advance): Likewise.
12115 (ia64_return_in_memory): Likewise.
12116 (ia64_function_value): Likewise.
12117 (ia64_print_operand): Likewise.
12118 (ia64_register_move_cost): Set GR<->FR to 5.
12119 (ia64_secondary_reload_class): Get GR for TImode memory op.
12120 * config/ia64/ia64.h (ROUND_TYPE_SIZE): Remove.
12121 (ROUND_TYPE_ALIGN): Remove.
12122 (LONG_DOUBLE_TYPE_SIZE): Set to 128.
12123 (INTEL_EXTENDED_IEEE_FORMAT): Define.
12124 (HARD_REGNO_NREGS): Use TFmode, not XFmode.
12125 (HARD_REGNO_MODE_OK): Likewise. Disallow TImode in FRs.
12126 (MODES_TIEABLE_P): Use TFmode, not XFmode.
12127 (CLASS_MAX_NREGS): Likewise.
12128 (ASM_OUTPUT_LONG_DOUBLE): Output by 4 byte hunks.
12129 (PREDICATE_CODES): Update.
12130 * config/ia64/ia64.md (movti): New.
12131 (movti_internal): Use a clobber for memory alternatives.
12132 (reload_inti, reload_outti): New.
12133 (movsfcc_astep): Predicate properly.
12134 (movdfcc_astep): Likewise.
12137 (extendsftf2, extenddftf2): New.
12138 (trunctfsf2, trunctfdf2): New.
12139 (floatditf2, fix_trunctfdi2): New.
12140 (floatunsditf2, fixuns_trunctfdi2): New.
12141 (addtf3, subtf3, multf3, abstf2): New.
12142 (negtf2, nabstf2, mintf3, maxtf3): New.
12143 (maddtf3, msubtf3, nmultf3, nmaddtf3): New.
12145 (fr_spill): Use TFmode, not XFmode.
12146 (fr_restore): Likewise.
12147 * config/ia64/lib1funcs.asm (__divtf3): New.
12148 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add it.
12150 2000-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12152 * cse.c (fold_rtx): Avoid empty body in an if-statement.
12154 * doloop.c (doloop_iterations_max, doloop_modify): Avoid using the
12155 `U' integer constant suffix.
12157 * dwarf2out.c (add_subscript_info): Avoid empty body in an
12160 * sparc/sol2.h (__enable_execute_stack): Prototype.
12162 2000-08-14 David Edelsohn <edelsohn@gnu.org>
12164 * collect2.c: Remove use of AIX import file.
12166 * longlong.h: Test ARCH_PWR not ARCH_POWER.
12168 * rs6000.c (print_operand, case 'E'): Add else.
12170 2000-08-14 Richard Henderson <rth@cygnus.com>
12172 * config/ia64/ia64.md (movdi): Delay calling ia64_expand_load_address.
12173 (movdi_symbolic): New.
12175 2000-08-14 Jim Wilson <wilson@cygnus.com>
12177 * config/ia64/ia64.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
12178 to GNU as. For Intel as, pass -M const_gp and -M no_plabel.
12179 * config/ia64/linux.h (ASM_SPEC): Pass -mconstant-gp and -mauto-pic
12182 2000-08-14 Richard Henderson <rth@cygnus.com>
12184 * expr.c (emit_group_load): Don't force constants into registers.
12185 Special case source already in the correct mode.
12187 2000-08-14 Zack Weinberg <zack@wolery.cumb.org>
12189 * configure.in: Accept *-*-linux* not just *-*-linux-gnu*.
12190 * fixinc/inclhack.def: Likewise.
12191 * fixinc/mkfixinc.sh: Likewise.
12192 * configure: Regenerate.
12193 * fixinc/fixincl.x: Regenerate.
12194 * install.texi: Document equivalence of linux and linux-gnu.
12196 Mon Aug 14 18:51:44 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12198 * cse.c (insert_regs): Also in REG case: When finding an invalid
12199 value, and we make a new quantity, make sure that it won't be
12200 mistaken by for a valid one by mention_regs.
12202 2000-08-13 Ralf Gütlein <ralf.guetlein@aranea.de>
12204 * h8300.md: Remove obsolete peepholes.
12206 2000-08-13 Kazu Hirata <kazu@hxi.com>
12208 * invoke.texi (H8/300 Options): Fix typos.
12209 * config/h8300.c: Fix formatting.
12210 * config/h8300.h: Fix comment typos.
12211 (OVERRIDE_OPTIONS): Fix formatting.
12213 * function.c: Fix formatting.
12215 * cse.c: Fix formatting.
12217 2000-08-13 Geoff Keating <geoffk@cygnus.com>
12219 * flow.c (attempt_auto_inc): Remove unused variable `bb'.
12220 (attempt_auto_inc): Suppress parentheses warning.
12221 * function.c (put_reg_into_stack): Remove unused variable `unsigned_p'.
12222 * loop.c (load_mems): Remove `u' suffix in two places.
12223 * config/rs6000/rs6000.c: Remove unnecessary `u' suffixes from
12225 * config/rs6000/rs6000.h: Likewise.
12226 * config/rs6000/sol-c0.c: Prototype some functions. Remove the
12227 __eabi dummy routine.
12228 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Remove unused
12229 variable `buf_ptr'.
12231 * config/rs6000/rs6000.c (rs6000_select_section): Rewrite to
12232 not put stuff in .sdata unnecessarily.
12233 (rs6000_unique_section): New function.
12234 * config/rs6000/rs6000-protos.h: Add rs6000_unique_section.
12235 * config/rs6000/sysv4.h (UNIQUE_SECTION): Define.
12237 * c-typeck.c (build_array_ref): Don't complain about non-lvalue
12238 arrays in C99. Don't try to look at DECL_REGISTER of a
12239 COMPONENT_REF. Don't complain twice about the same error.
12241 * fixinc/inclhack.def (aix_pthread): New fix.
12242 (aix_sysmachine): New fix.
12243 * fixinc/fixincl.x: Regenerate.
12245 * expr.c (expand_expr): Call convert_modes when turning a large
12246 multiply into a small one.
12248 2000-08-12 Geoff Keating <geoffk@cygnus.com>
12250 * tree.h (DECL_OFFSET_ALIGN): Make the off_align field of
12251 the tree structure an exponent rather than an explicit alignment
12252 so it doesn't overflow.
12253 (SET_DECL_OFFSET_ALIGN): New macro.
12254 * stor-layout.c (place_union_field): Use SET_DECL_OFFSET_ALIGN
12255 rather than DECL_OFFSET_ALIGN.
12256 (place_field): Likewise.
12257 * expmed.c (store_bit_field): Abort on align==0 to avoid
12258 antisocial machine behaviour.
12260 2000-08-12 Richard Henderson <rth@cygnus.com>
12262 * sibcall.c (uses_addressof): Accept both addressof and
12263 current_function_internal_arg_pointer inside a mem.
12264 (optimize_sibling_and_tail_recursive_call): Fail tail recursion
12265 if current_function_uses_addressof.
12266 * stmt.c (expand_return): Kill tail recursion and HAVE_return
12269 2000-08-11 Richard Henderson <rth@cygnus.com>
12271 * config/ia64/ia64.md (addsi3): Remove expander.
12272 (subsi3, mulsi3, negsi2, one_cmplsi2): Likewise.
12273 (*addsi3_shladd): New.
12275 2000-08-11 Richard Henderson <rth@cygnus.com>
12277 * config/ia64/ia64.c (do_spill): Pass cfa offset to move expander.
12278 (do_restore): Likewise.
12279 (gen_movdi_x, gen_fr_spill_x, gen_fr_restore_x): New.
12280 (ia64_expand_prologue, ia64_expand_epilogue): Use them.
12281 (rtx_needs_barrier): Track actual bit manipulation for
12282 ar.unat moves, gr_spill, and gr_restore.
12283 (emit_insn_group_barriers): Special case gr_spill/gr_restore.
12284 (process_set): Don't handle varargs spills.
12285 * config/ia64/ia64.md (gr_spill): Accept cfa offset. Emit
12286 .mem.offset here instead of in process_set.
12287 (gr_restore): Likewise.
12289 2000-08-11 Richard Henderson <rth@cygnus.com>
12291 * config/ia64/ia64.h (PROMOTE_MODE): Only extend to SImode.
12293 2000-08-11 Mark Elbrecht <snowball3@bigfoot.com>
12295 * gcc.texi (The Configuration File): Document
12296 COLLECT2_HOST_INITIALIZATION, GCC_DRIVER_HOST_INITIALIZATION, and
12297 UPDATE_PATH_HOST_CANONICALIZATION.
12299 2000-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12301 * c-parse.in (cast_expr): Avoid -Wstrict-prototype warnings for
12302 unprototyped function pointer casts on integer constants.
12304 2000-08-11 Laurynas Biveinis <lauras@softhome.net>
12306 * fixproto: Recognize DOS paths with drive letters as absolute paths.
12308 2000-08-11 Nathan Sidwell <nathan@codesourcery.com>
12310 * extend.texi (Volatiles): Fix typos.
12312 2000-08-11 Kazu Hirata <kazu@hxi.com>
12314 * flow.c: Fix formatting.
12316 2000-08-11 Richard Henderson <rth@cygnus.com>
12318 * reload.c (push_secondary_reload): When invoking a reload_{in,out}
12319 pattern, always allocate a tertiary scratch register.
12321 * config/alpha/alpha.md (reload_inqi): Use a DImode scratch.
12322 (reload_inhi): Likewise.
12324 2000-08-11 Richard Henderson <rth@cygnus.com>
12326 * function.c (put_reg_into_stack): Allow type to be NULL.
12327 (schedule_fixup_var_refs): Likewise.
12328 (gen_mem_addressof): Allow decl to be NULL.
12329 (put_addressof_into_stack): Likewise.
12331 * flow.c (merge_blocks_nomove): Be more careful about
12332 locating the beginning of block A.
12334 * combine.c (simplify_shift_const): Obey SHIFT_COUNT_TRUNCATED.
12336 Thu Aug 10 22:47:09 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12341 * config.in: Reverted the check for <sched.h>.
12343 2000-08-10 Chris Demetriou <cgd@sibyte.com>
12345 * mips/elf.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME): New
12346 macros define the name of CTOR and DTOR sections.
12347 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
12348 DTOR_LIST_END): Change to use attributes to specify
12350 * mips/elf64.h (CTOR_SECTION_NAME, DTOR_SECTION_NAME,
12351 (CTOR_LIST_BEGIN, CTOR_LIST_END, DTOR_LIST_BEGIN,
12352 DTOR_LIST_END): Same as in mips/elf.h.
12354 2000-08-10 Drew Moseley <dmoseley@redhat.com>
12356 * config/mn10300/mn10300.h: Added no-crt0 option for explicitly
12357 disabling just crt0.o.
12359 2000-08-10 Richard Earnshaw <rearnshaw@arm.com> & Nick Clifton <nickc@cygnus.com>
12361 * arm.h (CPP_SPEC): Use sub-spec cpp_interwork.
12362 (CPP_INTERWORK_SPEC, CPP_INTERWORK_DEFAULT_SPEC): New sub-specs.
12363 (EXTRA_SPECS): Add them.
12364 * arm/lib1funcs.asm: Support builds for interworking.
12365 Use macros to eliminate duplicated pieces of code.
12367 2000-08-10 Kazu Hirata <kazu@hxi.com>
12369 * h8300.c (expand_a_rotate): New.
12370 (emit_a_rotate): Likewise.
12371 (h8300_adjust_insn_length): Add support for the rotate insns.
12372 * h8300.md (rotlqi3): New.
12373 (*rotlqi3_1): Likewise.
12374 (rotlhi3): Likewise.
12375 (*rotlhi3_1): Likewise.
12376 (rotlhi3): Likewise.
12377 (*rotlhi3_1): Likewise.
12378 * h8300-proto.h: Add prototypes for expand_a_rotate and
12381 * h8300.c: Fix comment typos.
12382 (dosize): Declare the variable amount as unsigned.
12383 (get_shift_alg): Fix a comparison between signed and unsigned.
12384 (emit_a_shift): Likewise.
12385 (h8300_adjust_insn_length): Simplify the code.
12387 * c-decl.c: Fix formatting.
12389 2000-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12391 * c-lex.c (parse_float, yylex): For -Wtraditional, issue a
12392 warning about non-traditional numeric constant suffixes.
12394 * cppexp.c (parse_number): Likewise.
12396 * invoke.texi: (-Wtraditional): Document new behavior.
12398 Thu Aug 10 00:11:04 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12400 * gthr-posix.h: Include auto-host.h. Conditionally include
12402 * configure.in: Check for the <sched.h> header file.
12403 * config.in: Added define for HAVE_SCHED_H.
12405 2000-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12407 * c-typeck.c (process_init_element): For -Wtraditional, warn about
12408 initialization of unions.
12410 * invoke.texi (-Wtraditional): Document new behavior.
12412 2000-08-09 Zack Weinberg <zack@wolery.cumb.org>
12414 * configure.in (--enable-c-cpplib): Uncomment. Use AC_DEFINE
12415 instead of extra_c_flags.
12416 (--enable-c-mbchar): Use AC_DEFINE instead of extra_c_flags.
12417 * configure: Regenerate.
12418 * config.in: Regenerate.
12420 * cpperror.c (cpp_type2name): New function.
12421 * cpplex.c (lex_line): If we issued an error for an invalid
12422 preprocessing directive, discard that logical line.
12423 * cpplib.c (do_line): Call a hook function if the current file
12424 is renamed by #line.
12425 (do_ident): Pass the contents of the string, not the entire
12426 token, to the callback function.
12427 * cpplib.h (CPP_LAST_PUNCTUATOR): New #define.
12428 (cb.rename_file): New hook function.
12429 (cb.ident): Adjust prototype.
12430 (cpp_type2name): Prototype.
12431 * cppmacro.c (dump_macro_args): Correct precedence lossage.
12433 * cppmain.c (cb_ident): Update for changed interface.
12434 (cb_rename_file): New function.
12435 (main): Set rename callback.
12437 2000-08-09 Alexandre Oliva <aoliva@redhat.com>
12439 * caller-save.c (mark_referenced_regs): Mark partially-overwritten
12440 multi-word registers.
12442 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
12444 * c-common.c (combine_strings, check_format_info): Refer to ISO C
12445 or ISO C89 instead of ANSI C.
12446 * c-decl.c (grokdeclarator, xref_tag, finish_struct,
12447 build_enumerator, do_case): Likewise.
12448 * c-lex.c (parse_float, yylex): Likewise.
12449 * c-parse.in: Likewise.
12450 * c-typeck.c (common_type, build_array_ref, build_binary_op,
12451 build_unary_op, pedantic_lvalue_warning, build_conditional_expr,
12452 build_c_cast, convert_for_assignment, set_init_index,
12453 set_init_label, c_expand_start_case): Likewise.
12454 * toplev.c (documented_lang_options, display_help): Likewise.
12456 2000-08-08 Kazu Hirata <kazu@hxi.com>
12458 * h8300.c: Fix formatting.
12459 * h8300.h: Likewise.
12460 * h8300.md: Likewise.
12461 (movsi_h8300hs): Fix formatting of the resulting assembly code.
12463 * reload1.c: Fix formatting.
12465 2000-08-08 Rodney Brown <RodneyBrown@mynd.com>
12467 * alpha/alpha.c (alpha_emit_xfloating_libcall):
12468 Use GEN_CALL_VALUE define.
12469 * alpha/alpha.md (untyped_call): Use GEN_CALL define.
12470 * clipper/clipper.md (untyped_call): Likewise.
12471 * dsp16xx/dsp16xx.md (untyped_call): Likewise.
12472 * fx80/fx80.md (untyped_call): Likewise.
12473 * mips/mips.md (untyped_call): Likewise.
12474 * ns32k/ns32k.md (untyped_call): Likewise.
12475 * pa/pa.md (untyped_call): Likewise.
12476 * romp/romp.md (untyped_call): Likewise.
12477 * sparc/sparc.md (untyped_call): Likewise.
12479 2000-08-08 Jason Eckhardt <jle@cygnus.com>
12481 * config/i860/i860.c (singlemove_string): Do not generate assembler
12482 pseudo instructions that must be expanded (that is, with signed
12483 constants larger than 16 bits).
12485 2000-08-08 Richard Henderson <rth@cygnus.com>
12487 * flow.c (life_analysis): Only turn off PROP_LOG_LINKS and
12488 PROP_AUTOINC at -O0. Don't collect alias info at -O0.
12489 (init_propagate_block_info): Don't kill memory stores at -O0.
12490 (mark_set_1, mark_used_regs): Likewise.
12492 2000-08-08 David Edelsohn <edelsohn@gnu.org>
12494 * rs6000.c (optimization_options): Decorate 'level' as
12496 (mask64_operand): Remove sign-extend thinko.
12497 (rldic_operand): New function.
12498 (load_multiple_operation): regno's are unsigned ints.
12499 (store_multiple_operation): Likewise.
12500 (lmw_operation): Likewise.
12501 (stmw_operation): Likewise.
12502 (includes_lshift_p): shift_mask is unsigned int.
12503 (includes_lshift64_p): New function.
12504 (addrs_ok_for_quad_peep): unsigned int reg1.
12505 (print_operand): Consistently add "else" after
12506 output_operand_lossage().
12507 (print_operand, case 'b'): Fold in case 'W'.
12508 (print_operand, case 'W'): Print rldic MB value.
12509 (output_epilogue): Update Objective-C language string.
12510 (output_toc): unsigned HOST_WIDE_INT low, compare unsigned.
12511 * rs6000.h (PREDICATE_CODES): Add rldic_operand.
12512 * rs6000.md (ashldi3): Add rldic instruction.
12513 (iordi3, xordi3): Remove redundant "else if CONST_DOUBLE".
12514 (cmpsi_internal2, cmpdi_interal2): Use 'b' output template
12517 2000-08-08 Richard Henderson <rth@cygnus.com>
12519 * config/ia64/ia64-protos.h: Remove duplicates. Update
12520 for massive code rearrangements.
12521 * config/ia64/ia64.c (ia64_arpfs_regno): Remove.
12522 (ia64_rp_regno, ia64_fp_regno, ia64_input_regs): Remove.
12523 (ia64_local_regs, ia64_need_regstk): Remove.
12524 (ar_ccv_reg_operand): New.
12525 (ia64_gp_save_reg): New.
12526 (struct ia64_frame_info): Combine most of the size elements;
12527 add new gr save elements.
12528 (find_gr_spill): New.
12529 (next_scratch_gr_reg): New.
12530 (mark_reg_gr_used_mask): New.
12531 (ia64_compute_frame_size): Rewrite. Allocate special AR regs
12532 to GR backing store regs when possible.
12533 (ia64_initial_elimination_offset): New.
12534 (ia64_rap_fp_offset): Remove.
12535 (save_restore_insns): Remove.
12536 (setup_spill_pointers): New.
12537 (finish_spill_pointers): New.
12538 (spill_restore_mem): New.
12539 (do_spill, do_restore): New.
12540 (ia64_expand_prologue): Rewrite to use them.
12541 (ia64_expand_epilogue): Likewise.
12542 (ia64_direct_return): Update for current_frame_info changes.
12543 (ia64_function_prologue): Simplify .prologue emission. Emit
12544 .spill when needed.
12545 (ia64_setup_incoming_varargs): Don't ever emit rtl.
12546 (ia64_dbx_register_number): New.
12547 (ia64_initialize_trampoline): New.
12548 (ia64_secondary_reload_class): Request GR_REGS for integer
12549 arithmetic destined for FR_REGS.
12550 (ia64_init_machine_status): Don't reset return_address_pointer_rtx.
12551 (ia64_mark_machine_status): Mark ia64_gp_save.
12552 (rws_access_regno): Rename from rws_access_reg; don't treat
12553 predicates specially.
12554 (rws_access_reg): New. Update all callers.
12555 (rtx_needs_barrier): Remove dead unspecs.
12556 (ia64_epilogue_uses): Mark ar.pfs and ar.unat live on exit.
12557 (ia64_encode_section_info): Silence signed/unsigned warnings.
12558 (spill_offset, sp_offset, spill_offset_emitted): Remove.
12559 (tmp_reg, tmp_saved): Remove.
12560 (process_set): Rewrite to expect complicated bits via
12561 REG_FRAME_RELATED_EXPR.
12562 (ia64_expand_fetch_and_op): Use emit_move_insn; be explicit
12563 in the use of ar.ccv; never set RTX_UNCHANGING_P.
12564 (ia64_expand_op_and_fetch): Likewise.
12565 (ia64_expand_compare_and_swap): Likewise.
12566 (ia64_expand_builtin): Likewise.
12567 * config/ia64/ia64.h (AR_UNAT_REGNUM): New.
12568 (FIRST_PSEUDO_REGISTER): Update.
12569 (AR_M_REGNO_P): Update.
12570 (FIXED_REGS): Don't mark three local registers as used.
12571 (EXTRA_CC_MODES): New.
12572 (SELECT_CC_MODE): New.
12573 (HARD_REGNO_NREGS): Allow DImode in p0; handle CCImode.
12574 (HARD_REGNO_MODE_OK): Disallow CCImode from non-predicates.
12575 (FRAME_GROWS_DOWNWARD): Unset.
12576 (STARTING_FRAME_OFFSET): Zero.
12577 (ELIMINABLE_REGS): Eliminate from the soft to hard frame pointer.
12578 (INITIAL_ELIMINATION_OFFSET): Defer to out of line function.
12579 (HARD_FRAME_POINTER_REGNUM): New.
12580 (CAN_DEBUG_WITHOUT_FP): Define.
12581 (TRAMPOLINE_TEMPLATE): Remove.
12582 (TRAMPOLINE_SIZE): Lower to 32.
12583 (TRAMPOLINE_ALIGNMENT): Lower to 64.
12584 (INITIALIZE_TRAMPOLINE): Defer to out of line function.
12585 (PREDICATE_CODES): Update.
12586 (struct machine_function): Add ia64_gp_save.
12587 * config/ia64/ia64.md: Purge unused unspecs.
12588 (movsi patterns): Allow moves to/from AR_M_REGS.
12589 (movdi patterns): Allow moves to/from p0.
12590 (call patterns): Move most setjmp hackery to ia64_gp_save_reg.
12591 (gr_spill, gr_restore): Indicate ar.unat read/written.
12592 (nonlocal_goto): Don't pass old frame_pointer.
12593 (nonlocal_goto_receiver): Remove.
12594 (exception_receiver): New.
12595 (builtin_setjmp_setup): New.
12596 (builtin_setjmp_receiver): New.
12597 * config/ia64/lib1funcs.asm (__ia64_save_stack_nonlocal): Bundle.
12598 (__ia64_nonlocal_goto): Bundle. Don't kill r7.
12599 (__ia64_restore_stack_nonlocal): Likewise.
12600 (__ia64_trampoline): New.
12601 * config/ia64/sysv4.h (DBX_REGISTER_NUMBER): Defer to out of line
12603 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __trampoline.
12605 2000-08-08 Richard Henderson <rth@cygnus.com>
12607 * frame.h (ia64_frame_state): Add my_psp.
12608 * libgcc2.c (ia64_throw_helper): Add throw_sp argument.
12609 (__throw): Pass it in. Don't clobber r7.
12610 * config/ia64/frame-ia64.c (init_ia64_reg_loc): Mark inline.
12611 (execute_one_ia64_descriptor) [mem_stack_v]: Sets psp.when
12612 and nothing to do with sp.
12613 (normalize_reg_loc): Use frame->my_psp.
12614 (frame_translate): Handle frame-pointer-less functions. Set
12615 spill_base correctly, in absence of being told.
12616 (__build_ia64_frame_state): New sp argument. Fill in frame->my_sp.
12617 (__ia64_backtrace_helper): New sp argument. Use
12618 builtin_return_address instead of label addresses.
12619 (print_record) [mem_stack_v]: No size member.
12621 2000-08-08 Richard Henderson <rth@cygnus.com>
12623 * regclass.c (choose_hard_reg_mode): Iterate over all CC modes.
12625 2000-08-08 Richard Henderson <rth@cygnus.com>
12627 * tm.texi (LOCAL_REGNO): Document.
12628 * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
12629 (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
12630 * reload1.c (reload): Likewise when considering nonlocal labels.
12632 * config/ia64/ia64.h (LOCAL_REGNO): New.
12633 * config/sparc/sparc.h (LOCAL_REGNO): New.
12635 2000-08-08 Joseph S. Myers <jsm28@cam.ac.uk>
12637 * c-lex.c (yylex): Don't allow integer suffixes 'LUL', 'Ll', 'lL'.
12639 2000-08-07 Nick Clifton <nickc@redhat.com>
12641 * config/mips/mips.c: Fix compile time warning messages.
12642 * config/mips/mips-protos.h: Add prototype for equality_op.
12644 * mn10300.h (TARGET_SWITCHES): Document `-mam33'.
12646 2000-08-07 Graham Stott <grahams@cygnus.co.uk>
12648 * mn10300.md: Use nonimmediate_operand instead of general_operand
12649 on output operands.
12651 * mn10300.h (PREFERRED_RELOAD_CLASS): Limit memory reloads.
12653 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
12655 * sh.h (EXTRA_CONSTRAINT_Q): Adjust to GNU Coding Standards.
12656 * sh.c (expand_block_move): Break long lines.
12657 (expand_ashiftrt, fpscr_set_from_mem): Likewise.
12658 * sh.md (mulsi3): Likewise.
12659 (movdi): Adjust spacing.
12661 2000-08-07 Richard Henderson <rth@cygnus.com>
12663 * expmed.c (store_bit_field): Don't require MEM_IN_STRUCT_P.
12664 * expr.c (emit_group_store): Don't set it.
12666 2000-08-07 Kazu Hirata <kazu@hxi.com>
12668 * invoke.texi (Options for Debugging Your Program or GCC): Remove
12669 duplicate entries for 'w' and 'z'.
12671 * flow.c: Fix a comment typo.
12673 Sun Aug 6 23:47:35 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12675 * c-parse.in: Changed the language string for Objective-C to "GNU
12678 Sun Aug 6 11:54:03 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12680 * gthr-posix.h: Integrated Chris Ball's <cball@fmco.com> changes
12681 to improve the Posix thread support for Objective-C.
12683 2000-08-06 Joseph S. Myers <jsm28@cam.ac.uk>
12685 * c-common.h (enum c_tree_index): Add CTI_SIGNED_SIZE_TYPE and
12686 CTI_UNSIGNED_PTRDIFF_TYPE.
12687 (signed_size_type_node): Define.
12688 (unsigned_ptrdiff_type_node): Define.
12689 * c-decl.c (init_decl_processing): Create the
12690 signed_size_type_node and unsigned_ptrdiff_type_node types.
12691 * c-common.c (T_SC): Define.
12694 (print_char_table): Use T_SST for %zd, %zi, %zn. Use T_UPD for
12695 %to, %tu, %tx, %tX. Allow %hhn (T_SC). Add "c" to the flags for
12697 (scan_char_table): Use T_SC for %hhd, %hhi, %hhn. Use T_SST for
12698 %zd, %zi, %zn. Use T_UPD for %to, %tu, %tx, %tX. Add "c" to the
12699 flags for %c, %s and %[.
12700 (check_format_info): Only allow leniency for signedness of targets
12701 of character pointers (when pedantic) for formats flagged with
12702 "c", so for strings but not for %hh formats. When pedantic, don't
12703 allow character pointers to substitute for void pointers if a
12704 second level of indirection is present.
12706 2000-08-06 Kazu Hirata <kazu@hxi.com>
12708 * invoke.texi (Options for Debugging Your Program or GCC): Update
12709 the names of dump files.
12711 * h8300.c (dosize): Rearrange code for conciseness.
12712 (split_adds_subs): Likewise.
12714 * loop.c: Fix formatting.
12716 * dwarf2out.c: Fix formatting.
12718 * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
12720 * expr.c: Fix formatting.
12722 2000-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12724 * rs6000.c (rs6000_maybe_dead): Prototype.
12726 2000-08-06 Richard Henderson <rth@cygnus.com>
12728 * stmt.c (expand_goto): Do virtual_stack_vars_rtx replacement for
12729 HAVE_nonlocal_goto as well.
12730 * config/i960/i960.md (nonlocal_goto): Don't do it here.
12731 * config/pj/pj.md (nonlocal_goto): Likewise.
12733 2000-08-07 Michael Hayes <mhayes@cygnus.com>
12735 * loop.c (try_swap_copy_prop): New function.
12736 (load_mems): Rename copies to load_copies and add new regset
12737 store_copies. Check for sets of shadow registers and mark
12738 in store_copies. Call try_swap_copy_prop for registers
12739 marked in store_copies.
12741 Sun Aug 6 00:54:42 2000 Ovidiu Predescu <ovidiu@cup.hp.com>
12743 * objc/objc-act.c: New command line option -fconstant-string-class
12744 to allow specifying a user defined constant string class,
12745 different from NXConstantString.
12747 * toplev.c: Moved the Objective-C specific options to
12748 objc/lang-options.h.
12750 * objc/lang-options.h: Moved the Objective-C specific options from
12751 toplev.c. Added -fconstant-string-class.
12753 2000-08-05 Chris Demetriou <cgd@sibyte.com>
12755 * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
12756 DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
12757 __CTOR_LIST__ from func_ptr array to just func_ptr, to
12758 avoid extra alignment imposed on arrays.
12759 * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
12760 DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
12762 * mips.h: Clean up comments and spacing near MASKs.
12763 (TARGET_UNIX_ASM): Delete.
12764 (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
12765 MASK_UNINIT_CONST_IN_RODATA): Change values to make mask
12768 2000-08-05 Joseph S. Myers <jsm28@cam.ac.uk>
12770 * c-common.c (print_char_table): Add entries for the X/Open '
12771 format flag (print decimals with locale's thousands grouping
12772 character). Make %C expect wint_t.
12773 (check_format_info): If pedantic, warn when the %n$ operand
12774 number form is used. Allow for the ' flag; warn about it if
12777 2000-08-05 Zack Weinberg <zack@wolery.cumb.org>
12779 * i386.h (FUNCTION_OK_FOR_SIBCALL): Not OK if DECL's return
12780 type is a float mode, cfun->decl's return type is not, and
12781 TARGET_FLOAT_RETURNS_IN_80387.
12783 2000-08-04 Andreas Schwab <schwab@suse.de>
12785 * cppmain.c (cb_def_pragma): Skip the first two tokens from the
12786 token list, which are always `#' and `pragma'.
12788 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
12790 * tree.c (tree_expr_nonnegative_p): Move to...
12791 * fold-const.c: ... here. Also handle BIND_EXPR and RTL_EXPR.
12792 (rtl_expr_nonnegative_p): New.
12793 * tree.h: Add prototype for rtl_expr_nonnegative_p.
12795 * real.h (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH, CONST_DOUBLE_MEM,
12796 CONST_DOUBLE_CHAIN: Move to...
12797 * rtl.h: ...here. Use XCINT/XCEXP.
12799 * Makefile.in: Remove toplev.o from OBJS. Add rule to make
12800 libbackend.a; add libbackend.a to STAGESTUFF. Add BACKEND
12801 variable. Use BACKEND when linking cc1, not OBJS. Add BACKEND
12804 * objc/Make-lang.in (cc1obj): Link with $(BACKEND).
12806 2000-08-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12808 * config/c4x/c4x.md (return_indirect_internal): New.
12809 * config/c4x/c4x.c (c4x_expand_epilogue): Use it.
12811 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
12813 * c-common.c (time_char_table): Mark up formats added in C99 and
12814 make other corrections. %D and %g were added in C99. %Og is an
12815 extension. %EX is permitted. %R, %T, %n, %r, %t were added in
12816 C99. %e was added in C99. %Oj is an extension. %G and %z are in
12817 C99 rather than GNU extensions, but %OG and %Oz are extensions.
12818 %h was added in C99. %C was added in C99. %OY and %OC are
12819 extensions. Add the C99 format %F.
12820 (check_format_info): If pedantic and not in C99 mode, warn for C99
12821 formats, %E and %O.
12823 Fri Aug 4 23:01:58 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12825 * function.c (schedule_fixup_var_refs): New function, broken out
12826 of put_reg_into_stack.
12827 (put_reg_into_stack): Use it.
12828 (put_var_into_stack): In CONCAT case, fixup up references for
12829 components only after fixing up references to the whole concat.
12831 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
12833 * alias.c (mark_constant_function): Use INSN_P.
12834 (init_alias_analysis): Likewise.
12835 * combine.c (combine_instructions): Use INSN_P.
12836 (can_combine_p): Likewise.
12837 (try_combine): Likewise.
12838 (distribute_notes): Likewise.
12839 (distribute_links): Likewise.
12840 * cse.c (cse_around_loop): Use INSN_P.
12841 (invalidate_skipped_block): Likewise.
12842 (cse_set_around_loop): Likewise.
12843 (cse_end_of_basic_block): Likewise.
12844 (delete_trivially_dead_insns): Likewise.
12845 * emit-rtl.c (unshare_all_rtl_again): Use INSN_P.
12846 (unshare_all_rtl_1): Likewise.
12847 (next_cc0_user): Likewise.
12848 (try_split make_insn_raw): Likewise.
12849 (remove_unnecessary_notes): Likewise.
12850 * final.c (shorten_branches): Use INSN_P.
12851 (leaf_renumber_regs): Likewise.
12852 (leaf_renumber_regs_insn): Likewise.
12853 * flow.c (find_label_refs): Use INSN_P.
12854 (verify_wide_reg): Likewise.
12855 (notice_stack_pointer_modification): Likewise.
12856 (count_or_remove_death_notes): Likewise.
12857 (verify_flow_info): Likewise.
12858 (clear_log_links): Likewise.
12859 * function.c (fixup_var_refs_insns): Use INSN_P.
12860 (compute_insns_for_mem): Likewise.
12861 * gcse.c (alloc_gcse_mem): Use INSN_P.
12862 (compute_sets): Likewise.
12863 (compute_hash_table): Likewise.
12864 (classic_gcse): Likewise.
12866 (insert_insn_end_bb): Likewise.
12867 (delete_null_pointer_checks_1): Likewise.
12868 * global.c (expand_preferences): Use INSN_P.
12869 (build_insn_chain): Likewise.
12870 * graph.c (node_data): Use INSN_P.
12871 * haifa-sched.c (priority): Use INSN_P.
12872 (rm_line_notes): Likewise.
12873 (rm_other_notes): Likewise.
12874 (find_insn_reg_weight): Likewise.
12875 (init_target_units): Likewise.
12876 (schedule_block): Likewise.
12877 (compute_block_forward_dependences): Likewise.
12878 (debug_dependencies): Likewise.
12879 (set_priorities): Likewise.
12880 * integrate.c (function_cannot_inline_p): Use INSN_P.
12881 (save_parm_insns): Likewise.
12882 (copy_insn_list): Likewise.
12883 * jump.c (mark_all_labels): Use INSN_P.
12884 (never_reached_warning): Likewise.
12885 * lcm.c (optimize_mode_switching): Use INSN_P.
12886 * local-alloc.c (validate_equiv_mem): Use INSN_P.
12887 (memref_used_between_p): Likewise.
12888 (update_equiv_regs): Likewise.
12889 (block_alloc): Likewise.
12890 (no_conflict_p): Likewise.
12891 * loop.c (scan_loop): Use INSN_P.
12892 (find_and_verify_loops): Likewise.
12893 (count_loop_regs_set): Likewise.
12894 (loop_reg_used_before_p): Likewise.
12895 (strength_reduce): Likewise.
12896 (recombine_givs): Likewise.
12897 (check_dbra_loop): Likewise.
12898 (load_mems): Likewise.
12899 (try_copy_prop): Likewise.
12900 * print-rtl.c (print_rtx): Use INSN_P.
12901 * recog.c (find_single_use): Use INSN_P.
12902 * reg-stack.c (stack_regs_mentioned): Use INSN_P.
12903 (next_flags_user): Likewise.
12904 (swap_rtx_condition): Likewise.
12905 * regmove.c (mark_flags_life_zones): Use INSN_P.
12906 (optimize_reg_copy_1): Likewise.
12907 (optimize_reg_copy_2): Likewise.
12908 (optimize_reg_copy_3): Likewise.
12909 (reg_is_remote_constant_p): Likewise.
12910 (fixup_match_2): Likewise.
12911 (regmove_optimize): Likewise.
12912 (fixup_match_1): Likewise.
12913 * regrename.c (build_def_use): Use INSN_P.
12914 (replace_reg_in_block): Likewise.
12915 (consider_use): Likewise.
12916 * reload.c (find_equiv_reg): Use INSN_P.
12917 * reload1.c (reload): Use INSN_P.
12918 (maybe_fix_stack_asms): Likewise.
12919 (calculate_needs_all_insns): Likewise.
12920 (reload_as_needed): Likewise.
12921 (emit_output_reload_insns): Likewise.
12922 (delete_address_reloads_1): Likewise.
12923 (reload_cse_regs_1): Likewise.
12924 (reload_combine): Likewise.
12925 (reload_cse_move2add): Likewise.
12926 * reorg.c (redundant_insn): Use INSN_P.
12927 (dbr_schedule): Likewise.
12928 * resource.c (find_dead_or_set_registers): Use INSN_P.
12929 (mark_target_live_regs): Likewise.
12930 * rtlanal.c (reg_used_between_p): Use INSN_P.
12931 (reg_referenced_between_p): Likewise.
12932 (reg_set_between_p): Likewise.
12933 (reg_set_p): Likewise.
12934 (single_set): Likewise.
12935 (multiple_sets): Likewise.
12936 (find_last_value): Likewise.
12937 (reg_set_last): Likewise.
12938 (find_reg_note): Likewise.
12939 (find_regno_note): Likewise.
12940 * sibcall.c (sequence_uses_addressof): Use INSN_P.
12941 * simplify-rtx.c (cselib_process_insn): Use INSN_P.
12942 * ssa.c (find_evaluations): Use INSN_P.
12943 (rename_block): Likewise.
12944 (rename_equivalent_regs): Likewise.
12945 * unroll.c (loop_find_equiv_value): Use INSN_P.
12946 (set_dominates_use): Likewise.
12947 * varasm.c (mark_constant_pool): Use INSN_P.
12948 (mark_constants): Likewise.
12949 * config/alpha/alpha.c (alpha_does_function_need_gp): Use INSN_P.
12950 (alphaev4_next_group): Likewise.
12951 (alphaev5_next_group): Likewise.
12952 * config/c4x/c4x.c (c4x_process_after_reload): Use INSN_P.
12953 (c4x_rptb_rpts_p): Likewise.
12954 * config/mips/mips.c (mips16_optimize_gp): Use INSN_P.
12955 * config/rs6000/rs6000.c (uses_TOC): Use INSN_P.
12956 (rs6000_adjust_priority): Likewise.
12957 * config/sh/sh.c (sh_loop_align): Use INSN_P.
12958 (machine_dependent_reorg): Likewise.
12959 (split_branches): Likewise.
12960 * config/tahoe/tahoe.c (tahoe_cmp_check): Use INSN_P.
12962 Fri Aug 4 11:43:49 2000 John Wehle (john@feith.com)
12964 * combine.c (recog_for_combine): Remove the old notes
12965 prior to attempting to recognize the new pattern.
12966 (distribute_notes): Ignore REG_NONNEG notes.
12968 2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
12970 * varasm.c (output_constructor): Add .align 0 for packed vars.
12972 2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
12974 * configure.in: Use default thread_file even when enable_threads is
12975 yes or dce because hpux10.20 pa port uses MULTILIB implementation.
12976 * configure: Rebuilt.
12978 * gthr-dce.h (__gthread_objc_condition_allocate): Fix typo.
12980 2000-08-04 Donn Terry (donnte@microsoft.com)
12982 * prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
12984 2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
12986 * i386/x-djgpp: Delete code that conditionally modifies target_alias.
12987 Delete code that conditionally modifies 'version'.
12988 Delete X_CPPFLAGS. Add comment for SYSTEM_HEADER_DIR.
12989 * i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): New macro.
12990 * gcc.c (main): Use it.
12991 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): New macro.
12992 * prefix.c (update_path): Use it.
12993 * i386/djgpp.h (STANDARD_INCLUDE_DIR): Define.
12994 (MD_EXEC_PREFIX): Set to '/dev/env/DJDIR/bin/'.
12995 (ASM_OUTPUT_SECTION_NAME): Add code attribute to sections containing
12997 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Default to true.
12998 (SUBTARGET_SWITCHES): Adjust.
12999 (WCHAR_UNSIGNED, WCHAR_TYPE_SIZE, WCHAR_TYPE): Undefine before
13001 (WINT_TYPE, SIZE_TYPE, PTRDIFF_TYPE): Define.
13003 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13005 * c-common.h (flag_isoc94): Declare.
13006 * c-decl.c (flag_isoc94): Define.
13007 (c_decode_option): Set flag_isoc94 as appropriate.
13008 * c-common.c (T_PD, T_IM, T_UIM): Define.
13009 (format_char_info): Add tlen and jlen.
13010 (print_char_table): Add entries for %t and %j. Allow %zn. Allow
13012 (scan_char_table): Add entries for %t and %j. Allow %F. Allow
13014 (time_char_table): Add NULL entries for %t and %j.
13015 (check_format_info): Allow for %t and %j. Warn for %F if pedantic
13016 and not C99. Warn for %lc, %ls and %l[ if pedantic and not C94.
13017 Warn for printf %lf if pedantic and not C99. Don't warn for empty
13018 precision. Allow precision argument to be unsigned int. If
13019 pedantic, warn for %p passed an argument not a pointer to possibly
13020 qualified void or a possibly qualified character type, and for
13021 pointer targets of the wrong sign, except for character pointers.
13023 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13025 * ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
13026 * c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
13027 (wint_type_node): Define.
13028 * c-decl.c (WINT_TYPE): Define.
13029 (init_decl_processing): Create the wint_type_node type.
13030 * c-common.c (T_WI): Define.
13031 (print_char_table): Use T_WI for %lc format.
13033 2000-08-04 Bruce Korb <bkorb@gnu.org>
13035 * fixinc/: Verified that the MSDOS patch does not break
13036 the UNIX functionality and applied the next three patches
13039 2000-07-28 Eli Zaretskii <eliz@is.elta.co.il>
13041 * fixinc/fixfixes.c (main) [__MSDOS__]: Avoid overwriting the
13042 output file with the temporary one by appending ".X" to generate
13043 the temporary fuile's name. If the output file already has an
13044 extension, replace it with ".X".
13046 * fixinc/fixincl.c (fix_with_system) [__MSDOS__]: Use $ORIGDIR,
13047 not $DESTDIR, to find applyfix. Use sprintf instead of snprintf;
13048 reallocate the command buffer while copying the command-line
13049 argument. Redirect the output directly to the temporary file,
13050 instead of going through another temporary file.
13051 (process): Close the temporary file before unlinking it.
13052 (machine_matches) [__MSDOS__]: If the machine doesn't match, set
13053 the FD_SKIP_TEST flag. Pay attention to the FD_MACH_IFNOT flag.
13054 (run_compiles): Pass p_fixd argument to machine_matches, as it
13057 * fixinc/fixincl.sh: Export ORIGDIR. If $DJDIR is set in the
13058 environment, assume there are no symlinks in the include
13059 directory. When cleaning up the DONE files, look for them
13060 case-insensitively. Don't try to remove symlinks if they aren't
13063 * fixinc/fixlib.c (make_raw_shell_str): Accept new argument smax;
13064 all callers changed. Declare pz "const char *", to avoid compiler
13067 * fixinc/fixlib.h (ENV_TABLE): Get ORIGDIR from the environment.
13068 Change prototype of make_raw_shell_str.
13070 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
13072 * fixinc/fixincl.c [__MSDOS__]: Don't include "server.h".
13073 (initialize) [__MSDOS__]: Use tempnam.
13074 (initialize): Don't use SIGPIPE if it is not defined.
13076 * fixinc/fixfixes.c (main) [__MSDOS__]: freopen for stdout should
13079 2000-07-25 Bruce Korb <bkorb@gnu.org>
13081 * fixinc/fix*.[ch]: substantially reworked to make it possible
13082 to run this program without using fork(2) or pipe(2) (i.e. in
13083 a DOS environment).
13085 2000-08-04 Joseph S. Myers <jsm28@cam.ac.uk>
13087 * cppdefault.h (WINT_TYPE): Define.
13088 * cppinit.c (builtin_array): Define __WINT_TYPE__.
13089 * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
13090 * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
13092 Fri Aug 4 06:53:46 2000 Clinton Popetz <cpopetz@cygnus.com>
13094 * (mips_legitimate_address_p): Don't allow register+offset
13095 if the offset is large and negative, and we are compiling
13096 for 64 bit registers.
13098 2000-08-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13100 * gencodes.c (main): Define CODE_FOR_nothing as the last possible
13101 insn_code_number + 1.
13103 2000-08-04 Kazu Hirata <kazu@hxi.com>
13105 * h8300.c (function_prologue): Rearrange code for conciseness.
13106 (function_epilogue): Likewise.
13107 * h8300.h (OK_FOR_U): Fix formatting.
13109 * cse.c: Fix a comment typo. Fix formatting.
13111 2000-08-03 Richard Henderson <rth@cygnus.com>
13113 * config/i386/i386.md (return_indirect_internal): New.
13114 * config/i386/i386.c (ix86_expand_epilogue): Use it.
13116 2000-08-03 Zack Weinberg <zack@wolery.cumb.org>
13118 * cpplex.c (parse_name): Might have to glue a CPP_OTHER token
13120 (lex_line): Glue @ onto the beginning of identifiers and
13121 string constants, in Objective-C mode.
13122 (output_token, spell_token): Handle CPP_OSTRING.
13123 (can_paste, maybe_paste_with_next): Handle pasting @ onto the
13124 beginning of a NAME or a STRING, in objc mode.
13126 * cpplib.c (get_define_node): Do not permit identifiers that
13127 begin with @ to be #defined.
13128 * cppmacro.c (CAN_PASTE_AFTER): Add CPP_OTHER.
13129 * cpplib.h (TTYPE_TABLE): Add CPP_OSTRING.
13131 * c-lang.c, objc/objc-act.c (build_objc_string): Delete.
13132 * c-tree.h (build_objc_string): Delete prototype.
13133 * objc/objc-tree.def: Delete OBJC_STRING_CST.
13134 * c-lex.c (yylex): Use build_string for all three kinds of strings.
13136 * c-parse.in, objc/objc-act.c: Update commentary.
13138 2000-08-03 Mark Mitchell <mark@codesourcery.com>
13140 * extend.texi: Fix typo in last change.
13142 * extend.texi: Add commentary on statement-expressions and their
13143 interactions with C++.
13145 2000-08-03 Nick Clifton <nickc@cygnus.com>
13147 * dwarf2.h (DW_LANG_Java): Change value to 0x000b.
13148 * dwarf.h (LANG_JAVA): Change value to 0x000b.
13150 2000-08-03 Anthony Green <green@cygnus.com>
13152 * dwarf2out.c (gen_compile_unit_die): Add java language support.
13153 (add_bound_info): Check for java language.
13154 (is_java): New function.
13155 * dwarfout.c (output_compile_unit_die): Ditto.
13156 * dwarf.h (dwarf_source_language): Add java source language type.
13157 * dwarf2.h (dwarf_source_language): Ditto.
13159 Thu Aug 3 20:32:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
13161 * reg-stack.c (subst_stack_regs_pat): Use replace_reg to swap
13164 * i386.c (ix86_expand_branch): Mode of comparison in
13165 IF_THEN_ELSE is VOIDmode.
13167 Thu Aug 3 10:05:53 2000 Akiko Matsushita <matusita@sra.co.jp>
13169 * gengenrtl.c, rtl.c: Avoid #elif.
13171 2000-08-03 Michael Poole <poole@troilus.org>
13173 * tm.texi (Register Classes): Clarify order of sub-initializers
13174 in REG_CLASS_CONTENTS.
13176 Thu Aug 3 15:53:03 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13178 From SAITOH Masanobu:
13179 * sh.h (ASM_OUTPUT_REG_PUSH): Fix syntax.
13181 2000-08-03 David Billinghurst <David.Billinghurst@riotinto.com.au>
13183 * config/i386/cygwin.h: Remove -remap from CPP_SPEC since this option
13184 is not supported by tradcpp and isn't actually needed for cygwin.
13186 2000-08-03 Kazu Hirata <kazu@hxi.com>
13188 * h8300.c: Fix a comment typo.
13189 * h8300.h (OK_FOR_U): Accept a 32-bit constant address on H8/S.
13191 * jump.c: Fix formatting.
13193 * toplev.c: Fix formatting.
13195 Thu Aug 3 01:05:32 2000 Jeffrey A Law (law@cygnus.com)
13197 * flow.c (find_auto_inc): Verify that we've got a REG before
13198 peeking at its regno. Fail, don't abort if we can't find
13199 the increment of the desired register.
13201 * pa.md (shadd height reduction patterns/splitters): Remove.
13203 2000-08-02 Jim Wilson <wilson@cygnus.com>
13205 * config/ia64/ia64-protos.h (flag_ssa): Declare.
13206 * config/ia64/ia64.md (movti_internal, movti_internal+1): New.
13208 2000-08-02 Mark Mitchell <mark@codesourcery.com>
13210 * dce.c: Remove all uses of assert.
13211 * dwarf2out.c: Likewise.
13212 * dwarfout.c: Likewise.
13215 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13217 * gcc.h (lang_specific_driver): Constify second argument.
13218 * gcc.c (translate_options, process_command, main): Likewise.
13219 Constify variables to match. Cast second argument to
13222 * cppspec.c, gccspec.c: Adjust type of second argument to
13223 lang_specific_driver, and update code as necessary.
13225 2000-08-02 Jakub Jelinek <jakub@redhat.com>
13227 * loop.c (scan_loop): Ensure update_end label does not
13228 go away until reg_scan_update is run.
13230 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13232 * c-common.h: Prototype min_precision and c_build_qualified_type here...
13233 * c-tree.h: ... not here.
13234 * errors.h: Prototype fancy_abort.
13236 * emit-rtl.c (gen_lowpart_common): Move variable 'c' into
13237 HOST_BITS_PER_WIDE_INT == 64 ifdef block.
13238 * regrename.c (regrename_optimize): Make control flow explicit.
13239 (replace_reg_in_block): Initialize reg_use to 0.
13241 * i386.c (legitimate_address_p): Rename error label to
13242 report_error to avoid namespace clash.
13244 2000-08-02 Kazu Hirata <kazu@hxi.com>
13246 * fold-const.c: Fix formatting.
13248 Wed Aug 2 16:26:15 MET DST 2000 Jan Hubicka <jh@suse.cz>
13250 * i386.c (legitimate_address_p): Accept other bases than
13251 pic_offset_table_rtx for GOTOFF constructs.
13253 Wed Aug 2 15:59:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
13255 * i386.md (shift to lea splitter): Use const_int_operand.
13257 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
13259 * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
13260 cppspec.c: Do not use 'legal' or 'illegal' in error messages
13263 * cppmain.c (cb_define, cb_undef): Don't generate any output
13264 if not done_initializing.
13265 * cpplex.c (maybe_paste_with_next): When the token after a ##
13266 is an omitted rest argument, only delete the token before it
13267 if that token is a comma. Do not warn about bogus token
13268 pastes for , ## rest_arg.
13270 * cpp.texi: Update.
13271 * cpp.1: Regenerate.
13273 2000-08-02 Fred Fish <fnf@be.com>
13275 * config/i386/beos-elf.h (STARTFILE_SPEC): Add i386-mcount.o
13276 when user gives -p option. Add init_term_dyn.o for BeOS 5.0
13279 * config/i386/beos-elf.h (INCLUDE_DEFAULTS): Add additional
13280 Be directories to search path.
13282 Remove support for __declspec(dllimport) and __declspec(dllexport).
13283 This is leftover cruft from the earlier BeOS gcc port when BeOS
13284 used Microsoft's PE object file format.
13285 * configure.in (i*86-*-beoself): Remove extra_objs=winnt.o.
13286 * config/i386/t-beos (winnt.o): Remove Makefile frag.
13287 * config/i386/beos-elf.h (TARGET_NOP_FUN_DLLIMPORT): Remove.
13288 (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
13289 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13290 (MERGE_MACHINE_DECL_ATTRIBUTES): Remove.
13291 (REDO_SECTION_INFO_P): Remove.
13292 (ASM_EXPORT_DECL): Remove.
13293 (ASM_DECLARE_FUNCTION_NAME): Remove.
13294 (ASM_DECLARE_OBJECT_NAME): Remove.
13295 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
13296 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Remove.
13297 (ASM_OUTPUT_ALIGNED_LOCAL): Remove.
13298 (STRIP_NAME_ENCODING): Remove.
13300 Remove support for obsolete version of BeOS that is no longer
13302 * configure.in (i*86-*-beospe*): Remove.
13303 * config/i386/beos-pe.h: Remove.
13305 2000-08-01 Jeffrey Oldham <oldham@codesourcery.com>
13306 Mark Mitchell <mark@codesourcery.com>
13308 * Makefile.in (OBJS): Added dce.o.
13309 (ssa.o): Updated target to include ssa.h.
13310 (flow.o): Likewise.
13311 (toplev.o): Likewise.
13312 (dce.o): Created target.
13313 * basic-block.h: Added comments.
13314 (INVALID_BLOCK): Added definition.
13315 (connect_infinite_loops_to_exit): Added declaration.
13316 Moved SSA declarations to ssa.h.
13317 * flow.c: Added inclusion of ssa.h.
13318 (struct depth_first_search_dsS, depth_first_search_ds):
13320 (compute_immediate_postdominators): Added definition.
13321 (connect_infinite_loops_to_exit): Likewise.
13322 (flow_dfs_compute_reverse_init): Likewise.
13323 (flow_dfs_compute_reverse_add_bb): Likewise.
13324 (flow_dfs_compute_reverse_execute): Likewise.
13325 (flow_dfs_compute_reverse_finish): Likewise.
13326 * rtl.h (rtx/in_struct): Added use to determine insn necessity.
13327 (LABEL_P): Added definition.
13328 (JUMP_P): Likewise.
13329 (NOTE_P): Likewise.
13330 (BARRIER_P): Likewise.
13331 (JUMP_TABLE_DATA_P): Likewise.
13332 (INSN_DEAD_CODE_P): Likewise.
13333 * ssa.c: Replaced inclusions with ssa.h inclusion.
13334 (CONVERT_HARD_REGISTER_TO_SSA_P): Moved to ssa.h.
13335 (rename_registers): Removed unnecessary variables.
13336 * ssa.h: Created by moving declarations from ssa.c and
13338 * timevar.def: Defined TV_DEAD_CODE_ELIM.
13339 * toplev.c: Added ssa.h inclusion.
13340 (dump_file_index): Added DFI_dce.
13341 (dump_file): Added "dce" entry.
13343 (f_options): Added dce entry.
13344 * invoke.texi: Document -fdce. Emphasize experimental status of
13348 2000-08-01 Zack Weinberg <zack@wolery.cumb.org>
13350 * cpperror.c (v_message): Split into _cpp_begin_message and
13351 v_message macro. All callers updated.
13352 (_cpp_begin_message): Do inhibit_errors/inhibit_warnings
13355 * cppfiles.c (cpp_syshdr_flags): New function.
13356 (read_include_file): Don't call cpp_output_tokens. Call
13358 * cppinit.c (dump_macros_helper): Moved to cppmain.c.
13359 (cpp_reader_init): Don't initialize token_buffer. Call
13360 _cpp_init_internal_pragmas.
13361 (cpp_cleanup): Don't clear token_buffer.
13362 (cpp_start_read): Don't worry about output from -D processing.
13363 Don't call cpp_output_tokens.
13364 (cpp_finish): Don't dump macros here. Don't call
13366 * cppmacro.c (_cpp_dump_definition): Rename
13367 cpp_dump_definition. Write directly to a FILE *.
13368 (dump_funlike_macro): Delete.
13369 (dump_macro_args): New.
13371 * cpplex.c (TOKEN_LEN): Convert to inline function.
13372 (_cpp_grow_token_buffer, safe_fwrite, cpp_output_tokens,
13373 cpp_scan_line, _cpp_dump_list): Delete.
13374 (cpp_printf, cpp_output_list): New.
13375 (output_line_command): Don't worry about entering or leaving files.
13376 (cpp_scan_buffer): Just output each token as we hit it.
13377 (process_directive): Don't call cpp_output_tokens.
13378 (_cpp_glue_header_name): Don't use token_buffer.
13379 (output_token, dump_param_spelling): Write directly to a FILE *.
13381 * cpplib.c (pass_thru_directive, dump_macro_name,
13382 pragma_dispatch, do_pragma_gcc): Delete.
13383 (do_define, do_undef, parse_include, do_line, do_ident, do_pragma,
13384 do_pragma_poison, cpp_pop_buffer): Call the appropriate hook
13386 (do_error, do_warning, pragma_dependency): Call
13387 _cpp_begin_message, then cpp_output_list.
13388 (cpp_register_pragma, cpp_register_pragma_space,
13389 _cpp_init_internal_pragmas): New.
13390 (do_pragma): Walk the pragmas table here.
13391 (do_pragma_once, do_pragma_poison, do_pragma_system_header,
13392 do_pragma_dependency): Return void.
13393 (do_pragma_implementation): Moved to cppmain.c.
13395 * cpplib.h: Update prototypes.
13396 (struct cpp_reader): Remove printer, token_buffer,
13397 token_buffer_size, and limit. Add struct cb, and pragmas.
13398 (struct cpp_printer): Remove last_id and written.
13399 (CPP_WRITTEN, CPP_PWRITTEN, CPP_SET_WRITTEN,
13400 CPP_ADJUST_WRITTEN): Delete.
13401 * cpphash.h: Update prototypes.
13402 (ufputs): New wrapper.
13404 * cppmain.c (cb_define, cb_undef, cb_include, cb_ident,
13405 cb_enter_file, cb_leave_file, cb_def_pragma): New functions.
13406 (main): Set up callbacks. Register #pragma implementation.
13407 Dump macros from here.
13409 2000-08-01 Geoff Keating <geoffk@cygnus.com>
13411 * rtl.h (enum reg_note): Add REG_MAYBE_DEAD.
13412 * rtl.c (reg_note_name): Add REG_MAYBE_DEAD.
13413 * flow.c (propagate_one_insn): Allow deletion of prologue/epilogue
13414 insns if they have a REG_MAYBE_DEAD note attached.
13415 * config/rs6000/rs6000.c (rs6000_maybe_dead): New function.
13416 (rs6000_emit_load_toc_table): TOC loads may go dead.
13418 2000-08-01 Jim Wilson <wilson@cygnus.com>
13420 * config/ia64/ia64.c (ia64_function_arg): Fix last change. Verify
13421 type exists before using it. Use number of words as alignment
13423 (ia64_function_arg_partial_nregs, ia64_function_arg_advance,
13424 ia64_va_arg): Propagate ia64_function_args changes here.
13426 2000-08-01 Richard Henderson <rth@cygnus.com>
13428 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Care for null DECL.
13429 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13431 2000-08-01 Bernd Schmidt <bernds@cygnus.co.uk>
13433 From Joern Rennecke:
13434 * sh.h (CPP_SPEC, TARGET_SWITCHES): Add m4-nofpu.
13435 * sh.md (udivsi3, divsi3): Don't use libcalls that use the FPU
13436 unless TARGET_SH3E is set.
13437 * t-sh (MULTILIB_MATCHES): Add m2=m4-nofpu.
13439 * sh.md (ashlsi3_d, ashlsi3_k): Remove, replace with
13440 (ashlsi3_std): New pattern.
13441 (ashlsi3 expander): Use it for TARGET_SH3.
13442 * sh.c (gen_ashift): Use it instead of ashlsi3_k.
13444 Tue Aug 1 12:34:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13446 * loop.c (canonicalize_condition): Use destination, not source to
13447 determine SET's mode.
13449 2000-07-31 Mark Mitchell <mark@codesourcery.com>
13451 * flow.c (clear_log_links): Fix typo.
13453 Mon Jul 31 22:19:24 2000 Jeffrey A Law (law@cygnus.com)
13455 * loop.c (check_dbra_loop): Make change from July 17, 2000 work
13456 on targets which need more than one insn for a compare/cbranch
13459 2000-07-31 Jim Wilson <wilson@cygnus.com>
13461 * config/ia64/ia64.c (ia64_function_arg): Use alignment not size
13462 when computing offset.
13464 Mon Jul 31 20:35:50 2000 Denis Chertykov <denisc@overta.ru>
13466 * genpeep.c (main): Handle DEFINE_PEEPHOLE2.
13468 2000-07-31 Geoff Keating <geoffk@cygnus.com>
13470 * flow.c (clear_log_links): Nuke global_live_at_start and
13471 global_live_at_end data, since if the log_links stuff is invalid
13472 so is global_live_at_*.
13474 2000-07-31 Richard Henderson <rth@cygnus.com>
13476 * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
13478 2000-07-31 Jakub Jelinek <jakub@redhat.com>
13480 * cpplex.c (_cpp_get_line): If index is 0, return line 0 col 0.
13481 (_cpp_get_token): Don't macro expand a just pasted token if it
13482 was pasted at no_expand_level.
13484 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13486 * cppmacro.c (find_param, count_params, save_expansion):
13487 Permit 'defined' as a macro parameter name.
13489 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13491 * Makefile.in: Rename cpp to cpp0, tradcpp to tradcpp0, and
13492 xcpp to cpp throughout.
13493 (native): Remove unnecessary dependency on cpp.
13495 * gcc.c (trad_capable_cpp, C specs): Rename cpp to cpp,
13496 tradcpp to tradcpp0.
13497 (.i spec): Add missing output-file spec to cc1 command line.
13498 * objc/lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
13500 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
13502 * c-decl.c (mesg_implicit_function_declaration): Init to -1.
13503 (implicit_decl_warning): New function.
13504 (implicitly_declare): Use it.
13505 * c-typeck.c (build_external_ref): Use implicit_decl_warning
13506 to complain about implicit decls of builtins.
13508 * c-lang.c (lang_init): Set mesg_implicit_function_declaration
13509 based on pedantic && flag_isoc99, if not already set.
13510 * c-tree.h: Declare mesg_implicit_function_declaration.
13511 Prototype implicit_decl_warning.
13513 2000-07-30 Jeffrey D. Oldham <oldham@codesourcery.com>
13515 * Makefile.in (ssa.o): Updated header files in dependences.
13516 * basic-block.h: Added compute_immediate_postdominators declaration.
13517 * config/i386/i386.h (CONVERT_HARD_REGISTER_TO_SSA_P): Added
13519 * flow.c (compute_immediate_dominators): Updated comment.
13520 (compute_immediate_postdominators): Added definition.
13521 * rtl.h (HARD_REGISTER_P): Added definition.
13522 * ssa.c: Include additional header files.
13523 (assert): Added definition.
13524 (ssa_rename_to_lookup): Added to reimplement ssa_rename_to to
13525 include select hard registers.
13526 (ssa_rename_to_insert): Likewise.
13527 (ssa_rename_from_initialize): Likewise.
13528 (ssa_rename_from_lookup): Likewise.
13529 (original_register): Likewise.
13530 (ssa_rename_from_insert): Added to reimplement ssa_rename_from to
13531 include select hard reigsters.
13532 (ssa_rename_from_traverse): Likewise.
13533 (ssa_rename_from_free): Likewise.
13534 (ssa_rename_from_print): Likewise.
13535 (ssa_rename_from_print_1): Likewise.
13536 (ssa_rename_from_hash_function): Likewise.
13537 (ssa_rename_from_equal): Likewise.
13538 (ssa_rename_from_delete): Likewise.
13539 (simplify_to_immediate_dominators): Removed in favor of
13540 flow.c:compute_immediate_dominators.
13541 (find_evaluations_1): Modified to work with hard registers.
13542 (insert_phi_node): Likewise.
13543 (insert_phi_nodes): Likewise.
13544 (struct rename_set_data): Updated prev_reg comment.
13545 (create_delayed_rename): Modified to work with hard registers.
13546 (RENAME_NO_RTX): Updated comment.
13547 (apply_delayed_renames): Modified to work with hard registers.
13548 (rename_insn_1): Likewise and added handling of CLOBBER rtls.
13549 (rename_block): Updated to use revised ssa_rename_to interface.
13550 (rename_registers): Updated to use revised ssa_rename_to and
13551 ssa_rename_from interface.
13552 (convert_to_ssa): Revised to use compute_immediate_dominators and
13553 deal with hard registers.
13554 (make_regs_equivalent_over_bad_edges): Modified to work with hard
13555 registers. Added check for illegal unification of hard register.
13556 (make_equivalent_phi_alternatives_equivalent): Modified to work
13557 with hard registers.
13558 (compute_conservative_reg_partition): Likewise.
13559 (coalesce_if_unconflicting): Modified to work with hard registers
13560 and check for conflicting hard registers.
13561 (mark_phi_and_copy_regs): Revised loop to work only on pseudo
13563 (rename_equivalent_regs_in_insn): Modified to work with hard
13565 (record_canonical_element_1): Added definition.
13566 (check_hard_regs_in_partition): Added definition.
13567 (convert_from_ssa): Added data structure deallocation and check
13568 for illegal hard register unification.
13569 (conflict_hard_regs_p): Added definition.
13570 * toplev.c (rest_of_compilation): Added comment.
13572 2000-07-31 Anthony Green <green@redhat.com>
13574 * config/ia64/crtbegin.asm (__EH_FRAME_BEGIN__): Align correctly.
13576 2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
13578 * builtins.c (expand_builtin_apply): Don't defer pop during
13581 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13583 * calls.c (combine_pending_stack_adjustment_and_call): Only use
13584 preferred_unit_stack_boundary when it is > 1.
13586 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
13588 * c-common.c (init_function_format_info): Add C99 format functions
13591 * c-decl.c (get_parm_info): Don't treat 'const void', 'volatile
13592 void' or 'register void' as being the special case of 'void' alone
13593 in a parameter list.
13595 * c-typeck.c (build_c_cast): Change -Wcast-qual pedwarn for
13596 discarding qualifiers into a plain warning.
13598 2000-07-31 Kazu Hirata <kazu@hxi.com>
13600 * combine.c: Fix formatting.
13602 * h8300.md: Fix formatting.
13604 * local-alloc.c: Fix formatting.
13606 * h8300.c (get_shift_alg): Remove the variable alg.
13607 (emit_a_shift): Rearrange code to improve readability.
13609 * h8300.md (movsi_h8300hs): Rearrange code to improve readability.
13611 * h8300.h (MODES_TIEABLE_P): Accept a combination of QImode and
13612 HImode on all architectures and a combination of HImode and SImode
13613 on H8/300H and H8/S.
13615 * h8300.c (split_adds_subs): Rearrange code for conciseness.
13617 Mon Jul 31 12:27:55 MET DST 2000 Jan Hubicka <jh@suse.cz>
13619 * i386.md (addsi to lea splitter, ashlqi3_1_lea): Fix bugs
13620 in my last checkin.
13622 Mon Jul 31 10:41:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
13624 * recog.c (extract_insn): Set operand_mode according to
13625 operand if match_operand is VOIDmode.
13627 Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
13629 * recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
13631 2000-07-31 Geoff Keating <geoffk@cygnus.com>
13633 * c-parse.in (extdefs): Call ggc_collect between external
13636 2000-07-30 Michael Hayes <mhayes@cygnus.com>
13637 Richard Henderson <rth@cygnus.com>
13639 * Makefile.in (OBJS): Add doloop.o.
13640 * doloop.c: New file.
13642 * final.c (insn_current_reference_address): Return 0 before final.
13643 * flags.h (flag_branch_on_count_reg): Fix typos in commentary.
13644 * jump.c (any_uncondjump_p): Likewise.
13645 * loop.c (indirect_jump_in_function): Make static.
13646 (strength_reduce): Call doloop_optimize.
13647 (insert_bct, instrument_loop_bct): Remove.
13648 * loop.h (doloop_optimize): Prototype.
13649 * recog.c (split_all_insns): Split all INSN_P.
13650 * toplev.c (flag_branch_on_count_reg): Default on.
13652 * config/c4x/c4x.c (c4x_optimization_options): Don't set
13653 flag_branch_on_count_reg.
13654 * config/i386/i386.c (override_options): Likewise.
13655 * config/rs6000/rs6000.c (optimization_options): Likewise.
13657 * config/i386/i386.md (decrement_and_branch_on_count): Remove.
13659 (dbra_ge): Remove, as well as all it's splitters.
13661 * config/rs6000/rs6000.md (decrement_and_branch_on_count): Remove.
13664 * config/ia64/ia64-protos.h (ar_lc_reg_operand): Declare.
13665 (ia64_register_move_cost): Declare.
13666 * config/ia64/ia64.c (ar_lc_reg_operand): New.
13667 (struct ia64_frame_info): Add ar_size.
13668 (ia64_compute_frame_size): Set it.
13669 (save_restore_insns): Save and restore ar.lc.
13670 (ia64_register_move_cost): New, moved from header file. Handle
13671 application registers.
13672 (REG_AR_PFS, REG_AR_EC): Remove. Replace with AR_*_REGNUM numbers.
13673 (emit_insn_group_barriers): Special case doloop_end_internal.
13674 (ia64_epilogue_uses): Mark ar.lc live at end.
13675 * config/ia64/ia64.h (AR_CCV_REGNUM, AR_LC_REGNUM): New registers.
13676 (AR_EC_REGNUM, AR_PFS_REGNUM): New registers.
13677 (FIRST_PSEUDO_REGISTER): Make room.
13678 (AR_M_REGNO_P, AR_I_REGNO_P, AR_REGNO_P): New.
13679 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
13680 (REG_ALLOC_ORDER): Update.
13681 (HARD_REGNO_MODE_OK): Update.
13682 (REGISTER_NAMES): Update.
13683 (enum reg_class): Add AR_M_REGS and AR_I_REGS.
13684 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
13685 (REGNO_REG_CLASS): Update.
13686 (LEGITIMATE_ADDRESS_DISP): Displacement range is 9 bits, not 10.
13687 (REGISTER_MOVE_COST): Move out of line.
13688 (PREDICATE_CODES): Update.
13689 * config/ia64/ia64.md (movdi patterns): Handle ar register classes.
13690 (addsi3_plus1_alt, adddi3_plus1_alt): New.
13691 (shladd_elim splitter): Allow constants in the predicate.
13692 (doloop_end, doloop_end_internal): New.
13694 2000-07-30 Richard Henderson <rth@cygnus.com>
13696 * genattrtab.c (struct insn_def): Add lineno member.
13697 (struct insn_ent): Likewise.
13698 (struct attr_desc): Likewise.
13699 (struct delay_desc): Likewise.
13700 (struct function_unit_op): Likewise.
13701 (struct function_unit): Likewise.
13702 (check_attr_value): Use message_with_line.
13703 (check_defs): Likewise.
13704 (expand_units): Likewise.
13705 (check_attr_test): Take a lineno argument.
13706 (gen_attr): Likewise.
13707 (gen_insn): Likewise.
13708 (gen_delay): Likewise.
13709 (gen_unit): Likewise.
13710 (main): Give it to them.
13711 (convert_set_attr_alternative): Take an insn_def argument
13712 instead of num_alt and insn_index.
13713 (convert_set_attr): Likewise.
13714 (write_test_expr): Protect INSN_ADDRESSES load
13715 with INSN_ADDRESSES_SET_P.
13717 2000-07-30 Richard Henderson <rth@cygnus.com>
13719 * flow.c (init_propagate_block_info): Use pc_set.
13721 Sun Jul 30 20:58:34 MET DST 2000 Jan Hubicka <jh@suse.cz>
13723 * i386.md (*lea_general_[123]) New insns and splits.
13724 (addsi3 to lea splitter): Handle other modes too.
13725 (shlsi3 to lea splitter): Likewise.
13726 (addhi_1_lea, shlhi_1_lea): New patterns.
13727 (addhi_1, shlhi_1): Conditionize by PARTIAL_REG_STALL.
13729 Sun Jul 30 20:51:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
13731 * recog.c (general_operand, nonimmediate_operand): Accept
13732 any mode for VOIDmode CONSTANT_P operands.
13734 Sun Jul 30 20:42:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13736 * gcse.c (try_replace_reg): Use validate_replace_rtx_subexp
13737 instead of replace_rtx.
13738 * recog.c (validate_replace_rtx_subexp): New function.
13739 * recog.h (validate_replace_rtx_subexp): Declare.
13741 Sun Jul 30 20:38:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
13743 * combine.c (simplify_set, make_extraction, make_compound_operation
13744 make_field_assignment): Use full mask instead of GET_MODE_MASK (mode)
13745 as force_to_mode argument.
13747 Sun Jul 30 20:30:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
13749 * combine.c (if_then_else_cond): Be sure that mode fits in
13752 Sun Jul 30 20:27:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
13754 * combine.c (record_promoted_value): Allow bitsize of mode
13755 to be equivalent to HOST_BITS_PER_WISE_INT.
13757 Sun Jul 30 20:25:21 MET DST 2000 Jan Hubicka <jh@suse.cz>
13759 * function.c (assign_stack_local_1, assign_stack_temp_for_type):
13760 Do not call gen_mode_alignment when mode is BLKmode.
13762 Sun Jul 30 20:21:54 MET DST 2000 Jan Hubicka <jh@suse.cz>
13764 * loop.c (express_from_1): Fix call of simplify_gen_binary.
13766 Sun Jul 30 20:08:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
13768 * simplify-rtx.c (simplify_relational_operation): Verify that mode ==
13769 VOIDmode implies both operands to be VOIDmode.
13770 (simplify_ternary_operation): Compute properly the mode of comparison.
13771 * combine.c (combine_simplify_rtx): Likewise.
13773 2000-07-25 Michael Hayes <mph@paradise.net.nz>
13775 * basic-block.h (struct loops): New field rc_order.
13776 * flow.c (flow_loops_cfg_dump): Dump rc_order if computed.
13777 (flow_loops_free): Free rc_order.
13778 (flow_depth_first_order_compute): New parameter rc_order.
13779 (flow_loops_find): Allocate rc_order and swap usage with
13782 2000-07-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13783 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13785 * config/c4x/c4x.md (set_ldp_prologue): Add for RTL prologue/epilogue.
13786 (push_st, push_dp, pop_st, pop_dp, popqi_unspec): Likewise.
13787 (nodb_call, return_from_epilogue): Likewise.
13788 (return_from_interrupt_epilogue, prologue, epilogue): Likewise.
13789 * config/c4x/c4x.c (c4x_expand_prologue, c4x_expand_eplilogue): Add.
13790 * config/c4x/c4x-protos.h (c4x_interrupt_function_p): Add.
13791 (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
13792 (c4x_valid_type_attribute_p): Likewise.
13793 * config/c4x/c4x.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Delete.
13794 (FUNCTION_BLOCK_PROFILER_EXIT): Convert to emit RTL.
13796 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13798 * config/c4x/c4x.c (c4x_emit_move_sequence): Use loadqi_big_constant
13799 and loadhi_big_constant if applicable.
13800 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant): Tweak
13801 and add new splitter.s
13803 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13805 * config/c4x/c4x.c (c4x_rptb_insert): Make more robust.
13807 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13809 * config/c4x/c4x.h (ASM_FORMAT_PRIVATE_NAME): Output $ in label.
13811 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13813 * config/c4x/c4x.h (IS_XXX_REGNO): Rewrite to avoid unsigned warnings.
13815 2000-07-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13817 * config/c4x/libgcc.S (divqf3): Improve accuracy.
13819 2000-07-27 Mark Mitchell <mark@codesourcery.com>
13821 Put phi nodes after NOTE_INSN_BASIC_BLOCK.
13822 * rtl.h (NOTE_INSN_BASIC_BLOCK_P): New macro.
13823 * bb-reorder.c (get_next_bb_note): Use NOTE_INSN_BASIC_BLOCK_P.
13824 (get_prev_bb_note): Likewise.
13825 (remove_scope_notes): Likewise.
13826 * flow.c (commit_one_edge_insertion): Likewise.
13827 (merge_blocks_nomove): Likewise.
13828 (verify_flow_info): Likewise.
13829 * gcse.c (insert_insn_end_bb): Likewise.
13830 * reg-stack.c (emit_swap_insn): Likewise.
13831 * ssa.c (first_insn_after_basic_block_note): New function.
13832 (insert_phi_node): Use it.
13833 (rename_block): Likewise.
13834 (eliminate_phi): Likewise.
13835 (make_regs_equivalent_over_bad_edges): Likewise.
13836 (make_equivalent_phi_alternatives_equivalent): Likewise.
13837 (for_each_successor_phi): Likewise.
13838 (convert_from_ssa): Modify phi-node deletion algorithm.
13840 2000-07-29 Andreas Jaeger <aj@suse.de>
13842 * configure.in (mips*-*-linux*): Use mips*el to check for little
13843 endian MIPS, add tmake_file.
13845 * config/mips/linux.h (TARGET_VERSION): Use GNU/Linux.
13846 (SUBTARGET_CPP_SPEC): Default MIPS_ISA is 1.
13847 Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
13849 2000-07-28 Richard Henderson <rth@cygnus.com>
13851 * config/ia64/ia64.c (ia64_print_operand): Fix typos.
13852 Sign extend mode size before negating.
13854 2000-07-28 Richard Henderson <rth@cygnus.com>
13856 * emit-rtl.c (gen_lowpart_common): Add missing 'c' variable.
13858 2000-07-28 Bernd Schmidt <bernds@cygnus.co.uk>
13860 * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
13861 (cse_insn): Likewise.
13862 (addr_affects_sp_p): Likewise.
13863 * expr.c (move_by_pieces): Likewise.
13864 (clear_by_pieces): Likewise.
13865 * gcse.c (oprs_unchanged_p): Likewise.
13866 * haifa-sched.c (sched_analyze_2): Likewise.
13867 * recog.c (offsettable_address_p): Likewise.
13868 * regclass.c (record_address_regs): Likewise.
13869 * reload.c (find_reusable_reload): Likewise.
13870 (push_reload): Likewise.
13871 (operands_match_p): Likewise.
13872 (decompose): Likewise.
13873 (find_reloads_address_1): Likewise.
13874 (find_inc_amount): Likewise.
13875 * reload1.c (elimination_effects): Likewise.
13876 * resource.c (mark_set_resources): Likewise.
13877 * flow.c (attempt_auto_inc): New function; mostly broken out
13879 (find_auto_inc): Split into two functions and enhanced to
13880 generate POST_MODIFY.
13881 * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
13882 * rtl.h (count_all_occurrences): Declare.
13883 (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
13885 * rtlanal.c (count_all_occurrences): New function.
13886 * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
13887 HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
13889 * config/ia64/ia64-protos.h (destination_operand): Declare.
13890 * config/ia64/ia64.c (destination_operand): New function.
13891 (ia64_print_operand): Handle POST_MODIFY.
13892 (rtx_needs_barrier): Likewise.
13893 * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
13894 (HAVE_POST_MODIFY_REG): Define to 1.
13895 (MAX_REGS_PER_ADDRESS): Change to 2.
13896 (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
13897 (LEGITIMATE_ADDRESS_REG): New helper macro.
13898 (LEGITIMATE_ADDRESS_DISP): Likewise.
13899 (PREDICATE_CODES): Add entry for destination_operand.
13900 * config/ia64/ia64.md (all mov patterns): Use destination_operand
13901 predicate for operand 0.
13903 2000-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13905 * dwarf2out.c: Indent #error directive.
13907 * gbl-ctors.h: Fix typo in comment.
13908 (__do_global_ctors): Prototype.
13910 * gcse.c (record_one_set, pre_delete): Remove unused variables.
13912 * rs6000.c (rs6000_maybe_dead): Delete unused prototype.
13913 (print_operand): Initialize variable `t'.
13915 2000-07-27 Aldy Hernandez <aldyh@redhat.com>
13917 * config/arm/arm.md ("call_value"): removed constraints.
13918 Constraints are ignored in expanders.
13919 (*call_value_reg): split =rf into various constraints.
13920 (*call_value_mem): same
13921 (*call_value_symbol): same
13922 (*sibcall_value_insn): same
13924 2000-07-28 Philipp Thomas <pthomas@suse.de>
13926 * install.texi (--enable-nls): Change the description of the NLS
13927 related configure options to match the current state.
13928 (--with-included-gettext): Likewise.
13929 (--enable-maintainer-mode): New description added.
13930 * extend.texi (-fstrict-prototype): Add missing '.'.
13932 2000-07-27 Jim Wilson <wilson@cygnus.com>
13934 * dwarf2out.c (gen_decl_die): Don't call gen_abstract_function if
13935 DECL_INITIAL (decl) == NULL_TREE.
13937 2000-07-27 Alexandre Oliva <aoliva@redhat.com>
13939 * Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies
13940 on insn-attr.h with it.
13941 * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length.
13942 * insn-addr.h: New header.
13943 (insn_addresses_): Renamed from insn_addresses.
13944 (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC,
13945 INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE,
13946 INSN_ADDRESSES_NEW): New macros.
13947 * genattrtab.c (write_test_expr): Use new macros.
13948 * final.c (insn_addresses, init_insn_lengths): Likewise.
13949 (align_fuzz, shorten_branches): Likewise.
13950 (final): Likewise. Do not reject new insns if their addresses
13951 have been added to INSN_ADDRESSES.
13952 * config/arm/arm.c, config/avr/avr.c: Use new macros.
13953 * config/h8300/h8300.c, config/i370/i370.c: Likewise.
13954 * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise.
13955 * config/sparc/sparc.c, config/sparc/sparc.md: Likewise.
13956 * config/sh/sh.c: Likewise.
13957 (output_branchy_insn): Use INSN_ADDRESSES_NEW.
13959 * Makefile.in (bootstrap): Move -BstageN/ back to the beginning.
13961 2000-07-27 Andrew Cagney <cagney@b1.cygnus.com>
13963 * gcc.c (struct prefix_list): Add member priority.
13964 (enum path_prefix_priority): Declare.
13965 (add_prefix): Replace ``first'' with ``priority''. Append new
13966 entry but keep list in priority order.
13967 (process_command): Update. Pass PREFIX_PRIORITY_B_OPT or
13968 PREFIX_PRIORITY_LAST to add_prefix.
13969 (process_command): Move include kludge - foo/stageN - to before
13972 2000-07-27 Jason Merrill <jason@redhat.com>
13974 * dwarf2out.c (gen_typedef_die): Abort if we get identical
13975 TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef.
13977 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
13979 * expr.h (get_alias_set, lang_get_alias_set): Delete prototypes.
13980 * tree.h (get_alias_set, lang_get_alias_set): Prototype.
13982 2000-07-27 Joseph S. Myers <jsm28@cam.ac.uk>
13984 * c-decl.c (finish_function): Don't treat 'main' specially unless
13985 flag_hosted. In C99 mode, return 0 from 'main' unless
13986 DEFAULT_MAIN_RETURN is otherwise defined.
13988 * c-decl.c (store_parm_decls): In C99 mode, pedwarn for function
13989 parameters defaulting to int in an old-style function definition.
13991 2000-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13993 * c-parse.in (string): For -Wtraditional, warn about string
13994 concatenation only once per line.
13996 Thu Jul 27 09:25:17 2000 Akiko Matsushita <matusita@sra.co.jp>
13998 * pa/x-pa-hpux: Add -D_HIUX_SOURCE to FIXPROTO_DEFINES
13999 for HI-UX/WE2 systems.
14001 2000-07-24 Bruce Korb <bkorb@gnu.org>
14003 * fixincl/fixfixes.c(emit_gnu_type): rewrote to *rely* on GCC
14004 defining the __xxx_TYPE__ macros.
14005 * fixincl/fixincl.tpl(gnu_type_map): now obsolete
14006 * fixincl/fixlib.h: don't need to include "tm.h" anymore
14007 * fixincl/inclhack.def(type_map): now obsolete
14009 Thu Jul 27 11:54:17 2000 Andrew Cagney <cagney@b1.cygnus.com>
14011 * cpp.texi: Append a trailing full-stop to xrefs where needed.
14013 2000-07-26 Dave Pitts <dpitts@cozx.com>
14015 * i370.c: Remove LONGEXTERNAL ifdef from alias_number. Added hash
14017 (mvs_hash_alias): New function.
14018 (mvs_add_alias): Change argument spacing.
14019 (mvs_need_alias): Change aliasing criteria. Added documentation.
14020 (mvs_get_alias): Change to use hashed name. The hashed name prevents
14021 CSECT name collisions.
14022 (mvs_check_alias): Likewise.
14023 (handle_pragma): Change documentation.
14024 * i370.md (mulsi3, divsi3, udivsi3, modsi3, umodsi3): Changed gen_rtx
14025 mode from SImode to DImode.
14026 (iorhi3): Changed LTORG size for insn.
14028 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
14030 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
14031 mem if the address is a mode_dependent_address_p.
14033 2000-07-26 Kazu Hirata <kazu@hxi.com>
14035 * h8300.c (print_operand): Print ":8" when the 'R' operand is
14036 suitable for 8-bit absolute.
14037 * h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
14038 (OK_FOR_U): Add a case for the 8-bit constant address on the
14041 Wed Jul 26 19:26:21 2000 Hans-Peter Nilsson <hp@axis.com>
14043 * varasm.c (assemble_variable) [! defined(ASM_OUTPUT_ALIGNED_COMMON)
14044 && ! defined (ASM_OUTPUT_ALIGNED_BSS]): Also test
14045 ! defined(ASM_OUTPUT_ALIGNED_DECL_COMMON) before complaining about
14046 lack of implemented alignment.
14048 2000-07-26 Geoffrey Keating <geoffk@cygnus.com>
14050 * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETIC]: Handle
14051 cross-compiling between 64-bit and 32-bit machines.
14053 2000-07-27 Richard Henderson <rth@cygnus.com>
14055 * config/ia64/ia64.md (movqicc_astep, movqi_internal_astep): New.
14056 (movhicc_astep, movhi_internal_astep): New.
14057 (movsicc_astep, movsi_internal_astep): New.
14058 (movdicc_astep, movdi_internal_astep): New.
14059 (movsfcc_astep, movsf_internal_astep): New.
14060 (movdfcc_astep, movdf_internal_astep): New.
14061 (movxfcc_astep, movxf_internal_astep): New.
14062 (cmovdi_internal_astep, cmovsi_internal_astep): New.
14063 Unify the cmov[ds]i splitters.
14065 2000-07-27 Rodney Brown <RodneyBrown@pmsc.com>
14067 * real.c (asctoeg): Rename `error' label to unexpected_char_error
14069 2000-07-26 Nick Clifton <nickc@cygnus.com>
14071 * config/arm/vxarm.h (CPP_PREDEFINES): Remove definition of
14072 __arm__. Allow it to be defined by CPP_ISA_SPEC in arm.h
14074 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept SEQUENCE as
14075 well as PARALLEL blocks in FRAME_RELATED_EXPR notes.
14077 2000-07-26 Alexandre Oliva <aoliva@redhat.com>
14079 * c-decl.c (finish_enum): Convert enumerations that fit in an
14081 (build_enumerator): In pedantic mode, cast to `int' those that
14084 2000-07-25 Rodney Brown <RodneyBrown@pmsc.com>
14086 * config/alpha/osf.h (SIZE_TYPE, PTRDIFF_TYPE): New.
14088 Tue Jul 25 23:08:33 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14090 * sh.md (cmpgtdi_t): Must be split.
14091 (cmpgtdi_t+1): New splitter.
14093 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
14095 * cpplib.c (_cpp_check_directive): Issue -Wtraditional
14096 warnings for indented directives even if we are skipping.
14098 2000-07-25 Nathan Sidwell <nathan@codesourcery.com>
14100 * invoke.texi (strict-prototypes): Remove.
14101 * extend.texi (Deprecated Features): Add strict-prototypes.
14102 (Backwards Compatibility): New node.
14104 2000-07-25 Jakub Jelinek <jakub@redhat.com>
14106 * config/i386/i386.md (andsi_1+1): Allow HImode.
14107 (andsi_1+2): Require q_regs_operand.
14109 2000-07-25 Jakub Jelinek <jakub@redhat.com>
14111 * config/i386/i386.md (call_pop): Check operands[0],
14112 not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
14114 (call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
14115 (call_value): Likewise.
14117 2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
14119 * toplev.c (pipe_closed): Delete.
14120 (crash_signal): New. Generate ICE for a fatal signal.
14121 (float_signal): Call crash_signal outside a float-handler
14123 (main): Install crash_signal as handler for core-dumping signals.
14125 2000-07-25 David Edelsohn <edelsohn@gnu.org>
14127 * rs6000.c (print_operand, case 'T'): New case.
14129 * rs6000.md (call_indirect_aix32): Convert to expander of
14130 scheduled instructions.
14131 (call_indirect_aix64): Likewise.
14132 (call_value_indirect_aix{32,64}): Likewise.
14133 (call, call_value): Invoke expanders for AIX. Fall through to
14135 (call_indirect_nonlocal_aix{32,64}): New patterns (ctr and lr).
14136 (call_value_indirect_nonlocal_aix{32,64}): New patterns.
14137 (call_nonlocal_aix32): Remove CALL_LONG alternative. Operand 1
14138 only "g" constraint.
14139 (call_nonlocal_aix64): Likewise.
14140 (call_value_nonlocal_aix{32,64}): Likewise.
14141 (call_nonlocal_sysv): New pattern for ctr, lr, and symbolic
14143 (call_value_nonlocal_sysv): New pattern.
14144 (indirect_jump{si,di}): Use new 'T' modifier.
14145 (tablejump{si,di} matchers): Likewise.
14146 (return_internal_{si,di}): Likewise.
14147 (return_eh_{si,di}): Likewise.
14149 2000-07-24 Richard Henderson <rth@cygnus.com>
14151 * config/ia64/ia64.c (ia64_print_operand): Handle "%,".
14152 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
14153 * config/ia64/ia64.md (movdi_internal): Use it.
14155 2000-07-24 Zack Weinberg <zack@wolery.cumb.org>
14157 * cppexp.c: Warn about unary + if -Wtraditional.
14158 * cpplex.c (lex_line): Always set BOL on the first token of a line.
14160 2000-07-24 Michael Meissner <meissner@redhat.com>
14162 * d30v.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Delete references to
14165 2000-07-24 Nick Clifton <nickc@cygnus.com>
14167 * config/arm/arm.c (emit_multi_reg_push): Generate a
14168 REG_FRAME_RELEATED_NOTE that is compatable with the code in
14169 dwarf2out_debug_frame_expr.
14171 2000-07-24 Jason Merrill <jason@redhat.com>
14173 * dwarf2out.c: Complain if DWARF2_DEBUGGING_INFO is defined without
14174 UNALIGNED_INT_ASM_OP.
14175 (def_cfa_1): Don't emit def_cfa_register or def_cfa_offset to adjust
14176 a location expression.
14177 (dwarf2out_frame_debug_expr): Lose cfa_old_reg stuff. Don't
14178 assume indirect access if we're saving the CFA address exactly.
14180 * Makefile.in (bootstrap): Move -BstageN/ to the end.
14182 2000-07-24 Jakub Jelinek <jakub@redhat.com>
14184 * tradcpp.c (main): Update max_include_len for cpp_include_defaults
14187 2000-07-24 Michael Meissner <meissner@redhat.com>
14189 * invoke.texi (D30V Options): Add d30v options.
14191 Mon Jul 24 02:04:52 2000 Jeffrey A Law (law@cygnus.com)
14193 * gcse.c (alloc_pre_mem): Do not alloc TRANSPOUT, it is not
14194 needed by our gcse pass anymore.
14195 (free_pre_mem): Corresponding changes.
14196 (compute_pre_data): Do not call compute_transpout anymore.
14198 * gcse.c (alloc_avail_expr_mem): Kill unused 'u_bitmap'.
14199 (free_avail_expr_mem, alloc_pre_mem, free_pre_mem): Corresponding
14202 * gcse.c (free_pre_mem): Do not free ANTLOC and AE_KILL here.
14203 (compute_pre_data): Do it here instead.
14205 * gcse.c (alloc_pre_mem, free_pre_mem): Delete unused bitmap
14207 (pre_delete): Corresponding changes.
14209 2000-07-23 Mark Mitchell <mark@codesourcery.com>
14211 * c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN
14212 to figure out whether or not a variable has already been emitted.
14214 Sun Jul 23 14:49:12 2000 Jason Eckhardt <jle@cygnus.com>
14216 * config/i860/i860.md (untyped_call expander): Use GEN_CALL
14217 instead of gen_call.
14219 Sun Jul 23 11:52:03 2000 George Helffrich (george@gly.bris.ac.uk)
14221 * dbxout.c (dbxout_type, case COMPLEX_TYPE): Fix length field in stab.
14223 2000-07-23 Kazu Hirata <kazu@hxi.com>
14225 * h8300.c: Fix formatting.
14227 2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
14229 * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
14230 for `long' switch expression into a plain warning.
14232 * c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
14233 (yylex): Don't pedwarn for "inline" in C99 mode.
14235 * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
14237 * ggc-page.c (debug_print_page_list, alloc_page, free_page,
14238 ggc_alloc): Likewise.
14239 * bb-reorder.c (dump_scope_forest_1): Likewise.
14241 2000-07-22 Aldy Hernandez <aldyh@redhat.com>
14243 * reload.c (find_reloads_toplev): Add new parameter
14244 "address_reloaded".
14245 (find_reloads): Add new parameter to find_reloads_toplev calls.
14247 2000-07-22 Jeffrey Oldham <oldham@codesourcery.com>
14249 * collect2.c (main): Typo fixed.
14250 * diagnostic.c: Typo fixed.
14251 * dwarf2out.c (dwarf2out_frame_debug_expr): Typo fixed.
14252 * eh-common.h: Typo fixed.
14253 * emit-rtl.c (start_sequence): Typo fixed.
14254 * flow.c (find_label_refs): Typo fixed.
14255 (calculate_global_regs_live): Typo fixed.
14256 (mark_regno_cond_dead): Typo fixed.
14257 (create_edge_list): Typos fixed.
14258 (verify_edge_list): Typo fixed.
14259 * ggc-common.c (ggc_mark_rtx_children): Typo fixed.
14260 * loop.c (strength_reduce): Typo in function name fixed.
14261 * rtl.h: Added comments. Typo in function name fixed.
14262 * rtlanal.c: Typo in function name fixed.
14263 (insn_dependant_p): Rename to ...
14264 (insn_dependent_p): ... this.
14265 (computed_jumo_p): Typo fixed.
14267 2000-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14269 * system.h (__FUNCTION__): Wrap definition in #ifndef.
14271 2000-07-21 David Edelsohn <edelsohn@gnu.org>
14273 * rs6000.h (SIZE_TYPE): Define.
14275 2000-07-21 Mark Mitchell <mark@codesourcery.com>
14277 * ssa.c (rename_insn_1): Don't rename registers that are
14280 2000-07-21 Zack Weinberg <zack@wolery.cumb.org>
14282 * diagnostic.c (trim_filename, fancy_abort): Moved here from
14284 (fatal_function, set_fatal_function): Removed.
14285 (fatal): Don't prepare for or call the fatal_function.
14286 (diagnostic_lock, error_recursion): New.
14287 (diagnostic_for_decl, report_diagnostic): Guard against
14288 re-entering the error reporting routines.
14289 (fancy_abort): Assume function is not NULL.
14291 * errors.c (fancy_abort): New. Assume function is not NULL.
14292 * tradcpp.c (fancy_abort): Assume function is not NULL.
14294 * system.h: Provide default definition of __FUNCTION__.
14295 * rtl.h: Use __FUNCTION__ not __PRETTY_FUNCTION__ throughout.
14296 Always use __FUNCTION__ in definition of abort.
14297 * tree.h: Likewise.
14298 * varray.h: Likewise.
14299 * toplev.h: Likewise. Don't prototype set_fatal_function.
14301 2000-07-20 Geoff Keating <geoffk@cygnus.com>
14303 * config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
14305 * glimits.h: Don't do #if defined for ARCH_PPC.
14307 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
14308 constants of size no larger than a pointer should go in the TOC.
14309 Add 'MODE' parameter.
14310 (LEGITIMIZE_RELOAD_ADDRESS): Add MODE parameter to
14311 ASM_OUTPUT_SPECIAL_POOL_ENTRY_P.
14312 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
14313 * config/rs6000/aix.h (SELECT_RTX_SECTION): Likewise.
14314 * config/rs6000/netware.h (SELECT_RTX_SECTION): Likewise.
14315 * config/rs6000/rs6000.c (constant_pool_expr_1): Likewise.
14316 (rs6000_legitimize_address): Likewise.
14317 (rs6000_emit_move): Likewise.
14318 (rs6000_select_rtx_section): Likewise.
14319 (output_toc): Deal properly with outputting small constants like
14320 HImode, and SFmode in 32-bit mode, and DFmode in 64-bit mode.
14321 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Add
14322 MODE parameter. Put small constants in the TOC.
14324 * config/rs6000/rs6000.c (easy_fp_constant_p): All constants are
14326 (rs6000_emit_move): When reload calls us with an illegitimate
14327 address, exit early. Move the change_address calls to one place
14328 at the end of the routine. Merge the SImode and DImode expanders.
14329 When called by reload to put an integer into a FP register, force
14332 * config/rs6000/rs6000.c (struct toc_hash_struct): Add 'key_mode'
14334 (rs6000_hash_constant): Hash mode too.
14335 (toc_hash_function): Allow for key_mode.
14336 (toc_hash_eq): Structures are different if key_mode differs.
14337 (output_toc): Add 'mode' parameter. Save key_mode.
14338 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY):
14339 Pass 'mode' parameter.
14340 * config/rs6000/rs6000-protos.h (output_toc): Add 'mode' param.
14342 * config/rs6000/rs6000.c (output_toc): Use RS6000_OUTPUT_BASENAME
14343 for vtable references.
14345 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): If we have a
14346 choice, don't put integer values in FP regs.
14348 Thu Jul 20 18:13:52 2000 Jeffrey A Law (law@cygnus.com)
14350 * flow.c (verify_flow_info): Revamp code to verify that the
14351 head and end of each basic block are in the insn chain.
14353 Thu Jul 20 18:02:35 2000 Michael Matz <matzmich@cs.tu-berlin.de>
14355 * gcse.c (record_one_set): Prepend instead of append onto
14356 reg_set_table, making it O(n) instead O(n^2).
14357 * lcm.c (compute_antinout_edge,compute_laterin,compute_available):
14358 Use a queue instead of a stack as worklist.
14360 2000-07-20 Kazu Hirata <kazu@hxi.com>
14362 * h8300.c (two_insn_adds_subs_operand): Fix a typo.
14363 * h8300.h (OK_FOR_T): New.
14364 (EXTRA_CONSTRAINT): Support OK_FOR_T.
14365 * h8300.md: Use inc/dec.[wl] for increment/decrement
14366 by 1 and 2 in HI and SI modes.
14368 2000-07-20 Jim Wilson <wilson@cygnus.com>
14370 * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Handle DELTA values
14371 larger than 14 bits.
14373 2000-07-20 Zack Weinberg <zack@wolery.cumb.org>
14375 * cppmacro.c (CAN_PASTE_AFTER): New macro.
14376 (count_params): Don't set GNU_REST_ARGS on anything.
14377 (save_expansion): Set PASTE_LEFT only on tokens for which
14378 CAN_PASTE_AFTER is true, or which are named operators.
14380 * cpplex.c (parse_args): Distinguish between a rest argument
14381 given one empty argument, and a rest argument given zero arguments.
14382 (maybe_paste_with_next): Look for VOID_REST tag, and trigger
14383 deletion of previous token based on that.
14384 (get_raw_token): Flatten some control structure.
14386 * cpplib.h (CPP_LAST_EQ): Correct.
14387 (VOID_REST): New token flag.
14388 (GNU_REST_ARGS): Delete.
14390 * tradcpp.c (main): Don't munge -D options.
14391 (make_definition): Bring -D handling in line with cpplib.
14392 (do_define): Strip all leading whitespace from macro definitions.
14394 2000-07-20 David Billinghurst <David.Billinghurst@riotinto.com.au>
14396 * Makefile.in (tradcpp): Depend on intl.o and version.o.
14398 2000-07-20 Bruce Korb <bkorb@gnu.org>
14400 * fixincl/check.tpl: strip the platform specific types before testing
14401 * fixincl/fixfixes.c(gnu_type_fix): use platform specific types
14402 * fixincl/fixincl.tpl: use platform specific types
14403 * fixincl/fixlib.h: include the platform specific types
14404 * fixincl/inclhack.def(gnu_types): don't supply the types
14405 * fixincl/fixincl.x: regen
14407 2000-07-19 Jim Wilson <wilson@cygnus.com>
14409 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Don't allow XFmode in
14412 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
14414 * tradcpp.c (rescan): Do not recognize directives when the #
14417 2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
14419 Implement C++ named operators.
14421 * cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
14422 of operators allowed in #if and having an _EQ variant. Add
14423 CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED.
14424 (cpp_token flags): Add NAMED_OP.
14425 (enum node_type): Add T_OPERATOR.
14426 (struct cpp_hashnode): Add code slot to value union.
14427 * cpphash.h (spec_nodes): Remove n_defined.
14429 * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types.
14430 (spell_token, can_paste, maybe_paste_with_next): Handle named operators.
14431 (is_macro_disabled): Tweak error messages.
14433 * cpplib.c (get_define_node): Disallow all named operators as
14434 macro names. Tweak error messages.
14435 (_cpp_init_stacks): Don't set up spec_nodes->n_defined.
14437 * cppinit.c (builtin_array): Add entries for the named operators.
14438 * cppexp.c (lex): Check for CPP_DEFINED token.
14439 (priority table): Add entries for CPP_MIN and CPP_MAX.
14440 (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX.
14442 2000-07-19 Bernd Schmidt <bernds@cygnus.co.uk>
14444 * gcse.c (INSN_CUID): If ENABLE_CHECKING, abort if the uid is
14445 larger than the array of cuids.
14446 (alloc_gcse_mem): Use uid_cuid rather than INSN_CUID when computing
14449 2000-07-19 Bruce Korb <bkorb@gnu.org>
14451 * fixinc/fixincl.c: Convert to using a table of environment variables
14452 and activate the auto-edit marker on the fixed output files.
14453 * fixinc/fixlib.h: Define the environment table
14454 * fixinc/fixincl.sh: export the ${INPUT} dir
14455 * fixinc/check.tpl: likewise
14457 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
14459 * gcc.c (.h spec): Fix typo.
14461 Wed Jul 19 01:22:15 CEST 2000 Marc Espie <espie@cvs.openbsd.org>
14463 * Makefile.in: Fix tradcif.c path.
14465 2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
14467 * cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
14470 * cpphash.h (TOKEN_NAME): New macro.
14471 (_cpp_spell_operator): Deleted.
14472 (token_spellings): Now _cpp_token_spellings.
14474 * cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
14475 * cpplex.c: Use OP and TK macros when expanding the
14476 TTYPE_TABLE. Eliminate token_names. For non-OPERATOR tokens,
14477 store the stringification of the enumeration name (CPP_CHAR,
14478 etc.) in the name slot of token_spellings.
14479 Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
14480 token_spellings directly.
14481 * cpplib.c: Use TOKEN_SPELL.
14483 * cpplex.c (_cpp_push_token): If the token being pushed back
14484 is the previous token in this context, just subtract one from
14486 * cppmacro.c (save_expansion): Clear aux field when storing a
14489 2000-07-18 Jakub Jelinek <jakub@redhat.com>
14491 * cpplex.c (cpp_scan_buffer): Output line command even at the stop
14492 buffer, provided it is not NULL.
14494 2000-07-18 Alexandre Oliva <aoliva@redhat.com>
14496 * c-decl.c (duplicate_decls): Do not call make_var_volatile() in
14497 case of invalid volatile re-declaration.
14499 2000-07-18 Jakub Jelinek <jakub@redhat.com>
14501 * calls.c (store_arg): Return non-zero if sibcall_failure is desired.
14502 (expand_call): Adjust caller.
14504 2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com>
14506 * diagnostic.h (report_diagnostic): Change prototype.
14508 * diagnostic.c (output_do_verbatim, diagnostic_for_asm,
14509 diagnostic_for_decl): Change prototype.
14510 (error_with_decl, warning_with_decl, pedwarn_with_decl, warning,
14511 error, warning, error_with_file_and_line,
14512 warning_with_file_and_line, pedwarn_with_file_and_line, fatal):
14513 Adjust call to report_diagnostic, diagnostic_for_decl.
14514 (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm.
14515 (output_verbatim, verbatim): Adjust call to output_do_verbatim.
14517 * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End
14518 varaible argument list.
14520 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
14522 * cpphash.c: Don't include hashtab.h. Most macro-handling code
14523 moved to cppmacro.c.
14524 (hash_HASHNODE, eq_HASHNODE, _cpp_dump_macro_hash,
14525 dump_hash_helper): Delete.
14526 (expand_hash, higher_prime_number, _cpp_lookup_with_hash,
14527 cpp_forall_identifiers): New. Implement specialized version of
14528 Vlad's expandable hash table.
14529 (cpp_lookup): Use new functions.
14530 (_cpp_init_macros, _cpp_cleanup_macros): Adjust for new
14532 * cppmacro.c: New file.
14533 * cppinit.c (dump_macros_helper): New.
14534 (cpp_finish): Iterate over the identifier table directly.
14535 * cpplex.c (parse_name): Calculate the hash of the identifier
14536 while we scan it. Use _cpp_lookup_with_hash when we can.
14538 * cpphash.h: Update prototypes.
14539 (xcnewvec, HASHSTEP): New helper macros.
14540 * cpplib.h: Update prototypes.
14541 * Makefile.in (LIBCPP_OBJS): Add cppmacro.o.
14542 (cppmacro.o): New rule.
14543 (cpphash.o): Update deps.
14545 * cppmain.c: Do not set pfile->printer if no_output is on.
14547 2000-07-15 Neil Booth <neilb@earthling.net>
14549 * cpplib.c: Change all directive-handler functions to return
14551 * cpphash.h: Update typedefs.
14553 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
14555 * configure: Regenerate.
14557 * extend.texi (Extended Asm): Mention that a memory clobber
14558 does not count as a side-effect.
14560 * unroll.c (copy_loop_body): Fix one instance of using host
14561 arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit
14564 * tlink.c (scan_linker_output): Tweak for output of AIX ld.
14566 2000-07-17 Richard Henderson <rth@cygnus.com>
14568 * config/ia64/ia64.md (movdi): Split out load address code.
14569 New post-reload splitter for symbolic operands.
14570 (movdi_internal): Abort if we didn't split symbolic operands
14571 when we should have.
14572 * config/ia64/ia64.c (ia64_expand_load_address): New, from movdi bits.
14573 (ia64_reorg): Split insns when not optimizing.
14574 * config/ia64/ia64-protos.h (ia64_expand_load_address): Declare.
14576 Mon Jul 17 23:43:26 MET DST 2000 Jan Hubicka <jh@suse.cz>
14578 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use LONG_DOUBLE_TYPE_SIZE
14579 instead of MAX_LONG_DOUBLE_TYPE_SIZE to decide output format.
14581 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
14583 * loop.c (check_dbra_loop) : Changed loop_continue to loop->cont.
14585 2000-07-17 Jason Merrill <jason@redhat.com>
14587 * Makefile.in (clean): Remove libgcc directory.
14589 * configure.in (-Wno-long-long check): Use higher-level macros.
14591 2000-07-17 Zack Weinberg <zack@wolery.cumb.org>
14593 * simplify-rtx.c (simplify_binary_operation): Recognize
14594 (compare (gt[u] (cc) 0) (lt[u] (cc) 0)).
14595 (simplify_ternary_operation): Do not examine MODE_BITSIZE of
14596 a CONST_INT, it will always be zero.
14598 2000-07-17 Chandrakala Chavva <cchavva@cygnus.com>
14600 * loop.c (check_dbra_loop) : Return if more than one condition is
14601 present to control the loop.
14603 Mon Jul 17 08:26:35 2000 Clinton Popetz <cpopetz@cygnus.com>
14605 * mips.c (mips_expand_prologue): Don't calculate the last argument
14606 register unless we need it. When we are calculating this, make
14607 sure FUNCTION_ARG is giving us a REG.
14609 2000-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14611 * flow.c (libcall_dead_p): Use single_set to verify the insn
14612 has only one set and get for analysis.
14613 (propagate_one_insn): Don't pass the PATTERN of the insn.
14615 2000-07-17 Mark Klein <mklein@dis.com>
14617 * pa.c (emit_hpdiv_const): Update to match new pattern for udivsi3.
14619 2000-07-17 J. David Anglin <dave@hiauly1.hia.nrc.ca>
14621 * Makefile.in (TARGET_GETGROUPS_T): New configuration variable.
14622 * configure.in (TARGET_GETGROUPS_T): Evaluate.
14623 * sys-protos.h (getgroups): Use TARGET_GETGROUPS_T for array type
14624 of second argument of getgroups.
14625 * configure, config.in: Rebuilt.
14627 2000-07-17 Geoffrey Keating <geoffk@cygnus.com>
14629 * simplify-rtx.c (simplify_relational_operation): Two signed
14630 values with equal high words are less/greater than each other if
14631 their low words are less/greater when considered as unsigned.
14633 Mon Jul 17 02:37:06 2000 Marc Espie <espie@openbsd.org>
14635 * configure.in (vax-*-openbsd): Change to new style configuration,
14636 add collect2/float_format information.
14637 * configure: Rebuilt.
14638 * config/vax/openbsd1.h: New.
14639 * config/vax/openbsd.h: New.
14640 * config/vax/t-openbsd: New.
14642 2000-07-17 Chip Salzenberg <chip@valinux.com>
14644 * c-common.c (shorten_compare): Quiet warnings about unsigned
14645 comparisons with zero when they occur in a system header.
14647 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
14649 * invoke.texi (-pedantic): Refer to ISO C instead of ANSI C, and
14650 update to describe current practice.
14652 * glimits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define for C99.
14654 * contrib.texi, cpp.texi, extend.texi, invoke.texi: Update
14655 references to C9X. Change references to -fstd and -flang-isoc9x
14658 * c-common.c (scan_char_table): Allow "z" length modifiers on
14660 (check_format_info): Use TYPE_DOMAIN on the type matched against
14661 for "z" formats, to retrieve the language size_t rather than the
14664 * c-common.c (check_format_info): Do not make a pedantic objection
14665 to the 'L' length modifier if used with a floating point type
14668 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
14669 constants in C99 mode.
14671 2000-07-17 Kazu Hirata <kazu@hxi.com>
14673 * h8300.md: Fix the format of mac.
14674 (movsi_h8300hs): Output a tab after stmac instead of a space.
14676 * h8300.c (two_insn_adds_subs_operand): Improve code for detecting
14677 profitable adds/subs sequences.
14679 * fold-const.c: Fix comment typos.
14681 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
14683 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
14685 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14687 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
14689 2000-07-16 Neil Booth <NeilB@earthling.net>
14691 * cpplex.c: Update comments.
14692 * README.Portability: Small update.
14694 2000-07-16 Neil Booth <NeilB@earthling.net>
14696 * README.Portability: Small update.
14698 2000-07-15 Richard Henderson <rth@cygnus.com>
14700 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
14701 * config/ia64/ia64.c (ia64_move_ok): New function.
14702 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
14703 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
14705 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
14707 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
14708 immediately following a paste operator.
14709 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
14710 (cpp_reader_init): Call it, if HOST_EBCDIC.
14711 (cpp_handle_options): Do not sort option list here.
14712 (handle_option): Rename to cpp_handle_option and export.
14713 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
14714 _cpp_get_token directly.
14715 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
14716 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
14717 * cpplib.h: Prototype cpp_handle_option. Update prototype of
14720 2000-07-15 Richard Henderson <rth@cygnus.com>
14722 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
14723 cast around an expression. Tidy other unsigned tests.
14725 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
14727 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
14728 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
14729 (v_message_with_decl): Rename to ...
14730 (format_with_decl): ... this. Tweak
14731 (diagnostic_for_decl): New function.
14732 (fatal_io_error): Use verbatim in lieu of notice.
14733 (announce_function): Use verbatim.
14734 (default_print_error_function): Likewise.
14735 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
14738 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14740 * mips.c (function_arg_pass_by_reference): Don't do automatic
14741 aggregate initialization.
14742 (machine_dependent_reorg): Initialize variable `mode'.
14744 * mips.md (absdi2): Change variable `regno1' to unsigned int.
14745 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
14746 conflicts with sys/param.h macro of the same name.
14747 (reload_outdi): Likewise.
14749 2000-07-15 Michael Meissner <meissner@redhat.com>
14751 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
14752 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
14753 create a new node instead.
14755 2000-07-15 Neil Booth <NeilB@earthling.net>
14757 * README.Portability: Correct example about calling a function
14758 through a pointer to function. Format wide paragraphs.
14760 2000-07-15 Michael Meissner <meissner@redhat.com>
14762 * README.Portability: Update integer suffixes and function
14763 prototype sections.
14765 2000-07-15 Neil Booth <NeilB@earthling.net>
14767 * README.Portability: Small update.
14769 2000-07-15 Neil Booth <NeilB@earthling.net>
14771 * README.Portability: New file.
14773 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
14775 * INSTALL: Give special instructions for building GCC on Irix 6.
14776 * config/mips/x-iris6 (CC): Don't set it.
14779 2000-07-14 Jason Merrill <jason@redhat.com>
14781 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
14782 register in the stack and later in another register, use the new
14785 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
14787 * config/mips/mips.md: (absdi2): Handle sign_extend for
14790 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
14792 * cpplib.c (do_pragma_dependency): Tidy warning messages.
14794 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
14796 * .cvsignore: Correct typo.
14798 2000-07-13 Mark Mitchell <mark@codesourcery.com>
14800 * .cvsignore: Add generated YACC files.
14801 * objc/.cvsignore: New file.
14803 2000-07-14 Neil Booth <NeilB@earthling.net>
14805 * cpplex.c (adjust_column): New funcion.
14806 (skip_whitespace): Use it.
14807 (skip_block_comment): Use it, and warn about /*/* with
14810 2000-07-14 Neil Booth <NeilB@earthling.net>
14812 * cpphash.c (struct macro_info): Add new members.
14813 (_cpp_free_definition): Delete the macro directly.
14814 (count_params): Return void, with first token of
14815 expansion in struct macro_info on success.
14816 (parse_define): Return int. Hoist syntax checking from
14817 save_macro_expansion. Leave call to save_expansion to
14818 _cpp_create_definition.
14819 (alloc_macro): Needs just 2 arguments.
14820 (free_macro): Delete.
14821 (save_expansion): Don't perform syntax check.
14822 (_cpp_create_definition): Call save_expansion.
14824 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14826 * genrecog.c (write_header): Split long string.
14828 * cpphash.c (macro_info): Don't use the `signed' keyword.
14830 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
14832 2000-07-13 Jakub Jelinek <jakub@redhat.com>
14834 * calls.c (stored_args_map): New variable.
14835 (check_sibcall_argument_overlap_1): New.
14836 (check_sibcall_argument_overlap): New.
14837 (expand_call): Initialize stored_args_map.
14838 Call check_sibcall_argument_overlap.
14840 2000-07-13 Bruce Korb <bkorb@gnu.org>
14842 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
14843 (emit_gnu_type): utility procedure for gnu_type_fix
14844 (gnu_type_fix): implement various pre-processor guards around
14845 standard types so these types can be defined over and over
14846 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
14847 types alluded to above will have GNU-compliant base types
14848 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
14849 * fixinc/inclhack.def: add test_text entries and utilize the new
14850 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
14851 * fixinc/fixincl.x: regenerate
14853 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
14855 * diagnostic.c (vline_wrapper_message_with_location,
14856 v_message_with_file_and_line, v_error_with_file_and_file,
14857 v_error_for_asm, v_warning_for_asm, vfatal,
14858 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
14859 vsorry, verror, vwarning, vpedwarn): Remove.
14860 (diagnostic_for_asm): New function.
14861 (pedwarn, error, warning, pedwarn_with_file_and_line,
14862 error_with_file_and_line, warning_with_file_and_line, sorry,
14863 error_for_asm, warning_for_asm, fatal): Reimplement.
14864 (finish_diagnostic): Clear diagnostic info as well.
14866 2000-07-13 Neil Booth <NeilB@earthling.net>
14868 * c-common.h (flag_digraphs): New.
14869 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
14870 * c-lex.c (yylex): Use flag_digraphs to decide whether to
14873 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
14875 * gcc.c (do_spec_1): Add new %B operator.
14876 (set_input): Prepare for %B.
14878 (link_command_spec): Move up with the other tm.h-
14879 overrideable specs. Factor out the portion conditional on
14880 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
14881 (struct compiler): Just have a single spec string. All users
14883 (default_compilers): Remove unnecessary braces.
14884 (static_specs): Update.
14886 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
14888 (C and assembly specs): Use the new named specs, as appropriate.
14890 * objc/lang-specs.h: Use the new named specs.
14891 Remove unnecessary braces.
14893 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14895 * gcc.c (execute): If a subprocess gets a fatal signal, report
14896 strsignal() of the signal number, and ask for a bug report.
14897 Do not do this for SIGPIPE if there's already been an error.
14899 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
14900 Delete pipe_closed.
14902 * tradcif.c: Remove.
14904 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14906 * final.c (profile_function): Do not emit profile counters in
14907 the data section, if NO_PROFILE_COUNTERS is defined.
14908 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
14911 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
14912 (FUNCTION_PROFILER): Just emit a call to mcount.
14914 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14916 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
14918 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
14919 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
14920 traditional, lang_chill, or lang_fortran.
14922 * cppfiles.c: #undef strcmp to suppress warning about macros
14923 used without arguments.
14924 (_cpp_execute_include): Use f, not fname, in "No include path"
14926 (_cpp_pop_file_buffer): New function.
14927 * cpplib.c: Don't include <sys/mman.h>.
14928 (cpp_push_buffer): Set line_base and lineno in new buffer.
14929 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
14931 * cpplex.c: Move all prototypes and structure declarations to the
14932 top of the file. Properly parenthesise some macro arguments.
14933 (cpp_scan_line): New function.
14934 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
14935 don't need to walk up the stack counting.
14937 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14939 * c-common.c (combine_strings): Emit a pedantic warning when a
14940 string length is greater than the minimum ANSI C is required
14943 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
14945 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
14946 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
14948 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14950 * c-decl.c (define_label): Warn about identifier conflicts with
14951 labels in traditional C.
14953 * c-parse.in (unop +): Warn about the unary plus operator for
14956 * c-typeck.c (store_init_value): Warn about automatic aggregate
14957 initialization for traditional C.
14959 * invoke.texi (-Wtraditional): Document new warnings.
14961 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
14963 * Makefile.in (c-errors.o): Fix thinko in dependency.
14965 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14967 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
14968 -traditional, -ftraditional, or -traditional-cpp was given.
14969 Do not pass -traditional to the preprocessor.
14970 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
14971 preprocessor does it automatically.
14972 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
14974 * ch/lang-specs.h: Always use tradcpp. Do not pass
14975 -traditional, -trigraphs, or -pedantic to the preprocessor.
14976 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
14979 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
14981 * cppexp.c (LOGICAL): Delete macro.
14982 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
14985 * cpphash.c (HASHSIZE): Increase to 4096.
14986 (struct hashdummy): Add hash field.
14987 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
14988 the string values using memcmp.
14989 (cpp_lookup): Set dummy.hash.
14991 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
14993 * configure.in (m88k-openbsd): Express configuration using new fragment
14995 * configure: Rebuilt.
14996 * m88k/aout-dbx.h: New.
14997 * m88k/openbsd.h: New.
14998 * m88k/xm-openbsd.h: New.
15000 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15002 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
15004 2000-07-12 Richard Henderson <rth@cygnus.com>
15006 * reload.c (push_secondary_reload): Make sure to add the new
15007 reload at the end, after acquiring secondary memory.
15009 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15011 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
15013 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
15014 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
15016 * c-parse.in (stmt): Delete unused variables.
15018 * convert.c (convert_to_vector): Likewise.
15020 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
15022 * tree.c (finish_vector_type): Prototype.
15024 2000-07-12 Bruce Korb <bkorb@gnu.org>
15026 * fixinc/fixfixes.c: use xmalloc
15027 * fixinc/fixincl.c(initialize): set program name for xmalloc
15028 * fixinc/fixlib.c(must_malloc): obsolete
15029 (is_cxx_header): no longer used - disabled
15030 (skip_quote): inserted and disabled for future use
15031 * fixinc/fixlib.h: reflects above
15032 * fixinc/fixtests.c: removed dinkleberries
15034 2000-07-12 Neil Booth <NeilB@earthling.net>
15036 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
15037 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
15039 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
15040 struct toklist_dummy): New.
15041 (cpp_free_definition): Free macros with free_macro.
15042 (count_params): Don't save paramter spellings. Save macro
15043 information in a struct macro_info.
15044 (parse_define): Don't allocate a token list.
15045 (save_expansion): Allocate the macro's token list, and
15046 save parameter spellings if necessary. Use TOKEN_SPELL.
15047 (cpp_create_definition): Make list const.
15049 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
15051 * c-typeck.c (pedwarn_c99): Move to
15052 * c-errors.c: ... Here.
15053 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
15054 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
15055 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
15056 (c-errors.o): List dependency.
15058 2000-07-12 Mark Mitchell <mark@codesourcery.com>
15060 * c-parse.c: Remove.
15061 * c-parse.h: Likewise.
15062 * c-parse.y: Likewise.
15063 * objc/objc-parse.c: Likewise.
15064 * objc/objc-pasre.y: Likewise.
15066 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
15068 * gcc.texi: Fix minor typos
15069 * extend.texi: Fix minor typos
15071 2000-07-11 Marc Espie <espie@openbsd.org>
15073 * collect2.c (main): Recognize .lo as object files.
15075 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
15077 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
15080 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
15081 with MAP_ANONYMOUS and MAP_ANON.
15082 * configure, config.in: Rebuilt.
15084 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
15086 * diagnostic.c (save_output_state): Remove.
15087 (restore_output_state): Likewise.
15088 (clear_text_info): New function.
15089 (clear_diagnostic_info): Likewise.
15090 (output_text_length, is_starting_newline, output_prefix,
15091 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
15092 prefixing_policy, output_buffer_ptr_to_format_args): New macros
15093 (set_real_maximum_length, output_set_maximum_length,
15094 output_set_prefix, output_get_prefix, output_set_maximum_length,
15095 output_destroy_prefix, init_output_buffer,
15096 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
15097 output_add_newline, output_add_character, output_add_space,
15098 output_append_r, output_append, wrap_text, output_format,
15099 output_do_printf, output_printf, output_do_verbatim,
15100 output_verbatim, verbatim): Use them.
15101 (output_clear): Split into cleat_text_info and
15102 clear_diagnostic_info.
15103 (struct output_state): Move to...
15105 * diagnostic.h: ...Here
15106 (struct output_buffer): Adjust.
15108 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
15110 * cpplex.c (parse_name): No longer inline (premature optimization).
15111 (do_pop_context): Fold into pop_context.
15112 (pop_context): Returns int.
15113 (lex_next): Hoist test for end of directive into pop_context.
15114 (push_macro_context): Returns int; takes just reader and token.
15115 Hoist test for excessive nesting to caller.
15116 (push_arg_context): Returns void; takes just reader and token.
15117 Do not call stringify_arg or get_raw_token.
15118 (get_raw_token): Convert tail recursion through push_arg_context
15119 to a loop at this level. Call stringify_arg here if appropriate.
15120 (maybe_paste_with_next): Convert tail recursion to a while loop.
15121 Hoist test of paste_level to caller.
15123 (stringify_arg): Push arg context at beginning.
15124 (cpp_get_token): Split out core into _cpp_get_token. Call
15125 process_directive here. Throw away CPP_PLACEMARKER tokens.
15126 (_cpp_get_token): Convert tail recursion through
15127 push_macro_context to a loop at this level.
15128 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
15129 _cpp_get_raw_token): Use _cpp_get_token.
15130 (_cpp_skip_rest_of_line): Drop the context stack directly; do
15131 not call pop_context.
15132 (_cpp_run_directive): Call lex_next directly.
15134 * cpphash.h: Prototype _cpp_get_token.
15135 * cppexp.c (lex): Use it.
15136 * cpphash.c (parse_define): Use it.
15137 * cpplib.c (get_define_node, do_undef, parse_include,
15138 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
15139 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
15140 parse_ifdef, validate_else): Use it.
15141 (cpp_push_buffer): Tweak error message; abort if anyone tries
15142 to push a buffer while macro expansions are stacked.
15144 2000-07-11 Donn Terry <donnte@microsoft.com>
15146 * cpplex.c (free_macro_args, save_token): Cast arg of free
15147 and/or xrealloc to PTR.
15148 (_cpp_init_input_buffer): Clear all fields of the base context.
15150 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
15152 * gensupport.c (process_rtx): Make rtl checking stop
15153 complaining about the define_insn while it is being
15154 converted from a define_insn_and_split.
15156 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
15158 * config/mips/mips.c (simple_memory_operand): Access the
15159 INTVAL of the address, not it's containing MEM.
15161 2000-07-11 Bruce Korb <bkorb@gnu.org>
15163 * fixinc/fixtests.c(double_slash): obsolete
15164 (else_endif_label): likewise
15165 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
15166 (libc1_ifdefd_memx): correct initial comment
15167 and omit the #if/#endif pair from the memxxx declarations
15168 * fixinc/fixincl.x: regen
15170 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15172 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
15174 2000-07-11 Neil Booth <NeilB@earthling.net>
15176 * cpp.texi: Update.
15178 2000-07-11 Neil Booth <NeilB@earthling.net>
15180 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
15181 (handle_option): Set digraphs according to standard.
15182 Merge OPT_lang_c89 handler with OPT_std_c89.
15184 * cpplex.c: (lex_line, can_paste): Honour digraphs in
15185 accordance with the digraphs flag.
15187 * cpplib.h: (struct cpp_options): New option digraphs.
15189 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
15190 Bruce Korb <bkorb@gnu.org>
15192 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
15193 * fixinc/fixincl.x: Regenerate.
15194 * fixinc/tests/base/testing.h: Add testcase.
15196 2000-07-10 Richard Henderson <rth@cygnus.com>
15198 * config/ia64/ia64.c (got_symbolic_operand): New.
15199 (symbolic_operand, move_operand): Revert 0701 change.
15200 * config/ia64/ia64.h (PREDICATE_CODES): Update.
15201 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
15202 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
15203 split the offset into a 14-bit low part instead of a 13-bit low part.
15204 (load_fptr): Mark the mem as unchanging.
15205 (load_symptr): Use got_symbolic_operand.
15207 2000-07-10 Nick Clifton <nickc@cygnus.com>
15209 * libgcc2.c (next_stack_level): Cast result of computation to
15210 (void **) so that the assignment does not generate a warning.
15212 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
15214 * flags.h : Add new variable flag_single_precision_constant.
15215 * toplev.c (display_help) : Add -fsingle-precision-constant option.
15216 (flag_single_precision_constant): New.
15217 * c-lex.c (yylex): Convert floating point constant to single
15218 precision constant.
15219 * invoke.texi : Add documentation for this new option.
15221 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
15223 * diagnostic.c (output_octal): Second parameter is unsigned.
15224 (output_long_octal): Likewise.
15225 (output_hexadecimal): Likewise.
15226 (output_long_hexadecimal): Likewise.
15227 (output_format): Adjust arguments extraction. Tweak.
15228 (output_verbatim, verbatim): End variable argument list.
15229 (report_diagnostic): Improve documentation.
15231 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
15233 * c-common.h (build_stmt): Declare.
15234 (build_continue_stmt): Likewise.
15235 (build_break_stmt): Likewise.
15236 (build_return_stmt): Likewise.
15238 * c-decl.c (do_case): Rewrite to do what previously done in
15241 * c-semantics.c (build_stmt): Define.
15242 (build_return_stmt): Likewise.
15243 (build_break_stmt): Likewise.
15244 (build_continue_stmt): Likewise.
15245 (build_case_label): Likewise.
15247 * c-parse.in (BREAK): Change to build tree, then generate RTL.
15248 (CONTINUE): Likewise.
15249 (RETURN): Likewise.
15251 (DEFAULT): Likewise.
15253 * c-parse.y: Regenerate.
15254 * c-pasre.c: Likewise.
15256 2000-07-09 Jason Merrill <jason@redhat.com>
15258 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
15260 * tree.h (STRIP_NOPS): Check for error_mark_node.
15261 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
15262 (dwarf2out_*): Remove duplicate declarations.
15264 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
15265 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
15267 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
15269 * diagnostic.c (wrap_text): New function.
15270 (maybe_wrap_text): Likewise.
15271 (output_add_string): Use it.
15272 (output_format): Likewise.
15273 (count_error): Use verbatim instead of notice.
15274 (report_error_function): Likewise. Don't use plain fprintf.
15275 (finish_diagnostic): New function.
15276 (output_do_verbatim): Tweak. Commonalize functionalities in
15277 output_verbatim and verbatim.
15278 (output_verbatim): Adjust.
15279 (verbatim): Likewise.
15280 (report_diagnostic): Define.
15282 * diagnostic.h (report_diagnostic): Prototype.
15284 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
15286 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
15288 2000-07-09 Neil Booth <NeilB@earthling.net>
15290 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
15291 IShspace, ISspace: Update.
15293 * cppinit.c: ISTABLE: Update.
15296 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
15297 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
15298 (skip_block_comment, skip_line_comment, parse_string,
15299 lex_line): Use is_vspace rather than IS_NEWLINE.
15300 (skip_whitespace, lex_line): Clean up to use is_nvspace.
15301 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
15303 (lex_next): Unconditionally stop if within a directive.
15304 Treat directives within macro invocations as directives
15305 (after parse_args emits error), not as the argument.
15307 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
15309 * diagnostic.c (diagnostic_args): New macro.
15310 (diagnostic_msg): Likewise.
15311 (output_formatted_integer): Likewise.
15312 (output_state): New data type.
15313 (digit_buffer): Make global.
15314 (output_add_integer): Rename to output_decimal. Squeeze
15316 (output_long_decimal, output_unsigned_decimal,
15317 output_long_unsigned_decimal, output_octal, output_long_octal,
15318 output_hexadecimal, output_long_hexadecimal): New functions.
15319 (output_append_r): New function.
15320 (output_append): Tweak.
15321 (output_flush_on): Rename to output_to_stream.
15322 (output_format): Change prototype. Improve documentation. Handle
15323 more format specifiers.
15324 (build_location_prefix): Rename to context_as_prefix.
15325 (output_notice): Rename to output_do_printf.
15326 (output_printf): Tweak.
15327 (line_wrapper_printf): Likewise.
15328 (vline_wrapper_message_with_location): Adjust call to renamed
15330 (v_message_with_decl): Likewise.
15331 (default_print_error_function): Likewise.
15332 (save_output_state): New function.
15333 (restore_output_state): Likewise.
15334 (output_do_verbatim): Likewise.
15335 (output_verbatim): Define.
15336 (verbatim): Likewise.
15338 * diagnostic.h (printer_fn): Change return type from void to int.
15339 Improve documentation.
15340 (output_add_integer): Rename to output_decimal.
15341 (output_flush_on, output_format): Don't export.
15342 (output_verbatim, verbatim): Declare.
15344 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
15346 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
15347 Check whether c divides op1 exactly if operation is not
15350 2000-07-08 Richard Henderson <rth@cygnus.com>
15352 * final.c (final): Do not abort when reg-stack introduces
15355 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
15357 * cpplib.h (struct cpp_name): Now struct cpp_string.
15358 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
15359 CPP_HEADER_NAME): Change to type S.
15360 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
15361 field, a cpp_hashnode *. All references to val.name updated
15362 to use val.str or val.node as appropriate.
15363 (struct cpp_reader): Add spec_nodes field.
15364 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
15366 * cpphash.h (struct spec_nodes): New.
15367 (enum spell_type): Reorder. Only SPELL_STRING tokens use
15368 val.str. All references to 'spelling > SPELL_NONE' updated to
15371 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
15372 pfile->buffer->inc are not NULL before dereferencing them.
15374 * cpplex.c (parse_name): Take a pointer to the current token,
15375 plus current position and limit as args; return the new
15376 position; don't copy the text of a name into the string
15377 buffer, instead call cpp_lookup and store the node pointer.
15378 If extending a token, copy out the text of the old into a
15379 scratch buffer, append the new, look that up and store the new
15380 node pointer. Inline.
15381 (maybe_paste_with_next): If the result of paste is a NAME,
15382 then look up the pasted text and store its node pointer.
15383 (lex_line): Adjust for new parse_name interface.
15384 Check for L"str", L'str' using spec_nodes->n_L.
15385 (spell_token): SPELL_IDENT tokens have their spelling in
15386 val.node->name. Handle SPELL_STRING tokens that don't have
15388 (_cpp_expand_name_space,
15389 (can_paste): Check for L ## "str" using spec_nodes->n_L.
15390 (cpp_get_token, special_symbol): No need to call cpp_lookup.
15391 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
15392 return 1=equal 0=not, not a tristate.
15394 * cpphash.c (var_args_str): Delete.
15395 (find_param): Compare node fields directly.
15396 (is__va_args__): Use CPP_PEDANTIC. Just compare
15397 token->val.node with spec_nodes->n__VA_ARGS__.
15398 (dump_funlike_macro): Don't use var_args_str.
15400 * cpplib.c (_cpp_check_directive): Just walk through
15401 spec_nodes->dirs comparing pointers.
15402 (get_define_node, do_pragma_poison, detect_if_not_defined,
15403 parse_ifdef): The identifier has already been looked up.
15404 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
15406 (do_if): Only call detect_if_not_defined at beginning of file.
15407 (_cpp_parse_assertion): Only copy string pointers for
15408 SPELL_STRING tokens.
15409 (pragma_dispatch): Take a node pointer and examine its name
15411 (_cpp_init_stacks): Also initialize the spec_nodes structure.
15413 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
15415 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
15416 reverse order from the corresponding _cpp_init_* routines.
15418 * cppexp.c (parse_number, parse_charconst, parse_defined,
15419 lex): Check val.node->type instead of calling cpp_defined.
15420 Use spec_nodes entries where appropriate.
15422 * fix-header.c, scan-decls.c: Update for interface changes.
15424 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
15426 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
15427 emitting aux_truncdfsf2.
15429 2000-07-03 Donn Terry (donnte@microsoft.com)
15431 * cppinit.c (print_help): split overlong line into ISO C89
15434 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
15436 * cppexp.c: Update all code for new lexer interface.
15437 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
15438 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
15439 * cpplex.c (token_names): Trim leading CPP_ from names; make
15440 the strings unsigned.
15441 (_cpp_spell_operator): New.
15442 (is_macro_disabled): Disable all macros if rescanning
15444 (_cpp_get_directive_token): Remove.
15446 * cppinit.c: Don't set no_macro_expand.
15447 * cpplib.c (read_line_number, do_line): Check only for EOF,
15449 * cpphash.h: Update prototypes.
15450 * cpplib.h (CPP_VSPACE): Remove.
15451 (struct cpp_reader): Remove no_macro_expand.
15453 2000-07-08 Neil Booth <NeilB@earthling.net>
15455 * cpphash.c (is__va_args__): New function.
15456 (count_params): Fix line reported in error messages. Use
15457 is__va_args__. Don't return ')' on error. Flag GNU style
15458 rest args macro definitions.
15459 (parse_define): Check macro name is not __VA_ARGS__.
15460 (save_expansion): Check identifier in non-varargs-macro is
15461 not __VA_ARGS__. Don't flag GNU_VARARGS.
15462 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
15463 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
15464 than per-token GNU_VARARGS.
15465 * cpplib.h (GNU_VARARGS): Remove.
15466 (GNU_REST_ARGS): New.
15468 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
15470 * i386.md (call_pop, call, call_value_pop): Do not set
15471 current_function_uses_pic_offset_table for calls to static
15472 functions or indirect calls.
15474 2000-07-07 Jim Wilson <wilson@cygnus.com>
15476 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
15477 is_predicate_reg, then take max write_count of register pair.
15479 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15481 * tradcpp.c (main): Rename label `include' to `add_include' to
15482 avoid conflicts with variable `include' in traditional C.
15484 2000-07-07 Jakub Jelinek <jakub@redhat.com>
15486 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
15488 2000-07-07 Jakub Jelinek <jakub@redhat.com>
15490 * sibcall.c (uses_addressof): Add INMEM argument, check for
15491 current_function_internal_arg_pointer outside of MEM rtxs in addition
15493 (sequence_uses_addressof): Update caller.
15495 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
15497 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
15500 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15502 * system.h (UNION_INIT_ZERO): New macro for initializing union
15503 members in structs.
15505 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
15507 2000-07-07 Neil Booth <NeilB@earthling.net>
15509 * cpp.texi: Update.
15511 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
15513 * final.c (final): Detect out of bounds array access to
15514 the insn_lengths array.
15516 2000-07-07 Kazu Hirata <kazu@hxi.com>
15518 * fold-const.c (fold): Fix a comment typo.
15520 2000-07-07 Neil Booth <NeilB@earthling.net>
15522 * cpp.texi: Update to new lexer.
15524 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
15526 * tradcpp.c: New file.
15527 * tradcif.y: New file.
15528 * tradcif.c: New generated file.
15530 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
15531 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
15532 dependencies of C. Install tradcpp from install-common, in
15535 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
15537 * cppinit.c: Include cppdefault.h. Refer to
15538 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
15539 to GCC_INCLUDE_DIR and its length.
15540 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
15541 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
15542 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
15544 (include_defaults_array): Move to cppdefault.c.
15546 * cppdefault.h: New file.
15547 * cppdefault.c: New file.
15549 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
15550 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
15551 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
15554 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15556 * reload.c (push_reload): When seeing if can reuse a register,
15557 check extra registers against widest of INMODE and OUTMODE.
15559 2000-07-06 Neil Booth <NeilB@earthling.net>
15561 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
15562 based on full length of predicate.
15564 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
15566 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
15567 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
15569 2000-07-05 Kazu Hirata <kazu@hxi.com>
15571 * h8300-proto.h: Fix formatting.
15572 * h8300.c: Likewise.
15573 * h8300.h: Likewise.
15575 2000-07-05 Jim Wilson <wilson@cygnus.com>
15577 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
15580 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
15582 * invoke.texi: Fix minor typos
15583 * md.texi: Fix minor typos
15585 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
15587 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
15589 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
15591 * cpplex.c: Don't include sys/mman.h.
15592 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
15594 * cpplib.c: Include sys/mman.h and obstack.h.
15595 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
15597 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
15598 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
15599 bother freeing if stack entries (they will be freed with their buffer).
15600 (do_endif): Free if stack entries from the buffer obstack.
15601 (push_conditional): Allocate if stack entries from the buffer obstack.
15603 (find_answer): Rename to _cpp_find_answer.
15604 (do_assert, do_unassert): Update.
15606 * cpphash.h: Update prototypes.
15607 (xobnew): New convenience macro.
15608 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
15610 (struct cpp_hashnode): Remove disabled field.
15612 * cppinit.c: Don't include hashtab.h or splay-tree.h.
15613 (report_missing_guard): Moved to cppfiles.c.
15614 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
15616 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
15617 cpp_cleanup_includes. Don't destroy hashtab or
15618 all_include_files here.
15619 (cpp_finish): Use _cpp_report_missing_guards.
15621 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
15622 (_cpp_init_include_table): Rename _cpp_init_includes.
15623 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
15625 * cppexp.c (parse_assertion): Update for new name of
15628 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
15630 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
15632 * cpplib.c (do_ident): s/VSPACE/EOF/
15634 2000-07-05 Neil Booth <NeilB@earthling.net>
15636 * cpplex.c: Fix trigraph replacement within strings.
15638 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15640 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
15642 * xcoffout.c (assign_type_number): Constify.
15643 (xcoffout_source_file): Add static prototype. Don't needlessly
15644 cast away const-ness.
15646 2000-07-04 Jason Merrill <jason@redhat.com>
15648 * frame.h (frame_state): Move base_offset to end.
15650 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
15652 * calls.c (emit_library_call_value_1): Revert previous change.
15654 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
15656 * fix-header.c (struct partial_proto): Remove unnecessary fields.
15657 (recognized_extern, recognized_function, read_scan_file):
15658 Update for new scheme.
15659 (check_protection): It's still a multiple include guard even
15660 if it doesn't always trigger.
15661 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
15663 * scan.h: Declare struct cpp_token. Update prototypes.
15665 2000-07-03 Neil Booth <neilb@earthling.net>
15666 Zack Weinberg <zack@wolery.cumb.org>
15668 Complete overhaul of the lexer and macro expander.
15670 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
15671 arg, arglist, argdata, reflist, collect_objlike_expansion,
15672 collect_funlike_expansion, collect_params,
15673 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
15674 unsafe_chars, macarg, compare_defs, special_symbol,
15675 scan_arguments, stringify, funlike_macroexpand,
15676 _cpp_quote_string, monthnames): Delete.
15677 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
15678 _cpp_create_definition, _cpp_dump_definition,
15679 dump_hash_helper): Adjust.
15680 (find_param, count_params, parse_define, var_args_str,
15681 check_macro_redefinition, save_expansion): New.
15683 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
15684 parse_string, output_line_command, trigraph_replace,
15685 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
15686 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
15687 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
15688 _cpp_skip_rest_of_line): Modify.
15690 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
15691 find_position, null_warning, bump_column, expand_name_space,
15692 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
15693 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
15694 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
15695 _cpp_prescan): Delete.
15697 (dump_param_spelling, process_directive, lex_next,
15698 is_macro_disabled, stringify_arg, expand_context_stack,
15699 output_token, make_string_token, alloc_number_token,
15700 special_symbol, duplicate_token, maybe_paste_with_next,
15701 can_paste, prevent_macro_expansion, restore_macro_expansion,
15702 get_temp_token, release_temp_tokens, quote_string,
15703 token_names, token_spellings, _cpp_expand_name_space,
15704 _cpp_glue_header_name, _cpp_reserve_name_space,
15705 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
15706 placemarker_token, eof_token, cpp_context, macro_args,
15707 get_raw_token, parse_arg, parse_args, save_token,
15708 push_arg_context, push_macro_context, pop_context,
15709 do_pop_context, free_macro_args, _cpp_get_line,
15710 _cpp_run_directive): New.
15712 * cpplib.c (validate_else, parse_include, push_conditional,
15713 pass_thru_directive, read_line_number, parse_ifdef,
15714 detect_if_not_defined, _cpp_check_directive, do_define,
15715 do_undef, do_include, do_import, do_include_next, do_error,
15716 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
15717 top_pragmas, do_pragma_gcc, do_pragma_implementation,
15718 do_pragma_poison, do_pragma_system_header,
15719 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
15720 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
15721 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
15722 cpp_defined): Update for new scheme.
15723 (strtoul_for_line, get_define_node, dump_macro_name,
15724 _cpp_check_linemarker, _cpp_parse_assertion): New.
15725 (_cpp_handle_directive, do_pragma_default): Delete.
15727 * cpphash.h (struct predicate): Now struct answer.
15728 (enum spell_type, struct token_spelling, struct directive,
15729 directive_handler): New.
15730 Update prototypes. Remove unused macros.
15731 * cpplib.h: Update prototypes. Remove unused macros,
15732 structure definitions, and fields.
15734 * cpperror.c (print_containing_files, v_message): Adjust.
15735 * cppexp.c (parse_assertion, lex, parse_escape,
15736 _cpp_parse_expr): Adjust.
15737 * cppfiles.c (open_include_file, _cpp_execute_include,
15738 _cpp_compare_file_date, cpp_read_file, read_include_file):
15740 * cppinit.c (dump_special_to_buffer): Delete.
15741 (append_include_chain, merge_include_chains, cpp_reader_init,
15742 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
15743 cpp_finish, handle_option, print_help): Adjust.
15744 * cppmain.c (main): Adjust.
15746 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
15748 * cppspec.c (lang_specific_driver): Use double quotes in error
15751 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
15753 * calls.c (emit_library_call_value_1): Use valreg instead
15754 of hard_libcall_value.
15756 2000-07-03 Geoff Keating <geoffk@cygnus.com>
15758 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
15759 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
15760 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
15768 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
15769 mode instead of wider_mode is being used.
15771 2000-07-03 Jakub Jelinek <jakub@redhat.com>
15773 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
15774 of 'r'. Use q_regs_operand.
15775 (andsi_1+2): Use q_regs_operand.
15777 2000-07-03 Jakub Jelinek <jakub@redhat.com>
15779 * builtins.c (get_memory_rtx): Always put into alias set 0.
15781 2000-07-03 Nick Clifton <nickc@cygnus.com>
15783 * config/arm/arm.md: Fix post increment and pre increment
15784 peepholes so that they do not generate UNPREDICATBLE opcodes.
15785 (ie ones where the increment clobbers the source/destination).
15787 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
15789 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
15790 change too big for -mtiny-stack" a warning, if larger than 63.
15791 (out_set_stack_ptr): Change the logic so -mno-interrupts is
15792 always safe to use on possible future devices.
15793 (function_prologue): Write SPH before SPL, for consistency.
15794 If interrupt_func_p true, we know we have enabled interrupts.
15795 (avr_num_arg_regs): New function. Round up to even number of
15796 bytes if no -mpack-args or if calling a libgcc function.
15797 (function_arg, function_arg_advance): Use it.
15798 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
15799 Output "movw" if available.
15800 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
15801 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
15802 (asm_output_section_name): Add blanks for consistent output.
15803 (encode_section_info): Set TREE_READONLY for progmem data to
15804 avoid gas warnings about changed section attributes.
15805 (avr_hard_regno_mode_ok): Force non-QImode data to start in
15806 even numbered registers on devices with "movw".
15807 * config/avr/avr.h (MASK_*): Define bits for target_flags.
15808 (TARGET_SWITCHES): Mark help strings for translation.
15809 Add new -mpack-args and -menhanced switches.
15810 (TARGET_OPTIONS): Mark help strings for translation.
15811 (progmem_section): Add section attributes.
15812 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
15813 Output "movw" if available.
15814 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
15816 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
15817 call convention (arguments aligned on even registers).
15818 (_cleanup, _exit): Make weak symbols libc can override.
15820 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15822 * fp-bit.h: New file.
15824 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
15825 Comment #endif statements.
15826 (__thenan_sf, __thenan_df): Add missing braces around initializer.
15828 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
15830 * gcse.c (compute_pre_data): Compute ae_kill using other local
15831 properties instead of calling compute_ae_kill.
15833 * alias.c (init_alias_analysis): Do not call
15834 prologue_epilogue_contains until after reload has completed.
15836 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
15838 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
15839 (genrtl_finish_compound_stmt): Likewise.
15840 (genrtl_compound_stmt): Change to return void.
15842 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
15843 move code from here to ...
15844 (genrtl_compound_stmt): ... here.
15845 (genrtl_finish_compound_stmt): Remove.
15846 (expand_stmt): Add comment.
15848 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
15850 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
15853 2000-07-02 Jakub Jelinek <jakub@redhat.com>
15855 * cpplib.h (struct cpp_reader): New field include_depth.
15856 (struct cpp_printer): Rename last_bsd to last_id.
15857 * cppfiles.c (read_include_file): Bump include_depth.
15858 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
15859 (output_line_command): Output correct #line if a header
15860 is including itself and is not protected against multiple inclusion.
15861 Use include_depth instead of buffer_stack_depth, last_id instead of
15863 * cppinit.c (cpp_start_read): Initialize last_id instead of
15866 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
15868 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
15869 (c-semantics.o): New target.
15871 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
15872 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
15873 (genrtl_clear_out_block): Likewise.
15874 (genrtl_goto_stmt): Likewise.
15875 (genrtl_expr_stmt): Likewise.
15876 (genrtl_decl_stmt): Likewise.
15877 (genrtl_if_stmt): Likewise.
15878 (genrtl_while_stmt): Likewise.
15879 (genrtl_do_stmt): Likewise.
15880 (genrtl_return_stmt): Likewise.
15881 (genrtl_for_stmt): Likewise.
15882 (genrtl_break_stmt): Likewise.
15883 (genrtl_continue_stmt): Likewise.
15884 (genrtl_scope_stmt): Likewise.
15885 (genrtl_switch_stmt): Likewise.
15886 (genrtl_case_label): Likewise.
15887 (genrtl_begin_compound_stmt): Likewise.
15888 (gerntl_finish_compound_stmt): Likewise.
15889 (genrtl_compound_stmt): Likewise.
15890 (genrtl_asm_stmt): Likewise.
15891 (genrtl_decl_cleanup): Likewise.
15892 (DECL_ANON_UNION_ELEMS): Likewise.
15893 (emit_local_var): Likewise.
15894 (make_rtl_for_local_static): Likewise.
15895 (expand_cond): Likewise.
15896 (expand_stmt): Likewise.
15897 (c_expand_return): Likewise.
15898 (c_expand_start_case): Likewise.
15899 (do_case): Likewise.
15900 (COMPOUND_STMT_NO_SCOPE): Likewise.
15901 (c_expand_asm_operands): Likewise.
15902 (NEW_FOR_SCOPE_P): New macro.
15903 (expand_expr_stmt_fn): New type.
15905 (set_current_function_name_declared): Likewise.
15906 (current_function_name_declared): Likewise.
15907 (lang_expand_stmt): Likewise.
15908 (stmts_are_full_exprs_p): Likewise.
15909 (anon_aggr_type_p): Likewise.
15910 (lang_expand_expr_stmt): Likewise.
15911 (build_case_label): Likewise.
15913 * c-decl.c (lang_expand_expr_stmt): Initialize.
15914 (stmts_are_full_exprs_p): Define.
15915 (current_function_name_declared): Likewise.
15916 (do_case): Likewise.
15917 (lang_expand_stmt): Likewise.
15918 (set_current_function_name_declared): Likewise.
15919 (anon_aggr_type_p): Likewise.
15921 * c-semantics.c: New file.
15922 (expand_cond): Moved from cp/semantics.c.
15923 (genrtl_do_pushlevel): Likewise.
15924 (genrtl_clear_out_block): Likewise.
15925 (genrtl_goto_stmt): Likewise.
15926 (genrtl_expr_stmt): Likewise.
15927 (genrtl_decl_stmt): Likewise.
15928 (genrtl_if_stmt): Likewise.
15929 (genrtl_while_stmt): Likewise.
15930 (genrtl_do_stmt): Likewise.
15931 (genrtl_return_stmt): Likewise.
15932 (genrtl_for_stmt): Likewise.
15933 (genrtl_break_stmt): Likewise.
15934 (genrtl_continue_stmt): Likewise.
15935 (genrtl_scope_stmt): Likewise.
15936 (genrtl_switch_stmt): Likewise.
15937 (genrtl_case_label): Likewise.
15938 (genrtl_begin_compound_stmt): Likewise.
15939 (genrtl_finish_compound_stmt): Likewise.
15940 (genrtl_compound_stmt): Likewise.
15941 (genrtl_asm_stmt): Likewise.
15942 (genrtl_decl_cleanup): Likewise.
15943 (make_rtl_for_local_static): Moved from cp/decl.c.
15944 (emit_local_var): Likewise.
15945 (expand_stmt): Define.
15947 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
15948 (c_expand_return): Likewise.
15949 (c_expand_start_case): Likewise.
15951 2000-07-01 Richard Henderson <rth@cygnus.com>
15953 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
15954 with the low 13 bits set.
15955 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
15956 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
15957 of the low 13 bits into a CONST plus an adddi3.
15958 (load_symptr): Set RTX_UNCHANGING_P.
15960 See ChangeLog.3 for earlier changes.