public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/32337]  New: [4.3 Regression] Error: Register number out of range 0..1
@ 2007-06-14 10:39 tbm at cyrius dot com
  2007-06-21 22:44 ` [Bug target/32337] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tbm at cyrius dot com @ 2007-06-14 10:39 UTC (permalink / raw)
  To: gcc-bugs

I'm getting the following assembler error with current gcc 4.3.  This
worked with 20070604 and is probably due to the dataflow merge.


tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O1 ccmalloc-callchain.c
ccmalloc-callchain.c: In function 'backtrace':
ccmalloc-callchain.c:14: warning: unsupported argument to
'__builtin_return_address'
/tmp/ccMB3CzF.s: Assembler messages:
/tmp/ccMB3CzF.s:10: Warning: Second operand of .save contradicts .prologue
/tmp/ccMB3CzF.s:17: Error: Register number out of range 0..1
/tmp/ccMB3CzF.s:17: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1
- 127' (impliedf), specific resource number is 33
/tmp/ccMB3CzF.s:17: Warning: Only the first path encountering the conflict is
reported
/tmp/ccMB3CzF.s:14: Warning: This is the location of the conflicting usage
/tmp/ccMB3CzF.s:39: Error: Register number out of range 0..1
/tmp/ccMB3CzF.s:60: Error: Register number out of range 0..1


Testcase:


typedef struct __jmp_buf_tag
{
}
jmp_buf[1];
static jmp_buf backtrace_jump;
static char *
return_address (unsigned i)
{
  switch (i)
    {
    case 0:
      return (char *) __builtin_return_address (0);
    case 1:
      return (char *) __builtin_return_address (1);
    }
}
backtrace (int skip)
{
  if (_setjmp (backtrace_jump) == 0)
    {
      int i = ++skip;
      while (1)
        {
          char *pc = return_address (i++);
          if (!pc)
            break;
        }
    }
}


-- 
           Summary: [4.3 Regression] Error: Register number out of range
                    0..1
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com
GCC target triplet: ia64-linux-gnu


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


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

* [Bug target/32337] [4.3 Regression] Error: Register number out of range 0..1
  2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
@ 2007-06-21 22:44 ` pinskia at gcc dot gnu dot org
  2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-21 22:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.0


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


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

* [Bug target/32337] [4.3 Regression] Error: Register number out of range 0..1
  2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
  2007-06-21 22:44 ` [Bug target/32337] " pinskia at gcc dot gnu dot org
@ 2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
  2007-07-04 16:35 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-06-29 18:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug target/32337] [4.3 Regression] Error: Register number out of range 0..1
  2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
  2007-06-21 22:44 ` [Bug target/32337] " pinskia at gcc dot gnu dot org
  2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
@ 2007-07-04 16:35 ` jakub at gcc dot gnu dot org
  2007-07-07 12:45 ` jakub at gcc dot gnu dot org
  2007-09-17 22:30 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-07-04 16:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2007-07-04 16:35 -------
Created an attachment (id=13846)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13846&action=view)
gcc43-pr32337.patch

The problem seems to be caused by the addition of the
emitted_frame_related_regs
array, there are several issues I found (see this patch) and in the end
two of the 3 saved registers (RP, PFS, FP) were saved in the same register,
which caused severe havoc.
I'll try to bootstrap/regtest this on ia64-linux, so far I have only tested
that it cures the testcase.


-- 


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


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

* [Bug target/32337] [4.3 Regression] Error: Register number out of range 0..1
  2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2007-07-04 16:35 ` jakub at gcc dot gnu dot org
@ 2007-07-07 12:45 ` jakub at gcc dot gnu dot org
  2007-09-17 22:30 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-07-07 12:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2007-
                   |                            |07/msg00629.html
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-07 12:45:05
               date|                            |


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


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

* [Bug target/32337] [4.3 Regression] Error: Register number out of range 0..1
  2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2007-07-07 12:45 ` jakub at gcc dot gnu dot org
@ 2007-09-17 22:30 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-09-17 22:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-09-17 22:30 -------
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128490


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2007-09-17 22:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 10:39 [Bug target/32337] New: [4.3 Regression] Error: Register number out of range 0..1 tbm at cyrius dot com
2007-06-21 22:44 ` [Bug target/32337] " pinskia at gcc dot gnu dot org
2007-06-29 18:45 ` mmitchel at gcc dot gnu dot org
2007-07-04 16:35 ` jakub at gcc dot gnu dot org
2007-07-07 12:45 ` jakub at gcc dot gnu dot org
2007-09-17 22:30 ` jakub at gcc dot gnu 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).