public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/44905]  New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c
@ 2010-07-10 15:38 howarth at nitro dot med dot uc dot edu
  2010-07-16 17:36 ` [Bug bootstrap/44905] " howarth at nitro dot med dot uc dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-10 15:38 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4530 bytes --]

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

2009-10-02  Jack Howarth  <howarth@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/44905] --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c
  2010-07-10 15:38 [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c howarth at nitro dot med dot uc dot edu
@ 2010-07-16 17:36 ` howarth at nitro dot med dot uc dot edu
  2010-07-16 17:39 ` howarth at nitro dot med dot uc dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-16 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2010-07-16 17:36 -------
The offending commit here was...

Revision 155759

2010-01-09  Alexandre Oliva  <aoliva@redhat.com>

        * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
        bogus uninitialized warning.


-- 

howarth at nitro dot med dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|--enable-build-with-cxx     |--enable-build-with-cxx
                   |bootstrap failure compiling |bootstrap failure compiling
                   |gcc/cppdefault.c            |gcc/cppdefault.c


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/44905] --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c
  2010-07-10 15:38 [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c howarth at nitro dot med dot uc dot edu
  2010-07-16 17:36 ` [Bug bootstrap/44905] " howarth at nitro dot med dot uc dot edu
@ 2010-07-16 17:39 ` howarth at nitro dot med dot uc dot edu
  2010-07-16 23:13 ` howarth at nitro dot med dot uc dot edu
  2010-08-21  4:20 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-16 17:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from howarth at nitro dot med dot uc dot edu  2010-07-16 17:38 -------
Note that the proposed patch for the new flag -Wself-assign...

http://gcc.gnu.org/ml/gcc-patches/2010-06/msg02519.html

reverts the offending commit. That change...


Index: gcc/config/i386/i386.c
===================================================================
--- gcc/config/i386/i386.c      (revision 161236)
+++ gcc/config/i386/i386.c      (working copy)
@@ -29379,7 +29379,7 @@ ix86_vectorize_builtin_vec_perm (tree ve
   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;
   bool ok = TARGET_SSE2;

   switch (vmode)

also solves the bootstrap failure with --enable-build-with-cxx on darwin.


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/44905] --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c
  2010-07-10 15:38 [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c howarth at nitro dot med dot uc dot edu
  2010-07-16 17:36 ` [Bug bootstrap/44905] " howarth at nitro dot med dot uc dot edu
  2010-07-16 17:39 ` howarth at nitro dot med dot uc dot edu
@ 2010-07-16 23:13 ` howarth at nitro dot med dot uc dot edu
  2010-08-21  4:20 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-16 23:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from howarth at nitro dot med dot uc dot edu  2010-07-16 23:13 -------
According to Le-Chun Wu, the commit...

Author: davidxl
Date: Wed Apr 28 17:41:31 2010
New Revision: 158835

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158835
Log:
predicate aware uninitialized analysis

eliminates the need for Revision 155759 hack and it should be reverted.


-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug bootstrap/44905] --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c
  2010-07-10 15:38 [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2010-07-16 23:13 ` howarth at nitro dot med dot uc dot edu
@ 2010-08-21  4:20 ` howarth at nitro dot med dot uc dot edu
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-21  4:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from howarth at nitro dot med dot uc dot edu  2010-08-21 04:20 -------
Fixed with...

Author: lcwu
Date: Fri Jul 23 22:20:45 2010
New Revision: 162492

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162492
Log:
Fix violations of self-assignment check in GCC source.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/dbxout.c
    trunk/gcc/omega.c
    trunk/gcc/tree-ssa-ccp.c


-- 

howarth at nitro dot med dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-21  4:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-10 15:38 [Bug bootstrap/44905] New: --enable-build-with-cxx bootstrap failure compiling gcc/cppdefault.c howarth at nitro dot med dot uc dot edu
2010-07-16 17:36 ` [Bug bootstrap/44905] " howarth at nitro dot med dot uc dot edu
2010-07-16 17:39 ` howarth at nitro dot med dot uc dot edu
2010-07-16 23:13 ` howarth at nitro dot med dot uc dot edu
2010-08-21  4:20 ` howarth at nitro dot med dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).