In the past, GCC has been lenient with #elif's with no conditional clause, but in GCC 4.4 it will cough and die. The file layoutex/ParagraphLayout.cpp contains such #elif's.
Created attachment 181492 [details, diff] Patch to the ebuild to eliminate empty #elif's
This was fixed in upstream SVN trunk with changeset 24411. AFAICT, it hasn't made its way into any official releases yet.
Yummy, bugs fixed before they exist!
added to gcc-porting overlay
Feel free to commit it to the main tree. I have absolutely zero knowledge about this package and I have no idea why it is even in the PHP herd (it has been there for a long time and only PHP6 is going to use it, which is still away a fair amount of time).
Created attachment 187438 [details, diff] patch for 4.0.1 ebuild to eliminate empty elif's icu-4.0.1 has a similar issue. The attached patch fixes the new ebuild.
This package is used by webkit-gtk (rather than PHP, other than PHP6). It seems like it would make sense to reassign this from the PHP herd to the Gnome or GTK people.
+ 08 May 2009; Peter Alfredsen <loki_val@gentoo.org> icu-3.8.1-r1.ebuild, + icu-4.0.1.ebuild: + Fix bug 258377, gcc-4.4 compatibility. Thanks to Daniel J. + <sleeperseven@hotmail.com> for the patch. +