[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [PATCH 5/5] Fix gv for long longs
From: |
Daniel Glöckner |
Subject: |
[Tinycc-devel] [PATCH 5/5] Fix gv for long longs |
Date: |
Fri, 5 Sep 2008 21:08:48 +0200 |
User-agent: |
Mutt/1.4.2.1i |
long long a();
long long b() {
return a();
}
At the end of b there will be some useless register shuffling.
This is because return wants to have the result of a in REG_IRET.
gv checks if this is the case for BOTH registers of the long long.
After this test it uses REG_LRET for the second register if the
first is supposed to be REG_IRET. In other cases it uses RC_INT.
The patch compares the second register against the class it will
have in the end instead of the register class the first register
will have.
At this point I would like to remind those who pick up the patches
that there are two other mails by me with uncommitted fixes:
http://lists.gnu.org/archive/html/tinycc-devel/2003-10/msg00044.html
http://lists.gnu.org/archive/html/tinycc-devel/2008-08/msg00007.html
Daniel
longlongreturn.patch
Description: Text document
pgptvdNJlL975.pgp
Description: PGP signature
- [Tinycc-devel] [PATCH 5/5] Fix gv for long longs,
Daniel Glöckner <=
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, Rob Landley, 2008/09/05
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, Kirill Smelkov, 2008/09/06
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, Laurens Simonis, 2008/09/06
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, KHMan, 2008/09/06
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, Rob Landley, 2008/09/06
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, KHMan, 2008/09/07
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, Rob Landley, 2008/09/07
- Re: [Tinycc-devel] [PATCH 5/5] Fix gv for long longs, KHMan, 2008/09/07
- [Tinycc-devel] Re: TinyCC CVS, Rob's fork, the future (was: [PATCH 5/5] Fix gv for long longs), Daniel Glöckner, 2008/09/07
- Re: [Tinycc-devel] Re: TinyCC CVS, Rob's fork, the future (was: [PATCH 5/5] Fix gv for long longs), Kirill Smelkov, 2008/09/07