public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dongsheng Song <dongsheng.song@gmail.com>
To: mikael@gcc.gnu.org
Cc: GCC Mailing List <gcc@gcc.gnu.org>
Subject: Re: r207119 - in /branches/gcc-4_7-branch/gcc: fort...
Date: Mon, 27 Jan 2014 09:22:00 -0000	[thread overview]
Message-ID: <CAE8XmWrb01CH3_aCtFzwp3NQZkXboFnqx-n9qG9gFdVK0ybK5A@mail.gmail.com> (raw)
In-Reply-To: <20140126144949.26627.qmail@sourceware.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
>

           reply	other threads:[~2014-01-27  4:38 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20140126144949.26627.qmail@sourceware.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAE8XmWrb01CH3_aCtFzwp3NQZkXboFnqx-n9qG9gFdVK0ybK5A@mail.gmail.com \
    --to=dongsheng.song@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=mikael@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).