From ea9bfbf28f9d011716e6d903c063f851a716b9dd Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 29 Aug 2004 20:36:32 +0000 Subject: [PATCH] mips.c (override_options): Disable hot/cold partitioning for MIPS16. * config/mips/mips.c (override_options): Disable hot/cold partitioning for MIPS16. From-SVN: r86735 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e081b6bbea..aeb65caaf98 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-29 Richard Sandiford + + * config/mips/mips.c (override_options): Disable hot/cold partitioning + for MIPS16. + 2004-08-29 Richard Sandiford * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 39ea62d53f8..88bed78ea83 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -4180,6 +4180,10 @@ override_options (void) increase register pressure. */ flag_schedule_insns = 0; + /* Don't do hot/cold partitioning. The constant layout code expects + the whole function to be in a single section. */ + flag_reorder_blocks_and_partition = 0; + /* Silently disable -mexplicit-relocs since it doesn't apply to mips16 code. Even so, it would overly pedantic to warn about "-mips16 -mexplicit-relocs", especially given that -- 2.30.2