|
From: Carlo W. <li...@us...> - 2002-01-04 04:43:49
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-00-04 04:43:48 UTC
Modified files:
libcwd/include/libcw/macro_AllocTag.h
Log message:
Kludge to work around g++ bug for FreeBSD.
---------------------- diff included ----------------------
Index: src/libcwd/include/libcw/macro_AllocTag.h
diff -u src/libcwd/include/libcw/macro_AllocTag.h:1.2 src/libcwd/include/libcw/macro_AllocTag.h:1.3
--- src/libcwd/include/libcw/macro_AllocTag.h:1.2 Sat Dec 29 20:17:50 2001
+++ src/libcwd/include/libcw/macro_AllocTag.h Thu Jan 3 20:43:38 2002
@@ -1,4 +1,4 @@
-// $Header: /cvsroot/l/li/libcw/src/libcwd/include/libcw/macro_AllocTag.h,v 1.2 2001/12/30 04:17:50 libcw Exp $
+// $Header: /cvsroot/l/li/libcw/src/libcwd/include/libcw/macro_AllocTag.h,v 1.3 2002/01/04 04:43:38 libcw Exp $
//
// Copyright (C) 2000 - 2001, by
//
@@ -204,7 +204,13 @@
} while(0)
template<typename TYPE>
+#ifndef __FreeBSD__
+ // There is a bug in g++ that causes the wrong line number information to be generated
+ // when this function is inline. I was able to use heuristics to work around that for
+ // STABS, but not for DWARF-2 (the default of FreeBSD).
+ // See http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5271
__inline__
+#endif
TYPE*
__libcwd_allocCatcher(TYPE* new_ptr)
{
----------------------- End of diff -----------------------
|