This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/64256] New: [5.0 Regression] Pointer Bounds Checker builtins enum overflows stabstring length


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

            Bug ID: 64256
           Summary: [5.0 Regression] Pointer Bounds Checker builtins enum
                    overflows stabstring length
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org

The implementation of pointer bounds checking added an extra version of all
builtins with _CHKP appended, even when -fcheck-pointer-bounds is not enabled.

tree-core.h

/* Codes that identify the various built in functions
   so that expand_call can identify them quickly.  */
#define DEF_BUILTIN(ENUM, N, C, T, LT, B, F, NA, AT, IM, COND) ENUM,
enum built_in_function {
#include "builtins.def"

  BEGIN_CHKP_BUILTINS,

#undef DEF_BUILTIN
#define DEF_BUILTIN(ENUM, N, C, T, LT, B, F, NA, AT, IM, COND) ENUM##_CHKP,
#include "builtins.def"

  END_CHKP_BUILTINS,

the first _CHKP builtin is 1156
END_CHKP_BUILTINS is 2381
END_BUILTINS is 2388

creating a stabstring for the enum over the 64K limit.

This fails when building stage 1 GCC.  All currently deployed GCC compilers
will fail to bootstrap GCC trunk.  Note that AIX VAC++ cannot bootstrap the C++
code in current GCC.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]