http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55523

             Bug #: 55523
           Summary: gencondmd C++ conversion breaks peephole2 predicates
                    use of get_attr_*
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: amyl...@gcc.gnu.org
                CC: dnovi...@google.com


Created attachment 28824
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28824
Epiphany patch for improved scheduling

I tried to merge the attached patch into gcc mainline, alas, the build fails:

g++ -c   -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I../../gcc-190402/gcc -I../../gcc-190402/gcc/build
-I../../gcc-190402/gcc/../include -I../../gcc-190402/gcc/../libcpp/include 
-I../../gcc-190402/gcc/../libdecnumber
-I../../gcc-190402/gcc/../libdecnumber/dpd -I../libdecnumber    \
        -o build/gencondmd.o build/gencondmd.c
../../gcc-190402/gcc/config/epiphany/epiphany.md:1004:45: error:
‘get_attr_sched_use_fpu’ was not declared in this scope
   "get_attr_sched_use_fpu (peep2_next_insn (0))
                                             ^
../../gcc-190402/gcc/config/epiphany/epiphany.md:1006:69: error:
‘get_attr_sched_use_fpu’ was not declared in this scope
    && get_attr_sched_use_fpu (next_active_insn (peep2_next_insn (1)))"
                                                                     ^
../../gcc-190402/gcc/config/epiphany/epiphany.md:1004:45: error:
‘get_attr_sched_use_fpu’ was not declared in this scope
   "get_attr_sched_use_fpu (peep2_next_insn (0))
                                             ^
../../gcc-190402/gcc/config/epiphany/epiphany.md:1006:69: error:
‘get_attr_sched_use_fpu’ was not declared in this scope
    && get_attr_sched_use_fpu (next_active_insn (peep2_next_insn (1)))"
                                                                     ^
make[1]: *** [build/gencondmd.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm cpp.pod gcov.pod gcc.pod fsf-funding.pod gfdl.pod
make[1]: Leaving directory `/ssd/fsf/bld-epiphany-190402/gcc'
make: *** [all-gcc] Error 2
[amylaar@rowan bld-epiphany-190402]$ g++ --version
g++ (GCC) 4.8.0 20121026 (experimental)


Searching for the revision where the failure starts, I found that is 190402,
when bootstrap was switched to C++.
In earlier versions, there was merely a warning when building gencondmd.o,
which was ignored even when configured with --enable-werror-always.

Now that we bootstrap with C++, this is a hard error.

Reply via email to