Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1673)

Unified Diff: tests/computed_gotos/nacl.scons

Issue 110663007: PNaCl: Enable testing of computed gotos, including GCC torture tests (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Update comment Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pnacl/build.sh ('k') | tools/toolchain_tester/extra_flags_pnacl.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/computed_gotos/nacl.scons
diff --git a/tests/computed_gotos/nacl.scons b/tests/computed_gotos/nacl.scons
index adf0b483ed25c72054f5bee7bded73b55abc648d..6bd8ff6311776a11b0689e45535857d25548ea9c 100644
--- a/tests/computed_gotos/nacl.scons
+++ b/tests/computed_gotos/nacl.scons
@@ -5,11 +5,14 @@
Import('env')
-if not env.AllowNonStableBitcode():
- Return()
-if env.Bit('bitcode'):
- # Computed gotos are currently not allowed by PNaCl's bitcode ABI.
- env.Append(LINKFLAGS=['--pnacl-disable-abi-check'])
+if env['TOOLCHAIN_FEATURE_VERSION'] < 4:
+ # In old versions of the PNaCl toolchain, computed gotos are left as
+ # "indirectbr" and "blockaddress", which are not allowed by PNaCl's
+ # stable ABI.
+ if not env.AllowNonStableBitcode():
+ Return()
+ if env.Bit('bitcode'):
+ env.Append(LINKFLAGS=['--pnacl-disable-abi-check'])
# We are testing a GNU C extension which is disallowed by "-pedantic" mode.
env.FilterOut(CCFLAGS=['-pedantic'])
« no previous file with comments | « pnacl/build.sh ('k') | tools/toolchain_tester/extra_flags_pnacl.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698