public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161
@ 2015-06-07  7:02 dominiq at lps dot ens.fr
  2015-06-07  8:09 ` [Bug bootstrap/66448] " iains at gcc dot gnu.org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-07  7:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

            Bug ID: 66448
           Summary: [6 Regression] Bootstrap fails on darwin after r224161
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: aldyh at gcc dot gnu.org, iains at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin14
            Target: x86_64-apple-darwin14
             Build: x86_64-apple-darwin14

Bootstrap fails on darwin after r224161

...
checking for suffix of object files... configure: error: in
`/opt/gcc/p_build/x86_64-apple-darwin14.3.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
...

configure:3675: /opt/gcc/p_build/./gcc/xgcc -B/opt/gcc/p_build/./gcc/
-B/opt/gcc/gcc6p-224161p4/x86_64-apple-darwin14.3.0/bin/
-B/opt/gcc/gcc6p-224161p4/x86_64-apple-darwin14.3.0/lib/ -isystem
/opt/gcc/gcc6p-224161p4/x86_64-apple-darwin14.3.0/include -isystem
/opt/gcc/gcc6p-224161p4/x86_64-apple-darwin14.3.0/sys-include    -c -g -O2 
conftest.c >&5
<built-in>: internal compiler error: Segmentation fault: 11

<built-in>: internal compiler error: Abort trap: 6
xgcc: internal compiler error: Abort trap: 6 (program cc1)


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
@ 2015-06-07  8:09 ` iains at gcc dot gnu.org
  2015-06-07 12:36 ` aldyh at gcc dot gnu.org
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-07  8:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 35710
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35710&action=edit
declare "extern int __CFConstantStringClassReference" lazily

There seem to be three issues triggered by 224161

1.  Debug is not initialised when the built-ins are initialised, therefore any
attempt to declare a variable at that time causes the segv. (hash table is not
present).

 * at present, *darwin* declares "extern int
__CFConstantStringClassReference[]" at the time that the CFString built-in is
initialised.

 - on the basis that it's not clear *if* such early declarations are allowed,
