OSDN Git Service

* make it compile with GCC 3.0:
authormrg <mrg>
Fri, 3 Aug 2001 06:02:42 +0000 (06:02 +0000)
committermrg <mrg>
Fri, 3 Aug 2001 06:02:42 +0000 (06:02 +0000)
        - missing throw() specifiers in bus & component dtors
- `std::' vs `::' namespace issues

65 files changed:
sid/component/cache/ChangeLog
sid/component/cache/cache.h
sid/component/cache/cacheutil.cxx
sid/component/cache/cacheutil.h
sid/component/cgen-cpu/ChangeLog
sid/component/cgen-cpu/arm7t/ChangeLog
sid/component/cgen-cpu/arm7t/arm7f.h
sid/component/cgen-cpu/cgen-cpu.h
sid/component/cgen-cpu/compCGEN.cxx
sid/component/cgen-cpu/m32r/ChangeLog
sid/component/cgen-cpu/m32r/m32rbf.h
sid/component/consoles/ChangeLog
sid/component/consoles/components.h
sid/component/gdb/ChangeLog
sid/component/gdb/gdb.cxx
sid/component/gdb/gdb.h
sid/component/gloss/ChangeLog
sid/component/gloss/gloss.cxx
sid/component/gloss/gloss.h
sid/component/glue/ChangeLog
sid/component/glue/glue.cxx
sid/component/ide/ChangeLog
sid/component/ide/compIDE.cxx
sid/component/lcd/ChangeLog
sid/component/lcd/HD44780U.cxx
sid/component/lcd/HD44780U.h
sid/component/lcd/T6963C.cxx
sid/component/lcd/T6963C.h
sid/component/lcd/lcd-char-display.cxx
sid/component/lcd/testsuite/ChangeLog
sid/component/lcd/testsuite/hd-5X10.h
sid/component/lcd/testsuite/hd-europe.h
sid/component/lcd/testsuite/hd-one-line.h
sid/component/lcd/testsuite/hd-tester.h
sid/component/lcd/testsuite/hd-two-line.h
sid/component/lcd/testsuite/t6963c-japan.h
sid/component/lcd/testsuite/t6963c-tester.h
sid/component/loader/ChangeLog
sid/component/loader/compLoader.cxx
sid/component/mapper/ChangeLog
sid/component/mapper/compMapper.cxx
sid/component/mapper/testsuite/busif.cxx
sid/component/memory/ChangeLog
sid/component/memory/generic.cxx
sid/component/memory/generic.h
sid/component/parport/ChangeLog
sid/component/parport/ps2.h
sid/component/profiling/ChangeLog
sid/component/profiling/gprof.cxx
sid/component/rtc/ChangeLog
sid/component/rtc/components.h
sid/component/sched/ChangeLog
sid/component/sched/compSched.cxx
sid/component/timers/arm7t/ChangeLog
sid/component/timers/arm7t/arm7t-timer.h
sid/component/uart/ChangeLog
sid/component/uart/Uart.cxx
sid/component/uart/Uart.h
sid/component/uart/testsuite/ChangeLog
sid/component/uart/testsuite/Devices.h
sid/include/ChangeLog
sid/include/sidbusutil.h
sid/include/sidcpuutil.h
sid/samples/ChangeLog
sid/samples/timer.cxx

index 6ea2fc8..4015063 100644 (file)
@@ -1,3 +1,13 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * cache.h (~cache_component): Add prototype.
+       * cacheutil.cxx (std::operator==, operator==): Move this into the
+       global name space.
+       (std::cerr, std::hex, std::setw, std::setfill, std::endl, std::dec):
+       Use these.
+       * cacheutil.h (std::operator==, operator==): Move this into the
+       global name space.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 82cfb46..f14f992 100644 (file)
@@ -108,6 +108,8 @@ public:
   cache_component (unsigned asoctvty, unsigned cache_sz,
                   unsigned line_sz, cache_replacement_algorithm& replacer);
 
+  ~cache_component () throw();
+
   template <typename DataType> bus::status 
   write_any (host_int_4 addr, DataType data);
   
