public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/7145: g++ -O with structure initializer & return value optimization generates bad code
@ 2002-12-06 13:56 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-12-06 13:56 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, tlb
Synopsis: g++ -O with structure initializer & return value optimization generates bad code
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Dec 6 13:56:01 2002
State-Changed-Why:
Patches have been applied already back in July.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7145
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/7145: g++ -O with structure initializer & return value optimization generates bad code
@ 2002-06-29 22:06 tlb
0 siblings, 0 replies; 3+ messages in thread
From: tlb @ 2002-06-29 22:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/7145; it has been noted by GNATS.
From: tlb@tlb.org
To: "H.J. Lu" <hjl@lucon.org>
Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: optimization/7145: g++ -O with structure initializer & return value optimization generates bad code
Date: Sat, 29 Jun 2002 15:44:40 -0700
Works good, like software should. Thanks.
--
Trevor Blackwell tlb@tlb.org (650) 776-7870
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/7145: g++ -O with structure initializer & return value optimization generates bad code
@ 2002-06-29 7:15 H.J. Lu
0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2002-06-29 7:15 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/7145; it has been noted by GNATS.
From: "H.J. Lu" <hjl@lucon.org>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, tlb@tlb.org,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org?Subject=Re:,
optimization/@lucon.org
Cc:
Subject: Re: optimization/7145: g++ -O with structure initializer & return
value optimization generates bad code
Date: Fri, 28 Jun 2002 22:27:33 -0700
This is a multi-part message in MIME format.
--------------020208010607060209080104
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
How about this patch?
H.J.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7145
--------------020208010607060209080104
Content-Type: text/plain;
name="gcc-cpp-named.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="gcc-cpp-named.patch"
2002-06-28 H.J. Lu (hjl@gnu.org)
* typeck.c (check_return_expr): Don't set
current_function_return_value if DECL_INITIAL (retval) is not
NULL_TREE.
--- gcc/cp/typeck.c.init Fri Jun 21 00:36:03 2002
+++ gcc/cp/typeck.c Fri Jun 28 22:09:39 2002
@@ -6559,6 +6559,7 @@ check_return_expr (retval)
&& (current_function_return_value == NULL_TREE
|| current_function_return_value == retval)
&& TREE_CODE (retval) == VAR_DECL
+ && DECL_INITIAL (retval) == NULL_TREE
&& DECL_CONTEXT (retval) == current_function_decl
&& ! TREE_STATIC (retval)
&& (DECL_ALIGN (retval)
--------------020208010607060209080104--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-06 21:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 13:56 optimization/7145: g++ -O with structure initializer & return value optimization generates bad code bangerth
-- strict thread matches above, loose matches on Subject: below --
2002-06-29 22:06 tlb
2002-06-29 7:15 H.J. Lu
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).