This is the mail archive of the gcc@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]

Re: libstdc-v3: portability of 'ar' w/o file list?


On Tue, Dec 05, 2000 at 03:49:57PM -0200, Alexandre Oliva wrote:
> 
> Nope, what we're doing (from the snippet you posted) is to add
> *dependencies* conditionally.  But the rules to *build* the library
> are not conditional.

Well, the patch below avoid building any kind of libio sources for me.

But, in the v3 regression tests, I get a couple new failures than I was
two weeks ago.  The problem is that I don't know when they first appeared;
prior test results got lost in a prior accident.  :-(  Now I get bus errors:

#0  0x439f8 in __throw_type_match_rtti_2 (catch_type_r=0x44d28, 
    throw_type_r=0x7b374, objptr=0x8b5b8, valp=0x8b6d0) at tinfo2.cc:350
#1  0x408e8 in __cplus_type_matcher (info_=0x8b6c8, match_info=0x44d28, 
    exception_table=0x86680) at exception_support.cc:156
#2  0xff2c7f40 in find_exception_handler (pc=0x43e4f, table=0x86680, 
    eh_info=0x8b6c8, rethrow=-4880, cleanup=0xffbeeb24)
   from /desttdir/lib/libstdc++.so.3
#3  0xff2c8228 in throw_helper (eh=0xff32ef10, pc=0x43eab, 
    my_udata=0xffbef208, offset_p=0xffbef204)
   from /desttdir/lib/libstdc++.so.3
#4  0xff2c85f4 in __rethrow (index=0x84f74)
   from /desttdir/lib/libstdc++.so.3
#5  0x43eac in _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate (
    this=0xffbef730, __state=3) at basic_ios.h:108
#6  0x43eec in _ZNSt9basic_iosIcSt11char_traitsIcEE10exceptionsESt12_Ios_Iostate (this=0x3, __except=4290705200) at
basic_ios.h:139
#7  0x35708 in _Z6test02v () at ios_members.cc:113
#8  0x35ae4 in main () at ios_members.cc:146


Hmm.

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.101
diff -u -3 -p -r1.101 acinclude.m4
--- acinclude.m4	2000/12/05 04:01:44	1.101
+++ acinclude.m4	2000/12/05 19:16:52
@@ -1323,6 +1323,8 @@ AC_DEFUN(GLIBCPP_ENABLE_CSTDIO, [
   AC_LINK_FILES($CCODECVT_C, libio/c_codecvt.c)
   # 2000-08-04 bkoz hack
 
+  AM_CONDITIONAL(GLIBCPP_BUILD_LIBIO,
+                 test "$need_libio" = yes || test "$need_wlibio" = yes)
   AM_CONDITIONAL(GLIBCPP_NEED_LIBIO, test "$need_libio" = yes)
   AM_CONDITIONAL(GLIBCPP_NEED_WLIBIO, test "$need_wlibio" = yes)
   if test "$need_libio" = yes || test "$need_wlibio" = yes; then
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/Makefile.am,v
retrieving revision 1.15
diff -u -3 -p -r1.15 Makefile.am
--- Makefile.am	2000/10/17 08:25:07	1.15
+++ Makefile.am	2000/12/05 19:16:52
@@ -24,7 +24,11 @@
 AUTOMAKE_OPTIONS = 1.3 cygnus
 MAINT_CHARSET = latin1
 
+if GLIBCPP_BUILD_LIBIO
 SUBDIRS = libio libmath libsupc++ src
+else
+SUBDIRS = libmath libsupc++ src
+endif
 
 
 # Use $(blddir) instead of $(top_builddir) for arguments to "mkcheck"

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