[Bug target/71070] MPX gives a false positive when allocating a string longer than 16 bytes on the stack

ienkovich at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 20 14:37:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71070

Ilya Enkovich <ienkovich at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ienkovich at gcc dot gnu.org

--- Comment #1 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Couldn't reproduce with these versions:

gcc version 7.0.0 20160520
gcc version 6.1.1 20160520
gcc version 5.3.1 20160520

I always get output:

short string: short string
Allocated a big object
long string: I'm a long string. My size is bigger than 16 bytes

Compilation string used:

g++ pr71070.C -mmpx -fcheck-pointer-bounds -O3


More information about the Gcc-bugs mailing list