aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr27528.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bac8a24..bd0b434 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-18 Hui-May Chang <hm.chang@apple.com>
+
+ * gcc.c-torture/compile/pr27528.c: Add -fno-pic option.
+
2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
* gcc.dg/m68k-pic-1.c: New.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr27528.c b/gcc/testsuite/gcc.c-torture/compile/pr27528.c
index 2e732f4..c5f8b5e 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr27528.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr27528.c
@@ -1,5 +1,7 @@
/* Check that constant constraints like "i", "n" and "s" can be used in
cases where the operand is an initializer constant. */
+/* { dg-options "-fno-pic" } */
+
int x[2] = { 1, 2 };
#ifdef __OPTIMIZE__