]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(sdbout_one_type): Don't switch to text section if
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 1 May 1995 23:50:11 +0000 (16:50 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 1 May 1995 23:50:11 +0000 (16:50 -0700)
in function with section attribute.

From-SVN: r9560

gcc/sdbout.c

index 4e95abd40ba1d9341f69e07e818d52698c0eae46..07bbcc6ebc7003a883fb1a50c6490fa4ff92e8d0 100644 (file)
@@ -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))
     {