Message ID | CAFULd4a9Q462LSJ4zSb490Rq1yEFsUb2S+XXaaJp3Yjk=oC8gw@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Mon, Jan 18, 2016 at 11:53:55PM +0100, Uros Bizjak wrote: > Hello! > > As explained by Honza in the PR, these two tests are not suitable for > LTO tests. Also, the dg-options directives are not effective in this > directory. > > 2016-01-19 Uros Bizjak <ubizjak@gmail.com> > > PR testsuite/68820 > * gcc.c-torture/execute/builtins/memops-asm.x: New file. > * gcc.c-torture/execute/builtins/strstr-asm.x: Ditto. > * gcc.c-torture/execute/builtins/strstr-asm.c: Remove dg-options. > > Tested on x86_64-linux-gnu and checked logs that LTO tests are really skipped. > > OK for mainline and branches? Ok, thanks. Jakub
Index: gcc.c-torture/execute/builtins/memops-asm.x =================================================================== --- gcc.c-torture/execute/builtins/memops-asm.x (nonexistent) +++ gcc.c-torture/execute/builtins/memops-asm.x (working copy) @@ -0,0 +1,10 @@ +# Different translation units may have different user name overrides +# and we do not preserve enough context to known which one we want. + +set torture_eval_before_compile { + if {[string match {*-flto*} "$option"]} { + continue + } +} + +return 0 Index: gcc.c-torture/execute/builtins/strstr-asm.c =================================================================== --- gcc.c-torture/execute/builtins/strstr-asm.c (revision 232538) +++ gcc.c-torture/execute/builtins/strstr-asm.c (working copy) @@ -2,7 +2,6 @@ Ensure all expected transformations of builtin strstr occur and perform correctly in presence of redirect. */ -/* { dg-options "-ffat-lto-objects" } */ #define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname) #define ASMNAME2(prefix, cname) STRING (prefix) cname Index: gcc.c-torture/execute/builtins/strstr-asm.x =================================================================== --- gcc.c-torture/execute/builtins/strstr-asm.x (nonexistent) +++ gcc.c-torture/execute/builtins/strstr-asm.x (working copy) @@ -0,0 +1,10 @@ +# Different translation units may have different user name overrides +# and we do not preserve enough context to known which one we want. + +set torture_eval_before_compile { + if {[string match {*-flto*} "$option"]} { + continue + } +} + +return 0