[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-09 Thread skpgkp2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

--- Comment #17 from Sunil Pandey  ---
(In reply to H.J. Lu from comment #10)
> Created attachment 57906 [details]
> A patch
> 
> I am testing this.

This patch resolved my static testing issue.

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

--- Comment #16 from Andrew Pinski  ---
(In reply to Andrew Pinski from comment #15)
> (In reply to H.J. Lu from comment #14)
> > This issue is about how libgcc is used by libgfortran, not libgcc itself.
> 
> libgcc needs to be fixed too. NOT just libgfortran.
> 
> If you are going to change libgfortran, you might as well fix libgcc since
> libgfortran, libobjc and even ada libraries all need the same fix so why NOT
> fix it in libgcc instead. All of the libraries that use gthr* need to be
> fixed not just libgfortran.
> 
> *** This bug has been marked as a duplicate of bug 87189 ***

So will libphobos and libvtv. So fixing it once and for all in libgcc is much
better than fixing all other libraries.

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|NEW |RESOLVED

--- Comment #15 from Andrew Pinski  ---
(In reply to H.J. Lu from comment #14)
> This issue is about how libgcc is used by libgfortran, not libgcc itself.

libgcc needs to be fixed too. NOT just libgfortran.

If you are going to change libgfortran, you might as well fix libgcc since
libgfortran, libobjc and even ada libraries all need the same fix so why NOT
fix it in libgcc instead. All of the libraries that use gthr* need to be fixed
not just libgfortran.

*** This bug has been marked as a duplicate of bug 87189 ***

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

H.J. Lu  changed:

   What|Removed |Added

 Status|RESOLVED|NEW
 Resolution|DUPLICATE   |---

--- Comment #14 from H.J. Lu  ---
This issue is about how libgcc is used by libgfortran, not libgcc itself.

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

--- Comment #13 from Andrew Pinski  ---
(In reply to Bruno Haible from comment #11)
> (In reply to Andrew Pinski from comment #9)
> > Dup.
> > 
> > *** This bug has been marked as a duplicate of bug 87189 ***
> 
> This makes no sense to me:
> - I verified that https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 is
> fixed; therefore it ought to be marked as RESOLVED FIXED.
> - Whereas H.J. is seeing this bug here with GCC 13 and glibc 2.38.
> Therefore they cannot be duplicates of each other.

It is all the same issue. Just half of it was fixed in glibc, which is why PR
87189 seems to have been fixed but the gcc side was not fixed.

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #12 from Andrew Pinski  ---
(In reply to Bruno Haible from comment #11)
> (In reply to Andrew Pinski from comment #9)
> > Dup.
> > 
> > *** This bug has been marked as a duplicate of bug 87189 ***
> 
> This makes no sense to me:
> - I verified that https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 is
> fixed; therefore it ought to be marked as RESOLVED FIXED.
> - Whereas H.J. is seeing this bug here with GCC 13 and glibc 2.38.
> Therefore they cannot be duplicates of each other.

Yes it is all the same issue.

*** This bug has been marked as a duplicate of bug 78017 ***

[Bug libfortran/114646] libgfortran still doesn't define GTHREAD_USE_WEAK to 0 for newer glibc

2024-04-08 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114646

H.J. Lu  changed:

   What|Removed |Added

 Resolution|DUPLICATE   |---
 Status|RESOLVED|NEW
 Ever confirmed|0   |1
  Component|libgcc  |libfortran
Summary|libgcc's gthr.h still   |libgfortran still doesn't
   |defines GTHREAD_USE_WEAK to |define GTHREAD_USE_WEAK to
   |1 for newer glibc   |0 for newer glibc