This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Solaris2.7 failing all nested function tests
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Solaris2.7 failing all nested function tests
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 10 Jan 2000 09:28:19 -0200
- Cc: egcs-bugs at egcs dot cygnus dot com, davem at redhat dot com, jakub at redhat dot com
- References: <200001071717.MAA26674@caip.rutgers.edu>
On Jan 7, 2000, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:
> the nested function tests all fail for sparc-sun-solaris2.7, at least
> in my configuration which uses native as/ld and cc for stage1.
> The macro TRANSFER_FROM_TRAMPOLINE is defined in sol2-sld-64.h and
> that file does get included. However the macro definition is wrapped
> with AS_SPARC64_FLAG and that macro is defined in auto-host.h. Since
> libgcc2.c is a target file, it doesn't include auto-host.h to define
> AS_SPARC64_FLAG.
Yep, this seems tricky. AS_SPARC64_FLAG is indeed a property of the
host, but it is being used to infer properties of the target platform.
I believe we could solve this particular problem by moving the
definition of TRANSFER_FROM_TRAMPOLINE into sol2.h, but the problem of
not having AS_SPARC64_FLAG when including sol2-sld-64.h may bite us
later.
One possibility I can think of to work around this problem is to
generate a separate header file, at configure time, containing the
appropriate #define, and forcing sol2-sld-64.h to include it. But I
don't find this solution much elegant :-(
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them