This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xlimits.h for embedded targets


Hi folks,

It seems to me that the way to generate the xlimits.h file is not quite general enough
(or I didn't understand it correctly... ;-)

So I would like to suggest that the limits.h stuff be specified in a similar way that
the float.h stuff is specified.  This can be done easily through the following patch
to Makefile.in:

  Tue Sep 23 13:39:44 1997  Christian Iseli  <Christian.Iseli@lslsun.epfl.ch>

	* Makefile.in: define LIMITS_H similarly to FLOAT_H.


*** Makefile.in.orig	Fri Sep 12 15:53:00 1997
--- Makefile.in	Fri Sep 12 16:02:58 1997
*************** all.cross: native gcc-cross specs stmp-h
*** 717,723 ****
  # This is what to compile if making gcc with a cross-compiler.
  all.build: native xgcc $(EXTRA_PARTS) lang.all.build
  # This is what must be made before installing GCC and converting libraries.
! start.encap: native xgcc specs $(LIBGCC1) xlimits.h lang.start.encap
  # These can't be made until after GCC can run.
  rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
  # This is what is made with the host's compiler
--- 721,727 ----
  # This is what to compile if making gcc with a cross-compiler.
  all.build: native xgcc $(EXTRA_PARTS) lang.all.build
  # This is what must be made before installing GCC and converting libraries.
! start.encap: native xgcc specs $(LIBGCC1) $(LIMITS_H) lang.start.encap
  # These can't be made until after GCC can run.
  rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
  # This is what is made with the host's compiler
*************** gcov: gcov.o $(LIBDEPS)
*** 1854,1860 ****
  
  # Build the include directory except for float.h (which depends upon
  # enquire).
! stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h
  # Copy in the headers provided with gcc.
  # The sed command gets just the last file name component;
  # this is necessary because VPATH could add a dirname.
--- 1858,1864 ----
  
  # Build the include directory except for float.h (which depends upon
  # enquire).
! stmp-int-hdrs: stmp-fixinc $(USER_H) $(LIMITS_H)
  # Copy in the headers provided with gcc.
  # The sed command gets just the last file name component;
  # this is necessary because VPATH could add a dirname.
*************** stmp-int-hdrs: stmp-fixinc $(USER_H) xli
*** 1868,1874 ****
  	  fi; \
  	done
  	rm -f include/limits.h
! 	cp xlimits.h include/limits.h
  	chmod a+r include/limits.h
  # Install the README
  	rm -f include/README
--- 1872,1878 ----
  	  fi; \
  	done
  	rm -f include/limits.h
! 	cp $(LIMITS_H) include/limits.h
  	chmod a+r include/limits.h
  # Install the README
  	rm -f include/README
*************** mostlyclean: bytecode.mostlyclean lang.m
*** 2019,2025 ****
  	-rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
  	-rm -f $(HOST_PREFIX_1)obstack.c 
  # Delete the temp files made in the course of building libgcc.a.
! 	-rm -f tmplibgcc* tmpcopy xlimits.h libgcc1-test
  	for name in $(LIB1FUNCS); do rm -f $${name}.c; done
  # Delete other temporary files.
  	-rm -f tmp-float.h tmp-gcc.xtar.gz
--- 2023,2029 ----
  	-rm -f $(HOST_PREFIX_1)alloca.c $(HOST_PREFIX_1)malloc.c
  	-rm -f $(HOST_PREFIX_1)obstack.c 
  # Delete the temp files made in the course of building libgcc.a.
! 	-rm -f tmplibgcc* tmpcopy $(LIMITS_H) libgcc1-test
  	for name in $(LIB1FUNCS); do rm -f $${name}.c; done
  # Delete other temporary files.
  	-rm -f tmp-float.h tmp-gcc.xtar.gz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]