Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon S. Allbery) Newsgroups: comp.sources.bugs Subject: Re: trying to get perl running on hp9000 Message-ID: <12082@ncoast.UUCP> Date: 1 Aug 88 22:30:50 GMT References: <2105@mhres.mh.nl> Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery) Followup-To: comp.sources.bugs Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 30 As quoted from <2105@mhres.mh.nl> by jv@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