This is the mail archive of the gcc-bugs@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]

Solaris2.7 failing all nested function tests


	As can be seen in the following URL:

http://gcc.gnu.org/ml/gcc-testresults/2000-01/msg00055.html

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.  This
has been occuring for a long time.

I looked in the gcc.log file and all of the tests fail with this error:

 > collect2: ld returned 1 exit status
 > compiler exited with status 1
 > output is:
 > Undefined                       first referenced
 >  symbol                             in file
 > __enable_execute_stack              /var/tmp/ccaSCcjc.o

I looked in libgcc.a:_trampoline.o with nm and __enable_execute_stack()
function is in fact missing.

The cause seems to be that TRANSFER_FROM_TRAMPOLINE never gets defined
when compiling libgcc2.c.

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.

I'm not sure what the right fix is, but the cause is similar to the
previous issue we solved for this platform so the fix might also be
the same.

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions

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