diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-07 09:23:32 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-09-07 09:23:32 +0000 |
commit | 796b6678b7a5be26e44d64a3b299ac5a8f0877e2 (patch) | |
tree | 4e81b82b3b3a04b8f3a48aa7c3dc3d336f8a185c /gcc/system.h | |
parent | e02d19d4264184dbf4aec0a7f1a31db9a6471ff4 (diff) | |
download | gcc-796b6678b7a5be26e44d64a3b299ac5a8f0877e2.tar.gz |
Reorganise wide-int classes so that they are all instantiations of a
generic_wide_int class, parameterised by storage. Move all real work
outside the main wide_int classes into separate functions. Add a wi::
namespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@202354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index b735a96c10b..6be17088534 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -713,6 +713,10 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; #define gcc_unreachable() (fancy_abort (__FILE__, __LINE__, __FUNCTION__)) #endif +/* Until we can use STATIC_ASSERT. */ +#define STATIC_ASSERT(X) \ + typedef int assertion1[(X) ? 1 : -1] ATTRIBUTE_UNUSED + /* Provide a fake boolean type. We make no attempt to use the C99 _Bool, as it may not be available in the bootstrap compiler, and even if it is, it is liable to be buggy. |