[Nasm-bugs] [Bug 3392596] New: PA_FUNC_ATTRIBUTE: handle compilers with no support for -Werror=attributes

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Fri Aug 9 14:42:33 PDT 2019


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

            Bug ID: 3392596
           Summary: PA_FUNC_ATTRIBUTE: handle compilers with no support
                    for -Werror=attributes
           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 411731
  --> https://bugzilla.nasm.us/attachment.cgi?id=411731&action=edit
PA_FUNC_ATTRIBUTE patch

gcc versions without -Werror=attributes only print a warning to stderr
for unsupported attributes and continue compiling exiting gracefully at
the end if no other errors. So. PA_FUNC_ATTRIBUTE would return success
in such cases.

This solution follows the same method used in AX_GCC_FUNC_ATTRIBUTE from
autoconf-archive by checking a non-empty conftest.err file and returning
failure if there is one.


I don't know if there is any better way of handling this.

-- 
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