This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix -Wunused-but-set* with VLAs (PR c/43981)


On Tue, 4 May 2010, Jakub Jelinek wrote:

> Hi!
> 
> If VLA length is a variable rather than say expression involving variables,
> we forgot to mark that variable DECL_READ_P.
> 
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux.  Ok for
> trunk?
> 
> 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c/43981
> 	* c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
> 	on dimen.
> 
> 	* gcc.dg/Wunused-var-8.c: New test.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]