r198731 - in /trunk: gcc/cp/ChangeLog gcc/cp/ca...
jason@gcc.gnu.org
jason@gcc.gnu.org
Thu May 9 03:58:00 GMT 2013
Author: jason
Date: Thu May 9 03:58:00 2013
New Revision: 198731
URL: http://gcc.gnu.org/viewcvs?rev=198731&root=gcc&view=rev
Log:
Core 624/N2932: Throw bad_array_new_length on overflow
in array new size calculation.
libstdc++-v3/
* libsupc++/new: Add std::bad_array_new_length.
* libsupc++/bad_array_new.cc: New.
* libsupc++/eh_aux_runtime.cc: Add __cxa_throw_bad_array_new_length.
* libsupc++/Makefile.in: Build them.
* config/abi/pre/gnu.ver: Add new symbols.
* config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.
gcc/cp/
* init.c (throw_bad_array_new_length): New.
(build_new_1): Use it. Don't warn about braced-init-list.
(build_vec_init): Use it.
* call.c (build_operator_new_call): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/bad_array_new1.C
trunk/gcc/testsuite/g++.dg/cpp0x/bad_array_new2.C
trunk/libstdc++-v3/libsupc++/bad_array_new.cc
- copied, changed from r198730, trunk/libstdc++-v3/libsupc++/eh_aux_runtime.cc
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/testsuite/g++.dg/cpp0x/initlist21.C
trunk/gcc/testsuite/g++.dg/init/new40.C
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
trunk/libstdc++-v3/config/abi/pre/gnu.ver
trunk/libstdc++-v3/libsupc++/Makefile.in
trunk/libstdc++-v3/libsupc++/cxxabi.h
trunk/libstdc++-v3/libsupc++/eh_aux_runtime.cc
trunk/libstdc++-v3/libsupc++/new
More information about the Gcc-cvs
mailing list