This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
middle-end/9724: Gcc should drop unused static functions from translation units
- From: beszedes at rgai dot hu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 17 Feb 2003 15:22:35 -0000
- Subject: middle-end/9724: Gcc should drop unused static functions from translation units
- Reply-to: beszedes at rgai dot hu
>Number: 9724
>Category: middle-end
>Synopsis: Gcc should drop unused static functions from translation units
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Mon Feb 17 15:26:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Árpád Beszédes
>Release: gcc version 3.3 20030210 (prerelease)
>Organization:
>Environment:
>Description:
Static functions are not visible from other translation units, therefore if they are not used within the unit then they can be dropped without any risk.
>How-To-Repeat:
Just put some unused static functions in the source.
>Fix:
This feature requires unit-at-a-time compilation
>Release-Note:
>Audit-Trail:
>Unformatted: