[Bug 198822] [PATCH] Lack os support for ICC in sys/cdefs.h header

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 23 07:50:22 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198822

            Bug ID: 198822
           Summary: [PATCH] Lack os support for ICC in sys/cdefs.h header
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: sergey.melnikov at intel.com
          Keywords: patch

It looks like for hictorical reasons FreeBSD's header 'sys/cdefs.h' doesn't
recognize ICC as a GNU-support compiler. Thus, few important macroses aren't
defined for ICC.

Details:
During '__GNUCLIKE_BUILTIN_VARARGS', '__GNUCLIKE_BUILTIN_STDARG',
'__GNUCLIKE_BUILTIN_VAALIST' macroses definition pure '__GNUC_MINOR__' and
'__GNUC__' macroses were used as a condition.
I propose to switch condition to '__GNUC_PREREQ__' macro and recognize ICC as a
GNU-compatible compiler.

Proposed fix description:
1. Move '__GNUC_PREREQ__' macro definition to the beginning of 'sys/cdefs.h'
header in order to make it available as a condition for the next point.
2. Change condition of '__GNUCLIKE_BUILTIN_*' macroses definition to
'__GNUC_PREREQ__' macro usage.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list