diff options
author | Craig Burley <burley@gnu.org> | 1998-07-15 03:07:55 -0400 |
---|---|---|
committer | Dave Love <fx@gcc.gnu.org> | 1998-07-15 07:07:55 +0000 |
commit | 207ff633feae11eb0ddf171b49bcd5e93dfa05ab (patch) | |
tree | 9165938760b2c1a1a4b567a9e304b77454c34686 | |
parent | 268775847c1bda1cc90cd7438d1a1b6be501d42a (diff) | |
download | gcc-207ff633feae11eb0ddf171b49bcd5e93dfa05ab.zip gcc-207ff633feae11eb0ddf171b49bcd5e93dfa05ab.tar.gz gcc-207ff633feae11eb0ddf171b49bcd5e93dfa05ab.tar.bz2 |
Cleanups vis-a-vis system.h cutover and g77-0.5.24:
Mon Jul 13 17:33:44 1998 Craig Burley <burley@gnu.org>
Cleanups vis-a-vis system.h cutover and g77-0.5.24:
* Makefile.in (fini.o): Define USE_HCONFIG macro
so source code doesn't have to.
* fini.c: Don't define USE_HCONFIG here, since
source code usually shouldn't care about this.
* ansify.c: Include stddef.h only if we have it.
* intdoc.c: Ditto.
* proj.h: Ditto.
From-SVN: r21176
-rw-r--r-- | gcc/f/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/f/Makefile.in | 2 | ||||
-rw-r--r-- | gcc/f/ansify.c | 2 | ||||
-rw-r--r-- | gcc/f/fini.c | 1 | ||||
-rw-r--r-- | gcc/f/intdoc.c | 2 | ||||
-rw-r--r-- | gcc/f/proj.h | 5 |
6 files changed, 21 insertions, 2 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 662235e..5495bb9 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,14 @@ +Mon Jul 13 17:33:44 1998 Craig Burley <burley@gnu.org> + + Cleanups vis-a-vis system.h cutover and g77-0.5.24: + * Makefile.in (fini.o): Define USE_HCONFIG macro + so source code doesn't have to. + * fini.c: Don't define USE_HCONFIG here, since + source code usually shouldn't care about this. + * ansify.c: Include stddef.h only if we have it. + * intdoc.c: Ditto. + * proj.h: Ditto. + Mon Jul 13 17:30:29 1998 Nick Clifton <nickc@cygnus.com> * lang-options.h: Format changed to work with --help support added diff --git a/gcc/f/Makefile.in b/gcc/f/Makefile.in index fff69b3..4f9733b 100644 --- a/gcc/f/Makefile.in +++ b/gcc/f/Makefile.in @@ -461,7 +461,7 @@ fini: fini.o proj-h.o $(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o fini fini.o proj-h.o fini.o: - $(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ + $(HOST_CC) -c -DUSE_HCONFIG $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \ `echo $(srcdir)/fini.c | sed 's,^\./,,'` -o $@ proj-h.o: proj.o diff --git a/gcc/f/ansify.c b/gcc/f/ansify.c index b1838c1..3af68e5 100644 --- a/gcc/f/ansify.c +++ b/gcc/f/ansify.c @@ -25,7 +25,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "hconfig.j" #include "system.j" #include "assert.j" +#if HAVE_STDDEF_H #include <stddef.h> +#endif typedef enum { diff --git a/gcc/f/fini.c b/gcc/f/fini.c index 44c749f..439ecca 100644 --- a/gcc/f/fini.c +++ b/gcc/f/fini.c @@ -19,7 +19,6 @@ along with GNU Fortran; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define USE_HCONFIG #include "proj.h" #include "malloc.h" diff --git a/gcc/f/intdoc.c b/gcc/f/intdoc.c index 648b75a..0ac39ff 100644 --- a/gcc/f/intdoc.c +++ b/gcc/f/intdoc.c @@ -25,7 +25,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "hconfig.j" #include "system.j" #include "assert.j" +#if HAVE_STDDEF_H #include <stddef.h> +#endif typedef enum { diff --git a/gcc/f/proj.h b/gcc/f/proj.h index e592d8b..93b12b3 100644 --- a/gcc/f/proj.h +++ b/gcc/f/proj.h @@ -46,10 +46,15 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA /* 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" + +#if HAVE_STDDEF_H #include <stddef.h> +#endif /* Generally useful definitions. */ + typedef enum { #if !defined(false) || !defined(true) |