Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
4c8d5459
Commit
4c8d5459
authored
Nov 14, 2013
by
Jens Gustedt
Browse files
adjust for a more recent version of icc
parent
2f6a73c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
p99/p99_c99.h
View file @
4c8d5459
...
...
@@ -74,13 +74,13 @@
#endif
/* Additions by C11 */
#
if
__STDC_VERSION__ > 201100L
#
if p99_has_feature(
stdatomic
_h)
#
include <stdatomic.h>
#
endif
#
if p99_has_feature(
threads
_h)
#
include <threads.h>
#
endif
#if
p99_has_feature(stdatomic_h)
#
include <
stdatomic
.h>
#
endif
#
if p99_has_feature(threads_h)
#
include <
threads
.h>
#
endif
#
if __STDC_VERSION__ > 201100L
# else
# ifndef __STDC_NO_COMPLEX__
/* The CMPLX macros expand to an expression of the specified complex
...
...
p99/p99_compiler.h
View file @
4c8d5459
...
...
@@ -392,8 +392,14 @@ signed p00_trailing_comma_in_initializer__(void) {
#if P99_COMPILER & P99_COMPILER_INTEL
# define p99_inline __attribute__((__always_inline__)) inline
# if defined(__GNUC__) && defined(p00_has_feature_tgmath_h)
# undef p00_has_feature_tgmath_h
# if __INTEL_COMPILER < 1310
# if defined(__GNUC__) && defined(p00_has_feature_tgmath_h)
# undef p00_has_feature_tgmath_h
# endif
# else
/* Intel now has stdatomic.h, but we still have to integrate this with
the rest of the atomic stuff. */
//# define p00_has_feature_stdatomic_h 1
# endif
#elif P99_COMPILER & P99_COMPILER_PCC
...
...
@@ -1019,6 +1025,8 @@ P00_DOCUMENT_NUMBER_ARGUMENT(P99_VECTOR, 2)
P99_IF_COMPILER
(
INTEL
,
warning
(
disable
:
1418
))
/* external function definition with no prior declaration */
P99_IF_COMPILER
(
INTEL
,
warning
(
disable
:
1419
))
/* external declaration in primary source file */
P99_IF_COMPILER
(
INTEL
,
warning
(
disable
:
557
))
/* pointless comparison of unsigned integer with a negative constant */
P99_IF_COMPILER
(
INTEL
,
warning
(
disable
:
283
))
/* duplicate specifier in declaration */
/* Warnings on initializers are a plague. They are responsible for the
fact that many people don't use default initializers where they
...
...
@@ -1028,9 +1036,6 @@ P99_IF_COMPILER(INTEL, warning(disable: 1419)) /* external declaration in primar
P99_IF_COMPILER
(
GNU
,
GCC
diagnostic
ignored
"-Wmissing-braces"
)
P99_IF_COMPILER
(
GNU
,
GCC
diagnostic
ignored
"-Wmissing-field-initializers"
)
P99_IF_COMPILER
(
INTEL
,
GCC
diagnostic
ignored
"-Wmissing-braces"
)
P99_IF_COMPILER
(
INTEL
,
GCC
diagnostic
ignored
"-Wmissing-field-initializers"
)
P99_IF_COMPILER
(
OPEN64
,
GCC
diagnostic
ignored
"-Wmissing-braces"
)
P99_IF_COMPILER
(
OPEN64
,
GCC
diagnostic
ignored
"-Wmissing-field-initializers"
)
...
...
@@ -1079,7 +1084,7 @@ P99_PRAGMA(GCC diagnostic ignored "-Winitializer-overrides")
** features. Otherwise this just ignored
**/
#if
__GNUC__
#if
P99_COMPILER & (P99_COMPILER_GNU | P99_COMPILER_CLANG)
#define P99_WARN_REDUNDANT_DECLS_PUSH \
P99_PRAGMA(GCC diagnostic push) \
P99_PRAGMA(GCC diagnostic ignored "-Wredundant-decls")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment