This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: testsuite/objc.dg/bitfield-2.m requires signed char
- From: Stan Shebs <shebs at apple dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: gcc-patches at gcc dot gnu dot org, Ziemowit Laski <zlaski at apple dot com>
- Date: Mon, 16 Sep 2002 12:07:30 -0700
- Subject: Re: PATCH: testsuite/objc.dg/bitfield-2.m requires signed char
- References: <200209161342.g8GDgjA28653@pc960.cambridge.arm.com>
Richard Earnshaw wrote:
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.
Amusing that this runs, seeing as how the NeXT runtime hasn't been ported to
ARM, but in any case yes, this is OK.
Stan
------------------------------------------------------------------------
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;