built-in functions
Segher Boessenkool
segher@kernel.crashing.org
Mon Sep 14 14:21:00 GMT 2015
On Mon, Sep 14, 2015 at 11:11:21AM -0300, Bruno Schneider wrote:
> I'm trying to compile C++ code with the built-in "add with oveflow
> check" functions[1]. But the compiler complains the built-ins have not
> been declared. I'm using g++ 4.9.2.
You need GCC 5 or later for those builtins.
> [1] https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
That is the documentation for the latest released version of the compiler.
onlinedocs/gcc-4.9.2/gcc/ etc. for your specific version.
Segher
More information about the Gcc-help
mailing list