--- a/gcc/config.gcc	2009-12-17 17:36:40.000000000 +0800
+++ b/gcc/config.gcc	2009-12-14 14:34:16.000000000 +0800
@@ -475,6 +475,8 @@
 	*-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
 	*-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
 	*-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
+	*-*-freebsd7 | *-*-freebsd[7].*) fbsd_tm_file="freebsd7.h";;
+	*-*-freebsd8 | *-*-freebsd[8].*) fbsd_tm_file="freebsd8.h";;
 	*) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
 	esac
 	tmake_file="t-slibgcc-elf-ver t-freebsd"
