This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libsanitizer merge from upstream r218156
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Konstantin Serebryany <konstantin dot s dot serebryany at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Dodji Seketeli <dodji at redhat dot com>, Dmitry Vyukov <dvyukov at google dot com>, Marek Polacek <polacek at redhat dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, Yuri Gribov <tetra2005 at gmail dot com>, Alexey Samsonov <samsonov at google dot com>
- Date: Wed, 24 Sep 2014 11:23:52 +0200
- Subject: Re: libsanitizer merge from upstream r218156
- Authentication-results: sourceware.org; auth=none
- References: <CAGQ9bdyur_BejoirTygZfTs0O7VdfEHB6uWAcoqh9tukvv3BXA at mail dot gmail dot com> <CAGQ9bdyo8V6Q_CHtfz=5uo32yic05Aws0w6kuLVpH359W6fpKw at mail dot gmail dot com> <20140923141657 dot GL17454 at tucnak dot redhat dot com> <CAGQ9bdx7+1MbhhYVzL=BjmcUKqa56cwDfs_w5cvSiCBkfa+MQg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Sep 23, 2014 at 11:03:55AM -0700, Konstantin Serebryany wrote:
> > OT, will you please look at the underaligned asan malloc etc.? GCC assumes
> > that even malloc (1) or malloc (7) is sizeof (void *) aligned on Linux
> > (and can and will assume 2 * sizeof (void *) alignment hopefully soon).
>
> What's wrong here?
> I am pretty confident that asan's malloc always returns 16-aligned pointers.
Sorry, that was just my guess, I haven't really analyzed PR63316 before
writing this. Analyzed it now and fixed.
Jakub