summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-19 00:43:33 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-19 00:43:33 +0000
commite458d5eebac630e5c64a94fedd5f15d767faa80a (patch)
treea05626b2da213adf8192bda190fb4faebb6ca5ed /gcc
parent98b82774e2d05d0b202fe0eae884bb77e5009a72 (diff)
downloadgcc-e458d5eebac630e5c64a94fedd5f15d767faa80a.tar.gz
* gcc.c-torture/execute/pure-1.c: Make functions static again.
Don't use attribute `noinline'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54767 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pure-1.c21
2 files changed, 12 insertions, 14 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 12023e0b430..518ac60759b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gcc.c-torture/execute/pure-1.c: Make functions static again.
+ Don't use attribute `noinline'.
+
2002-06-18 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-torture/execute/20020615-1.c: Fix typo in comment.
diff --git a/gcc/testsuite/gcc.c-torture/execute/pure-1.c b/gcc/testsuite/gcc.c-torture/execute/pure-1.c
index 96435c17426..a516ed940c3 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pure-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pure-1.c
@@ -17,20 +17,13 @@ extern int func0 (int) __attribute__ ((__pure__));
extern int func1 (int) __attribute__ ((__const__));
/* GCC should automatically detect attributes for these functions.
- Don't allow -O3 to inline them. */
-#define ANI __attribute__ ((__noinline__))
-
-/* ??? If we mark these static, then -O3 will defer them to the end of
- compilation, and we won't have detected anything about them at the
- point main is compiled. Leaving them public works until someone runs
- the testsuite with -fpic, or has an OS for which targetm.binds_local_p
- returns false for some reason. */
-int ANI func2 (int a) { return i + a; } /* pure */
-int ANI func3 (int a) { return a * 3; } /* const */
-int ANI func4 (int a) { return func0(a) + a; } /* pure */
-int ANI func5 (int a) { return a + func1(a); } /* const */
-int ANI func6 (int a) { return func2(a) + a; } /* pure */
-int ANI func7 (int a) { return a + func3(a); } /* const */
+ At -O3 They'll be inlined, but that's ok. */
+static int func2 (int a) { return i + a; } /* pure */
+static int func3 (int a) { return a * 3; } /* const */
+static int func4 (int a) { return func0(a) + a; } /* pure */
+static int func5 (int a) { return a + func1(a); } /* const */
+static int func6 (int a) { return func2(a) + a; } /* pure */
+static int func7 (int a) { return a + func3(a); } /* const */
int main ()
{