summaryrefslogtreecommitdiff
path: root/gcc/f/proj.h
diff options
context:
space:
mode:
authorfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-16 02:23:44 +0000
committerfx <fx@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-16 02:23:44 +0000
commit502325edbf50cf753ccd3defe38cfad8f4465d7e (patch)
treec5d64b68c6b98dba2288a4954b8f7a54c140001e /gcc/f/proj.h
parent80158a86ecfc35826bb2298fd46fd18cdaaad616 (diff)
downloadgcc-502325edbf50cf753ccd3defe38cfad8f4465d7e.tar.gz
Mon Jun 15 22:21:57 1998 Craig Burley <burley@gnu.org>
Cutover to system.h: * Make-lang.in: * Makefile.in: * ansify.c: * bad.c: * bld.c: * com.c: * com.h: * expr.c: * fini.c: * g77spec.c: * implic.c: * intdoc.c: * intrin.c: * lex.c: * lex.h: * parse.c: * proj.c: * proj.h: * src.c: * src.h: * stb.c: * ste.c: * target.c: * top.c: * system.j: New file. Use toplev.h where appropriate: * Make-lang.in: * Makefile.in: * bad.c: * bld.c: * com.c: * lex.c: * ste.c: * top.c: * toplev.j: New file. Conditionalize all dumping/reporting routines so they don't get built for gcc/egcs: * bld.c: * bld.h: * com.c: * equiv.c: * equiv.h: * sta.c: * stt.c: * stt.h: * symbol.c: * symbol.h: Use hconfig.h instead of config.h where appropriate: * Makefile.in (proj-h.o): Compile with -DUSE_HCONFIG. * fini.c: Define USE_HCONFIG before including proj.h. * Makefile.in (deps-kinda): Redirect stderr to stdout, to eliminate diagnostics vis-a-vis g77spec.c. * Makefile.in: Regenerate dependencies via deps-kinda. * lex.c (ffelex_file_fixed, ffelex_file_free): Eliminate apparently spurious warnings about uninitialized variables `c', `column', and so on. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20520 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/f/proj.h')
-rw-r--r--gcc/f/proj.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/f/proj.h b/gcc/f/proj.h
index 9367d8b7cd0..e592d8bbb3b 100644
--- a/gcc/f/proj.h
+++ b/gcc/f/proj.h
@@ -24,6 +24,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef _H_f_proj
#define _H_f_proj
+#ifdef USE_HCONFIG
+#include "hconfig.j"
+#else
+#include "config.j"
+#endif
+#include "system.j"
+
#if !defined (__GNUC__) || (__GNUC__ < 2)
#error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)."
#endif
@@ -36,18 +43,13 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#endif
#endif /* !defined (BUILT_WITH_270) */
-/* Include files everyone gets. */
-
-#include "config.j" /* Must come before any other #includes in gcc. */
-#include "assert.j" /* Use gcc's assert.h. */
-#include <ctype.h>
-#include <stdio.h>
+/* Include files everyone gets. <assert.h> is needed for assert().
+ <stddef.h> is needed for offsetof, but technically also NULL,
+ size_t, ptrdiff_t, and so on. */
+#include "assert.j"
#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
/* Generally useful definitions. */
-
typedef enum
{
#if !defined(false) || !defined(true)
@@ -60,8 +62,6 @@ typedef enum
} bool;
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
-#define STR(s) # s
-#define STRX(s) STR(s)
#ifndef UNUSED /* Compile with -DUNUSED= if cc doesn't support this. */
#if BUILT_WITH_270