This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Allow Solaris 2/x86 ABI to match recent Studio compiler (PR target/44452)
"Joseph S. Myers" <joseph@codesourcery.com> writes:
>> Something else: do you know of an update to the i386 psABI? The
>> original SCO document is from 1996 and thus way incomplete and out of
>> date. The only thing I could find was
>>
>> http://www.agner.org/optimize/calling_conventions.pdf
>>
>> but (apart from having lots of information on non-ELF platforms like
>> Windows or Mac OS X) this isn't a proper specification, but rather a
>> reengineering of what various compilers implement.
>
> I don't believe there's any proper document that would serve as a current
> i386 ELF psABI (which would inevitably in fact involve describing what is
> currently implemented to a large extent). Perhaps people caring about
Right, there's nothing wrong about that. But any proper written
specification would be far better than having to reengineer what current
implementations do.
> that issue might wish to form a group to write up, but be aware it's a
> large amount of work; discussions on writing a current document for the
> 32-bit Power Architecture ABI started at the GCC Summit in 2006 and only
> now do we have a nearly final document that's almost ready for release by
> power.org. (As with the i386 psABI, there were copyright issues with the
> old unmaintained document meaning the new one needed writing from scratch
> (the 64-bit ABI was used to provide an initial framework); the old PowerPC
> ABI has Sun copyrights from long-ago PowerPC Solaris that no-one now at
> Sun could usefully do anything about, the i386 ABI has SCO copyrights.)
By now, it seems that the old 32-bit PowerPC psABI (by SunSoft) has been
released to the (now defunct) OpenSolaris PowerPC project:
http://hub.opensolaris.org/bin/view/Community+Group+power_pc/powerpc_doc_library
Unless SCO can be persuaded to release the copyright to the i386 psABI
to such a group to allow them to produce a new current version, it might
be viable to instead create an appendix describing what's missing from
the 1996 version? Chris Quenelle suggested this in private mail, and it
might be a far smaller effort than recreating a complete psABI from
scratch.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University