#151 Trouble with gcc -save-temps (GCC 3.1)

OTHER
closed
gcc (462)
none
Known_bugs
2013-01-30
2002-06-11
No

There is a problem with gcc-3_1-20020516-1 drivers, I believe. Try to
make an empty program, e.g. testc.c:

int main() { return 0;
}

Then compile it TWICE with option -save-temps. Here is the
command that I used:

$ /c/usr/gcc3/bin/gcc -v -c testc.c -save-
temps 2> 1st.txt
$ /c/usr/gcc3/bin/gcc -v -c testc.c -save-temps 2>
2nd.txt

The invocation of cc1.exe will DIFFER in the two
compilations above:

$ diff 1st.txt 2nd.txt
18c18
<
c:\usr\gcc3\bin\..\lib\gcc-lib\mingw32\3.1\cc1.exe -fpreprocessed
testc.i -quiet -dumpbase testc.c -version -o testc.s

---
>
c:\usr\gcc3\bin\..\lib\gcc-lib\mingw32\3.1\cc1.exe -fpreprocessed
testc.i -quiet -dumpbase testc.c -version -o
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccKGaaaa.s

22c22
<
as -o testc.o
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/cc2Faaaa.s

-
--
> as -o testc.o
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccKGaaaa.s

(The
complete output is attached). I tried this thing on CYGWIN's bash,
MSYS's bash, and Win2000's cmd.exe. And the error is still
consistent. The same error also happens with g++.

Discussion

  • Wirawan Purwanto

    Output from gcc invocation

     
  • Wirawan Purwanto

    Logged In: YES
    user_id=206371

    FYI: I also compiled gcc 3.1 on an Alpha machine, and when I tried the
    abovementioned commands, the Alpha's gcc does not screw up that way.

     
  • Danny Smith

    Danny Smith - 2002-06-11

    Logged In: YES
    user_id=11494

    I reported a related bug to GCC in February:
    http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%
    20audit-trail&database=gcc&pr=5620

    and a pointed to a way to fix it.

    It's up to GCC maintainers to follow through on that.
    I can fix in local sources if necessary, but I prefer to get
    it cleaned up in official sources.

    Danny

     
  • Danny Smith

    Danny Smith - 2002-06-11
    • status: open --> closed-remind
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-30
    • Description has changed:

    Diff:

    
    
    • status: closed-remind --> closed
    • resolution: --> none
    • category: --> Known_bugs
    • milestone: Known_bugs --> OTHER
     

Log in to post a comment.