[Bug c/26366] __builtin_expect needs better documentation

acahalan at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Feb 19 21:48:00 GMT 2006



------- Comment #2 from acahalan at gmail dot com  2006-02-19 21:48 -------
Nope, at least if the documentation  at
http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html is what you refer to.

It would be good to document how strong the expectation is for each
architecture. Apparently the differences are dramatic.

There are the other issues too. I can't tell from the documentation if it is
useful to do as in my first example. (giving known bits and min/max) Would the
compiler remember what I told it? (if not, it should, but that needs a
different bug number)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26366



More information about the Gcc-bugs mailing list