Subject: Re: dump
To: None <hpeyerl@beer.org, abs@anim.dreamworks.com>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 06/23/1999 22:52:04
Due to a codegen bug in egcs-1.2/sparc, /sbin/dump dumps bad sets.
This is reported in PR bin/7735.

You could try to change the following line from sbin/dump/tape.c,
function writerec()

	*(union u_spcl *)(*(nextblock)++) = *(union u_spcl *)dp;

to
	*(union u_spcl *)(*nextblock) = *(union u_spcl *)dp;
	nextblock += 1;

The problem in short:

	the post-increment is done BEFORE the assignment.

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)