public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/7247: [3.2 regression] copy constructor missing when inlining enabled for i386
@ 2003-04-25 19:51 jbuck
0 siblings, 0 replies; 3+ messages in thread
From: jbuck @ 2003-04-25 19:51 UTC (permalink / raw)
To: gawrilow, gcc-bugs, gcc-prs, nobody
Synopsis: [3.2 regression] copy constructor missing when inlining enabled for i386
State-Changed-From-To: analyzed->closed
State-Changed-By: jbuck
State-Changed-When: Fri Apr 25 19:51:03 2003
State-Changed-Why:
Fixed for the next release (3.3).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7247
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/7247: [3.2 regression] copy constructor missing when inlining enabled for i386
@ 2003-01-14 22:56 Janis Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Janis Johnson @ 2003-01-14 22:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/7247; it has been noted by GNATS.
From: Janis Johnson <janis187@us.ibm.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gawrilow@math.tu-berlin.de,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: optimization/7247: [3.2 regression] copy constructor missing when
inlining enabled for i386
Date: Tue, 14 Jan 2003 14:57:50 -0800
This bug was fixed on the mainline with this patch:
--- gcc/cp/ChangeLog ---
2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
Daniel Berlin <dan@dberlin.org>
* cp-lang.c (ok_to_generate_alias_set_for_type): New function.
(cxx_get_alias_set): Use it.
--- gcc/ChangeLog ---
2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
Daniel Berlin <dan@dberlin.org>
C++ alias analysis improvement.
* alias.c (record_component_aliases): Record aliases for base
classes too.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7247
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: optimization/7247: [3.2 regression] copy constructor missing when inlining enabled for i386
@ 2002-12-19 6:19 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2002-12-19 6:19 UTC (permalink / raw)
To: gawrilow, gcc-bugs, gcc-prs, nobody
Old Synopsis: copy constructor missing when inlining enabled for i386
New Synopsis: [3.2 regression] copy constructor missing when inlining enabled for i386
State-Changed-From-To: feedback->analyzed
State-Changed-By: reichelt
State-Changed-When: Thu Dec 19 06:19:45 2002
State-Changed-Why:
Confirmed (just for the record).
Here's a reduced testcase that fails on the 3.2 branch.
gcc 3.0.x, 3.3 and mainline do not seem to be affected.
--------------------------------snip here---------------------------------
extern "C" { extern int printf (const char *, ...) throw (); }
struct A {
const double d;
A() : d(1e-4) {}
void dump () const { printf("%e\n", d); }
};
struct B {
A a;
int i;
B(const A& arg) : a(arg) { arg.dump(); a.dump();}
};
struct C : B {
C(const A& arg) : B(arg) {}
};
struct X {
int i, j, k;
X() : j(0) {}
};
struct Y {
template <typename T> Y(int, const T&) {}
};
inline int foo() { X x; return 0; }
int main() {
Y y(foo(), C(A()));
return 0;
}
--------------------------------snip here---------------------------------
Just compile with "-O2" or "-O -fschedule-insns2" (on i686-pc-linux-gnu)
to get the wrong result
1.000000e-04
1.948841e-314
instead of
1.000000e-04
1.000000e-04
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7247
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-25 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-25 19:51 optimization/7247: [3.2 regression] copy constructor missing when inlining enabled for i386 jbuck
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 22:56 Janis Johnson
2002-12-19 6:19 reichelt
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).