public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
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:09:00 -0000	[thread overview]
Message-ID: <bug-66448-4-HFfIHjckvJ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-66448-4@http.gcc.gnu.org/bugzilla/>

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*


  reply	other threads:[~2015-06-07  8:09 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-07  7:02 [Bug bootstrap/66448] New: " dominiq at lps dot ens.fr
2015-06-07  8:09 ` iains at gcc dot gnu.org [this message]
2015-06-07 12:36 ` [Bug bootstrap/66448] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-66448-4-HFfIHjckvJ@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).