index f944fad..db84cda 100644 (file)
@@ -7,13 +7,13 @@
 #include "cacheutil.h"
 
 bool
-std::operator== (const cache_tag& tag, const cache_line& line)
+operator== (const cache_tag& tag, const cache_line& line)
 {
   return (line.valid_p () && tag == line.tag ());
 }
 
 bool
-std::operator== (const cache_line& line, const cache_tag& tag)
+operator== (const cache_line& line, const cache_tag& tag)
 {
   return (line.valid_p () && tag == line.tag ());
 }
@@ -47,6 +47,13 @@ cache_line::operator= (const cache_line& other)
   return *this;
 }
 
+using std::cerr;
+using std::hex;
+using std::setw;
+using std::setfill;
+using std::endl;
+using std::dec;
+
 void
 cache_line::dump () const
 {
@@ -66,22 +73,22 @@ cache_line::dump () const
 cache_line::cache_line (unsigned line_size)
   :size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (0)
 {
-  data = new byte[line_size];
+  data = new byte [line_size];
   memset (data, 0, line_size);
 }
 
 cache_line::cache_line (unsigned line_size, cache_tag t)
   :size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (t)
 {
-  data = new byte[line_size];
+  data = new byte [line_size];
   memset (data, 0, line_size);
 }
 
-cache_line::cache_line (unsigned line_size, cache_tag t, vector<byte> initial_data)
+cache_line::cache_line (unsigned line_size, cache_tag t, std::vector <byte> initial_data)
   :size (line_size), valid_bit (false), dirty_bit (false), lock_bit (false), atag (t)
 {
   assert (initial_data.size () == line_size);
-  data = new byte[line_size];
+  data = new byte [line_size];
   for (unsigned i = 0; i < line_size; i++)
     data[i] = initial_data[i];
 }
index 06f3b3d..b887431 100644 (file)
@@ -89,10 +89,8 @@ private:
 };
 
 // Allow cache tags and a line's cache tag to be compared directly.
-
-bool std::operator== (const cache_tag&, const cache_line&);
-bool std::operator== (const cache_line&, const cache_tag&);
-
+bool operator== (const cache_tag&, const cache_line&);
+bool operator== (const cache_line&, const cache_tag&);
 
 // A class from which all replacement algorithms should be derived.
 
index 7e78bec..11c227b 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * cgen-cpu.h (~cgen_bi_endian_cpu): Add throw() specifier.
+       * compCGEN.cxx (~cgen_bi_endian_cpu): Likewise.
+
 2001-07-27  Dave Brolley  <brolley@redhat.com>
 
        * cgen-ops.h (ADDCDI): New function.
index 8106cb0..95d5560 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * arm7f.h (dtor): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index a6b359f..c30ad95 100644 (file)
@@ -60,7 +60,7 @@ class arm7f_cpu: public arm7f_cpu_cgen, public cgen_bi_endian_cpu
 {
 public:
   arm7f_cpu ();
-  ~arm7f_cpu () {}
+  ~arm7f_cpu () throw() {}
 
   // Called by the semantic code to perform a branch.
   // The result is the new address.
index 677bde7..a81ff79 100644 (file)
@@ -60,8 +60,8 @@ public:
   void end_trace ();
 
 public:
-  cgen_bi_endian_cpu();
-  ~cgen_bi_endian_cpu();
+  cgen_bi_endian_cpu ();
+  ~cgen_bi_endian_cpu () throw();
 
 public:
   // rtl memory access methods
index b40882f..4d5026b 100644 (file)
@@ -41,7 +41,7 @@ cgen_bi_endian_cpu::cgen_bi_endian_cpu ():
 }
 
 
-cgen_bi_endian_cpu::~cgen_bi_endian_cpu () 
+cgen_bi_endian_cpu::~cgen_bi_endian_cpu () throw()
 {
 }
 
index f75e32b..3211966 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * m32rbf.h (dtor): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 67e4574..25eaad2 100644 (file)
@@ -50,6 +50,7 @@ private:
 
 public:
   m32rbf_cpu ();