I've made a patch that makes the declaration lazily (when the fist use of the
built-in occurs).

 This works around the reported crash (one could also use DECL_SOURCE_LOCATION
!= BUILTINS_LOCATION as an additional test at passes.c:338, if built-ins *are*
supposed to be allowed to declare variables.

… however ...

====

2. Once (1) is fixed, bootstrap then fails with:

/GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error:
‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’ defined
but not used [-Werror=unused-function]
 pass_ipa_pure_const::

A --disable-werror boostrap completes, but there are a number of constructors
and destructors that report "declared but not used". AFAICT, it's only
constructors/destructors.

This is occurring at stage #2, and I thought maybe that the stage#1 compiler
could have been mis-compiled by the bootstrap; however, gcc-4.9, 5.1 and clang
(xcode 5.1.1) bootstraps all give the same result.

… additional info …

=====

3. During bootstrap (and in the test suite on the --disable-werror build) there
are a large number of warnings from ld64 (of course, this might be a limitation
of ld64, but for the record):

warning: invalid DWARF generated by the compiler: DIE 0x000002f7 has multiple 
AT_location attributes in
'/GCC/ml/gcc-trunk-xtools/x86_64-apple-darwin12/libgcc/enable-execute-stack_s.o'.
warning: invalid DWARF generated by the compiler: DIE 0x00000317 has multiple 
AT_location attributes in
'/GCC/ml/gcc-trunk-xtools/x86_64-apple-darwin12/libgcc/enable-execute-stack_s.o'.
>From gcc-bugs-return-488273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jun 07 08:11:11 2015
Return-Path: <gcc-bugs-return-488273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73493 invoked by alias); 7 Jun 2015 08:11:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 73461 invoked by uid 48); 7 Jun 2015 08:11:07 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
Date: Sun, 07 Jun 2015 08:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cf_gcchost everconfirmed cf_gccbuild
Message-ID: <bug-66448-4-JdVTyeZhCq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00605.txt.bz2
Content-length: 593

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf448

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-apple-darwin14       |*-apple-darwin*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-06-07
               Host|x86_64-apple-darwin14       |*-apple-darwin*
     Ever confirmed|0                           |1
              Build|x86_64-apple-darwin14       |*-apple-darwin*


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
  2015-06-07  8:09 ` [Bug bootstrap/66448] " iains at gcc dot gnu.org
@ 2015-06-07 12:36 ` aldyh at gcc dot gnu.org
  2015-06-08  8:20 ` iains at gcc dot gnu.org
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at gcc dot gnu.org @ 2015-06-07 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---

> 2. Once (1) is fixed, bootstrap then fails with:
> 
> /GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error:
> ‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’
> defined but not used [-Werror=unused-function]
>  pass_ipa_pure_const::
> 
> A --disable-werror boostrap completes, but there are a number of
> constructors and destructors that report "declared but not used". AFAICT,
> it's only constructors/destructors.
> 
> This is occurring at stage #2, and I thought maybe that the stage#1 compiler
> could have been mis-compiled by the bootstrap; however, gcc-4.9, 5.1 and
> clang (xcode 5.1.1) bootstraps all give the same result.

Jason, is pass_ipa_pure_const::pass_ipa_pure_const() really declared but not
used?

If so, can we mark it ATTRIBUTE_UNSUED or is there a more generic way of fixing
this?
>From gcc-bugs-return-488280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jun 07 12:42:39 2015
Return-Path: <gcc-bugs-return-488280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 44141 invoked by alias); 7 Jun 2015 12:42:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 44086 invoked by uid 48); 7 Jun 2015 12:42:35 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
Date: Sun, 07 Jun 2015 12:42:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66448-4-GPJxQwEdcQ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00612.txt.bz2
Content-length: 1220

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #2)
> > 2. Once (1) is fixed, bootstrap then fails with:
> > 
> > /GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error:
> > ‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’
> > defined but not used [-Werror=unused-function]
> >  pass_ipa_pure_const::
> > 
> > A --disable-werror boostrap completes, but there are a number of
> > constructors and destructors that report "declared but not used". AFAICT,
> > it's only constructors/destructors.
> > 
> > This is occurring at stage #2, and I thought maybe that the stage#1 compiler
> > could have been mis-compiled by the bootstrap; however, gcc-4.9, 5.1 and
> > clang (xcode 5.1.1) bootstraps all give the same result.
> 
> Jason, is pass_ipa_pure_const::pass_ipa_pure_const() really declared but not
> used?

I bet a drink that it is an incharge vs outofcharge construct/deconstruct
issue. Darwin does not support aliases so the function itself is cloned. 


> 
> If so, can we mark it ATTRIBUTE_UNSUED or is there a more generic way of
> fixing this?
>From gcc-bugs-return-488281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Jun 07 12:51:19 2015
Return-Path: <gcc-bugs-return-488281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 55989 invoked by alias); 7 Jun 2015 12:51:19 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 55960 invoked by uid 48); 7 Jun 2015 12:51:15 -0000
From: "schwab@linux-m68k.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66442] [6 regression] FAIL: gcc.dg/autopar/pr46885.c (test for excess errors)
Date: Sun, 07 Jun 2015 12:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: vries at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66442-4-VOKTpfHibf@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66442-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66442-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00613.txt.bz2
Content-length: 145

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf442

--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> ---
Fixes the test case on m68k.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
  2015-06-07  8:09 ` [Bug bootstrap/66448] " iains at gcc dot gnu.org
  2015-06-07 12:36 ` aldyh at gcc dot gnu.org
@ 2015-06-08  8:20 ` iains at gcc dot gnu.org
  2015-06-08  9:56 ` rguenth at gcc dot gnu.org
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-08  8:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> (In reply to Aldy Hernandez from comment #2)
> > > 2. Once (1) is fixed, bootstrap then fails with:
> > > 
> > > /GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error:
> > > ‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’
> > > defined but not used [-Werror=unused-function]
> > >  pass_ipa_pure_const::
> > > 
> > > A --disable-werror boostrap completes, but there are a number of
> > > constructors and destructors that report "declared but not used". AFAICT,
> > > it's only constructors/destructors.
> > > 
> > > This is occurring at stage #2, and I thought maybe that the stage#1 compiler
> > > could have been mis-compiled by the bootstrap; however, gcc-4.9, 5.1 and
> > > clang (xcode 5.1.1) bootstraps all give the same result.
> > 
> > Jason, is pass_ipa_pure_const::pass_ipa_pure_const() really declared but not
> > used?
> 
> I bet a drink that it is an incharge vs outofcharge construct/deconstruct
> issue. Darwin does not support aliases so the function itself is cloned. 

*sigh*, that seems believable - although I thought we'd ironed out most of the
alias/no-alias issues when dealing with the ipa-icf stuff last year.

This assessment is also likely consistent with duplicate debug information
being reported.

So perhaps there are multiple entries and (somehow) only one is marked as
"used"?
(if there's something specific needed debug-wise that needs a Darwin system let
us know and we'll try to extract what's needed).
>From gcc-bugs-return-488301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jun 08 08:24:15 2015
Return-Path: <gcc-bugs-return-488301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16335 invoked by alias); 8 Jun 2015 08:24:14 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15968 invoked by uid 48); 8 Jun 2015 08:24:09 -0000
From: "sebastiano.vigna at unimi dot it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/66348] Simple loop never exits with -O1, exits with -O0
Date: Mon, 08 Jun 2015 08:24:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sebastiano.vigna at unimi dot it
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66348-4-OX0uhbwZFb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66348-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66348-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00633.txt.bz2
Content-length: 237

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf348

--- Comment #13 from Sebastiano Vigna <sebastiano.vigna at unimi dot it> ---
I can confirm that compiling/running with ubsan and asan no problem is
reported. The bug does not show up.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (2 preceding siblings ...)
  2015-06-08  8:20 ` iains at gcc dot gnu.org
@ 2015-06-08  9:56 ` rguenth at gcc dot gnu.org
  2015-06-08  9:56 ` rguenth at gcc dot gnu.org
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-08  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.1


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (3 preceding siblings ...)
  2015-06-08  9:56 ` rguenth at gcc dot gnu.org
@ 2015-06-08  9:56 ` rguenth at gcc dot gnu.org
  2015-06-08 15:30 ` aldyh at redhat dot com
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-08  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |6.0


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (4 preceding siblings ...)
  2015-06-08  9:56 ` rguenth at gcc dot gnu.org
@ 2015-06-08 15:30 ` aldyh at redhat dot com
  2015-06-08 18:17 ` jason at gcc dot gnu.org
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at redhat dot com @ 2015-06-08 15:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #5 from Aldy Hernandez <aldyh at redhat dot com> ---
I don't have access to a Darwin box. Could you provide a preprocessed file so I
can try to reproduce the defined but not used problem on a cross build?

Also, what triplet?

Thanks.

