This is the mail archive of the gcc-patches@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]

Re: [PATCH][4.1/4.2] Fix PR27260, fallout of fix for PR27095


On Fri, Apr 28, 2006 at 11:23:26AM +0200, Richard Guenther wrote:
> On 4/28/06, Alan Modra <amodra@bigpond.net.au> wrote:
> >The testcase for pr27095 proved a little tricky.  The one Richard
> >Guenther posted didn't fail on an unpatched compiler.  Apparently we
> >need a builtin strlen in the memset arg;  my_strlen doesn't trigger the
> >bug.
> 
> Hmm, it failed for me (with 4.1.0) - the key was that my_strlen needs to be
> const or pure so TER places it in the argument list.

My apologies.  I was testing a slight variation on your testcase.
Retesting with exactly your testcase as written shows it to be good.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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