whoops:
checking whether .byte V and .p2align N,V are supported... no
checking whether .byte V and .align N,V are supported... no
checking whether the opcode map can be inlined... no
checking alignment of secondary tag for const terms... ok
checking if alignment of secondary tags for extensions needs padding... yes
checking if padding works... yes
For the following c file
tmp.c:
void** check(void**);
int main()
{
check((void**)0);
return (check((void**)1) == (void**)1) ? 0 : 1;
}
static void* table[2];
void** check(void**label)
{
table[0] = && one;
table[1] = && two;
if (label==(void**)0 || label==(void**)1) return label;
goto **label;
one:
asm volatile(".byte 3");
asm volatile(".p2align 8,3");
return label+1;
two:
return label+2;
}
I get
aldebaran!glynn [13] gcc -c tmp.c
tmp.c: In function `check':
tmp.c:13: warning: ISO C forbids taking the address of a label
tmp.c:14: warning: ISO C forbids taking the address of a label
tmp.c:16: warning: ISO C forbids `goto *expr;'
tmp.c:18: error: `asm' undeclared (first use in this function)
tmp.c:18: error: (Each undeclared identifier is reported only once
tmp.c:18: error: for each function it appears in.)
tmp.c:18: error: parse error before "volatile"
whereas on linux it compiles without error.
k
PS. perl version problem:
checking for perl... perl
configure: warning:
Perl version 5 or higher is needed to build the system.
It can be retrieved from:
http://language.perl.com/info/software.html
Turns out that solaris sed does nothing if the input doesn't have a
carriage return.
We can fix the test as follows:
aldebaran!glynn [52] cvs -q diff
Index: configure
===================================================================
RCS file: /services/mozart/CVS/mozart/platform/emulator/configure,v
retrieving revision 1.280.2.3
diff -r1.280.2.3 configure
3147c3147
< oz_tmp_version=`$PERL -e 'print "[$]";' | sed 's|^.||'`
--- > oz_tmp_version=`$PERL -e 'print "[$]\n";' | sed 's|^.||'`which also works for gnu sed. Anyone see a problem?
k
duchier@ps.uni-sb.de writes: > Hi Kevin, > > I checked-in "inline opcode map" support for sparc. Can you give it a > try. You need to read the configure output to check the following > lines: > > checking whether .byte V and .p2align N,V are supported... yes > checking whether .byte V and .align N,V are supported... yes > checking whether .align N means multiple or power_of_2... multiple > checking whether the opcode map can be inlined... yes > > The last one should indeed say yes on sparc now. > > Cheers, > > -- > Denys Duchier - Équipe Calligramme - LORIA, Nancy, France > - > Please send submissions to hackers@mozart-oz.org > and administriva mail to hackers-request@mozart-oz.org. > The Mozart Oz web site is at http://www.mozart-oz.org/. > - Please send submissions to hackers@mozart-oz.org and administriva mail to hackers-request@mozart-oz.org. The Mozart Oz web site is at http://www.mozart-oz.org/.