This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/30987] [4.3 Regression] Problem while compiling gcc for score
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2007 02:24:59 -0000
- Subject: [Bug rtl-optimization/30987] [4.3 Regression] Problem while compiling gcc for score
- References: <bug-30987-14137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ian at airs dot com 2007-02-28 02:24 -------
The problem is that the bitset_c insn comes before the iorsi3 insn in the MD
files. It matches the ior:SI insn with one added clobber. Unfortunately, the
added clobber is of a hard reg, and so this is rejected by insn_invalid_p in
recog.c.
I don't understand how bitset_c will ever be used in practice. Nothing
generates it explicitly. Typical ior:SI insns get passed to recog_memoized
which does not add clobbers.
I can fix the problem easily enough by moving (include "misc.md") and (include
"mac.md") to the end of score.md. I'm not sure how to really test that fix.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30987