This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: testsuite/objc.dg/bitfield-2.m requires signed char
- From: Richard Earnshaw <rearnsha at cambridge dot arm dot com>
- To: gcc-patches at gcc dot gnu dot org, Ziemowit Laski <zlaski at apple dot com>
- Cc: Richard dot Earnshaw at arm dot com
- Date: Mon, 16 Sep 2002 14:42:45 +0100
- Subject: PATCH: testsuite/objc.dg/bitfield-2.m requires signed char
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
The objc test bitfield-2.m fails on machines that don't have char signed
by default. This includes ARM and probably several other machines.
rather than mangle the test in a way which is probably not desirable, it
seams best to force the compiler to used signed chars for this case.
2002-09-16 Richard Earnshaw <rearnsha@arm.com>
* objc.dg/bitfield-2.m (dg-options): Add -fsigned-char.
Index: bitfield-2.m
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/objc.dg/bitfield-2.m,v
retrieving revision 1.1
diff -p -r1.1 bitfield-2.m
*** bitfield-2.m 20 Aug 2002 01:27:39 -0000 1.1
--- bitfield-2.m 16 Sep 2002 13:34:13 -0000
***************
*** 1,7 ****
/* Check if bitfield ivars are correctly @encode'd when
the NeXT runtime is used. */
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
! /* { dg-options "-fnext-runtime" } */
/* { dg-do run } */
struct objc_object { struct objc_class *class_pointer; } *id;
--- 1,7 ----
/* Check if bitfield ivars are correctly @encode'd when
the NeXT runtime is used. */
/* Contributed by Ziemowit Laski <zlaski@apple.com>. */
! /* { dg-options "-fnext-runtime -fsigned-char" } */
/* { dg-do run } */
struct objc_object { struct objc_class *class_pointer; } *id;