pm215: (Default)
pm215 ([personal profile] pm215) wrote in [personal profile] ewx 2007-03-16 10:09 pm (UTC)

In practice gcc's -O0 option doesn't mean "no optimisation at all" but "don't do things that would make debugging too hard and don't slow the compilation down". In particular at least half of fold-const.c is enabled regardless of optimisation setting, including "x|0 => x". I think the rationale here is that it can actually speed the compile up by giving the later stages less work to do. (It also wouldn't surprise me if some backends assumed it had been run.)

Post a comment in response:

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org