[Bug middle-end/63793] -mcmodel=medium in gfortran on x86_64 emits references that are RIP relative (instead of using the GOT)

howarth at bromo dot med.uc.edu gcc-bugzilla@gcc.gnu.org
Thu Nov 13 18:03:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63793

--- Comment #7 from howarth at bromo dot med.uc.edu ---
This seems to be due to the fact that on x86_64 linux, auto-host.h contains...

/* Define true if the assembler supports '.long foo@GOTOFF'. */
#ifndef USED_FOR_TARGET
#define HAVE_AS_GOTOFF_IN_DATA 1
#endif

but on x86_64 darwin, we have...

/* Define true if the assembler supports '.long foo@GOTOFF'. */
#ifndef USED_FOR_TARGET
#define HAVE_AS_GOTOFF_IN_DATA 0
#endif



More information about the Gcc-bugs mailing list