diff options
author | bde <bde@FreeBSD.org> | 1995-12-26 01:34:39 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-26 01:34:39 +0000 |
commit | 8dd11ac8d714e7ff5cfdbd232f4ccf0d0b87e9f5 (patch) | |
tree | 912fbe015a5ce9247cf1fb56edda613abeec2c08 /gnu/usr.bin/cc/include | |
parent | b5a75e1d63da02d6e929d5917307022bdb4f292a (diff) | |
download | FreeBSD-src-8dd11ac8d714e7ff5cfdbd232f4ccf0d0b87e9f5.zip FreeBSD-src-8dd11ac8d714e7ff5cfdbd232f4ccf0d0b87e9f5.tar.gz |
Enabled my FUNCTION_PROFILER_EPILOGUE code and added option
-mprofiler-epilogue to support it and documented the option.
cc.1:
Listed all the machine-dependent options, even the temporary
debugging ones.
invoke.texi:
Fixed the sense of -mno-ieee-fp.
Sorted the machine-dependent options.
Diffstat (limited to 'gnu/usr.bin/cc/include')
-rw-r--r-- | gnu/usr.bin/cc/include/tm.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/gnu/usr.bin/cc/include/tm.h b/gnu/usr.bin/cc/include/tm.h index 4b2909b..14aa504 100644 --- a/gnu/usr.bin/cc/include/tm.h +++ b/gnu/usr.bin/cc/include/tm.h @@ -27,6 +27,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Get perform_* macros to build libgcc.a. */ #include "i386/perform.h" +#define MASK_PROFILER_EPILOGUE 010000000000 + +#define TARGET_PROFILER_EPILOGUE (target_flags & MASK_PROFILER_EPILOGUE) + +#undef SUBTARGET_SWITCHES +#define SUBTARGET_SWITCHES \ + { "profiler-epilogue", MASK_PROFILER_EPILOGUE}, \ + { "no-profiler-epilogue", -MASK_PROFILER_EPILOGUE}, + #undef CPP_PREDEFINES #define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" @@ -83,15 +92,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ fprintf (FILE, "\tcall mcount\n"); \ } -#if 0 /* not ready for this; it should be decided at compile time */ #define FUNCTION_PROFILER_EPILOGUE(FILE) \ { \ - if (flag_pic) \ - fprintf (FILE, "\tcall *mexitcount@GOT(%%ebx)\n"); \ - else \ - fprintf (FILE, "\tcall mexitcount\n"); \ + if (TARGET_PROFILER_EPILOGUE) \ + { \ + if (flag_pic) \ + fprintf (FILE, "\tcall *mexitcount@GOT(%%ebx)\n"); \ + else \ + fprintf (FILE, "\tcall mexitcount\n"); \ + } \ } -#endif /* Override the default comment-starter of "/". */ |