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

[Bug target/66509] the new clang-based assembler in Xcode 7 on 10.11 fails on the libjava/java/lang/reflect/natArray.cc file from FSF gcc 5.1 at -m32


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

--- Comment #17 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
Apple responded on radar as follows...

This issue behaves as intended based on the following:

I think the first diagnostic is reasonable: there's not particular reason to
prefer filds over fildl (or even fildll) so some disambiguation is needed.

The second is debatable: MachO does seem to be able to represent it if we
wanted, and ld64 seems to handle it correctly, but our execution model never
puts any pointers at a location reachable by such a relocation (it's all
PAGEZERO). So I think that one is probably best kept too.

I'd suggest that GCC use either "filds mem(%rip)" or possibly "filds (%ebp)"
(to pick a random example) for something that should assemble in both 64-bit
and 32-bit mode -- sidestepping the relocation issue entirely.


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