summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1996-04-15 07:46:10 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1996-04-15 07:46:10 +0000
commitf6e3ef26b4812d7773a4640c5f5b7c798b25d519 (patch)
tree5ae566bfe100fa103dfabae70dc5d0eed68cc6b3 /gcc/flags.h
parent48aa0bc81ab90615fbe726cbeeb1a63f0fbc81ef (diff)
downloadgcc-f6e3ef26b4812d7773a4640c5f5b7c798b25d519.tar.gz
* flags.h (flag_function_sections): Declare.
* toplev.c (flag_function_sections): Define. (compile_file): Add warnings when -ffunction-sections is used with -g, or profiling. Disable -ffunction-sections when profiling is used. Add warning when -ffunction-sections is used on a target that doesn't support it. * varasm.c (named_section): Make a copy of the section name in case the original is in temporary storage. (function_section): Set DECL_SECTION_NAME for each function if flag_function_sections is on and the target supports it. * dbxout.c (dbxout_function_end): New function. (dbxout_function): Call dbxout_function_end if using extensions and flag_function_sections is on. * sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Prefix a function section's name with ".text%" when -ffunction-sections. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11774 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index ed1cf57a310..60528ab3de1 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -325,6 +325,11 @@ extern int flag_no_common;
needed for crtstuff.c on other systems. */
extern int flag_inhibit_size_directive;
+/* Nonzero means place each function into its own section on those platforms
+ which support arbitrary section names and unlimited numbers of sections. */
+
+extern int flag_function_sections;
+
/* -fverbose-asm causes extra commentary information to be produced in
the generated assembly code (to make it more readable). This option
is generally only of use to those who actually need to read the