Hacker News new | ask | show | jobs
by lpapez 819 days ago
Yet the compiler writers care only about the language spec, and you can bet that failing to optimize this as dead code would be considered a compiler bug.

This goes not only for Java compiler, but many other languages as well.

1 comments

Sometimes compiler engineers try to be too smart and they end up creating a mess :)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537

>When optimizing code for "dead store removal" the optimizing compiler may remove code necessary for security.

I'm going to point out that the bug is marked " RESOLVED INVALID "
Political thing, but bug created by removal is real :)
Well you posted the link… next time at least try to post one that supports your idea instead of the opposite.
The bug is real, but it isn't the compiler's.