aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArtemiy Granat <a.granat@ispras.ru>2025-07-24 18:38:25 +0300
committerAlexander Monakov <amonakov@ispras.ru>2025-07-31 15:47:36 +0300
commit55e71d2a553a4455dede9fd94405dea3f81721a6 (patch)
treee476f6a8395c36a9de32f148d1aa8d60d7680111 /gcc
parentccead81bbc39668376eb5cf47066acb446cc43f3 (diff)
downloadgcc-55e71d2a553a4455dede9fd94405dea3f81721a6.zip
gcc-55e71d2a553a4455dede9fd94405dea3f81721a6.tar.gz
gcc-55e71d2a553a4455dede9fd94405dea3f81721a6.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/i386-options.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
index 1ae3df8..b3e9cab 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)))