https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99179

            Bug ID: 99179
           Summary: asan failures with -Os on x86_64-apple-darwin20
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    iains at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at 
gcc dot gnu.org,
                    marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin20
            Target: x86_64-apple-darwin20
             Build: x86_64-apple-darwin20

The following asan tests fail with -Os on x86_64-apple-darwin20

FAIL: c-c++-common/asan/alloca_big_alignment.c   -Os  output pattern test
FAIL: c-c++-common/asan/alloca_detect_custom_size.c   -Os  output pattern test
FAIL: c-c++-common/asan/alloca_overflow_partial.c   -Os  output pattern test
FAIL: c-c++-common/asan/alloca_overflow_right.c   -Os  output pattern test
FAIL: c-c++-common/asan/alloca_underflow_left.c   -Os  output pattern test

With -Os the output is

WRITE of size 1 at 0x7ffee72a5f8a thread T0
    #0 0x108959dfc in foo(int, int) alloca_big_alignment.c:10
    #1 0x108959e3b in main alloca_big_alignment.c:15

while it is

WRITE of size 1 at 0x7ffeedd4ef8a thread T0
    #0 0x101eb0def in foo(int, int) alloca_big_alignment.c:11
    #1 0x101eb0e04 in main alloca_big_alignment.c:15

with the other options: alloca_big_alignment.c:10 versus
alloca_big_alignment.c:11

Reply via email to