+  ~m32rbf_cpu () throw() { };
   void set_pc (host_int_4 v) 
     { 
       this->hardware.h_pc = (PCADDR) v; 
index 276739a..d4b96b9 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+       
+       * components.h (~socketio): Add prototype.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 69a640e..9f1d7d1 100644 (file)
@@ -184,7 +184,8 @@ private:
 
 
   public:
-    socketio(bool server_p);
+    socketio (bool server_p);
+    ~socketio () throw();
   };
 
 
index 9a0b898..8b54c5f 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * gdb.cxx (std::hex, std::setw, std::dec): Use these.
+       (dtor): Add throw() specifier.
+       * gdb.h (dtor): Add throw() specifier.
+
 2001-07-30  Frank Ch. Eigler  <fche@redhat.com>
 
        * gdb.h (gdb::hw_breakpoint_pc_mask): New member variable.
index a14ef76..bd44e68 100644 (file)
@@ -341,6 +341,9 @@ gdb::process_set_args ()
     }
 }
 
+using std::hex;
+using std::setw;
+using std::dec;
 
 int
 gdb::process_set_reg (int reg)
@@ -1422,7 +1425,7 @@ gdb::target_tx_handler (host_int_4 value)
 
 
 
-gdb::~gdb()
+gdb::~gdb() throw()
 {
   // Do nothing here; disconnection and gdbserv memory cleanup ought
   // to have occurred during deinit / detach earlier.
index 49af26a..f8a537f 100644 (file)
@@ -74,7 +74,7 @@ class gdb: public virtual component,
 {
 public:
   gdb();
-  ~gdb();
+  ~gdb() throw();
 
 private:
   friend class callback_pin<gdb>;
index d08ff62..bd217f5 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+       
+       * gloss.cxx (~gloss32): Add throw() specifier.
+       (gloss32::read): Use `std::min' not `min.'
+       * gloss.h (~gloss32, ~gloss64): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index f7cff28..769cad9 100644 (file)
@@ -66,7 +66,7 @@ gloss32::gloss32() :
   fd_table = 0;
 }
 
-gloss32::~gloss32()
+gloss32::~gloss32() throw()
 {
   if (host_ops)
     delete host_ops;
@@ -1029,7 +1029,7 @@ gloss32::read (int fd, address32 addr, size32 len,
 
          if (rx_buffer.size() > 0)
            {
-             count_read = min (len, rx_buffer.size());
+             count_read = std::min (len, rx_buffer.size());
              for (int i = 0; i < count_read; ++i)
                {
                  c = rx_buffer.front();
index ebaa424..fa592aa 100644 (file)
@@ -67,7 +67,7 @@ class gloss32: public virtual component,
 public:
 
   gloss32();
-  virtual ~gloss32();
+  virtual ~gloss32() throw();
 
 protected:
 
@@ -198,7 +198,7 @@ class gloss64 : public gloss32
 public:
 
   gloss64();
-  virtual ~gloss64();
+  virtual ~gloss64() throw();
 
 protected:
 
index 767334d..6ea1253 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * glue.cxx (~sequence_component): Add prototype.
+       (~attr_storage_component, ~probing_bus, ~bus_mux): Add throw()
+       specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index fe3e945..c3cd951 100644 (file)
@@ -138,7 +138,8 @@ namespace glue_components
 
 
   public:
-    sequence_component(unsigned nc = 0);
+    sequence_component (unsigned nc = 0);
+    ~sequence_component () throw() { };
   };
 
 
@@ -272,7 +273,7 @@ sequence_component::sequence_component(unsigned nc):
 
   public:
     attr_storage_component() {}
-    ~attr_storage_component() {}
+    ~attr_storage_component() throw() {}
 
     vector<string>
     attribute_names() throw()
@@ -359,7 +360,7 @@ public:
     {
       assert (this->prober);
     }
-  ~probing_bus () {}
+  ~probing_bus () throw() {}
 };
 
 
@@ -539,7 +540,7 @@ public:
       add_pin ("switch", &switch_pin);
       add_attribute ("switch", &switch_pin, "pin");
     }
-  ~bus_mux () {}
+  ~bus_mux () throw() {}
 
   void handle_switch_pin (host_int_4 value)
     {
index c49007d..685f3b0 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * compIDE.cxx (~ide_hooking_register_bus): Add prototype.
+       (~ide_controller): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index d29419e..48160cc 100644 (file)
@@ -83,6 +83,7 @@ private:
 
 public:
   ide_hooking_register_bus(ide_controller* f): foe(f) {}
+  ~ide_hooking_register_bus () throw() {}
 };
 
 
@@ -451,7 +452,7 @@ public:
       ide_controller_ctor_0();
     }
 
-  ~ide_controller() {}
+  ~ide_controller() throw() {}
 };
 
 
