https://sourceware.org/bugzilla/show_bug.cgi?id=26701
Bug ID: 26701 Summary: Ability to suppress warnings due to tags in a library Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: eyalroz at technion dot ac.il Target Milestone: --- This is a generalization of bug 12017. Compilers typically allow the user to suppress specific warnings, either globally or locally at specific places in the code. Now, the linker apparently emits a warning when a symbol is used whose library entry(/ies) indicate such a warning needs to be emitted. It should have an option to suppress such warnings, in at least the following resolutions IMHO: 1. Globally 2. By (library, symbol name) pair 3. By library (e.g. glibc warnings) 4. By call site Let's ignore (4.) for now because this is more complex and would require compiler support for users to make work and focus on (1.)through (3.) . IIANM, neither is currently possible with ld right now. Now, (1.) should be really easy to implement; and (2.) and (3.) should not be difficult to implement, and in a away such that the cost is minimal (e.g. have a flag for whether _any_ specific suppressions are used, so when none are used it's an extra flag check when having to emit a warning - a tolerable cost.) If this were implemented, it would allow for an easy resolution of 12017. -- You are receiving this mail because: You are on the CC list for the bug.