This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Marking ia64 psABI conformance (Re: PATCH: Support the.note.GNU-property section)
- From: Jim Wilson <wilson at tuliptree dot org>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Thu, 05 Jun 2003 10:32:19 -0700
- Subject: Re: Marking ia64 psABI conformance (Re: PATCH: Support the.note.GNU-property section)
- References: <20030604173434.A14972@lucon.org> <m3r868dh2v.fsf@redhat.com><20030605074604.A26498@lucon.org>
Wouldn't it be easier to just fix the IA-64 gcc port to be ABI compliant?
There are two issues here
1) We need to restore gp in epilogue in some cases where we currently do
not. This is a correctness issue.
2) We can optimize away gp save/restore around calls functions in the
same load module. This is an optimization.
The first one does not cause any ABI problems. The second one does, and
can only be implemented after the first one.
So a possible solution is to implement the first change now, wait a year
or two, and then implement the second one. After the second change, we
can document that the next version of gcc is ABI incompatible with older
linux releases. There will be 3 or 4 version numbers between
incompatible versions, so this shouldn't be a fatal problem. We could
even add an option to disable the optimization for people that need
compatibility. Of course, this requires long term planning which we
aren't very good at.
Jim