On Thu, 6 Feb 2014, Jakub Jelinek wrote:
> As discussed on IRC, this patch introduces two new attributes,
> so that the C library (and other headers) have a way to
> a) tell the compiler something about functions like aligned_alloc
>or memalign
> b) tell the compiler the alignment of pointers r
On 6 February 2014 16:42:05 Jakub Jelinek wrote:
Hi!
As discussed on IRC, this patch introduces two new attributes,
so that the C library (and other headers) have a way to
a) tell the compiler something about functions like aligned_alloc
or memalign
b) tell the compiler the alignment of poi
On Fri, 7 Feb 2014, Jakub Jelinek wrote:
> On Fri, Feb 07, 2014 at 10:02:29AM +0100, Richard Biener wrote:
> > > + if (TREE_CODE (position) != INTEGER_CST
> > > + || TREE_INT_CST_HIGH (position)
> > > + || TREE_INT_CST_LOW (position) < 1
> > > + || TREE_INT_CST_LOW (position) > arg
On Fri, Feb 07, 2014 at 10:02:29AM +0100, Richard Biener wrote:
> > + if (TREE_CODE (position) != INTEGER_CST
> > + || TREE_INT_CST_HIGH (position)
> > + || TREE_INT_CST_LOW (position) < 1
> > + || TREE_INT_CST_LOW (position) > arg_count)
>
> You make it easier for wide-int folks i
On Thu, 6 Feb 2014, Jakub Jelinek wrote:
> Hi!
>
> As discussed on IRC, this patch introduces two new attributes,
> so that the C library (and other headers) have a way to
> a) tell the compiler something about functions like aligned_alloc
>or memalign
> b) tell the compiler the alignment of
On Thu, 6 Feb 2014, Jakub Jelinek wrote:
+/* Handle a "alloc_align" attribute; arguments as in
+ struct attribute_spec.handler. */
+
+static tree
+handle_alloc_align_attribute (tree *node, tree ARG_UNUSED (name), tree args,
+ int, bool *no_add_attrs)
+{
+ unsigned
Hi!
As discussed on IRC, this patch introduces two new attributes,
so that the C library (and other headers) have a way to
a) tell the compiler something about functions like aligned_alloc
or memalign
b) tell the compiler the alignment of pointers returned say by malloc
Ok for trunk if bootstr