diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c5fed6ea2ad6fc1e18e27ac4634d330983febf9..9e25844074926a2325e7731016cfeaa6b32842ba 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-14  Matthias Klose <doko@ubuntu.com>
+
+	* doc/extend.texi (optimize attribute): Fix typo.
+
 2011-07-14  Richard Guenther  <rguenther@suse.de>
 
 	* gimplify.c (gimplify_expr): Only do required conversions.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 1817f5123d1e6d8a7e5db342a41f5755dfb8891c..b0961485b23b96d9d18b34c9af9030791e586d92 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3594,7 +3594,7 @@ away so that a longer more expensive calling sequence is required.
 @item cpu=@var{CPU}
 @cindex @code{target("cpu=@var{CPU}")} attribute
 Specify the architecture to generate code for when compiling the
-function.  If you select the @code{"target("cpu=power7)"} attribute when
+function.  If you select the @code{"target("cpu=power7")} attribute when
 generating 32-bit code, VSX and Altivec instructions are not generated
 unless you use the @option{-mabi=altivec} option on the command line.