[Bug testsuite/70230] 11 test regressions when building GCC 6 with --enable-default-ssp

2022-01-25 Thread allan at archlinux dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70230

Allan McRae  changed:

   What|Removed |Added

 CC||allan at archlinux dot org

--- Comment #5 from Allan McRae  ---
Created attachment 52286
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52286&action=edit
Fix testsuite issues with --enable-default-ssp

Add -fno-stack-protector to dg-options where needed.  Fixes the following
testsuite failures from adding --enable-default-ssp to configure:

FAIL: gcc.dg/asan/use-after-scope-4.c   -O0  execution test
FAIL: gcc.dg/stack-usage-1.c scan-stack-usage 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/cleanup-1.c execution test
FAIL: gcc.target/i386/cleanup-2.c execution test
FAIL: gcc.target/i386/interrupt-redzone-1.c scan-assembler-not \\tcld
FAIL: gcc.target/i386/interrupt-redzone-2.c scan-assembler-not \\tcld
FAIL: gcc.target/i386/pr79793-1.c scan-assembler-times add[lq][\\t
]*\$400,[\\t ]*%[re]sp 1
FAIL: gcc.target/i386/pr79793-1.c scan-assembler-times fxsave64[\\t
]*-120(%[re]sp) 1
FAIL: gcc.target/i386/pr79793-1.c scan-assembler-times sub[lq][\\t
]*\$400,[\\t ]*%[re]sp 1
FAIL: gcc.target/i386/pr79793-2.c scan-assembler-times add[lq][\\t
]*\$400,[\\t ]*%[re]sp 1
FAIL: gcc.target/i386/pr79793-2.c scan-assembler-times fxsave64[\\t
]*-120(%[re]sp) 1
FAIL: gcc.target/i386/pr79793-2.c scan-assembler-times sub[lq][\\t
]*\$392,[\\t ]*%[re]sp 1
FAIL: gcc.target/i386/shrink_wrap_1.c scan-rtl-dump pro_and_epilogue
"Performing shrink-wrapping"
FAIL: gcc.target/i386/stack-check-11.c scan-assembler-times or[ql] 3
FAIL: gcc.target/i386/stack-check-11.c scan-assembler-times sub[ql] 4
FAIL: gcc.target/i386/stack-check-18.c scan-assembler-times or[ql] 1
FAIL: gcc.target/i386/stack-check-19.c scan-assembler-times (?:je|jne) 3
FAIL: gcc.target/i386/stack-check-19.c scan-assembler-times or[ql] 2
FAIL: gcc.target/i386/sw-1.c scan-rtl-dump pro_and_epilogue "Performing
shrink-wrapping"
FAIL: gcc.target/i386/stackalign/pr88483-1.c -mno-stackrealign 
scan-assembler-not (sub|add)(l|q)[t ]*\$[0-9]*,[t ]*%[re]?sp
FAIL: gcc.target/i386/stackalign/pr88483-1.c -mno-stackrealign 
scan-assembler-not and[lq]?[^n]*-[0-9]+,[^n]*sp
FAIL: gcc.target/i386/stackalign/pr88483-1.c -mstackrealign  scan-assembler-not
(sub|add)(l|q)[t ]*\$[0-9]*,[t ]*%[re]?sp
FAIL: gcc.target/i386/stackalign/pr88483-1.c -mstackrealign  scan-assembler-not
and[lq]?[^n]*-[0-9]+,[^n]*sp
FAIL: gcc.target/i386/stackalign/pr88483-2.c -mno-stackrealign 
scan-assembler-not and[lq]?[^n]*-[0-9]+,[^n]*sp
FAIL: gcc.target/i386/stackalign/pr88483-2.c -mstackrealign  scan-assembler-not
and[lq]?[^n]*-[0-9]+,[^n]*sp

[Bug testsuite/70150] Additonal test failures with --enable-default-pie

2022-01-25 Thread allan at archlinux dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70150

Allan McRae  changed:

   What|Removed |Added

 CC||allan at archlinux dot org

--- Comment #25 from Allan McRae  ---
Created attachment 52287
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52287&action=edit
Fix testsuite issues with --enable-default-pie

The following failure are seen in gcc-11.2 when building with
--enable-default-pie:

FAIL: gcc.target/i386/cet-sjlj-6a.c scan-assembler-times movq\\t.*buf+8 1
FAIL: gcc.target/i386/cet-sjlj-6a.c scan-assembler-times subq\\tbuf+8 1
FAIL: gcc.target/i386/cet-sjlj-6b.c scan-assembler-times movq\\t.*buf+16 1
FAIL: gcc.target/i386/cet-sjlj-6b.c scan-assembler-times subq\\tbuf+16 1
FAIL: gcc.target/i386/fentryname3.c scan-assembler 0x0f, 0x1f, 0x44, 0x00, 0x00
FAIL: gcc.target/i386/pr24414.c (test for excess errors)
FAIL: gcc.target/i386/pr93492-3.c scan-assembler
\\t.cfi_startproc\\n\\tendbr(32|64)\\n.*.LPFE1:\\n\\tnop\\n1:\\tcall\\t__fentry__\\n\\tret\\n
FAIL: gcc.target/i386/pr93492-5.c scan-assembler
\\t.cfi_startproc\\n.*.LPFE1:\\n\\tnop\\n1:\\tcall\\t__fentry__\\n\\tret\\n
FAIL: gcc.target/i386/pr98482-1.c scan-assembler movabsq\\t\$__fentry__,
%r10\\n\\tcall\\t*%r10

Adding -no-pie to dg-options only fixed pr24414.c.  For the rest I added a "{
target { ! pie_enabled } }" to the failing tests, which may or may not be the
proper solution...