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

Is SYMBOL_REF in code or in data section?


Heyho!

[This might be specific to the ARM backend, but I'm not sure]

in legitimize_address (specific: ARM, legitimize_pic_address), to
generate addresses the right way I need to determine if the given
symbol_ref represents a symbol in the code or in the data section.

The ARM backend of 2.95 seemed to use SYMBOL_REF_FLAG to this purpose,
but this seems top have disappeared in gcc-3.0.2.

[ The bigger picture: still trying to get the -mdisable-got/-mno-got
patch working for gcc-3. 

Btw, the functionality is very close to that of the -membedded-pic
switch on MIPS, but the implementations seem to differ considerable - at
least I could gain nothing from looking through the MIPS sources. But
this similarity makes me wonder if gcc shouldn't implement this feature
architecture independently, say, as -fstatic-base -fbase-register=... or
something like this. ]

greets from Zürich
-- vbi


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