public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Gábor Lóki" <alga@rgai.hu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: optimization/10076: Use of function call return value Date: Mon, 17 Mar 2003 13:56:00 -0000 [thread overview] Message-ID: <20030317135600.18272.qmail@sources.redhat.com> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1639 bytes --] The following reply was made to PR optimization/10076; it has been noted by GNATS. From: =?ISO-8859-2?Q?G=E1bor_L=F3ki?= <alga@rgai.hu> To: rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: optimization/10076: Use of function call return value Date: Mon, 17 Mar 2003 14:54:05 +0100 rth@gcc.gnu.org wrote: >Synopsis: Use of function call return value > >State-Changed-From-To: open->closed >State-Changed-By: rth >State-Changed-When: Sun Mar 16 09:29:48 2003 >State-Changed-Why: > Not really a bug. You failed to return a value from foo1. > Fix that, as you did in foo2, and everything clears up. > >http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10076 > > > > Ok, the source code was not correct, but the problem still remains. It doesn't matter if a retrun is put at the end of foo1 or not, gcc produces the same problem. ( I subbmited a new PR: http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10122 ) In example_1 there is an unnecessary "mov r2,r0" as I descibed in PR. There is only one problem with this example. An opimization algorithm changed the order of instructions. So the unnecessary "mov r0,#35" is placed earlier than "str r2,[r3,#0]" (because of unnecessary "mov r2,r0", where r0 is dead). In example_2 there is another unnecessary "mov r3,r0". I don't know the reason of this. I hope these examples will help what the problem is! Regards, Gábor Lóki
next reply other threads:[~2003-03-17 13:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-17 13:56 Gábor Lóki [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-03-16 9:29 rth 2003-03-14 8:16 alga
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=20030317135600.18272.qmail@sources.redhat.com \ --to=alga@rgai.hu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).