On Jun 7, 2015 4:09 AM, "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
wrote:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448 
>
> --- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- 
> Created attachment 35710 
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35710&action=edit 
> declare "extern int __CFConstantStringClassReference" lazily 
>
> There seem to be three issues triggered by 224161 
>
> 1.  Debug is not initialised when the built-ins are initialised, therefore any 
> attempt to declare a variable at that time causes the segv. (hash table is not 
> present). 
>
> * at present, *darwin* declares "extern int 
> __CFConstantStringClassReference[]" at the time that the CFString built-in is 
> initialised. 
>
> - on the basis that it's not clear *if* such early declarations are allowed, 
> I've made a patch that makes the declaration lazily (when the fist use of the 
> built-in occurs). 
>
> This works around the reported crash (one could also use DECL_SOURCE_LOCATION 
> != BUILTINS_LOCATION as an additional test at passes.c:338, if built-ins *are* 
> supposed to be allowed to declare variables. 
>
> … however ... 
>
> ==== 
>
> 2. Once (1) is fixed, bootstrap then fails with: 
>
> /GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error: 
> ‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’ defined 
> but not used [-Werror=unused-function] 
> pass_ipa_pure_const:: 
>
> A --disable-werror boostrap completes, but there are a number of constructors 
> and destructors that report "declared but not used". AFAICT, it's only 
> constructors/destructors. 
>
> This is occurring at stage #2, and I thought maybe that the stage#1 compiler 
> could have been mis-compiled by the bootstrap; however, gcc-4.9, 5.1 and clang 
> (xcode 5.1.1) bootstraps all give the same result. 
>
> … additional info … 
>
> ===== 
>
> 3. During bootstrap (and in the test suite on the --disable-werror build) there 
> are a large number of warnings from ld64 (of course, this might be a limitation 
> of ld64, but for the record): 
>
> warning: invalid DWARF generated by the compiler: DIE 0x000002f7 has multiple 
> AT_location attributes in 
> '/GCC/ml/gcc-trunk-xtools/x86_64-apple-darwin12/libgcc/enable-execute-stack_s.o'. 
> warning: invalid DWARF generated by the compiler: DIE 0x00000317 has multiple 
> AT_location attributes in 
> '/GCC/ml/gcc-trunk-xtools/x86_64-apple-darwin12/libgcc/enable-execute-stack_s.o'. 
>
> -- 
> You are receiving this mail because: 
> You are on the CC list for the bug.
>From gcc-bugs-return-488392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jun 08 15:44:12 2015
Return-Path: <gcc-bugs-return-488392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59547 invoked by alias); 8 Jun 2015 15:44:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 59500 invoked by uid 48); 8 Jun 2015 15:44:07 -0000
From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/66252] [6 regression] bootstrap comparison failures on sparc-linux
Date: Mon, 08 Jun 2015 15:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ebotcazou at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66252-4-15vsGzsY2Q@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66252-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66252-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00724.txt.bz2
Content-length: 1104

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf252

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
cse.c:fold_rtx is miscompiled by the stage2 compiler, more precisely in:

          if (const_arg1 != 0 && CONST_INT_P (const_arg1)
              && INTVAL (const_arg1) < 0
              /* This used to test

                 -INTVAL (const_arg1) >= 0

                 But The Sun V5.0 compilers mis-compiled that test.  So
                 instead we test for the problematic value in a more direct
                 manner and hope the Sun compilers get it correct.  */
              && INTVAL (const_arg1) !                ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT - 1))
              && REG_P (folded_arg1))
            {
              rtx new_const = GEN_INT (-INTVAL (const_arg1));

the -INTVAL is miscompiled:

=> 0x00a94d58 <+4884>:  subcc  %g0, %o3, %o2
   0x00a94d5c <+4888>:  clr  %o0
   0x00a94d60 <+4892>:  call  0x35044c <gen_rtx_CONST_INT(machine_mode, long
long)>
   0x00a94d64 <+4896>:  subc  %g0, %o2, %o1

%o2 is wrongly clobbered by the first subtraction.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (5 preceding siblings ...)
  2015-06-08 15:30 ` aldyh at redhat dot com
@ 2015-06-08 18:17 ` jason at gcc dot gnu.org
  2015-06-08 19:17 ` iains at gcc dot gnu.org
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-08 18:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Waiting for preprocessed testcases.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (6 preceding siblings ...)
  2015-06-08 18:17 ` jason at gcc dot gnu.org
@ 2015-06-08 19:17 ` iains at gcc dot gnu.org
  2015-06-09  8:36 ` dominiq at lps dot ens.fr
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-08 19:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 35717
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35717&action=edit
pre-proc file for ipa-pure-const.c

svn rev. 224236 + patch to defer declaration of the extern.

If this is an issue with alias support / no alias support, ISTR that Honza has
some trick to turn it off on Linux which makes testing easier.

--- c/l

/GCC/ml/gcc-trunk-apple/./prev-gcc/xg++ -B/GCC/ml/gcc-trunk-apple/./prev-gcc/
-B/compilers/gcc-trunk/x86_64-apple-darwin12/bin/ -nostdinc++
-B/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/src/.libs
-B/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/libsupc++/.libs

-I/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/include/x86_64-apple-darwin12
 -I/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/include 
-I/GCC/gcc-trunk/libstdc++-v3/libsupc++
-L/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/src/.libs
-L/GCC/ml/gcc-trunk-apple/prev-x86_64-apple-darwin12/libstdc++-v3/libsupc++/.libs
-fno-PIE -c   -g -O2   -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common
 -DHAVE_CONFIG_H -I. -I. -I/GCC/gcc-trunk/gcc -I/GCC/gcc-trunk/gcc/.
-I/GCC/gcc-trunk/gcc/../include -I./../intl
-I/GCC/gcc-trunk/gcc/../libcpp/include -I/host/clang42//include 
-I/GCC/gcc-trunk/gcc/../libdecnumber -I/GCC/gcc-trunk/gcc/../libdecnumber/dpd
-I../libdecnumber -I/GCC/gcc-trunk/gcc/../libbacktrace  -I/host/clang42/include
-o ipa-pure-const.o -MT ipa-pure-const.o -MMD -MP -MF
./.deps/ipa-pure-const.TPo /GCC/gcc-trunk/gcc/ipa-pure-const.c -save-temps

-- response.

/GCC/gcc-trunk/gcc/ipa-pure-const.c:1640:1: error:
‘{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)’ defined
but not used [-Werror=unused-function]
 pass_ipa_pure_const::pass_ipa_pure_const(gcc::context *ctxt)
>From gcc-bugs-return-488412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jun 08 19:18:28 2015
Return-Path: <gcc-bugs-return-488412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 127154 invoked by alias); 8 Jun 2015 19:18:27 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 127094 invoked by uid 48); 8 Jun 2015 19:18:23 -0000
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
Date: Mon, 08 Jun 2015 19:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: iains at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status
Message-ID: <bug-66448-4-Je2D1BSYCD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66448-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00744.txt.bz2
Content-length: 287

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf448

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (7 preceding siblings ...)
  2015-06-08 19:17 ` iains at gcc dot gnu.org
@ 2015-06-09  8:36 ` dominiq at lps dot ens.fr
  2015-06-09  8:45 ` aldyh at redhat dot com
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-09  8:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Created attachment 35718
>   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35718&action=edit
> Tentative patch for issue #3

The patch does not fix the

../../work/gcc/ipa-pure-const.c:1636:1: error:
'{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)' defined
but not used [-Werror=unused-function]

issue.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (8 preceding siblings ...)
  2015-06-09  8:36 ` dominiq at lps dot ens.fr
