public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/31844]  New: Incorrect source locations and number of warnings for unsupported visibility attribute
@ 2007-05-06 15:09 davek at gcc dot gnu dot org
  2007-05-06 15:10 ` [Bug middle-end/31844] " davek at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: davek at gcc dot gnu dot org @ 2007-05-06 15:09 UTC (permalink / raw)
  To: gcc-bugs

This testcase:

/gnu $ cat -n vis.cpp
     1  int j2 __attribute__ ((visibility ("hidden")));
     2
     3
     4
     5
     6
     7
     8  int __attribute__ ((visibility ("protected"))) foo (int bar)
     9  {
    10    return bar + 3;
    11  }
    12
    13
    14
    15
    16
    17
    18
    19  int i __attribute__ ((visibility ("hidden")));
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30  int j __attribute__ ((visibility ("default")));
    31
    32
    33

  Produces seemingly mis-located warnings, both on recent trunk:

/gnu $ g++ -S vis.cpp -o vis.asm
vis.cpp: In function 'int foo(int)':
vis.cpp:11: warning: visibility attribute not supported in this configuration;
ignored
vis.cpp: At global scope:
vis.cpp:29: warning: visibility attribute not supported in this configuration;
ignored
vis.cpp:29: warning: visibility attribute not supported in this configuration;
ignored
/gnu $ g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/gcc/configure --prefix=/gnu/install -v
--enable-languages=c,c++,java
Thread model: single
gcc version 4.3.0 20070421 (experimental)

  ... and the 4.2.0 RC3 tarball:


/gnu $ g++ -S vis.cpp -o vis.asm
vis.cpp: In function 'int foo(int)':
vis.cpp:11: warning: visibility attribute not supported in this configuration;
ignored
vis.cpp: At global scope:
vis.cpp:29: warning: visibility attribute not supported in this configuration;
ignored
vis.cpp:29: warning: visibility attribute not supported in this configuration;
ignored
/gnu $ g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/rc2/gcc-4.2.0-20070501/configure
--prefix=/gnu/install/bin --with-gmp=/usr --with-mpfr=/usr -v
Thread model: single
gcc version 4.2.0 20070501 (prerelease)

(Wasn't sure which version to file this against)


-- 
           Summary: Incorrect source locations and number of warnings for
                    unsupported visibility attribute
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: davek at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


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

* [Bug middle-end/31844] Incorrect source locations and number of warnings for unsupported visibility attribute
  2007-05-06 15:09 [Bug middle-end/31844] New: Incorrect source locations and number of warnings for unsupported visibility attribute davek at gcc dot gnu dot org
@ 2007-05-06 15:10 ` davek at gcc dot gnu dot org
  2009-08-09 22:04 ` davek at gcc dot gnu dot org
  2010-02-17 15:29 ` davek at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: davek at gcc dot gnu dot org @ 2007-05-06 15:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from davek at gcc dot gnu dot org  2007-05-06 16:10 -------
Created an attachment (id=13516)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13516&action=view)
Testcase as described in summary.

Not preprocessed, but this testcase is not affected by preprocessing anyway.


-- 


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


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

* [Bug middle-end/31844] Incorrect source locations and number of warnings for unsupported visibility attribute
  2007-05-06 15:09 [Bug middle-end/31844] New: Incorrect source locations and number of warnings for unsupported visibility attribute davek at gcc dot gnu dot org
  2007-05-06 15:10 ` [Bug middle-end/31844] " davek at gcc dot gnu dot org
@ 2009-08-09 22:04 ` davek at gcc dot gnu dot org
  2010-02-17 15:29 ` davek at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: davek at gcc dot gnu dot org @ 2009-08-09 22:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from davek at gcc dot gnu dot org  2009-08-09 22:03 -------
Still present, although the location has slipped slightly for the warnings on
the function declarations with no body.

$ g++ -S vis.cpp -o vis.asm
vis.cpp: In function 'int foo(int)':
vis.cpp:11: warning: visibility attribute not supported in this configuration;
i
gnored
vis.cpp: At global scope:
vis.cpp:30: warning: visibility attribute not supported in this configuration;
i
gnored
vis.cpp:30: warning: visibility attribute not supported in this configuration;
i
gnored

  Confirming, but lowering the severity and priority.


-- 

davek at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Priority|P3                          |P5
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-09 22:03:51
               date|                            |
            Version|4.2.0                       |4.5.0


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


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

* [Bug middle-end/31844] Incorrect source locations and number of warnings for unsupported visibility attribute
  2007-05-06 15:09 [Bug middle-end/31844] New: Incorrect source locations and number of warnings for unsupported visibility attribute davek at gcc dot gnu dot org
  2007-05-06 15:10 ` [Bug middle-end/31844] " davek at gcc dot gnu dot org
  2009-08-09 22:04 ` davek at gcc dot gnu dot org
@ 2010-02-17 15: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-02-17 15:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from davek at gcc dot gnu dot org  2010-02-17 15:29 -------
Just reconfirmed with recent pre-4.5.0 HEAD:

$ /gnu/gcc/install-pr42811-3/opt/gcc-tools/bin/g++-4.exe  -S vis.cpp -o vis.asm
vis.cpp:30:47: warning: visibility attribute not supported in this
configuration; ignored
vis.cpp: In function 'int foo(int)':
vis.cpp:11:1: warning: visibility attribute not supported in this
configuration; ignored
vis.cpp: At global scope:
vis.cpp:30:47: warning: visibility attribute not supported in this
configuration; ignored

Still trivial.


-- 


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


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-06 15:09 [Bug middle-end/31844] New: Incorrect source locations and number of warnings for unsupported visibility attribute davek at gcc dot gnu dot org
2007-05-06 15:10 ` [Bug middle-end/31844] " davek at gcc dot gnu dot org
2009-08-09 22:04 ` davek at gcc dot gnu dot org
2010-02-17 15: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).