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]

s-stchop-rtems.adb patch


Hi,

I was getting 100% ACATS failures on m68k/coldfire (uc5282 board)
because the C99 bool is not an int, it is only 8 bits.  Apparently
it was ok on the other architectures we run ACATS on.

Is unsigned_char the best type for the binding?

OK to commit if it is?

2009-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>

* s-stchop-rtems.adb: Use unsigned_char for bool return value.


Index: s-stchop-rtems.adb =================================================================== --- s-stchop-rtems.adb (revision 151936) +++ s-stchop-rtems.adb (working copy) @@ -80,8 +80,9 @@ is pragma Unreferenced (Stack_Address);

- -- RTEMS has a routine to check this. So use it.
- function rtems_stack_checker_is_blown return Interfaces.C.int;
+ -- RTEMS has a routine to check if the stack is blown.
+ -- It returns a C99 bool.
+ function rtems_stack_checker_is_blown return Interfaces.C.unsigned_char;
pragma Import (C,
rtems_stack_checker_is_blown, "rtems_stack_checker_is_blown");


--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985



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