How to know source language in backend

Andrew Pinski pinskia@gmail.com
Thu Mar 21 05:39:00 GMT 2013


On Wed, Mar 20, 2013 at 10:29 PM, vikram_sp <vikramforum@yahoo.com> wrote:
>
> Hi
>
> In gcc backend code how to know which language are we compiling.
> When compiling fortran how do i know in backend code that we are generating
> code for fortran program.

Is there a reason for this?  For an example with LTO you might be
generating code for fortran and C in the same invoking of the backend
(even inlined function wise).

Thanks,
Andrew



More information about the Fortran mailing list