hpux10 bug

Neal Becker neal at ctd.comsat.com
Tue Aug 12 06:58:17 PDT 1997


gcc -g -O -I. -I../../../../include -I./../../../../include -I../../../../config -I./../../../../config -c -fpic ./java.lang/Double.c
In file included from ../../../../config/md.h:16,
                 from ../../../../kaffe/kaffevm/locks.h:16,
                 from ./java.lang/Double.c:17:
.../../../../config/parisc/threads.h:42: parse error before `do'
.../../../../config/parisc/threads.h:42: parse error before `->'
.../../../../config/parisc/threads.h:42: parse error before `->'
.../../../../config/parisc/threads.h:42: parse error before `->'
.../../../../config/parisc/threads.h:42: parse error before `->'

This won't compile with gcc.  Can anyone tell me what is the gcc
equivalent to this:

        do {                                                            \
                register uint8 *sp __asm__("%r30");                     \
                (ee)->restorePoint = NULL;                              \
                (ee)->stackBase = sp;                                   \
                (ee)->stackEnd = sp + threadStackSize;                  \
                (ee)->flags = THREAD_FLAGS_NOSTACKALLOC;                \
        } while (0)

I'm guessing that __asm__ ... is inline assembly intended for HP's
/bin/cc compiler.  I need the syntax for gcc.  Or some idea of what
that code is supposed to do.





More information about the kaffe mailing list