This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR60092, add C11 aligned_alloc handling
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Richard Biener <rguenther at suse dot de>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Mon, 28 Apr 2014 14:14:06 +0200
- Subject: Re: [PATCH] PR60092, add C11 aligned_alloc handling
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1402061421150 dot 29326 at zhemvz dot fhfr dot qr> <CAFiYyc1bcKTDOFrVn522h=2Ww2UHOMaRAeJEvVULppSNOMQujA at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Apr 28, 2014 at 01:52:08PM +0200, Richard Biener wrote:
> On Thu, Feb 6, 2014 at 2:26 PM, Richard Biener <rguenther@suse.de> wrote:
> >
> > This adds a builtin for C11 aligned_alloc and support for it
> > in the alias and alignment tracking machinery.
> >
> > Bootstrap and regtest in progress on x86_64-unknown-linux-gnu.
> >
> > Ok for trunk?
>
> Ping.
Ok, thanks.
> > 2014-02-06 Richard Biener <rguenther@suse.de>
> >
> > PR middle-end/60092
> > * builtins.def (DEF_C11_BUILTIN): Add.
> > (BUILT_IN_ALIGNED_ALLOC): Likewise.
> > * coretypes.h (enum function_class): Add function_c11_misc.
> > * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
> > BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
> > (call_may_clobber_ref_p_1): Likewise.
> > * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
> > (mark_all_reaching_defs_necessary_1): Likewise.
> > (propagate_necessity): Likewise.
> > (eliminate_unnecessary_stmts): Likewise.
> > * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
> >
> > ada/
> > * gcc-interface/utils.c: Define flag_isoc11.
> >
> > lto/
> > * lto-lang.c: Define flag_isoc11.
> >
> > * gcc.dg/tree-ssa/alias-32.c: New testcase.
> > * gcc.dg/vect/pr60092.c: Likewise.
Jakub