From: Artemiy Granat Date: Thu, 24 Jul 2025 15:38:25 +0000 (+0300) Subject: i386: Fix incorrect comment about stdcall and fastcall compatibility X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55e71d2a553a4455dede9fd94405dea3f81721a6;p=thirdparty%2Fgcc.git i386: Fix incorrect comment about stdcall and fastcall compatibility 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. --- diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc index 1ae3df895e3..b3e9cabcde1 100644 --- a/gcc/config/i386/i386-options.cc +++ b/gcc/config/i386/i386-options.cc @@ -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)))