From: H.J. Lu Date: Sun, 21 Feb 1999 19:43:30 +0000 (+0000) Subject: decl2.c (start_objects): Make file scope constructors and destructors local to the... X-Git-Tag: prereleases/egcs-1.1.2-prerelease-2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=208001d9e6b233ecc2779884ff137c5b00f8e680;p=thirdparty%2Fgcc.git decl2.c (start_objects): Make file scope constructors and destructors local to the file if... � * decl2.c (start_objects): Make file scope constructors and destructors local to the file if ASM_OUTPUT_CONSTRUCTOR and ASM_OUTPUT_DESTRUCTOR are defined. From-SVN: r25355 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 49d5611bae91..e55c48aa2be4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 21 20:38:00 1999 H.J. Lu (hjl@gnu.org) + + * decl2.c (start_objects): Make file scope constructors and + destructors local to the file if ASM_OUTPUT_CONSTRUCTOR and + ASM_OUTPUT_DESTRUCTOR are defined. + Sat Feb 20 15:08:42 1999 Jeffrey A Law (law@cygnus.com) 1999-01-25 Martin von Löwis diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 903da7639904..b7fe1394d3b3 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2943,6 +2943,11 @@ start_objects (method_type) NULL_TREE), NULL_TREE, 0); +#if defined(ASM_OUTPUT_CONSTRUCTOR) && defined(ASM_OUTPUT_DESTRUCTOR) + /* It can be a static function with .ctors/.dtors sections. */ + TREE_PUBLIC (current_function_decl) = 0; +#endif + store_parm_decls (); pushlevel (0); clear_last_expr ();