[gnu.gcc.bug] gcc -a switch does not work

luik@isaak.uucp (Andreas Luik) (07/28/89)

Hello,

I just tried to use gcc -a to get some output usable by tcov(1) [ Note:
this is only available on Sun-2, Sun-3 and Sun-4 systems - I work with
a Sun 3/60 ].

I compile a small test program with -a: [long lines wrapped]

    % gcc -a -v -o enum enum.c
    gcc version 1.35
     /usr/lib/public/gcc-cpp -v -undef -D__GNUC__ -Dmc68000 -Dsun -Dunix
    -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 enum.c
    /tmp/cca29865.cpp
    GNU CPP version 1.35
     /usr/lib/public/gcc-cc1 /tmp/cca29865.cpp -quiet -dumpbase enum.c -a
    -version -o /tmp/cca29865.s
    GNU C version 1.35 (68k, MIT syntax) compiled by GNU C version 1.35.
     as -mc68020 -o enum.o /tmp/cca29865.s
     ld -o enum -e start -dc -dp /lib/crt0.o /lib/Mcrt1.o enum.o
     /usr/lib/public/gcc-gnulib -lc /usr/lib/bb_link.o

After that no .d file has been created. If I run the program, I get the
following error message:

    enum.c: Corrupt file: 2 blocks left

Additionally, the .c file is truncated to 0 bytes (grrumbbl). A .d file
for tcov(1) does not exist.

Is this a known bug? Are there any patches available? Is this fixed in
a newer version than 1.35.0?

Thanks for any help,

Andreas Luik                    Domain: luik@isaak.isa.de
ISA GmbH                        UUCP:   luik@isaak.uucp
Azenberstr. 35                  Bang:   ...!uunet!unido!isaak!luik
7000 Stuttgart (West-Germany)   BITNET: luik%isaak.uucp@unido.bitnet