[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2013-02-12 Thread matt at use dot net


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



Matt Hargett matt at use dot net changed:



   What|Removed |Added



 CC||matt at use dot net



--- Comment #2 from Matt Hargett matt at use dot net 2013-02-12 19:15:31 UTC 
---

also fails with current trunk with bootstrap-O3 and bootstrap-lto-O3.


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2013-02-12 Thread mpolacek at gcc dot gnu.org


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



Marek Polacek mpolacek at gcc dot gnu.org changed:



   What|Removed |Added



 CC||mpolacek at gcc dot gnu.org



--- Comment #3 from Marek Polacek mpolacek at gcc dot gnu.org 2013-02-12 
19:18:30 UTC ---

http://gcc.gnu.org/ml/gcc-patches/2013-02/msg00324.html this ought to fix it.


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2013-02-12 Thread mpolacek at gcc dot gnu.org


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



Marek Polacek mpolacek at gcc dot gnu.org changed:



   What|Removed |Added



 Status|UNCONFIRMED |ASSIGNED

   Last reconfirmed||2013-02-12

 AssignedTo|unassigned at gcc dot   |mpolacek at gcc dot gnu.org

   |gnu.org |

 Ever Confirmed|0   |1



--- Comment #4 from Marek Polacek mpolacek at gcc dot gnu.org 2013-02-12 
20:05:11 UTC ---

I have a patch.


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2013-02-12 Thread mpolacek at gcc dot gnu.org


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



--- Comment #5 from Marek Polacek mpolacek at gcc dot gnu.org 2013-02-12 
20:07:30 UTC ---

Author: mpolacek

Date: Tue Feb 12 20:07:04 2013

New Revision: 195989



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=195989

Log:

Fix bootstrap with -O3.



Modified:

trunk/gcc/c/ChangeLog

trunk/gcc/c/c-parser.c


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2013-02-12 Thread mpolacek at gcc dot gnu.org


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



Marek Polacek mpolacek at gcc dot gnu.org changed:



   What|Removed |Added



 Status|ASSIGNED|RESOLVED

 Resolution||FIXED



--- Comment #6 from Marek Polacek mpolacek at gcc dot gnu.org 2013-02-12 
20:08:45 UTC ---

Fixed.


[Bug c/44938] Variable origtypes in c-parser.c accessed uninitialized

2011-08-06 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44938

Marc Glisse marc.glisse at normalesup dot org changed:

   What|Removed |Added

 CC||marc.glisse at normalesup
   ||dot org

--- Comment #1 from Marc Glisse marc.glisse at normalesup dot org 2011-08-06 
15:47:21 UTC ---
This breaks a -O3 bootstrap (-Werror turns the warning into an error). The code
looks like:
  VEC(tree,gc) *origtypes;
  ...
  if(...)
exprlist = NULL;
  else
exprlist = c_parser_expr_list (parser, true, false, origtypes);
  ...
  expr.value = build_function_call_vec (op_loc, expr.value, exprlist,
origtypes);

So g++ is right to warn (even if origtypes is probably unused in that case).