index 6eefcc7..a35d325 100644 (file)
@@ -1,3 +1,15 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * HD44780U.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+       unable to deal with.
+       * HD44780U.h (dtor): Add throw() specifier.
+       * T6963C.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+       unable to deal with.
+       * T6963C.h (dtor): Add throw() specifier.
+       * lcd-char-display.cxx (ctor): Remove unnecessary parens GCC 3.0 is
+       unable to deal with.
+       * lcd-char-display.h (dtor): Add throw() specifier.
+
 2001-07-20  Ben Elliston  <bje@redhat.com>
 
        * lcd-char-display.cxx (set_pixel): Guard against w = nil.
index 8d347a8..5d8a899 100644 (file)
@@ -20,8 +20,8 @@ extern void init_rom_europe( unsigned char rom[][8] );
 extern void init_rom_5X10( unsigned char rom[][11] );
 
 HD44780U :: HD44780U( bool use_japan_rom ) : 
-  busif( this, &(HD44780U::busRead), &(HD44780U::busWrite) ),
-  refresh_sync( "refresh-sync", this, &(HD44780U::refresh) ),
+  busif( this, &HD44780U::busRead, &HD44780U::busWrite ),
+  refresh_sync( "refresh-sync", this, &HD44780U::refresh ),
   trigger_mgr( this )
 {
   int i, j;
index efe3bd6..86f2b2c 100644 (file)
@@ -127,7 +127,7 @@ public:
 
   void reset();
 
-  ~HD44780U() {}
+  ~HD44780U () throw() {}
 
   // save & restore
 
index 5269770..c855068 100644 (file)
@@ -32,8 +32,8 @@ enum {
 extern void init_rom_t6963c( bool japanese, unsigned char rom[][8] );
 
 T6963C :: T6963C( bool use_japan_rom ) : 
-  busif( this, &(T6963C::busRead), &(T6963C::busWrite) ),
-  refresh_sync( "refresh-sync", this, &(T6963C::refresh) ),
+  busif( this, &T6963C::busRead, &T6963C::busWrite ),
+  refresh_sync( "refresh-sync", this, &T6963C::refresh ),
   trigger_mgr( this )
 {
   add_pin( "row-col", &row_col );
index 9993f43..f8668dd 100644 (file)
@@ -177,7 +177,7 @@ public:
 
   void reset();
 
-  ~T6963C() {}
+  ~T6963C() throw() {}
 };
 
 #endif // T6963C_DEF_H
index ade890a..23a5137 100644 (file)
@@ -69,7 +69,7 @@ private:
 public:
 
   lcd_char_display();
-  ~lcd_char_display();
+  ~lcd_char_display() throw ();
 
   // Save & restore state
   string save_state ();
@@ -77,9 +77,9 @@ public:
 };
 
 lcd_char_display :: lcd_char_display() : 
-  row_col_pin( this, &(lcd_char_display::set_pixel) ),
-  frame_pin( this, &(lcd_char_display::new_frame) ),
-  init_pin( this, &(lcd_char_display::init) ),
+  row_col_pin( this, &lcd_char_display::set_pixel ),
+  frame_pin( this, &lcd_char_display::new_frame ),
+  init_pin( this, &lcd_char_display::init ),
   trigger_mgr( this )
 {
   add_pin( "row-col", &row_col_pin );
@@ -112,7 +112,7 @@ lcd_char_display :: lcd_char_display() :
 #endif
 }
 
-lcd_char_display :: ~lcd_char_display() { 
+lcd_char_display :: ~lcd_char_display() throw () 
 #ifdef HAVE_CURSES_H
   endwin(); 
 #endif
index 13db38c..d37407b 100644 (file)
@@ -1,3 +1,13 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * hd-5X10.h (dtor): Add throw() specifier.
+       * hd-europe.h (dtor): Add throw() specifier.
+       * hd-one-line.h (dtor): Add throw() specifier.
+       * hd-tester.h (dtor): Add throw() specifier.
+       * hd-two-line.h (dtor): Add throw() specifier.
+       * t6963c-japan.h (dtor): Add throw() specifier.
+       * t6963c-tester.h (dtor): Add throw() specifier.
+
 2001-08-01  Frank Ch. Eigler  <fche@redhat.com>
 
        * Makefile.am (all-local): Tolerate $srcdir==$builddir.
index 2aea178..2dd0564 100644 (file)
@@ -36,7 +36,7 @@ public:
 
   hd_5X10() { add_pin( "force-refresh", &refresh ); }
 
-  ~hd_5X10() {}
+  ~hd_5X10() throw() {}
 };
 
 #endif // HD44780U_TESTER_DEF_H
index 2813c10..c18def5 100644 (file)
@@ -31,7 +31,7 @@ public:
 
   hd_europe() {}
 
-  ~hd_europe() {}
+  ~hd_europe() throw() {}
 };
 
 #endif // HD_EUROPE_DEF_H
