Here is a patch that got swh plugins built for me on FC4 gcc version
4.0.0 20050519 (Red Hat 4.0.0-8)
the original fails on gcc4 for both use of a removed optimize option
-fmove-all-movables and for declaring an already defined non-static
variable as static.
More on the removed optimization flag here:
http://gcc.gnu.org/gcc-4.0/changes.html
The options |-freduce-all-givs| and |-fmove-all-movables| have been
discontinued. They were used to circumvent a shortcoming in the
heuristics of the old loop optimization code with respect to common
Fortran constructs. The new (tree) loop optimizer works differently and
doesn't need those work-arounds.
--
http://nostar.net/