gcc bug: convert_move -O3

Reini Urban rurban@x-ray.at
Thu Jun 30 08:17:00 GMT 2005


$ cpan C-DynaLib-0.55

$ make test
gcc -c  -I. -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe 
-I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION=\"0.55
\" -DXS_VERSION=\"0.55\"  "-I/usr/lib/perl5/5.8/cygwin/CORE" 
-DDYNALIB_DEFAULT_CONV=\"hack30\" -DDYNALIB_NUM_CALLBACKS=
4 -DDYNALIB_USE_hack30 DynaLib.c
conv.xsi: In function `XS_C__DynaLib_hack30_call_packed':
conv.xsi:67: internal compiler error: in convert_move, at expr.c:597
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [DynaLib.o] Error 1

#define hack30_CALL(func, type)						\
     ((*((type (*)()) hack30_pray))(ax,items,func))
num = hack30_CALL(symref, float);
-----------------------------------------------------------------------
easy reproducible testcase:

cat > gccO3bug.c

static int hack30_pray(ax, items, func)
int ax;
int items;
void *func;
{
	return 0;
}
int main () {
   int ax, items;
   void * symref;
   float num;
   num = ((*((float (*)()) hack30_pray))(ax,items,symref));
   return 0;
}
^D

gcc -c -O3 gccO3bug.c
internal compiler error: in convert_move, at expr.c:597
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
http://phpwiki.org/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DynaLib.cee
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050630/75fc0161/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list