This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

middle-end/9724: Gcc should drop unused static functions from translation units


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]