[PATCH] Add additional __builtin_unreachable() test.

Manuel López-Ibáñez lopezibanez@gmail.com
Wed Jun 17 16:18:00 GMT 2009


2009/6/17 David Daney <ddaney@caviumnetworks.com>:
> Paolo Bonzini wrote:
>>
>> David Daney wrote:
>>>
>>> Paolo requested this additional test for the new __builtin_unreachable()
>>>  built-in.
>>
>> Go ahead after changing this:
>>
>> /* { dg-options "-O2 -m32 -fomit-frame-pointer" } */
>>
>> to:
>>
>> /* { dg-require-effective-target ilp32 } */
>> /* { dg-options "-O2 -fomit-frame-pointer" } */
>>
>
> Why?  Making that change results in the test being UNSUPPORTED on x86_64.
>
> I now have to build and test an i686 targeted GCC to verify that it is a
> good test.

You can test both -m32 and -m64 using:

make check RUNTESTFLAGS="--target_board=unix/\{-m32,-m64\}"

Cheers,

Manuel.



More information about the Gcc-patches mailing list