CRIS port 1/8: Prerequisite patch for configure.in
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Sun Apr 8 18:40:00 GMT 2001
Here's the first part of the Linux/CRIS port, the only really-prerequisite
patch for the CRIS port. Like HPPA, it uses ';' to start comments.
I hope you don't have any special arrangements or requirements for new
ports? Right, you may notice the GCC port isn't in yet. I'll try harder
on that one...
A multi-program assign.future paper (submitted when that was still
acceptable, though frowned on) is in place for Axis, which AFAIK would
match this as a "GNU C library" enhancement. That arrangement is similar
to that of Cygnus/RH, at least according to Mike Stump at the time.
While speaking on copyright assignment, I should mention that there are
two files which I believe Axis would like to retain copyright on; an
optimized memset.c and memcpy.c. Basically the same files are already
distributed with Linux 2.4.2. I don't really know how to handle the
issue, so I just believe it is best that Axis keep the copyright on them.
I should mention that this glibc port is somewhat work in progress.
"Hello world" works (dynamically linked), but I haven't verified much
else, except for attempting to hack my way through *running* the testsuite
in a simulator. Not worth it, so I quit after a few directories, though I
plan to re-visit it running natively. Oh, right, "hello, world" segfaults
when statically linked. Not in the simulator, though. :-( So it's
probably a kernel bug. ;-) BTW, you might have stumbled on an earlier port
of glibc 2.0.7 by Axis folks, to the MMU-less Etrax 100 and a.out. This
one is written from scratch, though.
2001-04-08 Hans-Peter Nilsson <hp@axis.com>
* configure.in (ASM_LINE_SEP tests): Handle CRIS assembly, with
';' for comments and '@' for line separator.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/glibc/libc/configure.in,v
retrieving revision 1.311
diff -p -c -r1.311 configure.in
*** configure.in 2001/04/06 22:26:02 1.311
--- configure.in 2001/04/08 17:46:49
*************** elif test $libc_cv_asm_weakext_directive
*** 1141,1148 ****
fi
dnl The standard hppa assembler uses `;' to start comments and `!'
! dnl as a line separator.
case "${host_cpu}-${host_os}" in
hppa*linux*)
AC_CACHE_CHECK(for assembler line separator,
libc_cv_asm_line_sep, [dnl
--- 1141,1153 ----
fi
dnl The standard hppa assembler uses `;' to start comments and `!'
! dnl as a line separator. CRIS uses `;' to start comments and `@' for
! dnl line separator.
case "${host_cpu}-${host_os}" in
+ cris*)
+ libc_cv_asm_line_sep='@'
+ AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep)
+ ;;
hppa*linux*)
AC_CACHE_CHECK(for assembler line separator,
libc_cv_asm_line_sep, [dnl
brgds, H-P
More information about the Libc-alpha
mailing list