From: Jim Wilson Date: Mon, 1 May 1995 23:50:11 +0000 (-0700) Subject: (sdbout_one_type): Don't switch to text section if X-Git-Tag: misc/cutover-egcs-0~4398 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=509b12e0c5a11970115b5d61ac4081f1a6f6d90e;p=thirdparty%2Fgcc.git (sdbout_one_type): Don't switch to text section if in function with section attribute. From-SVN: r9560 --- diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 4e95abd40ba1..07bbcc6ebc70 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -1002,7 +1002,11 @@ static void sdbout_one_type (type) tree type; { - text_section (); + if (current_function_decl != NULL_TREE + && DECL_SECTION_NAME (current_function_decl) != NULL_TREE) + ; /* Don't change section amid function. */ + else + text_section (); switch (TREE_CODE (type)) {