[Bug tree-optimization/21894] New: gcc crashes with -O1 on a call to nested function
fjahanian at apple dot com
gcc-bugzilla@gcc.gnu.org
Thu Jun 2 23:23:00 GMT 2005
Following test ICEs with gcc mainline when compiled with -O1. Test was done on apple-ppc-darwin.
% gcc -c -O1 bad.c
bad.c: In function 'CheckFile':
bad.c:2: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
/* TEST */
typedef unsigned char uchar;
static void CheckFile () {
uchar *p;
uchar tagname[10]; uchar * a = tagname;
void validate(uchar const * pp, uchar const * q){
uchar const * p = pp;
if (a == tagname+4)
{
uchar const * x = p;
}
}
while(1){
if(a == tagname)
goto slip;
if (*p == '\"')
{
uchar const * const q = ++p;
validate(q, p++);
}
}
slip:
;
}
--
Summary: gcc crashes with -O1 on a call to nested function
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fjahanian at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: apple-ppa-darwin
GCC host triplet: apple-ppc-darwin
GCC target triplet: apple-ppa-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21894
More information about the Gcc-bugs
mailing list