This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"Unable to generate reloads" error from g++


Aloha,

The following source causes the above error message when compiled with the
current version of cygwin gcc .  (The code is extracted from part of a
system called EPICS.)

source (acg.cc):

extern __inline__ unsigned long int	__ntohl(unsigned long int);

extern __inline__ unsigned long int
__ntohl(unsigned long int x)
{
	__asm__("xchgb %b0,%h0\n\t"	/* swap lower bytes	*/
		"rorl $16,%0\n\t"	/* swap words		*/
		"xchgb %b0,%h0"		/* swap higher bytes	*/
		:"=q" (x)
		: "0" (x));
	return x;
}

typedef char		aitInt8;
typedef unsigned int 	aitUint32;
typedef float		aitFloat32;
typedef aitUint32	aitIndex;

static int aitConvertFromNetInt8Float32(void* d,const void* s,aitIndex c)
{
	aitIndex i;
	aitInt8* d_val=(aitInt8*)d;
	aitFloat32* s_val=(aitFloat32*)s;

	aitFloat32 temp;

	for(i=0;i<c;i++) {
		(*( (aitUint32*)&temp )= (__builtin_constant_p((long)( *( (aitUint32*)&s_val[i] ) )) ? ((unsigned long int)((((unsigned long int)( ( *( (aitUint32*)&s_val[i] ) ) ) & 0x000000ffU) << 24) | (((unsigned long int)( ( *( (aitUint32*)&s_val[i] ) ) ) & 0x0000ff00U) <<  8) | (((unsigned long int)( ( *( (aitUint32*)&s_val[i] ) ) ) & 0x00ff0000U) >>  8) | (((unsigned long int)( ( *( (aitUint32*)&s_val[i] ) ) ) & 0xff000000U) >> 24)))  : __ntohl(( *( (aitUint32*)&s_val[i] ) ))) ) ;
		d_val[i]=(aitInt8)temp;
	}
	return (int) (sizeof(aitInt8)*c);
}


compile command:

g++ -ansi -pedantic -Wtraditional    -O  -Wall -Wmissing-prototypes -Woverloaded-virtual -Wwrite-strings -Wconversion -Wstrict-prototypes -Wpointer-arith -Winline   -c   acg.cc


compiler output:

acg.cc: In function `int aitConvertFromNetInt8Float32(void *, const void *, unsigned int)':
acg.cc:32: Unable to generate reloads for:
(insn 79 77 83 (parallel[ 
            (set (reg:SI 0 %eax)
                (fix:SI (fix:SF (reg/v:SF 0 %eax))))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -2 [0xfffffffe])) 0))
            (clobber (mem:HI (plus:SI (reg:SI 6 %ebp)
                        (const_int -4 [0xfffffffc])) 0))
            (clobber (mem:SI (plus:SI (reg:SI 6 %ebp)
                        (const_int -8 [0xfffffff8])) 0))
            (clobber (scratch:HI))
        ] ) 145 {fix_truncsfsi2+1} (insn_list 118 (nil))
    (expr_list:REG_DEAD (reg/v:SF 0 %eax)
        (expr_list:REG_UNUSED (scratch:HI)
            (nil))))


cygcheck output:


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Dec 06 11:47:52 2001

Windows 2000 Professional Ver 5.0 build 2195 Service Pack 1

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\apps\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	e
	c600\bin
	e:\CapFast\wcs\bin
	C:\cygwin\opt\Tornado\host\parisc-hpux10\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `e:\thomas'
