public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux
@ 2004-08-19 12:43 jakub at gcc dot gnu dot org
2004-08-19 14:10 ` [Bug bootstrap/17099] " jakub at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-08-19 12:43 UTC (permalink / raw)
To: gcc-bugs
GCC 3.5.0 20040818 fails to bootstrap on powerpc64-redhat-linux
(no matter if starting bootstrap from GCC 3.4.1 or 3.3.4), there are lost of
comparison failures, apparently in .debug_info sections.
So far I have tracked it down to a miscompilation of modified_type_die.
Small testcase which shows the miscompilation is:
extern void exit (int);
extern void abort (void);
void
check (int a)
{
if (a != 1)
abort ();
}
void
test (int a, int b)
{
check ((a ? 1 : 0) | (b ? 2 : 0));
}
int
main (void)
{
test (1, 0);
exit (0);
}
At -O2 -m64 this aborts.
--
Summary: Bootstrap failure on powerpc64-redhat-linux
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug bootstrap/17099] Bootstrap failure on powerpc64-redhat-linux
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
@ 2004-08-19 14:10 ` jakub at gcc dot gnu dot org
2004-08-19 14:52 ` [Bug rtl-optimization/17099] [3.5 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-08-19 14:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-08-19 14:10 -------
The problem seems to be that during combine simplify-rtx.c "simplifies":
(sign_extend:DI (ior:SI (lshiftrt:SI (reg:SI 125)
(const_int 31 [0x1f]))
(subreg/s:SI (reg:DI 134 [ iftmp.1 ]) 4)))
into:
(ior:DI (and:DI (lshiftrt:DI (subreg:DI (reg:SI 125) 0)
(const_int 31 [0x1f]))
(const_int 3 [0x3]))
(reg:DI 134 [ iftmp.1 ]))
It is not 2 bits but one bit that should be ored into.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/17099] [3.5 Regression] Bootstrap failure on powerpc64-redhat-linux
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
2004-08-19 14:10 ` [Bug bootstrap/17099] " jakub at gcc dot gnu dot org
@ 2004-08-19 14:52 ` pinskia at gcc dot gnu dot org
2004-08-19 16:37 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-19 14:52 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Component|bootstrap |rtl-optimization
Keywords| |build, wrong-code
Summary|Bootstrap failure on |[3.5 Regression] Bootstrap
|powerpc64-redhat-linux |failure on powerpc64-redhat-
| |linux
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/17099] [3.5 Regression] Bootstrap failure on powerpc64-redhat-linux
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
2004-08-19 14:10 ` [Bug bootstrap/17099] " jakub at gcc dot gnu dot org
2004-08-19 14:52 ` [Bug rtl-optimization/17099] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-08-19 16:37 ` jakub at gcc dot gnu dot org
2004-08-20 20:52 ` cvs-commit at gcc dot gnu dot org
2004-08-20 21:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2004-08-19 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at gcc dot gnu dot org 2004-08-19 16:37 -------
I think the bug is in combine.c (force_to_mode).
force_to_mode (
(subreg:DI (ior:SI (lshiftrt:SI (reg:SI 125)
(const_int 31 [0x1f]))
(subreg/s:SI (reg:DI 134 [ iftmp.1 ]) 4)) 0)
, DImode, 3, 0, 0)
returns
(ior:DI (lshiftrt:DI (subreg:DI (reg:SI 125) 0)
(const_int 31 [0x1f]))
(reg:DI 134 [ iftmp.1 ]))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/17099] [3.5 Regression] Bootstrap failure on powerpc64-redhat-linux
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-08-19 16:37 ` jakub at gcc dot gnu dot org
@ 2004-08-20 20:52 ` cvs-commit at gcc dot gnu dot org
2004-08-20 21:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-20 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-20 20:52 -------
Subject: Bug 17099
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2004-08-20 20:52:22
Modified files:
gcc : ChangeLog combine.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/execute: 20040820-1.c
Log message:
PR rtl-optimization/17099
* combine.c (force_to_mode): Check if inner_mask has any bits set
outside of GET_MODE (x) instead of op_mode.
* gcc.c-torture/execute/20040820-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5008&r2=2.5009
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/combine.c.diff?cvsroot=gcc&r1=1.447&r2=1.448
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4166&r2=1.4167
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20040820-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/17099] [3.5 Regression] Bootstrap failure on powerpc64-redhat-linux
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-08-20 20:52 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-20 21:41 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-20 21:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-20 21:41 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17099
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-08-20 21:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-19 12:43 [Bug bootstrap/17099] New: Bootstrap failure on powerpc64-redhat-linux jakub at gcc dot gnu dot org
2004-08-19 14:10 ` [Bug bootstrap/17099] " jakub at gcc dot gnu dot org
2004-08-19 14:52 ` [Bug rtl-optimization/17099] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-08-19 16:37 ` jakub at gcc dot gnu dot org
2004-08-20 20:52 ` cvs-commit at gcc dot gnu dot org
2004-08-20 21:41 ` pinskia at gcc dot gnu dot org
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).