This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: temp preprocessed filename
- From: Michael Morrell <morrell at alumni dot ucsd dot edu>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 2 Mar 2010 14:05:45 -0800 (PST)
- Subject: Re: temp preprocessed filename
- Reply-to: morrell at alumni dot ucsd dot edu
Here's a smaller testcase:
typedef int ptrdiff_t;
namespace std {
using ::ptrdiff_t;
}
void foo() {}
when you run:
g++ -g -E foo.cpp > foo.ii; g++ -g -c foo.ii
the foo.o produced contains a reference to foo.ii in .debug_line.
Michael