This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/61287] New: "error: ânios2_fpu_insn_enabledâ was not declared in this scope" when building with ada


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]