9
tbodt
7y

Found in kernel/sched.c in Linux 1.2:

The "confuse_gcc" goto is used only to get better assembly code..
Dijkstra probably hates me.

https://git.kernel.org/pub/scm/...

Comments
  • 0
    The Linux kernel is full of surprises
  • 1
    Now that my curiosity is triggered, can someone explain a little more what this is and why it's called like so ?
  • 1
    @oscarascal Linus decided to add some gotos to the linux kernel, entirely for the purpose of making gcc generate faster code. Dijkstra famously wrote a paper called "goto statements considered harmful", in which he says nobody should ever use goto statements for any reason.
Add Comment