public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/61287] New: "error: ‘nios2_fpu_insn_enabled’ was not declared in this scope" when building with ada
@ 2014-05-22 19:02 dmalcolm at redhat dot com
  2021-07-21  5:15 ` [Bug target/61287] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: dmalcolm at redhat dot com @ 2014-05-22 19:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61287
           Summary: "error: ‘nios2_fpu_insn_enabled’ was not declared in
                    this scope" when building with ada
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at redhat dot com

Attempting to build using config-list.mk, with:

../../gcc/configure --target=nios2-elf --with-mpc=/opt/cfarm/mpc
--enable-languages=all,ada,go

leads to this error:

g++ -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE 
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual  -Wmissing-format-attribute -Woverloaded-virtual
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -I. -Iada -I../../../gcc/gcc -I../../../gcc/gcc/ada
-I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include
-I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber
-I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../../gcc/gcc/../libbacktrace    -o ada/trans.o -MT ada/trans.o -MMD -MP
-MF ada/.deps/trans.TPo ../../../gcc/gcc/ada/gcc-interface/trans.c

In file included from ./tm.h:22:0,
                 from ../../../gcc/gcc/ada/gcc-interface/trans.c:29:
../../../gcc/gcc/ada/gcc-interface/trans.c: In function ‘tree_node*
convert_with_check(Entity_Id, tree, bool, bool, bool, Node_Id)’:
./insn-flags.h:88:63: error: ‘nios2_fpu_insn_enabled’ was not declared in this
scope
 #define HAVE_extendsfdf2 (nios2_fpu_insn_enabled (n2fpu_fextsd))
                                                               ^
../../../gcc/gcc/ada/gcc-interface/trans.c:85:28: note: in expansion of macro
‘HAVE_extendsfdf2’
 #define FP_ARITH_MAY_WIDEN HAVE_extendsfdf2
                            ^
../../../gcc/gcc/ada/gcc-interface/trans.c:8677:4: note: in expansion of macro
‘FP_ARITH_MAY_WIDEN’
  = FP_ARITH_MAY_WIDEN ? longest_float_type_node : gnu_in_basetype;
    ^
make[2]: *** [ada/trans.o] Error 1

nios2_fpu_insn_enabled is declared in nios2-protos.h, though the decl is
guarded by
  #ifdef RTX_CODE
>From gcc-bugs-return-452342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 22 19:05:45 2014
Return-Path: <gcc-bugs-return-452342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4996 invoked by alias); 22 May 2014 19:05: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 4955 invoked by uid 48); 22 May 2014 19:05:41 -0000
From: "dmalcolm at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61287] "error:=?UTF-8?Q? ‘nios2_fpu_insn_enabled’ was not declared in this scope?=" when building with ada
Date: Thu, 22 May 2014 19:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dmalcolm at redhat 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:
Message-ID: <bug-61287-4-DWdInc5Gae@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61287-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61287-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-05/txt/msg02034.txt.bz2
Content-length: 159

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

--- Comment #1 from Dave Malcolm <dmalcolm at redhat dot com> ---
Also seen with --target=nios2-linux-gnu


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

* [Bug target/61287] "error: ‘nios2_fpu_insn_enabled’ was not declared in this scope" when building with ada
  2014-05-22 19:02 [Bug target/61287] New: "error: ‘nios2_fpu_insn_enabled’ was not declared in this scope" when building with ada dmalcolm at redhat dot com
@ 2021-07-21  5:15 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-21  5:15 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |12.0
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 12 by r12-291.

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

end of thread, other threads:[~2021-07-21  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 19:02 [Bug target/61287] New: "error: ‘nios2_fpu_insn_enabled’ was not declared in this scope" when building with ada dmalcolm at redhat dot com
2021-07-21  5:15 ` [Bug target/61287] " pinskia at gcc dot gnu.org

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