This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How do I set SIG_ATOMIC_TYPE to a variant of a C-type?
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: joseph at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 15 May 2012 23:44:49 +0200
- Subject: Re: How do I set SIG_ATOMIC_TYPE to a variant of a C-type?
> From: "Joseph S. Myers" <joseph@codesourcery.com>
> Date: Tue, 15 May 2012 22:06:03 +0200
> Unless your signal.h does
>
> typedef __SIG_ATOMIC_TYPE__ sig_atomic_t;
I just assumed that was the case, what with other ___xxx_TYPE__
being used throughout the test-suite. My bad.
> this should only affect the testcases gcc.dg/c99-stdint-[56].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.
What I missed was more careful reading, the clue being: "The
string must exactly match one of the data type names defined in
the function..." Hah, there you go, thanks and sorry for the
noise.
brgds, H-P