diff options
author | Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de> | 2002-09-07 20:20:35 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-09-07 20:20:35 -0700 |
commit | 54c93c301960dfbc469ee3501ba4872adbfdaf1f (patch) | |
tree | 2fe21d185b6128b532ce398c3d0354ca265c03ae /gcc/testsuite | |
parent | 3aa4cad77f095ed61e5e7b803f54c0047bcee380 (diff) | |
download | gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.zip gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.tar.gz gcc-54c93c301960dfbc469ee3501ba4872adbfdaf1f.tar.bz2 |
c-typeck.c (c_tree_expr_nonnegative_p): New function.
* c-typeck.c (c_tree_expr_nonnegative_p): New function.
(build_binary_op): Call c_tree_expr_nonnegative_p rather than
tree_expr_nonnegative_p.
(build_conditional_expr): Likewise.
* c-tree.h (c_tree_expr_nonnegative_p): Declare.
* gcc.dg/compare2.c: Remove xfail from cases 10 and 12.
From-SVN: r56927
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/compare2.c | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 18696d0..d382457 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de> + + * gcc.dg/compare2.c: Remove xfail from cases 10 and 12. + 2002-09-05 Ziemowit Laski <zlaski@apple.com> * objc.dg/proto-lossage-1.m: New test. @@ -80,7 +84,7 @@ Tue Aug 27 22:23:22 2002 Nicola Pero <n.pero@mi.flashnet.it> 2002-08-26 Ziemowit Laski <zlaski@apple.com> - * objc.dg/super-class-2.m: New test. + * objc.dg/super-class-2.m: New test. 2002-08-24 Matt Austern <austern@apple.com> @@ -186,7 +190,7 @@ Tue Aug 27 22:23:22 2002 Nicola Pero <n.pero@mi.flashnet.it> 2002-08-06 Aldy Hernandez <aldyh@redhat.com> - * testsuite/gcc.dg/tls/diag-3.c: New. + * testsuite/gcc.dg/tls/diag-3.c: New. 2002-08-07 Gabriel Dos Reis <gdr@nerim.net> @@ -231,7 +235,7 @@ Tue Aug 27 22:23:22 2002 Nicola Pero <n.pero@mi.flashnet.it> 2002-08-01 Benjamin Kosnik <bkoz@redhat.com> - * g++.old-deja/g++.abi/ptrflags.C (expect): Change + * g++.old-deja/g++.abi/ptrflags.C (expect): Change __qualifier_flags to __flags. 2002-07-31 Mark Mitchell <mark@codesourcery.com> diff --git a/gcc/testsuite/gcc.dg/compare2.c b/gcc/testsuite/gcc.dg/compare2.c index a33e4aa..0625eb9 100644 --- a/gcc/testsuite/gcc.dg/compare2.c +++ b/gcc/testsuite/gcc.dg/compare2.c @@ -26,11 +26,11 @@ void f(int x, unsigned int y) /* Statement expression. */ x > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 9" } */ - y > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 10" { xfail *-*-* } } */ + y > ({tf; 64;}); /* { dg-bogus "signed and unsigned" "case 10" } */ /* Statement expression with recursive ?: . */ x > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 11" } */ - y > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 12" { xfail *-*-* } } */ + y > ({tf; tf?64:(tf?128:256);}); /* { dg-bogus "signed and unsigned" "case 12" } */ /* Statement expression with signed ?:. */ x > ({tf; tf?64:-1;}); /* { dg-bogus "signed and unsigned" "case 13" } */ |