diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4d3f46b0455..44dab32b980 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,13 @@ +2011-04-11 Kai Tietz + + * windres.c (usage): Add new --preprocessor-arg option. + (option_values): Add new OPTION_PREPROCESSOR_ARG enumerator. + (option long_options): Add preprocessor-arg option. + (main): Handle it. + * doc/binutils.texi: Add documentation for --preprocessor-arg + option. + * NEWS: Add line about new --preprocessor-arg option for windres. + 2011-04-08 John Marino * arlex.l: Prevent redefinition of YY_NO_UNPUT. diff --git a/binutils/NEWS b/binutils/NEWS index a30f655ff2d..d1b2a51203b 100644 --- a/binutils/NEWS +++ b/binutils/NEWS @@ -1,7 +1,9 @@ -*- text -*- -Changes in 2.21: +* Add --preprocessor-arg option to windres to specify additional options + passed to preprocessor. +Changes in 2.21: * Add --interleave-width option to objcopy to allowing copying a range of bytes from the input to the output with the --interleave option. diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 4cba11161c5..45a7ff76946 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -11,7 +11,7 @@ @copying @c man begin COPYRIGHT Copyright @copyright{} 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document @@ -3450,6 +3450,13 @@ preprocessor first. This option may be used to specify the preprocessor to use, including any leading arguments. The default preprocessor argument is @code{gcc -E -xc-header -DRC_INVOKED}. +@item --preprocessor-arg @var{option} +When @command{windres} reads an @code{rc} file, it runs it through +the C preprocessor first. This option may be used to specify additional +text to be passed to preprocessor on its command line. +This option can be used multiple times to add multiple options to the +preprocessor command line. + @item -I @var{directory} @itemx --include-dir @var{directory} Specify an include directory to use when reading an @code{rc} file. diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 9537660af58..fb9ad826a3b 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,13 @@ +011-04-11 Kai Tietz + + * binutils-all/windres/windres.exp: Add '// cpparg