Professional support for Vxworks cross-compiler
David Edelsohn
dje@watson.ibm.com
Fri Jul 7 15:31:00 GMT 2000
>>>>> Mike Stump writes:
>> Also, what is the whole mark_fn_as_defined_in_this_file()
>> machinery doing? Setting SYMBOL_REF_FLAG under more circumstances?
Mike> We basically remember if something is actually defined in the
Mike> translation unit, and we later make a codegen choice based upon that.
Mike> If we don't have information, we guess conservatively. If a sym has
Mike> been defined, then we assume that the whole translation unit fits
Mike> within 32 MB (and hence all defined syms are short and undefined syms
Mike> are long).
alpha, arm, and rs6000 all define current_file_function_operand()
to check SYMBOL_REF_FLAG. That flag already exists without your patch, so
it seems that the patch expands the number of cases where that flag is
set. I am trying to understand why you need to set SYMBOL_REF_FLAG. Were
cases being missed?
AIX linkage already behaves similarly, but without all of the
shortcall/longcall hints.
David
More information about the Gcc
mailing list