]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix incorrect comment about stdcall and fastcall compatibility
authorArtemiy Granat <a.granat@ispras.ru>
Thu, 24 Jul 2025 15:38:25 +0000 (18:38 +0300)
committerAlexander Monakov <amonakov@ispras.ru>
Thu, 31 Jul 2025 12:47:36 +0000 (15:47 +0300)
gcc/ChangeLog:

* config/i386/i386-options.cc (ix86_handle_cconv_attribute):
Fix comments which state that combination of stdcall and fastcall
attributes is valid but redundant.

gcc/config/i386/i386-options.cc

index 1ae3df895e3bd4a555de55085691c023eec7f8ea..b3e9cabcde1896c00aee2730c656f045246b0a64 100644 (file)
@@ -3660,7 +3660,7 @@ ix86_handle_cconv_attribute (tree *node, tree name, tree args, int,
       return NULL_TREE;
     }
 
-  /* Can combine fastcall with stdcall (redundant) and sseregparm.  */
+  /* Can combine fastcall with sseregparm.  */
   if (is_attribute_p ("fastcall", name))
     {
       if (lookup_attribute ("cdecl", TYPE_ATTRIBUTES (*node)))
@@ -3681,8 +3681,7 @@ ix86_handle_cconv_attribute (tree *node, tree name, tree args, int,
        }
     }
 
-  /* Can combine stdcall with fastcall (redundant), regparm and
-     sseregparm.  */
+  /* Can combine stdcall with regparm and sseregparm.  */
   else if (is_attribute_p ("stdcall", name))
     {
       if (lookup_attribute ("cdecl", TYPE_ATTRIBUTES (*node)))