public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: meissner@suse.de
To: gcc-gnats@gcc.gnu.org
Subject: target/8659: trying to delete frame instruction with -fpic
Date: Thu, 28 Nov 2002 12:36:00 -0000	[thread overview]
Message-ID: <20021120145434.23724.qmail@sources.redhat.com> (raw)


>Number:         8659
>Category:       target
>Synopsis:       trying to delete frame instruction with -fpic
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 20 06:56:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Meissner <meissner@suse.de>
>Release:        gcc version 3.2.1 20021002 (prerelease)
>Organization:
>Environment:
SuSE Linux 8.1.99 (PowerPC 32) (powerpc-suse-linux)
>Description:
The attached testcase fails when compiled with:
gcc -O2 -fpic testcase.i
with:
setup.i: In function `c':
setup.i:10: Attempt to delete prologue/epilogue insn:
(insn 66 64 67 (set (reg:SI 65 lr)
        (reg:SI 12 r12)) -1 (nil)
    (nil))
setup.i:10: Internal compiler error in propagate_one_insn, at flow.c:1615
>How-To-Repeat:
gcc -O2 -fpic testcase.i on powerpc-*-linux
>Fix:
I guess something in the sibcall/varargs handling is amiss.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="testcase.i"
Content-Disposition: inline; filename="testcase.i"

static int a() {}
static int b(char *f, ...) { }

void c(char *x) {
  if (!*x) {
    b("");
    return;
  }
  a();
}


                 reply	other threads:[~2002-11-20 14:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20021120145434.23724.qmail@sources.redhat.com \
    --to=meissner@suse.de \
    --cc=gcc-gnats@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: link
Be 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).