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

             Bug #: 50513
           Summary: cross configurations fail to build
                    ipa-inline-analysis.o with -Werror
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: amyl...@gcc.gnu.org
            Blocks: 44756
              Host: x86_64-unknown-linux-gnu
            Target: any cross


183 of 198 configurations in contrib/config-list.mk fail to build build with
this error:

../../../gcc/gcc/ipa-inline-analysis.c: In function ‘predicate_probability’:
../../../gcc/gcc/ipa-inline-analysis.c:485:8: error: comparison between signed
and unsigned integer expressions [-Werror=sign-compare]
../../../gcc/gcc/ipa-inline-analysis.c: In function ‘remap_edge_change_prob’:
../../../gcc/gcc/ipa-inline-analysis.c:2356:5: error: comparison between signed
and unsigned integer expressions [-Werror=sign-compare]
cc1: all warnings being treated as errors

(the other configurations fail for other reasons)

I have used a native compiler previously bootstrapped from the same sources.
I see that for the boostrap, ipa-inline-analysis.o was built once with
the bootstrap compiler, and twice with the previous stage g++.  For the
cross-compilation, on the other hand, gcc is used (even though g++ is
also available), with the additional options:
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat

Reply via email to