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: [RFC] GCC aliasing bug PR optimization/9745


On Thu, 6 Mar 2003, David Edelsohn wrote:

> 	With some insight by Dale Johannesen, I have tracked down the
> cause of the miscompilation of libmcrypt by GCC 3.3 and the trunk, but the
> problem seems to be a fundamental bug in GCC's RTL aliasing design.
> 
> 	The symptom is elicited by RTL which accesses an array both
> through the frame pointer and through a pseudo derived from the frame
> pointer.  GCC alias analysis marks certain base registers (stack pointer,
> argument pointer, frame pointer, hard frame pointer) as special using
> ADDRESS.  On some architectures, such as PowerPC, the frame pointer is not
> a fixed register and can be eliminated in terms of the stack pointer.

We have an alias analysis patch which handles pointer arithmetic.
Could this patch possibly solve this problem?

Toshi



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