This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49995] New: "operand missing mode" warning on sparc
- From: "jimis at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 5 Aug 2011 21:17:10 +0000
- Subject: [Bug target/49995] New: "operand missing mode" warning on sparc
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49995
Summary: "operand missing mode" warning on sparc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jimis@gmx.net
Host: sparc-unknown-linux-gnu
I get the following warnings while building gcc on a sparcstation:
build/genrecog ../../gcc-trunk-109439-co/gcc/config/sparc/sparc.md \
insn-conditions.md > tmp-recog.c
../../gcc-trunk-109439-co/gcc/config/sparc/sync.md:82: warning: operand 1
missing mode?
../../gcc-trunk-109439-co/gcc/config/sparc/sync.md:94: warning: operand 1
missing mode?
The relevant lines of sync.md are:
82 (define_insn "*sync_compare_and_swap<mode>"
83 [(set (match_operand:I48MODE 0 "register_operand" "=r")
84 (mem:I48MODE (match_operand 1 "register_operand" "r")))
85 (set (mem:I48MODE (match_dup 1))
86 (unspec_volatile:I48MODE
87 [(match_operand:I48MODE 2 "register_operand" "r")
88 (match_operand:I48MODE 3 "register_operand" "0")]
89 UNSPECV_CAS))]
90 "TARGET_V9 && (<MODE>mode == SImode || TARGET_ARCH64)"
91 "cas<modesuffix>\t[%1], %2, %0"
92 [(set_attr "type" "multi")])
93
94 (define_insn "*sync_compare_and_swapdi_v8plus"
95 [(set (match_operand:DI 0 "register_operand" "=h")
96 (mem:DI (match_operand 1 "register_operand" "r")))
97 (set (mem:DI (match_dup 1))
98 (unspec_volatile:DI
99 [(match_operand:DI 2 "register_operand" "h")
100 (match_operand:DI 3 "register_operand" "0")]
101 UNSPECV_CAS))]
102 "TARGET_V8PLUS"