aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-07-13 04:40:23 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-07-13 04:40:23 +0000
commitdcacfa04fe67a4f0c957d0b37e0c750d2036d34d (patch)
tree368fea8b37e9a35afe1a0e8331dd2883719c3905 /gcc/final.c
parent6e993bdb628abac7f0400cc068c5a03e1897840d (diff)
downloadgcc-dcacfa04fe67a4f0c957d0b37e0c750d2036d34d.zip
gcc-dcacfa04fe67a4f0c957d0b37e0c750d2036d34d.tar.gz
gcc-dcacfa04fe67a4f0c957d0b37e0c750d2036d34d.tar.bz2
final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined.
* final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined. * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for FUNCTION_PROFILER. * config/i386/linux.h (NO_PROFILE_COUNTERS): Define. (FUNCTION_PROFILER): Just emit a call to mcount. From-SVN: r35005
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c
index be4a01e..e655637 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1705,7 +1705,9 @@ static void
profile_function (file)
FILE *file;
{
+#ifndef NO_PROFILE_COUNTERS
int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE);
+#endif
#if defined(ASM_OUTPUT_REG_PUSH)
#if defined(STRUCT_VALUE_INCOMING_REGNUM) || defined(STRUCT_VALUE_REGNUM)
int sval = current_function_returns_struct;
@@ -1715,10 +1717,12 @@ profile_function (file)
#endif
#endif /* ASM_OUTPUT_REG_PUSH */
+#ifndef NO_PROFILE_COUNTERS
data_section ();
ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
ASM_OUTPUT_INTERNAL_LABEL (file, "LP", profile_label_no);
assemble_integer (const0_rtx, LONG_TYPE_SIZE / BITS_PER_UNIT, 1);
+#endif
function_section (current_function_decl);