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]

Patch to fix i960 objc runtime build


Currently the i960 objc runtime fails to build:

/local/build/i960-coff/GNU/gcc-current/gcc/xgcc -B/local/build/i960-coff/GNU/gcc-current/gcc/ -nostdinc -B/local/build/i960-coff/GNU/gcc-current/i960-coff/newlib/ -isystem /local/build/i960-coff/GNU/gcc-current/i960-coff/newlib/targ-include -isystem /local/src/GNU/gcc-current/newlib/libc/include -B/local/i960-coff/bin/ -B/local/i960-coff/lib/ -isystem /local/i960-coff/include -c -I. -I../../../../../../src/GNU/gcc-current/libobjc -g -O2 -DIN_GCC -DIN_TARGET_LIBS -I../../../../../../src/GNU/gcc-current/libobjc/objc -I../../../../../../src/GNU/gcc-current/libobjc/../gcc -I../../../../../../src/GNU/gcc-current/libobjc/../gcc/config -I../../gcc -I../../../../../../src/GNU/gcc-current/libobjc/../include ../../../../../../src/GNU/gcc-current/libobjc/encoding.c -o encoding.o
../../../../../../src/GNU/gcc-current/libobjc/encoding.c: In function `objc_layout_finish_structure':
../../../../../../src/GNU/gcc-current/libobjc/encoding.c:875: `REAL_TYPE' undeclared (first use in this function)
../../../../../../src/GNU/gcc-current/libobjc/encoding.c:875: (Each undeclared identifier is reported only once
../../../../../../src/GNU/gcc-current/libobjc/encoding.c:875: for each function it appears in.)

because the i960 ROUND_TYPE_ALIGN macro uses REAL_TYPE which isn't defined.

ChangeLog:

Thu Mar 15 17:48:11 EST 2001  John Wehle  (john@feith.com)

	* encoding.c (REAL_TYPE): Define.

Enjoy!

-- John Wehle
------------------8<------------------------8<------------------------
*** libobjc/encoding.c.ORIGINAL	Thu Jan 11 17:15:39 2001
--- libobjc/encoding.c	Thu Mar 15 17:41:40 2001
*************** Boston, MA 02111-1307, USA.  */
*** 54,59 ****
--- 54,61 ----
  #define QUAL_UNION_TYPE _C_UNION_B
  #define ARRAY_TYPE      _C_ARY_B
  
+ #define REAL_TYPE       _C_DBL
+ 
  #define TYPE_FIELDS(TYPE)     objc_skip_typespec (TYPE)
  
  #define DECL_MODE(TYPE)         *(TYPE)
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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