This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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]

Re: gdb 5.2 branch gcc v3.0.3 compiler errors



And all this time I thought I was compiling the 5.2 branch .... oh well. 
 I'll check out that branch instead.

Andrew Cagney wrote:

> Hello,
>
>>
>> It seems as though the C++ parts of the 5.2 branch don't compile on 
>> the gcc v3.0.3 compiler on Linux.
>>
>> Most of it is namespace stuff but there are a couple of errors with 
>> the stl and thow() inheritance in destructors.
>>
>> I've attached the patch as a diff of the 5.2 branch as of about an 
>> hour ago if anyone is interested.
>
>
> I'm not sure that you've checked out the 5.2 branch of GDB.  SID, for 
> instance, isn't on that branch and neither SID nor Insight (itcl 
> et.al.) are included in a standard GDB release.
>
> I've CC:'d the relevant groups so that they can fix the problems.
>
> (but thanks for trying to build GDB using the latest GCC compiler!)
>
> Andrew
>
>
>
>
>> Index: itcl/itcl/pkgIndex.tcl
>> ===================================================================
>> RCS file: /cvs/src/src/itcl/itcl/pkgIndex.tcl,v
>> retrieving revision 1.1.1.1
>> diff -a -u -r1.1.1.1 pkgIndex.tcl
>> --- pkgIndex.tcl    2001/09/09 19:49:04    1.1.1.1
>> +++ pkgIndex.tcl    2002/03/26 17:46:54
>> @@ -1,3 +1,3 @@
>>  # Tcl package index file, version 1.0
>>  
>> -package ifneeded Itcl 3.2 [list load [file join $dir .. 
>> "libitcl3.2.so"] Itcl]
>> +package ifneeded Itcl 3.2 [list load [file join $dir .. 
>> "libitcl3.2.a"] Itcl]
>> Index: itcl/itk/pkgIndex.tcl
>> ===================================================================
>> RCS file: /cvs/src/src/itcl/itk/pkgIndex.tcl,v
>> retrieving revision 1.1.1.1
>> diff -a -u -r1.1.1.1 pkgIndex.tcl
>> --- pkgIndex.tcl    2001/09/09 19:49:05    1.1.1.1
>> +++ pkgIndex.tcl    2002/03/26 17:46:54
>> @@ -1,3 +1,3 @@
>>  # Tcl package index file, version 1.0
>>  
>> -package ifneeded Itk 3.2 [list load [file join $dir .. 
>> "libitk3.2.so"] Itk]
>> +package ifneeded Itk 3.2 [list load [file join $dir .. 
>> "libitk3.2.a"] Itk]
>> Index: itcl/iwidgets3.0.0/iwidgets.tcl
>> ===================================================================
>> RCS file: /cvs/src/src/itcl/iwidgets3.0.0/iwidgets.tcl,v
>> retrieving revision 1.1.1.1
>> diff -a -u -r1.1.1.1 iwidgets.tcl
>> --- iwidgets.tcl    2001/09/09 19:49:06    1.1.1.1
>> +++ iwidgets.tcl    2002/03/26 17:46:55
>> @@ -6,7 +6,7 @@
>>  # 
>> ----------------------------------------------------------------------
>>  #  AUTHOR: Mark L. Ulferts               EMAIL: mulferts@spd.dsccc.com
>> #
>> -#  @(#) $Id: iwidgets.tcl,v 1.2.4.1 2001/05/18 02:21:47 mdejong Exp $
>> +#  @(#) $Id: iwidgets.tcl.in,v 1.2.4.1 2001/05/18 02:21:47 mdejong 
>> Exp $
>>  # 
>> ----------------------------------------------------------------------
>>  #                Copyright (c) 1995  Mark L. Ulferts
>>  # 
>> ======================================================================
>> Index: sid/component/bochs/cmos/cmos.cc
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/bochs/cmos/cmos.cc,v
>> retrieving revision 1.2
>> diff -a -u -r1.2 cmos.cc
>> --- cmos.cc    2002/03/04 23:33:01    1.2
>> +++ cmos.cc    2002/03/26 17:46:59
>> @@ -38,6 +38,10 @@
>>  #define this (&bx_cmos)
>>  #endif
>>  
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>>  
>>  // check that BX_NUM_CMOS_REGS is 64 or 128
>>  #if (BX_NUM_CMOS_REGS == 64)
>> Index: sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/bochs/cpu/sid-x86-cpu-wrapper.cc,v
>> retrieving revision 1.2
>> diff -a -u -r1.2 sid-x86-cpu-wrapper.cc
>> --- sid-x86-cpu-wrapper.cc    2002/03/04 23:33:01    1.2
>> +++ sid-x86-cpu-wrapper.cc    2002/03/26 17:46:59
>> @@ -18,6 +18,12 @@
>>  
>>  #include "sid-x86-cpu-wrapper.h"
>>  
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>> +using std::setbase;
>> +
>>  x86_cpu::x86_cpu ()
>>      : interrupt_pin(this, & x86_cpu::interrupt),
>>        hold_request_pin(this, & x86_cpu::hold_request),
>> Index: sid/component/bochs/cpu/sid-x86-memory-modes.cc
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/bochs/cpu/sid-x86-memory-modes.cc,v
>> retrieving revision 1.1
>> diff -a -u -r1.1 sid-x86-memory-modes.cc
>> --- sid-x86-memory-modes.cc    2002/02/15 01:18:44    1.1
>> +++ sid-x86-memory-modes.cc    2002/03/26 17:46:59
>> @@ -26,6 +26,11 @@
>>  
>>  #include "sid-x86-cpu-wrapper.h"
>>  
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>> +
>>  void x86_cpu::enter_protected_mode()
>>  {
>>    if (memory_mode == "default")
>> Index: sid/component/bochs/cpu/memory/sid-bochs-memory.cc
>> ===================================================================
>> RCS file: 
>> /cvs/src/src/sid/component/bochs/cpu/memory/sid-bochs-memory.cc,v
>> retrieving revision 1.2
>> diff -a -u -r1.2 sid-bochs-memory.cc
>> --- sid-bochs-memory.cc    2002/03/04 23:33:02    1.2
>> +++ sid-bochs-memory.cc    2002/03/26 17:46:59
>> @@ -20,6 +20,12 @@
>>  #include "sid-x86-cpu-wrapper.h"
>>  #define LOG_THIS this->
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>> +using std::setbase;
>> +
>>  void
>>  sid_bx_mem_c::init(x86_cpu *x86_cpu_comp)
>>  {
>> Index: sid/component/bochs/floppy/sid-floppy-wrapper.cc
>> ===================================================================
>> RCS file: 
>> /cvs/src/src/sid/component/bochs/floppy/sid-floppy-wrapper.cc,v
>> retrieving revision 1.2
>> diff -a -u -r1.2 sid-floppy-wrapper.cc
>> --- sid-floppy-wrapper.cc    2002/03/04 23:33:03    1.2
>> +++ sid-floppy-wrapper.cc    2002/03/26 17:47:00
>> @@ -6,6 +6,11 @@
>>  
>>  #include "sid-floppy-wrapper.h"
>>  
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>> +
>>  floppy::floppy ()
>>      : init_pin(this, & floppy::init),
>>        reset_pin(this, & floppy::reset),
>> Index: sid/component/bochs/harddrv/harddrv.cc
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/bochs/harddrv/harddrv.cc,v
>> retrieving revision 1.1
>> diff -a -u -r1.1 harddrv.cc
>> --- harddrv.cc    2002/03/04 23:33:03    1.1
>> +++ harddrv.cc    2002/03/26 17:47:00
>> @@ -29,6 +29,10 @@
>>  #define LOG_THIS bx_hard_drive.
>>  #endif // BX_SUPPORT_SID
>>  
>> +#include <iostream>
>> +
>> +using std::cerr;
>> +using std::endl;
>>  
>>  #define INDEX_PULSE_CYCLE 10
>>  
>> Index: sid/component/bochs/vga/sid-vga-wrapper.cc
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/bochs/vga/sid-vga-wrapper.cc,v
>> retrieving revision 1.4
>> diff -a -u -r1.4 sid-vga-wrapper.cc
>> --- sid-vga-wrapper.cc    2002/03/04 23:33:05    1.4
>> +++ sid-vga-wrapper.cc    2002/03/26 17:47:00
>> @@ -20,6 +20,10 @@
>>  using sidutil::parse_attribute;
>>  using sidutil::find_sid_data_file;
>>  using sidutil::std_error_string;
>> +using std::cerr;
>> +using std::endl;
>> +using std::ifstream;
>> +using std::ios;
>>  
>>  vga::vga ()
>>      : init_pin(this, & vga::init),
>> @@ -245,7 +249,7 @@
>>    if (new_length > max_buffer_length)
>>      return false;
>>    -  host_int_1* new_buffer = new (nothrow) host_int_1[new_length];
>> +  host_int_1* new_buffer = new  host_int_1[new_length];
>>    if (new_buffer == 0)
>>      {
>>        cerr << "memory: error allocating memory buffer: " << 
>> std_error_string() << endl;
>> Index: sid/component/interrupt/arm.h
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/interrupt/arm.h,v
>> retrieving revision 1.2
>> diff -a -u -r1.2 arm.h
>> --- arm.h    2001/06/28 03:51:10    1.2
>> +++ arm.h    2002/03/26 17:47:01
>> @@ -15,7 +15,7 @@
>>   public:
>>    armIntController():
>>      IntController<little_int_4>(32, 1, (RSTPIN|FIQREGS|FIQBUS)) { }
>> -  ~armIntController() { }
>> +  ~armIntController() throw() { }
>>      private:
>>    // required virtual methods
>> Index: sid/component/interrupt/cma222.h
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/interrupt/cma222.h,v
>> retrieving revision 1.1
>> diff -a -u -r1.1 cma222.h
>> --- cma222.h    2000/12/07 19:30:52    1.1
>> +++ cma222.h    2002/03/26 17:47:01
>> @@ -14,7 +14,7 @@
>>  public:
>>    cma222IntController():
>>      IntController<little_int_1>(8, 0, 0) { }
>> -  cma222IntController::~cma222IntController() { }
>> +  cma222IntController::~cma222IntController() throw() { }
>>  
>>  private:
>>  
>> Index: sid/component/interrupt/components.h
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/interrupt/components.h,v
>> retrieving revision 1.4
>> diff -a -u -r1.4 components.h
>> --- components.h    2001/07/11 01:10:37    1.4
>> +++ components.h    2002/03/26 17:47:01
>> @@ -84,7 +84,7 @@
>>    IntController<bus_size>(host_int_4 num_irq = 0,
>>                host_int_4 num_fiq = 0,
>>                host_int_4 ctrlr_features = 0);
>> -  virtual ~IntController<bus_size>() { }
>> +  virtual ~IntController<bus_size>() throw() { }
>>     private:
>>    class interrupt_bus: public word_bus<bus_size>
>> @@ -97,7 +97,7 @@
>>          (host_int_4, bus_size, bus_size)):
>>        host(who), read(rd), write(wr) { }
>>    -    ~interrupt_bus() { }
>> +    ~interrupt_bus() throw() { }
>>         sid::bus::status word_write
>>        (host_int_4 addr, bus_size mask, bus_size data)
>> @@ -125,7 +125,7 @@
>>        void (IntController<bus_size>::*fp) (host_int_4, host_int_4)):
>>                 bit_num(pos), host(who), driveit(fp) { }
>>    -    ~interrupt_lines()
>> +    ~interrupt_lines() throw()
>>        { host = NULL; driveit = NULL; }
>>         void driven(host_int_4 value) throw ()
>> Index: sid/component/mapper/compMapper.cxx
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/mapper/compMapper.cxx,v
>> retrieving revision 1.10
>> diff -a -u -r1.10 compMapper.cxx
>> --- compMapper.cxx    2002/03/15 20:58:40    1.10
>> +++ compMapper.cxx    2002/03/26 17:47:01
>> @@ -393,7 +393,7 @@
>>         if (selected_p (*it, this->bank))
>>       {
>>         // cout << "mapper bank " << this->bank << " sel: " << 
>> it->spec << endl;
>> -       this->selected_accessors.push_back (it);
>> +       this->selected_accessors.push_back (&*it);
>>       }
>>       }
>>  
>> Index: sid/component/mmu/armRemap.cxx
>> ===================================================================
>> RCS file: /cvs/src/src/sid/component/mmu/armRemap.cxx,v
>> retrieving revision 1.1
>> diff -a -u -r1.1 armRemap.cxx
>> --- armRemap.cxx    2000/12/07 19:30:56    1.1
>> +++ armRemap.cxx    2002/03/26 17:47:01
>> @@ -74,6 +74,7 @@
>>  {
>>  public:
>>    armRemapPause();
>> +  ~armRemapPause() throw() {};
>>  
>>  private:
>>    class map_bus: public bus
>> Index: sid/include/sidcpuutil.h
>> ===================================================================
>> RCS file: /cvs/src/src/sid/include/sidcpuutil.h,v
>> retrieving revision 1.18
>> diff -a -u -r1.18 sidcpuutil.h
>> --- sidcpuutil.h    2002/03/14 00:16:27    1.18
>> +++ sidcpuutil.h    2002/03/26 17:47:02
>> @@ -15,7 +15,11 @@
>>  #include <sidwatchutil.h>
>> #include <sidschedutil.h>
>> +#include <fstream>
>> +
>>  using std::string;
>> +using std::ofstream;
>> +using std::cout;
>>  
>>  namespace sidutil
>>  {
>>
>




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