--- gcc/configure.old	Wed May 23 15:05:36 2001
+++ gcc/configure	Wed May 23 15:05:40 2001
@@ -3092,7 +3092,7 @@
 		  *-*-osf[23]*)
 		    tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
 		    ;;
-		  *-*-osf4*)
+		  *-*-osf[45]*)
 		    tm_file="${tm_file} alpha/osf.h"
 		    # Some versions of OSF4 (specifically X4.0-9 296.7) have
 		    # a broken tar, so we use cpio instead.
@@ -3100,7 +3100,7 @@
 		    ;;
 		esac
 		case $machine in
-		  *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
+		  *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5.* )
 		    target_cpu_default=MASK_SUPPORT_ARCH
 		    ;;
 		esac
