public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/33168]  New: GCC Boot failure, building libstc++
@ 2007-08-23 22:25 michelin60 at gmail dot com
  2007-08-23 22:29 ` [Bug libstdc++/33168] " michelin60 at gmail dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-23 22:25 UTC (permalink / raw)
  To: gcc-bugs

This time __please__ follow standard procedures instead of doing it like
PR33125/PR33126 where the earlier submission was made a duplicate of a later
one  . Which then was left unconfirmed for a lengthy period (6+ hours) and
never formally closed as resolved leaving the parties hanging.

Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.3.0/configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --host=powerpc-unknown-linux-gnu
--build=powerpc-unknown-linux-gnu --enable-__cxa_atexit --enable-threads=posix
--enable-shared --enable-clocale=gnu --enable-bootstrap
--enable-languages=c,c++,fortran --enable-altivec --disable-libssp
--disable-decimal-float --disable-libmudflap --disable-nls --disable-werror
--disable-multilib --with-ibmlongdouble --with-cpu=G4 --enable-clocale=gnu
--with-system-zlib
Thread model: posix
gcc version 4.3.0 20070823 (experimental) (GCC) 
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.3.0/cc1plus -E -quiet -nostdinc++
-v
-I/var/tmp/43/build-140/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu
-I/var/tmp/43/build-140/powerpc-unknown-linux-gnu/libstdc++-v3/include
-I/var/tmp/43/gcc-4.3.0/libstdc++-v3/libsupc++ -iprefix
/var/tmp/43/build-140/gcc/../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/
-D_GNU_SOURCE -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux
-D__linux -Asystem=linux -Asystem=unix -Asystem=posix -D_GNU_SOURCE -isystem
/usr/powerpc-unknown-linux-gnu/include -isystem
/usr/powerpc-unknown-linux-gnu/sys-include
../gcc-4.3.0/libstdc++-v3/src/system_error.cc -mcpu=G4 -std=gnu++0x -Wall
-Wextra -Wwrite-strings -Wcast-qual -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-fworking-directory -O2 -fpch-preprocess -o system_error.ii
ignoring nonexistent directory "/usr/powerpc-unknown-linux-gnu/include"
ignoring nonexistent directory "/usr/powerpc-unknown-linux-gnu/sys-include"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/../../../../powerpc-unknown-linux-gnu/include"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/../../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/../../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed"
ignoring nonexistent directory
"/var/tmp/43/build-140/gcc/../lib/gcc/../../lib/gcc/powerpc-unknown-linux-gnu/4.3.0/../../../../powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/var/tmp/43/build-140/powerpc-unknown-linux-gnu/libstdc++-v3/include/powerpc-unknown-linux-gnu
 /var/tmp/43/build-140/powerpc-unknown-linux-gnu/libstdc++-v3/include
 /var/tmp/43/gcc-4.3.0/libstdc++-v3/libsupc++
 /usr/include/libffi
 /usr/local/include
 /usr/include
End of search list.
 /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.3.0/cc1plus -fpreprocessed
system_error.ii -quiet -dumpbase system_error.cc -mcpu=G4 -auxbase-strip
system_error.o -g -O2 -Wall -Wextra -Wwrite-strings -Wcast-qual -std=gnu++0x
-version -fno-implicit-templates -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -o system_error.s
GNU C++ (GCC) version 4.3.0 20070823 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 4.3.0 20070823 (experimental), GMP version
4.2.1, MPFR version 2.2.1-p5.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 91efee225a5243299b9fb0dada305fe7
../gcc-4.3.0/libstdc++-v3/src/system_error.cc:67: error: std::system_category
causes a section type conflict


-- 
           Summary: GCC Boot failure, building libstc++
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michelin60 at gmail dot com
 GCC build triplet: rs600
  GCC host triplet: rs6000
GCC target triplet: rs6000


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


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

* [Bug libstdc++/33168] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
@ 2007-08-23 22:29 ` michelin60 at gmail dot com
  2007-08-24 18:43 ` [Bug libstdc++/33168] [4.3 Regression] " pinskia at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: michelin60 at gmail dot com @ 2007-08-23 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from michelin60 at gmail dot com  2007-08-23 22:28 -------
Created an attachment (id=14097)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14097&action=view)
preprocessed


-- 


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


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

* [Bug libstdc++/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
  2007-08-23 22:29 ` [Bug libstdc++/33168] " michelin60 at gmail dot com
