diff options
| -rw-r--r-- | gcc/ChangeLog | 7 | ||||
| -rw-r--r-- | gcc/config/netbsd.h | 4 | ||||
| -rw-r--r-- | gcc/doc/tm.texi | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c91c357..f8f2a83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-12-14 Richard Earnshaw <rearnsha@arm.com> + + * netbsd.h (COLLECT_SHARED_INIT_FUNC) + (COLLECT_SHARD_FINI_FUNC): Remove redundant semicolon. + * doc/tm.texi (COLLECT_SHARED_INIT_FUNC) + (COLLECT_SHARD_FINI_FUNC): Use @code where appropriate. + 2001-12-13 Richard Henderson <rth@redhat.com> * regrename.c (kill_value_regno): Simplify chain removal. diff --git a/gcc/config/netbsd.h b/gcc/config/netbsd.h index 35e671b..a7b10b3 100644 --- a/gcc/config/netbsd.h +++ b/gcc/config/netbsd.h @@ -67,13 +67,13 @@ do { \ fprintf ((STREAM), "void __init() __asm__ (\".init\");"); \ fprintf ((STREAM), "void __init() {\n\t%s();\n}\n", (FUNC)); \ - } while (0); + } while (0) #define COLLECT_SHARED_FINI_FUNC(STREAM,FUNC) \ do { \ fprintf ((STREAM), "void __fini() __asm__ (\".fini\");"); \ fprintf ((STREAM), "void __fini() {\n\t%s();\n}\n", (FUNC)); \ - } while (0); + } while (0) /* This defines which switch letters take arguments. */ #undef SWITCH_TAKES_ARG diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 55d38ff..c0105a8 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -6643,7 +6643,7 @@ If defined, a C statement that will write a function that can be automatically called when a shared library is loaded. The function should call @var{func}, which takes no arguments. If not defined, and the object format requires an explicit initialization function, then a -function called @var{_GLOBAL__DI} will be generated. +function called @code{_GLOBAL__DI} will be generated. This function and the following one are used by collect2 when linking a shared library that needs constructors or destructors, or has DWARF2 @@ -6654,7 +6654,7 @@ If defined, a C statement that will write a function that can be automatically called when a shared library is unloaded. The function should call @var{func}, which takes no arguments. If not defined, and the object format requires an explicit finalization function, then a -function called @var{_GLOBAL__DD} will be generated. +function called @code{_GLOBAL__DD} will be generated. @item INVOKE__main @findex INVOKE__main |
