[4571] in Athena Bugs
MIPS C compiler may not deal with volatile keyword correctly
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Mon Mar 19 22:55:32 1990
Date: Mon, 19 Mar 90 22:55:15 -0500
From: Theodore Ts'o <tytso@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Reply-To: tytso@ATHENA.MIT.EDU
Warning: the MIPS C compiler may not deal with volatile keyword:
Newsgroups: comp.lang.perl
Subject: Re: Perl Patchlevel 15 on VAX 5400
Message-ID: <14317@cit-vax.Caltech.Edu>
Date: 16 Mar 90 12:27:45 GMT
Reply-To: ktl@wag240.caltech.edu (Kian-Tat Lim)
In article <1990Mar16.044319.14338@kaukau.comp.vuw.ac.nz>,
thetroll@rata (The Troll) writes:
>I have successfully managed to build Perl 3.0 Patchlevel 15 on a VAX 5400
>(a rebadged MIPS box). However it fails the following tests if the
>compiler flag -O is used: op.eval; test 7, op.[subst]; test 40.
This appears to be a generic MIPS problem, as it also occurs on our
SGI Iris 4D/240. I was hoping patch 15 would fix it, but it's still
there. On our box, the string returned by the eval in test 7 of
op.eval is getting stepped on somehow; compiling doio.c, eval.c, and
str.c without optimization (so dbx does something useful) doesn't help
the problem.
---------------------------------
From: ktl@wag240.caltech.edu (Kian-Tat Lim)
Subject: Re: Perl Patchlevel 15 on VAX 5400
Date: 16 Mar 90 21:37:36 GMT
Reply-To: ktl@wag240.caltech.edu (Kian-Tat Lim)
In article <14317@cit-vax.Caltech.Edu>, ktl@wag240 (Kian-Tat Lim) writes:
> [about problems with op.eval and op.subst in patch 15].
At a suggestion from beldar@mips.com (Gardner Cohen), I recompiled
without volatile. Everything works. Looks like the compiler is
generating bad code, even though it gives no errors.