@ 2007-08-24 18:43 ` pinskia at gcc dot gnu dot org
  2007-08-24 18:44 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-24 18:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-08-24 18:43 -------
I get this too:
/home/apinski/src/local/gcc/libstdc++-v3/src/system_error.cc:67: error:
std::system_category causes a section type conflict


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker
  GCC build triplet|powerpc-linux               |
   GCC host triplet|powerpc-linux               |
 GCC target triplet|powerpc-linux               |powerpc*-linux
           Keywords|                            |build
            Summary|GCC Boot failure, building  |[4.3 Regression] GCC Boot
                   |libstc++                    |failure, building libstc++
   Target Milestone|---                         |4.3.0


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


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

* [Bug libstdc++/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
  2007-08-23 22:29 ` [Bug libstdc++/33168] " michelin60 at gmail dot com
  2007-08-24 18:43 ` [Bug libstdc++/33168] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-08-24 18:44 ` pinskia at gcc dot gnu dot org
  2007-08-24 21:13 ` [Bug target/33168] " pinskia at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-24 18:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-08-24 18:44 -------
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01566.html
Broke this.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-24 18:44:35
               date|                            |


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (2 preceding siblings ...)
  2007-08-24 18:44 ` pinskia at gcc dot gnu dot org
@ 2007-08-24 21:13 ` pinskia at gcc dot gnu dot org
  2007-08-24 21:13 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-24 21:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-08-24 21:12 -------
Testcase:
namespace std {
  struct gnu_error_category 
  {
    virtual const int name() const {}
  };
  const gnu_error_category gnu_category;
}
namespace std {
  const gnu_error_category& system_category = gnu_category;
}


------- CUT ----
Compile with -O1 -fdata-section.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libstdc++                   |target


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (3 preceding siblings ...)
  2007-08-24 21:13 ` [Bug target/33168] " pinskia at gcc dot gnu dot org
@ 2007-08-24 21:13 ` pinskia at gcc dot gnu dot org
  2007-08-28  0:05 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-24 21:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-08-24 21:13 -------
A patch was posted:
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01683.html


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (4 preceding siblings ...)
  2007-08-24 21:13 ` pinskia at gcc dot gnu dot org
@ 2007-08-28  0:05 ` pinskia at gcc dot gnu dot org
  2007-08-29 17:02 ` dje at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-28  0:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-08-28 00:05 -------
This is related to PR 31490


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (5 preceding siblings ...)
  2007-08-28  0:05 ` pinskia at gcc dot gnu dot org
@ 2007-08-29 17:02 ` dje at gcc dot gnu dot org
  2007-08-30 16:43 ` jakub at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-08-29 17:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dje at gcc dot gnu dot org  2007-08-29 17:01 -------
Subject: Bug 33168

Author: dje
Date: Wed Aug 29 17:01:35 2007
New Revision: 127910

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127910
Log:
2007-08-29  Paolo Bonzini  <bonzini@gnu.org>

        PR target/33168
        * config/rs6000/rs6000.c (compare_section_name): New function.
        (rs6000_elf_in_small_data_p): Compare section prefixes instead
        of full name.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (6 preceding siblings ...)
  2007-08-29 17:02 ` dje at gcc dot gnu dot org
@ 2007-08-30 16:43 ` jakub at gcc dot gnu dot org
  2007-08-30 21:07 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-08-30 16:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2007-08-30 16:43 -------
Subject: Bug 33168

Author: jakub
Date: Thu Aug 30 16:43:19 2007
New Revision: 127928

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127928
Log:
        PR target/33168
        * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
        true if any of the compare_section_name calls returned true,
        rather than if any returned false.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (7 preceding siblings ...)
  2007-08-30 16:43 ` jakub at gcc dot gnu dot org
@ 2007-08-30 21:07 ` pinskia at gcc dot gnu dot org
  2007-09-25 13:08 ` dje at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-30 21:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2007-08-30 21:06 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (8 preceding siblings ...)
  2007-08-30 21:07 ` pinskia at gcc dot gnu dot org
@ 2007-09-25 13:08 ` dje at gcc dot gnu dot org
  2007-09-26 14:27 ` amodra at bigpond dot net dot au
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-09-25 13:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dje at gcc dot gnu dot org  2007-09-25 13:08 -------
This still fails in 64-bit mode bootstrap.


-- 

dje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dnovillo at gcc dot gnu dot
                   |                            |org
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (9 preceding siblings ...)
  2007-09-25 13:08 ` dje at gcc dot gnu dot org
