c/10339: strncmp generates imPure code (fwd)

Wolfgang Bangerth bangerth@ices.utexas.edu
Mon Apr 7 18:46:00 GMT 2003


The following reply was made to PR optimization/10339; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ices.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/10339: strncmp generates imPure code (fwd)
Date: Mon, 7 Apr 2003 13:41:28 -0500 (CDT)

 ---------- Forwarded message ----------
 Date: Mon, 07 Apr 2003 11:19:33 -0700
 From: Michael Ubell <ubell@mindspring.com>
 To: Wolfgang Bangerth <bangerth@ices.utexas.edu>
 Subject: Re: c/10339: strncmp generates imPure code
 
 I am sorry for the tersness.  I guess I have been looking at the generated code 
 too much so that it becomes obvious to me.  Yes that is exactly the problem.
 
 Note that in this case the compiler could actually figure out the
 maximum number of bytes, but in a more general case (the original problem
 we saw under Purify) it cannot.
 



More information about the Gcc-prs mailing list