From 3ba882c7b51ab1f14c62c748e989415834ccd9ce Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 27 Sep 2023 10:38:54 +0200 Subject: remove workaround for GCC 4.1-4.3 [PR105606] While looking into vec.h, I've noticed we still have a workaround for GCC 4.1-4.3 bugs. As we now use C++11 and thus need to be built by GCC 4.8 or later, I think this is now never used. 2023-09-27 Jakub Jelinek PR c++/105606 * system.h (BROKEN_VALUE_INITIALIZATION): Don't define. * vec.h (vec_default_construct): Remove BROKEN_VALUE_INITIALIZATION workaround. * function.cc (assign_parm_find_data_types): Likewise. --- gcc/function.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gcc/function.cc') diff --git a/gcc/function.cc b/gcc/function.cc index dd2c113..e92384a 100644 --- a/gcc/function.cc +++ b/gcc/function.cc @@ -2429,15 +2429,7 @@ assign_parm_find_data_types (struct assign_parm_data_all *all, tree parm, { int unsignedp; -#ifndef BROKEN_VALUE_INITIALIZATION *data = assign_parm_data_one (); -#else - /* Old versions of GCC used to miscompile the above by only initializing - the members with explicit constructors and copying garbage - to the other members. */ - assign_parm_data_one zero_data = {}; - *data = zero_data; -#endif /* NAMED_ARG is a misnomer. We really mean 'non-variadic'. */ if (!cfun->stdarg) -- cgit v1.1