* [Bug c/50683] GCC fails to build MPFR 3.1.0 on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
@ 2011-10-09 23:27 ` lfousse at debian dot org
2011-10-10 9:43 ` [Bug target/50683] " rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: lfousse at debian dot org @ 2011-10-09 23:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
--- Comment #1 from Laurent Fousse <lfousse at debian dot org> 2011-10-09 23:26:43 UTC ---
gcc fails to build MPFR 3.1.0 on sparc. You can get a full build log from:
http://bugs.debian.org/644552
This new release of MPFR introduces TLS support. The build is successful when
building withouth TLS support, or when using -O0 instead of -O3.
When trying version 4.4.6 (Debian 4.4.6-11) the same tests fail. When building
with version 4.5.3 (Debian 4.5.3-9) the same tests fail except for tsqrt which
passes correctly.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC fails to build MPFR 3.1.0 on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
2011-10-09 23:27 ` [Bug c/50683] " lfousse at debian dot org
@ 2011-10-10 9:43 ` rguenth at gcc dot gnu.org
2011-10-10 20:16 ` [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly " pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 9:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-10-10
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-10 09:43:16 UTC ---
We need a testcase.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
2011-10-09 23:27 ` [Bug c/50683] " lfousse at debian dot org
2011-10-10 9:43 ` [Bug target/50683] " rguenth at gcc dot gnu.org
@ 2011-10-10 20:16 ` pinskia at gcc dot gnu.org
2011-10-16 11:25 ` ebotcazou at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-10-10 20:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-10-10 20:15:24 UTC ---
Most likely related to bug 50691.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
` (2 preceding siblings ...)
2011-10-10 20:16 ` [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly " pinskia at gcc dot gnu.org
@ 2011-10-16 11:25 ` ebotcazou at gcc dot gnu.org
2011-10-16 14:45 ` ebotcazou at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-16 11:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
CC| |ebotcazou at gcc dot
| |gnu.org
AssignedTo|unassigned at gcc dot |ebotcazou at gcc dot
|gnu.org |gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-16 11:25:03 UTC ---
Investigating.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
` (3 preceding siblings ...)
2011-10-16 11:25 ` ebotcazou at gcc dot gnu.org
@ 2011-10-16 14:45 ` ebotcazou at gcc dot gnu.org
2011-10-17 1:53 ` davem at davemloft dot net
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-16 14:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davem at davemloft dot net
--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-16 14:45:36 UTC ---
Ugh, annoying linker relaxation bug. The compiler correctly generates:
add %l7, %l3, %l3, %tgd_add(__gmpfr_flags)
[...]
call __tls_get_addr, %tgd_call(__gmpfr_flags)
mov %l3, %o0
ld [%o0], %g1
but the linker turns this into:
0x00014d14 <+504>: add %g7, %o0, %o0
0x00014d18 <+508>: mov %l3, %o0
0x00014d1c <+512>: ld [ %o0 ], %g1
so segfault on the load.
Filed as http://sourceware.org/bugzilla/show_bug.cgi?id=13301 for the linker.
Should we put a workaround in the compiler?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
` (4 preceding siblings ...)
2011-10-16 14:45 ` ebotcazou at gcc dot gnu.org
@ 2011-10-17 1:53 ` davem at davemloft dot net
2011-10-17 17:41 ` ebotcazou at gcc dot gnu.org
2011-10-19 7:01 ` ebotcazou at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: davem at davemloft dot net @ 2011-10-17 1:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
--- Comment #6 from David S. Miller <davem at davemloft dot net> 2011-10-17 01:52:02 UTC ---
I would suggest against a gcc workaround, let's just fix binutils.
I have posted a fix to the binutils list for testing.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
` (5 preceding siblings ...)
2011-10-17 1:53 ` davem at davemloft dot net
@ 2011-10-17 17:41 ` ebotcazou at gcc dot gnu.org
2011-10-19 7:01 ` ebotcazou at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-17 17:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-17 17:40:30 UTC ---
> I would suggest against a gcc workaround, let's just fix binutils.
> I have posted a fix to the binutils list for testing.
OK, I don't have a strong opinion. What do the Debian folks think about it?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/50683] GCC compiles MPFR 3.1.0 wrongly on sparc
2011-10-09 23:21 [Bug c/50683] New: GCC fails to build MPFR 3.1.0 on sparc lfousse at debian dot org
` (6 preceding siblings ...)
2011-10-17 17:41 ` ebotcazou at gcc dot gnu.org
@ 2011-10-19 7:01 ` ebotcazou at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-19 7:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50683
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WORKSFORME
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-19 07:00:06 UTC ---
The problem will be fixed in the upcoming binutils 2.22 release.
^ permalink raw reply [flat|nested] 9+ messages in thread