Why is ptrdiff_t a volatile?
Marc Glisse
marc.glisse@inria.fr
Mon Oct 1 09:10:00 GMT 2018
On Mon, 1 Oct 2018, Toby Douglass wrote:
> Good morning/afternoon/evening, all.
>
> I've been writing some position independent data structure code.
>
> As such, I've been using ptrdiff_t.
>
> I've just noticed, while compiling, that my GCC (6.3.0) has ptrdiff_t as a
> volatile long int.
I doubt gcc does that. More likely your code has a broken macro somewhere.
You don't provide enough information for us to help more...
--
Marc Glisse
More information about the Gcc-help
mailing list