This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8537: Optimizer Removes Code Necessary for Security
- From: fw at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wagnerjd at prodigy dot net
- Date: 17 Nov 2002 14:28:07 -0000
- Subject: Re: optimization/8537: Optimizer Removes Code Necessary for Security
- Reply-to: fw at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wagnerjd at prodigy dot net, gcc-gnats at gcc dot gnu dot org
Synopsis: Optimizer Removes Code Necessary for Security
State-Changed-From-To: open->closed
State-Changed-By: fw
State-Changed-When: Sun Nov 17 06:28:05 2002
State-Changed-Why:
This is not a bug in GCC. The call to memset() clear hasn't any externally visible effect according to the C language specification, so it can be removed by the optimizer.
See the discussion around http://gcc.gnu.org/ml/gcc/2002-01/msg00518.html for additional information on a very similar topic.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8537