1. 22 Aug, 2001 1 commit
    • Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      	* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
      	bitmap.h, builtin-types.def, builtins.c, builtins.def,
      	c-aux-info.c, c-common.c, c-common.def, c-common.h,
      	c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
      	c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
      	c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
      	caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
      	conditions.h, config.gcc, configure.frag, configure.in,
      	conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
      	cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
      	dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
      	doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
      	dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
      	emit-rtl.c, errors.c, errors.h, except.c, except.h,
      	exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
      	fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
      	function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
      	gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
      	gencheck.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, gengenrtl.c, genmultilib,
      	genopinit.c, genoutput.c, genpeep.c, genrecog.c,
      	gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
      	ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
      	graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
      	gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
      	gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
      	hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
      	integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
      	libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
      	machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
      	mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
      	mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
      	params.h, predict.c, predict.def, predict.h, prefix.c,
      	prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
      	read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
      	regclass.c, regmove.c, regrename.c, regs.h, reload.c,
      	reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
      	rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
      	sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
      	sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
      	ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
      	stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
      	tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
      	tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
      	unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
      	unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
      	xcoffout.h: replace "GNU CC" with "GCC".
      
      From-SVN: r45105
      Lars Brinkhoff committed
  2. 13 Aug, 2001 1 commit
    • expr.h: Split out optab- and libfunc-related code to... · e78d8e51
      	* expr.h: Split out optab- and libfunc-related code to...
      	* optabs.h, libfuncs.h: ... these new headers.
      
      	* Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
      	(OPTABS_H): New.
      	(various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
      	dependencies.
      	* mkconfig.sh: Don't include insn-codes.h from config.h.
      
      	* reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
      	enum insn_code is available.  Move reload_in_optab and
      	reload_out_optab array declarations to optabs.h.
      	* regmove.c (gen_add3_insn): Move to optabs.c, export from
      	there, prototype in expr.h.
      	* gencodes.c: Cleanup: zap global variables, don't use
      	printf where puts will do, don't bother defining MAX_INSN_CODE
      	which nothing uses, let CODE_FOR_nothing get its value implicitly.
      
      	* genemit.c, genopinit.c: Include optabs.h in generated file.
      	* genoutput.c: Include insn-codes.h in generated file.
      	* builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
      	expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
      	reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
      	config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
      	config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
      	config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
      	Include optabs.h.
      	* builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
      	optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
      	config/m88k/m88k.c, config/sparc/sparc.c:
      	Include libfuncs.h.
      	* reload.c: Include expr.h and optabs.h before reload.h.
      	* config/alpha/alpha.c: Include tree.h before reload.h.
      	* config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
      	and reload.h in that order.
      	* config/sparc/sparc.c: Include debug.h.
      	* recog.c: Include insn-codes.h.
      
      cp:
      	* Make-lang.in (cp/except.o): Add libfuncs.h to dependencies.
      	* except.c: Include libfuncs.h.
      java:
      	* Make-lang.in (java/decl.o): Update dependencies.
      	* decl.c: Include libfuncs.h, don't include toplev.h.
      
      From-SVN: r44858
      Zack Weinberg committed
  3. 09 Aug, 2001 1 commit
    • Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE. · 1b0c37d7
      	 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
      	 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
      	 (GEN, STAGESTUFF): Add new files.
      	 (insn-constants.h, s-constants, tm-preds.h, s-preds,
      	 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
      	 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
      	 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
      	 as well as insn-codes.h and insn-flags.h in config.h; and no
      	 extra headers in tconfig.h and hconfig.h.
      
      	 * gencodes.c: Eliminate code to generate predicate declarations
      	 or #defines for md-file constants.
      	 * genconstants.c, genpreds.c: New files.
      
      	 * i386.md: Re-order guard expressions such that TARGET_64BIT
      	 comes first, when this permits better optimization.  Add
      	 TARGET_64BIT to more x86-64 patterns.  Add comment explaining
      	 why this is desirable.
      
      From-SVN: r44743
      Zack Weinberg committed
  4. 02 Apr, 2001 1 commit
  5. 15 Jan, 2001 1 commit
  6. 04 Jan, 2001 2 commits
  7. 03 Jan, 2001 1 commit
    • gencodes.c (output_predicate_decls): New function. · 975d393a
      * gencodes.c (output_predicate_decls): New function.
      (main): Call it.
      * machmode.h (GET_MODE_MASK): Arrange for it to be defined
      even if it is not the first time machmode.h is #included.
      * config/sh/sh.c (fpul_operand): Declare MODE argument.
      * tm.texi (PREDICATE_CODES): Document predicate declarations.
      * gcc.texi (Copyright): Added 2001.
      
      From-SVN: r38673
      Alexandre Oliva committed
  8. 22 Nov, 2000 2 commits
    • rtl.h (traverse_md_constants): Declare. · c25c12b8
      	* rtl.h (traverse_md_constants): Declare.
      	(struct md_constant): Define.
      	* Makefile.in (HOST_RTL): Add hashtab.o .
      	(OBJS): Add hashtab.o .
      	(hashtab.o): New rule.
      	(rtl.o): Depends on HASHTAB_H.
      	* rtl.c (hashtab.h): #include.
      	(md_constants): New static variable.
      	(def_hash, def_name_eq_p, read_constants): New static functions.
      	(traverse_md_constants): New function.
      	(read_name): Do constant expansion.
      	(read_rtx): Recognize define_constants.
      	* gencodes.c (print_md_constant): New function.
      	(main): Emit #defines for all constant definitions encountered.
      	* md.texi (Constant Definitions): New node.
      	* gensupport.c (xcalloc): New function.
      
      From-SVN: r37635
      J"orn Rennecke committed
  9. 04 Aug, 2000 1 commit
  10. 18 May, 2000 1 commit
    • genopinit.c: Use $ for escape sequences in optab patterns. · 1b3459d2
      	* genopinit.c: Use $ for escape sequences in optab patterns.
      	Remove backslashes from optab patterns.  Change $A, $B, $C to
      	expand to (int) whatever instead of just whatever; remove
      	explicit (int) from all optab patterns.
      
      	* gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
      	* genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
      	genrecog.c: Remove private copies of xmalloc, xrealloc, and
      
      From-SVN: r34000
      Zack Weinberg committed
  11. 06 May, 2000 1 commit
    • Makefile.in (gensupport.o): Compile for the host. · 3916d6d8
      	* Makefile.in (gensupport.o): Compile for the host.
      	(host-prefix gensuuprt.o): Remove.
      	(genflags.o): Depend on gensupport.h and OBSTACK_H.
      	(genattrtab.o): Likewise.
      	(gencodes.o): Depend on gensupport.h.
      	(genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
      	(genpeep.o, genattr.o, genoutput.o): Likewise.
      
      	* gensupport.c (obstack, rtl_obstack): New.
      	(init_md_reader): Initialize rtl_obstack.
      	* gensupport.h (rtl_obstack): Declare.
      	(message_with_line): Declare.
      
      	* genattr.c: Remove all traces of obstack manipulation.
      	* gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
      	* genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
      
      	* genattrtab.c (obstack, rtl_obstack): Remove.
      	(main): Don't init rtl_obstack.
      	* genflags.c: Likewise.
      
      	* genrecog.c (message_with_line): Move ...
      	* gensupport.c: ... here.
      
      From-SVN: r33742
      Richard Henderson committed
  12. 03 May, 2000 1 commit
    • gensupport.c: New file. · c88c0d42
      	* gensupport.c: New file.
      	* gensupport.h: New file.
      	* Makefile.in (HOST_RTL): Depend on gensupport.
      	(gensupport.o) New rule.
      	* genattr.c: Use gensupport for reading .md files.
      	* genattrtab.c: Ditto.
      	* gencodes.c: Ditto.
      	* genconfig.c: Ditto.
      	* genemit.c: Ditto.
      	* genextract.c: Ditto.
      	* genflags.c: Ditto.
      	* genopinit.c: Ditto.
      	* genoutput.c: Ditto.
      	* genpeep.c: Ditto.
      	* genrecog.c: Ditto.
      	* rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
      	* md.texi (Insn Splitting): Document define_insn_and_split.
      
      From-SVN: r33633
      Clinton Popetz committed
  13. 26 Feb, 2000 1 commit
  14. 17 Jan, 2000 2 commits
    • Update copyrights · 9311a396
      From-SVN: r31465
      Kaveh Ghazi committed
    • genattr.c: PROTO -> PARAMS. · a94ae8f5
              * genattr.c: PROTO -> PARAMS.
              * genattrtab.c: Likewise.
              * gencheck.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * gengenrtl.c: Likewise.
              * genopinit.c: Likewise.
              * genoutput.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
      
      From-SVN: r31457
      Kaveh R. Ghazi committed
  15. 14 Oct, 1999 1 commit
    • rtl.c (dump_and_abort): Remove. · bcdaba58
              * rtl.c (dump_and_abort): Remove.
              (fatal_with_file_and_line): New.
              (fatal_expected_char): New.
              (read_rtx_lineno, read_rtx_filename): New.
              (read_skip_spaces): Track line number.
              (read_name): Use fatal_with_file_and_line.
              (read_rtx): Use fatal_expected_char.  Track line number.
              * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
      
              * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
              if it isn't a CODE_LABEL.
      
              * genattr.c (main): Set read_rtx_filename.
              * genattrtab.c (main): Likewise.
              * gencodes.c (main): Likewise.
              * genconfig.c (main): Likewise.
              * genemit.c (main): Likewise.
              * genextract.c (main): Likewise.
              * genflags.c (main): Likewise.
              * genopinit.c (main): Likewise.
              * genoutput.c (main): Likewise.
              * genpeep.c (main): Likewise.
      
              * genrecog.c (decision_test.u.insn): Add `lineno'.
              (pattern_lineno, error_count): New variables.
              (message_with_line): New.
              (add_to_sequence): Break out checking code to ...
              (validate_pattern): ... here.  Detect SET_DEST matching CONST_INT.
              (merge_insn): Use message_with_line.
              (make_insn_sequence): Use validate_pattern.  Record insn lineno.
              (main): Set read_rtx_filename, pattern_lineno.  Exit early on error.
      
      From-SVN: r29957
      Richard Henderson committed
  16. 15 Sep, 1999 1 commit
    • genattr.c (main): Add extern prototype. · c1b59dce
      	* genattr.c (main): Add extern prototype.  Call return, not exit.
      	* genattrtab.c (main): Likewise.
      	* gencheck.c (main): Likewise.
      	* gencodes.c (main): Likewise.
      	* genconfig.c (main): Likewise.
      	* genemit.c (main): Likewise.
      	* genextract.c (main): Likewise.
      	* genflags.c (main): Likewise.
      	* gengenrtl.c (main): Likewise.
      	* genopinit.c (main): Likewise.
      	* genoutput.c (main): Likewise.
      	* genpeep.c (main): Likewise.
      	* genrecog.c (main): Likewise.
      
      	* genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
      	* genattrtab.c (get_insn_name): Likewise.
      	* gencodes.c (get_insn_name): Likewise.
      	* genconfig.c (get_insn_name): Likewise.
      	* genemit.c (get_insn_name): Likewise.
      	* genextract.c (get_insn_name): Likewise.
      	* genflags.c (get_insn_name): Likewise.
      	* genopinit.c (get_insn_name): Likewise.
      	* genpeep.c (get_insn_name): Likewise.
      
      	* gencheck.c (usage): Add static prototype.
      	* genextract.c (print_path): Constify a char*.
      	* genopinit.c (optabs): Likewise.
      	* genoutput.c (operand_data, data, output_predicate_decls,
      	compare_operands): Likewise.
      	* genrecog.c (write_tree): Add default case in switch.
      
      From-SVN: r29434
      Kaveh R. Ghazi committed
  17. 12 Sep, 1999 1 commit
  18. 07 Sep, 1999 1 commit
  19. 31 Aug, 1999 1 commit
    • backport: Makefile.in (STAGESTUFF): Add *.peephole2. · ede7cd44
              Merge peephole2 from new_ia32_branch:
              * Makefile.in (STAGESTUFF): Add *.peephole2.
              (mostlyclean): Likewise.
              (recog.o): Depend on resource.h.
      
              * final.c (peephole): Conditionalize decl on HAVE_peephole.
              (final_scan_insn): Likewise for the invocation of peephole.
              * genconfig.c (main): Look for peephole and peephole2 patterns.
              Emit HAVE_peephole* accordingly.
              * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
              * flags.h (flag_peephole2): Declare.
              * toplev.c: New pass peephole2.  New flag -fpeephole2.
      
              * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
              * gencodes.c (main): Likewise.
              * genextract.c (main): Likewise.
              * genoutput.c (main): Likewise.
              * genemit.c (max_operand_1): Look for the max scratch operand.
              (gen_rtx_scratch): New.
              (gen_exp): Use it, and pass on new arg subroutine_type.
              (gen_expand): Take max scratch into account.
              (gen_split): Emit peephole2 functions.
              (output_peephole2_scratch): New.
              (main): Include hard-reg-set.h and resource.h.  Handle peephole2.
              * genrecog.c (routine_type): Add PEEPHOLE2.
              (IS_SPLIT): New.
              (make_insn_sequence): Match outer parallel for peep2.  Discard
              top level scratches and dups.
              (add_to_sequence): New args insn_type and top.  Update all callers.
              Handle toplevel peep2 matching insns.
              (write_subroutine): Handle peep2.
              (write_tree_1): Likewise.
              (write_tree): Likewise.
              (main): Likewise.
              (change_state): New arg afterward.  Update all callers.
              Handle matching separate insns.
              * recog.c (recog_next_insn): New.
              (peephole2_optimize): New.
              * rtl.def (DEFINE_PEEPHOLE2): New.
              * resource.c (find_free_register): New argument last_insn.  Use it
              to find a register available through the entire span.
              * resource.h (find_free_register): Update prototype.
      
      From-SVN: r29015
      Richard Henderson committed
  20. 27 Aug, 1999 2 commits
    • rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format for a CONST_DOUBLE... · aa0b4465
      1999-08-27 13:27 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
      	for a CONST_DOUBLE, at compile time.  Initialize rtx_length
      	and class_narrowest_mode at compile time.  Kill init_rtl.
      	Mark rtx_length, mode_class, mode_size, mode_unit_size,
      	mode_wider_mode, mode_mask_array, class_narrowest_mode, and
      	rtx_format as const.  Kill all references to EXTRA_CC_MODES or
      	EXTRA_CC_NAMES.
      	* rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
      	format.
      	* rtl.h: Declare rtx_length and rtx_format as const.
      	* machmode.def: Define CC().  Use CC() to define CCmode.  If
      	EXTRA_CC_MODES is defined, expand it here.
      	* machmode.h: Declare mode_class, mode_size, mode_unit_size,
      	mode_wider_mode, mode_mask_array, and class_narrowest_mode as
      	const.  Kill all references to EXTRA_CC_MODES.
      
      	* toplev.c: Don't prototype or call init_rtl.
      	* optabs.c: Don't call init_mov_optab.
      	* genemit.c: Don't generate init_mov_optab.  Don't call
      	init_rtl.
      	* gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
      	here.
      	* genattr.c, genattrtab.c, gencodes.c, genconfig.c,
      	genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
      	genrecog.c: Don't call init_rtl.
      
      	* arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
      	rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES.  Use CC() in
      	definition of EXTRA_CC_MODES.
      
      	* md.texi: Kill ref to EXTRA_CC_NAMES.
      	* tm.texi: Document new way to define EXTRA_CC_MODES.
      
      	* genrecog.c: Do not look up the name of a define_split.
      	(Unrelated bugfix.)
      
      From-SVN: r28937
      Zack Weinberg committed
    • errors.c: New file... · f8b6598e
      1999-08-27 00:27 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* errors.c: New file; defines functions error, warning, and
      	fatal, variables have_error and progname.
      	* errors.h: New file; prototypes and decls for stuff in errors.c.
      
      	* Makefile: Add rules to build errors.o and
      	$(HOST_PREFIX)errors.o.  Link genconfig, gencodes, genemit,
      	genopinit, genrecog, genextract, genpeep, genattr, and
      	genoutput with errors.o.  Add errors.h to deps of genconfig.o,
      	gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
      	genpeep.o, genattr.o, and genoutput.o.
      
      	* genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
      	genextract.c, genpeep.c, genattr.c:  Include errors.h.  Don't
      	define or prototype fatal.  Set progname at beginning of main.
      	* genoutput.c:  Likewise, and don't define or prototype error
      	either.
      
      From-SVN: r28925
      Zack Weinberg committed
  21. 26 Aug, 1999 1 commit
    • system.h: Don't redefine abort or trim_filename. · 987009bf
      1999-08-25 22:10 -0700  Zack Weinberg  <zack@bitmover.com>
      
      	* system.h: Don't redefine abort or trim_filename.
      	* rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
      	or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
      	whether or not __FUNCTION__ is available.
      	* tree.h: Duplicate rtl.h's definition of abort, for files
      	that don't include rtl.h.  Delete all code to perform type
      	checking with a compiler other than GCC.
      	* varray.h: Delete all code to perform type checking with a
      	compiler other than GCC.  Make VARRAY_CHECK() always evaluate
      	its arguments exactly once, using a statement expression.
      	Adjust the VARRAY_<type> accessor macros to match.
      	* toplev.h (fatal_insn, fatal_insn_not_found): Kill.
      	(_fatal_insn, _fatal_insn_not_found): New fns, take info on
      	caller's location.  Define fatal_insn and fatal_insn_not_found
      	as macros that use _fatal_insn and _fatal_insn_not_found.
      	(fancy_abort, trim_filename): Kill prototypes.
      
      	* rtl.c (trim_filename): Move here from toplev.c.
      	(fancy_abort): New function.
      	(DIR_SEPARATOR): Provide default definition.
      	* tree.c (tree_check_failed, tree_class_check_failed): Go
      	through fancy_abort.
      	(tree_check, tree_class_check, cst_or_constructor_check,
      	expr_check): Delete.
      	* varray.c (varray_check_failed): New function.
      	* toplev.c (fatal_insn, fatal_insn_not_found): Replace with
      	_fatal_insn and _fatal_insn_not_found.  Go through
      	fancy_abort.
      	(trim_filename, fancy_abort): Delete.
      
      	* builtins.c (expand_builtin_args_info): Report ICE with abort.
      	* except.c (start_catch_handler): Report ICE with error/abort
      	combo.
      	* final.c (output_operand_lossage): Likewise.
      	* flow.c (verify_flow_info): Likewise.
      
      	* gcc.c: Prototype fatal.
      	* gengenrtl.c: Undef abort after including rtl.h not system.h.
      	* genattr.c, genattrtab.c, genemit.c, genextract.c,
      	genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
      	Don't define fancy_abort.
      
      From-SVN: r28889
      Zack Weinberg committed
  22. 16 Apr, 1999 1 commit
    • system.h: Always prototype abort. · 2a611d21
      1999-04-16 22:44 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
      	* system.h: Always prototype abort.  Prototype fatal.  Define
      	abort to call fatal, not fprintf/exit.  Define a stub macro
      	for trim_filename.
      	* toplev.c: Define DIR_SEPARATOR.  (trim_filename): New
      	function.
      	* toplev.h: Prototype trim_filename, and #undef system.h's stub.
      	* gcc.c, genattr.c, genattrtab.c, gencodes.c, genconfig.c,
      	genemit.c, genextract.c, genflags.c, genopinit.c, genoutput.c,
      	genpeep.c, genrecog.c: Make fatal non-static.
      	* gcov.c, gengenrtl.c, protoize.c: #undef abort after
      	including system.h.
      	* config/i386/dgux.h, config/m68k/xm-amix.h: Remove stale code
      	relating to abort.
      
      From-SVN: r26511
      Zack Weinberg committed
  23. 22 Jan, 1999 1 commit
  24. 21 Jan, 1999 2 commits
  25. 06 Jan, 1999 1 commit
  26. 19 Dec, 1998 1 commit
    • genattr.c (fatal): Qualify a char* with the `const' keyword. · 85fda1eb
              * genattr.c (fatal): Qualify a char* with the `const' keyword.
              * genattrtab.c (fatal, attr_printf, attr_string, write_attr_set,
              write_unit_name, write_eligible_delay, expand_units,
              make_length_attrs, write_attr_case, find_attr,
              make_internal_attr): Likewise.
              * gencheck.c (tree_codes): Likewise.
              * gencodes.c (fatal): Likewise.
              * genconfig.c (fatal): Likewise.
              * genemit.c (fatal): Likewise.
              * genextract.c (fatal, walk_rtx, copystr): Likewise.
              * genflags.c (fatal): Likewise.
              * genopinit.c (fatal, optabs, gen_insn): Likewise.
              * genoutput.c (fatal, error, predicates): Likewise.
              * genpeep.c (fatal): Likewise.
              * genrecog.c (fatal, decision, pred_table, add_to_sequence,
              write_tree_1, write_tree, change_state, copystr, indents): Likewise.
      
      From-SVN: r24377
      Kaveh R. Ghazi committed
  27. 27 Nov, 1998 1 commit
    • system.h: Include libiberty.h. · 2778b98d
              * system.h: Include libiberty.h.
              * c-aux-info.c: Remove prototypes for concat/concat3.  Change
              function `concat' from fixed parameters to variable parameters,
              as is done in libiberty.  All callers of concat/concat3
              changed to use the new `concat' with variable args.
              * cccp.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * cexp.y: Likewise.
              * collect2.c: Likewise.
              * config/1750a/1750a.h: Likewise.
              * cppalloc.c: Likewise.
              * cppexp.c: Likewise.
              * cppfiles.c: Likewise.
              * cpphash.c: Likewise.
              * cpplib.c: Likewise.
              * dyn-string.c: Likewise.
              * fix-header.c: Likewise.
              * gcc.c: Likewise.
              * gcov.c: Likewise.
              * genattr.c: Likewise.
              * genattrtab.c: Likewise.
              * gencheck.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * gengenrtl.c: Likewise.
              * genopinit.c: Likewise.
              * genoutput.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
              * getpwd.c: Likewise.
              * halfpic.c: Likewise.
              * hash.c: Likewise.
              * mips-tdump.c: Likewise.  Wrap malloc/realloc/calloc prototypes
              in NEED_DECLARATION_* macros.
              * mips-tfile.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              (fatal): Fix const-ification of variable `format' in
              !ANSI_PROTOTYPES case.
              * prefix.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * print-rtl.c: Rename variable `spaces' to `xspaces' to avoid
              conflicting with function `spaces' from libiberty.
              * profile.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * protoize.c: Likewise.
              * rtl.h: Likewise.
              * scan.h: Likewise.
              * tlink.c: Likewise.
              * toplev.c: Likewise.
              * toplev.h: Likewise.
              * tree.h: Likewise.
      
      From-SVN: r23931
      Kaveh R. Ghazi committed
  28. 08 Nov, 1998 1 commit
    • gansidecl.h: Prepend a "G" to the macro wrapping this file (to distinguish it from the macro... · 5148a72b
              * gansidecl.h: Prepend a "G" to the macro wrapping this file
              (to distinguish it from the macro wrapping ansidecl.h.)
              Include libiberty's ansidecl.h.  Remove all redundant definitions.
              Define the PROTO() style macros in terms of the PARAMS() ones.
              * calls.c (emit_library_call): Switch on ANSI_PROTOTYPES, not
              __STDC__, when deciding whether to use ANSI variable args.
              (emit_library_call_value): Likewise.
              * cccp.c (error): Likewise.
              (warning): Likewise.
              (error_with_line): Likewise.
              (warning_with_line): Likewise.
              (pedwarn): Likewise.
              (pedwarn_with_line): Likewise.
              (pedwarn_with_file_and_line): Likewise.
              (fatal): Likewise.
              * cexp.y (error): Likewise.
              (pedwarn): Likewise.
              (warning): Likewise.
              * collect2.c (fatal_perror): Likewise.
              (fatal): Likewise.
              (error): Likewise.
              * combine.c (gen_rtx_combine): Likewise.
              * cpperror.c (cpp_message): Likewise.
              (cpp_fatal): Likewise.
              * cpplib.c (cpp_error): Likewise.
              (cpp_warning): Likewise.
              (cpp_pedwarn): Likewise.
              (cpp_error_with_line): Likewise.
              (cpp_warning_with_line): Likewise.
              (cpp_pedwarn_with_line): Likewise.
              (cpp_pedwarn_with_file_and_line): Likewise.
              * cpplib.h: Don't define PARAMS() macro.
              * demangle.h: Likewise.
              * doprint.c (checkit): Switch on ANSI_PROTOTYPES, not __STDC__,
              when deciding whether to use ANSI variable args.
              * emit-rtl.c (gen_rtx): Likewise.
              (gen_rtvec): Likewise.
              * final.c (asm_fprintf): Likewise.
              * fix-header.c (cpp_message): Likewise.
              (fatal): Likewise.
              (cpp_fatal): Likewise.
              * gcc.c (concat): Likewise.
              (fatal): Likewise.
              (error): Likewise.
              * genattr.c (fatal): Likewise.
              * genattrtab.c (attr_rtx): Likewise.
              (attr_printf): Likewise.
              (fatal): Likewise.
              * gencodes.c (fatal): Likewise.
              * genconfig.c (fatal): Likewise.
              * genemit.c (fatal): Likewise.
              * genextract.c (fatal): Likewise.
              * genflags.c (fatal): Likewise.
              * genopinit.c (fatal): Likewise.
              * genoutput.c (fatal): Likewise.
              (error): Likewise.
              * genpeep.c (fatal): Likewise.
              * genrecog.c (fatal): Likewise.
              * halfpic.h: Switch on ANSI_PROTOTYPES, not __STDC__, when
              deciding whether to declare `tree_node' and `rtx_def'.
              * hash.h: Don't define stuff we get from gansidecl.h.
              * mips-tfile.c: Likewise.  Define __proto() in terms of PARAMS().
              (fatal): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
              whether to use ANSI variable args.
              (error): Likewise.
              * prefix.c (concat): Likewise.
              * scan.h: Likewise.
              * system.h: Likewise.
              * toplev.c (error_with_file_and_line): Likewise.
              (error_with_decl): Likewise.
              (error_for_asm): Likewise.
              (error): Likewise.
              (fatal): Likewise.
              (warning_with_file_and_line): Likewise.
              (warning_with_decl): Likewise.
              (warning_for_asm): Likewise.
              (warning): Likewise.
              (pedwarn): Likewise.
              (pedwarn_with_decl): Likewise.
              (pedwarn_with_file_and_line): Likewise.
              (sorry): Likewise.
              (really_sorry): Likewise.
              * toplev.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
              whether to declare `tree_node' and `rtx_def'.
              * tree.c (build): Switch on ANSI_PROTOTYPES, not __STDC__, when
              deciding whether to use ANSI variable args.
              (build_nt): Likewise.
              (build_parse_node): Likewise.
      
      From-SVN: r23577
      Kaveh R. Ghazi committed
  29. 14 Oct, 1998 1 commit
    • Add ATTRIBUTE_NORETURN in a bunch of places: · bf94d1ec
      	* cppalloc.c (memory_full): Mark function prototype with
      	ATTRIBUTE_NORETURN.
      	* demangle.h (collect_exit): Likewise.
      	* fix-header.c (v_fatal, fatal): Likewise.
      	* gcc.c (pfatal_with_name, pfatal_pexecute, fatal, fancy_abort):
      	Likewise.
      	* gcov.c (print_usage): Likewise.
      	* genattr.c (fatal, fancy_abort): Likewise.
      	* genattrtab.c (fatal, fancy_abort): Likewise.
      	* gencodes.c (fatal, fancy_abort): Likewise.
      	* genconfig.c (fatal, fancy_abort): Likewise.
      	* genemit.c (fatal, fancy_abort): Likewise.
      	* genextract.c (fatal, fancy_abort): Likewise.
      	* genflags.c (fatal, fancy_abort): Likewise.
      	* genopinit.c (fatal, fancy_abort): Likewise.
      	* genoutput.c (fatal, fancy_abort): Likewise.
      	* genpeep.c (fatal, fancy_abort): Likewise.
      	* genrecog.c (fatal, fancy_abort): Likewise.
      	* libgcc2.c (__eprintf, __default_terminate, __sjthrow,
      	__sjpopnthrow, __throw): Likewise.
      	* objc/objc-act.c (objc_fatal): Likewise.
      	* protoize.c (usage, aux_info_corrupted,
      	declare_source_confusing): Likewise.
      	* rtl.c (dump_and_abort): Likewise.
      	* rtl.h (sets_cc0_p): Likewise.
      	* toplev.c (float_signal, pipe_closed): Likewise.
      
      From-SVN: r23084
      Kaveh R. Ghazi committed
  30. 26 Aug, 1998 1 commit
    • system.h: Include stdarg.h/varargs.h... · 789f983a
              * system.h: Include stdarg.h/varargs.h, make sure they are ordered
              correctly with regards to stdio.h.
              * calls.c: Remove stdarg.h/varargs.h.
              * cccp.c: Likewise.
              * cexp.y: Likewise.
              * combine.c: Likewise.
              * cpperror.c: Likewise.
              * cpplib.c: Likewise.
              * cpplib.h: Likewise.
              * doprint.c: Likewise.
              * emit-rtl.c: Likewise.
              * final.c: Likewise.
              * fix-header.c: Likewise.
              * gcc.c: Likewise.
              * genattr.c: Likewise.
              * genattrtab.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * genopinit.c: Likewise.
              * genoutput.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
              * mips-tfile.c: Likewise.
              * prefix.c: Likewise.
              * protoize.c: Likewise.
              * regmove.c: Likewise.
              * toplev.c: Likewise.
              * tree.c: Likewise.
              * cp/errfn.c: Remove stdarg.h/varargs.h.
              * cp/tree.c: Likewise.
      
      From-SVN: r21997
      Kaveh R. Ghazi committed
  31. 11 May, 1998 1 commit
    • genattr.c: Include stdarg.h/varargs.h. · 320e7c40
              * genattr.c: Include stdarg.h/varargs.h.  Change function
              `fatal' to use variable arguments instead of faking it with
              integer parameters.  Provide a prototype which also
              checks the format specifiers using ATTRIBUTE_PRINTF_1.
              * genattrtab.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * genopinit.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
              * genoutput.c: Likewise.  Similarly for function `error'.
      
      From-SVN: r19661
      Kaveh R. Ghazi committed
  32. 15 Apr, 1998 1 commit
  33. 07 Apr, 1998 1 commit
    • c-lex.c (is_class_name): Delete declaration. · 56c0e996
              * c-lex.c (is_class_name): Delete declaration.
              (whitespace_cr): Make static and add prototype.
              * c-lex.h (make_pointer_declarator, reinit_parse_for_function,
              yylex, get_directive_line): Turn declarations into prototypes.
              (position_after_whitespace, check_newline, yyerror,, is_class_name,
              forget_protocol_qualifiers, remember_protocol_qualifiers): Add
              prototypes.
              * genattr.c (extend_range, write_upcase, gen_attr, write_units): Add
              prototypes.
              * gencodes.c (gen_insn): Add prototype.
              * genconfig.c (walk_insn, gen_insn, gen_expand, gen_split,
              gen_peephole): Add prototypes.
              * genflags.c (num_operands, gen_proto, gen_nonproto, gen_insn): Add
              prototypes.
              * gengenrtl.c (type_from_format, accessor_from_format, special_rtx,
              special_format, find_formats, gendecl, genmacro, gendef, genlegend,
              genheader, gencode): Add prototypes.
              * genopinit.c (gen_insn): Add prototype.
              * genoutput.c (output_prologue, output_epilogue, scan_operands,
              process_template, validate_insn_alternatives, gen_insn, gen_peephole,
              gen_expand, gen_split, n_occurrences): Add prototypes.
              * genpeep.c (gen_peephole): Add prototype.
              * loop.c (find_and_verify_loops, mark_loop_jump, prescan_loop,
              reg_in_basic_block_p, consec_sets_invariant_p, libcall_other_reg,
              labels_in_range_p, count_loop_regs_set, note_addr_stored,
              loop_reg_used_before_p, scan_loop, replace_call_address,
              skip_consec_insns, libcall_benefit, ignore_some_movables,
              force_movables, combine_movables, rtx_equal_for_loop_p, move_movables,
              strength_reduce, valid_initial_value_p, find_mem_givs, record_biv,
              check_final_value, record_giv, update_giv_derive, basic_induction_var,
              simplify_giv_expr, general_induction_var, consec_sets_giv,
              check_dbra_loop, express_from, combine_givs_p, combine_givs,
              product_cheap_p, maybe_eliminate_biv, maybe_eliminate_biv_1,
              last_use_this_basic_block, record_initial, update_reg_last_use,
              iteration_info, analyze_loop_iterations, insert_bct,
              instrument_loop_bct, indirect_jump_in_function_p): Turn declarations
              into prototypes.
      
      From-SVN: r19038
      Bernd Schmidt committed
  34. 24 Mar, 1998 1 commit
    • Cutover various gen*.c files to using system.h: · 0b93b64e
              * Makefile.in (genconfig.o, genflags.o, gencodes.o, genemit.o,
              genopinit.o, genrecog.o, genextract.o, genpeep.o, genattr.o,
              genattrtab.o, genoutput.o): Depend on system.h.
              * genattr.c: Include system.h.  Add arguments to various function
              prototypes.  Remove redundant prototype of read_rtx().
              * genattrtab.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * genopinit.c: Likewise.
              * genoutput.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
      
      From-SVN: r18794
      Kaveh R. Ghazi committed
  35. 15 Jun, 1995 1 commit