[Flang-dev] flang __GNUC__

Jeff Hammond jeff.science at gmail.com
Mon Sep 17 09:56:18 EDT 2018


That macro indicates acceptance of GNU C dialects.  While Clang supports
this, it would surprise me if Flang would, unless PGI's front-end did
already.

In any case, why does this concern you?  MPICH should not require a Fortran
front-end to support __GNUC__ to build.

Jeff

On Mon, Sep 17, 2018 at 5:43 AM, blubee blubeeme <gurenchan at gmail.com>
wrote:

> Does flang conform to GNUC?
>
> Trying to use flang to build mpich: https://github.com/pmodels/mpich
>
> Their configure script says that flang doesn't conform to the __GNUC__
> standard, is this expected behavior?
>
> F90-W-0915-Illegal macro name (conftest.F: -1)
> F90-W-0915-Illegal macro name (conftest.F: -1)
> F90-F-0952-Unexpected EOF following # directive (conftest.F: -1)
> F90/amd64-FreeBSD FreeBSD Flang - 1.5 2017-05-01: compilation aborted
> configure:19360: $? = 1
> configure: failed program was:
> |       program main
> | #ifndef __GNUC__
> |        choke me
> | #endif
> |
> |       end
> configure:19369: result: no
> configure:19375: checking whether flang accepts -g
> configure:19386: flang -c -g  conftest.f >&5
> clang-6.0: warning: -rpath /usr/local/lib,: 'linker' input unused
> [-Wunused-command-line-argument]
>
> Best,
> Owen
>
>
> _______________________________________________
> flang-dev mailing list
> flang-dev at lists.flang-compiler.org
> http://lists.flang-compiler.org/mailman/listinfo/flang-
> dev_lists.flang-compiler.org
>
>


-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20180917/5bfe4dec/attachment.html>


More information about the flang-dev mailing list