This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does malloc tell us anything about alignment modulo k?
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: law at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 15 Jul 04 10:54:16 EDT
- Subject: Re: Does malloc tell us anything about alignment modulo k?
You can assume the return value from malloc is aligned to
BIGGEST_ALIGNMENT. GCC has done this for some time.
Unfortunately, it's not correct on many systems. x86 comes to mind here.