This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: RFA: Testsuite: Fixes for PR44197.c


2010/10/11 Dave Korn <dave.korn.cygwin@gmail.com>:
> On 11/10/2010 17:56, Kai Tietz wrote:
>
>> Yes, I know this issue pretty well. I did in the past some magic here
>> in i386.h for this. See CRT_MKSTR(__USER_LABEL_PREFIX).
>
> ?Oh, hang on:
>
>> #define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) ? ? ? ? ? ?\
>> ? ?asm (SECTION_OP "\n\t" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \
>> ? ? ? "call " CRT_MKSTR(__USER_LABEL_PREFIX__) #FUNC "\n" ? ? \
>> ? ? ? TEXT_SECTION_ASM_OP);
>
> ?Am I wrong, or is it not the case that a) you could use the proper quoted
> USER_LABEL_PREFIX backend definition there, and b) that could go wrong in
> cross, because it would use the build system compiler's definition of
> __U_L_P__, which would be correct for the host system but not necessarily
> right for the target?
>
> ? ?cheers,
> ? ? ?DaveK
>
>

There can go anything wrong, as this macro is used in libgcc (and
friends only). And it never will be build native target libraries for
cross compilation.
Nevertheless this mixture of host/target stuff within headers is a bit
irretating and somehow a kludge.

Cheers,
Kai


-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


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