* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
@ 2009-12-26 15:00 ` mikpe at it dot uu dot se
2009-12-27 11:37 ` ramana at gcc dot gnu dot org
` (17 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-26 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mikpe at it dot uu dot se 2009-12-26 14:59 -------
Reverting r155171 allows gcc-4.4-20091215 to build a working libjava again.
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155171
Log:
2009-12-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/42263
2009-08-11 Andrew Haley <aph@redhat.com>
* config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
I suspect ARM's "static libgcc has more symbols than the shared one" bug is
involved here (see PR40133 and PR40134).
--
mikpe at it dot uu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ramana dot radhakrishnan at
| |arm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
2009-12-26 15:00 ` [Bug target/42503] " mikpe at it dot uu dot se
@ 2009-12-27 11:37 ` ramana at gcc dot gnu dot org
2009-12-27 11:59 ` paolo dot carlini at oracle dot com
` (16 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-27 11:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ramana at gcc dot gnu dot org 2009-12-27 11:37 -------
The correct fix is potentially a version of the fix for PR40133 / PR40134 for
arm-linux-gnueabi. Looking at this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
2009-12-26 15:00 ` [Bug target/42503] " mikpe at it dot uu dot se
2009-12-27 11:37 ` ramana at gcc dot gnu dot org
@ 2009-12-27 11:59 ` paolo dot carlini at oracle dot com
2009-12-27 12:18 ` paolo dot carlini at oracle dot com
` (15 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-27 11:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2009-12-27 11:59 -------
Yes, unless Matthias has a good explanation and fix for what's going on, those
changes should be immediately reverted, I will do that anyway in 3-4 days max.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doko at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (2 preceding siblings ...)
2009-12-27 11:59 ` paolo dot carlini at oracle dot com
@ 2009-12-27 12:18 ` paolo dot carlini at oracle dot com
2009-12-27 13:59 ` mikpe at it dot uu dot se
` (14 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-27 12:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2009-12-27 12:18 -------
Note, however, that something is definitely wrong in the analysis: PR40133 and
PR40134 have been fixed **only in mainline**, thus per se those changes cannot
be involved in a breakage involving 4_4-branch. As far as libstdc++ is
concerned, in particular, in 4_4-branch we are not trying to do link-test
anywhere, we cannot make mistakes about static libgcc symbols. Still, I'm
seeing something puzzling and alarming here from the point of view of those
issues and I would recommend Matthias to also have a look.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (3 preceding siblings ...)
2009-12-27 12:18 ` paolo dot carlini at oracle dot com
@ 2009-12-27 13:59 ` mikpe at it dot uu dot se
2009-12-27 14:41 ` paolo dot carlini at oracle dot com
` (13 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-27 13:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mikpe at it dot uu dot se 2009-12-27 13:59 -------
(In reply to comment #4)
> Note, however, that something is definitely wrong in the analysis: PR40133 and
> PR40134 have been fixed **only in mainline**, thus per se those changes cannot
> be involved in a breakage involving 4_4-branch.
I believe it's the *absence* of the PR40134 fix on 4_4-branch that's causing
the backport of __sync_synchronize() support to regress. I'm currently testing
4.4-20091215 with relevant bits of PR40134 backported (r151568 + r152975): that
cured the build failure, but the testsuite run is not yet finished.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (4 preceding siblings ...)
2009-12-27 13:59 ` mikpe at it dot uu dot se
@ 2009-12-27 14:41 ` paolo dot carlini at oracle dot com
2009-12-28 0:46 ` [Bug target/42503] [4.4 Regression] " mikpe at it dot uu dot se
` (12 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-27 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from paolo dot carlini at oracle dot com 2009-12-27 14:41 -------
Thus you mean only 40134 is involved. Because 40133 *assumes* that on the
relevant linux targets there are no surprises with shared vs static libgcc.
In general, I want to make sure nothing changes in the compiler-proper that
breaks the assumptions of 40133, which then would have to be reverted. For now
mainline seems still ok, I think Matthias tests regularly those targets.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (5 preceding siblings ...)
2009-12-27 14:41 ` paolo dot carlini at oracle dot com
@ 2009-12-28 0:46 ` mikpe at it dot uu dot se
2009-12-28 9:40 ` doko at ubuntu dot com
` (11 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-28 0:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mikpe at it dot uu dot se 2009-12-28 00:46 -------
(In reply to comment #5)
> I believe it's the *absence* of the PR40134 fix on 4_4-branch that's causing
> the backport of __sync_synchronize() support to regress. I'm currently testing
> 4.4-20091215 with relevant bits of PR40134 backported (r151568 + r152975): that
> cured the build failure, but the testsuite run is not yet finished.
The testsuite run now finished with no regressions compared to 4.4 snapshots
from before this regression.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (6 preceding siblings ...)
2009-12-28 0:46 ` [Bug target/42503] [4.4 Regression] " mikpe at it dot uu dot se
@ 2009-12-28 9:40 ` doko at ubuntu dot com
2009-12-28 10:37 ` paolo dot carlini at oracle dot com
` (10 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: doko at ubuntu dot com @ 2009-12-28 9:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from doko at ubuntu dot com 2009-12-28 09:40 -------
Created an attachment (id=19399)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19399&action=view)
pr40134 for 4.4
Mikael's analysis seems to be right; the __sync_synchronise backport requires
the backport of pr40134. I'm attaching the patch that I do apply for the Debian
gcc-4.4 build, based on Jakub's initial patch including the powerpc chunk and
the bits for arm and parisc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (7 preceding siblings ...)
2009-12-28 9:40 ` doko at ubuntu dot com
@ 2009-12-28 10:37 ` paolo dot carlini at oracle dot com
2009-12-28 12:11 ` mikpe at it dot uu dot se
` (9 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-28 10:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from paolo dot carlini at oracle dot com 2009-12-28 10:37 -------
Good. To clarify, I have no personal objections to that specific kind of
backport to 4_4-branch... seems a bit late, but still, since the basic issue is
a wrong-code... up to the maintainers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (8 preceding siblings ...)
2009-12-28 10:37 ` paolo dot carlini at oracle dot com
@ 2009-12-28 12:11 ` mikpe at it dot uu dot se
2009-12-28 21:41 ` ramana at gcc dot gnu dot org
` (8 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-28 12:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from mikpe at it dot uu dot se 2009-12-28 12:11 -------
Matthias, your Debian patch includes the following, which is not part of the
trunk fix for PR40134 but instead appears to be a fragment from an early
version of the PR41175/PR40677 fix (which seems to depend on PR40134):
--- a/src/gcc/config/rs6000/rs6000.c (revision 151558)
+++ b/src/gcc/config/rs6000/rs6000.c (working copy)
@@ -15869,7 +15869,7 @@
no_global_regs_above (int first, bool gpr)
{
int i;
- for (i = first; i < gpr ? 32 : 64 ; i++)
+ for (i = first; i < (gpr ? 32 : 64) ; i++)
if (global_regs[i])
return false;
return true;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (9 preceding siblings ...)
2009-12-28 12:11 ` mikpe at it dot uu dot se
@ 2009-12-28 21:41 ` ramana at gcc dot gnu dot org
2009-12-29 10:24 ` ramana at gcc dot gnu dot org
` (7 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-28 21:41 UTC (permalink / raw)
To: gcc-bugs
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-28 21:40:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (10 preceding siblings ...)
2009-12-28 21:41 ` ramana at gcc dot gnu dot org
@ 2009-12-29 10:24 ` ramana at gcc dot gnu dot org
2009-12-29 13:05 ` mikpe at it dot uu dot se
` (6 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-12-29 10:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from ramana at gcc dot gnu dot org 2009-12-29 10:24 -------
(In reply to comment #7)
> (In reply to comment #5)
> > I believe it's the *absence* of the PR40134 fix on 4_4-branch that's causing
> > the backport of __sync_synchronize() support to regress. I'm currently testing
> > 4.4-20091215 with relevant bits of PR40134 backported (r151568 + r152975): that
> > cured the build failure, but the testsuite run is not yet finished.
>
> The testsuite run now finished with no regressions compared to 4.4 snapshots
> from before this regression.
>
Can you or Matthias submit this patch to gcc-patches@gcc.gnu.org ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (11 preceding siblings ...)
2009-12-29 10:24 ` ramana at gcc dot gnu dot org
@ 2009-12-29 13:05 ` mikpe at it dot uu dot se
2009-12-29 13:34 ` debian-gcc at lists dot debian dot org
` (5 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-29 13:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from mikpe at it dot uu dot se 2009-12-29 13:05 -------
Created an attachment (id=19413)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19413&action=view)
pr40134 generic + arm bits
This is the version of the PR40134 patch I intend to submit, unless Matthias
wants to submit his version. This version only adds t-slibgcc-libgcc support
and enables it for arm-linux-gnueabi. Mainline and debian also enables it for
some powerpc and hppa targets, I'm excluding those bits to avoid involving
other targets than arm at this point. (It's easy to enable other targets later
on.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (12 preceding siblings ...)
2009-12-29 13:05 ` mikpe at it dot uu dot se
@ 2009-12-29 13:34 ` debian-gcc at lists dot debian dot org
2009-12-29 23:15 ` mikpe at it dot uu dot se
` (4 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2009-12-29 13:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from debian-gcc at lists dot debian dot org 2009-12-29 13:34 -------
looks fine to me (but I cannot approve). I'm using this patch already for
package builds without seeing regressions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (13 preceding siblings ...)
2009-12-29 13:34 ` debian-gcc at lists dot debian dot org
@ 2009-12-29 23:15 ` mikpe at it dot uu dot se
2009-12-31 15:27 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2009-12-29 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from mikpe at it dot uu dot se 2009-12-29 23:15 -------
Patch submitted:
<http://gcc.gnu.org/ml/gcc-patches/2009-12/msg01192.html>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (14 preceding siblings ...)
2009-12-29 23:15 ` mikpe at it dot uu dot se
@ 2009-12-31 15:27 ` rguenth at gcc dot gnu dot org
2010-01-04 15:14 ` doko at gcc dot gnu dot org
` (2 subsequent siblings)
18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-31 15:27 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Target Milestone|--- |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (15 preceding siblings ...)
2009-12-31 15:27 ` rguenth at gcc dot gnu dot org
@ 2010-01-04 15:14 ` doko at gcc dot gnu dot org
2010-01-05 15:18 ` rguenth at gcc dot gnu dot org
2010-01-05 15:41 ` mikpe at it dot uu dot se
18 siblings, 0 replies; 20+ messages in thread
From: doko at gcc dot gnu dot org @ 2010-01-04 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from doko at gcc dot gnu dot org 2010-01-04 15:13 -------
Subject: Bug 42503
Author: doko
Date: Mon Jan 4 15:13:08 2010
New Revision: 155617
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155617
Log:
2010-01-04 Mikael Pettersson <mikpe@it.uu.se>
PR target/42503
Backport from mainline:
2009-09-09 Jakub Jelinek <jakub@redhat.com>
* config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
New variables.
(SHLIB_LINK, SHLIB_INSTALL): Use them.
* config/t-slibgcc-libgcc: New file.
2009-10-19 Matthias Klose <doko@ubuntu.com>
PR target/40134
* config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
Added:
branches/gcc-4_4-branch/gcc/config/t-slibgcc-libgcc
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/config.gcc
branches/gcc-4_4-branch/gcc/config/t-slibgcc-elf-ver
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (16 preceding siblings ...)
2010-01-04 15:14 ` doko at gcc dot gnu dot org
@ 2010-01-05 15:18 ` rguenth at gcc dot gnu dot org
2010-01-05 15:41 ` mikpe at it dot uu dot se
18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-05 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from rguenth at gcc dot gnu dot org 2010-01-05 15:17 -------
Is this fixed now?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread
* [Bug target/42503] [4.4 Regression] gcc-4.4-20091215 broke libjava on ARM
2009-12-25 13:57 [Bug target/42503] New: gcc-4.4-20091215 broke libjava on ARM mikpe at it dot uu dot se
` (17 preceding siblings ...)
2010-01-05 15:18 ` rguenth at gcc dot gnu dot org
@ 2010-01-05 15:41 ` mikpe at it dot uu dot se
18 siblings, 0 replies; 20+ messages in thread
From: mikpe at it dot uu dot se @ 2010-01-05 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from mikpe at it dot uu dot se 2010-01-05 15:41 -------
Fixed now, closing.
--
mikpe at it dot uu dot se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42503
^ permalink raw reply [flat|nested] 20+ messages in thread