[M3devel] configure -enable-checking

Jay K jay.krell at cornell.edu
Sun Nov 21 20:24:53 CET 2010


(ps: we should also be using -O1/-O2/-O3 in some Hudson tasks; or maybe just one -- cm3 accepts -O and then passes
down to cm3cg whatever is in the config file..I don't find this model adequate though and I always edit the config;
probably better approach is a) environment variable + b) different build_dir; many systems work that way,
you don't want too many variants/build_dirs, but 2 isn't unusual ("debug" and "retail" for example))

 - Jay

From: jay.krell at cornell.edu
To: m3devel at elegosoft.com
Date: Sun, 21 Nov 2010 19:08:40 +0000
Subject: [M3devel] configure -enable-checking








gcc has this configure -enable-checking.
It finds bugs in the compiler.


Now, it isn't just a boolean.
There is configure -enable-checking=yes which enables some cheap ones.
configure -enable-checking=all which enables much more and is very noticably very slow
configure -enable-checking=foo,bar,abc you can list specific ones.


Now, configure -enable-checking=all is really really slow.


I am getting very close to fixing "all" the problems it finds.


I will likely have configure -enable-checking=a specific list I have be the one and only way,
at least for now.


However I'm also interested in
  - not making everyone pay even that cost 
  - the even more expensive -enable-checking=all, at least on one target, if not all 


So I think we should setup some extra Hudson nodes and/or tasks for this.
Really, it shouldn't need extra nodes. Tasks should do.
I imagine, the Hudson task would/should be an environment variable
and m3cc/src/m3makefile would check it.


These tasks would not generate snapshots/releases, as their cm3cg would
be unacceptably slow.
(Really, I like extra checking, finding bugs, but it is really incredibly slow.)


Unfortunately it is not a runtime option to cm3cg.
That would help a lot -- as we could build releases/snapshots with the one cm3cg.
But we can't.
Someone is/was looking into making it a command line option.
I know a slow down is unavoidable even then, but maybe ok.
Anyway, we don't have it.



 - Jay




 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20101121/c46bb406/attachment-0002.html>


More information about the M3devel mailing list