This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

[gold patch committed] Use typename


I got a report that gcc 4.2.1 fails to compile gold, complaining about a
missing typename.  I think the typename is unnecessary, but gold should
compile with gcc 4.2, and adding typename does no harm.  I committed
this patch to fix the problem.

Ian


2010-08-02  Ian Lance Taylor  <iant@google.com>

	* arm.cc (Target_arm::gc_process_relocs): Use typename.
	* powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
	* sparc.cc (Target_sparc::gc_process_relocs): Likewise.


Index: arm.cc
===================================================================
RCS file: /cvs/src/src/gold/arm.cc,v
retrieving revision 1.114
diff -p -u -r1.114 arm.cc
--- arm.cc	29 Jul 2010 18:57:28 -0000	1.114
+++ arm.cc	2 Aug 2010 20:40:42 -0000
@@ -8214,7 +8214,7 @@ Target_arm<big_endian>::gc_process_reloc
   typedef typename Target_arm<big_endian>::Scan Scan;
 
   gold::gc_process_relocs<32, big_endian, Arm, elfcpp::SHT_REL, Scan,
-			  Target_arm::Relocatable_size_for_reloc>(
+			  typename Target_arm::Relocatable_size_for_reloc>(
     symtab,
     layout,
     this,
Index: powerpc.cc
===================================================================
RCS file: /cvs/src/src/gold/powerpc.cc,v
retrieving revision 1.31
diff -p -u -r1.31 powerpc.cc
--- powerpc.cc	29 Jul 2010 18:57:28 -0000	1.31
+++ powerpc.cc	2 Aug 2010 20:40:42 -0000
@@ -1494,7 +1494,7 @@ Target_powerpc<size, big_endian>::gc_pro
   typedef typename Target_powerpc<size, big_endian>::Scan Scan;
 
   gold::gc_process_relocs<size, big_endian, Powerpc, elfcpp::SHT_RELA, Scan,
-			  Target_powerpc::Relocatable_size_for_reloc>(
+			  typename Target_powerpc::Relocatable_size_for_reloc>(
     symtab,
     layout,
     this,
Index: sparc.cc
===================================================================
RCS file: /cvs/src/src/gold/sparc.cc,v
retrieving revision 1.40
diff -p -u -r1.40 sparc.cc
--- sparc.cc	29 Jul 2010 18:57:28 -0000	1.40
+++ sparc.cc	2 Aug 2010 20:40:42 -0000
@@ -2331,7 +2331,7 @@ Target_sparc<size, big_endian>::gc_proce
   typedef typename Target_sparc<size, big_endian>::Scan Scan;
 
   gold::gc_process_relocs<size, big_endian, Sparc, elfcpp::SHT_RELA, Scan,
-			  Target_sparc::Relocatable_size_for_reloc>(
+			  typename Target_sparc::Relocatable_size_for_reloc>(
     symtab,
     layout,
     this,

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