RFA: Testsuite: Fixes for PR44197.c

Dave Korn dave.korn.cygwin@gmail.com
Mon Oct 11 17:30:00 GMT 2010


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



More information about the Gcc-patches mailing list