gcc 3.2.2 portability hacks.
authorIan Lance Taylor <iant@google.com>
Fri, 1 Dec 2006 00:10:37 +0000 (00:10 +0000)
committerIan Lance Taylor <iant@google.com>
Fri, 1 Dec 2006 00:10:37 +0000 (00:10 +0000)
gold/output.cc
gold/output.h

index 2dbf576fc1647d65b8b1537db9f32599f34f3e7d..14938472751479b4e86949e8988ec1138c352431 100644 (file)
@@ -625,7 +625,8 @@ template<int size, bool big_endian>
 void
 Output_data_dynamic::Dynamic_entry::write(
     unsigned char* pov,
-    const Stringpool* pool) const
+    const Stringpool* pool
+    ACCEPT_SIZE_ENDIAN) const
 {
   typename elfcpp::Elf_types<size>::Elf_WXword val;
   switch (this->classification_)
@@ -720,7 +721,8 @@ Output_data_dynamic::sized_write(Output_file* of)
        p != this->entries_.end();
        ++p)
     {
-      p->write<size, big_endian>(pov, this->pool_);
+      p->write SELECT_SIZE_ENDIAN_NAME(size, big_endian)(
+          pov, this->pool_ SELECT_SIZE_ENDIAN(size, big_endian));
       pov += dyn_size;
     }
 
index 6e575ba404c2d1017edf8f4f2912943b5e6729b0..f7efdba55dc02636a19ccb2b2d044a8e3070e188 100644 (file)
@@ -1034,7 +1034,7 @@ class Output_data_dynamic : public Output_section_data
     // Write the dynamic entry to an output view.
     template<int size, bool big_endian>
     void
-    write(unsigned char* pov, const Stringpool*) const;
+    write(unsigned char* pov, const Stringpool* ACCEPT_SIZE_ENDIAN) const;
 
    private:
     enum Classification