MAKE_MODE = `unix'
PWD = `/cygdrive/e/thomas/epics/base/src/gdd/O.cygwin32'
USER = `'

!EXITCODE = `00000000'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\Jim Thomas\Application Data'
CFHTCONFPATH = `/cfht/dev/conf'
CFHTDIR = `/usr/local/cfht'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `AA'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DVHOME = `/opt/dataviews'
EDITOR = `emacs'
FFTEMPLATE = `/cygdrive/e/thomas/.,template'
HOMEDRIVE = `e:'
HOMEPATH = `\thomas'
LESS = `-ceqM'
LOGONSERVER = `\\AA'
LS = `ls -abFC'
MANPATH = `/usr/man'
MORE = `-c'
NUMBER_OF_PROCESSORS = `2'
OBSERVER = `/users/observer'
OLDPWD = `/cygdrive/e/thomas/epics/base/src/gdd'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PAGER = `less'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0806'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `AA ~/epics/base/src/gdd/O.cygwin32 > '
SHLIB_PATH = `/opt/Tornado/host/parisc-hpux10/lib'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
SystemType = `cygwin'
SystemVersion = `1'
TEMP = `c:\tmp'
TERM = `cygwin'
TIX_LIBRARY = `/apps/tcl/lib/tix4.1/'
USERDOMAIN = `AA'
USERNAME = `Jim Thomas'
USERPROFILE = `C:\Documents and Settings\Jim Thomas'
VISUAL = `emacs'
WINDIR = `C:\WINNT'
WIND_BASE = `/opt/Tornado'
WIND_HOST_TYPE = `parisc-hpux10'
WIND_REGISTRY = `saturn'
WTX_CONSOLE_LINES = `2048'
_ = `/usr/bin/cygcheck'
cdHelper = `() {  if (( " $# == 0 " )); then
 'cd' || return 1;
 else
 if (( " $# == 1 " )); then
 'cd' $1 || return 1;
 else
 'cd' $* || return 1;
 fi;
 fi;
 Fixpwd $PWD;
 PS1="$SB$hostname $PromptPath >$EB "
}'
cfht = `/usr/local/cfht'
cfhtdir = `/cfht'
dev = `/cfht/dev'
dirsHelper = `() {  print "$PWD ${DirectoryStack[*]}"
}'
hostname = `AA'
observer = `/users/observer'
popdHelper = `() {  typeset -i Depth=${#DirectoryStack[*]};
 if (( " $# > 1 " )); then
 print "popd: zero or one argument";
 return 1;
 fi;
 case $1 in 
 "")
 if (( " Depth < 1 " )); then
 print "popd: nothing on stack";
 return 1;
 fi;
 cdHelper ${DirectoryStack[0]} || return;
 DirectoryStack[0]=$OLDPWD;
 typeset -i Index=0;
 while (( " Index < (Depth - 1) " )); do
 DirectoryStack[Index]=${DirectoryStack[Index+1]};
 (( " Index += 1 " ));
 done;
 unset DirectoryStack[Index]
 ;;
 +@([1-9])*([0-9]))
 typeset -i Entry=${1#+}-1;
 if (( " Entry > (Depth - 1) " )); then
 print "pushd: stack not that deep";
 return 1;
 fi;
 while (( " Entry < (Depth - 1) " )); do
 DirectoryStack[Entry]=${DirectoryStack[Entry+1]};
 (( " Entry += 1 " ));
 done;
 unset DirectoryStack[Entry]
 ;;
 *)
 print "popd: argument must be stack depth";
 return 1
 ;;
 esac;
 dirsHelper
}'
pushdHelper = `() {  typeset -i Depth=${#DirectoryStack[*]};
 if (( " $# > 1 " )); then
 print "pushd: zero or one argument";
 return 1;
 fi;
 case $1 in 
 "")
 if (( " Depth < 1 " )); then
 print "pushd: nothing on stack";
 return 1;
 fi;
 cdHelper ${DirectoryStack[0]} || return;
 DirectoryStack[0]=$OLDPWD
 ;;
 +@([1-9])*([0-9]))
 typeset -i Entry=${1#+};
 if (( " Entry > Depth " )); then
 print "pushd: stack not that deep";
 return 1;
 fi;
 typeset Where=${DirectoryStack[Entry]};
 cdHelper $Where || return;
 while (( " Entry > 0 " )); do
 DirectoryStack[Entry]=${DirectoryStack[Entry-1]};
 (( " Entry -= 1 " ));
 done;
 DirectoryStack[0]=$OLDPWD
 ;;
 *)
 cdHelper $1 || return;
 while (( " Depth > 0 " )); do
 DirectoryStack[Depth]=${DirectoryStack[Depth-1]};
 (( " Depth -= 1 " ));
 done;
 DirectoryStack[0]=$OLDPWD
 ;;
 esac;
 dirsHelper
}'
~ = `e:\CapFast'
~P3 = `e:\CapFast'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS    4094Mb  59% CP CS UN PA FC     System
d:  hd  NTFS    4094Mb  60% CP CS UN PA FC     BackupSystem
e:  hd  NTFS    4094Mb   5% CP CS UN PA FC     Mine
f:  hd           N/A    N/A                    
g:  hd           N/A    N/A                    
h:  cd           N/A    N/A                    
i:  hd  NTFS    4094Mb   2% CP CS UN PA FC     BackupMine
j:  hd           N/A    N/A                    
k:  hd           N/A    N/A                    

