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: [PATCH] Add additional __builtin_unreachable() test.


Manuel López-Ibáñez wrote:
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\}"


Yes, I know all that.


Since it is a compile test, we could use -m32 and have it work in all cases. There is no need for library support.

That said, I have bootstrapped the thing on i686 now and will commit the version with /* { dg-require-effective-target ilp32 } */

David Daney


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