Bug 70019
Summary: | attribute ((visibility("internal"))) is not valid on static functions | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | James Antill <james.antill> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-02 23:45:26 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
James Antill
2002-07-29 04:07:37 UTC
No, using "static" is the absolute best you can tell the compiler. Even better than visibility=internal (which, incidentally, the compiler does nothing special with at present). It means that all references to the symbol are visible in the current translation unit. Visibility attributes are not applicable to STB_LOCAL symbols, so the compiler is right to complain. |