This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/59946] -mpcrel -O2 produces illegal asm code
- From: "law at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Jan 2015 01:58:55 +0000
- Subject: [Bug target/59946] -mpcrel -O2 produces illegal asm code
- Auto-submitted: auto-generated
- References: <bug-59946-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59946
--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
The m68000 does not support compare imm,pc-relative. Sadly the various
comparison patterns play things fast and loose in terms of what order they emit
their operands. That makes it nontrivial to write operand predicates and
constraints which would allow the PC-relative addresses.
I think the best solution is going to be to disallow pc-relative memory
addresses in the comparison patterns/expanders.