(in_data_section): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Jan 1996 12:40:55 +0000 (07:40 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 15 Jan 1996 12:40:55 +0000 (07:40 -0500)
From-SVN: r10983

gcc/varasm.c

index cad3fc400d3604b76d712f7d3dc795a7d91622c5..b0f5d1bd2f7cd3658eede1467f0163b20c5f9886 100644 (file)
@@ -1,5 +1,5 @@
 /* Output variables, constants and external declarations, for GNU compiler.
-   Copyright (C) 1987, 88, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1987, 88, 89, 92-5, 1996 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -231,6 +231,12 @@ in_text_section ()
   return in_section == in_text;
 }
 
+/* Determine if we're in the data section. */
+int
+in_data_section ()
+{
+  return in_section == in_data;
+}
 /* Tell assembler to change to section NAME for DECL.
    If DECL is NULL, just switch to section NAME.
    If NAME is NULL, get the name from DECL.  */