diff mbox

[testsuite] : Fix testcase with sizeof(void*) < 4

Message ID 4F101D00.6040005@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Jan. 13, 2012, 12:01 p.m. UTC
This patch adds -Wno-pointer-to-int-cast to the options in order to avoid FAIL
because of "warning: cast from pointer to integer of different size" when
sizeof(void*) = 2.

	* gcc.dg/pr50527.c: Don't FAIL if sizeof(void*) = 2

Comments

Mike Stump Jan. 13, 2012, 5:14 p.m. UTC | #1
On Jan 13, 2012, at 4:01 AM, Georg-Johann Lay wrote:
> This patch adds -Wno-pointer-to-int-cast to the options in order to avoid FAIL
> because of "warning: cast from pointer to integer of different size" when
> sizeof(void*) = 2.

Ok.

> 	* gcc.dg/pr50527.c: Don't FAIL if sizeof(void*) = 2
diff mbox

Patch

Index: gcc.dg/pr50527.c
===================================================================
--- gcc.dg/pr50527.c    (revision 183150)
+++ gcc.dg/pr50527.c    (working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-options "-Os --param large-stack-frame=30" } */
+/* { dg-options "-Os --param large-stack-frame=30 -Wno-pointer-to-int-cast" } */

 extern void abort (void);