[llvm-bugs] [Bug 48610] New: cetintrin.h empty argument list instead of void

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 27 22:25:51 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48610

            Bug ID: 48610
           Summary: cetintrin.h empty argument list instead of void
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: evanhaas at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

In clang/lib/Headers/cetintrin.h, _saveprevssp and _setssbsy are declared with
empty argument lists instead of (void), which causes some analysis tools to see
them as variadic.

For reference the Intel and GCC compilers define them with (void) - 

https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=shadow 

https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/cetintrin.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201228/332cb7da/attachment.html>


More information about the llvm-bugs mailing list