CONFIG_* defines
Bernhard Fischer
rep.nop at aon.at
Wed Sep 7 19:39:26 UTC 2005
On Wed, Sep 07, 2005 at 11:51:25AM -0500, Rob Landley wrote:
>On Wednesday 07 September 2005 02:44, Bernhard Fischer wrote:
>> >I've been slowly switching things over to the ENABLE_* macros, which
>> > instead of being defined or undefined are always defined, but to 0 or 1.
>> > That way they can be used in normal if() statements. Since it's a
>> > constant, the
>>
>> Yes, since you started to do that, i'm getting:
>> applets/applets.c:447: warning: empty body in an if-statement
>> applets/applets.c:455: warning: empty body in an if-statement
>> applets/busybox.c:74: warning: empty body in an if-statement
>> See e.g. allnoconfig.
>
>I checked in a some fixes to scripts/config/confdata.c:
>
>http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/scripts/config/confdata.c?rev=11329&view=log
>
>Unfortunately, yet another example of how our make dependencies are horked is
>that not only does scripts/config not get rebuilt, but a "make clean" doesn't
>delete scripts/config/{conf,mconf,mkconfigs}
make distclean would (see the "$(MAKE) -C scripts/config clean" there).
>
>Do a "make clean", then delete those three files by hand, and then rebuild.
I was experiencing this on a fresh checkout; abovementioned checkin does
result for me in
#
# (null)
#
CONFIG_TEST=y
# CONFIG_FEATURE_TEST_64 is not set
CONFIG_TOUCH=y
CONFIG_TR=y
instead of formerly:
#
# test (forced enabled for use with shell)
#
CONFIG_FEATURE_TEST_64=y
CONFIG_TOUCH=y
CONFIG_TR=y
svn history 11329
gives the advise to look at help, so i've no idea what you "fixed" in
that ci, unfortunately.
>> >compiler's "dead code elimination" optimization (a very old and very
>> > simple optimization, one even fabrice bellard's "tiny C compiler" does)
>> > can chop them out.
>>
>> yes, tcc also has dead code elimination. It doesn't support
>> variable-sized arrays, currently. It should be taught to deal with them
>> as they are useful generally and also used in busybox. I remember i got
>> some headache from starting to support tcc -E some time ago, though.
>
>I keep meaning to play with it more than I have, but it's not like I have a
>shortage of things to do... :)
sounds familiar ;)
cheerio,
Bernhard
>
>Rob
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
More information about the busybox
mailing list