[m-rev.] for review: deconstruct.named_arg for java

Ian MacLarty maclarty at csse.unimelb.edu.au
Wed Jul 14 14:54:42 AEST 2010


On Wed, Jul 14, 2010 at 1:22 PM, Zoltan Somogyi <zs at csse.unimelb.edu.au> wrote:
> On 05-Jul-2010, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>> Maybe there is a GCC function attribute that we could attach to the
>> declaration that would inhibit the warning,
>> <http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes>?
>
> There does seem to be one: "unused". It seems to be what we want.
>

That doesn't appear to solve the problem.  The function is actually
used.  What is needed is a "defined" attribute to convince gcc that
the function is actually defined.

I changed the definition of the macro that emits the function
declaration to the following to test your suggestion:

static void label(void) __asm__("_entry_" MR_STRINGIFY(label))
__attribute__((unused))

Ian.
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list