* [Bug c/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
@ 2004-05-02 0:05 ` dank at kegel dot com
2004-05-02 0:06 ` dank at kegel dot com
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-02 0:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-02 00:05 -------
Created an attachment (id=6209)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6209&action=view)
minimal test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
2004-05-02 0:05 ` [Bug c/15247] " dank at kegel dot com
@ 2004-05-02 0:06 ` dank at kegel dot com
2004-05-02 0:15 ` [Bug target/15247] " pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-02 0:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-02 00:06 -------
Created an attachment (id=6210)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6210&action=view)
Output of compiling z.i with -O -fcall-used-g6
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
2004-05-02 0:05 ` [Bug c/15247] " dank at kegel dot com
2004-05-02 0:06 ` dank at kegel dot com
@ 2004-05-02 0:15 ` pinskia at gcc dot gnu dot org
2004-05-02 0:23 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-02 0:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-02 00:15 -------
I want to say this is binutils bug from the sparc target header:
SPARC has 32 integer registers and 32 floating point registers.
64 bit SPARC has 32 additional fp regs, but the odd numbered ones are not
accessible. We still account for them to simplify register computations
(eg: in CLASS_MAX_NREGS). There are also 4 fp condition code registers, so
32+32+32+4 == 100.
Register 100 is used as the integer condition code register.
Register 101 is used as the soft frame pointer register. */
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (2 preceding siblings ...)
2004-05-02 0:15 ` [Bug target/15247] " pinskia at gcc dot gnu dot org
@ 2004-05-02 0:23 ` pinskia at gcc dot gnu dot org
2004-05-02 0:24 ` pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-02 0:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-02 00:23 -------
Or it means that it does not pass the correct option to gas.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (3 preceding siblings ...)
2004-05-02 0:23 ` pinskia at gcc dot gnu dot org
@ 2004-05-02 0:24 ` pinskia at gcc dot gnu dot org
2004-05-02 0:50 ` [Bug c/15247] " dank at kegel dot com
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-02 0:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-02 00:23 -------
Can you provide how you bootstrapped and also the output of "gcc -v options"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (4 preceding siblings ...)
2004-05-02 0:24 ` pinskia at gcc dot gnu dot org
@ 2004-05-02 0:50 ` dank at kegel dot com
2004-05-02 0:54 ` [Bug target/15247] " pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-02 0:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-02 00:50 -------
Here's how I configured the bootstrap gcc:
../gcc-3.4.0/configure --target=sparc64-unknown-linux-gnu
--host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2
--with-local-prefix=/opt/crosstool/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/sparc64-unknown-linux-gnu
--disable-multilib --with-newlib --disable-multilib --with-cpu=ultrasparc3
--without-headers --disable-nls --enable-threads=no --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c --disable-shared
Here's the output of 'gcc -v options' (hmm, I must misunderstand what you wanted):
sparc64-unknown-linux-gnu-gcc -v options
sparc64-unknown-linux-gnu-gcc: options: No such file or directory
Reading specs from
/opt/crosstool/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/lib/gcc/sparc64-unknown-linux-gnu/3.4.0/specs
Configured with:
/home/dank/wk/crosstool-0.28-rc9/build/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/gcc-3.4.0/configure
--target=sparc64-unknown-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2
--with-local-prefix=/opt/crosstool/sparc64-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/sparc64-unknown-linux-gnu
--disable-multilib --with-newlib --disable-multilib --with-cpu=ultrasparc3
--without-headers --disable-nls --enable-threads=no --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c --disable-shared
Thread model: single
gcc version 3.4.0
Full log is online at http://kegel.com/crosstool/pr15247.txt.gz
To reproduce:
wget http://kegel.com/crosstool/crosstool-0.28-rc10.tar.gz
tar -xzvf crosstool-0.28-rc10.tar.gz
cd crosstool-0.28-rc10
sudo mkdir -p /opt/crosstool
sudo chown $USER /opt/crosstool
sh demo-sparc64.sh
Jakub's been dealing with these, so I'm cc'ing him on this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
Component|target |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (5 preceding siblings ...)
2004-05-02 0:50 ` [Bug c/15247] " dank at kegel dot com
@ 2004-05-02 0:54 ` pinskia at gcc dot gnu dot org
2004-05-02 5:41 ` dank at kegel dot com
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-02 0:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-02 00:54 -------
"options" == options to compile the file.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (6 preceding siblings ...)
2004-05-02 0:54 ` [Bug target/15247] " pinskia at gcc dot gnu dot org
@ 2004-05-02 5:41 ` dank at kegel dot com
2004-05-02 5:50 ` ebotcazou at gcc dot gnu dot org
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-02 5:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-02 05:41 -------
Created an attachment (id=6211)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6211&action=view)
Log of real gcc command that failed, rerun with -v
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (7 preceding siblings ...)
2004-05-02 5:41 ` dank at kegel dot com
@ 2004-05-02 5:50 ` ebotcazou at gcc dot gnu dot org
2004-05-02 6:40 ` ebotcazou at gcc dot gnu dot org
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-05-02 5:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (8 preceding siblings ...)
2004-05-02 5:50 ` ebotcazou at gcc dot gnu dot org
@ 2004-05-02 6:40 ` ebotcazou at gcc dot gnu dot org
2004-05-02 7:54 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-05-02 6:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2004-05-02 06:40 -------
I'd find it surprising that gas gets line numbers wrong. So it appears to be
complaining about
174 fmovdg %fcc1, %f32, %f10
which is fully valid as far as I know. 'fmovsg' would be problematic.
Could you manually reduce the assembly file so as to narrow down the problem to
a single line?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (9 preceding siblings ...)
2004-05-02 6:40 ` ebotcazou at gcc dot gnu dot org
@ 2004-05-02 7:54 ` jakub at gcc dot gnu dot org
2004-05-02 19:06 ` dank at kegel dot com
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-05-02 7:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-05-02 07:54 -------
What binutils did you use?
I certainly cannot reproduce this with current CVS binutils.
Make sure you have:
2004-04-20 Jakub Jelinek <jakub@redhat.com>
* sparc-opc.c (fmoviccx, fmovfccx, fmovccx): Define.
(fmovicc, fmovfcc, fmovcc): Remove fpsize argument, change opcode to
suffix. Use fmov*x macros, create all 3 fpsize variants in one
macro. Adjust all users.
opcodes patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (10 preceding siblings ...)
2004-05-02 7:54 ` jakub at gcc dot gnu dot org
@ 2004-05-02 19:06 ` dank at kegel dot com
2004-05-25 22:11 ` funtoos at yahoo dot com
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-02 19:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-02 19:06 -------
I am using binutils-2.15.90.0.3. Your patch seems to have solved my problem.
So I guess my bug report was invalid. Sorry for the noise,
and thanks for the help!
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (11 preceding siblings ...)
2004-05-02 19:06 ` dank at kegel dot com
@ 2004-05-25 22:11 ` funtoos at yahoo dot com
2004-05-26 3:58 ` funtoos at yahoo dot com
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: funtoos at yahoo dot com @ 2004-05-25 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From funtoos at yahoo dot com 2004-05-25 00:48 -------
How do I get the 2004-04-20 opcodes patch that Jakub mentioned? I get same
errors from binutils 2.15.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (12 preceding siblings ...)
2004-05-25 22:11 ` funtoos at yahoo dot com
@ 2004-05-26 3:58 ` funtoos at yahoo dot com
2004-05-26 4:17 ` dank at kegel dot com
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: funtoos at yahoo dot com @ 2004-05-26 3:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From funtoos at yahoo dot com 2004-05-25 03:05 -------
How do I get the 2004-04-20 opcodes patch that Jakub mentioned? I get same
errors from binutils 2.15.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |funtoos at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (13 preceding siblings ...)
2004-05-26 3:58 ` funtoos at yahoo dot com
@ 2004-05-26 4:17 ` dank at kegel dot com
2005-08-04 1:36 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: dank at kegel dot com @ 2004-05-26 4:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dank at kegel dot com 2004-05-25 05:15 -------
>From binutils cvs, i.e.
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/opcodes/sparc-opc.c.diff?r1=1.9&r2=1.10&cvsroot=src
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (14 preceding siblings ...)
2004-05-26 4:17 ` dank at kegel dot com
@ 2005-08-04 1:36 ` pinskia at gcc dot gnu dot org
2005-08-04 1:58 ` aaron_williams at net dot com
2005-08-04 13:14 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04 1:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 01:36 -------
*** Bug 23222 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |aaronw at net dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (15 preceding siblings ...)
2005-08-04 1:36 ` pinskia at gcc dot gnu dot org
@ 2005-08-04 1:58 ` aaron_williams at net dot com
2005-08-04 13:14 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: aaron_williams at net dot com @ 2005-08-04 1:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aaron_williams at net dot com 2005-08-04 01:58 -------
Subject: Re: gas complains "There are only 32 single precision
f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
I'm not sure that this is the same bug since the bug indicates it's a
bug in binutils. I am running a version of binutils that has the fix
and am still experiencing this problem. I am running with binutils 2.16.1.
-Aaron
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug target/15247] gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c
2004-05-02 0:04 [Bug c/15247] New: gas complains "There are only 32 single precision f registers; [0-31]" when compiling glibc-2.3.2/math/dosincos.c dank at kegel dot com
` (16 preceding siblings ...)
2005-08-04 1:58 ` aaron_williams at net dot com
@ 2005-08-04 13:14 ` pinskia at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-04 13:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 13:14 -------
*** Bug 23222 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15247
^ permalink raw reply [flat|nested] 19+ messages in thread