@ 2007-09-26 14:27 ` amodra at bigpond dot net dot au
  2007-10-10 17:51 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: amodra at bigpond dot net dot au @ 2007-09-26 14:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from amodra at bigpond dot net dot au  2007-09-26 14:27 -------
We first choose a section here, when decl readonly_flag is false:

#0  get_section (name=0x40000cca824 ".data._ZSt15system_category", flags=512, 
    decl=0x40000e44000) at /src/gcc-current/gcc/varasm.c:527
#1  0x000000001067bd70 in get_block_for_decl (decl=0x40000e44000)
    at /src/gcc-current/gcc/varasm.c:1196
#2  0x000000001067c588 in make_decl_rtl (decl=0x40000e44000)
    at /src/gcc-current/gcc/varasm.c:1395
#3  0x000000001067d3d8 in notice_global_symbol (decl=0x40000e44000)
    at /src/gcc-current/gcc/varasm.c:1558
#4  0x00000000106dd04c in varpool_mark_needed_node (node=0x40000f12500)
    at /src/gcc-current/gcc/varpool.c:192
#5  0x00000000106dda78 in varpool_finalize_decl (decl=0x40000e44000)
    at /src/gcc-current/gcc/varpool.c:297
#6  0x0000000010403fac in rest_of_decl_compilation (decl=0x40000e44000, 
    top_level=1, at_end=0) at /src/gcc-current/gcc/passes.c:192
#7  0x000000001002c624 in make_rtl_for_nonlocal_decl (decl=0x40000e44000, 
    init=0x0, asmspec=0x10b4f398 "") at /src/gcc-current/gcc/cp/decl.c:5136
#8  0x000000001003e1ec in cp_finish_decl (decl=0x40000e44000, init=0x0, 
    init_const_expr_p=0 '\0', asmspec_tree=<value optimized out>, flags=8)
    at /src/gcc-current/gcc/cp/decl.c:5511

Note flags=512 is SECTION_WRITE in get_section call.

We set readonly near the end of cp_finish_decl.  This change in the readonly
flag is the cause of later trouble when assemble_variable is called, as
targetm.section_type_flags (called from get_named_section, from
get_variable_section, from assemble_variable) now returns 0.  get_section is
then called with flags=0, triggering the error.


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (10 preceding siblings ...)
  2007-09-26 14:27 ` amodra at bigpond dot net dot au
@ 2007-10-10 17:51 ` mmitchel at gcc dot gnu dot org
  2007-10-16 18:24 ` janis at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-10-10 17:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (11 preceding siblings ...)
  2007-10-10 17:51 ` mmitchel at gcc dot gnu dot org
@ 2007-10-16 18:24 ` janis at gcc dot gnu dot org
  2007-11-05 16:49 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-10-16 18:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from janis at gcc dot gnu dot org  2007-10-16 18:24 -------
Segher has a patch for related PR 31490 that fixed the original 32-bit
bootstrap problem.  Yesterday I confirmed that it also fixes the 64-bit
powerpc64-linux bootstrap for all languages but Ada.  The only test differences
between a 64-bit build with his patch and a 32-bit build without it are
gcc.dg/20051207-3.c, which he earlier said is expected to behave differently
with this patch, and cc1 segfaults with some of the
gcc.c-torture/compile/limits-*.c tests, which also fail with a C-only 64-bit
bootstrap without the patch.

Here's the patch I tested:

