$ gcc -v 
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.0/configure --prefix=/tools/pkg/gcc/4.0.0 --enable-
languages=c,c++ --disable-threads
Thread model: single
gcc version 4.0.0

$ touch a.c
$ gcc -E a.c
# 1 "a.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "a.c"

$ gcc -E -g a.c
# 1 "a.c"
# 1 "/home/jrichter//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "a.c"

This in conjunction with ccache and multiple users make ccache relative 
senseless (for our environment). Even if this is closed as a non-bug please 
give me a hint where this output is coming from. (So that I can change it in 
our tree)

Failes also with GCC 3.4.3
Works with GCC 3.3.3

-- 
           Summary: -E output depends on -g
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joerg dot richter at pdv-fs dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21815

Reply via email to