index c5d1f3c..3b094a5 100644 (file)
@@ -28,7 +28,7 @@ public:
 
   hd_one_line() { add_pin( "force-refresh", &refresh ); }
 
-  ~hd_one_line() {}
+  ~hd_one_line() throw () {}
 };
 
 #endif // HD_ONE_LINE_DEF_H
index 2a5021b..e555fe3 100644 (file)
@@ -68,7 +68,7 @@ public:
 
   HD44780U_tester();
 
-  ~HD44780U_tester() {}
+  ~HD44780U_tester() throw() {}
 };
 
 #endif // HD44780U_TESTER_DEF_H
index beb14fb..a429a49 100644 (file)
@@ -43,7 +43,7 @@ public:
 
   hd_two_line() {}
 
-  ~hd_two_line() {}
+  ~hd_two_line() throw() {}
 };
 
 #endif // HD_TWO_LINE_DEF_H
index 16d4f1e..4a2b7ac 100644 (file)
@@ -82,7 +82,7 @@ public:
 
   void run( host_int_4 );
 
-  ~T6963C_tester() {}
+  ~T6963C_tester() throw() {}
 };
 
 #endif // T6963C_JAPAN_DEF_H
index 777eb6b..7da4d2c 100644 (file)
@@ -85,7 +85,7 @@ public:
 
   void run( host_int_4 );
 
-  ~T6963C_tester() {}
+  ~T6963C_tester() throw() {}
 };
 
 #endif // T6963C_TESTER_DEF_H
index 34c7677..ba09c39 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * compLoader.cxx (~generic_loader): Add prototype.
+
 2001-06-22  Ben Elliston  <bje@redhat.com>
 
        * compLoader.cxx (elf_loader::load_function): Don't loop while
index 86d23b3..1b379b1 100644 (file)
@@ -118,6 +118,7 @@ public:
                             & generic_loader::save_state,
                             & generic_loader::restore_state);
     }
+  ~generic_loader() throw() { }
     
 };
 
index 83f1f67..5c1962a 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * compMapper.cxx (~generic_mapper_bus, ~generic_mapper): Add
+       throw() specifier.
+
 2001-07-23  graydon hoare  <graydon@redhat.com>
 
        * compMapper.cxx (make_name_mapping): Support mapping
index fa7aff5..ef757d2 100644 (file)
@@ -237,14 +237,14 @@ public:
 #undef SID_GB_WRITE
 #undef SID_GB_READ
 
-  ~generic_mapper_bus ();
+  ~generic_mapper_bus () throw ();
 
 private:
   generic_mapper* target;
   mutable struct mapping_record* tlb;
 };
 