Index: gcc/varasm.c
===================================================================
--- gcc/varasm.c        (revision 129361)
+++ gcc/varasm.c        (working copy)
@@ -536,10 +536,20 @@
   else
     {
       sect = *slot;
+
+      /* Sanity check user variables for flag changes.  */
       if ((sect->common.flags & ~SECTION_DECLARED) != flags
          && ((sect->common.flags | flags) & SECTION_OVERRIDE) == 0)
        {
-         /* Sanity check user variables for flag changes.  */
+         /* Allow mixed writable and read-only objects in named sections.  */
+         if ((sect->common.flags & SECTION_NAMED) != 0
+              && ((sect->common.flags ^ flags) & ~SECTION_DECLARED)
+              == SECTION_WRITE)
+           {
+             sect->common.flags |= SECTION_WRITE;
+             return sect;
+           }
+
          if (decl == 0)
            decl = sect->named.decl;
          gcc_assert (decl);

When I first tested this patch a month ago (with a 32-bit bootstrap) there was
a discussion between Segher and Dinar Temirbulatov about the best way to fix
this; I've copied both of them.


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |segher at kernel dot
                   |                            |crashing dot org,
                   |                            |dtemirbulatov at gmail dot
                   |                            |com


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (12 preceding siblings ...)
  2007-10-16 18:24 ` janis at gcc dot gnu dot org
@ 2007-11-05 16:49 ` jakub at gcc dot gnu dot org
  2007-11-05 16:57 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-05 16:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from jakub at gcc dot gnu dot org  2007-11-05 16:49 -------
I disagree with this patch (at least for this bug).  The bug is on
cp_finish_decl
side.  Working on it.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|REOPENED                    |ASSIGNED
   Last reconfirmed|2007-10-12 12:37:05         |2007-11-05 16:49:46
               date|                            |


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (13 preceding siblings ...)
  2007-11-05 16:49 ` jakub at gcc dot gnu dot org
@ 2007-11-05 16:57 ` jakub at gcc dot gnu dot org
  2007-11-06  8:34 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-05 16:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from jakub at gcc dot gnu dot org  2007-11-05 16:57 -------
Smaller testcase:
// PR target/33168
// { dg-do compile }
// { dg-options "-O2 -fdata-sections" }

extern const int& foo;
namespace
{
  const int bar = 16;
}
const int &foo = bar;


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (14 preceding siblings ...)
  2007-11-05 16:57 ` jakub at gcc dot gnu dot org
@ 2007-11-06  8:34 ` jakub at gcc dot gnu dot org
  2007-11-06  8:37 ` jakub at gcc dot gnu dot org
  2008-01-03  9:06 ` aoliva at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-06  8:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from jakub at gcc dot gnu dot org  2007-11-06 08:33 -------
Subject: Bug 33168

Author: jakub
Date: Tue Nov  6 08:33:25 2007
New Revision: 129922

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129922
Log:
        PR target/33168
        * decl.c (cp_finish_decl): Call make_rtl_for_nonlocal_decl already
        with the final TREE_READONLY flag in place.  processing_template_decl
        is known to be 0 in this part of function.

        * g++.dg/other/datasec1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/datasec1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (15 preceding siblings ...)
  2007-11-06  8:34 ` jakub at gcc dot gnu dot org
@ 2007-11-06  8:37 ` jakub at gcc dot gnu dot org
  2008-01-03  9:06 ` aoliva at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-06  8:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from jakub at gcc dot gnu dot org  2007-11-06 08:37 -------
Fixed, ppc64-linux bootstraps just fine now even without --with-cpu=default32.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

* [Bug target/33168] [4.3 Regression] GCC Boot failure, building libstc++
  2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
                   ` (16 preceding siblings ...)
  2007-11-06  8:37 ` jakub at gcc dot gnu dot org
@ 2008-01-03  9:06 ` aoliva at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2008-01-03  9:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from aoliva at gcc dot gnu dot org  2008-01-03 05:16 -------
Subject: Bug 33168

Author: aoliva
Date: Thu Jan  3 05:15:42 2008
New Revision: 131276

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131276
Log:
gcc/cp/ChangeLog:
PR target/33168
* decl.c (cp_finish_decl): Call make_rtl_for_nonlocal_decl already
with the final TREE_READONLY flag in place.  processing_template_decl
is known to be 0 in this part of function.
gcc/testsuite/ChangeLog:
PR target/33168
* g++.dg/other/datasec1.C: New test.

Added:
   
branches/var-tracking-assignments-branch/gcc/testsuite/g++.dg/other/datasec1.C
Modified:
    branches/var-tracking-assignments-branch/gcc/cp/ChangeLog
    branches/var-tracking-assignments-branch/gcc/cp/decl.c
    branches/var-tracking-assignments-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2008-01-03  5:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23 22:25 [Bug libstdc++/33168] New: GCC Boot failure, building libstc++ michelin60 at gmail dot com
2007-08-23 22:29 ` [Bug libstdc++/33168] " michelin60 at gmail dot com
2007-08-24 18:43 ` [Bug libstdc++/33168] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-08-24 18:44 ` pinskia at gcc dot gnu dot org
2007-08-24 21:13 ` [Bug target/33168] " pinskia at gcc dot gnu dot org
2007-08-24 21:13 ` pinskia at gcc dot gnu dot org
2007-08-28  0:05 ` pinskia at gcc dot gnu dot org
2007-08-29 17:02 ` dje at gcc dot gnu dot org
2007-08-30 16:43 ` jakub at gcc dot gnu dot org
2007-08-30 21:07 ` pinskia at gcc dot gnu dot org
2007-09-25 13:08 ` dje at gcc dot gnu dot org
2007-09-26 14:27 ` amodra at bigpond dot net dot au
2007-10-10 17:51 ` mmitchel at gcc dot gnu dot org
2007-10-16 18:24 ` janis at gcc dot gnu dot org
2007-11-05 16:49 ` jakub at gcc dot gnu dot org
2007-11-05 16:57 ` jakub at gcc dot gnu dot org
2007-11-06  8:34 ` jakub at gcc dot gnu dot org
2007-11-06  8:37 ` jakub at gcc dot gnu dot org
2008-01-03  9:06 ` aoliva at gcc dot gnu dot org

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).