PR middle-end/49139 fix always_inline diagnostics
authorChristian Bruel <christian.bruel@st.com>
Tue, 21 Jun 2011 06:48:45 +0000 (08:48 +0200)
committerChristian Bruel <chrbr@gcc.gnu.org>
Tue, 21 Jun 2011 06:48:45 +0000 (08:48 +0200)
From-SVN: r175242

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fail_always_inline2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/inline_1.c
gcc/testsuite/gcc.dg/inline_2.c
gcc/testsuite/gcc.dg/inline_3.c
gcc/testsuite/gcc.dg/inline_4.c
gcc/testsuite/gcc.dg/tree-ssa/pr40087.c

index 54767b533f83bdb0e1be178cd6f45f0e156a022e..d787faa3a46d3060d53a0e9c991d5465fd29c2e3 100644 (file)
@@ -10,6 +10,7 @@
        * gcc.dg/inline_3.c: Likewise.
        * gcc.dg/inline_4.c: Likewise.
        * gcc.dg/20051201-1.c: Likewise.
+       * gcc.dg/pr40087.c: Likewise.
        * gcc.dg/torture/pta-structcopy-1.c: Likewise.
        * gcc.dg/inline-22.c: Likewise.
        * gcc.dg/lto/20090218-1_0.c: Set inline keyword.
diff --git a/gcc/testsuite/gcc.dg/fail_always_inline2.c b/gcc/testsuite/gcc.dg/fail_always_inline2.c
new file mode 100644 (file)
index 0000000..863597f
--- /dev/null
@@ -0,0 +1,19 @@
+extern char *__realpath_alias (__const char *__restrict __name, char 
+*__restrict __resolved) __asm__ ("" "realpath") __attribute__ 
+((__nothrow__)) __attribute__ ((__warn_unused_result__));
+
+extern __inline __attribute__ ((__always_inline__)) __attribute__ 
+((__artificial__)) __attribute__ ((__warn_unused_result__)) char *
+__attribute__ ((__nothrow__)) realpath (__const char *__restrict __name, 
+char *__restrict __resolved)
+{
+   return __realpath_alias (__name, __resolved);
+}
+
+char *
+realpath(path, resolved)
+  const char *path;
+  char *resolved;
+{
+  return (((void *)0));
+}
index 08ccb86f612a19f3ae10c33d2a0fdd1f5e0d3893..3d04b3354ab9cbf361a25c7ffa3a8ed472269a7a 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline -fdisable-ipa-inline" } */
+/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline -fdisable-ipa-inline -Wno-attributes" } */
 int g;
 __attribute__((always_inline)) void bar (void)
 {
index efdc76a988dc2dd5376b44b9771b6e625c9d10b1..060769977444d587b3b72eb2108373a99dfc7b66 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=0:100 -fdisable-ipa-inline" } */
+/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=0:100 -fdisable-ipa-inline -Wno-attributes" } */
 int g;
 __attribute__((always_inline)) void bar (void)
 {
index 70a23665de2923e6af0007ae72739bf3cfa3b083..17871c6e6d51c9b111f8bd62d6d2631fc46e75ea 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile   { target i?86-*-linux* x86_64-*-linux* } } */
-/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo,foo2 -fdisable-ipa-inline" } */
+/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo,foo2 -fdisable-ipa-inline -Wno-attributes" } */
 int g;
 __attribute__((always_inline)) void bar (void)
 {
index 9a85242a4b19e99055253721e853337da2323f84..1feefa1016882f848e632709029a59fc51d64e32 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile  { target i?86-*-linux* x86_64-*-linux* } } */
-/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline" } */
+/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */
 int g;
 __attribute__((always_inline)) void bar (void)
 {
index 22e2b629ed79f8a818469b90956605eb457c2a91..98d24378400430140a65d1af928ea518bf3cacb0 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-O1 " } */
+/* { dg-options "-O1 -Wno-attributes" } */
 
 extern void abort (void);