2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2006 13:35:45 +0000 (13:35 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2006 13:35:45 +0000 (13:35 +0000)
* ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
* ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
* ld-srec/sr3.cc (Foo::Foo): Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-cdtest/cdtest-foo.cc
ld/testsuite/ld-cdtest/cdtest-foo.h
ld/testsuite/ld-srec/sr3.cc

index dc5cfec..dec2aed 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld-cdtest/cdtest-foo.cc (Foo::Foo): Add const to char *.
+       * ld-cdtest/cdtest-foo.h (Foo::Foo): Likewise.
+       * ld-srec/sr3.cc (Foo::Foo): Likewise.
+
 2006-05-02  Paul Brook  <paul@codesourcery.com>
 
        * ld-arm/arm-elf.exp: Add thumb-rel32.
index c7d41a9..db76b02 100644 (file)
@@ -38,7 +38,7 @@ Foo::Foo ()
 #endif
 }
 
-Foo::Foo (char* msg)
+Foo::Foo (const char* msg)
 {
     i = ++foos;
     strncpy( message, msg, len);
index 0afe52a..f36efb7 100644 (file)
@@ -17,7 +17,7 @@ public:
     static void init_foo ();
     static int nb_foos() { return foos; }
     Foo();
-    Foo( char* message);
+    Foo(const char* message);
     Foo(const Foo&);
     Foo & operator= (const Foo&);
     ~Foo ();
index 283245d..0b5fa7e 100644 (file)
@@ -11,7 +11,7 @@ public:
     static void init_foo ();
     static int nb_foos() { return foos; }
     Foo();
-    Foo( char* message);
+    Foo(const char* message);
     Foo(const Foo&);
     Foo & operator= (const Foo&);
     ~Foo ();
@@ -93,7 +93,7 @@ Foo::Foo ()
   i = ++foos;
 }
 
-Foo::Foo (char*)
+Foo::Foo (const char*)
 {
   i = ++foos;
 }