This is the mail archive of the
mailing list for the GCC project.
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Phil Blundell <pb at nexus dot co dot uk>
- Cc: gcc at gcc dot gnu dot org
- Date: 11 Feb 2002 10:31:58 -0800
- Subject: Re: SYMBOL_REF_FLAG
- References: <1013442280.28580.83.camel@mill>
Phil Blundell <email@example.com> writes:
> The ARM backend has some kind of support for referencing static globals
> in PIC code using (GOTOFF) relocs rather than (GOT). In practice though
> this is never triggering because it lacks enough information to do
> anything useful. Other backends seem to encode the knowledge of whether
> a SYMBOL_REF has global linkage using SYMBOL_REF_FLAG (ie rtx->volatil),
> but the arm backend is already using this for other purposes.
> Are there any other flag bits in SYMBOL_REFs that could be safely
> pressed into service for this?
Generally when SYMBOL_REF_FLAG is already in use, the solution is to
prepend some character to symbol names, and use STRIP_NAME_ENCODING
etc. to remove it. The rs6000 port uses '@' in this fashion, for
- Geoffrey Keating <firstname.lastname@example.org> <email@example.com>