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

            Bug ID: 83303
           Summary: [8 Regression] FAIL: g++.dg/opt/new1.C on
                    arm-none-eabi (extra -Walloc-size-larger-than warning)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
  Target Milestone: ---

I'm seeing the above test fail on arm-none-eabi configured with
--disable-shared --disable-nls --disable-threads --disable-tls
--enable-checking=yes --enable-languages=c,c++,fortran --with-newlib
--without-isl --disable-multilib.

Apart from the warnings and errors that the test expects we also get an extra
-Walloc-size-larger-than= warning:

In member function 'void QScript::Buffer<T>::reserve(int) [with T =
QScriptValueImpl]',
    inlined from 'void QScript::Buffer<T>::resize(int) [with T =
QScriptValueImpl]' at $TOP/gcc/testsuite/g++.dg/opt/new1.C:37:7,
    inlined from 'void QScript::Ecma::Boolean::newBoolean(QScriptValueImpl*,
bool)' at $TOP/gcc/testsuite/g++.dg/opt/new1.C:63:53:
$TOP/gcc/testsuite/g++.dg/opt/new1.C:40:19: warning: argument 1 range
[2147483648, 4294967295] exceeds maximum object size 2147483647
[-Walloc-size-larger-than=]
$TOP/gcc/testsuite/g++.dg/opt/new1.C: In member function 'void
QScript::Ecma::Boolean::newBoolean(QScriptValueImpl*, bool)':
$TOP/gcc/testsuite/g++.dg/opt/new1.C:40:19: note: in a call to built-in
allocation function 'void* operator new [](unsigned int)'
output is:
In member function 'void QScript::Buffer<T>::reserve(int) [with T =
QScriptValueImpl]',
    inlined from 'void QScript::Buffer<T>::resize(int) [with T =
QScriptValueImpl]' at $TOP/gcc/testsuite/g++.dg/opt/new1.C:37:7,
    inlined from 'void QScript::Ecma::Boolean::newBoolean(QScriptValueImpl*,
bool)' at $TOP/gcc/testsuite/g++.dg/opt/new1.C:63:53:
$TOP/gcc/testsuite/g++.dg/opt/new1.C:40:19: warning: argument 1 range
[2147483648, 4294967295] exceeds maximum object size 2147483647
[-Walloc-size-larger-than=]
$TOP/gcc/testsuite/g++.dg/opt/new1.C: In member function 'void
QScript::Ecma::Boolean::newBoolean(QScriptValueImpl*, bool)':
$TOP/gcc/testsuite/g++.dg/opt/new1.C:40:19: note: in a call to built-in
allocation function 'void* operator new [](unsigned int)'

Reply via email to