Path: utzoo!attcan!uunet!cs.utexas.edu!usc!rutgers!mephisto!udel!new From: new@udel.edu (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: #pragma/Read(), why does this break? Message-ID: <10867@nigel.udel.EDU> Date: 12 Feb 90 18:22:58 GMT References: <13920043@hpfelg.HP.COM> Sender: usenet@udel.EDU Reply-To: new@udel.edu (Darren New) Organization: University of Delaware Lines: 12 In article <13920043@hpfelg.HP.COM> koren@hpfelg.HP.COM (Steve Koren) writes: >It could probably be simplified further, but I didn't bother. Anyhow, it >works just great if I 1) comment out the proto/all.h line and 2) link with >amiga.lib. However, if I include the proto/all.h file, and link with >only lc.lib like this: I've found a bug in LC5.04 that misgenerates the moving-into-registers code with the debug switches that DON'T flush registers on line boundries. That is, -d5 and -d3 work, but -d4 and -d2 generate code to move from somewhere to D2 instead of somewhere to D0 with pragmas. Look that your arguments (use CPR in mixed mode) are getting in the right registers. -- Darren