Bug 14754 - [3.3.4 regression] ICE in fold.c:invert_truthvalue
Summary: [3.3.4 regression] ICE in fold.c:invert_truthvalue
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 3.3.4
: P1 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-03-27 16:17 UTC by Steven Bosscher
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Bosscher 2004-03-27 16:17:45 UTC
On i686 and amd64, I get the following ICE: 
 
$ cat t.i 
static int foo (char *p) 
{ 
  if (! (*p & ~0x7f) ) ; 
} 
 
$ ../cc1 t.i 
 foo 
t.i: In function `foo': 
t.i:3: internal compiler error: in invert_truthvalue, at fold-const.c:2344 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
This is a regression on the 3.3 branch, 3.3.1 works just fine.
Comment 1 Steven Bosscher 2004-03-27 22:35:28 UTC
This resulted from the patch for Bug 14749.  The problem has no test 
coverage apparently, but it broke a bunch of packages.