This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: How to know source language in backend
- From: Andrew Pinski <pinskia at gmail dot com>
- To: vikram_sp <vikramforum at yahoo dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Wed, 20 Mar 2013 22:39:05 -0700
- Subject: Re: How to know source language in backend
- References: <35200310 dot post at talk dot nabble dot com>
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