C:/cygwin      /          user    binmode
C:/cygwin/bin  /usr/bin   user    binmode
C:/cygwin/lib  /usr/lib   user    binmode
.              /cygdrive  user    binmode,noumount

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/20 13:53
  821k 2001/11/19 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2001/11/19 13:42
   34k 2001/09/30 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2001/9/29 16:43
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/22 16:26
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 18:34
   21k 2001/06/28 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2001/6/27 16:27
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 7:09
   81k 2001/10/20 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2001/10/19 14:25
   35k 2001/10/20 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2001/10/19 14:25
   45k 2001/07/04 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2001/7/3 17:25
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2001/6/5 18:27
   19k 2001/09/30 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2001/9/29 16:43
  175k 2001/09/30 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2001/9/29 16:45
  201k 2001/09/30 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2001/9/29 16:42
   12k 2001/09/30 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2001/9/29 16:43
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 12:15
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 12:15
  163k 2001/05/06 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2001/5/5 18:05
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 18:34
  135k 2001/06/28 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2001/6/27 16:27
   66k 2001/11/20 C:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0
                  "cygregex.dll" v0.0 ts=2001/11/20 4:44
  231k 2001/11/19 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2001/11/19 13:42
  390k 2001/10/20 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2001/10/19 14:24
    5k 2001/10/20 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2001/10/20 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2001/10/19 14:24
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2001/6/12 7:25
  623k 2001/10/20 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2001/10/19 14:25
   41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2001/7/3 15:21
   45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/19 16:45
   49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2001/2/3 10:35
  714k 2001/11/14 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/11/13 18:16
    Cygwin DLL version info:
        DLL version: 1.3.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 47
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Tue Nov 13 23:16:25 EST 2001
        CVS tag: cygwin-1-3-5-2
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: c:\cygwin
Last downloaded files from: ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin

Package             Version             
ash                 20011018-1          
autoconf            2.52-5              
autoconf-devel      2.52-4              
autoconf-stable     2.13-4              
automake            1.5a-1              
automake-devel      1.5-5               
automake-stable     1.4p5-5             
bash                2.05a-2             
binutils            20011002-1          
bison               1.28-1              
byacc               0.0                 
bzip2               1.0.1-6             
clear               1.0                 
cpio                2.4.2               
cron                3.0.1-5             
crypt               1.0-1               
ctags               5.0.1-1             
cvs                 1.11.0-1            
cygrunsrv           0.94-2              
cygwin              1.3.5-3             
dejagnu             20010117-1          
diff                0.0                 
expect              20010117-1          
file                3.33-1              
fileutils           4.1-1               
findutils           0.0                 
flex                2.5.4-1             
gawk                3.0.4-1             
gcc                 2.95.3-5            
gdb                 20010428-3          
gdbm                1.8.0-3             
gettext             0.10.38-2           
ghostscript         6.51-1              
gperf               0.0                 
grep                2.4.2-1             
groff               1.17.2-1            
gzip                1.3.2-1             
indent              2.2.6-2             
inetutils           1.3.2-15            
irc                 20010101-1          
jbigkit             1.2-4               
jpeg                6b-4                
less                358-3               
libncurses5         5.2-1               
libncurses6         5.2-2               
libpng              1.0.11-1            
login               1.4-2               
lynx                2.8.4-1             
m4                  0.0                 
make                3.79.1-5            
man                 1.5g-2              
mingw               20010917-1          
mingw-runtime       1.0-1               
mktemp              1.4-1               
mt                  2.0.1-1             
mutt                1.2.5i-5            
ncftp               3.0.2-2             
ncurses             5.2-7               
newlib-man          20001118-1          
opengl              1.1.0-5             
openssh             3.0.1p1-2           
openssl             0.9.6b-2            
patch               2.5-2               
pcre                3.7-1               
perl                5.6.1-2             
popt                1.6.2-1             
postgresql          7.1.3-1             
python              2.1.1-2             
readline            4.2-3               
regex               4.4-2               
rsync               2.4.6-3             
rxvt                2.7.2-6             
sed                 3.02-1              
sh-utils            2.0-2               
sharutils           4.2.1-1             
shutdown            1.2-1               
squid               2.4-STABLE20010508  
ssmtp               2.38.7-3            
tar                 1.13.19-1           
tcltk               20001125-1          
tcsh                6.10.00-3           
termcap             20010825-1          
terminfo            5.2-1               
tetex-beta          20001218-1          
texinfo             4.0-4               
textutils           2.0.16-1            
tiff                3.5.6beta-2         
time                1.7-1               
unzip               5.41-1              
vim                 6.0.93-1            
w32api              1.1-1               
wget                1.7-1               
which               1.5-1               
xpm-nox             4.1.0-1             
zip                 2.3-1               
zlib                1.1.3-6             

Use -h to see help about each section

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]