On Sun, 2012-12-09 at 14:40 +0530, Pekon Gupta wrote: > Hi, > > I was re-installing the openrisc tool-chain on my host.. And got > following error.. > ------------------------------------------------------- > ../../binutils/bfd/verilog.c: In function ‘verilog_write_section’: > ../../binutils/bfd/verilog.c:225:15: error: variable ‘address’ set but > not used [-Werror=unused-but-set-variable] > cc1: all warnings being treated as errors0 > ------------------------------------------------------- > > Just wondering if "-Werror=unused-but-set-variable" is enabled for any > specific reason ?
Hi Pekon, I'm pretty sure we use the standard GNU flag settings, so you really need to ask the binutils maintainers. Personally, it's a flag I like. If you are setting a variable, but it is unused that is quite often a logical error, and you ought to fix it. Our stable binutils is quite old. As modern GCC gets better and better, it finds more of these sort of problems, which are duly fixed in the newer versions of binutils. There is a development version of the GNU tools in GitHub, which Peter Gavin and others have been working on (details on the Wiki). It uses the latest upstream code base, and has some new features, like dynamic linking and loading. I believe it is now fairly robust, although there are some outstanding regression failures to be resolved. HTH, Jeremy -- Tel: +44 (1590) 610184 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: [email protected] Web: www.embecosm.com _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
