This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

RE: [3.3/3.4] Recent bootstrap failure on irix6.5


The following patch is a start.  I will beat on it for a few days.
We need to define__c99 to get the C99 functions.  This then brings in
#define __restrict restrict

Index: os_defines.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/os/irix/irix6.5/os_defines.h,v
retrieving revision 1.2
diff -u -r1.2 os_defines.h
--- os_defines.h        26 Sep 2002 05:25:11 -0000      1.2
+++ os_defines.h        7 Feb 2003 03:39:24 -0000
@@ -51,5 +51,10 @@
 // GCC does not use thunks on IRIX. 
 #define _G_USING_THUNKS 0
 
+// Irix 6.5.18 and above have wide char support
+// This is a first pass at getting it to work
+#define __c99 1
+#define restrict 
+
 #endif
 

-----Original Message-----
From: Benjamin Kosnik [mailto:bkoz@redhat.com]
Sent: Wednesday, 5 February 2003 11:17 AM
To: Billinghurst, David (CRTS)
Cc: Billinghurst, David (CRTS); libstdc++@gcc.gnu.org
Subject: Re: [3.3/3.4] Recent bootstrap failure on irix6.5



>Just remembered we did an OS upgrade yesterday to Irix6.5.18 (from 6.5.8).  
>We now have /usr/include/wchar.h amd friends.  Looks like a useful path
>of investigation.

Huh. Very interesting. Well, the GLIBCPP_CHECK_WCHAR_T_SUPPORT in
acinclude.m4 will probably have to be tweaked.

Interestingly, vfwscanf, wcstof etc from your first message are checked
for in this macro, so perhaps the problem is that the configure checks
are being done with different macros defined than when the library is
compiled? (ie, something in os_defines.h?) You might need to figure out
how this functionality is macro guarded in the Irix headers.

Hmmm. I'll work with you on this, but it might be a bit hairy as this is
the first non-linux host to have wchar_t stuff enabled. There are sure
to be bumps in the road ahead...

-benjamin


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