[Nasm-bugs] [Bug 3392601] New: make -pedantic optional

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sat Aug 10 06:04:19 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392601

            Bug ID: 3392601
           Summary: make -pedantic optional
           Product: NASM
           Version: unspecified
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: sezeroz at gmail.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

Created attachment 411735
  --> https://bugzilla.nasm.us/attachment.cgi?id=411735&action=edit
pedantic-optional patch

The attached patch makes -pedantic optional:
it can be way too loud with newer gcc:

With clang-3.4.2:
./include/nasmlib.h:184:1: warning: _Noreturn functions are a C11-specific
feature [-Wc11-extensions]
fatal_func nasm_assert_failed(const char *, int, const char *);
^
./include/compiler.h:333:20: note: expanded from macro 'fatal_func'
#define fatal_func no_return unlikely_func
                   ^
./include/compiler.h:310:20: note: expanded from macro 'no_return'
# define no_return noreturn void
                   ^
/opt/clang/bin/../lib/clang/3.4.2/include/stdnoreturn.h:27:18: note: expanded
from macro 'noreturn'
#define noreturn _Noreturn
                 ^

With gcc-4.9.4:
In file included from ./include/nasm.h:45:0,
                 from asm/nasm.c:41:
./include/nasmlib.h:184:12: warning: ISO C99 does not support '_Noreturn'
[-Wpedantic]
 fatal_func nasm_assert_failed(const char *, int, const char *);
            ^

And with gcc-2.95 (I know it matters only to retro-dinosours like me ;)):
In file included from include/iflag.h:5,
                 from include/insns.h:14,
                 from asm/nasm.c:49:
include/ilog2.h:130: too many `l's in integer constant
make: *** [asm/nasm.o] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list