Index: integer.cpp =================================================================== RCS file: /cvsroot/cryptopp/src/integer.cpp,v retrieving revision 1.6 diff -c -r1.6 integer.cpp *** integer.cpp 6 Nov 2001 09:50:46 -0000 1.6 --- integer.cpp 4 Oct 2002 00:37:04 -0000 *************** *** 125,133 **** } } ! #elif defined(__GNUC__) && defined(__i386__) ! __attribute__((regparm(4))) static word Add(word *C, const word *A, const word *B, unsigned int N) { assert (N%2 == 0); --- 125,133 ---- } } ! #elif defined(__GNUC__) && defined(__i386__) && !defined(__pic__) ! __attribute__((regparm(3))) static word Add(word *C, const word *A, const word *B, unsigned int N) { assert (N%2 == 0); *************** *** 165,171 **** return carry; } ! __attribute__((regparm(4))) static word Subtract(word *C, const word *A, const word *B, unsigned int N) { assert (N%2 == 0); --- 165,171 ---- return carry; } ! __attribute__((regparm(3))) static word Subtract(word *C, const word *A, const word *B, unsigned int N) { assert (N%2 == 0); Index: GNUmakefile =================================================================== RCS file: /cvsroot/cryptopp/src/GNUmakefile,v retrieving revision 1.5 diff -c -r1.5 GNUmakefile *** GNUmakefile 3 Nov 2001 21:23:16 -0000 1.5 --- GNUmakefile 4 Oct 2002 00:37:04 -0000 *************** *** 1,5 **** ! # can't use -fno-rtti yet because it causes problems with exception ! # handling in GCC 2.95.2 CXXFLAGS = -g # uncomment the next two lines to do a release build # CXXFLAGS = -O2 -DNDEBUG -ffunction-sections -fdata-sections --- 1,4 ---- ! # can't use -fno-rtti yet because it causes problems with exception handling in GCC 2.95.2 CXXFLAGS = -g # uncomment the next two lines to do a release build # CXXFLAGS = -O2 -DNDEBUG -ffunction-sections -fdata-sections *************** *** 9,21 **** UNAME = $(shell uname) ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist ! CXXFLAGS := $(CXXFLAGS) -mbnu210 else ! CXXFLAGS := $(CXXFLAGS) -pipe endif ifeq ($(UNAME),SunOS) ! LDLIBS = -lnsl -lsocket endif ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 --- 8,27 ---- UNAME = $(shell uname) ifeq ($(UNAME),) # for DJGPP, where uname doesn't exist ! CXXFLAGS += -mbnu210 else ! CXXFLAGS += -pipe ! endif ! ! ifeq ($(UNAME),Darwin) ! CXX = c++ ! CXXFLAGS += -D__pic__ -fno-coalesce-templates -fno-coalesce-static-vtables ! LDLIBS += -lstdc++ ! LDFLAGS += -flat_namespace -undefined suppress -m endif ifeq ($(UNAME),SunOS) ! LDLIBS += -lnsl -lsocket endif ifeq ($(CXX),gcc) # for some reason CXX is gcc on cygwin 1.1.4 *************** *** 24,30 **** SRCS = $(wildcard *.cpp) ! ifeq ($(SRCS),) # workaround wildcard function bug in GNU Make 3.77 SRCS = $(shell ls *.cpp) endif --- 30,36 ---- SRCS = $(wildcard *.cpp) ! ifeq ($(SRCS),) # workaround wildcard function bug in GNU Make 3.77 SRCS = $(shell ls *.cpp) endif