https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68034
Bug ID: 68034 Summary: Print warning when memset is optimized out Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bugzi...@poradnik-webmastera.com Target Milestone: --- It is recommended to clear memory area storing sensitive data (e.g. passwords) when they are no longer needed. When memset is used for this, it may lead to subtle bug because gcc may optimize it out. Please add new warning which will be printed when this happens. It will tell developers that they either have security problem in code or there is some dead code which can be removed.