@ 2015-06-09  8:45 ` aldyh at redhat dot com
  2015-06-09 14:52 ` jason at gcc dot gnu.org
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at redhat dot com @ 2015-06-09  8:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #10 from Aldy Hernandez <aldyh at redhat dot com> ---
It's not supposed to. It's for issue three as stated.

On Jun 9, 2015 4:36 AM, "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
wrote:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448 
>
> --- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- 
> > Created attachment 35718 
> >   --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35718&action=edit 
> > Tentative patch for issue #3 
>
> The patch does not fix the 
>
> ../../work/gcc/ipa-pure-const.c:1636:1: error: 
> '{anonymous}::pass_ipa_pure_const::pass_ipa_pure_const(gcc::context*)' defined 
> but not used [-Werror=unused-function] 
>
> issue. 
>
> -- 
> You are receiving this mail because: 
> You are on the CC list for the bug.
>From gcc-bugs-return-488452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 09 08:45:25 2015
Return-Path: <gcc-bugs-return-488452-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116166 invoked by alias); 9 Jun 2015 08:45:24 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115870 invoked by uid 48); 9 Jun 2015 08:45:19 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/66468] [6 Regression] ICE in in check_die, at dwarf2out.c:5719
Date: Tue, 09 Jun 2015 08:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-66468-4-hU9ee5FKEK@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00784.txt.bz2
Content-length: 985

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66468

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The testcase is invalid:

markus@x4 testc % g++ -r -nostdlib a.ii c.ii e.ii -g -O2 -flto
a.ii:21:8: warning: ‘Run’ violates the C++ One Definition Rule  [-Wodr]
   void Run (Point &) const;
        ^
e.ii:25:1: note: return value type mismatch
 Optimizer::Run (Point &) const
 ^
e.ii:25:1: note: type ‘float’ should match type ‘void’
e.ii:25:1: note: ‘Run’ was previously declared here
e.ii: In member function ‘__base_dtor ’:
e.ii:28:1: internal compiler error: in check_die, at dwarf2out.c:5712
 }
 ^
>From gcc-bugs-return-488453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 09 08:49:09 2015
Return-Path: <gcc-bugs-return-488453-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125170 invoked by alias); 9 Jun 2015 08:49:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 124861 invoked by uid 48); 9 Jun 2015 08:49:05 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/66468] [6 Regression] ICE in in check_die, at dwarf2out.c:5719
Date: Tue, 09 Jun 2015 08:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66468-4-Gah1kc2akH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66468-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66468-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00785.txt.bz2
Content-length: 853

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66468

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #2)
> The testcase is invalid:
> 
> markus@x4 testc % g++ -r -nostdlib a.ii c.ii e.ii -g -O2 -flto
> a.ii:21:8: warning: ‘Run’ violates the C++ One Definition Rule  [-Wodr]
>    void Run (Point &) const;
>         ^
> e.ii:25:1: note: return value type mismatch
>  Optimizer::Run (Point &) const
>  ^
> e.ii:25:1: note: type ‘float’ should match type ‘void’
> e.ii:25:1: note: ‘Run’ was previously declared here
> e.ii: In member function ‘__base_dtor ’:
> e.ii:28:1: internal compiler error: in check_die, at dwarf2out.c:5712
>  }
>  ^

You are right. However, I guess we should not ICE?

Martin
>From gcc-bugs-return-488454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 09 08:50:37 2015
Return-Path: <gcc-bugs-return-488454-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3668 invoked by alias); 9 Jun 2015 08:50:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3583 invoked by uid 55); 9 Jun 2015 08:50:33 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/66030] [5.1.0] std::codecvt_byname missing from libstdc++ DLL
Date: Tue, 09 Jun 2015 08:50:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66030-4-8DhXWKkU1u@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66030-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66030-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00786.txt.bz2
Content-length: 467

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf030

--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jun  9 08:50:00 2015
New Revision: 224273

