public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-28 10:39 Eric Botcazou
0 siblings, 0 replies; 7+ messages in thread
From: Eric Botcazou @ 2003-03-28 10:39 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9123; it has been noted by GNATS.
From: Eric Botcazou <ebotcazou@libertysurf.fr>
To: jason@gcc.gnu.org
Cc: gcc-bugs@gcc.gnu.org,
khindenburg@cherrynebula.net,
nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Subject: Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
Date: Fri, 28 Mar 2003 11:17:31 +0100
> Not a c++-specific bug; it's dying because it's trying to substitute
> (unsigned char)-1 for a QI reg, but combine doesn't like that because
> (HOST_WIDE_INT)255 != (HOST_WIDE_INT)-1. Here's a C testcase:
>
> typedef unsigned char T;
> inline T clamp (T in, T min, T max)
> {
> return in <= min ? min : in >= max ? max : in;
> }
> unsigned char f (int i)
> {
> return clamp (i, 0, 255);
> }
On which versions and with which options does this C testcase fail?
--
Eric Botcazou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-28 22:06 ebotcazou
0 siblings, 0 replies; 7+ messages in thread
From: ebotcazou @ 2003-03-28 22:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, khindenburg, nobody
Synopsis: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
State-Changed-From-To: analyzed->closed
State-Changed-By: ebotcazou
State-Changed-When: Fri Mar 28 21:33:57 2003
State-Changed-Why:
Fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9123
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-28 20:36 Eric Botcazou
0 siblings, 0 replies; 7+ messages in thread
From: Eric Botcazou @ 2003-03-28 20:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9123; it has been noted by GNATS.
From: Eric Botcazou <ebotcazou@libertysurf.fr>
To: Jason Merrill <jason@redhat.com>
Cc: gcc-bugs@gcc.gnu.org,
khindenburg@cherrynebula.net,
nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Subject: Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
Date: Fri, 28 Mar 2003 20:54:18 +0100
> Hmm, I seem to have attached the wrong C testcase. To fail, it needs
> consts. It fails with 3.2 and 3.3, but seems to be fixed on the trunk.
>
> typedef unsigned char T;
> inline T clamp (const T in, const T min, const T max)
> {
> return in <= min ? min : in >= max ? max : in;
> }
> unsigned char f (int i)
> {
> return clamp (i, 0, 255);
> }
I can't reproduce on any branch on i586-redhat-linux-gnu. I strongly suspect
that I fixed it everywhere two weeks ago with:
2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
PR optimization/8396
* tree-inline.c (initialize_inlined_parameters): Make sure the value
of read-only constant arguments is passed with the right type.
Are your 3.2 and 3.3 compilers up-to-date?
--
Eric Botcazou
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-28 17:16 Jason Merrill
0 siblings, 0 replies; 7+ messages in thread
From: Jason Merrill @ 2003-03-28 17:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9123; it has been noted by GNATS.
From: Jason Merrill <jason@redhat.com>
To: Eric Botcazou <ebotcazou@libertysurf.fr>
Cc: gcc-bugs@gcc.gnu.org, khindenburg@cherrynebula.net, nobody@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Subject: Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler
error in do_SUBST at combine.c:434
Date: Fri, 28 Mar 2003 11:57:02 -0500
On Fri, 28 Mar 2003 11:17:31 +0100, Eric Botcazou <ebotcazou@libertysurf.fr> wrote:
> On which versions and with which options does this C testcase fail?
Hmm, I seem to have attached the wrong C testcase. To fail, it needs
consts. It fails with 3.2 and 3.3, but seems to be fixed on the trunk.
typedef unsigned char T;
inline T clamp (const T in, const T min, const T max)
{
return in <= min ? min : in >= max ? max : in;
}
unsigned char f (int i)
{
return clamp (i, 0, 255);
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-22 21:46 Janis Johnson
0 siblings, 0 replies; 7+ messages in thread
From: Janis Johnson @ 2003-03-22 21:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR optimization/9123; it has been noted by GNATS.
From: Janis Johnson <janis187@us.ibm.com>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, khindenburg@cherrynebula.net,
nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org, aoliva@redhat.com
Cc:
Subject: Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error
in do_SUBST at combine.c:434
Date: Sat, 22 Mar 2003 13:42:33 -0800
The regression appeared with this patch:
2001-04-12 Alexandre Oliva <aoliva@redhat.com>
* recog.c (general_operand, immediate_operand,
nonmemory_operand): Require CONST_INTs to be sign-extended
values for their modes.
The search used the smaller C++ test case.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9123
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-10 22:38 jason
0 siblings, 0 replies; 7+ messages in thread
From: jason @ 2003-03-10 22:38 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, khindenburg, nobody
Synopsis: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
State-Changed-From-To: open->analyzed
State-Changed-By: jason
State-Changed-When: Mon Mar 10 22:38:35 2003
State-Changed-Why:
analyzed->analyzed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9123
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
@ 2003-03-10 22:37 jason
0 siblings, 0 replies; 7+ messages in thread
From: jason @ 2003-03-10 22:37 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, khindenburg, nobody
Synopsis: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434
State-Changed-From-To: analyzed->open
State-Changed-By: jason
State-Changed-When: Mon Mar 10 22:37:43 2003
State-Changed-Why:
Not a c++-specific bug; it's dying because it's trying to substitute (unsigned char)-1 for a QI reg, but combine doesn't like that because (HOST_WIDE_INT)255 != (HOST_WIDE_INT)-1. Here's a C testcase:
typedef unsigned char T;
inline T clamp (T in, T min, T max)
{
return in <= min ? min : in >= max ? max : in;
}
unsigned char f (int i)
{
return clamp (i, 0, 255);
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9123
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-03-28 21:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 10:39 optimization/9123: [3.2/3.3/3.4 regression ] Internal compiler error in do_SUBST at combine.c:434 Eric Botcazou
-- strict thread matches above, loose matches on Subject: below --
2003-03-28 22:06 ebotcazou
2003-03-28 20:36 Eric Botcazou
2003-03-28 17:16 Jason Merrill
2003-03-22 21:46 Janis Johnson
2003-03-10 22:38 jason
2003-03-10 22:37 jason
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).