ICU-5539 changes for genccode to use assembly to build data files on SolarisX86.

X-SVN-Rev: 20758
This commit is contained in:
Eric Mader 2006-12-06 20:15:27 +00:00
parent fcb6fa3e01
commit 04e071bd39
3 changed files with 25 additions and 2 deletions

View file

@ -4400,10 +4400,16 @@ fi
GENCCODE_ASSEMBLY=
case "${host}" in
i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-*-solaris*)
i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*)
if test "$GCC" = yes; then
GENCCODE_ASSEMBLY="-a gcc"
fi ;;
i*86-*-solaris*)
if test "$GCC" = yes; then
GENCCODE_ASSEMBLY="-a gcc"
else
GENCCODE_ASSEMBLY="-a sun86"
fi ;;
sparc-*-solaris*)
GENCCODE_ASSEMBLY="-a sun"
;;

View file

@ -354,11 +354,18 @@ AC_SUBST(HAVE_MMAP)
dnl Check to see if genccode can generate simple assembly.
GENCCODE_ASSEMBLY=
case "${host}" in
i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*|i*86-*-solaris*)
i*86-*-linux*|x86_64-*-linux*|powerpc*-*-linux*|i*86-*-*bsd*)
if test "$GCC" = yes; then
dnl We're using gcc, and the simple -a gcc command line works for genccode
GENCCODE_ASSEMBLY="-a gcc"
fi ;;
i*86-*-solaris*)
if test "$GCC" = yes; then
dnl We're using gcc, and the simple -a gcc command line works for genccode
GENCCODE_ASSEMBLY="-a gcc"
else
GENCCODE_ASSEMBLY="-a sun86"
fi ;;
sparc-*-solaris*)
GENCCODE_ASSEMBLY="-a sun"
;;

View file

@ -188,6 +188,16 @@ static const struct AssemblyType {
".word "
},
{"sun86",
"Drodata.rodata:\n"
"\t.type Drodata.rodata,@object\n"
"\t.size Drodata.rodata,0\n"
"\t.globl %s\n"
"\t.align 8\n"
"%s:\n",
".4byte "
},
{"xlc",
".globl %s{RO}\n"
"\t.toc\n"