Article View: gnu.gcc.bug
Article #1248bug in 2.2.2?
From: Michael Gersten
Date: Sat, 03 Oct 1992 18:07
Date: Sat, 03 Oct 1992 18:07
26 lines
1258 bytes
1258 bytes
In optabs.c, routine expand_binop(), is code that looks like
if (! (*insn_operand_predicate[icode][1]) (xop0, mode0))
xop0 = copy_to_mode_reg (mode0, xop0);
Note that this calls the specified predicate, even if the predicate
was "", i.e., no restriction on this one. This turns into a call to
address 0.
Is this an error in my md? Or is this a gcc problem?
Here's the stuff from md:
(define_insn "addsi3"
[ (set (match_operand:SI 0 "general_operand" "=r")
(plus (match_operand:SI 1 "" "%0")
(match_operand:SI 2 "mode_RD_operand" "g"))
)]
""
"*
{ return make2Ins (\"DA\", MR|MD|MDX); }"
)
--
Michael Gersten michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Technical Details
Message-ID:
<m0mbDt1-0005R0C@stb.info.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!stb.INfo.COM!michaelShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!stb.INfo.COM!michael From: michael@stb.INfo.COM (Michael Gersten) Subject: bug in 2.2.2? Message-ID: <m0mbDt1-0005R0C@stb.info.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sat, 3 Oct 1992 18:07:00 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 27