gcc/libstdc++-v3/libsupc++
Jason Merrill 0138d6b24f N3639 C++1y VLA support
gcc/
	* gimplify.c (gimplify_vla_decl): Don't touch an existing
	DECL_VALUE_EXPR.
gcc/cp/
	* decl.c (compute_array_index_type): Allow VLAs in C++1y mode.
	(check_array_initializer): Allow VLA init.
	(reshape_init_array_1): Adjust.
	(cp_finish_decl): Check for invalid VLA length.
	* typeck2.c (process_init_constructor_array): Adjust.
	(store_init_value): Use build_vec_init for VLAs.
	* semantics.c (add_capture): Capture VLA as ptr+len.
	(vla_capture_type): New.
	(build_capture_proxy): Rebuild the VLA.
	* typeck.c (build_simple_component_ref): Split out from...
	(build_ptrmemfunc_access_expr): ...here.
	* tree.c (array_of_runtime_bound_p): New.
	* init.c (throw_bad_array_length): New.
	(build_vec_init): Use it.
	* parser.c (cp_convert_range_for): When iterating over a VLA,
	use it directly rather than bind a reference.
	* cp-tree.h: Declare new functions.
libstdc++-v3/
	* libsupc++/new: Add std::bad_array_length.
	* libsupc++/bad_array_length.cc: New.
	* libsupc++/eh_aux_runtime.cc: Add __cxa_bad_array_length.
	* libsupc++/Makefile.in: Build them.
	* config/abi/pre/gnu.ver: Add new symbols.
	* config/abi/pre/gnu-versioned-namespace.ver: Add new symbols.

From-SVN: r198745
2013-05-09 12:43:36 -04:00
..
Makefile.am exception (get_terminate(), [...]): Declare. 2013-04-03 01:08:54 +01:00
Makefile.in N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
array_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
atexit_arm.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
atexit_thread.cc configure.ac: Check for __cxa_thread_atexit_impl. 2013-02-25 23:39:04 -05:00
atomic_lockfree_defines.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
bad_alloc.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
bad_array_length.cc N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
bad_array_new.cc Core 624/N2932: Throw bad_array_new_length on overflow 2013-05-08 23:58:00 -04:00
bad_cast.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
bad_typeid.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
class_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
cxxabi.h N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
cxxabi_forced.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
del_op.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
del_opnt.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
del_opv.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
del_opvnt.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
dyncast.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_alloc.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_arm.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_aux_runtime.cc N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
eh_call.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_catch.cc unwind-cxx.h: Include sys/sdt.h if detected. 2013-03-15 09:55:07 +01:00
eh_exception.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_globals.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_personality.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_ptr.cc re PR libstdc++/56841 (ld: Unsatisfied symbol "__atomic_exchange_8" in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]) 2013-04-05 11:03:04 +01:00
eh_term_handler.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_terminate.cc re PR libstdc++/56841 (ld: Unsatisfied symbol "__atomic_exchange_8" in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]) 2013-04-05 11:03:04 +01:00
eh_throw.cc re PR libstdc++/56841 (ld: Unsatisfied symbol "__atomic_exchange_8" in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]) 2013-04-05 11:03:04 +01:00
eh_tm.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_type.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
eh_unex_handler.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
enum_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
exception exception (get_terminate(), [...]): Declare. 2013-04-03 01:08:54 +01:00
exception_defines.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
exception_ptr.h re PR libstdc++/56905 ([C++11][DR 1130] std::copy_exception should be removed or no longer be used) 2013-04-24 23:00:16 +01:00
function_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
fundamental_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
guard.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
guard_error.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
hash_bytes.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
hash_bytes.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
initializer_list * libsupc++/initializer_list: Fix typos. 2013-04-24 11:04:33 -04:00
nested_exception.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
nested_exception.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
new N3639 C++1y VLA support 2013-05-09 12:43:36 -04:00
new_handler.cc re PR libstdc++/56841 (ld: Unsatisfied symbol "__atomic_exchange_8" in file /test/gnu/gcc/objdir/prev-hppa64-hp-hpux11.11/libstdc++-v3/src/.libs/libstdc++.a[eh_terminate.o]) 2013-04-05 11:03:04 +01:00
new_op.cc exception (get_terminate(), [...]): Declare. 2013-04-03 01:08:54 +01:00
new_opnt.cc exception (get_terminate(), [...]): Declare. 2013-04-03 01:08:54 +01:00
new_opv.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
new_opvnt.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
pbase_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
pmem_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
pointer_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
pure.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
si_class_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
tinfo.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
tinfo.h Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
tinfo2.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
typeinfo Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
unwind-cxx.h unwind-cxx.h: Include sys/sdt.h if detected. 2013-03-15 09:55:07 +01:00
vec.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
vmi_class_type_info.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
vterminate.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00