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

preliminary gcc-3_1-branch fixups



Found while application testing with gcc-3.1. This is not done, but
has been in my tree for a week or two, so I thought I'd post it.

At some point, typename usage should probably be made consistent. Or,
whatever.

tested x86/linux

2002-03-01  Benjamin Kosnik  <bkoz@redhat.com>

        * include/sidbusutil.h: Make typename usage explicit.


Index: include/sidbusutil.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidbusutil.h,v
retrieving revision 1.11
diff -c -p -r1.11 sidbusutil.h
*** sidbusutil.h	2001/12/04 08:18:15	1.11
--- sidbusutil.h	2002/03/04 03:50:12
***************
*** 1,6 ****
  // sidbusutil.h -*- C++ -*- Different types and sizes of buses.
  
! // Copyright (C) 1999, 2000, 2001 Red Hat.
  // This file is part of SID and is licensed under the GPL.
  // See the file COPYING.SID for conditions for redistribution.
  
--- 1,6 ----
  // sidbusutil.h -*- C++ -*- Different types and sizes of buses.
  
! // Copyright (C) 1999, 2000, 2001, 2002 Red Hat.
  // This file is part of SID and is licensed under the GPL.
  // See the file COPYING.SID for conditions for redistribution.
  
*************** namespace sidutil
*** 811,816 ****
--- 811,818 ----
    class ro_value_control_register: public value_control_register<DataType>
    {
    public:
+     typedef typename value_control_register<DataType>::ValueType ValueType;
+ 
      ro_value_control_register(control_register_bank<DataType>* b,
  			      sid::host_int_4 o,
  			      DataType m,
*************** namespace sidutil
*** 949,962 ****
  				DataType mask,
  				DataType data)
        {
! 	reg_map::iterator i = write_map.find(addr);
  	if (i == write_map.end())
  	  return sid::bus::unmapped; // XXX: or unpermitted?
  	
  	DataType unmatched_mask = mask;
  
  	// scan through all registers at this address
! 	for(reg_vector::iterator it = i->second.begin();
  	    it != i->second.end();
  	    it++)
  	  {
--- 951,964 ----
  				DataType mask,
  				DataType data)
        {
! 	typename reg_map::iterator i = write_map.find(addr);
  	if (i == write_map.end())
  	  return sid::bus::unmapped; // XXX: or unpermitted?
  	
  	DataType unmatched_mask = mask;
  
  	// scan through all registers at this address
! 	for(typename reg_vector::iterator it = i->second.begin();
  	    it != i->second.end();
  	    it++)
  	  {
*************** namespace sidutil
*** 984,990 ****
  			       DataType mask,
  			       DataType& data_out)
        {
! 	reg_map::iterator i = read_map.find(addr);
  	if (i == read_map.end())
  	  return sid::bus::unmapped; // XXX: or unpermitted?
  
--- 986,992 ----
  			       DataType mask,
  			       DataType& data_out)
        {
! 	typename reg_map::iterator i = read_map.find(addr);
  	if (i == read_map.end())
  	  return sid::bus::unmapped; // XXX: or unpermitted?
  
*************** namespace sidutil
*** 992,998 ****
  	DataType unmatched_mask = mask;
  
  	// scan through all registers at this address
! 	for(reg_vector::iterator it = i->second.begin();
  	    it != i->second.end();
  	    it++)
  	  {
--- 994,1000 ----
  	DataType unmatched_mask = mask;
  
  	// scan through all registers at this address
! 	for(typename reg_vector::iterator it = i->second.begin();
  	    it != i->second.end();
  	    it++)
  	  {


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