This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 13358 long long and C++ do not mix well


On Tue, Aug 26, 2008 at 12:30 PM, Manuel LÃpez-IbÃÃez
<lopezibanez@gmail.com> wrote:
> 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)

You can test on x86_64 by adding
RUNTESTFLAGS='--target_board=unix/{-m32,-m64}' to your make -k check
command.  If you use gcc_build like I do, you can do this:
gcc_build -x "RUNTESTFLAGS='--target_board=unix/\\\{-m32,-m64\\\}'"
build test install.

or change MAKE_CHECK_OPTIONS inside gcc_build (like I really do).

Thanks,
Andrew Pinski

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]