This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libgcj/10609: --enable-debug: different meanings for libstdc++v3 and libffi
- From: Matthias Klose <doko at net dot local>
- To: gcc-gnats at gcc dot gnu dot org, debian-gcc at lists dot debian dot org
- Date: Sat, 03 May 2003 08:54:25 +0200
- Subject: libgcj/10609: --enable-debug: different meanings for libstdc++v3 and libffi
>Number: 10609
>Category: libgcj
>Synopsis: --enable-debug: different meanings for libstdc++v3 and libffi
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Sat May 03 06:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Matthias Klose
>Release: 3.3 20030429 (Debian prerelease) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux tango 2.4.20-xfs #1 Thu Dec 19 01:48:10 CET 2002 i686 unknown unknown GNU/Linux
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
>Description:
[choosing category libgcj instead of missing libffi]
Configuring with --enable-debug, which is supposed to build an additional
debug library for libstdc++v3, libffi is configured for debug mode as well.
libffi does not build an addition debug library, but encodes debugging
into the standard library (FFI_DEBUG/FFI_ASSERT).
>How-To-Repeat:
>Fix:
A workaround is to disable the debug configuration for libffi at all.
--- libffi/configure.in~ 2003-05-03 00:40:01.000000000 +0200
+++ libffi/configure.in 2003-05-03 08:39:28.000000000 +0200
@@ -140,12 +140,6 @@
AC_SUBST(SHELL)
-AC_ARG_ENABLE(debug,
-[ --enable-debug debugging mode],
- if test "$enable_debug" = "yes"; then
- AC_DEFINE(FFI_DEBUG)
- fi)
-
AC_ARG_ENABLE(structs,
[ --disable-structs omit code for struct support],
if test "$enable_structs" = "no"; then
>Release-Note:
>Audit-Trail:
>Unformatted: