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
+2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/81654
+ * config/i386/i386.c (ix86_set_func_type): Disallow naked
+ attribute with interrupt attribute.
+
2017-08-01 Andrew Pinski <apinski@cavium.com>
* tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
if (lookup_attribute ("interrupt",
TYPE_ATTRIBUTES (TREE_TYPE (fndecl))))
{
+ if (ix86_function_naked (fndecl))
+ error_at (DECL_SOURCE_LOCATION (fndecl),
+ "interrupt and naked attributes are not compatible");
+
int nargs = 0;
for (tree arg = DECL_ARGUMENTS (fndecl);
arg;
+2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/81654
+ * gcc.target/i386/pr81654.c: New test.
+
2017-08-01 Thomas König <tkoenig@gcc.gnu.org>
PR fortran/79312
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -mgeneral-regs-only" } */
+
+__attribute__((interrupt, naked))
+void
+fn (void *frame) /* { dg-error "not compatible" } */
+{
+}