Dear Kumar Gala, In message <e7f59234-4a15-4b96-b2fb-0fb3eedc5...@kernel.crashing.org> you wrote: > > > Or has the rule officially been dropped that the "#if" in the C > > prepro use the same shortcut logic as the "if" in C? > > I'm being told that not reporting this as an error is a bug in previous > gcc's not the new one. There isn't anything in the C specs about early > out handling from what I can tell.
But there is nothing in the specs that states that always all conditions need to be evaluated or at least checked if they can be evaluated reasonably. To me, the new behaviour makes no sense - neither logically not performance-wise. I am aware that common sense and gcc behaviour is not always in the same pot, but I consider this to be a change to the worse. Can you point to some commit / bugzilla entry / posting that contains an explanation or rationale for this change? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "I may be synthetic, but I'm not stupid" - the artificial person, from _Aliens_ _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot