public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/42696] New: lto1 error with -fsigned-char and char comparison
@ 2010-01-12 0:49 janis at gcc dot gnu dot org
2010-01-12 9:05 ` [Bug lto/42696] " rguenth at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: janis at gcc dot gnu dot org @ 2010-01-12 0:49 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
SPEC CPU2006 tests 464.h264ref and 482.sphinx3 fail to build on powerpc64-linux
with "-m64 -lto -fsigned-char". For some reason we've added the option
-fsigned-char to the SPEC config files for those two tests; without it both
tests fail at runtime for -m64, but it doesn't affect the results for -m32.
The failure to build with -flto might be due to some problem with -fsigned-char
on powerpc64, rather than a problem with LTO.
Here's a minimized testcase:
---------------------
extern char *a;
extern int f;
void
foo (void)
{
f = (*a != '-');
}
---------------------
And here's what happens:
elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gcc -m64 -flto -fsigned-char
bug.c -c
elm3b149% /home/janis/tools/gcc-trunk-anonsvn/bin/gcc -m64 -flto -fsigned-char
bug.o -shared -o x.so
In function foo:
lto1: error: type mismatch in indirect reference
<unnamed-signed:8>
<unnamed-unsigned:8>
D.1228_2 = *a.0_1;
lto1: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /home/janis/tools/gcc-trunk-anonsvn/bin/gcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status
If the type of 'a' is signed char then everything works fine.
--
Summary: lto1 error with -fsigned-char and char comparison
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42696
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/42696] lto1 error with -fsigned-char and char comparison
2010-01-12 0:49 [Bug lto/42696] New: lto1 error with -fsigned-char and char comparison janis at gcc dot gnu dot org
@ 2010-01-12 9:05 ` rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-01-12 9:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-01-12 09:05 -------
Mine. I hate -f[un]signed-char ...
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Keywords| |lto
Last reconfirmed|0000-00-00 00:00:00 |2010-01-12 09:05:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42696
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/42696] lto1 error with -fsigned-char and char comparison
2010-01-12 0:49 [Bug lto/42696] New: lto1 error with -fsigned-char and char comparison janis at gcc dot gnu dot org
2010-01-12 9:05 ` [Bug lto/42696] " rguenth at gcc dot gnu dot org
@ 2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-20 15:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-20 15:06 -------
Subject: Bug 42696
Author: rguenth
Date: Tue Jul 20 15:05:59 2010
New Revision: 162341
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162341
Log:
2010-07-20 Richard Guenther <rguenther@suse.de>
PR lto/42696
* gcc.dg/lto/20100720-4_0.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/lto/20100720-4_0.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42696
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug lto/42696] lto1 error with -fsigned-char and char comparison
2010-01-12 0:49 [Bug lto/42696] New: lto1 error with -fsigned-char and char comparison janis at gcc dot gnu dot org
2010-01-12 9:05 ` [Bug lto/42696] " rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
@ 2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-20 15:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-07-20 15:06 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42696
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-20 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-12 0:49 [Bug lto/42696] New: lto1 error with -fsigned-char and char comparison janis at gcc dot gnu dot org
2010-01-12 9:05 ` [Bug lto/42696] " rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth at gcc dot gnu dot org
2010-07-20 15:06 ` rguenth 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).