Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2015 07:50:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 198822] [PATCH] Lack os support for ICC in sys/cdefs.h header
Message-ID:  <bug-198822-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: sergey.melnikov@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198822-8>