From: Richard Kenner Date: Sat, 15 May 1993 13:11:49 +0000 (-0400) Subject: (rs6000_makes_calls): If profiling, say we make calls. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c61c946496da4ee681d5d645a3353a097c2bad8;p=gcc.git (rs6000_makes_calls): If profiling, say we make calls. From-SVN: r4467 --- diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 69dca321d19..cb7ed834581 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -1240,6 +1240,10 @@ rs6000_makes_calls () { rtx insn; + /* If we are profiling, we will be making a call to mcount. */ + if (profile_flag) + return 1; + for (insn = get_insns (); insn; insn = next_insn (insn)) if (GET_CODE (insn) == CALL_INSN) return 1;