[comp.sys.mips] METAFONT Trap test fails on MIPS. Help!

lgy@blake.acs.washington.edu (Laurence Yaffe) (01/10/90)

In article <1990Jan9.125234.3893@keysec.kse.com> gm@keysec.kse.com (Greg McGary) writes:
>MF 1.7 from the UNIX-TeX distribution fails the trap test on a MIPS b.
>I'll give a brief report here, and if some kind soul would like more of the
>gory details, I'll give a complete report via mail.

>-- Greg McGary
>-- Key Systems Engineering
>-- Work: (703) 742-7870  Home: (703) 352-0407
>-- gm@kse.com, gm@cs.duke.edu, ..!uunet!keysec!gm

    I've built both TeX and Metafont using MIPS' 2.0 compilers and had
them successfully pass the TRIP and TRAP tests.  In 'site.h', I use:

	#define SYSV
	#undef  BSD
	#undef  ANSI
	typedef signed char schar;

The 'signed char' in the last typedef is cruical.  I've tried using both
#define SYSV (and /bin/cc) and #define BSD (and /bsd43/bin/cc) - both worked
when optimization no greater than -O1 was used.  Using -O2 breaks something
in both TeX and Metafont.  I've sent MIPS a bug report about this many months
ago, but never heard whether the problem has been found.  Hope this helps.

-- 
Laurence G. Yaffe		Internet: lgy@newton.phys.washington.edu
University of Washington	  Bitnet: yaffe@uwaphast.bitnet

rudy@mips.COM (Rudy Wang) (01/10/90)

In article <5273@blake.acs.washington.edu> lgy@newton.phys.washington.edu (Laurence Yaffe) writes:
>In article <1990Jan9.125234.3893@keysec.kse.com> gm@keysec.kse.com (Greg McGary) writes:
>>MF 1.7 from the UNIX-TeX distribution fails the trap test on a MIPS b.
>>I'll give a brief report here, and if some kind soul would like more of the
>>gory details, I'll give a complete report via mail.
>
>>-- Greg McGary
>>-- Key Systems Engineering
>>-- Work: (703) 742-7870  Home: (703) 352-0407
>>-- gm@kse.com, gm@cs.duke.edu, ..!uunet!keysec!gm
>
>    I've built both TeX and Metafont using MIPS' 2.0 compilers and had
>them successfully pass the TRIP and TRAP tests.  In 'site.h', I use:
>
>	#define SYSV
>	#undef  BSD
>	#undef  ANSI
>	typedef signed char schar;
>
>The 'signed char' in the last typedef is cruical.  I've tried using both
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>#define SYSV (and /bin/cc) and #define BSD (and /bsd43/bin/cc) - both worked
>when optimization no greater than -O1 was used.  Using -O2 breaks something
>in both TeX and Metafont.  I've sent MIPS a bug report about this many months
>ago, but never heard whether the problem has been found.  Hope this helps.
>
>-- 
>Laurence G. Yaffe		Internet: lgy@newton.phys.washington.edu
>University of Washington	  Bitnet: yaffe@uwaphast.bitnet


I'm sure most programmer don't like to read man pages, specially when
the it gets to be 20 screenfuls.  But if you actually picked your way
through the zillion cc options, you'll for sure come upon the following:

	-signed  Cause all cahr declarations to be "signed char"
		 declarations, the default is to treat them as
		 "unsigned char" declarations.

This may or may not cure your problems, but I believe it should relieve
the pain of typedef'ing "schar" and change all your "char"s to "schar"s.
-- 
UUCP:	{ames,decwrl,prls,pyramid}!mips!rudy	(or rudy@mips.com)
DDD:	408-991-0247 Rudy Wang			(or 408-720-1700, Ext. 247)
USPS:	MIPS Computer Systems, 930 Arques, Sunnyvale, CA 94086-3650
Quote:	I think they're for 1 AM - Descartes, about his midnight snacks