From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8232 invoked by alias); 10 Jul 2010 15:38:17 -0000 Received: (qmail 8121 invoked by uid 48); 10 Jul 2010 15:38:01 -0000 Date: Sat, 10 Jul 2010 15:38:00 -0000 Subject: [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01143.txt.bz2 With the proposed fix for building gcc trunk with --enable-build-with-cxx on darwin applied... 2009-10-02 Jack Howarth PR target/44862 * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Provide -B option to allow for link spec %s substitutions for libstdc++.a on darwin. * Makefile.in: Regenerate. Index: Makefile.tpl =================================================================== --- Makefile.tpl (revision 162037) +++ Makefile.tpl (working copy) @@ -238,6 +238,7 @@ POSTSTAGE1_CXX_EXPORT = \ CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ + -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ -I$$s/libstdc++-v3/libsupc++ \ a new bootstrap failure is exposed... /Users/howarth/work/./prev-gcc/g++ -B/Users/howarth/work/./prev-gcc/ -B/Users/howarth/dist/x86_64-apple-darwin10.4.0/bin/ -nostdinc++ -B/Users/howarth/work/prev-x86_64-apple-darwin10.4.0/libstdc++-v3/src/.libs -I/Users/howarth/work/prev-x86_64-apple-darwin10.4.0/libstdc++-v3/include/x86_64-apple-darwin10.4.0 -I/Users/howarth/work/prev-x86_64-apple-darwin10.4.0/libstdc++-v3/include -I/Users/howarth/gcc/libstdc++-v3/libsupc++ -L/Users/howarth/work/prev-x86_64-apple-darwin10.4.0/libstdc++-v3/src/.libs -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/include -I/sw/include -DCLOOG_PPL_BACKEND -I/sw/include \ -DGCC_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/include\" -DFIXED_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/include-fixed\" -DGPLUSPLUS_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../include/c++/4.6.0\" -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../include/c++/4.6.0/x86_64-apple-darwin10.4.0\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../include/c++/4.6.0/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../x86_64-apple-darwin10.4.0/sys-include\" -DTOOL_INCLUDE_DIR=\"/Users/howarth/dist/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../../../x86_64-apple-darwin10.4.0/include\" -DPREFIX=\"/Users/howarth/dist/\" -DSTANDARD_EXEC_PREFIX=\"/Users/howarth/dist/lib/gcc/\" \ -c ../../gcc/gcc/cppdefault.c -o cppdefault.o In file included from ../../gcc/gcc/config/i386/i386.c:31581:0: ../../gcc/gcc/config/i386/i386.c: In function ‘tree_node* ix86_vectorize_builtin_vec_perm(tree, tree_node**)’: ../../gcc/gcc/config/i386/i386.c:30005:30: error: ‘fcode’ is used uninitialized in this function [-Werror=uninitialized] The workaround suggested by Iain Sandoe of... Index: gcc/config/i386/i386.c =================================================================== --- gcc/config/i386/i386.c (revision 162037) +++ gcc/config/i386/i386.c (working copy) @@ -30002,7 +30002,7 @@ tree itype = TREE_TYPE (vec_type); bool u = TYPE_UNSIGNED (itype); enum machine_mode vmode = TYPE_MODE (vec_type); - enum ix86_builtins fcode = fcode; /* Silence bogus warning. */ + enum ix86_builtins fcode = IX86_BUILTIN_MAX; bool ok = TARGET_SSE2; switch (vmode) eliminates the bootstrap failure on x86_64-apple-darwin10. -- Summary: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: howarth at nitro dot med dot uc dot edu GCC build triplet: x86_64-apple-darwin10 GCC host triplet: x86_64-apple-darwin10 GCC target triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44905