This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to know source language in backend


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]