Fix version check for ATTRIBUTE_GCC_DUMP_PRINTF

gcc/ChangeLog:
	* dumpfile.h (ATTRIBUTE_GCC_DUMP_PRINTF): Change version check on
	GCC_VERSION for usage of "__gcc_dump_printf__" format from
	>= 3005 to >= 9000.

From-SVN: r263920
This commit is contained in:
David Malcolm 2018-08-28 14:08:45 +00:00 committed by David Malcolm
parent 49aecbebe2
commit 1978408086
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-08-28 David Malcolm <dmalcolm@redhat.com>
* dumpfile.h (ATTRIBUTE_GCC_DUMP_PRINTF): Change version check on
GCC_VERSION for usage of "__gcc_dump_printf__" format from
>= 3005 to >= 9000.
2018-08-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/87124

View File

@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
format codes (see pretty-print.c), with additional codes for middle-end
specific entities (see dumpfile.c). */
#if GCC_VERSION >= 3005
#if GCC_VERSION >= 9000
#define ATTRIBUTE_GCC_DUMP_PRINTF(m, n) \
__attribute__ ((__format__ (__gcc_dump_printf__, m ,n))) \
ATTRIBUTE_NONNULL(m)