From 07a0475c662dd6b5167be2c2bd80081eb1fee20a Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sun, 12 Aug 2007 03:41:19 +0000 Subject: [PATCH] ICU-5799 Change HP-UX IA64 to use genccode assembly generation. X-SVN-Rev: 22357 --- icu4c/source/config/mh-hpux-acc | 2 +- icu4c/source/configure | 5 ++++- icu4c/source/configure.in | 3 +++ icu4c/source/tools/genccode/genccode.c | 13 ++++++++++++- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/icu4c/source/config/mh-hpux-acc b/icu4c/source/config/mh-hpux-acc index d5e278c7d48..cf690d02d29 100644 --- a/icu4c/source/config/mh-hpux-acc +++ b/icu4c/source/config/mh-hpux-acc @@ -60,7 +60,7 @@ LD_SONAME = -Wl,+h,$(notdir $(MIDDLE_SO_TARGET)) ## The type of assembly needed when pkgdata is used for generating shared libraries. # Commented out for now because the hp1 test machine runs out of memory. -#GENCCODE_ASSEMBLY=-a aCC +#GENCCODE_ASSEMBLY=-a aCC-parisc ## Shared object suffix SO= sl diff --git a/icu4c/source/configure b/icu4c/source/configure index 7f2ba1d4486..c71b4193adf 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -4540,6 +4540,9 @@ i*86-*-solaris*) sparc-*-solaris*) GENCCODE_ASSEMBLY="-a sun" ;; +ia64-*-hpux*) + GENCCODE_ASSEMBLY="-a aCC-ia64" + ;; esac @@ -8329,7 +8332,7 @@ then CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS)" fi - ac_config_files="$ac_config_files icudefs.mk Makefile data/icupkg.inc config/Makefile.inc data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genuca/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gennames/Makefile tools/gentest/Makefile tools/gennorm/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdata.inc test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/charperf/Makefile test/perf/collperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/ubrkperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/utfperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/csdet/Makefile samples/layout/Makefile common/unicode/platform.h" + ac_config_files="$ac_config_files icudefs.mk Makefile data/icupkg.inc config/Makefile.inc data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genuca/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/genctd/Makefile tools/gennames/Makefile tools/gentest/Makefile tools/gennorm/Makefile tools/genprops/Makefile tools/gencase/Makefile tools/genbidi/Makefile tools/genpname/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdata.inc test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/csdet/Makefile samples/layout/Makefile common/unicode/platform.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure diff --git a/icu4c/source/configure.in b/icu4c/source/configure.in index be45a0af644..ba28f896c3c 100644 --- a/icu4c/source/configure.in +++ b/icu4c/source/configure.in @@ -413,6 +413,9 @@ i*86-*-solaris*) sparc-*-solaris*) GENCCODE_ASSEMBLY="-a sun" ;; +ia64-*-hpux*) + GENCCODE_ASSEMBLY="-a aCC-ia64" + ;; esac AC_SUBST(GENCCODE_ASSEMBLY) diff --git a/icu4c/source/tools/genccode/genccode.c b/icu4c/source/tools/genccode/genccode.c index 37cd14e6c52..291ca22952c 100644 --- a/icu4c/source/tools/genccode/genccode.c +++ b/icu4c/source/tools/genccode/genccode.c @@ -204,7 +204,18 @@ static const struct AssemblyType { ".long " }, - {"aCC", + {"aCC-ia64", + "\t.file \"%s.s\"\n" + "\t.type %s,@object\n" + "\t.global %s\n" + "\t.secalias .abe$0.rodata, \".rodata\"\n" + "\t.section .abe$0.rodata = \"a\", \"progbits\"\n" + "\t.align 16\n" + "%s::\t", + + "data4 " + }, + {"aCC-parisc", "\t.SPACE $TEXT$\n" "\t.SUBSPA $LIT$\n" "%s\n"