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 other/63694] New: [5.0 Regression] Build error compiling asan.c: strtoull undeclared


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

            Bug ID: 63694
           Summary: [5.0 Regression] Build error compiling asan.c:
                    strtoull undeclared
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
              Host: hppa2.0w-hp-hpux11.11
            Target: hppa2.0w-hp-hpux11.11
             Build: hppa2.0w-hp-hpux11.11

g++ -c   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-
W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-
attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wn
o-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include
-I/opt/gnu/gcc/gmp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnu
mber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace    -o asan.o -MT
asan.o -MMD -MP -MF ./.deps/asan.TPo ../../gcc/gcc/asan.c
../../gcc/gcc/asan.c: In function 'bool set_asan_shadow_offset(const char*)':
../../gcc/gcc/asan.c:267:53: error: 'strtoull' was not declared in this scope
../../gcc/gcc/asan.c:267:53: note: suggested alternative:In file included from
/home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../include/c++/4.7.2/hppa2.0w-hp-hpux11.11/bits/c++config.h:414:
0,
                 from
/home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11
/4.7.2/../../../../include/c++/4.7.2/cstring:43,
                 from ../../gcc/gcc/system.h:211,
                 from ../../gcc/gcc/asan.c:23:
/home/gnu/gcc/gcc-4.7/bin/../lib/gcc/hppa2.0w-hp-hpux11.11/4.7.2/../../../../inc
lude/c++/4.7.2/hppa2.0w-hp-hpux11.11/bits/os_defines.h:69:36: note:  
'std::strt
oull'
make[3]: *** [asan.o] Error 1


bool
set_asan_shadow_offset (const char *val)
{
  char *endp;

  errno = 0;
#ifdef HAVE_LONG_LONG
  asan_shadow_offset_value = strtoull (val, &endp, 0);
#else
  asan_shadow_offset_value = strtoul (val, &endp, 0);
#endif

Maybe asan.c should include "libiberty.h"


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