How to get the ".file and filename" section in assembly file.

Andrew Haley aph@redhat.com
Tue Feb 2 10:53:00 GMT 2010


On 02/02/2010 10:01 AM, Prashant Purohit wrote:
> 
>         I am porting GCC to a new dummy architecture and I am successful to
> get the required assembly file from cc1 but that assembly file does not
> contain the ".file" section and filename as it was there in all other GCC
> ported targets.
>        
>         Please, tell me if there is any function or macro to do this as I
> was not able to find it in GCC Internals.

If I wanted to know that, I'd just use gdb to step through until the ".file"
was emitted.  Why don't you do that?

Andrew.



More information about the Gcc-help mailing list