Bug 70230 - 11 test regressions when building GCC 6 with --enable-default-ssp
Summary: 11 test regressions when building GCC 6 with --enable-default-ssp
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 20:51 UTC by psturm
Modified: 2021-02-27 16:58 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-09-24 00:00:00


Attachments
gcc 6 testsuite summary --enable-default-ssp (1.01 KB, text/plain)
2016-03-14 20:51 UTC, psturm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description psturm 2016-03-14 20:51:35 UTC
Created attachment 37963 [details]
gcc 6 testsuite summary --enable-default-ssp

I built GCC6 snapshot 20160313 after applying the patch for PR driver/70192:
https://gcc.gnu.org/ml/gcc-patches/2016-03/msg00708.html

The test suite finished with no errors for gcc.

Next I rebuilt GCC6 using the exact same configuration but adding
--enable-default-ssp to the configure. I got 11 unexpected failures in
gcc:

FAIL: gcc.dg/stack-usage-1.c scan-file foo\\t(256|264)\\tstatic
FAIL: gcc.dg/superblock.c scan-rtl-dump-times sched2 "ADVANCING TO" 2
FAIL: gcc.target/i386/avx-vzeroupper-17.c scan-assembler-times avx_vzeroupper 1
FAIL: gcc.target/i386/pr67317-1.c scan-assembler-not addb
FAIL: gcc.target/i386/pr67317-1.c scan-assembler-not setn?c
FAIL: gcc.target/i386/pr67317-2.c scan-assembler-not addb
FAIL: gcc.target/i386/pr67317-2.c scan-assembler-not setn?c
FAIL: gcc.target/i386/pr67317-3.c scan-assembler-not addb
FAIL: gcc.target/i386/pr67317-4.c scan-assembler-not addb
FAIL: gcc.target/i386/shrink_wrap_1.c scan-rtl-dump pro_and_epilogue "Performing shrink-wrapping"
FAIL: gcc.target/i386/sw-1.c scan-rtl-dump pro_and_epilogue "Performing shrink-wrapping"

Test suite summary attached.
Comment 1 Richard Biener 2016-03-15 11:47:06 UTC
These are harmless and somewhat expected if you change default options.  I suppose
even a dg-skip-if -fstack-protector can't fix those because the option is not seen.

Testsuite issue in the end, but very very low priority.

x86_64 I suppose.
Comment 2 psturm 2016-04-18 00:08:24 UTC
2 new failures appeared when testing with only --enable-default-ssp using the hjl/pr70150 branch:

> FAIL: gcc.target/i386/cleanup-1.c execution test
> FAIL: gcc.target/i386/cleanup-2.c execution test

Are these also to be expected or is it something more?
Comment 3 Eric Gallager 2018-09-24 01:54:42 UTC
(In reply to psturm from comment #2)
> 2 new failures appeared when testing with only --enable-default-ssp using
> the hjl/pr70150 branch:
> 
> > FAIL: gcc.target/i386/cleanup-1.c execution test
> > FAIL: gcc.target/i386/cleanup-2.c execution test
> 
> Are these also to be expected or is it something more?

Let's ask HJ
Comment 4 H.J. Lu 2018-09-24 13:03:28 UTC
I also saw

FAIL: gcc.target/i386/cleanup-1.c execution test
FAIL: gcc.target/i386/cleanup-2.c execution test

on trunk with --enable-default-ssp.  They contain asm statements which
aren't compatible with -fstack-protector.  Adding -fno-stack-protector:

diff --git a/gcc/testsuite/gcc.target/i386/cleanup-1.c b/gcc/testsuite/gcc.target/i386/cleanup-1.c
index dcfcc4edb5f..4a74ec2fb0f 100644
--- a/gcc/testsuite/gcc.target/i386/cleanup-1.c
+++ b/gcc/testsuite/gcc.target/i386/cleanup-1.c
@@ -1,5 +1,5 @@
 /* { dg-do run { target *-*-linux* *-*-gnu* } } */
-/* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
+/* { dg-options "-fno-stack-protector -fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
 /* Test complex CFA value expressions.  */
 
 #include <unwind.h>
diff --git a/gcc/testsuite/gcc.target/i386/cleanup-2.c b/gcc/testsuite/gcc.target/i386/cleanup-2.c
index 7e60323373b..d4cf30984e4 100644
--- a/gcc/testsuite/gcc.target/i386/cleanup-2.c
+++ b/gcc/testsuite/gcc.target/i386/cleanup-2.c
@@ -1,5 +1,5 @@
 /* { dg-do run { target { *-*-linux* && { ! ia32 } } } } */
-/* { dg-options "-fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
+/* { dg-options "-fno-stack-protector -fexceptions -fnon-call-exceptions -fasynchronous-unwind-tables -O2" } */
 /* Test complex CFA value expressions.  */
 
 #include <unwind.h>

fixed them.