This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fixes for mmix-knuth-mmixware


Hi.  A few patches (attached) for:
- Framework bugs, needs _link and should define _times, not times (a bug
  in common with other targets, it seems).
- Trying to handle file append completely wrong (there's actually no
  support for it in the simulator).
- Missing __volatile__ on the value-returning asms for simulator calls
  made them disappear if the values weren't used.  Bad if you expect some
  side-effect from them. :-)

Can I please commit this?  (Else please consider doing it for me.)
Can I commit changes to the mmixware files in the future, without explicit
approval?

2002-02-12  Hans-Peter Nilsson  <hp@bitrange.com>

	* libc/sys/mmixware/link.c: New.
	* libc/sys/mmixware/sys/syscall.h (TRAP1i, I3f): Make asm
	volatile.
	* libc/sys/mmixware/times.c (_times): Renamed from times.
	* libc/sys/mmixware/open.c (_open): Attempt to handle O_APPEND
	properly by reading previous contents, not through BinaryReadWrite.
	* libc/sys/mmixware/Makefile.am (lib_a_SOURCES): Add link.c
	* libc/sys/mmixware/Makefile.in: Regenerate.

(Nag: don't forget to regenerate libc/sys/mmixware/Makefile.in. ;-)

brgds, H-P

Attachment: new1
Description: mmix-newlib-patch1.txt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]