[1770] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: hc 1.4

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Mon Feb 13 06:02:18 1989

Date: Mon, 13 Feb 89 06:01:53 EST
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: John Carr <jfc@ATHENA.MIT.EDU>
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: [1716] John Carr's message of Sat, 28 Jan 89 20:48:28 EST,
   Date: Sat, 28 Jan 89 20:48:28 EST
   From: John Carr <jfc@ATHENA.MIT.EDU>

   The internal hc preprocessor/hc compiler combination can not compile the
   following simple file:

   % cat test.c
   #include <sys/signal.h>
   % cc -Hnocpp -c test.c

   E "/usr/include/sys/signal.h",L139/C1:  (syntactic)  unexpected symbol:'}'
   REPAIR:   '_far' was inserted before '}'@"/usr/include/sys/signal.h",L139/C1
   Object module not generated.
   % 

   It is not clear whether it is a preprocessor or compiler bug; it works fine
   with /lib/cpp (the default).  

This appears to be fixed with version 2 of the compiler, which we will
be shipping as /bin/hc2 in the 6.1 release.

   Another point:

   % cc -Hppo=test.out test.c            
   E :     Undefined toggle:LONG_ENUMS
   E :     Undefined toggle:DOUBLE_MATH_ONLY
   2 user errors   No warnings
   % 

   I should not be able to cause an internal error like this without any unusual
   command line switches.

     --John Carr

This is still broken in version 2, but in a different way:

     [prometheus!raeburn:/tmp]
    <1021  5:55am> % hc2 -Hppo=test.out test.c
    /tmp/var003052: No such file or directory

    Aborting(21)...
    Exit 21              hc2 -Hppo=test.out test.c
     [prometheus!raeburn:/tmp]
    <1022  5:55am> % hc2 -Hppo test.c         
     [prometheus!raeburn:/tmp]
    <1023  5:56am> % 

According to the man page, the latter should have output some text, so
both are wrong.  (The output file is produced, though.)  I'll send
this to our IBM people....

-- Ken

home help back first fref pref prev next nref lref last post