This is the mail archive of the
mailing list for the GCC project.
Re: How do I set SIG_ATOMIC_TYPE to a variant of a C-type?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 15 May 2012 20:06:03 +0000 (UTC)
- Subject: Re: How do I set SIG_ATOMIC_TYPE to a variant of a C-type?
- References: <201205151934.q4FJYe9w012322@ignucius.se.axis.com>
On Tue, 15 May 2012, Hans-Peter Nilsson wrote:
> How do I accomplish setting SIG_ATOMIC_TYPE as above?
GCC only needs to know this type for the purposes of defining limits for
stdint.h. Unless your signal.h does
typedef __SIG_ATOMIC_TYPE__ sig_atomic_t;
this should only affect the testcases gcc.dg/c99-stdint-.c, not actual
user code. And as you have discovered, there are rules for these type
strings documented in tm.texi under SIZE_TYPE; to use some other variant
you'll need to find and eliminate all the dependencies on whatever rule
you wish to change.
Logically these macros should be hooks returning enumeration values from a
defined set of possible types, not strings at all. See past discussions
with Joern, e.g. <http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02900.html>
Joseph S. Myers