diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/ipa/devirt-7.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20051201-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/always_inline.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/always_inline2.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/always_inline3.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/pr41264-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/fail_always_inline.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/inline-22.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20090218-1_0.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20090218-1_1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-pred-5_a.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/uninit-pred-5_b.c | 2 |
13 files changed, 28 insertions, 16 deletions
diff --git a/gcc/testsuite/g++.dg/ipa/devirt-7.C b/gcc/testsuite/g++.dg/ipa/devirt-7.C index ac147b57599..1c59122303d 100644 --- a/gcc/testsuite/g++.dg/ipa/devirt-7.C +++ b/gcc/testsuite/g++.dg/ipa/devirt-7.C @@ -56,7 +56,7 @@ int __attribute__ ((noinline,noclone)) get_input(void) return 1; } -int __attribute__ ((always_inline)) +int inline __attribute__ ((always_inline)) A::middleman_1 (int i) { return this->foo (i); diff --git a/gcc/testsuite/gcc.dg/20051201-1.c b/gcc/testsuite/gcc.dg/20051201-1.c index 8e77986296e..bc8e7926be0 100644 --- a/gcc/testsuite/gcc.dg/20051201-1.c +++ b/gcc/testsuite/gcc.dg/20051201-1.c @@ -2,7 +2,7 @@ tree_flow_call_edges_add. */ /* { dg-do compile } */ -/* { dg-options "-O1 -fprofile-generate" } */ +/* { dg-options "-O1 -fprofile-generate -Wno-attributes" } */ static __attribute__ ((always_inline)) void baz () diff --git a/gcc/testsuite/gcc.dg/always_inline.c b/gcc/testsuite/gcc.dg/always_inline.c index 08119f1a254..482a0a2b46c 100644 --- a/gcc/testsuite/gcc.dg/always_inline.c +++ b/gcc/testsuite/gcc.dg/always_inline.c @@ -1,8 +1,8 @@ /* { dg-do compile } */ -/* { dg-options "-Winline -O2" } */ +/* { dg-options "-O2" } */ #include <stdarg.h> inline __attribute__ ((always_inline)) void -e(int t, ...) /* { dg-message "sorry\[^\n\]*variable argument" "" } */ +e(int t, ...) /* { dg-error "variable argument lists" } */ { va_list q; va_start (q, t); diff --git a/gcc/testsuite/gcc.dg/always_inline2.c b/gcc/testsuite/gcc.dg/always_inline2.c index c65df24ea60..4f1634e1348 100644 --- a/gcc/testsuite/gcc.dg/always_inline2.c +++ b/gcc/testsuite/gcc.dg/always_inline2.c @@ -1,8 +1,8 @@ /* { dg-do compile } */ -/* { dg-options "-Winline -O2" } */ -inline __attribute__ ((always_inline)) void t(void); /* { dg-message "sorry\[^\n\]*body not available" "" } */ +/* { dg-options "-O2" } */ +inline __attribute__ ((always_inline)) void t(void); /* { dg-error "body not available" } */ void q(void) { - t(); /* { dg-message "sorry\[^\n\]*called from here" "" } */ + t(); /* { dg-error "called from here" } */ } diff --git a/gcc/testsuite/gcc.dg/always_inline3.c b/gcc/testsuite/gcc.dg/always_inline3.c index 97c80aa5217..80ea314741b 100644 --- a/gcc/testsuite/gcc.dg/always_inline3.c +++ b/gcc/testsuite/gcc.dg/always_inline3.c @@ -1,11 +1,11 @@ /* { dg-do compile } */ -/* { dg-options "-Winline -O2" } */ +/* { dg-options "-O2" } */ int do_something_evil (void); inline __attribute__ ((always_inline)) void -q2(void) /* { dg-message "sorry\[^\n\]*recursive" "" } */ +q2(void) /* { dg-error "recursive inlining" } */ { if (do_something_evil ()) return; - q2(); /* { dg-message "sorry\[^\n\]*called from here" "" } */ + q2(); /* { dg-error "called from here" } */ q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion. */ } diff --git a/gcc/testsuite/gcc.dg/debug/pr41264-1.c b/gcc/testsuite/gcc.dg/debug/pr41264-1.c index 34bdcfe2047..7d03e51ae37 100644 --- a/gcc/testsuite/gcc.dg/debug/pr41264-1.c +++ b/gcc/testsuite/gcc.dg/debug/pr41264-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-options "-Wno-attributes" } */ #if (__SIZEOF_INT__ <= 2) typedef unsigned long hashval_t; diff --git a/gcc/testsuite/gcc.dg/fail_always_inline.c b/gcc/testsuite/gcc.dg/fail_always_inline.c new file mode 100644 index 00000000000..4b196acb07f --- /dev/null +++ b/gcc/testsuite/gcc.dg/fail_always_inline.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ + +extern __attribute__ ((always_inline)) void + bar() { } /* { dg-warning "function might not be inlinable" } */ + +void +f() +{ + bar(); +} + diff --git a/gcc/testsuite/gcc.dg/inline-22.c b/gcc/testsuite/gcc.dg/inline-22.c index 6d790f97402..1785e1ce6d5 100644 --- a/gcc/testsuite/gcc.dg/inline-22.c +++ b/gcc/testsuite/gcc.dg/inline-22.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-funit-at-a-time" } */ +/* { dg-options "-funit-at-a-time -Wno-attributes" } */ /* Verify we can inline without a complete prototype and with promoted arguments. See also PR32492. */ __attribute__((always_inline)) void f1() {} diff --git a/gcc/testsuite/gcc.dg/lto/20090218-1_0.c b/gcc/testsuite/gcc.dg/lto/20090218-1_0.c index 1dc9ee08540..750c2027510 100644 --- a/gcc/testsuite/gcc.dg/lto/20090218-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20090218-1_0.c @@ -1,4 +1,4 @@ -void set_mem_alias_set () __attribute__ ((always_inline)); +void inline set_mem_alias_set () __attribute__ ((always_inline)); void emit_push_insn () { set_mem_alias_set (); } diff --git a/gcc/testsuite/gcc.dg/lto/20090218-1_1.c b/gcc/testsuite/gcc.dg/lto/20090218-1_1.c index 33d4fb000f3..7db2c85e4ce 100644 --- a/gcc/testsuite/gcc.dg/lto/20090218-1_1.c +++ b/gcc/testsuite/gcc.dg/lto/20090218-1_1.c @@ -4,6 +4,6 @@ int main(void) } static void __attribute__ ((noinline)) get_mem_attrs () { } -void __attribute__ ((always_inline)) set_mem_alias_set () { +void inline __attribute__ ((always_inline)) set_mem_alias_set () { get_mem_attrs (); } diff --git a/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c b/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c index 5dc041b0edd..97e8946da54 100644 --- a/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c +++ b/gcc/testsuite/gcc.dg/torture/pta-structcopy-1.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-fdump-tree-ealias" } */ +/* { dg-options "-fdump-tree-ealias -Wno-attributes" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ struct X diff --git a/gcc/testsuite/gcc.dg/uninit-pred-5_a.c b/gcc/testsuite/gcc.dg/uninit-pred-5_a.c index 845f3c46124..7fa0b253fb1 100644 --- a/gcc/testsuite/gcc.dg/uninit-pred-5_a.c +++ b/gcc/testsuite/gcc.dg/uninit-pred-5_a.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wuninitialized -O2" } */ +/* { dg-options "-Wuninitialized -Wno-attributes -O2" } */ int g; int bar(); diff --git a/gcc/testsuite/gcc.dg/uninit-pred-5_b.c b/gcc/testsuite/gcc.dg/uninit-pred-5_b.c index 13f1e31f805..9760fa8a5c8 100644 --- a/gcc/testsuite/gcc.dg/uninit-pred-5_b.c +++ b/gcc/testsuite/gcc.dg/uninit-pred-5_b.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wuninitialized -O2" } */ +/* { dg-options "-Wuninitialized -Wno-attributes -O2" } */ int g; int bar(); |