public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66762] ICE when compiling gfortran.dg/submodule_[16].f90 with -flto
Date: Tue, 08 Sep 2015 12:19:00 -0000	[thread overview]
Message-ID: <bug-66762-4-ARwTFlD8PP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-66762-4@http.gcc.gnu.org/bugzilla/>

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
I tried to investigate:
gfortran ./gcc/testsuite/gfortran.dg/submodule_6.f08 -flto

If I compare corresponding argument passed to output_addr_const w/o LTO, I see:
(const_int 54796891 [0x344225b])

,instead of:
(mem/u/f/c:DI (symbol_ref/f:DI ("*.LC0") [flags 0x2] <var_decl 0x7fbb9b3d52d0
*.LC0>) [0  S8 A64])

Thus it looks for me that in case of LTO, it is unable to resolve offset of the
variable *.LC0:

 <var_decl 0x7ffff6a2c2d0 *.LC0
    type <pointer_type 0x7ffff6e23888
        type <record_type 0x7ffff6e237e0 t_a BLK
            size <integer_cst 0x7ffff6c2bc30 constant 0>
            unit size <integer_cst 0x7ffff6c2bbe8 constant 0>
            align 8 symtab 0 alias set 0 canonical type 0x7ffff6e1ef18 context
<namespace_decl 0x7ffff6e225f0 mod_a>
            pointer_to_this <pointer_type 0x7ffff6e23888> chain <type_decl
0x7ffff6e22688 D.3955>>
        unsigned DI
        size <integer_cst 0x7ffff6c2bbb8 constant 64>
        unit size <integer_cst 0x7ffff6c2bbd0 constant 8>
        align 64 symtab 0 alias set 0 canonical type 0x7ffff6c44738>
    readonly addressable static unsigned ignored in-constant-pool DI file
(null) line 0 col 0 size <integer_cst 0x7ffff6c2bbb8 64> unit size <integer_cst
0x7ffff6c2bbd0 8>
    align 64 initial <constructor 0x7ffff6e24390>>

Martin
>From gcc-bugs-return-496601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 08 12:26:32 2015
Return-Path: <gcc-bugs-return-496601-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 120981 invoked by alias); 8 Sep 2015 12:26: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 120936 invoked by uid 48); 8 Sep 2015 12:26:28 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66056] ICEs and endless compilation for lonely labels/numbers in type
Date: Tue, 08 Sep 2015 12:26:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
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: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-66056-4-SCLDrA05Ao@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66056-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66056-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-09/txt/msg00579.txt.bz2
Content-length: 579

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-08
     Ever confirmed|0                           |1

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I confirm the ICE for 4.8 up to trunk (6.0), but all the tests compiles in a
fraction of second.


  parent reply	other threads:[~2015-09-08 12:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-04 12:25 [Bug fortran/66762] New: " dominiq at lps dot ens.fr
2015-07-04 15:12 ` [Bug fortran/66762] " pault at gcc dot gnu.org
2015-07-04 17:23 ` dominiq at lps dot ens.fr
2015-07-21 21:10 ` pault at gcc dot gnu.org
2015-07-23 10:58 ` dominiq at lps dot ens.fr
2015-09-06  1:14 ` dominiq at lps dot ens.fr
2015-09-06 11:45 ` paul.richard.thomas at gmail dot com
2015-09-08 12:19 ` marxin at gcc dot gnu.org [this message]
2015-09-27 17:55 ` pault 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-66762-4-ARwTFlD8PP@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).