public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28508]  New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
@ 2006-07-27  1:39 inaoka dot kazuhiro at renesas dot com
  2006-07-27  1:48 ` [Bug c/28508] " inaoka dot kazuhiro at renesas dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-07-27  1:39 UTC (permalink / raw)
  To: gcc-bugs

e have often gotten the following assembler error with -g option
since m32r-linux-gnu-gcc-4.0 released.

/tmp/cch1oLgA.s: Assembler messages:
/tmp/cch1oLgA.s:2591: Error: operand out of range (145 not between -128 and
127)/tmp/cch1oLgA.s:3358: Error: operand out of range (145 not between -128 and
127)/tmp/cch1oLgA.s:5195: Error: operand out of range (-130 not between -128
and 127)

We have been using DWARF2 since gcc-4.0.
It creates many local label symbols and makes pnop codes for code aligments.
We have no idia to avoid this error on compiling.

So we propose to change the range for using short bransh format code.


-- 
           Summary: Assembler Error: operand out of ragne (145 not between -
                    128 and 127) form m32r-target
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: inaoka dot kazuhiro at renesas dot com
GCC target triplet: m32r


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/28508] Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
@ 2006-07-27  1:48 ` inaoka dot kazuhiro at renesas dot com
  2006-07-27  1:52 ` inaoka dot kazuhiro at renesas dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-07-27  1:48 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c/28508] Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
  2006-07-27  1:48 ` [Bug c/28508] " inaoka dot kazuhiro at renesas dot com
@ 2006-07-27  1:52 ` inaoka dot kazuhiro at renesas dot com
  2006-07-27 10:20 ` [Bug target/28508] " nickc at redhat dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-07-27  1:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from inaoka dot kazuhiro at renesas dot com  2006-07-27 01:52 -------
Created an attachment (id=11954)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11954&action=view)
workaround patch


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
  2006-07-27  1:48 ` [Bug c/28508] " inaoka dot kazuhiro at renesas dot com
  2006-07-27  1:52 ` inaoka dot kazuhiro at renesas dot com
@ 2006-07-27 10:20 ` nickc at redhat dot com
  2006-07-27 12:22 ` [Bug target/28508] Assembler Error: operand out of range " nickc at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nickc at redhat dot com @ 2006-07-27 10:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from nickc at redhat dot com  2006-07-27 10:20 -------
Kazu,

  I will apply your proposed patch.  

  One day we must really spend the time to fixup gcc so that the backends know
about these debug labels and their effect on code placement.

Cheers
  Nick

PS.  For the record this PR started here:
  http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01050.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of range (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
                   ` (2 preceding siblings ...)
  2006-07-27 10:20 ` [Bug target/28508] " nickc at redhat dot com
@ 2006-07-27 12:22 ` nickc at gcc dot gnu dot org
  2006-07-29  5:22 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: nickc at gcc dot gnu dot org @ 2006-07-27 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from nickc at gcc dot gnu dot org  2006-07-27 12:21 -------
Subject: Bug 28508

Author: nickc
Date: Thu Jul 27 12:21:39 2006
New Revision: 115773

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115773
Log:
PR gcc/28508
* config/m32r/m32r.md (branch_insn): Reduce pc range for short branch.
 (rev_branch_insn): Likewise.                

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m32r/m32r.md


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of range (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
                   ` (3 preceding siblings ...)
  2006-07-27 12:22 ` [Bug target/28508] Assembler Error: operand out of range " nickc at gcc dot gnu dot org
@ 2006-07-29  5:22 ` pinskia at gcc dot gnu dot org
  2006-08-03  7:59 ` inaoka dot kazuhiro at renesas dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-29  5:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-07-29 05:22 -------
So the assembler adds the nops.  Hmm, is there a reason why GCC could add them
instead? 


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-07-29 05:22:13
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of range (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
                   ` (4 preceding siblings ...)
  2006-07-29  5:22 ` pinskia at gcc dot gnu dot org
@ 2006-08-03  7:59 ` inaoka dot kazuhiro at renesas dot com
  2007-04-28 10:11 ` tbm at cyrius dot com
  2008-01-23 14:21 ` debian-gcc at lists dot debian dot org
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-08-03  7:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from inaoka dot kazuhiro at renesas dot com  2006-08-03 07:59 -------
(In reply to comment #4)

> Modified:
>     trunk/gcc/ChangeLog
>     trunk/gcc/config/m32r/m32r.md
Could you please apply the same path to 4.1 and 4.0 branch?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of range (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
                   ` (5 preceding siblings ...)
  2006-08-03  7:59 ` inaoka dot kazuhiro at renesas dot com
@ 2007-04-28 10:11 ` tbm at cyrius dot com
  2008-01-23 14:21 ` debian-gcc at lists dot debian dot org
  7 siblings, 0 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2007-04-28 10:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tbm at cyrius dot com  2007-04-28 11:10 -------
(In reply to comment #6)
> (In reply to comment #4)
> 
> > Modified:
> >     trunk/gcc/ChangeLog
> >     trunk/gcc/config/m32r/m32r.md
> Could you please apply the same path to 4.1 and 4.0 branch?

Nick, are you going to backport this patch?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug target/28508] Assembler Error: operand out of range (145 not between -128 and 127) form m32r-target
  2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
                   ` (6 preceding siblings ...)
  2007-04-28 10:11 ` tbm at cyrius dot com
@ 2008-01-23 14:21 ` debian-gcc at lists dot debian dot org
  7 siblings, 0 replies; 9+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2008-01-23 14:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from debian-gcc at lists dot debian dot org  2008-01-23 13:34 -------
please mark it as closed, if it is not a candidate for a backport.

  Matthias


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28508


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-01-23 13:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27  1:39 [Bug c/28508] New: Assembler Error: operand out of ragne (145 not between -128 and 127) form m32r-target inaoka dot kazuhiro at renesas dot com
2006-07-27  1:48 ` [Bug c/28508] " inaoka dot kazuhiro at renesas dot com
2006-07-27  1:52 ` inaoka dot kazuhiro at renesas dot com
2006-07-27 10:20 ` [Bug target/28508] " nickc at redhat dot com
2006-07-27 12:22 ` [Bug target/28508] Assembler Error: operand out of range " nickc at gcc dot gnu dot org
2006-07-29  5:22 ` pinskia at gcc dot gnu dot org
2006-08-03  7:59 ` inaoka dot kazuhiro at renesas dot com
2007-04-28 10:11 ` tbm at cyrius dot com
2008-01-23 14:21 ` debian-gcc at lists dot debian dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).