------- Comment #11 from rguenther at suse dot de  2009-06-25 12:25 -------
Subject: Re:  [4.3 Regression] offsetof buglet

On Thu, 25 Jun 2009, mikpe at it dot uu dot se wrote:

> ------- Comment #10 from mikpe at it dot uu dot se  2009-06-25 12:12 -------
> (In reply to comment #9)
> > Fixed.
> 
> The gcc-4.3 backport or PR32041 to c-parser.c adds an assignment to `loc'. The
> mainline version needed that for build_array_ref, but in 4.3 build_array_ref
> does not take a loc parameter so the assignment is redundant. Suggested fixup:
> 
> --- gcc-4.3-pr32041/gcc/c-parser.c.~1~  2009-06-25 14:01:22.000000000 +0200
> +++ gcc-4.3-pr32041/gcc/c-parser.c      2009-06-25 14:06:20.000000000 +0200
> @@ -5353,7 +5353,6 @@ c_parser_postfix_expression (c_parser *p
>                   {
>                     if (c_parser_next_token_is (parser, CPP_DEREF))
>                       {
> -                       loc = c_parser_peek_token (parser)->location;
>                         offsetof_ref = build_array_ref (offsetof_ref,
>                                                         integer_zero_node);
>                         goto do_dot;

Thanks for noticing, I'll fix this up.

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32041

Reply via email to