comparison compiler-rt/test/hwasan/TestCases/stack-uar-realign.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children 5f17cb93ff66
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
3 // Dynamic stack realignment causes debug info locations to use non-FP-relative 3 // Dynamic stack realignment causes debug info locations to use non-FP-relative
4 // offsets because stack frames are realigned below FP, which means that we 4 // offsets because stack frames are realigned below FP, which means that we
5 // can't associate addresses with stack objects in this case. Ideally we should 5 // can't associate addresses with stack objects in this case. Ideally we should
6 // be able to handle this case somehow (e.g. by using a different register for 6 // be able to handle this case somehow (e.g. by using a different register for
7 // DW_AT_frame_base) but at least we shouldn't get confused by it. 7 // DW_AT_frame_base) but at least we shouldn't get confused by it.
8
9 // Stack aliasing is not implemented on x86.
10 // XFAIL: x86_64
8 11
9 __attribute((noinline)) 12 __attribute((noinline))
10 char *buggy() { 13 char *buggy() {
11 _Alignas(64) char c[64]; 14 _Alignas(64) char c[64];
12 char *volatile p = c; 15 char *volatile p = c;