With the proposed fix for building gcc trunk with --enable-build-with-cxx on
darwin applied...

2009-10-02  Jack Howarth  <howa...@bromo.med.uc.edu>

        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

Reply via email to