Re: [PATCH] PR60092, basic support for posix_malloc

2014-02-06 Thread Richard Biener
On Thu, 6 Feb 2014, Jakub Jelinek wrote: > On Thu, Feb 06, 2014 at 02:21:01PM +0100, Richard Biener wrote: > > + /* We marking allocated storage local, we deal with it becoming > > +global by escaping and setting of vars_contains_escaped_heap. */ > > Did you mean By marking ..., or s

Re: [PATCH] PR60092, basic support for posix_malloc

2014-02-06 Thread Andreas Schwab
Richard Biener writes: > + case BUILT_IN_POSIX_MEMALIGN: > + { > + tree ptrptr = gimple_call_arg (t, 0); > + get_constraint_for (ptrptr, &lhsc); > + do_deref (&lhsc); > + varinfo_t vi = make_heapvar ("HEAP"); > + /* We marking allocated storage local, w

Re: [PATCH] PR60092, basic support for posix_malloc

2014-02-06 Thread Jakub Jelinek
On Thu, Feb 06, 2014 at 02:21:01PM +0100, Richard Biener wrote: > + /* We marking allocated storage local, we deal with it becoming > + global by escaping and setting of vars_contains_escaped_heap. */ Did you mean By marking ..., or something else? > + extern int posix_memalign(vo

[PATCH] PR60092, basic support for posix_malloc

2014-02-06 Thread Richard Biener
This adds posix_malloc as builtin and support for it in the alias machinery. Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk? Thanks, Richard. 2014-02-06 Richard Biener PR middle-end/60092 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add. * bui