URL: https://gcc.gnu.org/viewcvs?rev"4273&root=gcc&view=rev
Log:
        PR libstdc++/66030
        * config/abi/pre/gnu.ver: Export codecvt_byname and codecvt symbols
        for mingw32.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu.ver


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (9 preceding siblings ...)
  2015-06-09  8:45 ` aldyh at redhat dot com
@ 2015-06-09 14:52 ` jason at gcc dot gnu.org
  2015-06-09 23:51 ` aldyh at gcc dot gnu.org
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-09 14:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun  9 14:51:30 2015
New Revision: 224285

URL: https://gcc.gnu.org/viewcvs?rev=224285&root=gcc&view=rev
Log:
        PR bootstrap/66448
        * toplev.c (check_global_declaration): Don't warn about a clone.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wunused-function1.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/toplev.c


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (10 preceding siblings ...)
  2015-06-09 14:52 ` jason at gcc dot gnu.org
@ 2015-06-09 23:51 ` aldyh at gcc dot gnu.org
  2015-06-10 11:02 ` iains at gcc dot gnu.org
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at gcc dot gnu.org @ 2015-06-09 23:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #14 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 35734
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35734&action=edit
Patch to ICE on other duplicate DW_AT_ attributes

On 06/09/2015 08:00 AM, iains at gcc dot gnu.org wrote:
> So .. things are *very* much improved, thanks!

Awesome!

> (at least no reports during bootstrap),
> but there's still quite a bit of fallout in the testsuite (many more failing
> tests than listed below, these are just examples):
> 
> FAIL: gcc.c-torture/execute/20020412-1.c   -O3 -g  (test for excess errors)
> FAIL: gcc.c-torture/execute/20040308-1.c   -O3 -g  (test for excess errors)
> FAIL: gcc.c-torture/execute/20070919-1.c   -O3 -g  (test for excess errors)
> FAIL: gcc.dg/torture/pr8081.c   -O3 -g  (test for excess errors)
> <etc>
> 
> (usually several) instances of:
> warning: invalid DWARF generated by the compiler: DIE 0x0000018b has multiple
> AT_decl_file attributes in
> '/var/folders/tj/17r7407j14d324dzf67cnvxm000114/T//ccSyKR0x.o'.

I can't reproduce any of these with a cross compiler.  I'm building a cross
with:

--enable-languages=c,c++ --disable-bootstrap --disable-multilib
--target=i686-darwin

...but I still can't get cc1plus to trigger any ICE with the attached patch.

> 
> warning: invalid DWARF generated by the compiler: DIE 0x0000015d has multiple
> AT_decl_line attributes in
> '/var/folders/tj/17r7407j14d324dzf67cnvxm000114/T//cccckVUY.o'.
> 
> FAIL: c-c++-common/cilk-plus/CK/cilk-for-2.c  -g  (test for excess errors)
> FAIL: c-c++-common/cilk-plus/CK/cilk-fors.c  -g  (test for excess errors)
> FAIL: c-c++-common/cilk-plus/CK/cilk_for_grain.c  -g  (test for excess errors)
> FAIL: c-c++-common/cilk-plus/CK/cilk_for_ptr_iter.c  -g  (test for excess
> errors)
> FAIL: c-c++-common/cilk-plus/CK/nested_cilk_for.c  -g  (test for excess errors)
> <etc>
> also plugin tests.
> 
> (many) instances of:
> warning: invalid DWARF generated by the compiler: DIE 0x00000176 has multiple
> AT_artificial attributes in
> '/var/folders/tj/17r7407j14d324dzf67cnvxm000114/T//ccNJ6qak.o'.

Similarly here.

The attached patch adds ICEs for duplicate
DW_AT_{artificial,decl_line,decl_file} tags.  Since I'm flying blind here,
would you mind finding for which files we trigger ICEs and attach the
preprocessed files so I can reproduce with a cc1/cc1plus?  I assume just one of
each type will do.

