From a78d2a672f1305eab1502d603e1c5d3cf10d673d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 2 May 2006 13:35:45 +0000 Subject: [PATCH] 2006-05-02 H.J. Lu * 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 | 6 ++++++ ld/testsuite/ld-cdtest/cdtest-foo.cc | 2 +- ld/testsuite/ld-cdtest/cdtest-foo.h | 2 +- ld/testsuite/ld-srec/sr3.cc | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index dc5cfec..dec2aed 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-05-02 H.J. Lu + + * 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 * ld-arm/arm-elf.exp: Add thumb-rel32. diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.cc b/ld/testsuite/ld-cdtest/cdtest-foo.cc index c7d41a9..db76b02 100644 --- a/ld/testsuite/ld-cdtest/cdtest-foo.cc +++ b/ld/testsuite/ld-cdtest/cdtest-foo.cc @@ -38,7 +38,7 @@ Foo::Foo () #endif } -Foo::Foo (char* msg) +Foo::Foo (const char* msg) { i = ++foos; strncpy( message, msg, len); diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.h b/ld/testsuite/ld-cdtest/cdtest-foo.h index 0afe52a..f36efb7 100644 --- a/ld/testsuite/ld-cdtest/cdtest-foo.h +++ b/ld/testsuite/ld-cdtest/cdtest-foo.h @@ -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 (); diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc index 283245d..0b5fa7e 100644 --- a/ld/testsuite/ld-srec/sr3.cc +++ b/ld/testsuite/ld-srec/sr3.cc @@ -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; } -- 2.7.4