[Nasm-bugs] [Bug 3392600] disable support for printf attribute on function pointers for old gcc.

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Fri Aug 16 01:41:54 PDT 2019


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

Ozkan Sezer <sezeroz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |OPEN

--- Comment #3 from Ozkan Sezer <sezeroz at gmail.com> ---
Also, the current include/compiler.h undefines everything that
the custom config files (watcom.h or msvc.h) defines. You need
something like the following.  Reopening until these are fixed.

diff --git a/include/compiler.h b/include/compiler.h
index 04cab17..a6f37b9 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -57,6 +57,8 @@
 #ifdef HAVE_CONFIG_H
 # include "config/config.h"
 #else
+/* This unconditionally defines some macros we really want */
+# include "config/unconfig.h"
 # if defined(_MSC_VER) && (_MSC_VER >= 1310)
 #  include "config/msvc.h"
 # elif defined(__WATCOMC__)
@@ -64,8 +66,6 @@
 # else
 #  include "config/unknown.h"
 # endif
-/* This unconditionally defines some macros we really want */
-# include "config/unconfig.h"
 #endif /* Configuration file */

 /* This is required to get the standard <inttypes.h> macros when compiling

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