aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2006-09-10 23:15:31 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-09-10 16:15:31 -0700
commit96f2fafeee83cf1cf50d8485c905c805ae291cd8 (patch)
tree05b01bfd1188eec751dd157ce6edd3fe151a3bbe
parent748dc0c9c2e8aa7406269aca9406ae17ef4467e9 (diff)
downloadgcc-96f2fafeee83cf1cf50d8485c905c805ae291cd8.zip
gcc-96f2fafeee83cf1cf50d8485c905c805ae291cd8.tar.gz
gcc-96f2fafeee83cf1cf50d8485c905c805ae291cd8.tar.bz2
re PR testsuite/29007 (FAIL: gcc.dg/long-long-cst1.c execution test)
2006-09-10 Andrew Pinski <pinskia@physics.uc.edu> PR testsuite/29007 * gcc.dg/long-long-cst1.c (t): Add cast to __SIZE_TYPE__ before casting to int. (main): Return 0 on success. From-SVN: r116832
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/long-long-cst1.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 45bd6ed..ebddaa6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR testsuite/29007
+ * gcc.dg/long-long-cst1.c (t): Add cast to
+ __SIZE_TYPE__ before casting to int.
+ (main): Return 0 on success.
+
2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/execute/20060910-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/long-long-cst1.c b/gcc/testsuite/gcc.dg/long-long-cst1.c
index 7c120dc..7c60648 100644
--- a/gcc/testsuite/gcc.dg/long-long-cst1.c
+++ b/gcc/testsuite/gcc.dg/long-long-cst1.c
@@ -7,11 +7,12 @@ extern void abort();
struct st{
int _mark;
};
-unsigned long long t = ((int)&(((struct st*)16)->_mark) - 32);
+unsigned long long t = ((int)(__SIZE_TYPE__)&(((struct st*)16)->_mark) - 32);
int main()
{
if (t != (unsigned long long)(int)-16)
abort ();
+ return 0;
}