public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
@ 2005-10-27 15:36 ` aoliva at gcc dot gnu dot org
  2005-11-09 20:13 ` aoliva at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-10-27 15:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

aoliva at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aoliva at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-09-24 17:08:21         |2005-10-27 15:36:03
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
  2005-10-27 15:36 ` [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread aoliva at gcc dot gnu dot org
@ 2005-11-09 20:13 ` aoliva at gcc dot gnu dot org
  2005-11-09 20:57 ` aoliva at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-11-09 20:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from aoliva at gcc dot gnu dot org  2005-11-09 20:13 -------
Subject: Bug 4372

Author: aoliva
Date: Wed Nov  9 20:13:41 2005
New Revision: 106703

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106703
Log:
PR other/4372
* tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
(TREE_DEPRECATED): Adjust comment.  Check for a DECL.
* c-common.c (handle_weakref_attribute): New.
(c_common_attribute_table): Add weakref.
* configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
in the assembler.
* configure, config.in: Rebuilt.
* defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
* doc/extend.texi: Document weakref attribute.
* varasm.c (ultimate_transparent_alias_target): New
(assemble_name): Use it.
(weak_finish_1): Split out of...
(weak_finish): ... and deal with weakrefs in...
(weakref_targets): ... new list.
(globalize_decl): Clean up weakref_targets.
(do_assemble_alias): Handle weakrefs.
(finish_aliases_1): Do not reject weakrefs to external symbols.
(assemble_alias): Handle weakrefs.

Added:
    trunk/gcc/testsuite/gcc.dg/attr-weakref-1.c
    trunk/gcc/testsuite/gcc.dg/attr-weakref-1a.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/config.in
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/gcc/defaults.h
    trunk/gcc/doc/extend.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.old-deja/g++.abi/vtable2.C
    trunk/gcc/tree.h
    trunk/gcc/varasm.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
  2005-10-27 15:36 ` [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread aoliva at gcc dot gnu dot org
  2005-11-09 20:13 ` aoliva at gcc dot gnu dot org
@ 2005-11-09 20:57 ` aoliva at gcc dot gnu dot org
  2005-11-09 20:58 ` aoliva at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-11-09 20:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from aoliva at gcc dot gnu dot org  2005-11-09 20:57 -------
Subject: Bug 4372

Author: aoliva
Date: Wed Nov  9 20:57:30 2005
New Revision: 106704

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106704
Log:
gcc/ChangeLog:
PR other/4372
* gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
gthr-tpf.h: Define __gthrw.  For all identifiers that might
be weak, introduce weakrefs or non-weak aliases with __gthrw,
and prefix all uses with __ghtrw.
libobjc/ChangeLog:
PR other/4372
* thr-objc.c (_XOPEN_SOURCE): Define.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gthr-dce.h
    trunk/gcc/gthr-posix.h
    trunk/gcc/gthr-posix95.h
    trunk/gcc/gthr-solaris.h
    trunk/gcc/gthr-tpf.h
    trunk/libobjc/ChangeLog
    trunk/libobjc/thr-objc.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-11-09 20:57 ` aoliva at gcc dot gnu dot org
@ 2005-11-09 20:58 ` aoliva at gcc dot gnu dot org
  2005-11-10  2:47 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-11-09 20:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from aoliva at gcc dot gnu dot org  2005-11-09 20:58 -------
Fixed


-- 

aoliva at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2005-11-09 20:58 ` aoliva at gcc dot gnu dot org
@ 2005-11-10  2:47 ` pinskia at gcc dot gnu dot org
  2005-11-10 13:14 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-10  2:47 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2005-11-10  2:47 ` pinskia at gcc dot gnu dot org
@ 2005-11-10 13:14 ` jakub at gcc dot gnu dot org
  2005-12-09  4:56 ` pinskia at gcc dot gnu dot org
  2006-10-04 21:39 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-11-10 13:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jakub at gcc dot gnu dot org  2005-11-10 13:14 -------
Subject: Bug 4372

Author: jakub
Date: Thu Nov 10 13:14:05 2005
New Revision: 106735

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106735
Log:
        PR other/4372
        * varasm.c (assemble_alias): Use %q+D in the error
        message instead of %J and %qD.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/varasm.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2005-11-10 13:14 ` jakub at gcc dot gnu dot org
@ 2005-12-09  4:56 ` pinskia at gcc dot gnu dot org
  2006-10-04 21:39 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-09  4:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2005-12-09 04:56 -------
*** Bug 14952 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rassahah at neofonie dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2005-12-09  4:56 ` pinskia at gcc dot gnu dot org
@ 2006-10-04 21:39 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-04 21:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from pinskia at gcc dot gnu dot org  2006-10-04 21:39 -------
*** Bug 29350 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam dot buchbinder at gmail
                   |                            |dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <20010920172600.4372.carlo@alinoe.com>
  2003-08-04  1:14 ` pinskia at physics dot uc dot edu
  2003-08-04  4:07 ` pme at gcc dot gnu dot org
@ 2003-11-07 14:57 ` carlo at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-11-07 14:57 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


carlo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-11-05 07:54:39         |2003-11-07 14:57:51
               date|                            |


------- Additional Comments From carlo at gcc dot gnu dot org  2003-11-07 14:57 -------
Still in mainline.
Can't we just remove the #pragma's from bits/gthr-default.h?
That was the suggestion solution in this thread and it
makes sense to me.  If not, then please just close this PR
with a WONTFIX.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <20010920172600.4372.carlo@alinoe.com>
  2003-08-04  1:14 ` pinskia at physics dot uc dot edu
@ 2003-08-04  4:07 ` pme at gcc dot gnu dot org
  2003-11-07 14:57 ` carlo at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: pme at gcc dot gnu dot org @ 2003-08-04  4:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372



------- Additional Comments From pme at gcc dot gnu dot org  2003-08-04 04:07 -------
Not just "not in libc" but "not in any of the standard libraries against which
a program is linked".


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread
       [not found] <20010920172600.4372.carlo@alinoe.com>
@ 2003-08-04  1:14 ` pinskia at physics dot uc dot edu
  2003-08-04  4:07 ` pme at gcc dot gnu dot org
  2003-11-07 14:57 ` carlo at gcc dot gnu dot org
  2 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-04  1:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4372


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-04 01:14 -------
This only happens when pthread_* is not in libc and targets where weak is supported.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-10-04 21:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-4372-794@http.gcc.gnu.org/bugzilla/>
2005-10-27 15:36 ` [Bug other/4372] #pragma weak pthread* inclusion causes applications to crash without a linker error when one forgets to link with -lpthread aoliva at gcc dot gnu dot org
2005-11-09 20:13 ` aoliva at gcc dot gnu dot org
2005-11-09 20:57 ` aoliva at gcc dot gnu dot org
2005-11-09 20:58 ` aoliva at gcc dot gnu dot org
2005-11-10  2:47 ` pinskia at gcc dot gnu dot org
2005-11-10 13:14 ` jakub at gcc dot gnu dot org
2005-12-09  4:56 ` pinskia at gcc dot gnu dot org
2006-10-04 21:39 ` pinskia at gcc dot gnu dot org
     [not found] <20010920172600.4372.carlo@alinoe.com>
2003-08-04  1:14 ` pinskia at physics dot uc dot edu
2003-08-04  4:07 ` pme at gcc dot gnu dot org
2003-11-07 14:57 ` carlo at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).