This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: testsuite/objc.dg/bitfield-2.m requires signed char


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]