public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
@ 2005-06-19 13:04 ` pinskia at gcc dot gnu dot org
  2005-07-01 20:02 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 13:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-19 13:04 -------
*** Bug 22045 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |macro at linux-mips dot org


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
  2005-06-19 13:04 ` [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm' pinskia at gcc dot gnu dot org
@ 2005-07-01 20:02 ` pinskia at gcc dot gnu dot org
  2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-01 20:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-01 20:02 -------
: Search converges between 2004-05-11-trunk (#454) and 2004-05-14-trunk (#455).


-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
  2005-06-19 13:04 ` [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm' pinskia at gcc dot gnu dot org
  2005-07-01 20:02 ` pinskia at gcc dot gnu dot org
@ 2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
  2005-08-03  1:52 ` jkj at sco dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-06 17:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-07-06 17:03 -------
Postponed until 4.0.2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |4.0.2


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (2 preceding siblings ...)
  2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
@ 2005-08-03  1:52 ` jkj at sco dot com
  2005-08-04 20:48 ` rth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: jkj at sco dot com @ 2005-08-03  1:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jkj at sco dot com  2005-08-03 01:52 -------
FWIW, same problem occurs on UnixWare.

-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (3 preceding siblings ...)
  2005-08-03  1:52 ` jkj at sco dot com
@ 2005-08-04 20:48 ` rth at gcc dot gnu dot org
  2005-08-04 21:00 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-08-04 20:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-08-04 20:48 -------
The reason that we're rejecting the "m" alternative is that we've expanded
"+mr"(blen) to 

              (set (reg/v:SI 60 [ blen.25 ])
                (asm_operands:SI ("") ("=mr") 2 [
                        (mem/i:SI (plus:SI (reg/f:SI 16 argp)
                                (const_int 16 [0x10])) [0 d+0 S4 A32])
                        (reg/v/f:SI 65 [ a ])
                        (reg/v/f:SI 67 [ b ])
                        (reg/v:SI 68 [ blen ])

Note reg 60 as output and reg 68 as input.  Probably out-of-ssa is 
missing the fact that we'd like these variables to be unified.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amacleod at redhat dot com


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (4 preceding siblings ...)
  2005-08-04 20:48 ` rth at gcc dot gnu dot org
@ 2005-08-04 21:00 ` rth at gcc dot gnu dot org
  2005-08-04 23:37 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-08-04 21:00 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-04-29 21:58:36         |2005-08-04 20:59:58
               date|                            |


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (5 preceding siblings ...)
  2005-08-04 21:00 ` rth at gcc dot gnu dot org
@ 2005-08-04 23:37 ` cvs-commit at gcc dot gnu dot org
  2005-08-05  2:33 ` cvs-commit at gcc dot gnu dot org
  2005-08-05  2:34 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-04 23:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-04 23:37 -------
Subject: Bug 21291

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-08-04 23:37:00

Modified files:
	gcc            : ChangeLog tree-outof-ssa.c 
Added files:
	gcc/testsuite/gcc.target/i386: pr21291.c 

Log message:
	PR 21291
	* tree-outof-ssa.c (coalesce_asm_operands): New.
	(coalesce_ssa_name): Use it.  Split out ...
	(coalesce_phi_operands, coalesce_result_decls): ... these.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9659&r2=2.9660
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-outof-ssa.c.diff?cvsroot=gcc&r1=2.65&r2=2.66
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.target/i386/pr21291.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (6 preceding siblings ...)
  2005-08-04 23:37 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05  2:33 ` cvs-commit at gcc dot gnu dot org
  2005-08-05  2:34 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-05  2:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-05 02:33 -------
Subject: Bug 21291

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	rth@gcc.gnu.org	2005-08-05 02:33:11

Modified files:
	gcc            : ChangeLog tree-outof-ssa.c 
Added files:
	gcc/testsuite/gcc.target/i386: pr21291.c 

Log message:
	PR 21291
	* tree-outof-ssa.c (coalesce_asm_operands): New.
	(coalesce_ssa_name): Use it.  Split out ...
	(coalesce_phi_operands, coalesce_result_decls): ... these.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.352&r2=2.7592.2.353
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-outof-ssa.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.47&r2=2.47.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.target/i386/pr21291.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
       [not found] <20050429212215.21291.pluto@agmk.net>
                   ` (7 preceding siblings ...)
  2005-08-05  2:33 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05  2:34 ` rth at gcc dot gnu dot org
  8 siblings, 0 replies; 12+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-08-05  2:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-08-05 02:34 -------
Fixed.

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


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
  2005-04-29 21:22 [Bug other/21291] New: " pluto at pld-linux dot org
  2005-04-29 21:58 ` [Bug middle-end/21291] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-04-30  8:25 ` uros at kss-loka dot si
@ 2005-04-30  9:35 ` pluto at pld-linux dot org
  2 siblings, 0 replies; 12+ messages in thread
From: pluto at pld-linux dot org @ 2005-04-30  9:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pluto at pld-linux dot org  2005-04-30 09:35 -------
(In reply to comment #5) 
> (In reply to comment #3) 
> > I can't build the Objective Caml compiler with this gcc error :/  
>  
> (...) 
> Also using -fomit-frame-pointer works around the problem by adding 
> another free register. What is most likely happening is we are not 
> selecting the secondary constraint. 
 
this code is a part of library (-fPIC in use). 
-fomit-frame-pointer won't help. 
 

-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
  2005-04-29 21:22 [Bug other/21291] New: " pluto at pld-linux dot org
  2005-04-29 21:58 ` [Bug middle-end/21291] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-04-30  8:25 ` uros at kss-loka dot si
  2005-04-30  9:35 ` pluto at pld-linux dot org
  2 siblings, 0 replies; 12+ messages in thread
From: uros at kss-loka dot si @ 2005-04-30  8:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From uros at kss-loka dot si  2005-04-30 08:25 -------
Could this be related to PR19398: secondary reloads don't consider "m" alternatives?

-- 


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


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

* [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm'
  2005-04-29 21:22 [Bug other/21291] New: " pluto at pld-linux dot org
@ 2005-04-29 21:58 ` pinskia at gcc dot gnu dot org
  2005-04-30  8:25 ` uros at kss-loka dot si
  2005-04-30  9:35 ` pluto at pld-linux dot org
  2 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-29 21:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-29 21:58 -------
(In reply to comment #3)
> I can't build the Objective Caml compiler with this gcc error :/ 

If we change the asm to like so:
    asm(""
        : "+r" (a), "+r" (b), "+m" (blen), "+m" (out), "=&r" (tmp)
        : "m" (d)
        : "eax", "edx");

We don't get an error.

Also using -fomit-frame-pointer works around the problem by adding another free register.
What is most likely happening is we are not selecting the secondary constraint.

Oh, reload sucks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|rtl-optimization            |middle-end
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-29 21:58:36
               date|                            |
            Summary|can't find a register in    |[4.0/4.1 Regression] can't
                   |class 'GENERAL_REGS' while  |find a register in class
                   |reloading 'asm'             |'GENERAL_REGS' while
                   |                            |reloading 'asm'
   Target Milestone|---                         |4.0.1


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


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

end of thread, other threads:[~2005-08-05  2:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050429212215.21291.pluto@agmk.net>
2005-06-19 13:04 ` [Bug middle-end/21291] [4.0/4.1 Regression] can't find a register in class 'GENERAL_REGS' while reloading 'asm' pinskia at gcc dot gnu dot org
2005-07-01 20:02 ` pinskia at gcc dot gnu dot org
2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
2005-08-03  1:52 ` jkj at sco dot com
2005-08-04 20:48 ` rth at gcc dot gnu dot org
2005-08-04 21:00 ` rth at gcc dot gnu dot org
2005-08-04 23:37 ` cvs-commit at gcc dot gnu dot org
2005-08-05  2:33 ` cvs-commit at gcc dot gnu dot org
2005-08-05  2:34 ` rth at gcc dot gnu dot org
2005-04-29 21:22 [Bug other/21291] New: " pluto at pld-linux dot org
2005-04-29 21:58 ` [Bug middle-end/21291] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-30  8:25 ` uros at kss-loka dot si
2005-04-30  9:35 ` pluto at pld-linux 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).