diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2017-08-01 20:25:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2017-08-01 13:25:41 -0700 |
commit | a2e28a974709c9b2712ff28aac2afccb492436a6 (patch) | |
tree | a6e6d60eb0b29ce9c96d6c6a739bcce6907fef1c /gcc/testsuite/gcc.target | |
parent | d8afd032fad763a31efe2da716da657bde7c556b (diff) | |
download | gcc-a2e28a974709c9b2712ff28aac2afccb492436a6.zip gcc-a2e28a974709c9b2712ff28aac2afccb492436a6.tar.gz gcc-a2e28a974709c9b2712ff28aac2afccb492436a6.tar.bz2 |
386: Disallow naked attribute with interrupt attribute
gcc/
PR target/81654
* config/i386/i386.c (ix86_set_func_type): Disallow naked
attribute with interrupt attribute.
gcc/testsuite/
PR target/81654
* gcc.target/i386/pr81654.c: New test.
From-SVN: r250793
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr81654.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr81654.c b/gcc/testsuite/gcc.target/i386/pr81654.c new file mode 100644 index 0000000..2a1a4b7 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr81654.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mgeneral-regs-only" } */ + +__attribute__((interrupt, naked)) +void +fn (void *frame) /* { dg-error "not compatible" } */ +{ +} |