-generic_mapper_bus::~generic_mapper_bus () {
+generic_mapper_bus::~generic_mapper_bus () throw () {
 }
 
 
@@ -260,7 +260,7 @@ class generic_mapper: public virtual component,
 {
 public:
   generic_mapper ();
-  ~generic_mapper () {}
+  ~generic_mapper () throw() {}
 
   std::vector<string> accessor_names () throw();
   component::status connect_accessor (const string& name, bus* bus) throw();
index 88970f5..e4f0a41 100644 (file)
@@ -94,7 +94,7 @@ public:
     add_bus( "bus", &bus );
   }
 
-  ~Busif() {}
+  ~Busif() throw () {}
 };
 
 static vector<string>
index 7c3f8bb..eccad78 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * generic.cxx (~generic_memory): Add throw() specifier.
+       * generic.h (~generic_memory): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 1bb81ad..eb5a9d3 100644 (file)
@@ -91,7 +91,7 @@ generic_memory::generic_memory() throw (bad_alloc):
 }
 
 
-generic_memory::~generic_memory ()
+generic_memory::~generic_memory () throw()
 {
   assert (this->buffer);
   if (this->mmapping_p)
index ef8e4e4..9fff0e8 100644 (file)
@@ -69,7 +69,7 @@ class generic_memory: public virtual component,
 {
 public:
   generic_memory() throw (bad_alloc);
-  ~generic_memory();
+  ~generic_memory() throw ();
 
 protected:
   // memory buffers
index f7f6214..eda42e8 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * ps2.h (dtor): Add prototype.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 02d2ad3..8fd33c8 100644 (file)
@@ -59,6 +59,7 @@ class ParPort: public virtual component,
 {
  public: 
   ParPort();
+  ~ParPort() throw ();
   void reset(host_int_4);
   
  private:
index 270b16e..0488f4e 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * gprof.cxx (~gprof_component): Add prototype.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 5cfb011..ff69cdc 100644 (file)
@@ -341,6 +341,7 @@ namespace profiling_components
        add_attribute ("output-file-endianness", & this->output_file_format, "setting");
        add_uni_relation ("target-component", & this->target_component);
       }
+    ~gprof_component () throw () { }
   };
 
 
index 8a2b4d2..9966120 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * components.h (~ds1642): Add prototype.
+       (~sidrtc): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 42fb8f2..7347d8b 100644 (file)
@@ -60,6 +60,7 @@ class ds1642: public virtual component,
 {
 public:
   ds1642();
+  ~ds1642() throw () { }
 
 protected:
   virtual bus::status read_7f8(host_int_4 addr, host_int_1& data);
@@ -255,7 +256,7 @@ class sidrtc: public virtual component,
 
 public:
   sidrtc();
-  ~sidrtc() {}
+  ~sidrtc() throw () {}
 };
 
 
index 12590bd..06a200d 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * compSched.cxx (~scheduler_component): Add prototype.
+       (~scheduler_client, ~scheduler_component_base): Add throw() specifier.
+
 2001-07-13  Ben Elliston  <bje@redhat.com>
 
        * Makefile.am (check-local): Rename target from "checkme".
index 6f6f7e6..d52495c 100644 (file)
@@ -1055,7 +1055,7 @@ private:
     }
 
 public:
-  ~scheduler_client()
+  ~scheduler_client() throw ()
     {
       // unschedule my events
       set_time (0);
@@ -1236,7 +1236,7 @@ public:
   scheduler_component_base():
     recursion_limited ("advancing", 1)
     {}
-  ~scheduler_component_base() {}
+  ~scheduler_component_base() throw () {}
 };
 
 
@@ -1404,6 +1404,7 @@ public:
       scheduler_component_ctor_2();
       scheduler_component_ctor_3();
     }
+  ~scheduler_component() throw () { }
 };
 
 
index 52183d0..f906ed8 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * arm7t-timer.h (dtor): Add prototype.
+
 2001-07-06  Frank Ch. Eigler  <fche@redhat.com>
 
         * Makefile.am (ACLOCAL_AMFLAGS): Define.
