https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66584
--- Comment #8 from Jason McG <jmcguiness at liquidcapital dot com> --- (In reply to Andrew Pinski from comment #6) ... > compiler developer. This is the first time I have seen a non-compiler > developer care about documenting gcc heuristics. Note there is no one paper. ... See comment 5. The documentation I am proposing is pretty trivial, I repeat: "code generation for switch statements may not follow a top-down approach nor prefer the default case (if it exists) in terms of static branch-prediction. The __builtin_expected() intrinsic has no effect". I find it had to understand how that documentation could be considered contentious.