diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-05-29 08:40:20 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@gcc.gnu.org> | 2015-05-29 08:40:20 +0000 |
commit | e24afc10e0d4795e71115d161b36fc5406f0df85 (patch) | |
tree | d6375a46135746eb6a0b5529013ddbf4b0267ad4 /libbacktrace/configure | |
parent | c469078de7c017978bda033baff3e991987b5509 (diff) | |
download | gcc-e24afc10e0d4795e71115d161b36fc5406f0df85.zip gcc-e24afc10e0d4795e71115d161b36fc5406f0df85.tar.gz gcc-e24afc10e0d4795e71115d161b36fc5406f0df85.tar.bz2 |
libbacktrace: add support of PE/COFF
libbacktrace/
2015-05-29 Tristan Gingold <gingold@adacore.com>
* pecoff.c: New file.
* Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
* Makefile.in: Regenerate.
* filetype.awk: Detect pecoff.
* configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
Add pecoff.
* btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
true.
* backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
* configure: Regenerate.
* pecoff.c: New file.
From-SVN: r223859
Diffstat (limited to 'libbacktrace/configure')
-rwxr-xr-x | libbacktrace/configure | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libbacktrace/configure b/libbacktrace/configure index fa81659..19418c9 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -607,6 +607,7 @@ NATIVE_TRUE BACKTRACE_USES_MALLOC ALLOC_FILE VIEW_FILE +BACKTRACE_SUPPORTS_DATA BACKTRACE_SUPPORTED FORMAT_FILE BACKTRACE_SUPPORTS_THREADS @@ -11129,7 +11130,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11132 "configure" +#line 11133 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11235,7 +11236,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11238 "configure" +#line 11239 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11826,8 +11827,12 @@ $as_echo "$libbacktrace_cv_sys_filetype" >&6; } # Match the file type to decide what files to compile. FORMAT_FILE= +backtrace_supports_data=yes case "$libbacktrace_cv_sys_filetype" in elf*) FORMAT_FILE="elf.lo" ;; +pecoff) FORMAT_FILE="pecoff.lo" + backtrace_supports_data=no + ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 $as_echo "$as_me: WARNING: could not determine output file type" >&2;} FORMAT_FILE="unknown.lo" @@ -11841,6 +11846,7 @@ elfsize= case "$libbacktrace_cv_sys_filetype" in elf32) elfsize=32 ;; elf64) elfsize=64 ;; +*) elfsize=unused esac cat >>confdefs.h <<_ACEOF @@ -11854,6 +11860,12 @@ if test "$backtrace_supported" = "yes"; then fi +BACKTRACE_SUPPORTS_DATA=0 +if test "$backtrace_supports_data" = "yes"; then + BACKTRACE_SUPPORTS_DATA=1 +fi + + inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |