See bug #35949 (strstr() deadloop with -finline-functions). Starting from gcc 4.7, to avoid this deadloop for -O3 - need to change in mail-filter/procmail ebuild: append-flags -fno-inline-functions to append-flags -fno-inline-functions -fno-ipa-cp-clone PS Also readable on http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53966 Reproducible: Always
Yes, please do something about this! I just wasted 17 hours worth of CPU time while the message Benchmarking your system's strstr() implementation was being displayed, before I noticed the build (using -O3) was actually stuck.
+1
One year has passed, added the fix, thanks Denis!