This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[c++] Fix pr58525


Hi,

__cxa_throw_bad_array_new_length and __cxa_throw_bad_array_new_length
are generated with -fno-exceptions right now. The attached patch fixes
that problem. Bootstrapped and regtested on x86_64-unknown-linux-gnu:

2013-10-07  Alexander Ivchenko  <alexander.ivchenko@intel.com>

        * gcc/cp/call.c (build_operator_new_call): Add flag_exceptions check.
        * gcc/cp/decl.c (cp_finish_decl): Ditto.
        * gcc/cp/init.c (build_new_1): Ditto.
        (build_vec_init): Ditto.



Is it ok?

--Alexander

Attachment: fix_58525.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]