Thanks.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (11 preceding siblings ...)
  2015-06-09 23:51 ` aldyh at gcc dot gnu.org
@ 2015-06-10 11:02 ` iains at gcc dot gnu.org
  2015-06-10 11:04 ` iains at gcc dot gnu.org
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-10 11:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #14)
> Created attachment 35734 [details]
> Patch to ICE on other duplicate DW_AT_ attributes

> I can't reproduce any of these with a cross compiler.  I'm building a cross
> with:
> 
> --enable-languages=c,c++ --disable-bootstrap --disable-multilib
> --target=i686-darwin

The triple for the platform I'm testing on is :  x86_64-apple-darwin12

I doubt that i686/x86_64 is significant since the errors show on both multilib
variants.

However, I'd avoid the default version - and suggest at least
xxx-apple-darwin10.

> ...but I still can't get cc1plus to trigger any ICE with the attached patch.

me neither - nevertheless...

> > warning: invalid DWARF generated by the compiler: DIE 0x00000176 has multiple
> > AT_artificial attributes in
> > '/var/folders/tj/17r7407j14d324dzf67cnvxm000114/T//ccNJ6qak.o'.
> 
> Similarly here.
> 
> The attached patch adds ICEs for duplicate
> DW_AT_{artificial,decl_line,decl_file} tags.  Since I'm flying blind here,
> would you mind finding for which files we trigger ICEs and attach the
> preprocessed files so I can reproduce with a cc1/cc1plus?  I assume just one
> of each type will do.

OK. so … the ICEs don't fire - but, nevertheless, the output seems to be
incorrect.

I'll attach the intermediate files in a follow-on post.

for the case of:
./gcc/xgcc -Bgcc
/GCC/gcc-trunk/gcc/testsuite/gcc.c-torture/execute/20020412-1.c  -m64   -O3 -g 
-o t -save-temps

dwarfdump --verify 20020412-1.o
----------------------------------------------------------------------
 File: 20020412-1.o (x86_64)
----------------------------------------------------------------------
Verifying Compile Unit Header chain... ok
Verifying .debug_info... 
error: Range is not in parent
  BLCK {0x000001da}: [0x0000000000000190 - 0x0000000000000204) ERROR
0x0000020a: contains multiple  AT_decl_file attributes.
ERROR 0x0000020a: contains multiple  AT_decl_line attributes.
ERROR 0x0000020a: contains multiple  AT_decl_file attributes.
ERROR 0x0000020a: contains multiple  AT_decl_line attributes.
ERROR 0x0000028d: contains multiple  AT_decl_file attributes.
ERROR 0x0000028d: contains multiple  AT_decl_line attributes.

======

using binutils objdump (which groks mach-o)
… although I realise you don't have a cross-assembler (although I'm working on
that too ;) )

Contents of the .debug_info section:

  Compilation Unit @ offset 0x0:
   Length:        0x39d (32-bit)
   Version:       2
   Abbrev Offset: 0x0

<snip>

    <209>   DW_AT_const_value : 5
 <2><20a>: Abbrev Number: 11 (DW_TAG_structure_type)
    <20b>   DW_AT_decl_file   : 1
    <20c>   DW_AT_decl_line   : 43
    <20d>   DW_AT_decl_file   : 1
    <20e>   DW_AT_decl_line   : 43
    <20f>   DW_AT_decl_file   : 1
    <210>   DW_AT_decl_line   : 43
    <211>   DW_AT_sibling     : <0x222>
 <3><215>: Abbrev Number: 7 (DW_TAG_member)

so it appears that the tools agree about the binary .. 

=====
>From gcc-bugs-return-488591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 10 11:04:32 2015
Return-Path: <gcc-bugs-return-488591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 50482 invoked by alias); 10 Jun 2015 11:04:32 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 50054 invoked by uid 48); 10 Jun 2015 11:04:26 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61108] [4.8 Regression] gcc 4.8.2 generates incorrect integer arithmetic at O3 (ok at O2)
Date: Wed, 10 Jun 2015 11:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: DUPLICATE
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-61108-4-oWsH0BJwO1@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61108-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61108-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00923.txt.bz2
Content-length: 552

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida108

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Duplicate (I'm currently backporting the fix for the duplicate).

*** This bug has been marked as a duplicate of bug 60656 ***


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (12 preceding siblings ...)
  2015-06-10 11:02 ` iains at gcc dot gnu.org
@ 2015-06-10 11:04 ` iains at gcc dot gnu.org
  2015-06-10 15:42 ` aldyh at gcc dot gnu.org
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-10 11:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #16 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 35739
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35739&action=edit
outputs from -save-temps on 20020412-1.c (-O3 -g)

.. of course, we might just have uncovered some latent issue.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (13 preceding siblings ...)
  2015-06-10 11:04 ` iains at gcc dot gnu.org
@ 2015-06-10 15:42 ` aldyh at gcc dot gnu.org
  2015-06-11  7:53 ` iains at gcc dot gnu.org
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at gcc dot gnu.org @ 2015-06-10 15:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35734|0                           |1
        is obsolete|                            |

--- Comment #17 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Created attachment 35744
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35744&action=edit
Call check_die on type DIEs and avoid DW_AT_aritificial attribs

On 06/10/2015 04:01 AM, iains at gcc dot gnu.org wrote:>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448
> 
> --- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> ---
> (In reply to Aldy Hernandez from comment #14)
>> Created attachment 35734 [details]
>> Patch to ICE on other duplicate DW_AT_ attributes
> 
>> I can't reproduce any of these with a cross compiler.  I'm building a cross
>> with:
>>
>> --enable-languages=c,c++ --disable-bootstrap --disable-multilib
>> --target=i686-darwin
> 
> The triple for the platform I'm testing on is :  x86_64-apple-darwin12

As a side note, if *-apple-darwin{10,12} is the more common variant (as opposed
to *-apple-darwin which uses stabs), may I suggest speaking with the SC to put
a more recent darwin on the secondary platform list instead of
i686-apple-darwin which is stabs (and nobody cares bout stabs ;-)).

>> ...but I still can't get cc1plus to trigger any ICE with the attached patch.
> 
> me neither - nevertheless...

Well, I was testing stabs apparently, but even so, the reason why the ICE did
not trigger was because the duplicate attributes appear on a type DIE, not a
decl DIE.  I was able to reproduce by looking at the assembly.

I added a check for type DIEs and found a slew of problems on Linux as well. 
It seems the Linux linker is far more permissive wrt dwarf.  The attached patch
fixes all the problems you reported that I could reproduce with a cross
compiler for x86_64-apple-darwin10.  It also passes bootstrap and tests on
x86-64 Linux.

Could you test it properly on darwin?


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (14 preceding siblings ...)
  2015-06-10 15:42 ` aldyh at gcc dot gnu.org
@ 2015-06-11  7:53 ` iains at gcc dot gnu.org
  2015-06-11 12:26 ` iains at gcc dot gnu.org
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-11  7:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #18 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Aldy Hernandez from comment #17)
> Created attachment 35744 [details]
> Call check_die on type DIEs and avoid DW_AT_aritificial attribs
> 

> >> I can't reproduce any of these with a cross compiler.  I'm building a cross
> >> with:
> >>
> >> --enable-languages=c,c++ --disable-bootstrap --disable-multilib
> >> --target=i686-darwin
> > 
> > The triple for the platform I'm testing on is :  x86_64-apple-darwin12
> 
> As a side note, if *-apple-darwin{10,12} is the more common variant (as
> opposed to *-apple-darwin which uses stabs), may I suggest speaking with the
> SC to put a more recent darwin on the secondary platform list instead of

I must confess, I was under the impression that the p2 was i686-apple-darwin10.
However, that is somewhat out of date (we should prob really default to
x86_64-apple-darwin??)  I think it's prob a good idea for the day-to-day Darwin
folks to discuss with the nominated maintainers and come up with some
recommendation to the SC.

