This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "howarth.at.gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Jun 2015 23:32:37 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-66509-4 at http dot gcc dot gnu dot org/bugzilla/>
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.