PR 13358 long long and C++ do not mix well
Manuel López-Ibáñez
lopezibanez@gmail.com
Wed Aug 27 20:49:00 GMT 2008
2008/8/25 Mark Mitchell <mark@codesourcery.com>:
>
> Why are you using -m32 here? That's not going to work on lots of CPU
> targets, and I don't understand why it's a required part of the test.
Without -m32 I don't get the errors for the unsufixed constants even
with -pedantic-errors (I guess because sizeof(long long) ==
sizeof(long). I guess the test would work in 32bits targets without
-m32 but it will fail in 64bit targets.
I could restrict the test to 32bits targets with
require-effective-target ilp32 but then I cannot test it (I only have
access to x86_64)
What would be the dg-* magic to:
* enable -m32 for targets that support it and where sizeof(long long)
== sizeof(long)
* enable the test for targets where sizeof(long long) != sizeof(long)
* disable the test for the rest.
Cheers,
Manuel.
More information about the Gcc-patches
mailing list