> i686-apple-darwin which is stabs (and nobody cares bout stabs ;-)).
indeed ;-)

> >> ...but I still can't get cc1plus to trigger any ICE with the attached patch.
> > 
> > me neither - nevertheless...
> 
> Well, I was testing stabs apparently, but even so, the reason why the ICE
> did not trigger was because the duplicate attributes appear on a type DIE,
> not a decl DIE.  I was able to reproduce by looking at the assembly.
> 
> I added a check for type DIEs and found a slew of problems on Linux as well.
> It seems the Linux linker is far more permissive wrt dwarf.

Heh.. the "canaries" have their uses… FWIW, ld64 and the other Darwin tools
used to be more forgiving too - they are gradually checking more and more and
being picky about atuff.

>  The attached
> patch fixes all the problems you reported that I could reproduce with a
> cross compiler for x86_64-apple-darwin10.  It also passes bootstrap and
> tests on x86-64 Linux.
> 
> Could you test it properly on darwin?

$ grep -rH "invalid DW" gcc/testsuite |wc -l
       0
thanks!

==== opinion needed:

OK - so now I have one remaining problem.  The change in my intial patch to
make the creation of the "extern int __CFConstantStringClassReference" lazily,
regresses obj-c++ (and, yes, I do care - it's needed to build some interesting
projects).

The reason is that the (lazy) creation will occur in some arbitrary scope - but
the decl really needs to be "pushdecl_top_level".  Unfortunatley, there's no
langhook for that (and Ada doesn't actually provide such a thing, AFAICT).

So … maybe I can find some (probably icky) way around this for Obj-C++ .. or
perhaps recommend a langhook for pushdecl_top_level().

An alternative is to say that var decls created at built-ins init time do not
need  debug?  If you were agreeable with this then a patch like 

 && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION

 as an additional test at passes.c:338, might be worth evaluating?

… or maybe it's practical to init debug before the inits?

WDYT?

(we need to move forward to unbreak Darwin bootstrap, so that we don't get
behind on catching other things - so I'd be inclined to the original patch as
band-aid, in the interim, if all elase fails)
>From gcc-bugs-return-488701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 07:57:09 2015
Return-Path: <gcc-bugs-return-488701-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91348 invoked by alias); 11 Jun 2015 07:57:09 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 91292 invoked by uid 48); 11 Jun 2015 07:57:05 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/66205] gnatbind generates invalid code when finalization is enabled in restricted runtime
Date: Thu, 11 Jun 2015 07:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: simon at pushface dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66205-4-MMDdRYK5g7@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66205-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66205-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg01033.txt.bz2
Content-length: 730

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66205

--- Comment #2 from simon at pushface dot org ---
As a side note, AdaCore’s document on “The GNAT Configurable Run Time
Facility”, section 5.5.2[1], says about Suppress_Standard_Library "All
finalization and initialization (controlled types) is omitted”. I don’t think
this is right; the only part of the standard s-stalib related to finalization
is the procedure Adafinal, which is I think irrelevant to a runtime that
doesn’t support program termination.

[1]
http://docs.adacore.com/gnathie_ug-docs/html/gnathie_ug/gnathie_ug/the_gnat_configurable_run_time_facility.html#specification-of-configuration-parameters
>From gcc-bugs-return-488702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 08:03:13 2015
Return-Path: <gcc-bugs-return-488702-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 98061 invoked by alias); 11 Jun 2015 08:03:13 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 97990 invoked by uid 48); 11 Jun 2015 08:03:08 -0000
From: "mwahab at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65697] __atomic memory barriers not strong enough for __sync builtins
Date: Thu, 11 Jun 2015 08:03:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mwahab at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mwahab at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65697-4-XSxaaIE4Mr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65697-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65697-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg01034.txt.bz2
Content-length: 357

https://gcc.gnu.org/bugzilla/show_bug.cgi?ide697

--- Comment #62 from mwahab at gcc dot gnu.org ---
(In reply to Ramana Radhakrishnan from comment #61)
> Well, confirmed at least. And at the minute fixed on trunk - not sure if we
> are asking for backports for this ?

Marcus has asked for this to be backported to 5.1 and maybe 4.9. I'm looking at
it.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (15 preceding siblings ...)
  2015-06-11  7:53 ` iains at gcc dot gnu.org
@ 2015-06-11 12:26 ` iains at gcc dot gnu.org
  2015-06-11 16:01 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-11 12:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> ---
FWIW,
I boostrapped r224366 with the dwarf2out.c changes + this:

diff --git a/gcc/passes.c b/gcc/passes.c
index d3ffe33..1bc8a36 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -332,7 +332,7 @@ rest_of_decl_compilation (tree decl,
       */
       && !decl_function_context (decl)
       && !current_function_decl
-
+      && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION
       && !decl_type_context (decl))
     (*debug_hooks->early_global_decl) (decl);
 }

the bootstrap succeeds and the obj-c++ testsuite is not regressed; doing the
rest now.  If there's no objection to this approach (which seems to be just
preserving the status quo) then I'd prefer it.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (16 preceding siblings ...)
  2015-06-11 12:26 ` iains at gcc dot gnu.org
@ 2015-06-11 16:01 ` jason at gcc dot gnu.org
  2015-06-11 20:13 ` iains at gcc dot gnu.org
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-11 16:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #21 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #20)
> +      && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION

This seems reasonable.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (17 preceding siblings ...)
  2015-06-11 16:01 ` jason at gcc dot gnu.org
