54-line if condition in gcc's reload.c
github.com
54-line if condition in gcc's reload.c
1–10 of 95 posts
Re: 54-line if condition in gcc's reload.c
#2https://github.com/mirrors/gcc/blame/7057506456ba18f080679b2...
Re: 54-line if condition in gcc's reload.c
#3Re: 54-line if condition in gcc's reload.c
#4Re: 54-line if condition in gcc's reload.c
#5Trivia: This code is older than many of the readers. https://github.com/mirrors/gcc/blame/7057506456ba18f080679b2...
Re: 54-line if condition in gcc's reload.c
#6Re: 54-line if condition in gcc's reload.c
#7Trivia: This code is older than many of the readers. https://github.com/mirrors/gcc/blame/7057506456ba18f080679b2...
Re: 54-line if condition in gcc's reload.c
#8No wonder llvm is getting popular (I realize that there are other reasons besides codebase quality).
Re: 54-line if condition in gcc's reload.c
#9No wonder llvm is getting popular (I realize that there are other reasons besides codebase quality).
Compilers are complex, and these conditionals had to be evaluated in some way. Sure the author could have split it up into multiple if statements, but would have that really helped?
Re: 54-line if condition in gcc's reload.c
#10Why not break it up into variables or functions so that the logic can be followed while reducing the likelihood that a bug creeps in? What is the excuse for horrible code like this?
If they'd spent all their time needlessly fixing what ain't broke, gcc would've gone the way of GNU/Hurd.