# recast the split compiler spells on a gcc version update, see bug #9813

local OLD_SPELL_VERSION=""
spell_ok $SPELL && OLD_SPELL_VERSION="$(installed_version $SPELL)"
if [ "$VERSION" != "$OLD_SPELL_VERSION" ]; then
  # this includes g77 for the upgrade from 3.4.x to 4.x compilers
  for each in ada fortran g++ g77 gcj objc; do
    if  spell_ok  $each; then
      up_trigger $each cast_self
    fi
  done
fi
