diff mbox

Fix bootstrap with -O3

Message ID 20130212192637.GC23409@redhat.com
State New
Headers show

Commit Message

Marek Polacek Feb. 12, 2013, 7:26 p.m. UTC
On Sun, Feb 10, 2013 at 12:29:41AM +0100, Marc Glisse wrote:
> >2013-02-07  Marek Polacek  <polacek@redhat.com>
> >
> >	* c-parser.c (origtypes): Initialize to NULL.
> 
> Maybe mention PR44938? (there may be a dup or two)

Ok, I added that.

> (I thought it was the name of the function that went inside the
> parentheses in a ChangeLog entry)

That's right, so I used something hopefully better this time around ;)
Ok for trunk now?

2013-02-12  Marek Polacek  <polacek@redhat.com>

	PR c/44938
	* c-parser.c (c_parser_postfix_expression_after_primar): Initialize
	origtypes to NULL.


	Marek

Comments

Jakub Jelinek Feb. 12, 2013, 7:52 p.m. UTC | #1
On Tue, Feb 12, 2013 at 08:26:37PM +0100, Marek Polacek wrote:
> That's right, so I used something hopefully better this time around ;)
> Ok for trunk now?
> 
> 2013-02-12  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c/44938
> 	* c-parser.c (c_parser_postfix_expression_after_primar): Initialize

The function is called c_parser_postfix_expression_after_primary,
not c_parser_postfix_expression_after_primar, that is just diff truncating
too long names; please fix that up.

> 	origtypes to NULL.

Ok, thanks.

> --- gcc/c-parser.c.mp	2013-02-07 17:50:10.286742403 +0100
> +++ gcc/c-parser.c	2013-02-07 17:50:23.331781876 +0100
> @@ -6864,7 +6864,7 @@ c_parser_postfix_expression_after_primar
>    tree sizeof_arg[3];
>    unsigned int i;
>    vec<tree, va_gc> *exprlist;
> -  vec<tree, va_gc> *origtypes;
> +  vec<tree, va_gc> *origtypes = NULL;
>    while (true)
>      {
>        location_t op_loc = c_parser_peek_token (parser)->location;
> 
> 	Marek

	Jakub
Marek Polacek Feb. 12, 2013, 7:59 p.m. UTC | #2
On Tue, Feb 12, 2013 at 08:52:27PM +0100, Jakub Jelinek wrote:
> On Tue, Feb 12, 2013 at 08:26:37PM +0100, Marek Polacek wrote:
> > That's right, so I used something hopefully better this time around ;)
> > Ok for trunk now?
> > 
> > 2013-02-12  Marek Polacek  <polacek@redhat.com>
> > 
> > 	PR c/44938
> > 	* c-parser.c (c_parser_postfix_expression_after_primar): Initialize
> 
> The function is called c_parser_postfix_expression_after_primary,
> not c_parser_postfix_expression_after_primar, that is just diff truncating
> too long names; please fix that up.

Thanks for noticing, I used auto-completing of words...
I'll fix it up and commit.

	Marek
Alec Teal Feb. 12, 2013, 8:21 p.m. UTC | #3
On 12/02/13 19:59, Marek Polacek wrote:
>
> Thanks for noticing, I used auto-completing of words...
> I'll fix it up and commit.
>
> 	Marek
>
Why did this occur? I am curious.

Alec
Marek Polacek Feb. 12, 2013, 11:05 p.m. UTC | #4
On Tue, Feb 12, 2013 at 08:21:06PM +0000, Alec Teal wrote:
> Why did this occur? I am curious.

It is caused by -fipa-cp-clone, which -O3 entails.

	Marek
diff mbox

Patch

--- gcc/c-parser.c.mp	2013-02-07 17:50:10.286742403 +0100
+++ gcc/c-parser.c	2013-02-07 17:50:23.331781876 +0100
@@ -6864,7 +6864,7 @@  c_parser_postfix_expression_after_primar
   tree sizeof_arg[3];
   unsigned int i;
   vec<tree, va_gc> *exprlist;
-  vec<tree, va_gc> *origtypes;
+  vec<tree, va_gc> *origtypes = NULL;
   while (true)
     {
       location_t op_loc = c_parser_peek_token (parser)->location;