public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/64213] New: gimple-match.c:1523:6: error: ‘GIMPLE’ was not declared in this scope
@ 2014-12-07 18:37 ubizjak at gmail dot com
  2014-12-08 13:30 ` [Bug bootstrap/64213] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2014-12-07 18:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64213

            Bug ID: 64213
           Summary: gimple-match.c:1523:6: error: ‘GIMPLE’ was not
                    declared in this scope
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

/space/homedirs/uros/gcc-build/./prev-gcc/xg++
-B/space/homedirs/uros/gcc-build/./prev-gcc/
-B/usr/local/alphaev68-unknown-linux-gnu/bin/ -nostdinc++
-B/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/include/alphaev68-unknown-linux-gnu

-I/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/include
 -I/space/homedirs/uros/gcc-svn/trunk/libstdc++-v3/libsupc++
-L/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/space/homedirs/uros/gcc-build/prev-alphaev68-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
-Wno-unused -DHAVE_CONFIG_H -I. -I. -I../../gcc-svn/trunk/gcc
-I../../gcc-svn/trunk/gcc/. -I../../gcc-svn/trunk/gcc/../include
-I../../gcc-svn/trunk/gcc/../libcpp/include 
-I../../gcc-svn/trunk/gcc/../libdecnumber
-I../../gcc-svn/trunk/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc-svn/trunk/gcc/../libbacktrace   -o gimple-match.o -MT
gimple-match.o -MMD -MP -MF ./.deps/gimple-match.TPo gimple-match.c
gimple-match.c: In function ‘bool gimple_simplify(code_helper*, tree_node**,
gimple_statement_base**, tree_node* (*)(tree), code_helper, tree, tree)’:
gimple-match.c:1523:6: error: ‘GIMPLE’ was not declared in this scope
 if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (captures[0]))) ||
(0 && type == TREE_TYPE (captures[0])))
      ^
gimple-match.c:1573:7: error: ‘GIMPLE’ was not declared in this scope
 if (((GIMPLE && useless_type_conversion_p (type, inside_type)) || (0 &&
TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type))) && (((inter_int
|| inter_ptr) && final_int) || (inter_float && final_float)) && inter_prec >=
final_prec)
       ^
gimple-match.c:1821:7: error: ‘GIMPLE’ was not declared in this scope
 if (((GIMPLE && useless_type_conversion_p (type, inside_type)) || (0 &&
TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type))) && (((inter_int
|| inter_ptr) && final_int) || (inter_float && final_float)) && inter_prec >=
final_prec)
       ^
gimple-match.c:2086:6: error: ‘GIMPLE’ was not declared in this scope
 if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (captures[0]))) ||
(0 && type == TREE_TYPE (captures[0])))
      ^
gimple-match.c:2190:6: error: ‘GIMPLE’ was not declared in this scope
 if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (captures[0]))) ||
(0 && type == TREE_TYPE (captures[0])))
      ^
gimple-match.c:2240:7: error: ‘GIMPLE’ was not declared in this scope
 if (((GIMPLE && useless_type_conversion_p (type, inside_type)) || (0 &&
TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type))) && (((inter_int
|| inter_ptr) && final_int) || (inter_float && final_float)) && inter_prec >=
final_prec)
       ^
gimple-match.c:2488:7: error: ‘GIMPLE’ was not declared in this scope
 if (((GIMPLE && useless_type_conversion_p (type, inside_type)) || (0 &&
TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type))) && (((inter_int
|| inter_ptr) && final_int) || (inter_float && final_float)) && inter_prec >=
final_prec)
       ^
gimple-match.c:2718:6: error: ‘GIMPLE’ was not declared in this scope
 if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (captures[0]))) ||
(0 && type == TREE_TYPE (captures[0])))
      ^
gimple-match.c:2768:7: error: ‘GIMPLE’ was not declared in this scope
 if (((GIMPLE && useless_type_conversion_p (type, inside_type)) || (0 &&
TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type))) && (((inter_int
|| inter_ptr) && final_int) || (inter_float && final_float)) && inter_prec >=
final_prec)
       ^
gimple-match.c:3016:7: error: ‘GIMPLE’ was not declared in this scope
>From gcc-bugs-return-469673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 07 18:40:20 2014
Return-Path: <gcc-bugs-return-469673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11945 invoked by alias); 7 Dec 2014 18:40:20 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11920 invoked by uid 48); 7 Dec 2014 18:40:16 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/64213] gimple-match.c:1523:6: error:=?UTF-8?Q? ‘GIMPLE’ was not declared in this scope?Date: Sun, 07 Dec 2014 18:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget
Message-ID: <bug-64213-4-QfeLej1iy9@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64213-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64213-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-12/txt/msg00680.txt.bz2
Content-length: 1054

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64213

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |alphaev68-linux-gnu

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
It looks that GIMPLE is not substituted with "1", leaving following in
generated gimple-match.c:

...
CASE_CONVERT:
{
{
/* #line 612 "../../gcc-svn/trunk/gcc/match.pd" */
tree captures[1] ATTRIBUTE_UNUSED = {};
captures[0] = op0;
/* #line 610 "../../gcc-svn/trunk/gcc/match.pd" */
if ((GIMPLE && useless_type_conversion_p (type, TREE_TYPE (captures[0]))) || (0
&& type == TREE_TYPE (captures[0])))
{
if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Applying
pattern match.pd:612, %s:%d\n", __FILE__, __LINE__);
res_ops[0] = captures[0];
*res_code = TREE_CODE (res_ops[0]);
return true;
...

Pleae note the above "if ((GIMPLE && ...)) condition.
>From gcc-bugs-return-469674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Dec 07 20:37:45 2014
Return-Path: <gcc-bugs-return-469674-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19090 invoked by alias); 7 Dec 2014 20:37:44 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 19061 invoked by uid 48); 7 Dec 2014 20:37:40 -0000
From: "anlauf at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/62296] EXECUTE_COMMAND_LINE not F2008 conforming
Date: Sun, 07 Dec 2014 20:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: anlauf at gmx dot de
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-62296-4-VdUITzSkl6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62296-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62296-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-12/txt/msg00681.txt.bz2
Content-length: 1459

https://gcc.gnu.org/bugzilla/show_bug.cgi?idb296

--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Dominique d'Humieres from comment #5)
> (In reply to Harald Anlauf from comment #4)
> > (In reply to Harald Anlauf from comment #3)
> > > One might be able to do better on any reasonable Unix/Linux system.
> >
> > Replying to myself: Intel has changed/fixed their implementation of
> > EXECUTE_COMMAND_LINE in version 15.1, and it appears to work
> > reasonably now.
>
> What does it mean for gfortran?

The remaining issue for cmdstat, reduced from comment #1, can be seen as
follows:

  integer :: stat, cstat
  character(len%5) :: cmdmsg
  stat = 0; cstat = 0; cmdmsg = ""
  call execute_command_line ("/nosuchfile",exitstat=stat, cmdstat=cstat,
cmdmsg=cmdmsg)
  print *, stat, cstat, "'", trim (cmdmsg), "'"
  stat = 0
  call execute_command_line ("/nosuchfile",exitstat=stat)
  print *, stat
end

produces with gfortran:

sh: /nosuchfile: No such file or directory
         127           0 ''
sh: /nosuchfile: No such file or directory
         127

and with ifort:

sh: /nosuchfile: No such file or directory
           0         124 'Invalid command supplied to EXECUTE_COMMAND_LINE'
sh: /nosuchfile: No such file or directory
forrtl: severe (124): Invalid command supplied to EXECUTE_COMMAND_LINE


cmdstat=0 is not a useful return value if the command cannot be executed.
The other cases from comment #0 appear correct.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-12-09 14:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-07 18:37 [Bug bootstrap/64213] New: gimple-match.c:1523:6: error: ‘GIMPLE’ was not declared in this scope ubizjak at gmail dot com
2014-12-08 13:30 ` [Bug bootstrap/64213] " rguenth at gcc dot gnu.org
2014-12-08 20:23 ` ubizjak at gmail dot com
2014-12-09 11:29 ` ubizjak at gmail dot com
2014-12-09 11:41 ` rguenther at suse dot de
2014-12-09 14:35 ` uros at gcc dot gnu.org
2014-12-09 14:41 ` uros at gcc dot gnu.org
2014-12-09 14:44 ` uros at gcc dot gnu.org
2014-12-09 14:50 ` ubizjak at gmail dot com

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).