@ 2015-06-11 20:13 ` iains at gcc dot gnu.org
  2015-06-11 20:47 ` aldyh at gcc dot gnu.org
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-11 20:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #22 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #21)
> (In reply to Iain Sandoe from comment #20)
> > +      && DECL_SOURCE_LOCATION (decl) != BUILTINS_LOCATION
> 
> This seems reasonable.

My testing completed successfully; with Aldy's changes to dwarf2out.c and the
patch mentioned above.  Obv. not my call, but LGTM as a solution.


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (18 preceding siblings ...)
  2015-06-11 20:13 ` iains at gcc dot gnu.org
@ 2015-06-11 20:47 ` aldyh at gcc dot gnu.org
  2015-06-12  9:56 ` dominiq at lps dot ens.fr
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 24+ messages in thread
From: aldyh at gcc dot gnu.org @ 2015-06-11 20:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #23 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Author: aldyh
Date: Thu Jun 11 20:46:46 2015
New Revision: 224393

URL: https://gcc.gnu.org/viewcvs?rev=224393&root=gcc&view=rev
Log:
        PR bootstrap/66448
        * dwarf2out.c (check_die): Check for common duplicate attributes.
        (add_location_or_const_value_attribute): Do not add duplicate
        attributes.
        (gen_formal_parameter_die): Do not add DW_AT_artificial the second
        time around.
        (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
        (gen_type_die_with_usage): Call check_die.
        (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (19 preceding siblings ...)
  2015-06-11 20:47 ` aldyh at gcc dot gnu.org
@ 2015-06-12  9:56 ` dominiq at lps dot ens.fr
  2015-06-13  7:55 ` iains at gcc dot gnu.org
  2015-06-13 12:07 ` iains at gcc dot gnu.org
  22 siblings, 0 replies; 24+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-06-12  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #24 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I still see

FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O0  -fnext-runtime
(test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O0 
-fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O1  -fnext-runtime
(test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O1 
-fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2  -fnext-runtime
(test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2 
-fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O3 -fomit-frame-pointer
 -fnext-runtime (test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O3
-fomit-frame-pointer  -fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O3 -g  -fnext-runtime
(test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O3 -g 
-fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -Os  -fnext-runtime
(test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -Os 
-fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2 -flto
-flto-partition=none  -fnext-runtime (test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2 -flto
-flto-partition=none  -fnext-runtime compilation failed to produce executable
FAIL: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2 -flto 
-fnext-runtime (test for excess errors)
UNRESOLVED: obj-c++.dg/torture/strings/const-cfstring-1.mm   -O2 -flto 
-fnext-runtime compilation failed to produce executable

with the patches in comments 17 and 20. What am I missing?


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (20 preceding siblings ...)
  2015-06-12  9:56 ` dominiq at lps dot ens.fr
@ 2015-06-13  7:55 ` iains at gcc dot gnu.org
  2015-06-13 12:07 ` iains at gcc dot gnu.org
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-13  7:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

--- Comment #26 from Iain Sandoe <iains at gcc dot gnu.org> ---
Author: iains
Date: Sat Jun 13 07:55:05 2015
New Revision: 224451

URL: https://gcc.gnu.org/viewcvs?rev=224451&root=gcc&view=rev
Log:

gcc:
        PR bootstrap/66448
        * passes.c (rest_of_decl_compilation): Do not register globals for
        early debug if they are declared in built-ins.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.c


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

* [Bug bootstrap/66448] [6 Regression] Bootstrap fails on darwin after r224161
  2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
                   ` (21 preceding siblings ...)
  2015-06-13  7:55 ` iains at gcc dot gnu.org
@ 2015-06-13 12:07 ` iains at gcc dot gnu.org
  22 siblings, 0 replies; 24+ messages in thread
From: iains at gcc dot gnu.org @ 2015-06-13 12:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66448

Iain Sandoe <iains at gcc dot gnu.org> changed:

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

--- Comment #27 from Iain Sandoe <iains at gcc dot gnu.org> ---
fixed


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

end of thread, other threads:[~2015-06-13 12:07 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-07  7:02 [Bug bootstrap/66448] New: [6 Regression] Bootstrap fails on darwin after r224161 dominiq at lps dot ens.fr
2015-06-07  8:09 ` [Bug bootstrap/66448] " iains at gcc dot gnu.org
2015-06-07 12:36 ` aldyh at gcc dot gnu.org
2015-06-08  8:20 ` iains at gcc dot gnu.org
2015-06-08  9:56 ` rguenth at gcc dot gnu.org
2015-06-08  9:56 ` rguenth at gcc dot gnu.org
2015-06-08 15:30 ` aldyh at redhat dot com
2015-06-08 18:17 ` jason at gcc dot gnu.org
2015-06-08 19:17 ` iains at gcc dot gnu.org
2015-06-09  8:36 ` dominiq at lps dot ens.fr
2015-06-09  8:45 ` aldyh at redhat dot com
2015-06-09 14:52 ` jason at gcc dot gnu.org
2015-06-09 23:51 ` aldyh at gcc dot gnu.org
2015-06-10 11:02 ` iains at gcc dot gnu.org
2015-06-10 11:04 ` iains at gcc dot gnu.org
2015-06-10 15:42 ` aldyh at gcc dot gnu.org
2015-06-11  7:53 ` iains at gcc dot gnu.org
2015-06-11 12:26 ` iains at gcc dot gnu.org
2015-06-11 16:01 ` jason at gcc dot gnu.org
2015-06-11 20:13 ` iains at gcc dot gnu.org
2015-06-11 20:47 ` aldyh at gcc dot gnu.org
2015-06-12  9:56 ` dominiq at lps dot ens.fr
2015-06-13  7:55 ` iains at gcc dot gnu.org
2015-06-13 12:07 ` iains at gcc dot gnu.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).