This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: r207119 - in /branches/gcc-4_7-branch/gcc: fort...
- From: Dongsheng Song <dongsheng dot song at gmail dot com>
- To: mikael at gcc dot gnu dot org
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 27 Jan 2014 12:37:41 +0800
- Subject: Re: r207119 - in /branches/gcc-4_7-branch/gcc: fort...
- Authentication-results: sourceware.org; auth=none
- References: <20140126144949 dot 26627 dot qmail at sourceware dot org>
This broken gcc 4.7 build due to use C++ grammar in C source file:
static void
skip_list (int nest_level = 0)
{
...
}
gcc -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -Ifortran
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../include
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libcpp/include
-I/home/cauchy/obj/i686-w64-mingw32-gcc47/gcc/./gmp
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gmp
-I/home/cauchy/obj/i686-w64-mingw32-gcc47/gcc/./mpfr
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/mpfr
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/mpc/src
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libdecnumber
-I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libdecnumber/bid
-I../libdecnumber
/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c
-o fortran/module.o
/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c:3868:27:
error: expected â;â, â,â or â)â before â=â token
/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c:
In function âload_derived_extensionsâ:/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c:4231:6:
warning: implicit declaration of function âskip_listâ
[-Wimplicit-function-declaration]
make[2]: *** [fortran/module.o] Error 1
On Sun, Jan 26, 2014 at 10:49 PM, <mikael@gcc.gnu.org> wrote:
>
> Author: mikael
> Date: Sun Jan 26 14:49:47 2014
> New Revision: 207119
>
> URL: http://gcc.gnu.org/viewcvs?rev=207119&root=gcc&view=rev
> Log:
> fortran/
> PR fortran/58007
> * module.c (fp2, find_pointer2): Remove.
> (mio_component_ref): Don't forcedfully set the containing derived type
> symbol for loading. Remove unused argument.
> (mio_ref): Update caller
> (skip_list): New argument nest_level. Initialize level with the new
> argument.
> (read_module): Add forced pointer components association for derived
> type symbols.
>
> testsuite/
> PR fortran/58007
> * gfortran.dg/unresolved_fixup_1.f90: New test.
> * gfortran.dg/unresolved_fixup_2.f90: New test.
>
>
> Added:
> branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/unresolved_fixup_1.f90
> branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/unresolved_fixup_2.f90
> Modified:
> branches/gcc-4_7-branch/gcc/fortran/ChangeLog
> branches/gcc-4_7-branch/gcc/fortran/module.c
> branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
>