public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/10567] -fno-delayed-branch no honored when -mflat Date: Sun, 24 Aug 2003 02:54:00 -0000 [thread overview] Message-ID: <20030824025447.23150.qmail@sources.redhat.com> (raw) In-Reply-To: <20030430161600.10567.davem@redhat.com> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10567 ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-24 02:54 ------- David could you test a patch for me as I do not have access to a sparc? Index: sparc.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,v retrieving revision 1.256 diff -u -p -r1.256 sparc.c --- sparc.c 16 Aug 2003 23:59:56 -0000 1.256 +++ sparc.c 24 Aug 2003 02:51:18 -0000 @@ -7223,11 +7223,13 @@ sparc_flat_function_epilogue (FILE *file fprintf (file, "\tset\t" HOST_WIDE_INT_PRINT_DEC ", %s\n", size, t1_str); } - - if (current_function_returns_struct) - fprintf (file, "\tjmp\t%%o7+12\n"); - else - fprintf (file, "\tretl\n"); + if (flag_delayed_branch) + { + if (current_function_returns_struct) + fprintf (file, "\tjmp\t%%o7+12\n"); + else + fprintf (file, "\tretl\n"); + } /* If the only register saved is the return address, we need a nop, unless we have an instruction to put into it. Otherwise @@ -7247,8 +7249,16 @@ sparc_flat_function_epilogue (FILE *file else if (size > 0) fprintf (file, "\tadd\t%s, %d, %s\n", sp_str, (int) size, sp_str); - else + else if (flag_delayed_branch) fprintf (file, "\tnop\n"); + + if (!flag_delayed_branch) + { + if (current_function_returns_struct) + fprintf (file, "\tjmp\t%%o7+12\n\tnop\n"); + else + fprintf (file, "\tretl\n\tnop\n"); + } } /* Reset state info for each function. */
next prev parent reply other threads:[~2003-08-24 2:54 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20030430161600.10567.davem@redhat.com> 2003-05-26 8:53 ` dhazeghi@yahoo.com 2003-05-26 14:11 ` pinskia@physics.uc.edu 2003-08-24 2:35 ` pinskia at gcc dot gnu dot org 2003-08-24 2:41 ` pinskia at gcc dot gnu dot org 2003-08-24 2:54 ` pinskia at gcc dot gnu dot org [this message] 2003-09-08 9:07 ` [Bug target/10567] -fno-delayed-branch not honored in function epilogues ebotcazou at gcc dot gnu dot org 2003-09-08 9:08 ` ebotcazou at gcc dot gnu dot org 2003-09-09 14:19 ` [Bug target/10567] -fno-delayed-branch not honored in back-end ebotcazou at gcc dot gnu dot org 2003-09-18 14:30 ` ebotcazou at gcc dot gnu dot org 2003-11-26 7:48 ` ebotcazou at gcc dot gnu dot org 2003-11-26 8:37 ` davem at gcc dot gnu dot org 2003-11-26 8:47 ` ebotcazou at gcc dot gnu dot org 2004-02-26 1:45 ` pinskia at gcc dot gnu dot org 2004-05-26 22:54 ` pinskia at gcc dot gnu dot org 2004-07-03 8:57 ` ebotcazou at gcc dot gnu dot org 2004-07-06 20:55 ` davem at gcc dot gnu dot org 2004-07-07 21:33 ` cvs-commit at gcc dot gnu dot org 2004-07-07 22:21 ` pinskia at gcc dot gnu dot org 2004-07-07 22:37 ` ebotcazou at gcc dot gnu dot org 2004-07-08 6:25 ` ebotcazou at gcc dot gnu dot org 2004-07-08 6:26 ` ebotcazou at gcc dot gnu dot org 2004-07-08 15:25 ` cvs-commit at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030824025447.23150.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).