Commit 274351ba by Richard Kenner

(in_data_section): New function.

From-SVN: r10983
parent ec9aa895
/* Output variables, constants and external declarations, for GNU compiler. /* 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. This file is part of GNU CC.
...@@ -231,6 +231,12 @@ in_text_section () ...@@ -231,6 +231,12 @@ in_text_section ()
return in_section == in_text; 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. /* Tell assembler to change to section NAME for DECL.
If DECL is NULL, just switch to section NAME. If DECL is NULL, just switch to section NAME.
If NAME is NULL, get the name from DECL. */ If NAME is NULL, get the name from DECL. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment