summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-19 17:44:12 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-19 17:44:12 +0000
commit33bc61c87f48f7b5cf8853431e0fcfd5d24ad3cd (patch)
tree4a836b9bb2a026bdc1de44dd68551031a9c25a04
parent3d18355fbc28e8d55b97ae05193b4adb27fff250 (diff)
downloadgcc-33bc61c87f48f7b5cf8853431e0fcfd5d24ad3cd.tar.gz
gcc/testsuite/
* gcc.c-torture/execute/pr28289.c (one): New variable. (main): Use it instead of argc. * gcc.c-torture/execute/20060102-1.c (one): New variable. (main): Use it instead of argc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117060 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20060102-1.c5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr28289.c5
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e643d1d5001..480d6fa2542 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-19 Richard Sandiford <richard@codesourcery.com>
+
+ * gcc.c-torture/execute/pr28289.c (one): New variable.
+ (main): Use it instead of argc.
+ * gcc.c-torture/execute/20060102-1.c (one): New variable.
+ (main): Use it instead of argc.
+
2006-09-19 Paul Brook <paul@codesourcery.com>
PR target/28516
diff --git a/gcc/testsuite/gcc.c-torture/execute/20060102-1.c b/gcc/testsuite/gcc.c-torture/execute/20060102-1.c
index def13009270..7b616a2484f 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20060102-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20060102-1.c
@@ -5,11 +5,12 @@ int f(int x)
return (x >> 31) ? -1 : 1;
}
-int main (int argc)
+volatile int one = 1;
+int main (void)
{
/* Test that the function above returns different values for
different signs. */
- if (f(argc) == f(-argc))
+ if (f(one) == f(-one))
abort ();
return 0;
}
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28289.c b/gcc/testsuite/gcc.c-torture/execute/pr28289.c
index c3739a9543a..93e922cbb1f 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr28289.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr28289.c
@@ -18,10 +18,11 @@ ix86_split_ashr (int mode)
: gen_x86_64_shrd) (0);
}
+volatile int one = 1;
int
-main (int argc, char **argv)
+main (void)
{
- ix86_split_ashr (argc);
+ ix86_split_ashr (one);
return 1;
}