trying to get perl running on hp9000
Brandon S. Allbery
allbery at ncoast.UUCP
Tue Aug 2 08:30:50 AEST 1988
As quoted from <2105 at mhres.mh.nl> by jv at mhres.mh.nl (Johan Vromans):
+---------------
| === THIS IS NOT A BUG IN A SOURCE ===
|
| ... but I ran into a serious bug in the HP9000 C-compiler on HP9000/320
| running HP-UX 5.3 when I tried to get perl 2.0 running.
|
| It seems that this version of the C-compiler does not handle the following
| construct correctly:
|
| (double) (d_var1 rel-op d_var2)
|
| whre rel-op is one of ==, !=, <, >, <= or >= .
+---------------
Gee, that sounds familiar! Plexus Sys3 3.31 cc has either the same or a
very similar bug. (To be specific, our cc seems to act as if == != < > >=
<= && || ! returned some kind of special type which is automatically
promoted to (int) if necessary, but never to (double) or any other type;
and the "if" and "while" statements not only expect this type, but they also
only cast from (int) properly if the value is 0 or 1! (Talk about screwy
compilers! That last bit causes a number of programs to flatly refuse to
work, although they compile fine.)
Does Plexus System V cc have that bug fixed, or should we contemplate
something else for ncoast?
++Brandon
--
Brandon S. Allbery, uunet!marque!ncoast!allbery DELPHI: ALLBERY
For comp.sources.misc send mail to ncoast!sources-misc
More information about the Comp.sources.bugs
mailing list