From: Benjamin Kosnik <bkoz@redhat.com>
To: sid@sources.redhat.com
Subject: preliminary gcc-3_1-branch fixups
Date: Sun, 03 Mar 2002 19:55:00 -0000 [thread overview]
Message-ID: <200203040355.g243tgx22545@fillmore.constant.com> (raw)
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++)
{
next reply other threads:[~2002-03-04 3:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-03 19:55 Benjamin Kosnik [this message]
2002-03-03 19:59 ` Ben Elliston
2002-03-03 20:08 ` Benjamin Kosnik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200203040355.g243tgx22545@fillmore.constant.com \
--to=bkoz@redhat.com \
--cc=sid@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).