OSDN Git Service

(decl_attributes): Add double-underscore version of printf and scanf
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Nov 1994 22:07:25 +0000 (22:07 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Nov 1994 22:07:25 +0000 (22:07 +0000)
for format type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8426 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-common.c

index 407203f..6735b5a 100644 (file)
@@ -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
          {