This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.3.2 bug (was: Illegal subtraction in tmp-dive_1.s)?
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: Vincent Lefevre <vincent+gcc at vinc17 dot org>
- Cc: James Dennett <james dot dennett at gmail dot com>, Jason Mancini <jayrusman at hotmail dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 20 Apr 2009 10:04:00 -0400
- Subject: Re: GCC 4.3.2 bug (was: Illegal subtraction in tmp-dive_1.s)?
As the bug occurs only when malloc is in the tested function,
Note that gcc 'knows' that memory obtained by malloc does not
alias other memory.
You can use a differently named wrapper function for malloc,
or use the malloc attribute for another function, to experiment
how this affects code generation.