flags.h (flag_function_sections): Declare.
authorJeff Law <law@gcc.gnu.org>
Mon, 15 Apr 1996 07:46:10 +0000 (01:46 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 15 Apr 1996 07:46:10 +0000 (01:46 -0600)
commitcf4403481dd67ecec1f1faabd8492421d3680a76
tree5ae566bfe100fa103dfabae70dc5d0eed68cc6b3
parent7ca919b759bb26a3aadb085d6d514a3ecd672510
flags.h (flag_function_sections): Declare.

        * 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.

From-SVN: r11774
gcc/config/sparc/sysv4.h
gcc/dbxout.c
gcc/flags.h
gcc/toplev.c
gcc/varasm.c