http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47612
--- Comment #18 from Vincent Riviere <vincent.riviere at freesbee dot fr> 2011-08-02 07:30:06 UTC --- I have applied your patch to GCC 4.6.1 and it worked fine on all the software I'm used to compile. You should apply it to the 4.6 branch.