This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libsupc++.a


Corrected header text - purely cosmetic:



diff -ru --unidirectional-new-file /opt/ecos/packages/infra/current/cdl/infra.cdl /opt/ecos-work/packages/infra/current/cdl/infra.cdl
--- /opt/ecos/packages/infra/current/cdl/infra.cdl	Wed May 29 20:28:21 2002
+++ /opt/ecos-work/packages/infra/current/cdl/infra.cdl	Wed Jun 12 01:54:48 2002
@@ -60,6 +60,8 @@
     compile startup.cxx prestart.cxx pkgstart.cxx userstart.cxx      \
             dummyxxmain.cxx null.cxx simple.cxx fancy.cxx buffer.cxx \
             diag.cxx tcdiag.cxx memcpy.c memset.c delete.cxx eprintf.c
+    
+    compile -library=libsupc++.a cppsupp.c
 
 
     # ====================================================================
@@ -246,3 +248,4 @@
         }
     }
 }
+
diff -ru --unidirectional-new-file /opt/ecos/packages/infra/current/src/cppsupp.c /opt/ecos-work/packages/infra/current/src/cppsupp.c
--- /opt/ecos/packages/infra/current/src/cppsupp.c	Thu Jan  1 01:00:00 1970
+++ /opt/ecos-work/packages/infra/current/src/cppsupp.c	Wed Jun 12 23:50:35 2002
@@ -0,0 +1,69 @@
+/*==========================================================================
+//
+//      cppsupp.c
+//
+//      C++ support functions
+//
+//==========================================================================
+//####ECOSGPLCOPYRIGHTBEGIN####
+// -------------------------------------------
+// This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+//
+// eCos is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License as published by the Free
+// Software Foundation; either version 2 or (at your option) any later version.
+//
+// eCos is distributed in the hope that it will be useful, 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 along
+// with eCos; if not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+//
+// As a special exception, if other files instantiate templates or use macros
+// or inline functions from this file, or you compile this file and link it
+// with other works to produce a work based on this file, this file does not
+// by itself cause the resulting work to be covered by the GNU General Public
+// License. However the source code for this file must still be made available
+// in accordance with section (3) of the GNU General Public License.
+//
+// This exception does not invalidate any other reasons why a work based on
+// this file might be covered by the GNU General Public License.
+//
+// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
+// at http://sources.redhat.com/ecos/ecos-license/
+// -------------------------------------------
+//####ECOSGPLCOPYRIGHTEND####
+//==========================================================================
+//#####DESCRIPTIONBEGIN####
+//
+// Author(s):   tkoeller
+// Contributors: tkoeller
+// Date:        2002-06-12
+// Purpose:     C++ support functions
+// Description: This file contains support functions required by gcc.
+//              These are all put into a library named libsupc++.a,
+//              which C++ programs compiled by GCC V3 are linked with
+//              by default.
+//
+//####DESCRIPTIONEND####
+//
+//========================================================================*/
+
+#if defined(__GNUC__) && __GNUC__ >= 3
+
+#include <cyg/infra/cyg_type.h>
+#include <cyg/infra/cyg_ass.h>
+
+/* If a pure virtual function is called, abort */
+void
+__cxa_pure_virtual(void)
+{
+  CYG_FAIL("pure virtual method called");
+  while(1) CYG_EMPTY_STATEMENT;
+}
+
+#endif


-- 

Thomas Koeller, Software Development

Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany

Phone	+49 (4102) 463-390
Fax	+49 (4102) 463-46390

mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com 



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