public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/42904]  New: Attribute dllexport should imply externally_visible
@ 2010-01-30  2:20 d dot g dot gorbachev at gmail dot com
  2010-01-30  2:21 ` [Bug target/42904] " d dot g dot gorbachev at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: d dot g dot gorbachev at gmail dot com @ 2010-01-30  2:20 UTC (permalink / raw)
  To: gcc-bugs




-- 
           Summary: Attribute dllexport should imply externally_visible
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: d dot g dot gorbachev at gmail dot com
GCC target triplet: *-*-mingw32


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


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

* [Bug target/42904] Attribute dllexport should imply externally_visible
  2010-01-30  2:20 [Bug target/42904] New: Attribute dllexport should imply externally_visible d dot g dot gorbachev at gmail dot com
@ 2010-01-30  2:21 ` d dot g dot gorbachev at gmail dot com
  2010-05-17 17:02 ` davek at gcc dot gnu dot org
  2010-05-17 18:29 ` davek at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: d dot g dot gorbachev at gmail dot com @ 2010-01-30  2:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from d dot g dot gorbachev at gmail dot com  2010-01-30 02:21 -------
Created an attachment (id=19757)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19757&action=view)
Testcase

Produces "undefined reference to `_foo'" error.


-- 


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


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

* [Bug target/42904] Attribute dllexport should imply externally_visible
  2010-01-30  2:20 [Bug target/42904] New: Attribute dllexport should imply externally_visible d dot g dot gorbachev at gmail dot com
  2010-01-30  2:21 ` [Bug target/42904] " d dot g dot gorbachev at gmail dot com
@ 2010-05-17 17:02 ` davek at gcc dot gnu dot org
  2010-05-17 18:29 ` davek at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: davek at gcc dot gnu dot org @ 2010-05-17 17:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from davek at gcc dot gnu dot org  2010-05-17 17:02 -------
Yes, it certainly does, in fact it omits to compile any definition for 'foo'
whatsoever!

But isn't this the expected behaviour of using '-fwhole-program' on something
that is not the whole program?  I'm not sure if the option is supposed to be
suitable for use when building a shared library, I'll ask on the mailing list.


-- 

davek at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davek at gcc dot gnu dot org
      Known to work|                            |4.3.4


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


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

* [Bug target/42904] Attribute dllexport should imply externally_visible
  2010-01-30  2:20 [Bug target/42904] New: Attribute dllexport should imply externally_visible d dot g dot gorbachev at gmail dot com
  2010-01-30  2:21 ` [Bug target/42904] " d dot g dot gorbachev at gmail dot com
  2010-05-17 17:02 ` davek at gcc dot gnu dot org
@ 2010-05-17 18:29 ` davek at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: davek at gcc dot gnu dot org @ 2010-05-17 18:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from davek at gcc dot gnu dot org  2010-05-17 18:28 -------
Consensus seems to be that this is indeed "how it's meant to work", but that
figuring out which are the externally visible functions and marking them
automatically would be a nice enhancement that would make the -fwhole-program
option work on libraries, so I think we should do it.


-- 

davek at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |davek at gcc dot gnu dot org
                   |dot org                     |
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-17 18:28:38
               date|                            |


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


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

end of thread, other threads:[~2010-05-17 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-30  2:20 [Bug target/42904] New: Attribute dllexport should imply externally_visible d dot g dot gorbachev at gmail dot com
2010-01-30  2:21 ` [Bug target/42904] " d dot g dot gorbachev at gmail dot com
2010-05-17 17:02 ` davek at gcc dot gnu dot org
2010-05-17 18:29 ` davek 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).