This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Question about -fcheck-memory-usage and Checker


Hi,

I am using a Redhat Linux 6.2 system and gcc 2.95.2.
Since there is currently no Linux version of Purify, I am searching
for alternatives.

I tried compiling a sample program with the gcc flag 
"-fcheck-memory-usage".  However, at link time I got errors like:
/tmp/ccMunOVn.o(.text+0x17): undefined reference to `chkr_set_right'
/tmp/ccMunOVn.o(.text+0x2b): undefined reference to `chkr_set_right'

I did some investigating, and found that in order to resolve these
references, you need to link against a library called Checker:
http://www.gnu.org/software/checker/checker.html

This library is available at ftp://alpha.gnu.org/gnu/

I obtained this library, but when I tried to compile it, I got the error:

gcc -c -DGCCCHECKER   -I. -I./l-malloc -I. -I./lib -I./config/obj-formats -I./config/i386/Linux -O2 -g -Wall -Wstrict-prototypes  ./config/i386/Linux/munmap.c -o munmap.o
./config/i386/Linux/munmap.c: In function `chkr_munmap':
./config/i386/Linux/munmap.c:31: Invalid `asm' statement:
./config/i386/Linux/munmap.c:31: fixed or forbidden register 3 (bx) was spilled for class BREG.
gmake: *** [munmap.o] Error 1                                  


Does anyone know how to solve this kind of error?  I don't
have much experience with x86 assembler coding.

Is Checker an actively maintained package?  If it works, it
would be an extremely useful package.

Thanks.
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          

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