-std=gnu++14
instead of
-std=gnu++98
.-fsanitize=bounds-strict
, which enables strict checking
of array bounds. In particular, it enables
-fsanitize=bounds
as well as instrumentation of
flexible array member-like arrays.enum { newval, oldval __attribute__ ((deprecated ("too old"))) };
format-strings.c:3:14: warning: field width specifier '*' expects a matching 'int' argument [-Wformat=] printf("%*d"); ^
-Wshift-negative-value
warns about left shifting a
negative value.-Wshift-overflow
warns about left shift overflows.
This warning is enabled by default.
-Wshift-overflow=2
also warns about left-shifting 1 into
the sign bit.-Wtautological-compare
warns if a self-comparison
always evaluates to true or false. This warning is enabled by
-Wall
.-Wnull-dereference
warns if the compiler detects paths
that trigger erroneous or undefined behavior due to dereferencing a
null pointer. This option is only active when
-fdelete-null-pointer-checks
is active, which is enabled
by optimizations in most targets. The precision of the warnings
depends on the optimization options used.-Woverride-init-side-effects
.-std=gnu++14
.-std=gnu++1z
or -std=c++1z
.std::uncaught_exceptions
function (this is also
available for -std=gnu++NN modes); try_emplace
and
insert_or_assign
for unique_key maps;std::size
,
std::empty
, and std::data
for
accessing containers and arrays;std::shared_mutex
;std::void_t
and std::bool_constant
utilities. MATMUL
intrinsic is now inlined for straightforward
cases if front-end optimization is active. The maximum size for
inlining can be set to n
with the
-finline-matmul-limit=n
option and turned off
with -finline-matmul-llimit=0
.-Wconversion-extra
option will warn about
REAL
constants which have excess precision for
their kind.-Winteger-division
option has been added, which
warns about divisions of integer constants which are truncated.
This option is included in -Wall
by default.-march=native
,
-mcpu=native
and -mtune=native
are now
available on native AArch64 GNU/Linux systems. Specifying
these options will cause GCC to auto-detect the host CPU and
rewrite these options to the optimal setting for that system.
If GCC is unable to detect the host CPU these options have no effect.
-fpic
is now supported by the AArch64 target when generating
code for the small code model (-mcmodel=small
). The size of
the global offset table (GOT) is limited to 28KiB under the LP64 SysV ABI
, and 15KiB under the ILP32 SysV ABI.
monitorx
and
mwaitx
has been added. This includes new intrinsic
and built-in support. It is enabled through option -mmwaitx
.
The instructions monitorx
and mwaitx
implement the same functionality as the old monitor
and mwait
instructions. In addition mwaitx
adds a configurable timer. The timer value is received as third
argument and stored in register %ebx
.
The MSP430 compiler now has the ability to automatically distribute code and data between low memory (addresses below 64K) and high memory. This only applies to parts that actually have both memory regions and only if the linker script for the part has been specifically set up to support this feature.
A new attribute of either
can be applied to both functions
and data, and this tells the compiler to place the object into low memory
if there is room and into high memory otherwise. Two other new attributes
- lower
and upper
- can be used to explicitly
state that an object should be placed in the specified memory region. If
there is not enough left in that region the compilation will fail.
Two new command-line options - -mcode-region=[lower|upper|either]
and -mdata-region=[lower|upper|either]
- can be used to tell
the compiler what to do with objects that do not have one of these new
attributes.
A new configuration option ---with-advance-toolchain=at
was added for PowerPC 64-bit GNU/Linux systems to use the header files, library
files, and the dynamic linker from a specific Advance Toolchain release
instead of the default versions that are provided by the GNU/Linux
distribution. In general, this option is intended for the developers of
GCC, and it is not intended for general use.
--enable-default-pie
configure option enables
generation of PIE by default.Copyright (C) Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
These pages are maintained by the GCC team. Last modified 2015-09-08.