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

            Bug ID: 80486
           Summary: spurious -Walloc-size-larger-than and
                    -Wstringop-overflow in dominance.c during
                    profiledbootstrap
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

A profiledbootstrap on powerpc64le and x86_64 shows a bunch of
-Walloc-size-larger-than and -Wstringop-overflow warnings that don't show up
otherwise.  They also don't show when the C++ new expression the former
warnings point is replaced with the libiberty XCNEWVEC and XNEWVEC macros.

/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘memset’: specified size between
18446744065119617024 and 18446744073709551612 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘memset’: specified size between
18446744065119617024 and 18446744073709551612 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:167:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_path_min = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:168:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_key = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:169:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_set_size = new unsigned int[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘__builtin_memset’: specified
size between 18446744065119617024 and 18446744073709551612 exceeds maximum
object size 9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘__builtin_memset’: specified
size between 18446744065119617024 and 18446744073709551612 exceeds maximum
object size 9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:167:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_path_min = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:168:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_key = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:169:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_set_size = new unsigned int[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:39,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:153:6: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];
      ^
/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:39,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:154:10: warning: ‘memset’: specified size
between 18446744065119617024 and 18446744073709551612 exceeds maximum object
size 9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);
          ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:32,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:153:6: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];
      ^
/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:32,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:154:10: warning: ‘memset’: specified size
between 18446744065119617024 and 18446744073709551612 exceeds maximum object
size 9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);
          ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:167:27: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_path_min = new TBB[num];
                           ^
/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:168:22: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_key = new TBB[num];
                      ^
/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:12,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:25:
/src/gcc/trunk/gcc/dominance.c:169:36: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_set_size = new unsigned int[num];
                                    ^
/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:164:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘memset’: specified size between
18446744065119617024 and 18446744073709551612 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:153:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   T *result = new T[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In function ‘new_zero_array’,
    inlined from ‘dom_init’ at /src/gcc/trunk/gcc/dominance.c:165:0,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:154:0: warning: ‘memset’: specified size between
18446744065119617024 and 18446744073709551612 exceeds maximum object size
9223372036854775807 [-Wstringop-overflow=]
   memset (result, 0, sizeof (T) * num);

In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:167:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_path_min = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:168:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_key = new TBB[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘dom_init’,
    inlined from
‘_ZN12_GLOBAL__N_18dom_infoC2EP8function13cdi_direction.isra.8’ at
/src/gcc/trunk/gcc/dominance.c:194:0,
    inlined from ‘verify_dominators’ at /src/gcc/trunk/gcc/dominance.c:1158:0:
/src/gcc/trunk/gcc/dominance.c:169:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   m_set_size = new unsigned int[num];

/src/gcc/trunk/gcc/dominance.c: In function ‘verify_dominators’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
In member function ‘calc_dfs_tree_nonrec’,
    inlined from ‘calc_dfs_tree’ at /src/gcc/trunk/gcc/dominance.c:402:0:
/src/gcc/trunk/gcc/dominance.c:303:0: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
   edge_iterator *stack = new edge_iterator[m_n_basic_blocks + 1];

/src/gcc/trunk/gcc/dominance.c: In member function ‘calc_dfs_tree’:
/src/gcc/trunk/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation
function ‘operator new []’ declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^

Reply via email to