Re: [parisc-linux] glibc is broken because of gcc

2007-06-13 Thread seb
On Tue, Jun 12, 2007 at 06:24:06PM -0400, John David Anglin wrote:
  Here is the reduced diff. I removed anything that is unrelated to hppa,
  C or anything.
  The diff is between -7 and -12.
  The diff is mere 300 lines long.
  The problem lies here.
 
 The odds are the problem lies in the change to varasm.c.

This patch is a part of PR20218.
4.1/4.2 PATCH: PR middle-end/20218: Can't use __attribute__ ((visibility 
(hidden))) to hide a symbol

I could remove this patch altogether. But I still wonder why this patch works
ok on other archs and not on hppa*.

Seb


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [parisc-linux] glibc is broken because of gcc

2007-06-13 Thread John David Anglin
 I could remove this patch altogether. But I still wonder why this patch works
 ok on other archs and not on hppa*.

hppa* does a deferred generation of plabels for indirect function calls.
I think this is affected by the change.  I don't recall exactly but there
may have been a followup patch to fix this.  Of course, this change isn't
in the 4.1 GCC tree.

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [parisc-linux] glibc is broken because of gcc

2007-06-13 Thread seb
On Wed, Jun 13, 2007 at 09:32:24AM -0400, John David Anglin wrote:
  I could remove this patch altogether. But I still wonder why this patch 
  works
  ok on other archs and not on hppa*.
 
 hppa* does a deferred generation of plabels for indirect function calls.
 I think this is affected by the change.  I don't recall exactly but there
 may have been a followup patch to fix this.  Of course, this change isn't
 in the 4.1 GCC tree.

Ok, thanks for the explanations. I just have to figure out what it means now 
;-).

Can I find this patch somewhere ? Is there any discussion on the ML ?
The patch was discussed near January of this year on the gcc ML.
 
 Dave
 -- 
 J. David Anglin  [EMAIL PROTECTED]
 National Research Council of Canada  (613) 990-0752 (FAX: 
 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [parisc-linux] glibc is broken because of gcc

2007-06-13 Thread Sébastien Bernard

[EMAIL PROTECTED] a écrit :

On Wed, Jun 13, 2007 at 09:32:24AM -0400, John David Anglin wrote:

I could remove this patch altogether. But I still wonder why this patch works
ok on other archs and not on hppa*.

hppa* does a deferred generation of plabels for indirect function calls.
I think this is affected by the change.  I don't recall exactly but there
may have been a followup patch to fix this.  Of course, this change isn't
in the 4.1 GCC tree.


Ok, thanks for the explanations. I just have to figure out what it means now 
;-).

Can I find this patch somewhere ? Is there any discussion on the ML ?
The patch was discussed near January of this year on the gcc ML.

Dave
--
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


Ok, I nailed it.
I removed PR20218 patch and generated a 4.1.2-12+b1 then build glibc.

Glibc build is ok now.
I think the hppa toolchain can move on and build the glibc-2.5-11 and 
then rebuild the portmap and all pie executable (pfeww... what a bug chain).


Seb

diff -r -u -b -B -w gcc-4.1-4.1.2-12/debian/changelog 
gcc-4.1-4.1.2-12+b1/debian/changelog
--- gcc-4.1-4.1.2-12/debian/changelog   2007-06-13 22:34:38.0 +0200
+++ gcc-4.1-4.1.2-12+b1/debian/changelog2007-06-13 12:44:48.0 
+0200
@@ -1,3 +1,9 @@
+gcc-4.1 (4.1.2-12+b1) unstable; urgency=low
+
+  * Revert 20218 patch that breaks gcc
+
+ -- Sebastien Bernard [EMAIL PROTECTED]  Wed, 13 Jun 2007 12:44:07 +0200
+
 gcc-4.1 (4.1.2-12) unstable; urgency=high
 
   * i386-biarch.dpatch: Update for the backport for PR target/31868.
diff -r -u -b -B -w gcc-4.1-4.1.2-12/debian/rules.patch 
gcc-4.1-4.1.2-12+b1/debian/rules.patch
--- gcc-4.1-4.1.2-12/debian/rules.patch 2007-06-13 22:34:38.0 +0200
+++ gcc-4.1-4.1.2-12+b1/debian/rules.patch  2007-06-13 12:45:06.0 
+0200
@@ -41,8 +41,6 @@
fastjar-version \
fastjar-doc \
libstdc++-doxygen \
-   pr20218 \
-   pr20218-mips \
pr31868 \
arm-libffi \
libffi-backport \
@@ -112,10 +110,6 @@
   debian_patches += pr25524-doc pr26885-doc gcc-4.1-x86-blended-doc 
libjava-backport-updates2
 endif
 
-ifneq (,$(filter $(DEB_TARGET_ARCH), amd64 i386 powerpc ppc64 sparc s390))
-  debian_patches += pr20218
-endif
-
 ifeq ($(with_libffi),yes)
   debian_patches += \
libffi-configure