diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2005-05-06 13:40:30 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2005-05-06 13:40:30 +0000 |
commit | 858081ad6bcc54f16ad4e8500cd3ffdccf37ab39 (patch) | |
tree | 6ddc5f7285e57d85fd725a40a7b411c3766207dd | |
parent | 75c3cfba3919ee87bcc1459792eb81aba05a55ff (diff) | |
download | gcc-858081ad6bcc54f16ad4e8500cd3ffdccf37ab39.zip gcc-858081ad6bcc54f16ad4e8500cd3ffdccf37ab39.tar.gz gcc-858081ad6bcc54f16ad4e8500cd3ffdccf37ab39.tar.bz2 |
linux64.h: Remove MASK_PROFILE_KERNEL, and TARGET_PROFILE_KERNEL.
* config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
TARGET_PROFILE_KERNEL.
* config/rs6000/rs6000.c (output_profile_hook): Add comment to
TARGET_PROFILE_KERNEL use.
From-SVN: r99314
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/rs6000/linux64.h | 8 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
3 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 442259e..f337197 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2005-05-06 Aldy Hernandez <aldyh@redhat.com> + + * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and + TARGET_PROFILE_KERNEL. + + * config/rs6000/rs6000.c (output_profile_hook): Add comment to + TARGET_PROFILE_KERNEL use. + 2005-05-06 Nathan Sidwell <nathan@codesourcery.com> * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 84081c6..d2ab9bf 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -206,14 +206,6 @@ extern int dot_symbols; #endif -#define MASK_PROFILE_KERNEL 0x00100000 - -/* Non-standard profiling for kernels, which just saves LR then calls - _mcount without worrying about arg saves. The idea is to change - the function prologue as little as possible as it isn't easy to - account for arg save/restore code added just for _mcount. */ -#define TARGET_PROFILE_KERNEL (target_flags & MASK_PROFILE_KERNEL) - /* We use glibc _mcount for profiling. */ #define NO_PROFILE_COUNTERS TARGET_64BIT #define PROFILE_HOOK(LABEL) \ diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a0d15fd..5ed32b7 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -15233,6 +15233,10 @@ rs6000_gen_section_name (char **buf, const char *filename, void output_profile_hook (int labelno ATTRIBUTE_UNUSED) { + /* Non-standard profiling for kernels, which just saves LR then calls + _mcount without worrying about arg saves. The idea is to change + the function prologue as little as possible as it isn't easy to + account for arg save/restore code added just for _mcount. */ if (TARGET_PROFILE_KERNEL) return; |