diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-11-11 17:07:25 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-11-11 17:07:25 -0500 |
commit | ca854c05266d12c0f0c9fa03ed5464382f7e9662 (patch) | |
tree | c64c324546c7e20510ab2c242f7e917b74cf73f3 /gcc/c-common.c | |
parent | 7a824750a4cbc418fbb1f257f179f8c464518822 (diff) | |
download | gcc-ca854c05266d12c0f0c9fa03ed5464382f7e9662.zip gcc-ca854c05266d12c0f0c9fa03ed5464382f7e9662.tar.gz gcc-ca854c05266d12c0f0c9fa03ed5464382f7e9662.tar.bz2 |
(decl_attributes): Add double-underscore version of printf and scanf
for format type.
From-SVN: r8426
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 407203f..6735b5a 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -403,9 +403,11 @@ found_attr:; continue; } - if (!strcmp (IDENTIFIER_POINTER (format_type), "printf")) + if (!strcmp (IDENTIFIER_POINTER (format_type), "printf") + || !strcmp (IDENTIFIER_POINTER (format_type), "__printf__")) is_scan = 0; - else if (!strcmp (IDENTIFIER_POINTER (format_type), "scanf")) + else if (!strcmp (IDENTIFIER_POINTER (format_type), "scanf") + || !strcmp (IDENTIFIER_POINTER (format_type), "__scanf__")) is_scan = 1; else { |