diff options
author | Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> | 2014-08-02 13:12:08 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2014-08-02 13:12:08 +0400 |
commit | 1bdcd768b0f60606c3810d5480af7ab5410f33b5 (patch) | |
tree | 22975ffcf58bc5a16f1e4e34d2a92776c4ca73a6 | |
parent | 5145ea19859f13f5a08df2ff84857d080b70743d (diff) | |
download | bdwgc-1bdcd768b0f60606c3810d5480af7ab5410f33b5.tar.gz |
Add support for OpenRISC/or1k
* include/private/gcconfig.h (OR1K, mach_type_known, CPP_WORDSZ,
MACH_TYPE, OS_TYPE, DYNAMIC_LOADING, _end, DATAEND, __data_start,
DATASTART, ALIGNMENT, HBLKSIZE, LINUX_STACKBOTTOM): Define for __or1k__.
-rw-r--r-- | include/private/gcconfig.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 744869ff..7c1bb3f2 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -181,6 +181,10 @@ # endif # define mach_type_known # endif +# if defined(__or1k__) +# define OR1K /* OpenRISC/or1k */ +# define mach_type_known +# endif # if defined(DGUX) && (defined(i386) || defined(__i386__)) # define I386 # ifndef _USING_DGUX @@ -1672,6 +1676,24 @@ # endif # endif +# ifdef OR1K +# define CPP_WORDSZ 32 +# define MACH_TYPE "OR1K" +# ifdef LINUX +# define OS_TYPE "LINUX" +# define DYNAMIC_LOADING + extern int _end[]; +# define DATAEND (ptr_t)(_end) + extern int __data_start[]; +# define DATASTART ((ptr_t)(__data_start)) +# define ALIGNMENT 4 +# ifndef HBLKSIZE +# define HBLKSIZE 4096 +# endif +# define LINUX_STACKBOTTOM +# endif /* Linux */ +# endif + # ifdef HP_PA # define MACH_TYPE "HP_PA" # ifdef __LP64__ |