2000-10-07 01:31:22 +02:00
|
|
|
## Makefile for the GNU C++ Support library.
|
|
|
|
##
|
2010-10-05 11:41:57 +02:00
|
|
|
## Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
[multiple changes]
2012-01-20 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/49829
Add libc++98convenience.la, libc++11convenience.la.
* src/c++98: New directory.
* src/c++11: New directory.
* acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
* configure: Regenerated.
* Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
* Makefile.in: Regenerate.
* libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
-fno-implicit-templates.
* libsupc++/Makefile.in: Regenerate.
* src/Makefile.am (inst_sources): Move... C++11 files into
separate directory for libstdc++11convenience.la. Files are:
fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
(sources): Move C++11 files. Files are: compatibility-c++0x.cc,
compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
(libstdc++convenience.la): Add new target.
(SUBDIRS): Add c++11, c++98.
* src/Makefile.in: Regenerate.
* src/c++11/Makefile.am: New.
* src/c++11/Makefile.in: Generate.
* src/c++98/Makefile.am: New, C++98 files.
* src/c++98/Makefile.in: Generate.
2012-01-23 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/49829
Add libc++98convenience.la, libc++11convenience.la.
* src/c++98: New directory.
* src/c++11: New directory.
* acinclude.m4: (GLIBCXX_CONFIGURE): Add src-c++98, src-c++11.
* configure: Regenerated.
* Makefile.am (hosted_source): Add src-c++98, src-c++11 to SUBDIRS.
* Makefile.in: Regenerate.
* libsupc++/Makefile.am (AM_CXXFLAGS): USe XTEMPLATE_FLAGS for
-fno-implicit-templates.
* libsupc++/Makefile.in: Regenerate.
* src/Makefile.am (inst_sources): Move... C++11 files into
separate directory for libstdc++11convenience.la. Files are:
fstream-inst.cc, string-inst.cc, wlocale-inst.cc, wstring-inst.cc).
(sources): Move C++11 files. Files are: compatibility-c++0x.cc,
compatibility-atomic-c++0x.cc, debug.cc, functexcept.cc,
functional.cc, hash_c++0x.cc, hashtable_c++0x.cc, limits.cc,
system_error.cc, placeholders.cc, regex.cc, shared_ptr.cc,
mutex.cc, condition_variable.cc, chrono.cc, thread.cc, future.cc.
(libstdc++convenience.la): Add new target.
(SUBDIRS): Add c++11, c++98.
* src/Makefile.in: Regenerate.
* src/c++11/Makefile.am: New.
* src/c++11/Makefile.in: Generate.
* src/c++98/Makefile.am: New, C++98 files.
* src/c++98/Makefile.in: Generate.
From-SVN: r183457
2012-01-24 00:12:01 +01:00
|
|
|
## 2009, 2010, 2011, 2012
|
2005-11-22 01:19:07 +01:00
|
|
|
## Free Software Foundation, Inc.
|
2000-10-07 01:31:22 +02:00
|
|
|
##
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## This file is part of GCC.
|
2000-10-07 01:31:22 +02:00
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## GCC is free software; you can redistribute it and/or modify
|
2000-10-07 01:31:22 +02:00
|
|
|
## it under the terms of the GNU General Public License as published by
|
2009-04-09 17:00:19 +02:00
|
|
|
## the Free Software Foundation; either version 3, or (at your option)
|
2000-10-07 01:31:22 +02:00
|
|
|
## any later version.
|
|
|
|
##
|
Makefile.am, [...]: Replace "GNU CC" with "GCC".
2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
* libsupc++/Makefile.am, libsupc++/cxxabi.h, libsupc++/del_op.cc,
libsupc++/del_opnt.cc, libsupc++/del_opv.cc, libsupc++/del_opvnt.cc,
libsupc++/eh_alloc.cc, libsupc++/eh_aux_runtime.cc,
libsupc++/eh_catch.cc, libsupc++/eh_exception.cc,
libsupc++/eh_globals.cc, libsupc++/eh_personality.cc,
libsupc++/eh_term_handler.cc, libsupc++/eh_terminate.cc,
libsupc++/eh_throw.cc, libsupc++/eh_type.cc,
libsupc++/eh_unex_handler.cc, libsupc++/exception,
libsupc++/new, libsupc++/new_handler.cc, libsupc++/new_op.cc,
libsupc++/new_opnt.cc, libsupc++/new_opv.cc, libsupc++/new_opvnt.cc,
libsupc++/pure.cc, libsupc++/tinfo.cc, libsupc++/tinfo2.cc,
libsupc++/typeinfo, libsupc++/unwind-cxx.h, libsupc++/vec.cc:
Replace "GNU CC" with "GCC".
From-SVN: r67155
2003-05-24 18:22:03 +02:00
|
|
|
## GCC is distributed in the hope that it will be useful,
|
2000-10-07 01:31:22 +02:00
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
2009-04-09 17:00:19 +02:00
|
|
|
## along with GCC; see the file COPYING3. If not see
|
|
|
|
## <http://www.gnu.org/licenses/>.
|
2000-10-07 01:31:22 +02:00
|
|
|
|
acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES and LIBSUPCXX_INCLUDES.
2003-08-17 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
things from the top level.
* configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
(currently unused). Strip the fake-VPATH shell fragment from
automake-generated rules, if present.
* linkage.m4: Add comment.
* fragment.am: New file, containing factored-out common settings.
(AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
* Makefile.am: Include fragment.am. Remove common variables.
* include/Makefile.am: Likewise.
* libmath/Makefile.am: Likewise.
* libsupc++/Makefile.am: Likewise.
* po/Makefile.am: Likewise. Print rules during check.
* src/Makefile.am: Likewise.
* testsuite/Makefile.am: Likewise.
* aclocal.m4, configure, Makefile.in, include/Makefile.in,
libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
From-SVN: r70522
2003-08-17 22:23:12 +02:00
|
|
|
include $(top_srcdir)/fragment.am
|
2000-10-07 01:31:22 +02:00
|
|
|
|
|
|
|
# Need this library to both be part of libstdc++.a, and installed
|
|
|
|
# separately too.
|
2003-08-27 23:29:43 +02:00
|
|
|
# 1) separate libsupc++.la
|
2000-10-07 01:31:22 +02:00
|
|
|
toolexeclib_LTLIBRARIES = libsupc++.la
|
|
|
|
# 2) integrated libsupc++convenience.la that is to be a part of libstdc++.a
|
|
|
|
noinst_LTLIBRARIES = libsupc++convenience.la
|
|
|
|
|
2011-01-15 01:27:10 +01:00
|
|
|
std_HEADERS = \
|
2012-03-29 08:14:32 +02:00
|
|
|
cxxabi.h exception initializer_list new typeinfo
|
configopts.html: Edit.
2000-10-10 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/configopts.html: Edit.
* libio/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libio/Makefile.in: Regenerate.
* libmath/Makefile.am (INCLUDES): Remove duplicates, simplify.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.am (INCLUDES): Remove duplicate.
* libsupc++/Makefile.in: Regenerate.
* Makefile.am (AM_MAKEFLAGS): Add GLIBCPP_INCLUDES,
TOPLEVEL_INCLUDES, LIBMATH_INCLUDES, LIBIO_INCLUDES,
CSHADOW_INCLUDES up here.
* Makefile.in: Regenerate.
* src/Makefile.am (CSHADOW_INCLUDES): Add include/c_std, include/c
for shadow headers.
(myinstallheaders): Change glibcpp_includedir to GLIBCPP_INCLUDES.
Move GLIBCPP_INCLUDES, TOPLEVEL_INCLUDES, LIBMATH_INCLUDES,
LIBIO_INCLUDES, CSHADOW_INCLUDES up Makefile hierarchy.
* src/Makefile.in: Regenerate.
* include/c: New directory.
* include/c/bits/(std_cassert.h, std_cctype.h, std_cerrno.h,
std_cfloat.h, std_climits.h, std_clocale.h, std_cmath.h,
std_csetjmp.h, std_csignal.h, std_cstdarg.h, std_cstddef.h,
std_cstdio.h, std_cstdlib.h, std_cstring.h, std_ctime.h,
std_cwchar.h, std_cwctype.h): Add, moving from...
* include/bits: ...here.
* include/c_std: New directory.
* include/c_std/bits/*: Populate from...
* shadow: ...here. Remove directory.
From-SVN: r36805
2000-10-09 10:55:06 +02:00
|
|
|
|
2011-01-15 01:27:10 +01:00
|
|
|
bits_HEADERS = \
|
2011-12-01 03:20:32 +01:00
|
|
|
atomic_lockfree_defines.h cxxabi_forced.h \
|
2012-03-29 08:14:32 +02:00
|
|
|
exception_defines.h exception_ptr.h hash_bytes.h nested_exception.h
|
2011-01-15 01:27:10 +01:00
|
|
|
|
|
|
|
headers = $(std_HEADERS) $(bits_HEADERS)
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2004-08-02 22:28:22 +02:00
|
|
|
if GLIBCXX_HOSTED
|
|
|
|
c_sources = \
|
2012-03-29 08:14:32 +02:00
|
|
|
cp-demangle.c
|
2004-08-02 22:28:22 +02:00
|
|
|
endif
|
2004-02-27 04:21:16 +01:00
|
|
|
|
2002-06-20 21:08:42 +02:00
|
|
|
sources = \
|
2007-03-18 23:35:39 +01:00
|
|
|
array_type_info.cc \
|
2007-05-04 19:42:49 +02:00
|
|
|
atexit_arm.cc \
|
2012-10-08 16:45:24 +02:00
|
|
|
atexit_thread.cc \
|
2010-10-05 11:41:57 +02:00
|
|
|
bad_alloc.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
bad_cast.cc \
|
|
|
|
bad_typeid.cc \
|
|
|
|
class_type_info.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
del_op.cc \
|
|
|
|
del_opnt.cc \
|
|
|
|
del_opv.cc \
|
|
|
|
del_opvnt.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
dyncast.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_alloc.cc \
|
Makefile.in: Set and use UNWIND_H.
2005-06-28 Paul Brook <paul@codesourcery.com>
gcc/
* Makefile.in: Set and use UNWIND_H. Install as unwind.h.
* c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
* except.c (add_ehspec_entry): Generate arm eabi filter lists.
(assign_filter_values): Ditto.
(output_ttype): New function.
(output_function_exception_table): Use output_ttype. Generate arm
eabi filter lists.
(default_init_unwind_resume_libfunc): New function.
* except.h (default_init_unwind_resume_libfunc): Add prototype.
* optabs.c (init_optabs): Don't set unwind_resume_libfunc.
* opts.c (decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
(TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
* target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
and arm_eabi_unwinder.
* unwind-c.c: Support Arm EABI unwinder.
* unwind.h: Rename ...
* unwind-generic.h: ... To this.
* doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
(TARGET_UNWID_TABLES_DEFAULT): Document.
* config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
* config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
(TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
Define.
(thumb_pushpop, thumb_output_function_prologue): Output unwinding
directives.
(arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
* config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
!TARGET_UNWIND_INFO.
(ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
* config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
* config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
* config/arm/lib1funcs.asm: Include libunwind.S.
* config/arm/libgcc-bpabi.ver: Add unwinding routines.
* config/arm/libunwind.S: New file.
* config/arm/pr-support.c: New file.
* config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
(UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/unwind-arm.c: New file.
* config/arm/unwind-arm.h: New file.
* config/i386/t-netware (USER_H): Remove unwind.h.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
gcc/cp/
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
* except.c: Include target.h.
(init_exception_processing): Initialize unwind_resume_libfunc.
* doc/tm.texi: Document TARGET_ASM_TTYPE
gcc/ada/
* misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
gcc/java/
* decl.c (java_init_decl_processing): Call
default_init_unwind_resume_libfunc.
gcc/objc/
* objc-act.c (objc_init_exceptions): Call
default_init_unwind_resume_libfunc.
libstdc++/
* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
__cxa_end_cleanup.
* libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
* libsupc++/eh_arm.cc: New file.
* libsupc++/eh_call.cc: New file.
* libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
__gxx_caught_object.
(__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
_Unwind_Complete when using the ARM EABI.
(__cxa_end_catch): Use __is_gxx_exception_class.
* libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
using the ARM EABI.
(save_caught_exception, restore_caught_exception): New functions.
(_throw_typet): New typedef.
(get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
EABI implementations.
(PERSONALITY_FUNCTION): Use new functions. Addd support for ARM EABI
unwinding libary.
(__cxa_unexpected): Disable when using the ARM EABI.
* libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
(__cxa_rethrow): Use __is_gxx_exception_class. Call
_Unwind_RaiseException when using the ARM EABI.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
EABI semantics.
(struct __cxa_eh_globals): Ditto.
(__cxa_call_terminate): Add prototype.
(__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
prototypes.
(__get_exception_header_from_obj, __get_exception_header_from_ue):
Move earlier in file.
(__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
__gxx_caught_object): New functions.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* src/Makefie.in: Regenerate.
* testsuite/makefile.in: Regenerate.
From-SVN: r101385
2005-06-28 21:52:27 +02:00
|
|
|
eh_arm.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_aux_runtime.cc \
|
Makefile.in: Set and use UNWIND_H.
2005-06-28 Paul Brook <paul@codesourcery.com>
gcc/
* Makefile.in: Set and use UNWIND_H. Install as unwind.h.
* c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
* except.c (add_ehspec_entry): Generate arm eabi filter lists.
(assign_filter_values): Ditto.
(output_ttype): New function.
(output_function_exception_table): Use output_ttype. Generate arm
eabi filter lists.
(default_init_unwind_resume_libfunc): New function.
* except.h (default_init_unwind_resume_libfunc): Add prototype.
* optabs.c (init_optabs): Don't set unwind_resume_libfunc.
* opts.c (decode_options): Use targetm.unwind_tables_default.
* target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
(TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
* target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
and arm_eabi_unwinder.
* unwind-c.c: Support Arm EABI unwinder.
* unwind.h: Rename ...
* unwind-generic.h: ... To this.
* doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
(TARGET_UNWID_TABLES_DEFAULT): Document.
* config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
* config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
(TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
Define.
(thumb_pushpop, thumb_output_function_prologue): Output unwinding
directives.
(arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
* config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
!TARGET_UNWIND_INFO.
(ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
* config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
* config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
* config/arm/lib1funcs.asm: Include libunwind.S.
* config/arm/libgcc-bpabi.ver: Add unwinding routines.
* config/arm/libunwind.S: New file.
* config/arm/pr-support.c: New file.
* config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
(UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
* config/arm/unwind-arm.c: New file.
* config/arm/unwind-arm.h: New file.
* config/i386/t-netware (USER_H): Remove unwind.h.
* config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
gcc/cp/
* Make-lang.in (cp/except.o): Depend on $(TARGET_H)
* except.c: Include target.h.
(init_exception_processing): Initialize unwind_resume_libfunc.
* doc/tm.texi: Document TARGET_ASM_TTYPE
gcc/ada/
* misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
gcc/java/
* decl.c (java_init_decl_processing): Call
default_init_unwind_resume_libfunc.
gcc/objc/
* objc-act.c (objc_init_exceptions): Call
default_init_unwind_resume_libfunc.
libstdc++/
* acinclude.m4 (GLIBCXX_ENABLE_SJLJ_EXCEPTIONS): Check for
__cxa_end_cleanup.
* libsupc++/Makefile.am (sources): Add eh_call.c and eh_arm.c.
* libsupc++/eh_arm.cc: New file.
* libsupc++/eh_call.cc: New file.
* libsupc++/eh_catch.cc (__cxa_get_exception_ptr): Use
__gxx_caught_object.
(__cxa_begin_catch): Ditto. Use __is_gxx_exception_class. Call
_Unwind_Complete when using the ARM EABI.
(__cxa_end_catch): Use __is_gxx_exception_class.
* libsupc++/eh_personality.cc: Define NO_SIZE_OF_ENCODED_VALUE when
using the ARM EABI.
(save_caught_exception, restore_caught_exception): New functions.
(_throw_typet): New typedef.
(get_ttype_entry, get_adjusted_ptr, check_exception_spec): Add ARM
EABI implementations.
(PERSONALITY_FUNCTION): Use new functions. Addd support for ARM EABI
unwinding libary.
(__cxa_unexpected): Disable when using the ARM EABI.
* libsupc++/eh_throw.cc (__cxa_throw): Use __GXX_INIT_EXCEPTION_CLASS.
(__cxa_rethrow): Use __is_gxx_exception_class. Call
_Unwind_RaiseException when using the ARM EABI.
* libsupc++/unwind-cxx.h (struct __cxa_exception): Add fields for ARM
EABI semantics.
(struct __cxa_eh_globals): Ditto.
(__cxa_call_terminate): Add prototype.
(__cxa_type_match, __cxa_begin_cleanup, __cxa_end_cleanup): Add
prototypes.
(__get_exception_header_from_obj, __get_exception_header_from_ue):
Move earlier in file.
(__is_gxx_exception_class, __GXX_INIT_EXCEPTION_CLASS,
__gxx_caught_object): New functions.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* libmath/Makefile.in: Regenerate.
* libsupc++/Makefile.in: Regenerate.
* po/Makefile.in: Regenerate.
* src/Makefie.in: Regenerate.
* testsuite/makefile.in: Regenerate.
From-SVN: r101385
2005-06-28 21:52:27 +02:00
|
|
|
eh_call.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_catch.cc \
|
|
|
|
eh_exception.cc \
|
|
|
|
eh_globals.cc \
|
|
|
|
eh_personality.cc \
|
[multiple changes]
2008-08-23 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/lib/libstdc++.exp (check_v3_target_atomic_builtins): Add.
* testsuite/lib/dg-options.exp (dg-require-atomic-builtins): Likewise.
* testsuite/18_support/exception_ptr/current_exception.cc: Use it.
* testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
* testsuite/18_support/exception_ptr/lifespan.cc: Likewise.
2008-08-23 Sebastian Redl <sebastian.redl@getdesigned.at>
Add (again) exception propagation support as per N2179. Feature is
available only when _GLIBCXX_ATOMIC_BUILTINS_4 is defined.
* libsupc++/exception_ptr.h (exception_ptr, current_exception,
copy_exception, rethrow_exception): New file, implement exception
propagation.
* libsupc++/eh_ptr.cc (exception_ptr, current_exception,
rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
* libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
(__cxa_dependent_exception, __cxa_allocate_dependent_exception,
__cxa_free_dependent_exception, __get_dependent_exception_from_ue,
__GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
__gxx_dependent_exception_class, __get_object_from_ue,
__get_object_from_ambiguous_exception): Add.
(__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
(__is_gxx_exception_class): Handle dependent exceptions.
* libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
* libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
* libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
* libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
* libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
__cxa_free_dependent_exception): Add.
* libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
counting.
* libsupc++/exception: Conditionally include exception_ptr.h.
* libsupc++/Makefile.am: Register new files.
* libsupc++/Makefile.in: Regenerate.
* config/abi/pre/gnu.ver: Add new symbols.
* testsuite/18_support/exception_ptr/current_exception.cc: Test the
core functionality of current_exception().
* testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
core functionality of rethrow_exception().
* testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
exception objects during exception propagation.
From-SVN: r139509
2008-08-23 13:28:30 +02:00
|
|
|
eh_ptr.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
eh_term_handler.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_terminate.cc \
|
2011-11-08 12:13:41 +01:00
|
|
|
eh_tm.cc \
|
2001-03-28 13:04:51 +02:00
|
|
|
eh_throw.cc \
|
2001-11-18 03:09:23 +01:00
|
|
|
eh_type.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
eh_unex_handler.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
enum_type_info.cc \
|
|
|
|
function_type_info.cc \
|
|
|
|
fundamental_type_info.cc \
|
2002-11-26 00:17:31 +01:00
|
|
|
guard.cc \
|
2011-02-10 00:22:27 +01:00
|
|
|
guard_error.cc \
|
2010-09-22 10:19:08 +02:00
|
|
|
hash_bytes.cc \
|
2011-03-15 01:24:08 +01:00
|
|
|
nested_exception.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
new_handler.cc \
|
|
|
|
new_op.cc \
|
|
|
|
new_opnt.cc \
|
|
|
|
new_opv.cc \
|
|
|
|
new_opvnt.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
pbase_type_info.cc \
|
|
|
|
pmem_type_info.cc \
|
|
|
|
pointer_type_info.cc \
|
2000-10-09 23:04:58 +02:00
|
|
|
pure.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
si_class_type_info.cc \
|
2000-10-07 01:31:22 +02:00
|
|
|
tinfo.cc \
|
|
|
|
tinfo2.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
vec.cc \
|
2007-03-18 23:35:39 +01:00
|
|
|
vmi_class_type_info.cc \
|
2002-12-26 07:10:35 +01:00
|
|
|
vterminate.cc
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2012-03-29 08:14:32 +02:00
|
|
|
libsupc___la_SOURCES = $(sources) $(c_sources)
|
2004-02-27 04:21:16 +01:00
|
|
|
libsupc__convenience_la_SOURCES = $(sources) $(c_sources)
|
2000-10-07 01:31:22 +02:00
|
|
|
|
2004-02-27 04:21:16 +01:00
|
|
|
cp-demangle.c:
|
|
|
|
rm -f $@
|
|
|
|
$(LN_S) $(toplevel_srcdir)/libiberty/cp-demangle.c $@
|
|
|
|
cp-demangle.lo: cp-demangle.c
|
|
|
|
$(LTCOMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
|
|
|
cp-demangle.o: cp-demangle.c
|
|
|
|
$(C_COMPILE) -DIN_GLIBCPP_V3 -Wno-error -c $<
|
|
|
|
|
|
|
|
|
2011-12-01 03:20:32 +01:00
|
|
|
# Use special rules for the C++0x sources so that the proper flags are passed.
|
|
|
|
eh_ptr.lo: eh_ptr.cc
|
|
|
|
$(LTCXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
eh_ptr.o: eh_ptr.cc
|
|
|
|
$(CXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
|
|
|
|
eh_throw.lo: eh_throw.cc
|
|
|
|
$(LTCXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
eh_throw.o: eh_throw.cc
|
|
|
|
$(CXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
|
|
|
|
guard.lo: guard.cc
|
|
|
|
$(LTCXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
guard.o: guard.cc
|
|
|
|
$(CXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
|
2012-10-08 16:45:24 +02:00
|
|
|
atexit_thread.lo: atexit_thread.cc
|
|
|
|
$(LTCXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
atexit_thread.o: atexit_thread.cc
|
|
|
|
$(CXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
|
2011-03-15 01:24:08 +01:00
|
|
|
nested_exception.lo: nested_exception.cc
|
|
|
|
$(LTCXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
nested_exception.o: nested_exception.cc
|
|
|
|
$(CXXCOMPILE) -std=gnu++0x -c $<
|
|
|
|
|
2012-09-20 04:10:22 +02:00
|
|
|
# AM_CXXFLAGS needs to be in each subdirectory so that it can be
|
|
|
|
# modified in a per-library or per-sub-library way. Need to manually
|
|
|
|
# set this option because CONFIG_CXXFLAGS has to be after
|
|
|
|
# OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
|
|
|
|
# as the occasion call for it.
|
|
|
|
AM_CXXFLAGS = \
|
|
|
|
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
|
|
|
|
$(XTEMPLATE_FLAGS) \
|
|
|
|
$(WARN_CXXFLAGS) $(OPTIMIZE_CXXFLAGS) $(CONFIG_CXXFLAGS)
|
|
|
|
|
|
|
|
AM_MAKEFLAGS = \
|
|
|
|
"gxx_include_dir=$(gxx_include_dir)"
|
2000-10-17 12:12:23 +02:00
|
|
|
|
|
|
|
|
2012-09-20 04:10:22 +02:00
|
|
|
# Use special rules for pulling things out of libiberty. These
|
|
|
|
# objects should be compiled with the "C" compiler, not the C++
|
|
|
|
# compiler, and also should not use the C++ includes.
|
|
|
|
C_INCLUDES = -I.. -I$(toplevel_srcdir)/libiberty -I$(toplevel_srcdir)/include
|
|
|
|
C_COMPILE = \
|
|
|
|
$(CC) $(DEFS) $(C_INCLUDES) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
|
|
|
|
|
# LTCOMPILE is copied from LTCXXCOMPILE below.
|
|
|
|
LTCOMPILE = $(LIBTOOL) --tag CC --tag disable-shared $(LIBTOOLFLAGS) --mode=compile \
|
|
|
|
$(CC) $(DEFS) $(C_INCLUDES) \
|
|
|
|
$(glibcxx_lt_pic_flag) $(glibcxx_compiler_shared_flag) \
|
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
|
|
|
|
|
# Libtool notes
|
|
|
|
|
|
|
|
# 1) In general, libtool expects an argument such as `--tag=CXX' when
|
2000-10-17 12:12:23 +02:00
|
|
|
# using the C++ compiler, because that will enable the settings
|
|
|
|
# detected when C++ support was being configured. However, when no
|
|
|
|
# such flag is given in the command line, libtool attempts to figure
|
|
|
|
# it out by matching the compiler name in each configuration section
|
|
|
|
# against a prefix of the command line. The problem is that, if the
|
|
|
|
# compiler name and its initial flags stored in the libtool
|
|
|
|
# configuration file don't match those in the command line, libtool
|
|
|
|
# can't decide which configuration to use, and it gives up. The
|
|
|
|
# correct solution is to add `--tag CXX' to LTCXXCOMPILE and maybe
|
|
|
|
# CXXLINK, just after $(LIBTOOL), so that libtool doesn't have to
|
2001-01-23 09:57:34 +01:00
|
|
|
# attempt to infer which configuration to use.
|
2012-09-20 04:10:22 +02:00
|
|
|
#
|
|
|
|
# The second tag argument, `--tag disable-shared` means that libtool
|
|
|
|
# only compiles each source once, for static objects. In actuality,
|
|
|
|
# glibcxx_lt_pic_flag and glibcxx_compiler_shared_flag are added to
|
|
|
|
# the libtool command that is used create the object, which is
|
|
|
|
# suitable for shared libraries. The `--tag disable-shared` must be
|
|
|
|
# placed after --tag CXX lest things CXX undo the affect of
|
|
|
|
# disable-shared.
|
|
|
|
|
2012-09-29 06:08:17 +02:00
|
|
|
# 2) Need to explicitly set LTCXXCOMPILE so that EXTRA_CXX_FLAGS is
|
2012-09-20 04:10:22 +02:00
|
|
|
# last. (That way, things like -O2 passed down from the toplevel can
|
|
|
|
# be overridden by --enable-debug.)
|
2012-03-29 08:14:32 +02:00
|
|
|
LTCXXCOMPILE = \
|
|
|
|
$(LIBTOOL) --tag CXX --tag disable-shared \
|
|
|
|
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|
|
|
--mode=compile $(CXX) $(TOPLEVEL_INCLUDES) \
|
2012-09-29 06:08:17 +02:00
|
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(EXTRA_CXX_FLAGS)
|
2000-10-07 03:05:37 +02:00
|
|
|
|
2006-01-03 01:30:27 +01:00
|
|
|
LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
|
|
|
|
|
2001-03-28 03:19:42 +02:00
|
|
|
# 3) We'd have a problem when building the shared libstdc++ object if
|
|
|
|
# the rules automake generates would be used. We cannot allow g++ to
|
|
|
|
# be used since this would add -lstdc++ to the link line which of
|
|
|
|
# course is problematic at this point. So, we get the top-level
|
|
|
|
# directory to configure libstdc++-v3 to use gcc as the C++
|
|
|
|
# compilation driver.
|
2012-03-29 08:14:32 +02:00
|
|
|
CXXLINK = \
|
|
|
|
$(LIBTOOL) --tag CXX --tag disable-shared \
|
|
|
|
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
|
|
|
--mode=link $(CXX) \
|
|
|
|
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
|
2011-01-15 01:27:10 +01:00
|
|
|
|
|
|
|
# Install notes
|
2001-06-04 04:24:06 +02:00
|
|
|
# We have to have rules modified from the default to counteract SUN make
|
2011-01-15 01:27:10 +01:00
|
|
|
# prepending each of $(*_HEADERS) with VPATH below.
|
|
|
|
stddir = $(gxx_include_dir)
|
|
|
|
bitsdir = $(gxx_include_dir)/bits
|
|
|
|
|
|
|
|
install-stdHEADERS: $(std_HEADERS)
|
2001-06-04 04:24:06 +02:00
|
|
|
@$(NORMAL_INSTALL)
|
2011-01-15 01:27:10 +01:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(stddir)
|
|
|
|
@list='$(std_HEADERS)'; for p in $$list; do \
|
2001-06-04 04:24:06 +02:00
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
|
|
|
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
2011-01-15 01:27:10 +01:00
|
|
|
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(stddir)/$$q"; \
|
|
|
|
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(stddir)/$$q; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install-bitsHEADERS: $(bits_HEADERS)
|
|
|
|
@$(NORMAL_INSTALL)
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(bitsdir)
|
|
|
|
@list='$(bits_HEADERS)'; for p in $$list; do \
|
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
|
|
|
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
|
|
|
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(bitsdir)/$$q"; \
|
|
|
|
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(bitsdir)/$$q; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-stdHEADERS:
|
|
|
|
@$(NORMAL_UNINSTALL)
|
|
|
|
list='$(std_HEADERS)'; for p in $$list; do \
|
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
|
|
|
rm -f $(DESTDIR)$(stddir)/$$q; \
|
2001-06-04 04:24:06 +02:00
|
|
|
done
|
|
|
|
|
2011-01-15 01:27:10 +01:00
|
|
|
uninstall-bitsHEADERS:
|
2001-06-04 04:24:06 +02:00
|
|
|
@$(NORMAL_UNINSTALL)
|
2011-01-15 01:27:10 +01:00
|
|
|
list='$(bits_HEADERS)'; for p in $$list; do \
|
2001-06-04 04:24:06 +02:00
|
|
|
q=`echo $$p | sed -e 's,.*/,,'`; \
|
2011-01-15 01:27:10 +01:00
|
|
|
rm -f $(DESTDIR)$(bitsdir)/$$q; \
|
2001-06-04 04:24:06 +02:00
|
|
|
done
|