diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 91bb370c0553b3e07ea44e54f74c1ca7fd2414b3..258e84c9b30d6b2dfbdb3cf7fdba0237eca90978 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-12  Joseph Myers  <joseph@codesourcery.com>
+
+	PR driver/45731
+	* gcc.c (asm_options): Correct spec matching --target-help.
+
 2011-02-12  Martin Jambor  <mjambor@suse.cz>
 
 	* tree-cfg.c (verify_gimple_call): Return true upon invalid argument
diff --git a/gcc/gcc.c b/gcc/gcc.c
index c31dafc088e6a85ea62da346a8c0d30d3342ecc5..9b6f2fb368b1e9935eb824fa5922a841d9a1c836 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -775,7 +775,7 @@ static const char *cc1_options =
  %{coverage:-fprofile-arcs -ftest-coverage}";
 
 static const char *asm_options =
-"%{--target-help:%:print-asm-header()} "
+"%{-target-help:%:print-asm-header()} "
 #if HAVE_GNU_AS
 /* If GNU AS is used, then convert -w (no warnings), -I, and -v
    to the assembler equivalents.  */