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: [4.1 patch] Delete old #if 0 code in reload


neroden@fastmail.fm (Nathanael Nerode) writes:

> So I was getting a little tired of the presence of old disabled code.
> 
> Should any of this be kept?
> 
> Or is the OK for 4.1?
> 
> 	* reload.c: Remove code #if 0-ed out in 2000 or earlier.
> 	* reload1.c: Remove code #if 0-ed out in 2000 or earlier.

Normally I think #if 0 code is useless.  However, reload may be an
exception.  Since the code in reload is baroque and confusing, it can
sometimes help to see that something was tried and then removed.  It
means that the developer knows to not bother trying that code again.

Of course, a carefully written comment can have the same effect.  So I
think that if we remove the #if 0 code in reload, we should try to
replace it with intelligent comments.

Ian


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