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

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Jul 6 13:12:36 PDT 2020


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

--- Comment #11 from Ozkan Sezer <sezeroz at gmail.com> ---
(In reply to H. Peter Anvin from comment #10)
> My concern is that there is a serious risk to upgrade a nuisance warning to
> an error on some platforms, or fail to use attributes properly because of
> emitting a warning that has nothing to do with the attributes. There are
> also warnings with gcc 3.4 about unused #pragmas and so on.

Gcc-3.4 was the version that immediately came to my mind when I
wrote my reply: versions newer than that surely are affected, e.g.
gcc-4.2 or 4.3 maybe? (can't remember.) (And, this is a configure-
time check, I don't follow how unsupported pragma warnings apply?)

Besides, this is the same method that AX_GCC_FUNC_ATTRIBUTE uses
(see autoconf-archive), that's why I felt it should be safe here,
too.

> I guess I could simply eliminate the use attributes entirely if
> -Werror=attributes isn't supported, although that isn't a great option
> either.

That would be bad, indeed.

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


More information about the Nasm-bugs mailing list