[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-06 Thread rich at phekda dot gotadsl dot co dot uk
--- Comment #6 from rich at phekda dot gotadsl dot co dot uk 2007-01-06 14:54 --- I've repeated my testing with binutils 070103 (from snapshot from web page) and gcc 4.3.0 20070104 from svn trunk (svn revision 120449). Using hidden visibility with the attribute before the function

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-06 Thread rich at phekda dot gotadsl dot co dot uk
-- rich at phekda dot gotadsl dot co dot uk changed: What|Removed |Added Severity|minor |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30361

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-03 21:43 --- Note that the attribute is attached to the return type of the function f, not the function declaration itself. I think this means that the hidden visibility is applied to the type, not the function, which is

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-03 Thread rich at phekda dot gotadsl dot co dot uk
--- Comment #2 from rich at phekda dot gotadsl dot co dot uk 2007-01-03 21:45 --- Created an attachment (id=12853) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12853action=view) A test case When I compile the attached test case, I get: [EMAIL PROTECTED] test-cases]$ make g++ -W

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-01-03 21:45 --- Read: http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Attribute-Syntax.html Which describes the syntax. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30361

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-03 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-01-03 21:46 --- gcc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30) This should also tell you, that you are using a modified version of the compiler and the bug report should have been filed up with redhat first. --

[Bug other/30361] Documentation: Example usage of __attribute__((visibility(hidden))) misleading

2007-01-03 Thread rich at phekda dot gotadsl dot co dot uk
--- Comment #5 from rich at phekda dot gotadsl dot co dot uk 2007-01-03 21:55 --- Thanks for the quick response and the reference to the attribute documentation. I agree my comment about the documentation being incorrect is wrong. But it doesn't look to me like the visibility is