This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH Fortran] make enum_9/10.f90 testcases work under FreeBSD ARM
- From: Ramana Radhakrishnan <ramana dot gcc at googlemail dot com>
- To: Andreas Tobler <andreast-list at fgznet dot ch>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 13 Jan 2015 08:57:39 +0000
- Subject: Re: [RFC PATCH Fortran] make enum_9/10.f90 testcases work under FreeBSD ARM
- Authentication-results: sourceware.org; auth=none
- References: <54B2F154 dot 6050305 at fgznet dot ch>
- Reply-to: ramrad01 at arm dot com
On Sun, Jan 11, 2015 at 9:55 PM, Andreas Tobler <andreast-list@fgznet.ch> wrote:
> Hi,
>
> I have here a possible way to make the enum_9.f90 and the enum_10.f90 work
> under arm*-*-freebsd*. The solution for enum_9.f90 is straight forward. But
> the one for enum_10.f90 requires a reordering of the dg-additional-sources
> line. This I do not understand yet, but maybe one of you does.
>
> If I have the original ordering and change the dg-options to check on
> 'target arm_eabi' I get strange compilation errors:
Any patches that convert arm*-*-linux* to arm_eabi can be considered
as obvious as long as you test them on an EABI compliant platform
which freebsd appears to be getting towards.
I haven't looked too deeply about the other "ordering" issue you mention here.
regards
Ramana
>
> ---
> /build/gcc/obj_gcc_armv6/gcc/testsuite/gfortran/../../gfortran
> -B/build/gcc/obj_gcc_armv6/gcc/testsuite/gfortran/../../
> -B/build/gcc/obj_gcc_armv6/armv6-unknown-freebsd11.0/./libgfortran/
> -fno-diagnostics-show-caret -fdiagnostics-color=never ./enum_10.c -c -o
> arm_eabi89728.o arm_eabi89728.c^M
> gfortran: fatal error: cannot specify -o with -c, -S or -E with multiple
> files^M
> compilation terminated.^M
> ---
>
> The -c comes after the enum_10.c ....
>
> Attached the solution which makes the tests pass. I tested them under
> FreeBSD armv6-*-freebsd11.0 and x86_64-unknown-freebsd11.0. Also under
> x86_64-unknown-linux-gnu. All PASS.
>
> Would this be ok for trunk?
>
> TIA,
> Andreas
>
> 2015-01-11 Andreas Tobler <andreast@gcc.gnu.org>
>
> * gfortran.dg/enum_9.f90: Replace arm*-*-linux* with arm_eabi.
> * gfortran.dg/enum_10.f90: Likewise. Reorder dg-additional-sources.