index d04a163..2366d52 100644 (file)
@@ -67,6 +67,7 @@ class armTimer: public virtual component,
 {
 public:
   armTimer();
+  ~armTimer() throw () { }
 
 private:
   class bus_interface: public word_bus<little_int_4>
index 33ceed4..5a59266 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * Uart.cxx (ctor): Remove unnecessary parens GCC 3.0 is unable to
+       deal with.
+       * Uart.h (dtor): Add throw() specifier.
+
 2000-11-21  Frank Ch. Eigler  <fche@redhat.com>
 
        * Makefile.in: Regenerated.
index 8a61457..c731bec 100644 (file)
@@ -192,9 +192,9 @@ public:
 
 Uart :: Uart()
    :triggerpoint_manager(this), 
-    busif( this, &(Uart::busReadHandler), &(Uart::busWriteHandler) ),
+    busif( this, &Uart::busReadHandler, &Uart::busWriteHandler ),
     sin( this, &Uart::sinHandler ), 
-    reset_pin( this, &(Uart::reset) ),
+    reset_pin( this, &Uart::reset ),
     rx_timeout( "rx-timeout", this, &Uart::rxWatchdog ),
     tx_timeout( "tx-timeout", this, &Uart::txWatchdog )
 {
index bcfe85d..f6a9cd2 100644 (file)
@@ -211,7 +211,7 @@ private:
 
 public:
   Uart();
-  ~Uart() {}
+  ~Uart() throw () {}
   void reset( host_int_4 );
 };
 
index 38d8f53..246a1bd 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * Devices.h (~DeviceDriver): Add throw() specifier.
+
 2000-11-21  Frank Ch. Eigler  <fche@redhat.com>
 
        * Makefile.in: Regenerated.
index 30890ef..dfcc145 100644 (file)
@@ -112,7 +112,7 @@ public:
   void write( char *s );
   int read( char *buf );
 
-  ~DeviceDriver()      {}
+  ~DeviceDriver() throw () {}
 };
 
 class SerialSink : public virtual component,
index ca19684..09c6673 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * sidbusutil.h (~control_register_bank): Add missing prototype.
+       * sidcpuutil.h (basic_cpu::new, basic_cpu::delete): Fix namespace
+       issues.
+
 2001-07-12  matthew green  <mrg@redhat.com>
 
        * sidattrutil.h (attribute_coder_base, attribute_coder_virtual,
index 204f823..78af1f1 100644 (file)
@@ -610,6 +610,7 @@ namespace sidutil
                               sid::host_int_4 address);
     void add_readwrite_register(control_register<DataType>* reg,
                                sid::host_int_4 address);
+    ~control_register_bank () throw () { }
     
   private:
     typedef std::vector<control_register<DataType>*> reg_vector;
index 9e3c0d6..aaf4233 100644 (file)
@@ -110,7 +110,7 @@ namespace sidutil
   public:
     void* operator new (size_t sz)
     {
-      void* p = std::operator new (sz);
+      void* p = ::operator new (sz);
       // Initialize the object with garbage, to ease detection of missing initialization.
       char* q = (char*) p;
       char deadbeef[] = { 0xde, 0xad, 0xbe, 0xef };
@@ -120,7 +120,7 @@ namespace sidutil
     }
     void operator delete (void* p)
     {
-      std::operator delete (p);
+      ::operator delete (p);
     }
 
     // recursion protection
index e162cef..7b94ebc 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-03  matthew green  <mrg@redhat.com>
+
+       * timer.cxx (~Timer): Add prototype.
+               
 2000-11-21  Frank Ch. Eigler  <fche@redhat.com>
 
        * configure, Makefile.in, aclocal.m4: Regenerated.
index e559354..5c0f5d0 100644 (file)
@@ -34,6 +34,7 @@ class Timer: public virtual sid::component
 public:
   Timer()
     :scheduler_pin(0), clock_pin(this), bus(this), enabled(false) { }
+  ~Timer() throw () { }
   
   // Provide implementations for abstract methods in sid::component.
   // See include/sidcomp.h.