This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28508] Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
- From: "inaoka dot kazuhiro at renesas dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2006 01:48:43 -0000
- Subject: [Bug c/28508] Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
- References: <bug-28508-5993@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from inaoka dot kazuhiro at renesas dot com 2006-07-27 01:48 -------
Created an attachment (id=11953)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11953&action=view)
test case
bc.s and bnc.s have the range (form -512 to 508) of PC-relative.
If all 2byte instruction have alignment code (pnop)of debug information,
we must use 254/508.
But it's rare case.
FAIL Sample>
m32r-linux-gnu-gcc -S -g -O2 -o line_test.s.ng line_test.c
/tmp/ccHkZoqt.s: Assembler messages:
/tmp/ccHkZoqt.s:22: Error: operand out of range (198 not between -128 and 127)
PASS Sample> without -g option
m32r-linux-gnu-gcc -S -O2 -o line_test.s line_test.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508