------- Comment #1 from hp at gcc dot gnu dot org 2010-09-20 01:57 ------- I hacked around a similar suboptimality using -fno-tree-reassoc. (...looking...) See PR37916 (oops! still assigned to me; the easy route I envisioned became a dead end).
Adding a preprocessed version of huffdec.c (use -save-temps, pick up huffdec.i) to this PR would help, I think. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45622