http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54867
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-10 04:41:23 UTC --- Maybe you are hitting the same issue I did a few days ago: ".*" also matching new lines (unlike grep)? Replacing it with \[\\n\]* helped in my case.