Hello Wolf. 2014-03-31 20:33 GMT+02:00 Wolf Ramovsky <[email protected]>:
> I guess switching on "Debug" (to include -Werror into compilation > flags) and switching off "Build essentials binaries only" (to build > network code) options should be enough to reproduce da bug. > Not quite, but the log helped ;-). The problem is the size optimisation. GCC is able to produce different warnings based on the optimisation level [1] and sometimes it does not get things quite right. Unfortunately, the -Os causes much more "maybe uninitialized" errors than the two you mentioned. I will look into it later this week. Thanks for bringing this up. - Vojta [1] http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings > > > 2014-03-31 14:05 GMT+04:00, Vojtech Horky <[email protected]>: > > Hello Wolf. > > > > 2014-03-21 12:40 GMT+01:00 Wolf Ramovsky <[email protected]>: > > > >> 2014-03-21 15:07 GMT+04:00, Vojtech Horky <[email protected]>: > >> > Hello Wolf. > >> > > >> > 2014-03-21 12:01 GMT+01:00 Wolf Ramovsky <[email protected]>: > >> > > >> >> Also > >> >> in srv/net/dhcp/transport.c, line 182 and srv/net/dnssrv/dns_msg.c, > >> >> line 535, in debug build, GCC says that variables "size" or "q_size", > >> >> respectively, is possibly uninitialized. > >> >> I haven't explored for the rest possible uninitialized variable > errors > >> >> and just removed -Werror option in debug build mode, so fixing > >> >> mentioned files could be not enough. > >> >> > >> > What version of GCC are you using? It seems to me you are not using > the > >> one > >> > built by our toolchain script. Unfortunately, GCC ability to spot > >> > problematic places changes from version to version. > >> > >> I use gcc built by toolchain.sh, I see path to it in make output. It's > >> version is 4.8.1. > >> > > I am not able to reproduce this. Can you, please, post here relevant > output > > from make? Which configuration are you using (default one for ia32 or > with > > some changes)? Also output from <used-gcc> -v might be useful. > > > > Thanks! > > > > - Vojta > > > > > > > >> > >> _______________________________________________ > >> HelenOS-devel mailing list > >> [email protected] > >> http://lists.modry.cz/listinfo/helenos-devel > >> > > > > _______________________________________________ > HelenOS-devel mailing list > [email protected] > http://lists.modry.cz/listinfo/helenos-devel > >
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
